@26lights/orcha 0.42.70 → 0.42.71

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/orcha.umd.js CHANGED
@@ -1,7 +1,7 @@
1
1
  (function(fe,a){var ft=document.createElement("style");ft.textContent=`*,*:before,*:after{box-sizing:border-box}html,body{margin:0;overflow:hidden;display:flex;flex-direction:column;height:100%;min-height:0}button{color:inherit;font-family:inherit}input,textarea{font-family:inherit}:root{--ao-color-blue-lightest: #ebf1ff;--ao-color-blue-lighter: #aabdff;--ao-color-blue-light: #7183ff;--ao-color-blue-base: #4952ff;--ao-color-blue-dark: #2226e7;--ao-color-blue-darker: #09099c;--ao-color-blue-darkest: #000033;--ao-color-grey-lightest: #e6e6e6;--ao-color-grey-light: #c8c8c8;--ao-color-grey-base: #ababab;--ao-color-grey-dark: #636363;--ao-color-grey-darkest: #1c1c1c;--ao-color-white: #fff;--ao-color-black: #000;--ao-color-sand-base: #d8a55a;--ao-color-red-light: #ff4f4f;--ao-color-teal-light: #64d9bb;--ao-color-primary-lightest: var(--ao-color-blue-lightest);--ao-color-primary-lighter: var(--ao-color-blue-lighter);--ao-color-primary-light: var(--ao-color-blue-light);--ao-color-primary-base: var(--ao-color-blue-base);--ao-color-primary-dark: var(--ao-color-blue-dark);--ao-color-primary-darker: var(--ao-color-blue-darker);--ao-color-primary-darkest: var(--ao-color-blue-darkest);--ao-color-neutral-lightest: var(--ao-color-grey-lightest);--ao-color-neutral-light: var(--ao-color-grey-light);--ao-color-neutral-base: var(--ao-color-grey-base);--ao-color-neutral-dark: var(--ao-color-grey-dark);--ao-color-neutral-darkest: var(--ao-color-grey-darkest);--ao-color-canvas: #f1f1f1;--ao-color-sheet: #f9f9f9;--ao-color-card: #f9f9f9;--ao-color-text: var(--ao-color-grey-darkest);--ao-color-danger: var(--ao-color-red-light);--ao-color-warning: var(--ao-color-sand-base);--ao-color-success: var(--ao-color-teal-light);--ao-color-text-contrast: var(--ao-color-white);--ao-color-group: rgba(255, 255, 255, .2);--ao-color-backdrop: rgba(0, 0, 0, .7);--ao-grid-size: 8px;--ao-space-xs: calc(var(--ao-grid-size) / 4);--ao-space-sm: calc(var(--ao-grid-size) / 2);--ao-space-md: calc(var(--ao-grid-size) * 1);--ao-space-lg: calc(var(--ao-grid-size) * 3 / 2);--ao-space-xl: calc(var(--ao-grid-size) * 2);--ao-space-xxl: calc(var(--ao-grid-size) * 4);--ao-border-width-sm: 1px;--ao-border-width-md: 2px;--ao-border-width-lg: 4px;--ao-border-width-xl: 6px;--ao-border-radius-xs: 2px;--ao-border-radius-sm: 4px;--ao-border-radius-md: 8px;--ao-border-radius-lg: 16px;--ao-border-radius-xl: 24px;--ao-border-radius-round: 100em;font-size:15px;--ao-font-size-base: 1rem;--ao-font-size-text: var(--ao-font-size-base);--ao-font-size-input: var(--ao-font-size-base);--ao-font-size-h5: var(--ao-font-size-base);--ao-font-size-h4: calc(var(--ao-font-size-base) * 1.25);--ao-font-size-h3: calc(var(--ao-font-size-h4) * 1.25);--ao-font-size-h2: calc(var(--ao-font-size-h3) * 1.25);--ao-font-size-h1: calc(var(--ao-font-size-h2) * 1.25);--ao-font-size-label: calc(var(--ao-font-size-base) / 1.25);--ao-font-size-tag: calc(var(--ao-font-size-label) / 1.25);--ao-font-size-button: var(--ao-font-size-base);--ao-font-weight-extra-light: 200;--ao-font-weight-regular: 400;--ao-font-weight-medium: 500;--ao-font-weight-semi-bold: 600;--ao-font-weight-bold: 800;--ao-font-weight-extra-bold: 900;--ao-font-stack-system-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ao-font-stack-sans: "Kumbh Sans", var(--ao-font-stack-system-sans);--ao-icon-size-sm: calc(var(--ao-grid-size) * 9 / 5);--ao-icon-size-md: calc(var(--ao-grid-size) * 3);--ao-icon-size-lg: calc(var(--ao-grid-size) * 4);--ao-icon-size-xl: calc(var(--ao-grid-size) * 5);--ao-transition-ease: cubic-bezier(.215, .61, .355, 1);--ao-shadow-key-umbra-opacity: .2;--ao-shadow-key-penumbra-opacity: .14;--ao-shadow-ambient-shadow-opacity: .12;--ao-elevation-2dp: 0 2px 2px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 1px -2px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity)), 0 1px 5px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity));--ao-elevation-3dp: 0 3px 4px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 3px -2px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity)), 0 1px 8px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity));--ao-elevation-4dp: 0 4px 5px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 1px 10px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 2px 4px -1px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-6dp: 0 6px 10px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 1px 18px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 3px 5px -1px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-8dp: 0 8px 10px 1px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 14px 2px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 5px 5px -3px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-16dp: 0 16px 24px 2px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 6px 30px 5px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 8px 10px -5px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-24dp: 0 9px 46px 8px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 11px 15px -7px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 24px 38px 3px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity))}html,body{font-family:var(--ao-font-stack-sans)}[class^=ao-]{scrollbar-width:thin}[class^=ao-]::-webkit-scrollbar{background-color:transparent;width:var(--ao-space-md);height:var(--ao-space-md);border-radius:var(--ao-border-radius-round)}[class^=ao-]::-webkit-scrollbar-thumb{background:var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-round);cursor:grab}:root{--ao-input-color: inherit;--ao-input-bg: #fff;--ao-input-border-radius: var(--ao-border-radius-sm);--ao-input-border-width: var(--ao-border-width-sm);--ao-input-border-color: var(--ao-color-neutral-light);--ao-textarea-bg: var(--ao-input-bg)}.ao-fieldset{border-width:0;padding:0;margin:0}.ao-fieldset+.ao-fieldset{margin-block-start:var(--ao-space-xl)}.ao-fieldset__title{display:flex;align-items:center;gap:var(--ao-space-sm);color:var(--ao-color-neutral-dark)}.ao-field__row{display:flex;flex-direction:row;gap:var(--ao-space-lg)}.ao-field__row+.ao-field__row{margin-block-start:var(--ao-space-lg)}.ao-field{display:flex;flex-direction:column;align-items:flex-start;gap:var(--ao-space-md)}.ao-field--full{flex:1;width:100%}.ao-field--multiselect{min-width:20ch}.ao-field--inline{flex-direction:row;align-items:center}.ao-field__label{font-size:var(--ao-font-size-label)}.ao-field__input{padding-inline:var(--ao-space-lg);padding-block:var(--ao-space-md);margin:0;border:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:var(--ao-input-border-radius);color:var(--ao-input-color);background-color:var(--ao-input-bg)}.ao-field__input:is(:focus,:active,:hover){--ao-input-border-color: var(--ao-color-primary-base)}.ao-field__textarea{padding:var(--ao-space-lg);border:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:var(--ao-input-border-radius);color:var(--ao-input-color);background-color:var(--ao-textarea-bg);flex:1;width:100%;resize:vertical}.ao-multiselect{--ms-font-size: var(--font-size-text);--ms-line-height: 1.2;--ms-border-color: var(--ao-color-neutral-lightest);--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: var(--ao-input-border-color);--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-md);--ms-py: var(--ao-space-md);--ms-px: var(--ao-space-lg);--ms-ring-color: var(--ao-color-primary-lightest);--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-tag-font-size: var(--ao-font-size-tag);--ms-tag-font-weight: var(--ao-font-weight-regular);--ms-tag-bg: var(--ao-color-primary-base);--ms-tag-radius: var(--ao-border-radius-xl);--ms-tag-py: var(--ao-space-sm);--ms-tag-my: 0;--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}input[readonly]{cursor:default}.is-disabled>.multiselect-wrapper{cursor:default}.ao-field__input::-webkit-outer-spin-button,.ao-field__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.ao-field__input[type=number]{-moz-appearance:textfield}.multiselect{align-items:center;background:var(--ms-bg,#fff);border:var(--ms-border-width,1px) solid var(--ms-border-color,#d1d5db);border-radius:var(--ms-radius,4px);box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--ms-font-size,1rem);justify-content:flex-end;margin:0 auto;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);outline:none;position:relative;width:100%}.multiselect.is-open{border-radius:var(--ms-radius,4px) var(--ms-radius,4px) 0 0}.multiselect.is-open-top{border-radius:0 0 var(--ms-radius,4px) var(--ms-radius,4px)}.multiselect.is-disabled{background:var(--ms-bg-disabled,#f3f4f6);cursor:default}.multiselect.is-active{border:var(--ms-border-width-active,var(--ms-border-width,1px)) solid var(--ms-border-color-active,var(--ms-border-color,#d1d5db));box-shadow:0 0 0 var(--ms-ring-width,3px) var(--ms-ring-color,rgba(16,185,129,.188))}.multiselect-wrapper{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;justify-content:flex-end;margin:0 auto;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);outline:none;position:relative;width:100%}.multiselect-multiple-label,.multiselect-placeholder,.multiselect-single-label{align-items:center;background:transparent;box-sizing:border-box;display:flex;height:100%;left:0;line-height:var(--ms-line-height,1.375);max-width:100%;padding-left:var(--ms-px,.875rem);padding-right:calc(1.25rem + var(--ms-px, .875rem)*3);pointer-events:none;position:absolute;top:0}.multiselect-placeholder{color:var(--ms-placeholder-color,#9ca3af)}.multiselect-single-label-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multiselect-search{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ms-bg,#fff);border:0;border-radius:var(--ms-radius,4px);bottom:0;box-sizing:border-box;font-family:inherit;font-size:inherit;height:100%;left:0;outline:none;padding-left:var(--ms-px,.875rem);position:absolute;right:0;top:0;width:100%}.multiselect-search::-webkit-search-cancel-button,.multiselect-search::-webkit-search-decoration,.multiselect-search::-webkit-search-results-button,.multiselect-search::-webkit-search-results-decoration{-webkit-appearance:none}.multiselect-tags{flex-grow:1;flex-shrink:1;flex-wrap:wrap;margin:var(--ms-tag-my,.25rem) 0 0;padding-left:var(--ms-py,.5rem)}.multiselect-tag,.multiselect-tags{align-items:center;display:flex;min-width:0}.multiselect-tag{background:var(--ms-tag-bg,#10b981);border-radius:var(--ms-tag-radius,4px);color:var(--ms-tag-color,#fff);font-size:var(--ms-tag-font-size,.875rem);font-weight:var(--ms-tag-font-weight,600);line-height:var(--ms-tag-line-height,1.25rem);margin-bottom:var(--ms-tag-my,.25rem);margin-right:var(--ms-tag-mx,.25rem);padding:var(--ms-tag-py,.125rem) 0 var(--ms-tag-py,.125rem) var(--ms-tag-px,.5rem);white-space:nowrap}.multiselect-tag.is-disabled{background:var(--ms-tag-bg-disabled,#9ca3af);color:var(--ms-tag-color-disabled,#fff);padding-right:var(--ms-tag-px,.5rem)}.multiselect-tag-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multiselect-tag-wrapper-break{white-space:normal;word-break:break-all}.multiselect-tag-remove{align-items:center;border-radius:var(--ms-tag-remove-radius,4px);display:flex;justify-content:center;margin:var(--ms-tag-remove-my,0) var(--ms-tag-remove-mx,.125rem);padding:var(--ms-tag-remove-py,.25rem) var(--ms-tag-remove-px,.25rem)}.multiselect-tag-remove:hover{background:rgba(0,0,0,.063)}.multiselect-tag-remove-icon{background-color:currentColor;display:inline-block;height:.75rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;opacity:.8;width:.75rem}.multiselect-tags-search-wrapper{display:inline-block;flex-grow:1;flex-shrink:1;height:100%;margin:0 var(--ms-tag-mx,4px) var(--ms-tag-my,4px);position:relative}.multiselect-tags-search-copy{display:inline-block;height:1px;visibility:hidden;white-space:pre-wrap;width:100%}.multiselect-tags-search{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;bottom:0;box-sizing:border-box;font-family:inherit;font-size:inherit;left:0;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.multiselect-tags-search::-webkit-search-cancel-button,.multiselect-tags-search::-webkit-search-decoration,.multiselect-tags-search::-webkit-search-results-button,.multiselect-tags-search::-webkit-search-results-decoration{-webkit-appearance:none}.multiselect-inifite{align-items:center;display:flex;justify-content:center;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);width:100%}.multiselect-inifite-spinner,.multiselect-spinner{animation:multiselect-spin 1s linear infinite;background-color:var(--ms-spinner-color,#10b981);flex-grow:0;flex-shrink:0;height:1rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 512 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 512 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:1rem;z-index:10}.multiselect-spinner{margin:0 var(--ms-px,.875rem) 0 0}.multiselect-clear{display:flex;flex-grow:0;flex-shrink:0;opacity:1;padding:0 var(--ms-px,.875rem) 0 0;position:relative;transition:.3s;z-index:10}.multiselect-clear:hover .multiselect-clear-icon{background-color:var(--ms-clear-color-hover,#000)}.multiselect-clear-icon{background-color:var(--ms-clear-color,#999);display:inline-block;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");transition:.3s}.multiselect-caret,.multiselect-clear-icon{height:1.125rem;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.625rem}.multiselect-caret{background-color:var(--ms-caret-color,#999);flex-grow:0;flex-shrink:0;margin:0 var(--ms-px,.875rem) 0 0;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");pointer-events:none;position:relative;transform:rotate(0);transition:transform .3s;z-index:10}.multiselect-caret.is-open{pointer-events:auto;transform:rotate(180deg)}.multiselect-dropdown{-webkit-overflow-scrolling:touch;background:var(--ms-dropdown-bg,#fff);border:var(--ms-dropdown-border-width,1px) solid var(--ms-dropdown-border-color,#d1d5db);border-radius:0 0 var(--ms-dropdown-radius,4px) var(--ms-dropdown-radius,4px);bottom:0;display:flex;flex-direction:column;left:calc(var(--ms-border-width, 1px)*-1);margin-top:calc(var(--ms-border-width, 1px)*-1);max-height:var(--ms-max-height,10rem);outline:none;overflow-y:scroll;position:absolute;right:calc(var(--ms-border-width, 1px)*-1);transform:translateY(100%);z-index:100}.multiselect-dropdown.is-top{border-radius:var(--ms-dropdown-radius,4px) var(--ms-dropdown-radius,4px) 0 0;bottom:auto;top:var(--ms-border-width,1px);transform:translateY(-100%)}.multiselect-dropdown.is-hidden{display:none}.multiselect-options{display:flex;flex-direction:column;list-style:none;margin:0;padding:0}.multiselect-group{margin:0;padding:0}.multiselect-group-label{align-items:center;background:var(--ms-group-label-bg,#e5e7eb);box-sizing:border-box;color:var(--ms-group-label-color,#374151);cursor:default;display:flex;font-size:.875rem;font-weight:600;justify-content:flex-start;line-height:var(--ms-group-label-line-height,1.375);padding:var(--ms-group-label-py,.3rem) var(--ms-group-label-px,.75rem);text-align:left;text-decoration:none}.multiselect-group-label.is-pointable{cursor:pointer}.multiselect-group-label.is-pointed{background:var(--ms-group-label-bg-pointed,#d1d5db);color:var(--ms-group-label-color-pointed,#374151)}.multiselect-group-label.is-selected{background:var(--ms-group-label-bg-selected,#059669);color:var(--ms-group-label-color-selected,#fff)}.multiselect-group-label.is-disabled{background:var(--ms-group-label-bg-disabled,#f3f4f6);color:var(--ms-group-label-color-disabled,#d1d5db);cursor:not-allowed}.multiselect-group-label.is-selected.is-pointed{background:var(--ms-group-label-bg-selected-pointed,#0c9e70);color:var(--ms-group-label-color-selected-pointed,#fff)}.multiselect-group-label.is-selected.is-disabled{background:var(--ms-group-label-bg-selected-disabled,#75cfb1);color:var(--ms-group-label-color-selected-disabled,#d1fae5)}.multiselect-group-options{margin:0;padding:0}.multiselect-option{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--ms-option-font-size,1rem);justify-content:flex-start;line-height:var(--ms-option-line-height,1.375);padding:var(--ms-option-py,.5rem) var(--ms-option-px,.75rem);text-align:left;text-decoration:none}.multiselect-option.is-pointed{background:var(--ms-option-bg-pointed,#f3f4f6);color:var(--ms-option-color-pointed,#1f2937)}.multiselect-option.is-selected{background:var(--ms-option-bg-selected,#10b981);color:var(--ms-option-color-selected,#fff)}.multiselect-option.is-disabled{background:var(--ms-option-bg-disabled,#fff);color:var(--ms-option-color-disabled,#d1d5db);cursor:not-allowed}.multiselect-option.is-selected.is-pointed{background:var(--ms-option-bg-selected-pointed,#26c08e);color:var(--ms-option-color-selected-pointed,#fff)}.multiselect-option.is-selected.is-disabled{background:var(--ms-option-bg-selected-disabled,#87dcc0);color:var(--ms-option-color-selected-disabled,#d1fae5)}.multiselect-no-options,.multiselect-no-results{color:var(--ms-empty-color,#4b5563);padding:var(--ms-option-py,.5rem) var(--ms-option-px,.75rem)}.multiselect-fake-input{background:transparent;border:0;bottom:-1px;font-size:0;height:1px;left:0;outline:none;padding:0;position:absolute;right:0;width:100%}.multiselect-fake-input:active,.multiselect-fake-input:focus{outline:none}.multiselect-assistive-text{clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;position:absolute;width:1px}.multiselect-spacer{display:none}[dir=rtl] .multiselect-multiple-label,[dir=rtl] .multiselect-placeholder,[dir=rtl] .multiselect-single-label{left:auto;padding-left:calc(1.25rem + var(--ms-px, .875rem)*3);padding-right:var(--ms-px,.875rem);right:0}[dir=rtl] .multiselect-search{padding-left:0;padding-right:var(--ms-px,.875rem)}[dir=rtl] .multiselect-tags{padding-left:0;padding-right:var(--ms-py,.5rem)}[dir=rtl] .multiselect-tag{margin-left:var(--ms-tag-mx,.25rem);margin-right:0;padding:var(--ms-tag-py,.125rem) var(--ms-tag-px,.5rem) var(--ms-tag-py,.125rem) 0}[dir=rtl] .multiselect-tag.is-disabled{padding-left:var(--ms-tag-px,.5rem)}[dir=rtl] .multiselect-caret,[dir=rtl] .multiselect-spinner{margin:0 0 0 var(--ms-px,.875rem)}[dir=rtl] .multiselect-clear{padding:0 0 0 var(--ms-px,.875rem)}@keyframes multiselect-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes blink-ad6da4a9{0%,to{opacity:1}50%{opacity:0}}.dot[data-v-ad6da4a9]{animation:blink-ad6da4a9 1.5s ease-in-out infinite}.dot--1[data-v-ad6da4a9]{animation-delay:0}.dot--2[data-v-ad6da4a9]{animation-delay:.5s}.dot--3[data-v-ad6da4a9]{animation-delay:1s}.ao-icon{color:inherit;fill:currentColor;width:var(--ao-icon-size);height:var(--ao-icon-size)}.ao-icon *{fill:inherit}.ao-icon--sm{--ao-icon-size: var(--ao-icon-size-sm)}.ao-icon--md{--ao-icon-size: var(--ao-icon-size-md)}.ao-icon--lg{--ao-icon-size: var(--ao-icon-size-lg)}.ao-icon--xl{--ao-icon-size: var(--ao-icon-size-xl)}.ao-button{--ao-button-main-color: initial;--ao-button-secondary-color: initial;--ao-button-color: var(--ao-button-main-color);--ao-button-bg: var(--ao-button-secondary);--ao-button-border-color: transparent;--ao-button-padding: var(--ao-space-sm);--ao-button-label-padding: var(--ao-space-sm);--ao-button-border-radius: var(--ao-border-radius-md);--ao-button-line-height: var(--ao-icon-size-md);--ao-button-font-size: var(--ao-font-size-button);display:flex;padding:var(--ao-button-padding);align-items:center;border-width:var(--ao-border-width-md);border-style:solid;border-radius:var(--ao-button-border-radius);border-color:var(--ao-button-border-color);color:var(--ao-button-color);background-color:var(--ao-button-bg);cursor:pointer;font-size:var(--ao-button-font-size);font-weight:var(--ao-font-weight-semi-bold);line-height:var(--ao-button-line-height)}.ao-button--primary{--ao-button-main-color: var(--ao-color-primary-base)}.ao-button--secondary{--ao-button-main-color: var(--ao-color-success)}.ao-button--neutral{--ao-button-main-color: var(--ao-color-neutral-base)}.ao-button--black{--ao-button-main-color: var(--ao-color-neutral-darkest)}.ao-button--warning{--ao-button-main-color: var(--ao-color-warning)}.ao-button--danger{--ao-button-main-color: var(--ao-color-danger)}.ao-button--success{--ao-button-main-color: var(--ao-color-success)}.ao-button--ghost{--ao-border-color: transparent;--ao-background-color: transparent}.ao-button--outline{--ao-button-border-color: var(--ao-button-main-color)}.ao-button--solid{--ao-button-color: var(--ao-button-secondary-color);--ao-button-bg: var(--ao-button-main-color);--ao-button-border-color: var(--ao-button-main-color)}.ao-button--solid:is(.ao-button--primary,.ao-button--secondary,.ao-button--neutral,.ao-button--black){--ao-button-color: var(--ao-color-white)}.ao-button--icon-start{flex-direction:row-reverse}.ao-button--icon-end{flex-direction:row}.ao-button__icon{flex-shrink:0}.ao-button__label{padding-inline:var(--ao-button-label-padding);flex:1;width:100%}.ao-button--footer{width:100%}.ao-button--footer .ao-button__label{text-align:center}.ao-button--is-disabled{cursor:default}.ao-button--sm{--ao-button-padding: var(--ao-space-xs);--ao-button-label-padding: var(--ao-space-xs);--ao-button-line-height: var(--ao-icon-size-sm);--ao-button-font-size: var(--ao-font-size-label)}.ao-button--lg{--ao-button-line-height: var(--ao-icon-size-lg);--ao-button-font-size: var(--ao-font-size-h4)}.ao-button--xl{--ao-button-line-height: var(--ao-icon-size-xl);--ao-button-font-size: var(--ao-font-size-h3)}.ao-button--round{--ao-button-border-radius: var(--ao-border-radius-round)}.ao-title{--ao-title-color: inherit;margin:0;font-weight:var(--ao-font-weight-semi-bold);font-family:var(--ao-font-family-title);color:var(--ao-title-color);cursor:default}.ao-title--editable{cursor:text}.ao-title--readonly{padding-block:var(--ao-space-md);border:var(--ao-input-border-width) solid transparent}.ao-title--1{font-size:var(--ao-font-size-h1)}.ao-title--2{font-size:var(--ao-font-size-h2)}.ao-title--3{font-size:var(--ao-font-size-h3)}.ao-title--4{font-size:var(--ao-font-size-h4)}.ao-title--5{font-size:var(--ao-font-size-h5)}.ao-title--primary{--ao-title-color: var(--ao-color-primary-base)}.ao-title--neutral{--ao-title-color: var(--ao-color-neutral-base)}.ao-title--black{--ao-title-color: var(--ao-color-neutral-darkest)}.ao-title--editing{--ao-title-color: var(--ao-color-primary-dark);width:100%}.ao-card-horiz{--ao-card-horiz-bg-color: var(--ao-color-card);--ao-card-horiz-text-color: inherit;--ao-card-horiz-label-color: var(--ao-color-neutral-base);display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto 1fr auto;grid-template-areas:"drag header secondary" "drag body body" "drag footer footer";border-radius:var(--ao-border-radius-md);color:var(--ao-card-horiz-text-color);background-color:var(--ao-card-horiz-bg-color);overflow:hidden;cursor:pointer;container:card-horiz / inline-size}.ao-card-horiz:hover{box-shadow:var(--ao-elevation-2dp)}.ao-card-horiz--active{--ao-card-horiz-bg-color: var(--ao-color-primary-base);--ao-card-horiz-text-color: var(--ao-color-white);box-shadow:var(--ao-elevation-2dp)}.ao-card-horiz__header{display:flex;align-items:center;padding-inline:var(--ao-space-md);padding-block-start:var(--ao-space-md);grid-area:header;width:100%}.ao-card-horiz__title-group{display:flex;flex-direction:column;flex-grow:1;overflow:hidden;width:100%}.ao-card-horiz__title{min-width:2ch;min-height:1em}.ao-card-horiz__title,.ao-card-horiz__subtitle{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:flex-start}.ao-card-horiz__subtitle{margin-top:var(--ao-space-xs);font-size:var(--ao-font-size-base)}.ao-card-horiz__body{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-md);padding-block:var(--ao-space-md);grid-area:body}.ao-card-horiz__footer{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-md);padding-block-end:var(--ao-space-md);grid-area:footer}.ao-card-horiz__drag{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);cursor:grab;grid-area:drag}.ao-card-horiz__drag-handle{opacity:0;visibility:hidden}.ao-card-horiz:hover .ao-card-horiz__drag-handle{opacity:1;visibility:visible}.ao-card-horiz__secondary{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);opacity:0;visibility:hidden;grid-area:secondary}.ao-card-horiz:hover .ao-card-horiz__secondary{opacity:1;visibility:visible}@container column (min-width: 480px){.ao-card-horiz{display:flex;flex-direction:row}.ao-card-horiz__header{padding-block:var(--ao-space-md);padding-inline-end:0;flex-shrink:1;min-width:0}.ao-card-horiz__body{padding-inline-end:0;flex-shrink:0}.ao-card-horiz__footer{align-items:flex-end;padding-block:var(--ao-space-md);grid-area:footer;flex-shrink:0}}@container column (min-width: 768px){.ao-card-horiz__header{width:50%}}@container column (min-width: 1024px){.ao-card-horiz__header{width:33%}}@container column (min-width: 1280px){.ao-card-horiz__header{width:25%}}.ao-tag{--ao-tag-color: var(--ao-color-text-contrast);--ao-tag-bg: var(transparent);--ao-tag-border-radius: var(--ao-border-radius-xl);display:flex;flex-direction:row;align-items:stretch;border:var(--ao-border-width-sm) var(--ao-tag-bg) solid;border-radius:var(--ao-tag-border-radius);font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-tag__icon{color:var(--ao-color-white)}.ao-tag--primary{--ao-tag-bg: var(--ao-color-primary-light)}.ao-tag--primary-lighter{--ao-tag-bg: var(--ao-color-primary-lighter)}.ao-tag--black{--ao-tag-bg: var(--ao-color-neutral-darkest)}.ao-tag--secondary{--ao-tag-bg: var(--ao-color-success)}.ao-tag--neutral{--ao-tag-bg: var(--ao-color-neutral-light)}.ao-tag--solid.ao-tag--neutral{--ao-tag-color: var(--ao-color-neutral-darkest)}.ao-tag--solid .ao-tag__label{background-color:var(--ao-tag-bg)}.ao-tag--solid_icon .ao-tag__label{background-color:var(--ao-tag-bg);display:flex;gap:var(--ao-space-sm)}.ao-tag--solid .ao-tag__close{background-color:var(--ao-tag-bg)}.ao-tag--clickable .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-neutral-lightest)}.ao-tag--clickable.ao-tag--primary .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-primary-lighter)}.ao-tag--clickable.ao-tag--black .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-neutral-dark)}.ao-tag--clickable .ao-tag__label{cursor:pointer}.ao-tag__label{padding:var(--ao-space-sm) var(--ao-space-md);color:var(--ao-tag-color);width:100%;border-radius:var(--ao-tag-border-radius);font-size:inherit;font-weight:inherit;text-align:inherit;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background-color:transparent;border-width:0}.ao-tag--closable .ao-tag__label{border-top-right-radius:0;border-bottom-right-radius:0}.ao-tag__close{display:flex;border-width:0;border-top-right-radius:var(--ao-tag-border-radius);border-bottom-right-radius:var(--ao-tag-border-radius);color:var(--ao-tag-color);background-color:transparent;cursor:pointer}.ao-tag--close-icon{padding:var(--ao-space-xs) var(--ao-space-md)}.ao-avatar{--ao-avatar-bg: var(--ao-color-primary-base);--ao-avatar-color: var(--ao-color-neutral-lightest);--ao-avatar-font-weight: --ao-font-weight-medium;--ao-avatar-font-size: var(--ao-font-size-base);--ao-avatar-padding: .5em;color:var(--ao-avatar-color);background-color:var(--ao-avatar-bg);position:relative;border-radius:var(--ao-border-radius-round);line-height:1;display:grid;grid-template-areas:"center";align-items:center;justify-content:center;padding:var(--ao-avatar-padding);cursor:default;overflow:hidden;font-weight:var(--ao-avatar-font-weight);font-size:var(--ao-avatar-font-size);flex-shrink:0}.ao-avatar--sm{--ao-avatar-font-weight: var(--ao-font-weight-bold);--ao-avatar-font-size: var(--ao-font-size-tag);--ao-avatar-padding: .8em}.ao-avatar--lg{--ao-avatar-font-weight: var(--ao-font-weight-light);--ao-avatar-font-size: var(--ao-font-size-h3)}.ao-avatar--xl{--ao-avatar-font-weight: var(--ao-font-weight-extra-light);--ao-avatar-font-size: var(--ao-font-size-h1)}.ao-avatar--primary{--ao-avatar-bg: var(--ao-color-primary-base)}.ao-avatar--neutral{--ao-avatar-bg: var(--ao-color-neutral-base)}.ao-avatar--black{--ao-avatar-bg: var(--ao-color-neutral-darkest)}.ao-avatar__initials{display:flex;flex-direction:column;grid-area:center;justify-content:center;align-items:center;width:1em;height:1em;text-align:center;text-transform:uppercase}.ao-avatar__close{grid-area:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);opacity:0;visibility:hidden}.ao-avatar:hover,.ao-avatar-img:hover{z-index:1}.ao-avatar:hover .ao-avatar__close,.ao-avatar-img:hover .ao-avatar__close{transform:translate(-50%,-50%) scale(1);opacity:1;visibility:visible}.ao-avatar-img--sm{width:var(--ao-icon-size-sm);height:var(--ao-icon-size-sm)}.ao-avatar-img--md{width:var(--ao-icon-size-md);height:var(--ao-icon-size-md)}.ao-avatar-img--lg{width:var(--ao-icon-size-lg);height:var(--ao-icon-size-lg)}.ao-avatar-img--xl{width:var(--ao-icon-size-xl);height:var(--ao-icon-size-xl)}.ao-avatar-img{position:relative;border-radius:var(--ao-border-radius-round);display:grid;grid-template-areas:"center";align-items:center;justify-content:center;cursor:default;overflow:hidden;flex-shrink:0}.ao-avatar__image{width:100%;height:100%}.ao-card-template__body{display:flex;flex-direction:row;align-items:center;flex:1}.ao-card-template__footer{display:flex;gap:var(--ao-space-md)}.ao-card-template__col-title{display:flex;align-items:center;gap:var(--ao-space-sm)}.ao-card-template__col-label{font-size:var(--ao-font-size-label);font-weight:600}.ao-card-template__col{display:flex;flex-direction:column;gap:var(--ao-space-md);color:var(--ao-color-neutral-dark);font-size:var(--ao-font-size-label)}.ao-card-template__col--phases{flex-grow:1;color:var(--ao-color-neutral-darkest)}.ao-card-template__phases-list{display:flex;gap:var(--ao-space-sm);padding:0;margin:0}.ao-card-template__col-body{display:flex;flex-direction:row;align-items:flex-start;flex:1}.ao-card-template__subitems{display:flex;margin:0;padding:0;gap:var(--ao-space-sm)}.ao-card-template__subitem{display:flex;align-items:center;list-style-type:none;font-size:var(--ao-font-size-label);font-weight:var(--ao-font-weight-semi-bold)}.ao-page-header{display:flex;container:header / inline-size;z-index:1}.ao-page-header-main{display:flex;gap:var(--ao-space-sm);flex-grow:1}.ao-page-header-secondary{display:flex;gap:var(--ao-space-sm)}@container header (min-width: 720px){.ao-page-header-main{flex-direction:row;align-items:center}.ao-page-header-secondary{margin-inline-start:auto;align-items:center;justify-content:flex-end;flex-grow:1}}.ao-button-card{--ao-button-card-color: inherit;--ao-button-card-bg: transparent;--ao-button-card-border-color: currentColor;--ao-button-card-padding: var(--ao-space-md);--ao-button-card-label-padding: var(--ao-space-sm);--ao-button-card-border-radius: var(--ao-border-radius-md);display:flex;width:100%;flex:1;justify-content:center;padding:var(--ao-button-card-padding);flex-direction:column-reverse;align-items:center;border-width:var(--ao-border-width-sm);border-style:dashed;border-radius:var(--ao-button-card-border-radius);border-color:var(--ao-button-card-border-color);color:var(--ao-button-card-color);background-color:var(--ao-button-card-bg);cursor:pointer;font-size:var(--ao-font-size-button);font-weight:var(--ao-font-weight-semi-bold)}.ao-button-card--primary{--ao-button-card-color: var(--ao-color-primary-base)}.ao-button-card--secondary{--ao-button-card-color: var(--ao-color-success)}.ao-button-card--neutral{--ao-button-card-color: var(--ao-color-neutral-base)}.ao-button-card--black{--ao-button-card-color: var(--ao-color-neutral-darkest)}.ao-button-card__icon{flex-shrink:0}.ao-button-card__label{padding-inline:var(--ao-button-card-label-padding);width:100%}.ao-button-card--footer{width:100%}.ao-button-card--footer .ao-button-card__label{text-align:center}.ao-button-card--is-disabled{cursor:default}.ao-button-card--sm{--ao-button-card-padding: var(--ao-space-xs);--ao-button-card-label-padding: var(--ao-space-xs)}.ao-button-card--round{--ao-button-card-border-radius: var(--ao-border-radius-round)}.ao-card-template-item__footer{display:flex;flex:1;padding:0;margin:0;justify-content:flex-end;gap:var(--ao-space-sm);align-items:center}.ao-card-template-item__subitem{display:flex;align-items:center}.ao-card-template-item__subitem{font-size:var(--ao-font-size-label);font-weight:var(--ao-font-weight-bold)}.ao-modal__wrapper{--ao-modal-z-index: 100;--ao-modal-padding-x: var(--ao-space-sm);display:grid;grid-template-columns:5% 1fr 5%;grid-template-rows:5vh 1fr 5vh;position:absolute;top:0;left:0;width:100%;height:100%;justify-items:center;align-items:flex-start;z-index:var(--ao-modal-z-index)}.ao-modal__wrapper.ao-modal__wrapper--sm{grid-template-columns:10% 1fr 10%;grid-template-rows:15vh auto 25vh}.ao-modal__backdrop{width:100%;height:100%;grid-column:1 / -1;grid-row:1 / -1;background-color:var(--ao-color-backdrop)}.ao-modal{display:flex;width:100%;max-width:768px;height:100%;min-height:0;flex-direction:column;overflow-y:auto;grid-column:1 / -1;grid-row:1 / -1;background-color:var(--ao-color-sheet);container:modal / inline-size}.ao-modal__wrapper--sm .ao-modal{height:auto}.ao-modal__header{display:flex;flex-direction:column;padding-inline:var(--ao-modal-padding-x)}.ao-modal__header-meta{display:flex;justify-content:flex-end}.ao-modal__body{display:flex;height:100%;min-height:0;flex-direction:column;flex-grow:1}.ao-modal__footer{display:flex;flex-direction:column}@media screen and (min-width: 480px){.ao-modal__wrapper{--ao-modal-padding-x: var(--ao-space-lg)}.ao-modal{grid-column:2;grid-row:2;border-radius:var(--ao-border-radius-sm)}.ao-modal__body{flex-direction:row;overflow-y:auto}}@media screen and (min-width: 720px){.ao-modal__wrapper{--ao-modal-padding-x: var(--ao-space-xl)}.ao-modal{grid-column:2;grid-row:2;border-radius:var(--ao-border-radius-sm)}.ao-modal__body{flex-direction:row;overflow:hidden}}.ao-tasks{display:flex;flex-direction:column}.ao-tasks__list{display:flex;flex-direction:column;padding-inline-start:0;margin-block:0;gap:var(--ao-space-md)}.ao-tasks__list-footer{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding-block-start:var(--ao-space-md)}.ao-tasks__list-footer .ao-button{padding-left:0}.ao-subtask{display:flex;list-style-type:none;gap:var(--ao-space-md)}.ao-subtask__check{padding-left:0}.ao-subtask__field{flex-grow:1;border:0;border-bottom:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:0}.ao-subtask__field--checked{text-decoration:line-through}.ao-subtask__field:focus{outline:none;border-bottom:var(--ao-border-width-md) solid var(--ao-input-border-color)}.ao-subtask__assignees{width:30%}.ao-subtask__assignees .multiselect-tags{flex-wrap:nowrap;overflow-x:auto;gap:var(--ao-space-xs)}.ao-subtask__assignees .multiselect-wrapper{justify-content:flex-start}.ao-subtask__delete{opacity:0;visibility:hidden}.ao-subtask:is(:hover,:focus-within) .ao-subtask__delete{opacity:1;visibility:visible}.ao-files__wrapper{--ao-input-file-color: var(--ao-color-neutral-darkest);--ao-input-file-border-color: transparent;--ao-input-file-placeholder-color: var(--ao-color-neutral-base);--ao-input-file-bg: transparent;position:relative;display:flex;width:100%;flex-direction:column;flex:1;border:var(--ao-border-width-md) solid var(--ao-input-file-border-color);border-radius:var(--ao-border-radius-md);background-color:var(--ao-input-file-bg);font-family:inherit;font-size:var(--ao-font-size-text);color:var(--ao-input-file-color);overflow-y:auto}.ao-files__wrapper--drop-active{--ao-input-file-border-color: var(--ao-color-primary-base);--ao-input-file-bg: var(--ao-color-primary-lightest);outline:0}.input-field{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ao-files__input{display:flex}.ao-files__placeholder{width:100%;margin-block-start:var(--ao-space-md);text-align:center;color:var(--ao-color-neutral-base)}.ao-files__list{display:flex;padding:0;padding-block-start:var(--ao-space-md);margin:0;gap:var(--ao-space-sm);flex-wrap:wrap}.ao-file{display:flex;position:relative;padding:0;padding-inline-end:var(--ao-space-xl);list-style-type:none;background-color:var(--ao-color-primary-lighter);border-radius:var(--ao-border-radius-md)}.ao-files__delete-button{position:absolute;top:50%;right:0;transform:translateY(-50%) scale(0);transition:50ms var(--ao-transition-ease)}.ao-file:is(:hover,:focus-within) .ao-files__delete-button{transform:translateY(-50%) scale(1)}.ao-file__link{width:100%;display:flex;flex:1;align-items:center;padding-block:var(--ao-space-md);padding-inline-start:var(--ao-space-md);color:var(--ao-color-primary-darker);text-decoration:none}.ao-file__icon{flex:0}.ao-file__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ao-font-size-label)}.ao-files__dropzone{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--ao-color-backdrop)}.ao-files__dropzone-label{font-size:var(--ao-font-size-text);color:var(--ao-color-text-contrast)}.ao-markdown-content{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow-wrap:anywhere;word-break:break-word;font-size:var(--ao-font-size-text);line-height:1.5;color:var(--ao-color-black)}.ao-markdown-content p,.ao-markdown-content h1,.ao-markdown-content h2,.ao-markdown-content h3,.ao-markdown-content pre{margin:0 0 var(--ao-space-sm) 0}.ao-markdown-content p:last-child,.ao-markdown-content h1:last-child,.ao-markdown-content h2:last-child,.ao-markdown-content h3:last-child,.ao-markdown-content pre:last-child{margin-bottom:0}.ao-markdown-content h1,.ao-markdown-content h2,.ao-markdown-content h3{line-height:1.25}.ao-markdown-content h1{font-size:1.5em}.ao-markdown-content h2{font-size:1.25em}.ao-markdown-content h3{font-size:1.1em}.ao-markdown-content strong{font-weight:var(--ao-font-weight-semi-bold)}.ao-markdown-content em{font-style:italic}.ao-markdown-content s,.ao-markdown-content del{text-decoration:line-through}.ao-markdown-content code{padding:.1em .3em;border-radius:var(--ao-border-radius-sm);background-color:var(--ao-color-neutral-lightest);font-family:monospace}.ao-markdown-content pre{max-width:100%;padding:var(--ao-space-md);overflow-x:auto;border-radius:var(--ao-border-radius-sm);background-color:var(--ao-color-neutral-lightest);white-space:pre}.ao-markdown-content pre code{padding:0;background:transparent}.ao-markdown-content ul,.ao-markdown-content ol{margin:0 0 var(--ao-space-sm) 0;padding-inline-start:var(--ao-space-lg)}.ao-markdown-content ul{list-style-type:disc}.ao-markdown-content ol{list-style-type:decimal}.ao-markdown-content li{margin-bottom:var(--ao-space-xs)}.ao-markdown-content li:last-child{margin-bottom:0}.ao-markdown-content--placeholder{color:var(--ao-color-neutral-base);font-style:italic}.ao-lexical-editor{position:relative;width:100%;max-width:100%;min-width:0;box-sizing:border-box;background-color:var(--ao-color-white)}.ao-lexical-editor--compact .ao-lexical-editor__content{min-height:60px}.ao-lexical-editor__content{display:block;width:100%;max-width:100%;min-width:0;min-height:120px;box-sizing:border-box;padding:var(--ao-space-md);outline:none;overflow-x:hidden;overflow-wrap:anywhere;word-break:break-word;white-space:pre-wrap;font-size:var(--ao-font-size-text);line-height:1.5;color:var(--ao-color-black);cursor:text}.ao-lexical-editor__placeholder{position:absolute;top:var(--ao-space-md);left:var(--ao-space-md);color:var(--ao-color-neutral);pointer-events:none}.ao-lexical-editor__paragraph{margin:0 0 var(--ao-space-sm) 0}.ao-lexical-editor__heading-h1,.ao-lexical-editor__heading-h2,.ao-lexical-editor__heading-h3{margin:0 0 var(--ao-space-sm) 0;line-height:1.25}.ao-lexical-editor__heading-h1{font-size:1.5em}.ao-lexical-editor__heading-h2{font-size:1.25em}.ao-lexical-editor__heading-h3{font-size:1.1em}.ao-lexical-editor__code-block{margin:0 0 var(--ao-space-sm) 0;padding:var(--ao-space-md);overflow-x:auto;border-radius:var(--ao-border-radius-sm);background-color:var(--ao-color-neutral-lightest);font-family:monospace;white-space:pre}.ao-lexical-editor__text-bold{font-weight:var(--ao-font-weight-semi-bold)}.ao-lexical-editor__text-italic{font-style:italic}.ao-lexical-editor__text-strikethrough{text-decoration:line-through}.ao-lexical-editor__inline-code{padding:.1em .3em;border-radius:var(--ao-border-radius-sm);background-color:var(--ao-color-neutral-lightest);font-family:monospace}.ao-lexical-editor__list-ul,.ao-lexical-editor__list-ol{margin:0 0 var(--ao-space-sm) 0;padding-inline-start:var(--ao-space-lg)}.ao-lexical-editor__list-ul{list-style-type:disc}.ao-lexical-editor__list-ol{list-style-type:decimal}.ao-lexical-editor__list-item{margin-bottom:var(--ao-space-xs)}.ao-comment-editor{position:relative;width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:visible;border:var(--ao-border-width-sm) solid var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-sm);background-color:var(--ao-color-white);transition:border-color .15s var(--ao-transition-ease)}.ao-comment-editor--focused{border-color:var(--ao-color-primary-base)}.ao-comment-editor__toolbar{display:flex;align-items:center;gap:var(--ao-space-xs);min-height:34px;padding:var(--ao-space-xs) var(--ao-space-sm);border-bottom:var(--ao-border-width-sm) solid var(--ao-color-neutral-light);background-color:var(--ao-color-neutral-lightest)}.ao-comment-editor__toolbar-button{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 var(--ao-space-sm);border:0;border-radius:var(--ao-border-radius-sm);background:transparent;color:var(--ao-color-black);font:inherit;font-size:var(--ao-font-size-text);line-height:1;cursor:pointer}.ao-comment-editor__toolbar-button:hover{background-color:var(--ao-color-neutral-light)}.ao-comment-editor__toolbar-divider{flex:0 0 auto;width:var(--ao-border-width-sm);height:var(--ao-space-xl);margin:0 var(--ao-space-xs);background-color:var(--ao-color-neutral-light)}.ao-comment-editor__wrapper{position:relative;min-width:0}.ao-comment-editor .ao-lexical-editor__content{min-height:56px;padding:var(--ao-space-sm) 46px var(--ao-space-sm) var(--ao-space-sm);line-height:1.45}.ao-comment-editor .ao-lexical-editor__paragraph{margin-bottom:var(--ao-space-xs)}.ao-comment-editor .ao-lexical-editor__paragraph:last-child{margin-bottom:0}.ao-comment-editor .ao-lexical-editor__placeholder{top:var(--ao-space-sm);left:var(--ao-space-sm);color:var(--ao-color-neutral-base);font-style:italic;opacity:.7}.ao-comment-editor__mention-list{position:absolute;z-index:1000;min-width:190px;max-width:min(280px,calc(100% - var(--ao-space-md)));max-height:220px;padding:var(--ao-space-sm);margin:var(--ao-space-sm) 0 0;overflow-y:auto;list-style:none;border:var(--ao-border-width-sm) solid var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-sm);background:var(--ao-color-white);box-shadow:var(--ao-elevation-4dp)}.ao-comment-editor__mention-list li{display:flex;align-items:center;min-height:34px;padding:var(--ao-space-sm) var(--ao-space-md);border-radius:var(--ao-border-radius-sm);color:var(--ao-color-black);font-size:var(--ao-font-size-text);line-height:1.3;cursor:pointer}.ao-comment-editor__mention-list li:hover,.ao-comment-editor__mention-item--selected{background-color:var(--ao-color-neutral-lightest)}.ao-comment-editor__submit{position:absolute;right:var(--ao-space-sm);bottom:var(--ao-space-sm);display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:var(--ao-border-radius-round);background-color:var(--ao-color-primary-base);color:var(--ao-color-white);cursor:pointer}.ao-comment-editor__submit:hover{background-color:var(--ao-color-primary-dark)}.ao-comment-editor__submit:focus-visible{outline:var(--ao-border-width-md) solid var(--ao-color-primary-base);outline-offset:var(--ao-space-xs)}.ao-comment{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:var(--ao-space-sm);row-gap:var(--ao-space-xs);align-items:start;width:100%;min-width:0;font-size:var(--ao-font-size-text)}.ao-comment__created-at{grid-column:2;grid-row:1;display:block;margin:0;font-size:var(--ao-font-size-tag);line-height:1.2;color:var(--ao-color-neutral-base)}.ao-comment__avatar{grid-column:1;grid-row:2;align-self:start;margin-top:var(--ao-space-xs)}.ao-comment__body{grid-column:2;grid-row:2;min-width:0}.ao-comment__content-wrapper{width:100%;min-width:0}.ao-comment__content{width:100%;min-width:0;margin:0;line-height:1.3;white-space:normal}.ao-comment__content p,.ao-comment__content ul,.ao-comment__content ol,.ao-comment__content pre,.ao-comment__content h1,.ao-comment__content h2,.ao-comment__content h3{margin:0}.ao-comment__content p+p{margin-top:var(--ao-space-xs)}.ao-comment__content li{margin-bottom:0}.ao-comment__content br{line-height:1.2}.ao-comment__footer{display:flex;align-items:center;gap:var(--ao-space-xs);margin-top:var(--ao-space-xs)}.ao-comment__footer .ao-button{margin:0}.ao-comments{display:flex;flex:3;flex-direction:column;min-height:0;gap:var(--ao-space-xl);padding:var(--ao-space-md) var(--ao-space-sm) var(--ao-space-xl);overflow-y:auto}.ao-comments__new{position:relative;flex:0 0 auto;width:100%}.ao-comments__list{display:flex;flex:0 0 auto;flex-direction:column-reverse;gap:var(--ao-space-xl);width:100%;padding:0;margin:0;list-style:none}.tabbar-wrapper[data-v-3d268d7b]{display:flex;align-items:center;gap:var(--ao-space-xs);margin:0;padding:var(--ao-space-sm);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-neutral-lightest);font-size:var(--ao-font-size-text)}.tab-button[data-v-3d268d7b]{position:relative;display:inline-flex;align-items:center;gap:var(--ao-space-xs);min-height:34px;padding:var(--ao-space-xs) var(--ao-space-sm);border:0;outline:0;border-radius:var(--ao-border-radius-sm);background-color:transparent;color:var(--ao-color-black);font:inherit;line-height:1.2;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s var(--ao-transition-ease),color .15s var(--ao-transition-ease)}.tab-button[data-v-3d268d7b]:hover{background-color:var(--ao-color-neutral-light)}.tab-button[data-v-3d268d7b]:active{background-color:var(--ao-color-neutral-base)}.tab-button[data-v-3d268d7b]:focus{outline:0}.tab-button[data-v-3d268d7b]:focus-visible{outline:0;background-color:var(--ao-color-neutral-lightest)}.tab-button__label[data-v-3d268d7b]{display:inline-block;white-space:nowrap}.tab-button__badge[data-v-3d268d7b]{display:inline-flex;align-items:center;justify-content:center;min-width:var(--ao-space-xl);height:var(--ao-space-xl);box-sizing:border-box;padding:0 var(--ao-space-sm);border-radius:var(--ao-border-radius-round);background-color:var(--ao-color-neutral-light);color:var(--ao-color-neutral-dark);font-size:var(--ao-font-size-tag);line-height:1}.tab-button--active[data-v-3d268d7b]{background-color:var(--ao-color-primary-base);color:var(--ao-color-white)}.tab-button--active .tab-button__badge[data-v-3d268d7b]{background-color:var(--ao-color-white);color:var(--ao-color-primary-base)}.tabbar-wrapper--underline[data-v-3d268d7b]{gap:var(--ao-space-sm);padding:var(--ao-space-sm) var(--ao-space-md) 0;margin:var(--ao-space-md) 0 var(--ao-space-xl);border-bottom:var(--ao-border-width-sm) solid var(--ao-color-neutral-light);border-radius:0;background:transparent}.tab-button--underline[data-v-3d268d7b]{min-height:36px;padding:var(--ao-space-sm) var(--ao-space-md);margin-bottom:calc(-1 * var(--ao-border-width-sm));border-radius:var(--ao-border-radius-sm) var(--ao-border-radius-sm) 0 0;border-bottom:var(--ao-border-width-md) solid transparent;background:transparent;color:var(--ao-color-neutral-dark)}.tab-button--underline[data-v-3d268d7b]:hover{background-color:var(--ao-color-neutral-lightest);color:var(--ao-color-black)}.tab-button--underline[data-v-3d268d7b]:active{background-color:var(--ao-color-neutral-light);color:var(--ao-color-primary-base)}.tab-button--underline[data-v-3d268d7b]:focus,.tab-button--underline[data-v-3d268d7b]:focus-visible{outline:0;box-shadow:none}.tab-button--underline[data-v-3d268d7b]:focus-visible{background-color:var(--ao-color-neutral-lightest);color:var(--ao-color-black)}.tab-button--underline.tab-button--active[data-v-3d268d7b]{border-bottom-color:var(--ao-color-primary-base);background:transparent;color:var(--ao-color-primary-base)}.tab-button--underline.tab-button--active[data-v-3d268d7b]:hover,.tab-button--underline.tab-button--active[data-v-3d268d7b]:focus-visible{background-color:var(--ao-color-primary-lightest)}.tab-button--underline.tab-button--active[data-v-3d268d7b]:active{background-color:var(--ao-color-primary-lighter)}.tab-button--underline .tab-button__badge[data-v-3d268d7b]{background-color:var(--ao-color-neutral-lightest);color:var(--ao-color-neutral-dark)}.tab-button--underline.tab-button--active .tab-button__badge[data-v-3d268d7b]{background-color:var(--ao-color-primary-lightest);color:var(--ao-color-primary-base)}.ao-rich-text-editor{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;border:var(--ao-border-width-sm) solid var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-sm);background-color:var(--ao-color-white)}.ao-rich-text-editor__toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ao-space-xs);width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:var(--ao-space-xs) var(--ao-space-sm);border-bottom:var(--ao-border-width-sm) solid var(--ao-color-neutral-light);background-color:var(--ao-color-neutral-lightest)}.ao-rich-text-editor__select{min-width:118px;height:30px;padding-inline:var(--ao-space-sm);border:var(--ao-border-width-sm) solid var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-sm);background-color:var(--ao-color-white);color:var(--ao-color-black);font:inherit;cursor:pointer}.ao-rich-text-editor__toolbar-button{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-width:30px;height:30px;padding-inline:var(--ao-space-xs);border:0;border-radius:var(--ao-border-radius-sm);background:transparent;color:var(--ao-color-black);cursor:pointer;font:inherit}.ao-rich-text-editor__toolbar-button:hover{background-color:var(--ao-color-neutral-light)}.ao-rich-text-editor__toolbar-divider{flex:0 0 auto;width:1px;height:22px;margin-inline:var(--ao-space-xs);background-color:var(--ao-color-neutral-light)}.ao-rich-text-editor__actions{display:flex;justify-content:flex-end;gap:var(--ao-space-sm);padding:var(--ao-space-sm);border-top:var(--ao-border-width-sm) solid var(--ao-color-neutral-light);background-color:var(--ao-color-neutral-lightest)}.ao-activity-details{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;flex-grow:1;overflow-y:auto}.ao-activity-details__header{display:flex;flex-direction:column;padding:var(--ao-space-xl) var(--ao-space-lg) var(--ao-space-md)}.ao-activity-details__main{flex-grow:1;padding:var(--ao-space-lg)}.ao-activity__category{font-weight:var(--ao-font-weight-regular)}.ao-activity-details__content{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-lg)}.ao-activity-details__aside{border-top:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest);margin-block-start:var(--ao-space-lg);padding-block-start:var(--ao-space-lg);display:flex;flex-direction:column}.ao-activity-details__aside-section:not(:empty){padding:var(--ao-space-xl) var(--ao-space-lg)}.ao-activity-details__aside-section+.ao-activity-details__aside-section:not(:empty){border-block-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-light)}.ao-field__input--estim{width:8ch}@container modal (min-width: 480px){.ao-activity-details__content{overflow-y:auto}.ao-activity-details__aside{margin-block-start:0;border-top:0}}@container modal (min-width: 720px){.ao-activity-details{display:flex;flex-direction:column;height:auto;min-height:auto;flex-grow:1;flex-direction:row}.ao-activity-details__main{height:100%;min-height:0;flex-grow:1;overflow-y:auto}.ao-activity-details__aside{width:35%;background-color:var(--ao-color-canvas);padding-block-end:var(--ao-space-xl);padding-block-start:var(--ao-space-sm)}.ao-activity-details__aside>:nth-child(2){padding-block-start:var(--ao-space-md)}.ao-activity-details__close-button{display:flex;flex-direction:row;justify-content:end;margin-inline-end:var(--ao-space-sm)}.ao-activity-details__close-button *{cursor:pointer}.ao-activity-details__aside-section--created-by{margin-block-start:auto;border-block-start-width:0}.ao-activity-details__multiselect .multiselect-tags-search{background-color:transparent}.ao-activity-details__multiselect.ao-multiselect{--ms-font-size: var(--ao-font-size-label);--ms-bg: transparent;--ms-line-height: 1;--ms-border-color: none;--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: none;--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-sm);--ms-py: var(--ao-space-sm);--ms-px: var(--ao-space-sm);--ms-ring-color: transparent;--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}.ao-field__input:not(.ao-field__input--estim){background-color:transparent;border-color:transparent}}.ao-activity__created-by{display:flex;align-items:center;gap:var(--ao-space-sm)}.ao-activity__ao-tag{display:inline-flex;width:auto;border:none;border-radius:var(--ao-tag-border-radius)}.ao-activity__ao-tag .ao-tag__label{width:auto;max-width:100%}.assignee-inline{display:flex;align-items:center;gap:8px}.ao-activity-details__tabs{margin-block:var(--ao-space-md)}.ao-activity-details__tab-content{padding-block:var(--ao-space-md)}.ao-activity-details__description-textarea{width:100%;padding:var(--ao-space-md);border:1px solid var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-sm);background-color:var(--ao-color-white);font-family:inherit;font-size:var(--ao-font-size-base);line-height:1.5;resize:vertical;transition:border-color .2s ease,box-shadow .2s ease}.ao-activity-details__description-textarea:hover{border-color:var(--ao-color-neutral-dark)}.ao-activity-details__description-textarea:focus{outline:none;border-color:var(--ao-color-primary-base);box-shadow:0 0 0 2px var(--ao-color-primary-lightest)}.ao-activity-details__description-textarea:read-only{background-color:transparent;border-color:transparent;cursor:default}.ao-activity-details__description-textarea:read-only:hover{border-color:transparent}.ao-activity-details__description{padding:var(--ao-space-md);border-radius:var(--ao-border-radius-sm);min-height:100px}.ao-activity-details__description--editable{cursor:pointer;transition:background-color .2s ease}.ao-activity-details__description--editable:hover{background-color:var(--ao-color-neutral-lightest)}.ao-rule-line{display:flex}.ao-rule-line__remove{visibility:hidden;opacity:0}.ao-rule-line:hover .ao-rule-line__remove{visibility:visible;opacity:1}.ao-template-rules__body{display:flex;flex-direction:column;flex:1;align-items:stretch;gap:var(--ao-space-lg)}.ao-template-rules__list{padding:0;margin:0;display:flex;flex-direction:column;flex:1;gap:var(--ao-space-md)}.ao-template-rule{list-style:none}.ao-template-details__cols{display:flex;list-style-type:none;padding:0;margin:0;container:columns / inline-size;overflow-x:auto}.ao-template-details__col{width:100%;padding-inline:var(--ao-space-md);flex-shrink:0}@container columns (min-width: 480px){.ao-template-details__col{width:50%}}@container columns (min-width: 960px){.ao-template-details__col{width:calc(1 / 3 * 100%)}}.ao-card{--ao-card-bg: var(--ao-color-card);--ao-card-color: inherit;--ao-card-padding: var(--ao-space-md);--ao-card-elevation: var(--ao-elevation-2dp);display:flex;flex-direction:row;border-radius:var(--ao-border-radius-md);background-color:var(--ao-card-bg);color:var(--ao-card-color);box-shadow:var(--ao-card-elevation);transform:translateY(0)}.ao-card__content{display:flex;flex-direction:column;width:100%}.ao-card__left-border{width:var(--ao-space-md);border-top-left-radius:var(--ao-border-radius-md);border-bottom-left-radius:var(--ao-border-radius-md)}:not(.ao-list-kanban__transition)>.ao-card{transition:all .15s var(--ao-transition-ease)}.ao-card--clickable{cursor:pointer}.ao-card--clickable:is(:hover,:focus-within){--ao-card-elevation: var(--ao-elevation-4dp);transform:translateY(-2px)}.ao-card__header{display:flex;flex-direction:column;padding-block-start:var(--ao-card-padding);padding-inline:var(--ao-card-padding)}.ao-card__body{display:flex;flex-direction:column;flex:1;padding-inline:var(--ao-card-padding)}.ao-card__footer{display:flex;flex-direction:column;padding-block-end:var(--ao-card-padding);padding-inline:var(--ao-card-padding)}.ao-progress{--ao-progress-bg: var(--ao-color-neutral-lightest);--ao-progress-height: var(--ao-grid-size);--ao-progress-border-radius: var(--ao-border-radius-md);height:var(--ao-progress-height);width:100%;display:grid;grid-column:1 / -1;grid-row:2;background-color:var(--ao-progress-bg);border-radius:var(--ao-progress-border-radius)}.ao-progress__progress{grid-column:1;grid-row:1;border-radius:var(--ao-progress-border-radius);background-color:var(--ao-progress-color);opacity:.2}.ao-progress--success{--ao-progress-color: var(--ao-color-success)}.ao-progress--warning{--ao-progress-color: var(--ao-color-warning)}.ao-progress--danger{--ao-progress-color: var(--ao-color-danger)}.ao-progress__progress:nth-child(1){opacity:1;z-index:1}.hu-color-picker{padding:10px;background:#1d2024;border-radius:4px;box-shadow:0 0 16px #00000029;z-index:1}.hu-color-picker.light{background:#f7f8f9}.hu-color-picker.light .color-show .sucker{background:#eceef0}.hu-color-picker.light .color-type .name{background:#e7e8e9}.hu-color-picker.light .color-type .value{color:#666;background:#eceef0}.hu-color-picker.light .colors.history{border-top:1px solid #eee}.hu-color-picker canvas{vertical-align:top}.hu-color-picker .color-set{display:flex}.hu-color-picker .color-show{margin-top:8px;display:flex}.saturation{position:relative;cursor:pointer}.saturation .slide{position:absolute;left:100px;top:0;width:10px;height:10px;border-radius:50%;border:1px solid #fff;box-shadow:0 0 1px 1px #0000004d;pointer-events:none}.color-type{display:flex;margin-top:8px;font-size:12px}.color-type .name{width:60px;height:30px;float:left;display:flex;justify-content:center;align-items:center;color:#999;background:#252930}.color-type .value{flex:1;height:30px;min-width:100px;padding:0 12px;border:0;color:#fff;background:#2e333a;box-sizing:border-box}.color-alpha{position:relative;margin-left:8px;cursor:pointer}.color-alpha .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.sucker{width:30px;fill:#9099a4;background:#2e333a;cursor:pointer;transition:all .3s}.sucker.active,.sucker:hover{fill:#1593ff}.colors{padding:0;margin:0}.colors.history{margin-top:10px;border-top:1px solid #2e333a}.colors .item{position:relative;width:16px;height:16px;margin:10px 0 0 10px;border-radius:3px;box-sizing:border-box;vertical-align:top;display:inline-block;transition:all .1s;cursor:pointer}.colors .item:nth-child(8n+1){margin-left:0}.colors .item:hover{transform:scale(1.4)}.colors .item .alpha{height:100%;border-radius:4px}.colors .item .color{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:3px}.hue{position:relative;margin-left:8px;cursor:pointer}.hue .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.color-picker-wrapper{position:relative}.color-picker{box-shadow:var(--ao-elevation-2dp)}.color-picker-box{box-sizing:content-box}.ao-card-project-phase__header{display:flex;justify-content:flex-end}.ao-card-project-phase__footer{display:flex;flex-direction:column}.ao-card-project-phase__footer-row{display:grid;grid-template-columns:auto;grid-template-rows:auto;gap:var(--ao-space-md);justify-items:start;position:relative}.ao-card-project-phase__archive{opacity:0;visibility:hidden}.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__archive{opacity:1;visibility:visible}.ao-card-project-phase__deadline{font-size:var(--ao-font-size-label);padding:var(--ao-space-sm);grid-column:1;grid-row:1}.ao-card-project-phase__deadline--input{padding:var(--ao-space-sm);border-width:0;background-color:transparent}.ao-card-project-phase__deadline--readonly{letter-spacing:.1em}.ao-card-project-phase__footer-row.ao-card-project-phase__no_deadline,.ao-card-project-phase__deadline--input,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__deadline{opacity:0;visibility:hidden}.ao-card-project-phase__deadline--readonly,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__deadline--input,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__no_deadline{opacity:1;visibility:visible}.ao-card-project-phase__title{padding-block:0;display:inline;word-break:normal}.ao-card-project-phase__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-project-phase__footer-row--progress{padding-block:var(--ao-space-sm)}.ao-card-project-phase__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-project-phase__progress{flex-grow:1}.aoBadge{display:inline-block;padding:4px;width:8px;height:8px;border-radius:var(--ao-border-radius-round)}.ao-card-project-milestone{--ao-card-project-milestone-border-color: transparent;padding:0;border:var(--ao-border-width-md) solid var(--ao-card-project-milestone-border-color)}.ao-card-project-milestone__default{display:flex;justify-content:space-between}.ao-card-project-milestone__archive{display:none;height:fit-content;padding-block:var(--ao-space-md)}.ao-card-project-milestone:hover .ao-card-project-milestone__archive{display:flex}.ao-card-project-milestone__activities{display:flex;flex-direction:column}.ao-card-project-milestone__activities-row{display:flex;gap:var(--ao-space-md);align-items:center;position:relative}.ao-card-project-milestone__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-project-milestone:hover .ao-card-project-milestone__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-project-milestone__activities-row+.ao-card-project-milestone__activities-row{margin-block-start:var(--ao-space-md)}.ao-card-project-milestone__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-project-milestone__progress{flex-grow:1}.ao-card-project-milestone__title{max-width:fit-content;display:inline;word-break:normal}.ao-card-project-item-milestone__estimation{font-weight:var(--ao-font-weight-semi-bold);display:inline;font-size:var(--ao-font-size-h5)}.ao-card-project-milestone__footer{display:flex;align-items:center;padding-block-start:var(--ao-space-sm);gap:var(--ao-space-sm)}.ao-card-project-milestone__assignee{display:flex;justify-content:flex-start;margin-inline-start:auto}.ao-card-project-milestone__deadline{padding-block:var(--ao-space-sm)}.ao-card-project-milestone__important{color:var(--ao-color-danger)}.ao-card-project-milestone__important--selected{color:var(--ao-color-white)}.ao-title-with-badge-wrapper{display:flex;align-items:center;gap:8px}.ao-mapping-card-project-phase__header{display:flex;justify-content:flex-end;opacity:0;visibility:collapse;//transition: collapse .15s}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__header{opacity:1;visibility:visible}.ao-mapping-card-project-phase__footer{display:flex;flex-direction:column}.ao-mapping-card-project-phase__footer-row{display:grid;grid-template-columns:auto;grid-template-rows:auto;gap:var(--ao-space-md);justify-items:start;position:relative}.ao-mapping-card-project-phase__archive{opacity:0;visibility:hidden}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__archive{opacity:1;visibility:visible}.ao-mapping-card-project-phase__deadline{font-size:var(--ao-font-size-label);padding:var(--ao-space-sm);grid-column:1;grid-row:1}.ao-mapping-card-project-phase__deadline--input{padding:var(--ao-space-sm);border-width:0;background-color:transparent}.ao-mapping-card-project-phase__deadline--readonly{letter-spacing:.1em}.ao-mapping-card-project-phase__footer-row.ao-mapping-card-project-phase__no_deadline,.ao-mapping-card-project-phase__deadline--input,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__deadline{opacity:0;visibility:collapse}.ao-mapping-card-project-phase__deadline--readonly,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__deadline--input,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__no_deadline{opacity:1;visibility:visible}.ao-mapping-card-project-phase__title{padding-block:0;display:inline;word-break:normal}.ao-card-project-item__title-line{display:block;word-break:normal}.ao-card-project-item-phase__estimation{font-weight:var(--ao-font-weight-semi-bold);display:inline;font-size:var(--ao-font-size-h4)}.ao-mapping-card-project-phase__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-mapping-card-project-phase__footer-row--progress{padding-block:var(--ao-space-sm)}.ao-mapping-card-project-phase__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-mapping-card-project-phase__progress{flex-grow:1}.ao-project-phase__drag-handle{opacity:0;visibility:hidden}.ao-project-phase__drag{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);cursor:grab;grid-area:drag}.ao-project-phase:hover .ao-project-phase__drag-handle{opacity:1;visibility:visible}.ao-project-phase{display:flex;flex-direction:column;padding-block:var(--ao-space-md)}.ao-project-phase--selected .ao-project-phase__col-phase{background-color:var(--ao-color-primary-lightest)}.ao-project-phase__col-phase{display:flex;flex-shrink:0;flex-direction:column;padding:var(--ao-space-xl) var(--ao-space-xxl);margin-inline-end:var(--ao-space-md);justify-content:center;border-radius:var(--ao-border-radius-md)}.ao-mapping-project-phase__col-phase{display:flex;flex-shrink:0;flex-direction:column;padding:var(--ao-space-lg) var(--ao-space-sm);margin-inline-end:var(--ao-space-md);justify-content:center;border-radius:var(--ao-border-radius-md)}.ao-project-phase__col-milestones{display:flex;flex:1;padding:var(--ao-space-md);gap:var(--ao-space-md);overflow-x:auto;scroll-snap-type:x mandatory}.ao-project-phase__milestones,.ao-project-phase__milestones-list{display:contents}.ao-project-phase__milestone{scroll-snap-align:center;width:90%;flex-shrink:0}.ao-project-phase__milestones-list-footer{display:flex;scroll-snap-align:center}@container page (min-width: 480px){.ao-project-phase__milestones-list{grid-auto-columns:45%;overflow-x:auto}.ao-project-phase__milestone{width:45%}}@container page (min-width: 720px){.ao-project-phase{flex-direction:row}.ao-project-phase__col-phase,.ao-mapping-project-phase__col-phase{width:20em}.ao-project-phase+.ao-project-phase{border-block-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-project-phase__col-milestones{flex-direction:column;border-inline-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest);overflow:hidden}.ao-project-phase__milestones{display:flex;width:100%;flex-direction:row;align-items:center;height:100%;padding:var(--ao-space-md);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-sheet)}.ao-project-phases__draggable-card{margin:var(--ao-space-md);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-sheet);display:flex;flex-direction:row}.ao-project-phase--selected .ao-project-phase__milestones{background-color:var(--ao-color-primary-lightest)}.ao-project-phase__milestones-list{display:grid;padding:var(--ao-space-md);flex-shrink:1;max-width:100%;min-width:0;grid-auto-columns:minmax(max(20%,147px),196px);grid-auto-flow:column;align-items:stretch;gap:var(--ao-space-md);scroll-snap-type:x mandatory;scroll-snap-padding:var(--ao-space-md)}.ao-project-phase__milestone{width:100%;scroll-snap-align:start}.ao-project-phase__milestones-list-footer{align-items:center;padding:var(--ao-space-md)}.ao-project-phase__milestone-add{flex-grow:0;flex-shrink:0}}.ao-project__phases{display:flex;flex-direction:column;height:100%;min-height:0;padding-inline-start:0;margin-block:0}.ao-project-phase__add-phase{padding:var(--ao-space-lg)}@container page (min-width: 720px){.ao-project-phase__phases-list-footer{display:flex}.ao-project-phase__empty_drag{width:40px}.ao-project-phase__phases-list-footer .ao-project-phase__col-phase{max-width:20em;padding:var(--ao-space-md)}.ao-project-phase__phases-list-footer .ao-project-phase__col-milestones{border:none}}.ao-add-template-modal__form{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;margin-block-start:var(--ao-space-md);padding:0 var(--ao-space-xl) var(--ao-space-xl) var(--ao-space-xl)}.ao-add-template-modal__form-body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-add-template-modal__form-footer{display:flex;justify-content:flex-end;margin-block-start:var(--ao-space-lg)}.ao-save-template-modal__form{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;margin-block-start:var(--ao-space-md)}.ao-save-template-modal__form-body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-save-template-modal__form-footer{display:flex;justify-content:flex-end;margin-block-start:var(--ao-space-lg)}.ao-save-template-modal__form{padding:0 var(--ao-space-lg) var(--ao-space-lg) var(--ao-space-lg)}.ao-save-template-modal__phases{margin-top:var(--ao-space-md)}.ao-field__label{padding:var(--ao-space-md) 0;font-size:var(--ao-font-size-base)}.ao-save-template-modal__phases-list{display:flex;flex-direction:column;gap:var(--ao-space-sm)}.ao-field--checkbox{display:flex;flex-direction:row}.ao-project-overview__add-template .ao-project-overview__save-as-template{margin-left:auto;margin-right:var(--ao-space-md)}.ao-project-overview{display:grid;grid-template-columns:1fr auto;height:100%;min-height:0;container:page / inline-size}.ao-project{display:flex;flex-direction:column;gap:var(--ao-space-md);padding-block:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;overflow:hidden}.ao-project__body{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;min-width:0;flex-grow:1;align-items:flex-start;padding-block:var(--ao-space-md);overflow:hidden}@container page (min-width: 720px){.ao-project{padding-inline:var(--ao-space-lg)}}.ao-card-feed{cursor:pointer}.ao-card-feed__header{display:grid;grid-template-columns:minmax(0,1fr) auto;justify-items:flex-start}.ao-card-feed__header-secondary{grid-column:2;grid-row:1}.ao-card-feed__header-icons{margin-inline-start:auto}.ao-card-feed__title-group{margin-block:var(--ao-space-md);display:flex;align-items:center}.ao-card-feed__body{display:flex;flex-direction:column;align-items:flex-start}.ao-card-feed__project{max-width:100%}.ao-card-feed__breadcrumbs{font-size:var(--ao-font-size-label)}.ao-card-feed_deadline{color:var(--ao-color-neutral-base);font-size:var(--ao-font-size-label)}.ao-card-feed__important{margin-inline-start:auto;color:var(--ao-color-danger)}.ao-card-feed__warning{color:var(--ao-color-warning)}.ao-card-feed__footer{display:flex;flex-direction:column}.ao-card-feed__footer-row{display:flex;gap:var(--ao-space-md);align-items:center;position:relative}.ao-card-feed__secondary{display:flex;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-feed:hover .ao-card-feed__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-feed__footer-row+.ao-card-feed__footer-row{margin-block-start:var(--ao-space-md)}.ao-assignees{display:flex;margin:0;padding:0}.ao-assignee{list-style-type:none}.ao-card-feed__subitems{margin:0;margin-inline-start:auto;padding:0;display:flex;gap:var(--ao-space-sm);align-items:center}.ao-card-feed__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-feed__progress-wrapper{display:flex;width:100%;align-items:center;gap:var(--ao-space-md)}.ao-card-feed__progress{flex-grow:1}.ao-card-feed__timer-wrapper{opacity:0;visibility:hidden;margin-inline-start:auto}.ao-card-feed:is(:hover,:focus-within) .ao-card-feed__timer-wrapper{opacity:1;visibility:visible}.ao-card-feed__timer{cursor:pointer;color:var(--ao-color-primary-base)}.ao-card-feed__timer:hover{color:var(--ao-color-primary-dark)}.ao-card-feed__closed{color:var(--ao-color-primary-base)}.ao-card-feed--closed :is(.ao-card-feed__body,.ao-card-feed__footer,.ao-card-feed__project,.ao-card-feed__header-icons > *:not(.ao-card-feed__closed)){opacity:.3}.ao-card-feed__title-line{display:block;word-break:normal}.ao-card-feed__slug{font-weight:var(--ao-font-weight-semi-bold);white-space:nowrap;display:inline}.ao-card-feed__title-inline{display:inline;word-break:normal}.ao-project-milestone{display:flex;flex-direction:column;flex:1;height:100%;min-height:0;width:24em;background-color:var(--ao-color-sheet);padding:var(--ao-space-lg)}.ao-project-milestone__header{display:flex;align-items:flex-start;flex-direction:column}.ao-project-milestone__header_line{display:flex;align-items:flex-start;justify-content:space-between;width:100%}.ao-project-milestone__title{display:flex;padding-inline:var(--ao-space-lg);width:100%}.ao-project-milestone__body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-project-milestone__activities{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-md);margin-block:0;overflow-y:auto}.ao-project-milestone__footer{display:flex;flex-direction:column;padding:var(--ao-space-md)}.ao-milestone__fieldset{width:100%;padding:var(--ao-space-md);border-block-end:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-milestone__field-row{width:100%;align-items:center}.ao-milestone__field-row+.ao-milestone__field-row{margin-block-start:var(--ao-space-sm)}.ao-milestone__field{padding:var(--ao-space-sm);font-size:var(--ao-font-size-label);background-color:transparent;border-width:0}.ao-milestone__field-multiselect{width:14ch;background-color:transparent}.ao-milestone__field-multiselect .multiselect-tags-search{background-color:transparent}.ao-milestone__field-multiselect .ao-multiselect{--ms-font-size: var(--ao-font-size-label);--ms-line-height: 1;--ms-border-color: none;--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: none;--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-sm);--ms-py: var(--ao-space-sm);--ms-px: var(--ao-space-sm);--ms-ring-color: transparent;--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}.ao-milestone__important,.ao-milestone__close{margin-inline-start:auto}.color-button{cursor:pointer;width:125px;height:24px;border-radius:var(--ao-border-radius-sm);border:1px solid #ccc}.ao-col-header{--ao-col-header-bg: var(--ao-color-card);display:flex;background-color:var(--ao-col-header-bg);border-radius:var(--ao-border-radius-md);align-items:center;padding:var(--ao-space-md)}.ao-col-header__title{flex:1}.ao-col-header__items{flex-shrink:0}.ao-list-kanban{display:flex;flex-direction:column;gap:var(--ao-space-lg);height:100%;min-height:0;scroll-snap-align:start end}.ao-list-kanban__list{display:flex;flex-direction:column;gap:var(--ao-space-md);min-height:0;overflow-y:auto;padding-inline:var(--ao-space-md)}.ao-list-kanban__header,.ao-list-kanban__footer{padding-inline:var(--ao-space-md)}.ao-list-kanban__end{display:flex;flex-direction:column;padding:var(--ao-space-md);align-items:center;justify-items:center;flex-shrink:0}.ao-list-kanban__divider{width:50%;height:2px;background-color:var(--ao-color-neutral-lightest)}.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-move,.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-enter-active,.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-leave-active{transition:all .5s ease}.ao-list-kanban__transition-leave-active{position:absolute}.ao-list-kanban__ghost{opacity:.5;background:var(--ao-color-primary-lightest)}.ao-search-field{--ao-search-field-icon-size: var(--ao-icon-size-md);--ao-search-field-icon-slot-size: calc( var(--ao-search-field-icon-size) + var(--ao-space-xl) );--ao-search-field-placeholder-color: var(--ao-color-black);--ao-input-border-color: var(--ao-color-neutral-lightest);display:grid;grid-template-columns:1fr var(--ao-search-field-icon-slot-size);align-items:center;gap:var(--ao-space-sm);flex:1}.ao-search-field__input{grid-column:1 / -1;grid-row:1;width:100%;padding-inline-end:var(--ao-search-field-icon-slot-size);font-size:var(--ao-font-size-button);border-radius:var(--ao-border-radius-md)}.ao-search-field__input:focus{color:var(--ao-color-primary-base);outline-color:var(--ao-color-primary-lightest)}.ao-search-field__input::placeholder{color:var(--ao-search-field-placeholder-color);opacity:1}.ao-search-field__action{grid-column:2;grid-row:1;justify-self:center;transform:scale(0);transition:transform .15s var(--ao-transition-ease);transform-origin:50%}.ao-search-field__action--visible{transform:scale(1)}.ao-search-field__icon{width:var(--ao-search-field-icon-size);height:var(--ao-search-field-icon-size);color:var(--ao-color-neutral-dark);pointer-events:none}.ao-feed{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;container:page / inline-size}.ao-feed__body{display:grid;grid-auto-flow:column;grid-auto-columns:100%;height:100%;min-height:0;flex-grow:1;overflow-x:auto;align-items:flex-start;padding-block:var(--ao-space-md);scroll-snap-type:x mandatory}.ao-feed__activity-details__header{display:flex;gap:var(--ao-space-md)}.ao-feed__activity-details__project{flex:2}.ao-feed__activity-details__status{flex:1}@container page (min-width: 420px){.ao-feed__body{grid-auto-columns:50cqi}}@container page (min-width: 768px){.ao-feed__body{grid-auto-columns:33cqi}}@container page (min-width: 1024px){.ao-feed__body{grid-auto-columns:minmax(calc(var(--ao-grid-size) * 32),calc(var(--ao-grid-size) * 32))}}.ao-kanban__col{display:flex;flex-direction:column;gap:var(--ao-space-md);max-height:100%;min-height:0;overflow-y:auto;padding:var(--ao-space-lg)}.ao-feed__filters{flex:1;display:flex;gap:1%;align-items:center;flex-direction:column}.ao-feed__filter .multiselect-tags{flex-wrap:nowrap;overflow-x:auto;gap:var(--ao-space-xs)}.ao-feed__filter .multiselect-wrapper{justify-content:flex-start}.ao-feed__show-archived{flex:0 auto}@container header (min-width: 720px){.ao-feed__filters{flex-direction:row}.ao-feed__search{padding-inline-end:var(--ao-space-md);border-right:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-feed__search,.ao-feed__filter__projects{max-width:33%}.ao-feed__filter__assignees,.ao-feed__filter__types{max-width:15%}}.ao-project-mapping-overview__add-template,.ao-project-mapping-overview__save-as-template{margin-left:auto;margin-right:var(--ao-space-md)}.ao-project-mapping-overview{display:grid;grid-template-columns:1fr auto;height:100%;min-height:0;container:page / inline-size}.ao-project-mapping{display:flex;flex-direction:column;gap:var(--ao-space-md);padding-block:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;overflow:visible}.ao-project-mapping-mapping__body{display:flex;flex-direction:row;align-items:flex-start;gap:var(--ao-space-md);padding-block:var(--ao-space-md)}.ao-project-mapping-mapping__phases{flex:0 0 auto;min-width:0;max-height:100vh;overflow:scroll}.ao-project-mapping-mapping__image-wrapper{flex:1 1 0;position:relative;min-width:0}.architecture-image{position:sticky;top:var(--ao-space-md);width:100%;height:auto;display:block}@container page (min-width: 720px){.ao-project-mapping{padding-inline:var(--ao-space-lg)}}.ao-templates{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-lg)}.ao-templates__header{display:flex;padding:var(--ao-space-sm)}.ao-templates__list{display:flex;margin:0;padding:var(--ao-space-sm);list-style-type:none;flex-direction:column;gap:var(--ao-space-md);container:column / inline-size}
2
- `,document.head.appendChild(ft),typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("vue-router"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","vuedraggable"],a):(fe=typeof globalThis<"u"?globalThis:fe||self,a(fe.Orcha={},fe.Vue,fe.vueRouter,fe.Draggable))})(this,function(fe,a,ft,Gn){"use strict";var mD=Object.defineProperty;var hD=(fe,a,ft)=>a in fe?mD(fe,a,{enumerable:!0,configurable:!0,writable:!0,value:ft}):fe[a]=ft;var j=(fe,a,ft)=>(hD(fe,typeof a!="symbol"?a+"":a,ft),ft);const gD="",bD="",_D="",yD="",qg=a.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(a.openBlock(),a.createBlock(a.unref(ft.RouterView),a.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),oe=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},jg={},Ug={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hg(t,e){return a.openBlock(),a.createElementBlock("svg",Ug,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 13C12.9667 13 13.7917 12.6583 14.475 11.975C15.1583 11.2917 15.5 10.4667 15.5 9.5C15.5 8.53333 15.1583 7.70833 14.475 7.025C13.7917 6.34167 12.9667 6 12 6C11.0333 6 10.2083 6.34167 9.525 7.025C8.84167 7.70833 8.5 8.53333 8.5 9.5C8.5 10.4667 8.84167 11.2917 9.525 11.975C10.2083 12.6583 11.0333 13 12 13ZM3 21V3H21V21H3ZM5 19H19V17.85C18.1 16.9667 17.054 16.271 15.862 15.763C14.67 15.255 13.3827 15.0007 12 15C10.6167 15 9.329 15.2543 8.137 15.763C6.945 16.2717 5.89933 16.9673 5 17.85V19Z",fill:"black"},null,-1)])])}const Wg=oe(jg,[["render",Hg]]),Zg={},Gg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Kg(t,e){return a.openBlock(),a.createElementBlock("svg",Gg,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5.85 17.1C6.7 16.45 7.65 15.9373 8.7 15.562C9.75 15.1867 10.85 14.9993 12 15C13.15 15 14.25 15.1877 15.3 15.563C16.35 15.9383 17.3 16.4507 18.15 17.1C18.7333 16.4167 19.1877 15.6417 19.513 14.775C19.8383 13.9083 20.0007 12.9833 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.105 4.77833 14.2173 3.99933 12 4C9.78333 4 7.89567 4.779 6.337 6.337C4.77833 7.895 3.99933 9.78267 4 12C4 12.9833 4.16267 13.9083 4.488 14.775C4.81333 15.6417 5.26733 16.4167 5.85 17.1ZM12 13C11.0167 13 10.1873 12.6627 9.512 11.988C8.83667 11.3133 8.49933 10.484 8.5 9.5C8.5 8.51667 8.83733 7.68733 9.512 7.012C10.1867 6.33667 11.016 5.99933 12 6C12.9833 6 13.8127 6.33733 14.488 7.012C15.1633 7.68667 15.5007 8.516 15.5 9.5C15.5 10.4833 15.1627 11.3127 14.488 11.988C13.8133 12.6633 12.984 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const Yg=oe(Zg,[["render",Kg]]),Jg={},Xg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qg(t,e){return a.openBlock(),a.createElementBlock("svg",Xg,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17ZM17 9H20V5H17V9ZM17 19H20V15H17V19ZM4 9H7V5H4V9Z",fill:"black"},null,-1)])])}const e0=oe(Jg,[["render",Qg]]),t0={},n0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o0(t,e){return a.openBlock(),a.createElementBlock("svg",n0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17Z",fill:"black"},null,-1)])])}const r0=oe(t0,[["render",o0]]),a0={},i0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s0(t,e){return a.openBlock(),a.createElementBlock("svg",i0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const l0=oe(a0,[["render",s0]]),c0={},d0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function u0(t,e){return a.openBlock(),a.createElementBlock("svg",d0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V13H16C16.2833 13 16.5207 12.904 16.712 12.712C16.904 12.5207 17 12.2833 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.5207 11.0957 16.2833 11 16 11H13V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V11H8C7.71667 11 7.479 11.0957 7.287 11.287C7.09567 11.479 7 11.7167 7 12C7 12.2833 7.09567 12.5207 7.287 12.712C7.479 12.904 7.71667 13 8 13H11V16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V5H5V19ZM5 19V5V19Z",fill:"black"},null,-1)])])}const p0=oe(c0,[["render",u0]]),f0={},m0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function h0(t,e){return a.openBlock(),a.createElementBlock("svg",m0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V6.50001C3 6.25001 3.04167 6.02501 3.125 5.82501C3.20834 5.62501 3.31667 5.43334 3.45 5.25001L4.85 3.55001C4.98333 3.36667 5.15 3.22901 5.35 3.13701C5.55 3.04501 5.76667 2.99934 6 3.00001H18C18.2333 3.00001 18.45 3.04567 18.65 3.13701C18.85 3.22834 19.0167 3.36601 19.15 3.55001L20.55 5.25001C20.6833 5.43334 20.7917 5.62501 20.875 5.82501C20.9583 6.02501 21 6.25001 21 6.50001V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5.4 6.00001H18.6L17.75 5.00001H6.25L5.4 6.00001ZM5 19H19V8.00001H5V19ZM12 17.575C12.1333 17.575 12.2583 17.554 12.375 17.512C12.4917 17.47 12.6 17.3993 12.7 17.3L15.3 14.7C15.4833 14.5167 15.575 14.2833 15.575 14C15.575 13.7167 15.4833 13.4833 15.3 13.3C15.1167 13.1167 14.8833 13.025 14.6 13.025C14.3167 13.025 14.0833 13.1167 13.9 13.3L13 14.2V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99934 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14.2L10.1 13.3C9.91667 13.1167 9.68333 13.025 9.4 13.025C9.11667 13.025 8.88334 13.1167 8.7 13.3C8.51667 13.4833 8.425 13.7167 8.425 14C8.425 14.2833 8.51667 14.5167 8.7 14.7L11.3 17.3C11.4 17.4 11.5083 17.4707 11.625 17.512C11.7417 17.5533 11.8667 17.5743 12 17.575Z",fill:"black"},null,-1)])])}const g0=oe(f0,[["render",h0]]),b0={},_0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y0(t,e){return a.openBlock(),a.createElementBlock("svg",_0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10.875 19.3001L4.275 12.7001C4.175 12.6001 4.104 12.4917 4.062 12.3751C4.02067 12.2584 4 12.1334 4 12.0001C4 11.8667 4.02067 11.7417 4.062 11.6251C4.104 11.5084 4.175 11.4001 4.275 11.3001L10.875 4.70008C11.0583 4.51675 11.2873 4.42075 11.562 4.41208C11.8373 4.40408 12.075 4.50008 12.275 4.70008C12.475 4.88342 12.5793 5.11242 12.588 5.38708C12.596 5.66242 12.5 5.90008 12.3 6.10008L7.4 11.0001H18.575C18.8583 11.0001 19.096 11.0957 19.288 11.2871C19.4793 11.4791 19.575 11.7167 19.575 12.0001C19.575 12.2834 19.4793 12.5207 19.288 12.7121C19.096 12.9041 18.8583 13.0001 18.575 13.0001H7.4L12.3 17.9001C12.4833 18.0834 12.5793 18.3167 12.588 18.6001C12.596 18.8834 12.5 19.1167 12.3 19.3001C12.1167 19.5001 11.8833 19.6001 11.6 19.6001C11.3167 19.6001 11.075 19.5001 10.875 19.3001V19.3001Z",fill:"black"},null,-1)])])}const v0=oe(b0,[["render",y0]]),C0={},w0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k0(t,e){return a.openBlock(),a.createElementBlock("svg",w0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",fill:"black"},null,-1)])])}const x0=oe(C0,[["render",k0]]),E0={},S0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T0(t,e){return a.openBlock(),a.createElementBlock("svg",S0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11.3 19.3C11.1167 19.1167 11.0207 18.8834 11.012 18.6C11.004 18.3167 11.0917 18.0834 11.275 17.9L16.175 13H5C4.71667 13 4.479 12.904 4.287 12.712C4.09567 12.5207 4 12.2834 4 12C4 11.7167 4.09567 11.479 4.287 11.287C4.479 11.0957 4.71667 11 5 11H16.175L11.275 6.10005C11.0917 5.91672 11.004 5.68338 11.012 5.40005C11.0207 5.11672 11.1167 4.88338 11.3 4.70005C11.4833 4.51672 11.7167 4.42505 12 4.42505C12.2833 4.42505 12.5167 4.51672 12.7 4.70005L19.3 11.3C19.4 11.3834 19.471 11.4874 19.513 11.612C19.5543 11.7374 19.575 11.8667 19.575 12C19.575 12.1334 19.5543 12.2584 19.513 12.375C19.471 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4834 12.2833 19.575 12 19.575C11.7167 19.575 11.4833 19.4834 11.3 19.3V19.3Z",fill:"black"},null,-1)])])}const A0=oe(E0,[["render",T0]]),N0={},D0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B0(t,e){return a.openBlock(),a.createElementBlock("svg",D0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8 17H13C13.2833 17 13.521 16.904 13.713 16.712C13.905 16.52 14.0007 16.2827 14 16C14 15.7167 13.904 15.479 13.712 15.287C13.52 15.095 13.2827 14.9993 13 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H16C16.2833 9 16.521 8.904 16.713 8.712C16.905 8.52 17.0007 8.28267 17 8C17 7.71667 16.904 7.479 16.712 7.287C16.52 7.095 16.2827 6.99933 16 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71733 7 8C7 8.28333 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9ZM5 19H19V5H5V19ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99933 5 3H9.2C9.41667 2.4 9.77934 1.91667 10.288 1.55C10.7967 1.18333 11.3673 1 12 1C12.6333 1 13.2043 1.18333 13.713 1.55C14.2217 1.91667 14.584 2.4 14.8 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM12 4.25C12.2167 4.25 12.3957 4.179 12.537 4.037C12.6783 3.895 12.7493 3.716 12.75 3.5C12.75 3.28333 12.679 3.10433 12.537 2.963C12.395 2.82167 12.216 2.75067 12 2.75C11.7833 2.75 11.6043 2.821 11.463 2.963C11.3217 3.105 11.2507 3.284 11.25 3.5C11.25 3.71667 11.321 3.89567 11.463 4.037C11.605 4.17833 11.784 4.24933 12 4.25Z",fill:"black"},null,-1)])])}const L0=oe(N0,[["render",B0]]),M0={},$0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O0(t,e){return a.openBlock(),a.createElementBlock("svg",$0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11.5 22C9.96667 22 8.66667 21.4667 7.6 20.4C6.53333 19.3333 6 18.0333 6 16.5V6C6 4.9 6.39167 3.95833 7.175 3.175C7.95833 2.39167 8.9 2 10 2C11.1 2 12.0417 2.39167 12.825 3.175C13.6083 3.95833 14 4.9 14 6V15.5C14 16.2 13.7583 16.7917 13.275 17.275C12.7917 17.7583 12.2 18 11.5 18C10.8 18 10.2083 17.7583 9.725 17.275C9.24167 16.7917 9 16.2 9 15.5V6.75C9 6.53333 9.071 6.35433 9.213 6.213C9.355 6.07167 9.534 6.00067 9.75 6C9.96667 6 10.1457 6.071 10.287 6.213C10.4283 6.355 10.4993 6.534 10.5 6.75V15.5C10.5 15.7833 10.596 16.021 10.788 16.213C10.98 16.405 11.2173 16.5007 11.5 16.5C11.7833 16.5 12.021 16.404 12.213 16.212C12.405 16.02 12.5007 15.7827 12.5 15.5V6C12.5 5.3 12.2583 4.70833 11.775 4.225C11.2917 3.74167 10.7 3.5 10 3.5C9.3 3.5 8.70833 3.74167 8.225 4.225C7.74167 4.70833 7.5 5.3 7.5 6V16.5C7.5 17.6 7.89167 18.5417 8.675 19.325C9.45833 20.1083 10.4 20.5 11.5 20.5C12.6 20.5 13.5417 20.1083 14.325 19.325C15.1083 18.5417 15.5 17.6 15.5 16.5V6.75C15.5 6.53333 15.571 6.35433 15.713 6.213C15.855 6.07167 16.034 6.00067 16.25 6C16.4667 6 16.6457 6.071 16.787 6.213C16.9283 6.355 16.9993 6.534 17 6.75V16.5C17 18.0333 16.4667 19.3333 15.4 20.4C14.3333 21.4667 13.0333 22 11.5 22Z",fill:"black"},null,-1)])])}const I0=oe(M0,[["render",O0]]),R0={},P0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V0(t,e){return a.openBlock(),a.createElementBlock("svg",P0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6C3 5.45 3.196 4.979 3.588 4.587C3.98 4.195 4.45067 3.99933 5 4H6V2.975C6 2.69167 6.096 2.45833 6.288 2.275C6.48 2.09167 6.71734 2 7 2C7.28334 2 7.521 2.096 7.713 2.288C7.905 2.48 8.00067 2.71733 8 3V4H16V2.975C16 2.69167 16.096 2.45833 16.288 2.275C16.48 2.09167 16.7173 2 17 2C17.2833 2 17.521 2.096 17.713 2.288C17.905 2.48 18.0007 2.71733 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.805 4.98 21.0007 5.45067 21 6V20C21 20.55 20.804 21.021 20.412 21.413C20.02 21.805 19.5493 22.0007 19 22H5ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z",fill:"black"},null,-1)])])}const F0=oe(R0,[["render",V0]]),z0={},q0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j0(t,e){return a.openBlock(),a.createElementBlock("svg",q0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 13.4L14.9 16.3C15.0833 16.4833 15.3167 16.575 15.6 16.575C15.8833 16.575 16.1167 16.4833 16.3 16.3C16.4833 16.1167 16.575 15.8833 16.575 15.6C16.575 15.3167 16.4833 15.0833 16.3 14.9L13.4 12L16.3 9.1C16.4833 8.91667 16.575 8.68333 16.575 8.4C16.575 8.11667 16.4833 7.88333 16.3 7.7C16.1167 7.51667 15.8833 7.425 15.6 7.425C15.3167 7.425 15.0833 7.51667 14.9 7.7L12 10.6L9.1 7.7C8.91667 7.51667 8.68333 7.425 8.4 7.425C8.11667 7.425 7.88333 7.51667 7.7 7.7C7.51667 7.88333 7.425 8.11667 7.425 8.4C7.425 8.68333 7.51667 8.91667 7.7 9.1L10.6 12L7.7 14.9C7.51667 15.0833 7.425 15.3167 7.425 15.6C7.425 15.8833 7.51667 16.1167 7.7 16.3C7.88333 16.4833 8.11667 16.575 8.4 16.575C8.68333 16.575 8.91667 16.4833 9.1 16.3L12 13.4ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const U0=oe(z0,[["render",j0]]),H0={},W0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z0(t,e){return a.openBlock(),a.createElementBlock("svg",W0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 14H14V12H6V14ZM6 11H18V9H6V11ZM6 8H18V6H6V8ZM2 22V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H6L2 22ZM4 17.175L5.175 16H20V4H4V17.175Z",fill:"black"},null,-1)])])}const G0=oe(H0,[["render",Z0]]),K0={},Y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J0(t,e){return a.openBlock(),a.createElementBlock("svg",Y0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const X0=oe(K0,[["render",J0]]),Q0={},e2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t2(t,e){return a.openBlock(),a.createElementBlock("svg",e2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const n2=oe(Q0,[["render",t2]]),o2={},r2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a2(t,e){return a.openBlock(),a.createElementBlock("svg",r2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03334 10.975 7.75 10.975C7.46667 10.975 7.23334 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63334 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const i2=oe(o2,[["render",a2]]),s2={},l2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c2(t,e){return a.openBlock(),a.createElementBlock("svg",l2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10 13.6L15.9 7.70005C16.0834 7.51672 16.3167 7.42505 16.6 7.42505C16.8834 7.42505 17.1167 7.51672 17.3 7.70005C17.4834 7.88338 17.575 8.11671 17.575 8.40005C17.575 8.68338 17.4834 8.91672 17.3 9.10005L10.7 15.7C10.5 15.9 10.2667 16 10 16C9.73338 16 9.50005 15.9 9.30005 15.7L6.70005 13.1C6.51672 12.9167 6.42505 12.6834 6.42505 12.4C6.42505 12.1167 6.51672 11.8834 6.70005 11.7C6.88338 11.5167 7.11672 11.425 7.40005 11.425C7.68338 11.425 7.91672 11.5167 8.10005 11.7L10 13.6Z",fill:"black"},null,-1)])])}const d2=oe(s2,[["render",c2]]),u2={},p2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f2(t,e){return a.openBlock(),a.createElementBlock("svg",p2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M14 8.99989C13.7167 8.99989 13.479 8.90389 13.287 8.71189C13.095 8.51989 12.9994 8.28255 13 7.99989C13 7.71655 13.096 7.47889 13.288 7.28689C13.48 7.09489 13.7174 6.99922 14 6.99989H21C21.2834 6.99989 21.521 7.09589 21.713 7.28789C21.905 7.47989 22.0007 7.71722 22 7.99989C22 8.28322 21.904 8.52089 21.712 8.71289C21.52 8.90489 21.2827 9.00055 21 8.99989H14ZM14 16.9999C13.7167 16.9999 13.479 16.9039 13.287 16.7119C13.095 16.5199 12.9994 16.2826 13 15.9999C13 15.7166 13.096 15.4789 13.288 15.2869C13.48 15.0949 13.7174 14.9992 14 14.9999H21C21.2834 14.9999 21.521 15.0959 21.713 15.2879C21.905 15.4799 22.0007 15.7172 22 15.9999C22 16.2832 21.904 16.5209 21.712 16.7129C21.52 16.9049 21.2827 17.0006 21 16.9999H14ZM4.85005 10.2999L2.70005 8.14989C2.51672 7.96655 2.42505 7.73322 2.42505 7.44989C2.42505 7.16655 2.51672 6.93322 2.70005 6.74989C2.88338 6.56655 3.11672 6.47489 3.40005 6.47489C3.68338 6.47489 3.91672 6.56655 4.10005 6.74989L5.52505 8.17489L9.07505 4.62489C9.27505 4.42489 9.50838 4.32889 9.77505 4.33689C10.0417 4.34489 10.275 4.44922 10.475 4.64989C10.6584 4.84989 10.75 5.08322 10.75 5.34989C10.75 5.61655 10.6584 5.84989 10.475 6.04989L6.25005 10.2999C6.05005 10.4999 5.81672 10.5999 5.55005 10.5999C5.28338 10.5999 5.05005 10.4999 4.85005 10.2999ZM4.85005 18.2999L2.70005 16.1499C2.51672 15.9666 2.42505 15.7332 2.42505 15.4499C2.42505 15.1666 2.51672 14.9332 2.70005 14.7499C2.88338 14.5666 3.11672 14.4749 3.40005 14.4749C3.68338 14.4749 3.91672 14.5666 4.10005 14.7499L5.52505 16.1749L9.07505 12.6249C9.27505 12.4249 9.50838 12.3292 9.77505 12.3379C10.0417 12.3466 10.275 12.4506 10.475 12.6499C10.6584 12.8499 10.75 13.0832 10.75 13.3499C10.75 13.6166 10.6584 13.8499 10.475 14.0499L6.25005 18.2999C6.05005 18.4999 5.81672 18.5999 5.55005 18.5999C5.28338 18.5999 5.05005 18.4999 4.85005 18.2999Z",fill:"black"},null,-1)])])}const m2=oe(u2,[["render",f2]]),h2={},g2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b2(t,e){return a.openBlock(),a.createElementBlock("svg",g2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const _2=oe(h2,[["render",b2]]),y2={},v2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C2(t,e){return a.openBlock(),a.createElementBlock("svg",v2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const w2=oe(y2,[["render",C2]]),k2={},x2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E2(t,e){return a.openBlock(),a.createElementBlock("svg",x2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 13.4L7.10005 18.3C6.91672 18.4834 6.68338 18.575 6.40005 18.575C6.11672 18.575 5.88338 18.4834 5.70005 18.3C5.51672 18.1167 5.42505 17.8834 5.42505 17.6C5.42505 17.3167 5.51672 17.0834 5.70005 16.9L10.6 12L5.70005 7.10005C5.51672 6.91672 5.42505 6.68338 5.42505 6.40005C5.42505 6.11672 5.51672 5.88338 5.70005 5.70005C5.88338 5.51672 6.11672 5.42505 6.40005 5.42505C6.68338 5.42505 6.91672 5.51672 7.10005 5.70005L12 10.6L16.9 5.70005C17.0834 5.51672 17.3167 5.42505 17.6 5.42505C17.8834 5.42505 18.1167 5.51672 18.3 5.70005C18.4834 5.88338 18.575 6.11672 18.575 6.40005C18.575 6.68338 18.4834 6.91672 18.3 7.10005L13.4 12L18.3 16.9C18.4834 17.0834 18.575 17.3167 18.575 17.6C18.575 17.8834 18.4834 18.1167 18.3 18.3C18.1167 18.4834 17.8834 18.575 17.6 18.575C17.3167 18.575 17.0834 18.4834 16.9 18.3L12 13.4Z",fill:"black"},null,-1)])])}const S2=oe(k2,[["render",E2]]),T2={},A2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N2(t,e){return a.openBlock(),a.createElementBlock("svg",A2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 23C4.71667 23 4.479 22.904 4.287 22.712C4.095 22.52 3.99934 22.2827 4 22C4 21.7167 4.096 21.479 4.288 21.287C4.48 21.095 4.71734 20.9993 5 21H19C19.2833 21 19.521 21.096 19.713 21.288C19.905 21.48 20.0007 21.7173 20 22C20 22.2833 19.904 22.521 19.712 22.713C19.52 22.905 19.2827 23.0007 19 23H5ZM5 3C4.71667 3 4.479 2.904 4.287 2.712C4.095 2.52 3.99934 2.28267 4 2C4 1.71667 4.096 1.479 4.288 1.287C4.48 1.095 4.71734 0.999337 5 1H19C19.2833 1 19.521 1.096 19.713 1.288C19.905 1.48 20.0007 1.71734 20 2C20 2.28334 19.904 2.521 19.712 2.713C19.52 2.905 19.2827 3.00067 19 3H5ZM12 13C12.8333 13 13.5417 12.7083 14.125 12.125C14.7083 11.5417 15 10.8333 15 10C15 9.16667 14.7083 8.45834 14.125 7.875C13.5417 7.29167 12.8333 7 12 7C11.1667 7 10.4583 7.29167 9.875 7.875C9.29167 8.45834 9 9.16667 9 10C9 10.8333 9.29167 11.5417 9.875 12.125C10.4583 12.7083 11.1667 13 12 13ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4ZM5.75 18C6.5 17.0667 7.40834 16.3333 8.475 15.8C9.54167 15.2667 10.7167 15 12 15C13.2833 15 14.4583 15.2667 15.525 15.8C16.5917 16.3333 17.5 17.0667 18.25 18H20V6H4V18H5.75ZM8.7 18H15.3C14.8167 17.6667 14.2957 17.4167 13.737 17.25C13.1783 17.0833 12.5993 17 12 17C11.4 17 10.8207 17.0833 10.262 17.25C9.70334 17.4167 9.18267 17.6667 8.7 18ZM12 11C11.7167 11 11.479 10.904 11.287 10.712C11.095 10.52 10.9993 10.2827 11 10C11 9.71667 11.096 9.479 11.288 9.287C11.48 9.095 11.7173 8.99934 12 9C12.2833 9 12.521 9.096 12.713 9.288C12.905 9.48 13.0007 9.71734 13 10C13 10.2833 12.904 10.521 12.712 10.713C12.52 10.905 12.2827 11.0007 12 11Z",fill:"black"},null,-1)])])}const D2=oe(T2,[["render",N2]]),B2={},L2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M2(t,e){return a.openBlock(),a.createElementBlock("svg",L2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.979 17.804 7.587 17.412C7.195 17.02 6.99934 16.5493 7 16V4C7 3.45 7.196 2.979 7.588 2.587C7.98 2.195 8.45067 1.99934 9 2H18C18.55 2 19.021 2.196 19.413 2.588C19.805 2.98 20.0007 3.45067 20 4V16C20 16.55 19.804 17.021 19.412 17.413C19.02 17.805 18.5493 18.0007 18 18H9ZM9 16H18V4H9V16Z",fill:"black"},null,-1)])])}const $2=oe(B2,[["render",M2]]),O2={},I2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R2(t,e){return a.openBlock(),a.createElementBlock("svg",I2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M7 21C6.45 21 5.979 20.804 5.587 20.412C5.195 20.02 4.99934 19.5493 5 19V6C4.71667 6 4.479 5.904 4.287 5.712C4.095 5.52 3.99934 5.28267 4 5C4 4.71667 4.096 4.479 4.288 4.287C4.48 4.095 4.71734 3.99934 5 4H9C9 3.71667 9.096 3.479 9.288 3.287C9.48 3.095 9.71734 2.99934 10 3H14C14.2833 3 14.521 3.096 14.713 3.288C14.905 3.48 15.0007 3.71734 15 4H19C19.2833 4 19.521 4.096 19.713 4.288C19.905 4.48 20.0007 4.71734 20 5C20 5.28334 19.904 5.521 19.712 5.713C19.52 5.905 19.2827 6.00067 19 6V19C19 19.55 18.804 20.021 18.412 20.413C18.02 20.805 17.5493 21.0007 17 21H7ZM7 6V19H17V6H7ZM9 16C9 16.2833 9.096 16.521 9.288 16.713C9.48 16.905 9.71734 17.0007 10 17C10.2833 17 10.521 16.904 10.713 16.712C10.905 16.52 11.0007 16.2827 11 16V9C11 8.71667 10.904 8.479 10.712 8.287C10.52 8.095 10.2827 7.99934 10 8C9.71667 8 9.479 8.096 9.287 8.288C9.095 8.48 8.99934 8.71734 9 9V16ZM13 16C13 16.2833 13.096 16.521 13.288 16.713C13.48 16.905 13.7173 17.0007 14 17C14.2833 17 14.521 16.904 14.713 16.712C14.905 16.52 15.0007 16.2827 15 16V9C15 8.71667 14.904 8.479 14.712 8.287C14.52 8.095 14.2827 7.99934 14 8C13.7167 8 13.479 8.096 13.287 8.288C13.095 8.48 12.9993 8.71734 13 9V16Z",fill:"black"},null,-1)])])}const P2=oe(O2,[["render",R2]]),V2={},F2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z2(t,e){return a.openBlock(),a.createElementBlock("svg",F2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M9 20C8.45 20 7.97933 19.8043 7.588 19.413C7.196 19.021 7 18.55 7 18C7 17.45 7.196 16.979 7.588 16.587C7.97933 16.1957 8.45 16 9 16C9.55 16 10.021 16.1957 10.413 16.587C10.8043 16.979 11 17.45 11 18C11 18.55 10.8043 19.021 10.413 19.413C10.021 19.8043 9.55 20 9 20ZM15 20C14.45 20 13.9793 19.8043 13.588 19.413C13.196 19.021 13 18.55 13 18C13 17.45 13.196 16.979 13.588 16.587C13.9793 16.1957 14.45 16 15 16C15.55 16 16.021 16.1957 16.413 16.587C16.8043 16.979 17 17.45 17 18C17 18.55 16.8043 19.021 16.413 19.413C16.021 19.8043 15.55 20 15 20ZM9 14C8.45 14 7.97933 13.804 7.588 13.412C7.196 13.0207 7 12.55 7 12C7 11.45 7.196 10.979 7.588 10.587C7.97933 10.1957 8.45 10 9 10C9.55 10 10.021 10.1957 10.413 10.587C10.8043 10.979 11 11.45 11 12C11 12.55 10.8043 13.0207 10.413 13.412C10.021 13.804 9.55 14 9 14ZM15 14C14.45 14 13.9793 13.804 13.588 13.412C13.196 13.0207 13 12.55 13 12C13 11.45 13.196 10.979 13.588 10.587C13.9793 10.1957 14.45 10 15 10C15.55 10 16.021 10.1957 16.413 10.587C16.8043 10.979 17 11.45 17 12C17 12.55 16.8043 13.0207 16.413 13.412C16.021 13.804 15.55 14 15 14ZM9 8C8.45 8 7.97933 7.804 7.588 7.412C7.196 7.02067 7 6.55 7 6C7 5.45 7.196 4.97933 7.588 4.588C7.97933 4.196 8.45 4 9 4C9.55 4 10.021 4.196 10.413 4.588C10.8043 4.97933 11 5.45 11 6C11 6.55 10.8043 7.02067 10.413 7.412C10.021 7.804 9.55 8 9 8ZM15 8C14.45 8 13.9793 7.804 13.588 7.412C13.196 7.02067 13 6.55 13 6C13 5.45 13.196 4.97933 13.588 4.588C13.9793 4.196 14.45 4 15 4C15.55 4 16.021 4.196 16.413 4.588C16.8043 4.97933 17 5.45 17 6C17 6.55 16.8043 7.02067 16.413 7.412C16.021 7.804 15.55 8 15 8Z",fill:"black"},null,-1)])])}const q2=oe(V2,[["render",z2]]),j2={},U2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H2(t,e){return a.openBlock(),a.createElementBlock("svg",U2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V11.1L12 19.075V22H6ZM14.5 22C14.3667 22 14.25 21.95 14.15 21.85C14.05 21.75 14 21.6333 14 21.5V20.3C14 20.1667 14.0293 20.0333 14.088 19.9C14.1467 19.7667 14.2173 19.6583 14.3 19.575L19.15 14.7L21.3 16.8L16.425 21.7C16.3417 21.8 16.2333 21.875 16.1 21.925C15.9667 21.975 15.8333 22 15.7 22H14.5ZM22.025 16.1L19.9 13.975L20.6 13.275C20.8 13.075 21.0417 12.975 21.325 12.975C21.6083 12.975 21.8417 13.075 22.025 13.275L22.725 14C22.9083 14.2 23 14.4377 23 14.713C23 14.9883 22.9083 15.2173 22.725 15.4L22.025 16.1ZM14 9H18L13 4V8C13 8.28334 13.096 8.521 13.288 8.713C13.48 8.905 13.7173 9.00067 14 9Z",fill:"black"},null,-1)])])}const W2=oe(j2,[["render",H2]]),Z2={},G2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K2(t,e){return a.openBlock(),a.createElementBlock("svg",G2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3043 2.75 17.863 2.75C18.4217 2.75 18.8923 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.571 21.275 6.113C21.2917 6.655 21.1083 7.11733 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4ZM14.325 9.675L13.625 8.975L15.025 10.375L14.325 9.675Z",fill:"black"},null,-1)])])}const Y2=oe(Z2,[["render",K2]]),J2={},X2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q2(t,e){return a.openBlock(),a.createElementBlock("svg",X2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.905 16.52 13.0007 16.2827 13 16C13 15.7167 12.904 15.479 12.712 15.287C12.52 15.095 12.2827 14.9993 12 15C11.7167 15 11.479 15.096 11.287 15.288C11.095 15.48 10.9993 15.7173 11 16C11 16.2833 11.096 16.521 11.288 16.713C11.48 16.905 11.7173 17.0007 12 17ZM12 13C12.2833 13 12.521 12.904 12.713 12.712C12.905 12.52 13.0007 12.2827 13 12V8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8V12C11 12.2833 11.096 12.521 11.288 12.713C11.48 12.905 11.7173 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const eb=oe(J2,[["render",Q2]]),tb={},nb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ob(t,e){return a.openBlock(),a.createElementBlock("svg",nb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11 18C10.7167 18 10.479 17.904 10.287 17.712C10.095 17.52 9.99934 17.2827 10 17C10 16.7167 10.096 16.479 10.288 16.287C10.48 16.095 10.7173 15.9993 11 16H13C13.2833 16 13.521 16.096 13.713 16.288C13.905 16.48 14.0007 16.7173 14 17C14 17.2833 13.904 17.521 13.712 17.713C13.52 17.905 13.2827 18.0007 13 18H11ZM4 8C3.71667 8 3.479 7.904 3.287 7.712C3.095 7.52 2.99934 7.28267 3 7C3 6.71667 3.096 6.479 3.288 6.287C3.48 6.095 3.71734 5.99934 4 6H20C20.2833 6 20.521 6.096 20.713 6.288C20.905 6.48 21.0007 6.71734 21 7C21 7.28334 20.904 7.521 20.712 7.713C20.52 7.905 20.2827 8.00067 20 8H4ZM7 13C6.71667 13 6.479 12.904 6.287 12.712C6.095 12.52 5.99934 12.2827 6 12C6 11.7167 6.096 11.479 6.288 11.287C6.48 11.095 6.71734 10.9993 7 11H17C17.2833 11 17.521 11.096 17.713 11.288C17.905 11.48 18.0007 11.7173 18 12C18 12.2833 17.904 12.521 17.712 12.713C17.52 12.905 17.2827 13.0007 17 13H7Z",fill:"black"},null,-1)])])}const rb=oe(tb,[["render",ob]]),ab={},ib={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sb(t,e){return a.openBlock(),a.createElementBlock("svg",ib,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 21C5.71667 21 5.479 20.904 5.287 20.712C5.095 20.52 4.99934 20.2827 5 20V5C5 4.71667 5.096 4.479 5.288 4.287C5.48 4.095 5.71734 3.99934 6 4H13.175C13.4083 4 13.6167 4.075 13.8 4.225C13.9833 4.375 14.1 4.56667 14.15 4.8L14.4 6H19C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71734 20 7V15C20 15.2833 19.904 15.521 19.712 15.713C19.52 15.905 19.2827 16.0007 19 16H13.825C13.5917 16 13.3833 15.925 13.2 15.775C13.0167 15.625 12.9 15.4333 12.85 15.2L12.6 14H7V20C7 20.2833 6.904 20.521 6.712 20.713C6.52 20.905 6.28267 21.0007 6 21Z",fill:"black"},null,-1)])])}const lb=oe(ab,[["render",sb]]),cb={},db={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ub(t,e){return a.openBlock(),a.createElementBlock("svg",db,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M4 12V18V6V12ZM14 21C14.2833 21 14.521 20.904 14.713 20.712C14.905 20.52 15.0007 20.2827 15 20C15 19.7167 14.904 19.479 14.712 19.287C14.52 19.095 14.2827 18.9993 14 19C13.7167 19 13.479 19.096 13.287 19.288C13.095 19.48 12.9993 19.7173 13 20C13 20.2833 13.096 20.521 13.288 20.713C13.48 20.905 13.7173 21.0007 14 21ZM20 11C20.2833 11 20.521 10.904 20.713 10.712C20.905 10.52 21.0007 10.2827 21 10C21 9.71667 20.904 9.479 20.712 9.287C20.52 9.095 20.2827 8.99934 20 9C19.7167 9 19.479 9.096 19.287 9.288C19.095 9.48 18.9993 9.71734 19 10C19 10.2833 19.096 10.521 19.288 10.713C19.48 10.905 19.7173 11.0007 20 11ZM10 11C10.2833 11 10.521 10.904 10.713 10.712C10.905 10.52 11.0007 10.2827 11 10C11 9.71667 10.904 9.479 10.712 9.287C10.52 9.095 10.2827 8.99934 10 9H7C6.71667 9 6.479 9.096 6.287 9.288C6.095 9.48 5.99934 9.71734 6 10C6 10.2833 6.096 10.521 6.288 10.713C6.48 10.905 6.71734 11.0007 7 11H10ZM10 15C10.2833 15 10.521 14.904 10.713 14.712C10.905 14.52 11.0007 14.2827 11 14C11 13.7167 10.904 13.479 10.712 13.287C10.52 13.095 10.2827 12.9993 10 13H7C6.71667 13 6.479 13.096 6.287 13.288C6.095 13.48 5.99934 13.7173 6 14C6 14.2833 6.096 14.521 6.288 14.713C6.48 14.905 6.71734 15.0007 7 15H10ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6H4V18H9V20H4ZM14 23C13.1667 23 12.4583 22.7083 11.875 22.125C11.2917 21.5417 11 20.8333 11 20C11 19.35 11.1877 18.7667 11.563 18.25C11.9383 17.7333 12.4173 17.375 13 17.175V15C13 14.7167 13.096 14.479 13.288 14.287C13.48 14.095 13.7173 13.9993 14 14H19V12.825C18.4167 12.625 17.9373 12.2667 17.562 11.75C17.1867 11.2333 16.9993 10.65 17 10C17 9.16667 17.2917 8.45833 17.875 7.875C18.4583 7.29167 19.1667 7 20 7C20.8333 7 21.5417 7.29167 22.125 7.875C22.7083 8.45833 23 9.16667 23 10C23 10.65 22.8123 11.2333 22.437 11.75C22.0617 12.2667 21.5827 12.625 21 12.825V15C21 15.2833 20.904 15.521 20.712 15.713C20.52 15.905 20.2827 16.0007 20 16H15V17.175C15.5833 17.375 16.0627 17.7333 16.438 18.25C16.8133 18.7667 17.0007 19.35 17 20C17 20.8333 16.7083 21.5417 16.125 22.125C15.5417 22.7083 14.8333 23 14 23Z",fill:"black"},null,-1)])])}const pb=oe(cb,[["render",ub]]),fb={},mb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hb(t,e){return a.openBlock(),a.createElementBlock("svg",mb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8.5 14H9.5C9.78334 14 10.021 13.904 10.213 13.712C10.405 13.52 10.5007 13.2827 10.5 13V12H9.5V13H8.5V11H10.5C10.5 10.7167 10.404 10.479 10.212 10.287C10.02 10.095 9.78267 9.99934 9.5 10H8.5C8.21667 10 7.979 10.096 7.787 10.288C7.595 10.48 7.49934 10.7173 7.5 11V13C7.5 13.2833 7.596 13.521 7.788 13.713C7.98 13.905 8.21734 14.0007 8.5 14ZM11.5 14H12.5V10H11.5V14ZM13.5 14H14.5V12.5H16V11.5H14.5V11H16.5V10H13.5V14ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const gb=oe(fb,[["render",hb]]),bb={},_b={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yb(t,e){return a.openBlock(),a.createElementBlock("svg",_b,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M0 18V16.425C0 15.7083 0.366667 15.125 1.1 14.675C1.83333 14.225 2.8 14 4 14C4.21667 14 4.425 14.0043 4.625 14.013C4.825 14.0217 5.01667 14.0423 5.2 14.075C4.96667 14.425 4.79167 14.7917 4.675 15.175C4.55833 15.5583 4.5 15.9583 4.5 16.375V18H0ZM6 18V16.375C6 15.8417 6.146 15.354 6.438 14.912C6.73 14.47 7.14233 14.0827 7.675 13.75C8.20833 13.4167 8.846 13.1667 9.588 13C10.33 12.8333 11.134 12.75 12 12.75C12.8833 12.75 13.696 12.8333 14.438 13C15.18 13.1667 15.8173 13.4167 16.35 13.75C16.8833 14.0833 17.2917 14.471 17.575 14.913C17.8583 15.355 18 15.8423 18 16.375V18H6ZM19.5 18V16.375C19.5 15.9417 19.4457 15.5333 19.337 15.15C19.2283 14.7667 19.066 14.4083 18.85 14.075C19.0333 14.0417 19.221 14.021 19.413 14.013C19.605 14.005 19.8007 14.0007 20 14C21.2 14 22.1667 14.221 22.9 14.663C23.6333 15.105 24 15.6923 24 16.425V18H19.5ZM8.125 16H15.9C15.7333 15.6667 15.2707 15.375 14.512 15.125C13.7533 14.875 12.916 14.75 12 14.75C11.0833 14.75 10.2457 14.875 9.487 15.125C8.72833 15.375 8.27467 15.6667 8.126 16H8.125ZM4 13C3.45 13 2.979 12.804 2.587 12.412C2.195 12.02 1.99933 11.5493 2 11C2 10.4333 2.196 9.95833 2.588 9.575C2.98 9.19167 3.45067 9 4 9C4.56667 9 5.04167 9.19167 5.425 9.575C5.80833 9.95833 6 10.4333 6 11C6 11.55 5.80833 12.021 5.425 12.413C5.04167 12.805 4.56667 13.0007 4 13ZM20 13C19.45 13 18.979 12.804 18.587 12.412C18.195 12.02 17.9993 11.5493 18 11C18 10.4333 18.196 9.95833 18.588 9.575C18.98 9.19167 19.4507 9 20 9C20.5667 9 21.0417 9.19167 21.425 9.575C21.8083 9.95833 22 10.4333 22 11C22 11.55 21.8083 12.021 21.425 12.413C21.0417 12.805 20.5667 13.0007 20 13ZM12 12C11.1667 12 10.4583 11.7083 9.875 11.125C9.29167 10.5417 9 9.83333 9 9C9 8.15 9.29167 7.43733 9.875 6.862C10.4583 6.28667 11.1667 5.99933 12 6C12.85 6 13.5627 6.28767 14.138 6.863C14.7133 7.43833 15.0007 8.15067 15 9C15 9.83333 14.7123 10.5417 14.137 11.125C13.5617 11.7083 12.8493 12 12 12ZM12 10C12.2833 10 12.521 9.904 12.713 9.712C12.905 9.52 13.0007 9.28267 13 9C13 8.71667 12.904 8.479 12.712 8.287C12.52 8.095 12.2827 7.99933 12 8C11.7167 8 11.479 8.096 11.287 8.288C11.095 8.48 10.9993 8.71733 11 9C11 9.28333 11.096 9.521 11.288 9.713C11.48 9.905 11.7173 10.0007 12 10Z",fill:"black"},null,-1)])])}const vb=oe(bb,[["render",yb]]),Cb={},wb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kb(t,e){return a.openBlock(),a.createElementBlock("svg",wb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 19H9V13H15V19H18V10L12 5.5L6 10V19ZM6 21C5.45 21 4.979 20.804 4.587 20.412C4.195 20.02 3.99934 19.5493 4 19V10C4 9.68333 4.071 9.38333 4.213 9.1C4.355 8.81667 4.55067 8.58333 4.8 8.4L10.8 3.9C10.9833 3.76667 11.175 3.66667 11.375 3.6C11.575 3.53333 11.7833 3.5 12 3.5C12.2167 3.5 12.425 3.53333 12.625 3.6C12.825 3.66667 13.0167 3.76667 13.2 3.9L19.2 8.4C19.45 8.58333 19.646 8.81667 19.788 9.1C19.93 9.38333 20.0007 9.68333 20 10V19C20 19.55 19.804 20.021 19.412 20.413C19.02 20.805 18.5493 21.0007 18 21H13V15H11V21H6Z",fill:"black"},null,-1)])])}const xb=oe(Cb,[["render",kb]]),Eb={},Sb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Tb(t,e){return a.openBlock(),a.createElementBlock("svg",Sb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83334 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17Z",fill:"black"},null,-1)])])}const Ab=oe(Eb,[["render",Tb]]),Nb={},Db={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Bb(t,e){return a.openBlock(),a.createElementBlock("svg",Db,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.905 8.52 13.0007 8.28267 13 8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8C11 8.28333 11.096 8.521 11.288 8.713C11.48 8.905 11.7173 9.00067 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const Lb=oe(Nb,[["render",Bb]]),Mb={},$b={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ob(t,e){return a.openBlock(),a.createElementBlock("svg",$b,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const Ib=oe(Mb,[["render",Ob]]),Rb={},Pb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Vb(t,e){return a.openBlock(),a.createElementBlock("svg",Pb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const Fb=oe(Rb,[["render",Vb]]),zb=a.defineComponent({name:"LoadingIcon"}),vD="",qb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jb(t,e,n,o,r,i){return a.openBlock(),a.createElementBlock("svg",qb,[...e[0]||(e[0]=[a.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),a.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),a.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const Ub=oe(zb,[["render",jb],["__scopeId","data-v-ad6da4a9"]]),Hb={},Wb={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function Zb(t,e){return a.openBlock(),a.createElementBlock("svg",Wb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm0-80h480v-400H240v400Zm240-120q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z"},null,-1)])])}const Gb=oe(Hb,[["render",Zb]]),Kb={},Yb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jb(t,e){return a.openBlock(),a.createElementBlock("svg",Yb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M15.325 16.275C15.1417 16.0583 15.05 15.8127 15.05 15.538C15.05 15.2633 15.1417 15.034 15.325 14.85L17.175 13H10C9.71667 13 9.479 12.904 9.287 12.712C9.095 12.52 8.99934 12.2827 9 12C9 11.7167 9.096 11.479 9.288 11.287C9.48 11.095 9.71734 10.9993 10 11H17.175L15.325 9.15C15.125 8.95 15.025 8.71234 15.025 8.437C15.025 8.16167 15.125 7.92434 15.325 7.725C15.5083 7.525 15.7377 7.425 16.013 7.425C16.2883 7.425 16.5173 7.51667 16.7 7.7L20.3 11.3C20.4 11.4 20.471 11.5083 20.513 11.625C20.555 11.7417 20.5757 11.8667 20.575 12C20.575 12.1333 20.5543 12.2583 20.513 12.375C20.4717 12.4917 20.4007 12.6 20.3 12.7L16.7 16.3C16.4833 16.5167 16.2457 16.6127 15.987 16.588C15.7283 16.5633 15.5077 16.459 15.325 16.275ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H11C11.2833 3 11.521 3.096 11.713 3.288C11.905 3.48 12.0007 3.71734 12 4C12 4.28334 11.904 4.521 11.712 4.713C11.52 4.905 11.2827 5.00067 11 5H5V19H11C11.2833 19 11.521 19.096 11.713 19.288C11.905 19.48 12.0007 19.7173 12 20C12 20.2833 11.904 20.521 11.712 20.713C11.52 20.905 11.2827 21.0007 11 21H5Z",fill:"black"},null,-1)])])}const Xb=oe(Kb,[["render",Jb]]),Qb={},e3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t3(t,e){return a.openBlock(),a.createElementBlock("svg",e3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const n3=oe(Qb,[["render",t3]]),o3={},r3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a3(t,e){return a.openBlock(),a.createElementBlock("svg",r3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 14C5.45 14 4.979 13.804 4.587 13.412C4.195 13.02 3.99934 12.5493 4 12C4 11.45 4.196 10.979 4.588 10.587C4.98 10.195 5.45067 9.99934 6 10C6.55 10 7.021 10.196 7.413 10.588C7.805 10.98 8.00067 11.4507 8 12C8 12.55 7.804 13.021 7.412 13.413C7.02 13.805 6.54934 14.0007 6 14ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM18 14C17.45 14 16.979 13.804 16.587 13.412C16.195 13.02 15.9993 12.5493 16 12C16 11.45 16.196 10.979 16.588 10.587C16.98 10.195 17.4507 9.99934 18 10C18.55 10 19.021 10.196 19.413 10.588C19.805 10.98 20.0007 11.4507 20 12C20 12.55 19.804 13.021 19.412 13.413C19.02 13.805 18.5493 14.0007 18 14Z",fill:"black"},null,-1)])])}const i3=oe(o3,[["render",a3]]),s3={},l3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c3(t,e){return a.openBlock(),a.createElementBlock("svg",l3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11 21C9.75 21 8.57933 20.7667 7.488 20.3C6.396 19.8333 5.44167 19.1917 4.625 18.375C3.80833 17.5583 3.16667 16.604 2.7 15.512C2.23333 14.4207 2 13.25 2 12C2 9.48333 2.871 7.354 4.613 5.612C6.35433 3.87067 8.48333 3 11 3C11.2167 3 11.425 3.00833 11.625 3.025C11.825 3.04167 12.025 3.06667 12.225 3.1C12.4417 3.13333 12.625 3.24567 12.775 3.437C12.925 3.629 13 3.84167 13 4.075C13 4.40833 12.8877 4.66233 12.663 4.837C12.4377 5.01233 12.15 5.08333 11.8 5.05C11.6667 5.03333 11.5333 5.02067 11.4 5.012C11.2667 5.004 11.1333 5 11 5C9.03333 5 7.375 5.675 6.025 7.025C4.675 8.375 4 10.0333 4 12C4 13.9667 4.675 15.625 6.025 16.975C7.375 18.325 9.03333 19 11 19C12.95 19 14.596 18.3333 15.938 17C17.2793 15.6667 17.9667 14.025 18 12.075H18.013H18C18 11.7917 18.096 11.5417 18.288 11.325C18.4793 11.1083 18.7167 11 19 11C19.2667 11 19.5 11.0957 19.7 11.287C19.9 11.479 20 11.7 20 11.95V12C20 14.5167 19.129 16.6457 17.387 18.387C15.6457 20.129 13.5167 21 11 21ZM19 9C18.7167 9 18.4793 8.904 18.288 8.712C18.096 8.52067 18 8.28333 18 8V6H16C15.7167 6 15.4793 5.90433 15.288 5.713C15.096 5.521 15 5.28333 15 5C15 4.71667 15.096 4.479 15.288 4.287C15.4793 4.09567 15.7167 4 16 4H18V2C18 1.71667 18.096 1.479 18.288 1.287C18.4793 1.09567 18.7167 1 19 1C19.2833 1 19.5207 1.09567 19.712 1.287C19.904 1.479 20 1.71667 20 2V4H22C22.2833 4 22.5207 4.09567 22.712 4.287C22.904 4.479 23 4.71667 23 5C23 5.28333 22.904 5.521 22.712 5.713C22.5207 5.90433 22.2833 6 22 6H20V8C20 8.28333 19.904 8.52067 19.712 8.712C19.5207 8.904 19.2833 9 19 9ZM13.1 15.5L10.3 12.7C10.2 12.6 10.125 12.4873 10.075 12.362C10.025 12.2373 10 12.1083 10 11.975V8C10 7.71667 10.096 7.479 10.288 7.287C10.4793 7.09567 10.7167 7 11 7C11.2833 7 11.521 7.09567 11.713 7.287C11.9043 7.479 12 7.71667 12 8V11.6L14.5 14.1C14.6833 14.2833 14.775 14.5167 14.775 14.8C14.775 15.0833 14.6833 15.3167 14.5 15.5C14.3167 15.6833 14.0833 15.775 13.8 15.775C13.5167 15.775 13.2833 15.6833 13.1 15.5V15.5Z",fill:"black"},null,-1)])])}const d3=oe(s3,[["render",c3]]),u3={},p3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f3(t,e){return a.openBlock(),a.createElementBlock("svg",p3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 20C11.45 20 10.979 19.804 10.587 19.412C10.195 19.02 9.99934 18.5493 10 18C10 17.45 10.196 16.979 10.588 16.587C10.98 16.195 11.4507 15.9993 12 16C12.55 16 13.021 16.196 13.413 16.588C13.805 16.98 14.0007 17.4507 14 18C14 18.55 13.804 19.021 13.412 19.413C13.02 19.805 12.5493 20.0007 12 20ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM12 8C11.45 8 10.979 7.804 10.587 7.412C10.195 7.02 9.99934 6.54934 10 6C10 5.45 10.196 4.979 10.588 4.587C10.98 4.195 11.4507 3.99934 12 4C12.55 4 13.021 4.196 13.413 4.588C13.805 4.98 14.0007 5.45067 14 6C14 6.55 13.804 7.021 13.412 7.413C13.02 7.805 12.5493 8.00067 12 8Z",fill:"black"},null,-1)])])}const m3=oe(u3,[["render",f3]]),h3={},g3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b3(t,e){return a.openBlock(),a.createElementBlock("svg",g3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8.70002 12.925L10.075 13.85L11.55 13.1C11.6834 13.0167 11.8334 12.975 12 12.975C12.1667 12.975 12.3167 13.0167 12.45 13.1L13.925 13.85L15.25 12.975L14.25 11H9.65002L8.70002 12.925ZM5.22502 20H18.75L16.15 14.775L14.55 15.85C14.4 15.95 14.2377 16.0043 14.063 16.013C13.8884 16.0217 13.7174 15.984 13.55 15.9L12 15.125L10.45 15.9C10.2834 15.9833 10.1124 16.0167 9.93702 16C9.76169 15.9833 9.59936 15.925 9.45002 15.825L7.80002 14.75L5.22502 20ZM3.60002 22C3.21669 22 2.92936 21.8417 2.73802 21.525C2.54669 21.2083 2.53402 20.8833 2.70002 20.55L7.85002 10.125C8.01669 9.79167 8.26269 9.52067 8.58802 9.312C8.91336 9.10334 9.26736 8.99934 9.65002 9H11V3C11 2.71667 11.096 2.479 11.288 2.287C11.48 2.095 11.7174 1.99934 12 2H17.2C17.3834 2 17.525 2.07934 17.625 2.238C17.725 2.39667 17.7334 2.559 17.65 2.725L17.1 3.775C17.0667 3.85834 17.05 3.93334 17.05 4C17.05 4.06667 17.0667 4.14167 17.1 4.225L17.65 5.275C17.7334 5.44167 17.725 5.604 17.625 5.762C17.525 5.92 17.3834 5.99934 17.2 6H13V9H14.25C14.6334 9 14.9834 9.1 15.3 9.3C15.6167 9.5 15.8667 9.76667 16.05 10.1L21.275 20.55C21.4417 20.8833 21.4294 21.2083 21.238 21.525C21.0467 21.8417 20.759 22 20.375 22H3.60002Z",fill:"black"},null,-1)])])}const _3=oe(h3,[["render",b3]]),y3={},v3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C3(t,e){return a.openBlock(),a.createElementBlock("svg",v3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",fill:"black"},null,-1)])])}const w3=oe(y3,[["render",C3]]),k3={},x3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E3(t,e){return a.openBlock(),a.createElementBlock("svg",x3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10 10.5H11C11.2833 10.5 11.521 10.404 11.713 10.212C11.905 10.02 12.0007 9.78267 12 9.5V8.5C12 8.21667 11.904 7.979 11.712 7.787C11.52 7.595 11.2827 7.49934 11 7.5H9.5C9.36667 7.5 9.25 7.55 9.15 7.65C9.05 7.75 9 7.86667 9 8V12C9 12.1333 9.05 12.25 9.15 12.35C9.25 12.45 9.36667 12.5 9.5 12.5C9.63334 12.5 9.75 12.45 9.85 12.35C9.95 12.25 10 12.1333 10 12V10.5ZM10 9.5V8.5H11V9.5H10ZM15 12.5C15.2833 12.5 15.521 12.404 15.713 12.212C15.905 12.02 16.0007 11.7827 16 11.5V8.5C16 8.21667 15.904 7.979 15.712 7.787C15.52 7.595 15.2827 7.49934 15 7.5H13.5C13.3667 7.5 13.25 7.55 13.15 7.65C13.05 7.75 13 7.86667 13 8V12C13 12.1333 13.05 12.25 13.15 12.35C13.25 12.45 13.3667 12.5 13.5 12.5H15ZM14 11.5V8.5H15V11.5H14ZM18 10.5H18.5C18.6333 10.5 18.75 10.45 18.85 10.35C18.95 10.25 19 10.1333 19 10C19 9.86667 18.95 9.75 18.85 9.65C18.75 9.55 18.6333 9.5 18.5 9.5H18V8.5H18.5C18.6333 8.5 18.75 8.45 18.85 8.35C18.95 8.25 19 8.13334 19 8C19 7.86667 18.95 7.75 18.85 7.65C18.75 7.55 18.6333 7.5 18.5 7.5H17.5C17.3667 7.5 17.25 7.55 17.15 7.65C17.05 7.75 17 7.86667 17 8V12C17 12.1333 17.05 12.25 17.15 12.35C17.25 12.45 17.3667 12.5 17.5 12.5C17.6333 12.5 17.75 12.45 17.85 12.35C17.95 12.25 18 12.1333 18 12V10.5ZM8 18C7.45 18 6.979 17.804 6.587 17.412C6.195 17.02 5.99934 16.5493 6 16V4C6 3.45 6.196 2.979 6.588 2.587C6.98 2.195 7.45067 1.99934 8 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H8ZM4 22C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V7C2 6.71667 2.096 6.479 2.288 6.287C2.48 6.095 2.71734 5.99934 3 6C3.28334 6 3.521 6.096 3.713 6.288C3.905 6.48 4.00067 6.71734 4 7V20H17C17.2833 20 17.521 20.096 17.713 20.288C17.905 20.48 18.0007 20.7173 18 21C18 21.2833 17.904 21.521 17.712 21.713C17.52 21.905 17.2827 22.0007 17 22H4Z",fill:"black"},null,-1)])])}const S3=oe(k3,[["render",E3]]),T3={},A3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N3(t,e){return a.openBlock(),a.createElementBlock("svg",A3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const D3=oe(T3,[["render",N3]]),B3={},L3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M3(t,e){return a.openBlock(),a.createElementBlock("svg",L3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const $3=oe(B3,[["render",M3]]),O3={},I3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R3(t,e){return a.openBlock(),a.createElementBlock("svg",I3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1)])])}const P3=oe(O3,[["render",R3]]),V3={},F3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z3(t,e){return a.openBlock(),a.createElementBlock("svg",F3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 13C5.71667 13 5.479 12.904 5.287 12.712C5.095 12.52 4.99934 12.2827 5 12C5 11.7167 5.096 11.479 5.288 11.287C5.48 11.095 5.71734 10.9993 6 11H18C18.2833 11 18.521 11.096 18.713 11.288C18.905 11.48 19.0007 11.7173 19 12C19 12.2833 18.904 12.521 18.712 12.713C18.52 12.905 18.2827 13.0007 18 13H6Z",fill:"black"},null,-1)])])}const q3=oe(V3,[["render",z3]]),j3={},U3={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H3(t,e){return a.openBlock(),a.createElementBlock("svg",U3,[...e[0]||(e[0]=[a.createStaticVNode('<g filter="url(#filter0_d_2030_169)"><path d="M19.9 20.3L14.3 14.7C13.8 15.1 13.225 15.4167 12.575 15.65C11.925 15.8833 11.2333 16 10.5 16C8.68333 16 7.146 15.3707 5.888 14.112C4.63 12.8533 4.00067 11.316 4 9.5C4 7.68333 4.62933 6.146 5.888 4.888C7.14667 3.63 8.684 3.00067 10.5 3C12.3167 3 13.854 3.62933 15.112 4.888C16.37 6.14667 16.9993 7.684 17 9.5C17 10.2333 16.8833 10.925 16.65 11.575C16.4167 12.225 16.1 12.8 15.7 13.3L21.325 18.925C21.5083 19.1083 21.6 19.3333 21.6 19.6C21.6 19.8667 21.5 20.1 21.3 20.3C21.1167 20.4833 20.8833 20.575 20.6 20.575C20.3167 20.575 20.0833 20.4833 19.9 20.3ZM10.5 14C11.75 14 12.8127 13.5623 13.688 12.687C14.5633 11.8117 15.0007 10.7493 15 9.5C15 8.25 14.5623 7.18733 13.687 6.312C12.8117 5.43667 11.7493 4.99933 10.5 5C9.25 5 8.18733 5.43767 7.312 6.313C6.43667 7.18833 5.99933 8.25067 6 9.5C6 10.75 6.43767 11.8127 7.313 12.688C8.18833 13.5633 9.25067 14.0007 10.5 14Z" fill="black"></path></g><defs><filter id="filter0_d_2030_169" x="-3" y="0" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2030_169"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2030_169" result="shape"></feBlend></filter></defs>',2)])])}const W3=oe(j3,[["render",H3]]),Z3={},G3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K3(t,e){return a.openBlock(),a.createElementBlock("svg",G3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",fill:"black"},null,-1)])])}const Y3=oe(Z3,[["render",K3]]),J3={},X3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q3(t,e){return a.openBlock(),a.createElementBlock("svg",X3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M4.4 19.4251C4.06667 19.5584 3.75 19.5291 3.45 19.3371C3.15 19.1457 3 18.8667 3 18.5001V14.7751C3 14.5417 3.06667 14.3334 3.2 14.1501C3.33333 13.9667 3.51667 13.8501 3.75 13.8001L11 12.0001L3.75 10.2001C3.51667 10.1501 3.33333 10.0334 3.2 9.85006C3.06667 9.66672 3 9.45839 3 9.22506V5.50006C3 5.13339 3.15 4.85406 3.45 4.66206C3.75 4.47072 4.06667 4.44172 4.4 4.57506L19.8 11.0751C20.2167 11.2584 20.425 11.5667 20.425 12.0001C20.425 12.4334 20.2167 12.7417 19.8 12.9251L4.4 19.4251Z",fill:"black"},null,-1)])])}const e_=oe(J3,[["render",Q3]]),t_={},n_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o_(t,e){return a.openBlock(),a.createElementBlock("svg",n_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M9.24995 22L8.84995 18.8C8.63329 18.7167 8.42895 18.6167 8.23695 18.5C8.04495 18.3833 7.85762 18.2583 7.67495 18.125L4.69995 19.375L1.94995 14.625L4.52495 12.675C4.50828 12.5583 4.49995 12.4457 4.49995 12.337V11.663C4.49995 11.5543 4.50828 11.4417 4.52495 11.325L1.94995 9.375L4.69995 4.625L7.67495 5.875C7.85828 5.74167 8.04995 5.61667 8.24995 5.5C8.44995 5.38333 8.64995 5.28333 8.84995 5.2L9.24995 2H14.75L15.15 5.2C15.3666 5.28333 15.571 5.38333 15.763 5.5C15.955 5.61667 16.1423 5.74167 16.325 5.875L19.2999 4.625L22.0499 9.375L19.475 11.325C19.4916 11.4417 19.5 11.5543 19.5 11.663V12.337C19.5 12.4457 19.4833 12.5583 19.45 12.675L22.025 14.625L19.275 19.375L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.75 22H9.24995ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2373 8.84167 9.56195 9.525C8.88662 10.2083 8.54928 11.0333 8.54995 12C8.54995 12.9667 8.88728 13.7917 9.56195 14.475C10.2366 15.1583 11.066 15.5 12.05 15.5Z",fill:"black"},null,-1)])])}const r_=oe(t_,[["render",o_]]),a_={},i_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s_(t,e){return a.openBlock(),a.createElementBlock("svg",i_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M15.85 12.425C16 12.325 16.075 12.1833 16.075 12C16.075 11.8167 16 11.675 15.85 11.575L10.275 8C10.1083 7.88334 9.93734 7.875 9.762 7.975C9.58667 8.075 9.49934 8.225 9.5 8.425V15.575C9.5 15.775 9.58767 15.925 9.763 16.025C9.93833 16.125 10.109 16.1167 10.275 16L15.85 12.425ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const l_=oe(a_,[["render",s_]]),c_={},d_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function u_(t,e){return a.openBlock(),a.createElementBlock("svg",d_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 18C10.3333 18 8.91667 17.4167 7.75 16.25C6.58333 15.0833 6 13.6667 6 12C6 10.3333 6.58333 8.91667 7.75 7.75C8.91667 6.58333 10.3333 6 12 6C13.6667 6 15.0833 6.58333 16.25 7.75C17.4167 8.91667 18 10.3333 18 12C18 13.6667 17.4167 15.0833 16.25 16.25C15.0833 17.4167 13.6667 18 12 18ZM12 16C13.1 16 14.0417 15.6083 14.825 14.825C15.6083 14.0417 16 13.1 16 12C16 10.9 15.6083 9.95833 14.825 9.175C14.0417 8.39167 13.1 8 12 8C10.9 8 9.95833 8.39167 9.175 9.175C8.39167 9.95833 8 10.9 8 12C8 13.1 8.39167 14.0417 9.175 14.825C9.95833 15.6083 10.9 16 12 16ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99933 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99933 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14Z",fill:"black"},null,-1)])])}const p_=oe(c_,[["render",u_]]),f_={},m_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function h_(t,e){return a.openBlock(),a.createElementBlock("svg",m_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10.925 15.125L9.525 13.725C9.425 13.625 9.31667 13.55 9.2 13.5C9.08334 13.45 8.96267 13.425 8.838 13.425C8.71267 13.425 8.58767 13.45 8.463 13.5C8.33834 13.55 8.22567 13.625 8.125 13.725C7.925 13.925 7.825 14.1627 7.825 14.438C7.825 14.7133 7.925 14.9507 8.125 15.15L10.25 17.3C10.35 17.4 10.4583 17.471 10.575 17.513C10.6917 17.555 10.8167 17.5757 10.95 17.575C11.0833 17.575 11.2083 17.554 11.325 17.512C11.4417 17.47 11.55 17.3993 11.65 17.3L15.875 13.075C16.075 12.875 16.175 12.6333 16.175 12.35C16.175 12.0667 16.075 11.825 15.875 11.625C15.675 11.425 15.4333 11.325 15.15 11.325C14.8667 11.325 14.625 11.425 14.425 11.625L10.925 15.125ZM6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V20C20 20.55 19.804 21.021 19.412 21.413C19.02 21.805 18.5493 22.0007 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.479 8.904 13.287 8.712C13.095 8.52 12.9993 8.28267 13 8Z",fill:"black"},null,-1)])])}const g_=oe(f_,[["render",h_]]),b_={},__={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y_(t,e){return a.openBlock(),a.createElementBlock("svg",__,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1)])])}const v_=oe(b_,[["render",y_]]),C_={},w_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k_(t,e){return a.openBlock(),a.createElementBlock("svg",w_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M9 3V1H15V3H9ZM11 14H13V8H11V14ZM12 22C10.7667 22 9.604 21.7623 8.512 21.287C7.42 20.8117 6.466 20.166 5.65 19.35C4.83333 18.5333 4.18733 17.579 3.712 16.487C3.23667 15.395 2.99933 14.2327 3 13C3 11.7667 3.23767 10.604 3.713 9.512C4.18833 8.42 4.834 7.466 5.65 6.65C6.46667 5.83333 7.421 5.18733 8.513 4.712C9.605 4.23667 10.7673 3.99933 12 4C13.0333 4 14.025 4.16667 14.975 4.5C15.925 4.83333 16.8167 5.31667 17.65 5.95L19.05 4.55L20.45 5.95L19.05 7.35C19.6833 8.18333 20.1667 9.075 20.5 10.025C20.8333 10.975 21 11.9667 21 13C21 14.2333 20.7623 15.396 20.287 16.488C19.8117 17.58 19.166 18.534 18.35 19.35C17.5333 20.1667 16.579 20.8127 15.487 21.288C14.395 21.7633 13.2327 22.0007 12 22ZM12 20C13.9333 20 15.5833 19.3167 16.95 17.95C18.3167 16.5833 19 14.9333 19 13C19 11.0667 18.3167 9.41667 16.95 8.05C15.5833 6.68333 13.9333 6 12 6C10.0667 6 8.41667 6.68333 7.05 8.05C5.68333 9.41667 5 11.0667 5 13C5 14.9333 5.68333 16.5833 7.05 17.95C8.41667 19.3167 10.0667 20 12 20Z",fill:"black"},null,-1)])])}const x_=oe(C_,[["render",k_]]),E_={},S_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T_(t,e){return a.openBlock(),a.createElementBlock("svg",S_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8 10H4C3.45 10 2.979 9.804 2.587 9.412C2.195 9.02 1.99934 8.54934 2 8V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H8C8.55 2 9.021 2.196 9.413 2.588C9.805 2.98 10.0007 3.45067 10 4V8C10 8.55 9.804 9.021 9.412 9.413C9.02 9.805 8.54934 10.0007 8 10ZM8 22H4C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V16C2 15.45 2.196 14.979 2.588 14.587C2.98 14.195 3.45067 13.9993 4 14H8C8.55 14 9.021 14.196 9.413 14.588C9.805 14.98 10.0007 15.4507 10 16V20C10 20.55 9.804 21.021 9.412 21.413C9.02 21.805 8.54934 22.0007 8 22ZM20 10H16C15.45 10 14.979 9.804 14.587 9.412C14.195 9.02 13.9993 8.54934 14 8V4C14 3.45 14.196 2.979 14.588 2.587C14.98 2.195 15.4507 1.99934 16 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V8C22 8.55 21.804 9.021 21.412 9.413C21.02 9.805 20.5493 10.0007 20 10ZM20 22H16C15.45 22 14.979 21.804 14.587 21.412C14.195 21.02 13.9993 20.5493 14 20V16C14 15.45 14.196 14.979 14.588 14.587C14.98 14.195 15.4507 13.9993 16 14H20C20.55 14 21.021 14.196 21.413 14.588C21.805 14.98 22.0007 15.4507 22 16V20C22 20.55 21.804 21.021 21.412 21.413C21.02 21.805 20.5493 22.0007 20 22Z",fill:"black"},null,-1)])])}const A_=oe(E_,[["render",T_]]),N_={},D_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B_(t,e){return a.openBlock(),a.createElementBlock("svg",D_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8.5 16.5H10.5C10.7833 16.5 11.021 16.404 11.213 16.212C11.405 16.02 11.5007 15.7827 11.5 15.5V13.5C11.5 13.2167 11.404 12.979 11.212 12.787C11.02 12.595 10.7827 12.4993 10.5 12.5H8.5C8.21667 12.5 7.979 12.596 7.787 12.788C7.595 12.98 7.49934 13.2173 7.5 13.5V15.5C7.5 15.7833 7.596 16.021 7.788 16.213C7.98 16.405 8.21734 16.5007 8.5 16.5ZM8.5 11.5H10.5C10.7833 11.5 11.021 11.404 11.213 11.212C11.405 11.02 11.5007 10.7827 11.5 10.5V8.5C11.5 8.21667 11.404 7.979 11.212 7.787C11.02 7.595 10.7827 7.49934 10.5 7.5H8.5C8.21667 7.5 7.979 7.596 7.787 7.788C7.595 7.98 7.49934 8.21734 7.5 8.5V10.5C7.5 10.7833 7.596 11.021 7.788 11.213C7.98 11.405 8.21734 11.5007 8.5 11.5ZM13.5 16.5H15.5C15.7833 16.5 16.021 16.404 16.213 16.212C16.405 16.02 16.5007 15.7827 16.5 15.5V13.5C16.5 13.2167 16.404 12.979 16.212 12.787C16.02 12.595 15.7827 12.4993 15.5 12.5H13.5C13.2167 12.5 12.979 12.596 12.787 12.788C12.595 12.98 12.4993 13.2173 12.5 13.5V15.5C12.5 15.7833 12.596 16.021 12.788 16.213C12.98 16.405 13.2173 16.5007 13.5 16.5ZM13.5 11.5H15.5C15.7833 11.5 16.021 11.404 16.213 11.212C16.405 11.02 16.5007 10.7827 16.5 10.5V8.5C16.5 8.21667 16.404 7.979 16.212 7.787C16.02 7.595 15.7827 7.49934 15.5 7.5H13.5C13.2167 7.5 12.979 7.596 12.787 7.788C12.595 7.98 12.4993 8.21734 12.5 8.5V10.5C12.5 10.7833 12.596 11.021 12.788 11.213C12.98 11.405 13.2173 11.5007 13.5 11.5ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4Z",fill:"black"},null,-1)])])}const L_=oe(N_,[["render",B_]]),M_={},$_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O_(t,e){return a.openBlock(),a.createElementBlock("svg",$_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const I_=oe(M_,[["render",O_]]),R_={},P_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V_(t,e){return a.openBlock(),a.createElementBlock("svg",P_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1)])])}const F_=oe(R_,[["render",V_]]),z_={},q_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j_(t,e){return a.openBlock(),a.createElementBlock("svg",q_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M2.72505 21C2.34172 21 2.05838 20.8333 1.87505 20.5C1.69172 20.1667 1.69172 19.8333 1.87505 19.5L11.125 3.5C11.3084 3.16667 11.6 3 12 3C12.4 3 12.6917 3.16667 12.875 3.5L22.125 19.5C22.3084 19.8333 22.3084 20.1667 22.125 20.5C21.9417 20.8333 21.6584 21 21.275 21H2.72505ZM12 10C11.7167 10 11.4794 10.0957 11.288 10.287C11.096 10.479 11 10.7167 11 11V14C11 14.2833 11.096 14.5207 11.288 14.712C11.4794 14.904 11.7167 15 12 15C12.2834 15 12.521 14.904 12.713 14.712C12.9044 14.5207 13 14.2833 13 14V11C13 10.7167 12.9044 10.479 12.713 10.287C12.521 10.0957 12.2834 10 12 10ZM12 18C12.2834 18 12.521 17.904 12.713 17.712C12.9044 17.5207 13 17.2833 13 17C13 16.7167 12.9044 16.4793 12.713 16.288C12.521 16.096 12.2834 16 12 16C11.7167 16 11.4794 16.096 11.288 16.288C11.096 16.4793 11 16.7167 11 17C11 17.2833 11.096 17.5207 11.288 17.712C11.4794 17.904 11.7167 18 12 18Z",fill:"black"},null,-1)])])}const U_=oe(z_,[["render",j_]]),H_={},W_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z_(t,e){return a.openBlock(),a.createElementBlock("svg",W_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M19.5 20C19.0833 20 18.729 19.854 18.437 19.562C18.145 19.27 17.9993 18.916 18 18.5V5.5C18 5.08334 18.146 4.729 18.438 4.437C18.73 4.145 19.084 3.99934 19.5 4C19.9167 4 20.271 4.146 20.563 4.438C20.855 4.73 21.0007 5.084 21 5.5V18.5C21 18.9167 20.854 19.271 20.562 19.563C20.27 19.855 19.916 20.0007 19.5 20ZM4.5 20C4.08334 20 3.729 19.854 3.437 19.562C3.145 19.27 2.99934 18.916 3 18.5V14.5C3 14.0833 3.146 13.729 3.438 13.437C3.73 13.145 4.084 12.9993 4.5 13C4.91667 13 5.271 13.146 5.563 13.438C5.855 13.73 6.00067 14.084 6 14.5V18.5C6 18.9167 5.854 19.271 5.562 19.563C5.27 19.855 4.916 20.0007 4.5 20ZM15.5 7C15.0833 7 14.729 6.854 14.437 6.562C14.145 6.27 13.9993 5.916 14 5.5C14 5.08334 14.146 4.729 14.438 4.437C14.73 4.145 15.084 3.99934 15.5 4C15.9167 4 16.271 4.146 16.563 4.438C16.855 4.73 17.0007 5.084 17 5.5C17 5.91667 16.854 6.271 16.562 6.563C16.27 6.855 15.916 7.00067 15.5 7ZM11.5 9C11.0833 9 10.729 8.854 10.437 8.562C10.145 8.27 9.99934 7.916 10 7.5V6.5C10 6.08334 10.146 5.729 10.438 5.437C10.73 5.145 11.084 4.99934 11.5 5C11.9167 5 12.271 5.146 12.563 5.438C12.855 5.73 13.0007 6.084 13 6.5V7.5C13 7.91667 12.854 8.271 12.562 8.563C12.27 8.855 11.916 9.00067 11.5 9ZM8.5 14C8.08334 14 7.729 13.854 7.437 13.562C7.145 13.27 6.99934 12.916 7 12.5V11.5C7 11.0833 7.146 10.729 7.438 10.437C7.73 10.145 8.084 9.99934 8.5 10C8.91667 10 9.271 10.146 9.563 10.438C9.855 10.73 10.0007 11.084 10 11.5V12.5C10 12.9167 9.854 13.271 9.562 13.563C9.27 13.855 8.916 14.0007 8.5 14Z",fill:"black"},null,-1)])])}const G_=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:Wg,AccountCircle:Yg,AccountTreeOutlineRounded:e0,AccountTreeRounded:r0,Add:l0,AddBoxOutlineRounded:p0,ArchiveOutlineRounded:g0,ArrowBackRounded:v0,ArrowDropDownRounded:x0,ArrowForwardRounded:A0,AssignmentOutlineRounded:L0,AttachFileRounded:I0,CalendarTodayOutlineRounded:F0,CancelRounded:U0,ChatOutline:G0,CheckBoxOutlineBlank:X0,CheckBoxOutlineBlankSharp:n2,CheckBoxOutlineRounded:i2,CheckSmallRounded:d2,ChecklistRounded:m2,ChevronLeft:_2,ChevronRight:w2,CloseRounded:S2,ContactsOutlineRounded:D2,ContentCopyOutline:$2,DeleteOutlineRounded:P2,DragIndicator:q2,EditDocumentRounded:W2,EditOutline:Y2,ErrorOutlineRounded:eb,FilterListRounded:rb,FlagRounded:lb,FlowsheetOutlineRounded:pb,GifBox:gb,GroupsOutline:vb,HomeOutlineRounded:xb,ImageRounded:Ab,Info:Lb,KeyboardArrowDown:Ib,KeyboardArrowUp:Fb,Loading:Ub,Lock:Gb,LogoutRounded:Xb,Menu:n3,MoreHoriz:i3,MoreTimeRounded:d3,MoreVert:m3,MountainFlagOutlineRounded:_3,PersonAddOutlineRounded:w3,PictureAsPdfRounded:S3,RadioButtonChecked:D3,RadioButtonCheckedOutline:$3,RadioButtonUnchecked:P3,RemoveRounded:q3,SearchRounded:W3,SelectCheckBox:Y3,SendRounded:e_,Settings:r_,SlideshowRounded:l_,Target:p_,TaskOutlineRounded:g_,TextSnippetRounded:v_,TimerOutline:x_,ViewComfyAltRounded:A_,ViewCompactAltRounded:L_,ViewTimelineRounded:I_,WarningOutlineRounded:F_,WarningRounded:U_,WaterfallChartRounded:oe(H_,[["render",Z_]])},Symbol.toStringTag,{value:"Module"})),K_={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},mi={SM:"sm",MD:"md",LG:"lg",XL:"xl"},fl={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"};({...fl,...{WARNING:"warning",SUCCESS:"success",DANGER:"danger"}});const cu={ROUND:"round",ROUNDED:"rounded"},Y_={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},Ee=a.defineComponent({__name:"AoIcon",props:{name:{},size:{default:mi.MD}},setup(t){const e=t,n=a.computed(()=>G_[e.name]);return(o,r)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),{class:a.normalizeClass(["ao-icon",`ao-icon--${t.size}`])},null,8,["class"]))}}),kD="",J_=["type"],X_={key:0,class:"ao-button__label"},he=a.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>K_.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>mi.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>cu.ROUNDED}},setup(t){const e=t,n=a.computed(()=>e.size),o=a.computed(()=>e.isLoading?"Loading":e.iconName);return(r,i)=>(a.openBlock(),a.createElementBlock("button",{type:t.type,class:a.normalizeClass(["ao-button",`ao-button--${t.variant}`,t.color?`ao-button--${t.color}`:"",`ao-button--${t.corners}`,t.footer?"ao-button--footer":"",t.size?`ao-button--${t.size}`:"",t.iconName&&t.iconPosition?`ao-button--icon-${t.iconPosition}`:"",r.$attrs.disabled?"ao-button--is-disabled":""])},[a.renderSlot(r.$slots,"default",{},()=>[t.label?(a.openBlock(),a.createElementBlock("span",X_,a.toDisplayString(t.label),1)):a.createCommentVNode("",!0)]),o.value?(a.openBlock(),a.createBlock(Ee,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):a.createCommentVNode("",!0)],10,J_))}}),xD="";function Q_(t){const e=a.ref(!1),n=a.ref(""),o=a.computed(()=>"value"in t.value?"value":"innerHTML"),r=()=>{e.value=!e.value},i=c=>{e.value=c},s=c=>async()=>{i(!1),await a.nextTick(()=>{t.value[o.value]=n.value,c==null||c()})},l=c=>async d=>{const u=t.value[o.value];i(!1),await a.nextTick(()=>{c(u,d)})};return a.watch(e,async c=>{await a.nextTick(()=>{setTimeout(()=>{t.value&&c&&(t.value.focus(),n.value=t.value[o.value])},1)})}),{isEditing:e,setIsEditing:i,toggleIsEditing:r,onUpdate:l,onDiscard:s}}const ot=a.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(t,{emit:e}){const n=a.ref(null),o=t,r=e,{isEditing:i,setIsEditing:s,onUpdate:l,onDiscard:c}=Q_(n),d=a.computed(()=>i.value?"input":o.tag||`h${o.level}`),u=a.computed(()=>o.isEditable?i.value?{change:p,click:v=>v.stopPropagation(),blur:m}:{click:g,focus:g}:{}),p=l((v,y)=>{const b=y.target.value;r("update:title",b)}),f=c(),m=async()=>{i.value&&s(!1)},h=()=>{r("toggle-is-editing",!1)},g=v=>{v.stopPropagation(),i.value||s(!0)};return a.watch(()=>o.isEditable,v=>{v||f()}),(v,y)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(d.value),a.mergeProps({id:t.id,ref_key:"target",ref:n,class:["ao-title",`ao-title--${t.level}`,{[`ao-title--${t.color}`]:!!t.color,"ao-title--editable":t.isEditable,"ao-field__input ao-title--editing":a.unref(i),"ao-title--readonly":!a.unref(i)}],type:a.unref(i)?"text":null,value:a.unref(i)?t.title:null,tabindex:"0",onKeyup:a.withKeys(h,["enter"])},a.toHandlers(u.value),{onKeydown:a.withKeys(a.unref(f),["esc"])}),{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}}),ED="",ey={key:0,class:"ao-card-horiz__drag ao-card__drag"},ty={class:"ao-card-horiz__header"},ny={key:0,class:"ao-card-horiz__avatar"},oy={class:"ao-card-horiz__title-group"},ry={key:0,class:"ao-card-horiz__subtitle"},ay={key:1,class:"ao-card-horiz__header"},iy={key:1,class:"ao-card-horiz__body"},sy={key:2,class:"ao-card-horiz__footer"},ly={key:3,class:"ao-card-horiz__secondary"},du=a.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(t,{emit:e}){const n=e,o=r=>{n("update:title",r)};return(r,i)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.tagName),{class:a.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":t.isActive}])},{default:a.withCtx(()=>[t.isDraggable?(a.openBlock(),a.createElementBlock("div",ey,[a.createVNode(Ee,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):a.createCommentVNode("",!0),a.createElementVNode("div",ty,[t.icon?(a.openBlock(),a.createElementBlock("div",ny,[a.createVNode(Ee,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):a.createCommentVNode("",!0),a.createElementVNode("div",oy,[a.createVNode(ot,{id:t.id,class:"ao-card-horiz__title",level:4,title:t.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),a.renderSlot(r.$slots,"subtitle",{},()=>[t.subtitle?(a.openBlock(),a.createElementBlock("span",ry,a.toDisplayString(t.subtitle),1)):a.createCommentVNode("",!0)])]),r.$slots.header?(a.openBlock(),a.createElementBlock("div",ay,[a.renderSlot(r.$slots,"header")])):a.createCommentVNode("",!0)]),r.$slots.default?(a.openBlock(),a.createElementBlock("div",iy,[a.renderSlot(r.$slots,"default")])):a.createCommentVNode("",!0),r.$slots.footer?(a.openBlock(),a.createElementBlock("div",sy,[a.renderSlot(r.$slots,"footer")])):a.createCommentVNode("",!0),r.$slots.secondary?(a.openBlock(),a.createElementBlock("div",ly,[a.renderSlot(r.$slots,"secondary")])):a.createCommentVNode("",!0)]),_:3},8,["class"]))}}),SD="",Xr=a.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(t){const e=t,n=a.computed(()=>e.clickable?"button":"span"),o=a.computed(()=>n.value==="button"?{type:"button"}:{});return(r,i)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-tag",t.color?`ao-tag--${t.color}`:"",t.clickable?"ao-tag--clickable":"",t.closable?"ao-tag--closable":"",t.variant?`ao-tag--${t.variant}`:""]),style:a.normalizeStyle(t.rawColor?{"--ao-tag-bg":t.rawColor}:{})},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),a.mergeProps({class:"ao-tag__label"},o.value,{onClick:i[0]||(i[0]=s=>r.$emit("click",s))}),{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.label)+" ",1),t.variant===a.unref(Y_).SOLID_ICON&&t.iconName?(a.openBlock(),a.createBlock(Ee,{key:0,name:t.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):a.createCommentVNode("",!0)]),_:1},16)),t.closable?(a.openBlock(),a.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:i[1]||(i[1]=s=>r.$emit("close",s))},[a.createVNode(Ee,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):a.createCommentVNode("",!0)],6))}}),TD="",Qr={todo:"todo",done:"done",archived:"archived"},cy={months:"months",weeks:"weeks",days:"days"},dy={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},uu={BEFORE:"before",AFTER:"after"},pu={START:"start",end:"end"},fu={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},Le={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var mu=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(mu||{});const uy={add:"add",remove:"remove",moved:"moved"};var hu=(t=>(t.HOURS="hours",t.DAYS="days",t))(hu||{});const ko={project:"projectId",type:"typeId",assignee:"assigneeId"};function hi(t){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hi(t)}function Tn(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Fe(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function ct(t){Fe(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||hi(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function py(t,e){Fe(2,arguments);var n=ct(t).getTime(),o=Tn(e);return new Date(n+o)}var fy={};function ea(){return fy}function ta(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function gu(t){Fe(1,arguments);var e=ct(t);return e.setHours(0,0,0,0),e}var my=864e5;function hy(t,e){Fe(2,arguments);var n=gu(t),o=gu(e),r=n.getTime()-ta(n),i=o.getTime()-ta(o);return Math.round((r-i)/my)}function gy(t,e){Fe(2,arguments);var n=ct(t),o=ct(e),r=n.getTime()-o.getTime();return r<0?-1:r>0?1:r}var bu=6e4,_u=36e5;function by(t){return Fe(1,arguments),t instanceof Date||hi(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function yu(t){if(Fe(1,arguments),!by(t)&&typeof t!="number")return!1;var e=ct(t);return!isNaN(Number(e))}function ml(t,e){Fe(2,arguments);var n=Tn(e);return py(t,-n)}var _y=864e5;function yy(t){Fe(1,arguments);var e=ct(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),r=n-o;return Math.floor(r/_y)+1}function gi(t){Fe(1,arguments);var e=1,n=ct(t),o=n.getUTCDay(),r=(o<e?7:0)+o-e;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function vu(t){Fe(1,arguments);var e=ct(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=gi(o),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=gi(i);return e.getTime()>=r.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function vy(t){Fe(1,arguments);var e=vu(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=gi(n);return o}var Cy=6048e5;function wy(t){Fe(1,arguments);var e=ct(t),n=gi(e).getTime()-vy(e).getTime();return Math.round(n/Cy)+1}function bi(t,e){var n,o,r,i,s,l,c,d;Fe(1,arguments);var u=ea(),p=Tn((n=(o=(r=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&o!==void 0?o:(c=u.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=ct(t),m=f.getUTCDay(),h=(m<p?7:0)+m-p;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function Cu(t,e){var n,o,r,i,s,l,c,d;Fe(1,arguments);var u=ct(t),p=u.getUTCFullYear(),f=ea(),m=Tn((n=(o=(r=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(p+1,0,m),h.setUTCHours(0,0,0,0);var g=bi(h,e),v=new Date(0);v.setUTCFullYear(p,0,m),v.setUTCHours(0,0,0,0);var y=bi(v,e);return u.getTime()>=g.getTime()?p+1:u.getTime()>=y.getTime()?p:p-1}function ky(t,e){var n,o,r,i,s,l,c,d;Fe(1,arguments);var u=ea(),p=Tn((n=(o=(r=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:u.firstWeekContainsDate)!==null&&o!==void 0?o:(c=u.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=Cu(t,e),m=new Date(0);m.setUTCFullYear(f,0,p),m.setUTCHours(0,0,0,0);var h=bi(m,e);return h}var xy=6048e5;function Ey(t,e){Fe(1,arguments);var n=ct(t),o=bi(n,e).getTime()-ky(n,e).getTime();return Math.round(o/xy)+1}function Se(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var Sy={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return Se(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Se(o+1,2)},d:function(e,n){return Se(e.getUTCDate(),n.length)},a:function(e,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h:function(e,n){return Se(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Se(e.getUTCHours(),n.length)},m:function(e,n){return Se(e.getUTCMinutes(),n.length)},s:function(e,n){return Se(e.getUTCSeconds(),n.length)},S:function(e,n){var o=n.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,o-3));return Se(i,n.length)}};const Kn=Sy;var sr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ty={G:function(e,n,o){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})}},y:function(e,n,o){if(n==="yo"){var r=e.getUTCFullYear(),i=r>0?r:1-r;return o.ordinalNumber(i,{unit:"year"})}return Kn.y(e,n)},Y:function(e,n,o,r){var i=Cu(e,r),s=i>0?i:1-i;if(n==="YY"){var l=s%100;return Se(l,2)}return n==="Yo"?o.ordinalNumber(s,{unit:"year"}):Se(s,n.length)},R:function(e,n){var o=vu(e);return Se(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Se(o,n.length)},Q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return Se(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return Se(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,o){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Kn.M(e,n);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,o){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return Se(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,o,r){var i=Ey(e,r);return n==="wo"?o.ordinalNumber(i,{unit:"week"}):Se(i,n.length)},I:function(e,n,o){var r=wy(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):Se(r,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):Kn.d(e,n)},D:function(e,n,o){var r=yy(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):Se(r,n.length)},E:function(e,n,o){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,o,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return Se(s,2);case"eo":return o.ordinalNumber(s,{unit:"day"});case"eee":return o.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(i,{width:"short",context:"formatting"});case"eeee":default:return o.day(i,{width:"wide",context:"formatting"})}},c:function(e,n,o,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return Se(s,n.length);case"co":return o.ordinalNumber(s,{unit:"day"});case"ccc":return o.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(i,{width:"narrow",context:"standalone"});case"cccccc":return o.day(i,{width:"short",context:"standalone"});case"cccc":default:return o.day(i,{width:"wide",context:"standalone"})}},i:function(e,n,o){var r=e.getUTCDay(),i=r===0?7:r;switch(n){case"i":return String(i);case"ii":return Se(i,n.length);case"io":return o.ordinalNumber(i,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,o){var r=e.getUTCHours(),i=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,n,o){var r=e.getUTCHours(),i;switch(r===12?i=sr.noon:r===0?i=sr.midnight:i=r/12>=1?"pm":"am",n){case"b":case"bb":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,n,o){var r=e.getUTCHours(),i;switch(r>=17?i=sr.evening:r>=12?i=sr.afternoon:r>=4?i=sr.morning:i=sr.night,n){case"B":case"BB":case"BBB":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,n,o){if(n==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return Kn.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Kn.H(e,n)},K:function(e,n,o){var r=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(r,{unit:"hour"}):Se(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):Se(r,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Kn.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Kn.s(e,n)},S:function(e,n){return Kn.S(e,n)},X:function(e,n,o,r){var i=r._originalDate||e,s=i.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return ku(s);case"XXXX":case"XX":return xo(s);case"XXXXX":case"XXX":default:return xo(s,":")}},x:function(e,n,o,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(n){case"x":return ku(s);case"xxxx":case"xx":return xo(s);case"xxxxx":case"xxx":default:return xo(s,":")}},O:function(e,n,o,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+wu(s,":");case"OOOO":default:return"GMT"+xo(s,":")}},z:function(e,n,o,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+wu(s,":");case"zzzz":default:return"GMT"+xo(s,":")}},t:function(e,n,o,r){var i=r._originalDate||e,s=Math.floor(i.getTime()/1e3);return Se(s,n.length)},T:function(e,n,o,r){var i=r._originalDate||e,s=i.getTime();return Se(s,n.length)}};function wu(t,e){var n=t>0?"-":"+",o=Math.abs(t),r=Math.floor(o/60),i=o%60;if(i===0)return n+String(r);var s=e||"";return n+String(r)+s+Se(i,2)}function ku(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Se(Math.abs(t)/60,2)}return xo(t,e)}function xo(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),i=Se(Math.floor(r/60),2),s=Se(r%60,2);return o+i+n+s}const Ay=Ty;var xu=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Eu=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Ny=function(e,n){var o=e.match(/(P+)(p+)?/)||[],r=o[1],i=o[2];if(!i)return xu(e,n);var s;switch(r){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",xu(r,n)).replace("{{time}}",Eu(i,n))},Dy={p:Eu,P:Ny};const By=Dy;var Ly=["D","DD"],My=["YY","YYYY"];function $y(t){return Ly.indexOf(t)!==-1}function Oy(t){return My.indexOf(t)!==-1}function Su(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Iy={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ry=function(e,n,o){var r,i=Iy[e];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};const Py=Ry;function hl(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,o=t.formats[n]||t.formats[t.defaultWidth];return o}}var Vy={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Fy={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zy={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qy={date:hl({formats:Vy,defaultWidth:"full"}),time:hl({formats:Fy,defaultWidth:"full"}),dateTime:hl({formats:zy,defaultWidth:"full"})};const jy=qy;var Uy={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Hy=function(e,n,o,r){return Uy[e]};const Wy=Hy;function na(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",r;if(o==="formatting"&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):i;r=t.formattingValues[s]||t.formattingValues[i]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[c]||t.values[l]}var d=t.argumentCallback?t.argumentCallback(e):e;return r[d]}}var Zy={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Gy={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ky={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Yy={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Jy={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Xy={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Qy=function(e,n){var o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},ev={ordinalNumber:Qy,era:na({values:Zy,defaultWidth:"wide"}),quarter:na({values:Gy,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:na({values:Ky,defaultWidth:"wide"}),day:na({values:Yy,defaultWidth:"wide"}),dayPeriod:na({values:Jy,defaultWidth:"wide",formattingValues:Xy,defaultFormattingWidth:"wide"})};const tv=ev;function oa(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],i=e.match(r);if(!i)return null;var s=i[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?ov(l,function(p){return p.test(s)}):nv(l,function(p){return p.test(s)}),d;d=t.valueCallback?t.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;var u=e.slice(s.length);return{value:d,rest:u}}}function nv(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function ov(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function rv(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.match(t.matchPattern);if(!o)return null;var r=o[0],i=e.match(t.parsePattern);if(!i)return null;var s=t.valueCallback?t.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;var l=e.slice(r.length);return{value:s,rest:l}}}var av=/^(\d+)(th|st|nd|rd)?/i,iv=/\d+/i,sv={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lv={any:[/^b/i,/^(a|c)/i]},cv={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dv={any:[/1/i,/2/i,/3/i,/4/i]},uv={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pv={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},fv={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},mv={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},hv={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gv={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bv={ordinalNumber:rv({matchPattern:av,parsePattern:iv,valueCallback:function(e){return parseInt(e,10)}}),era:oa({matchPatterns:sv,defaultMatchWidth:"wide",parsePatterns:lv,defaultParseWidth:"any"}),quarter:oa({matchPatterns:cv,defaultMatchWidth:"wide",parsePatterns:dv,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:oa({matchPatterns:uv,defaultMatchWidth:"wide",parsePatterns:pv,defaultParseWidth:"any"}),day:oa({matchPatterns:fv,defaultMatchWidth:"wide",parsePatterns:mv,defaultParseWidth:"any"}),dayPeriod:oa({matchPatterns:hv,defaultMatchWidth:"any",parsePatterns:gv,defaultParseWidth:"any"})},_v={code:"en-US",formatDistance:Py,formatLong:jy,formatRelative:Wy,localize:tv,match:bv,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Tu=_v;var yv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cv=/^'([^]*?)'?$/,wv=/''/g,kv=/[a-zA-Z]/;function Au(t,e,n){var o,r,i,s,l,c,d,u,p,f,m,h,g,v,y,_,b,k;Fe(2,arguments);var w=String(e),C=ea(),x=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:C.locale)!==null&&o!==void 0?o:Tu,S=Tn((i=(s=(l=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(d=n.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&l!==void 0?l:C.firstWeekContainsDate)!==null&&s!==void 0?s:(p=C.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=Tn((m=(h=(g=(v=n==null?void 0:n.weekStartsOn)!==null&&v!==void 0?v:n==null||(y=n.locale)===null||y===void 0||(_=y.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&g!==void 0?g:C.weekStartsOn)!==null&&h!==void 0?h:(b=C.locale)===null||b===void 0||(k=b.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&m!==void 0?m:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var A=ct(t);if(!yu(A))throw new RangeError("Invalid time value");var z=ta(A),O=ml(A,z),B={firstWeekContainsDate:S,weekStartsOn:T,locale:x,_originalDate:A},L=w.match(vv).map(function(I){var P=I[0];if(P==="p"||P==="P"){var G=By[P];return G(I,x.formatLong)}return I}).join("").match(yv).map(function(I){if(I==="''")return"'";var P=I[0];if(P==="'")return xv(I);var G=Ay[P];if(G)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Oy(I)&&Su(I,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&$y(I)&&Su(I,e,String(t)),G(O,I,x.localize,B);if(P.match(kv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return I}).join("");return L}function xv(t){var e=t.match(Cv);return e?e[1].replace(wv,"'"):t}function Ev(t,e,n){var o,r,i,s,l,c,d,u,p,f;Fe(2,arguments);var m=ct(t),h=ct(e),g=ea(),v=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&o!==void 0?o:Tu,y=Tn((i=(s=(l=(c=n==null?void 0:n.weekStartsOn)!==null&&c!==void 0?c:n==null||(d=n.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&l!==void 0?l:g.weekStartsOn)!==null&&s!==void 0?s:(p=g.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&i!==void 0?i:0);if(!v.localize)throw new RangeError("locale must contain localize property");if(!v.formatLong)throw new RangeError("locale must contain formatLong property");if(!v.formatRelative)throw new RangeError("locale must contain formatRelative property");var _=hy(m,h);if(isNaN(_))throw new RangeError("Invalid time value");var b;_<-6?b="other":_<-1?b="lastWeek":_<0?b="yesterday":_<1?b="today":_<2?b="tomorrow":_<7?b="nextWeek":b="other";var k=ml(m,ta(m)),w=ml(h,ta(h)),C=v.formatRelative(b,k,w,{locale:v,weekStartsOn:y});return Au(m,C,{locale:v,weekStartsOn:y})}function ra(t,e){var n;Fe(1,arguments);var o=Tn((n=e==null?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(o!==2&&o!==1&&o!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var r=Nv(t),i;if(r.date){var s=Dv(r.date,o);i=Bv(s.restDateString,s.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var l=i.getTime(),c=0,d;if(r.time&&(c=Lv(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(d=Mv(r.timezone),isNaN(d))return new Date(NaN)}else{var u=new Date(l+c),p=new Date(0);return p.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),p.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),p}return new Date(l+c+d)}var _i={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Sv=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Tv=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Av=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Nv(t){var e={},n=t.split(_i.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],_i.timeZoneDelimiter.test(e.date)&&(e.date=t.split(_i.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var r=_i.timezone.exec(o);r?(e.time=o.replace(r[1],""),e.timezone=r[1]):e.time=o}return e}function Dv(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=t.match(n);if(!o)return{year:NaN,restDateString:""};var r=o[1]?parseInt(o[1]):null,i=o[2]?parseInt(o[2]):null;return{year:i===null?r:i*100,restDateString:t.slice((o[1]||o[2]).length)}}function Bv(t,e){if(e===null)return new Date(NaN);var n=t.match(Sv);if(!n)return new Date(NaN);var o=!!n[4],r=aa(n[1]),i=aa(n[2])-1,s=aa(n[3]),l=aa(n[4]),c=aa(n[5])-1;if(o)return Pv(e,l,c)?$v(e,l,c):new Date(NaN);var d=new Date(0);return!Iv(e,i,s)||!Rv(e,r)?new Date(NaN):(d.setUTCFullYear(e,i,Math.max(r,s)),d)}function aa(t){return t?parseInt(t):1}function Lv(t){var e=t.match(Tv);if(!e)return NaN;var n=gl(e[1]),o=gl(e[2]),r=gl(e[3]);return Vv(n,o,r)?n*_u+o*bu+r*1e3:NaN}function gl(t){return t&&parseFloat(t.replace(",","."))||0}function Mv(t){if(t==="Z")return 0;var e=t.match(Av);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return Fv(o,r)?n*(o*_u+r*bu):NaN}function $v(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var r=o.getUTCDay()||7,i=(e-1)*7+n+1-r;return o.setUTCDate(o.getUTCDate()+i),o}var Ov=[31,null,31,30,31,30,31,31,30,31,30,31];function Nu(t){return t%400===0||t%4===0&&t%100!==0}function Iv(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Ov[e]||(Nu(t)?29:28))}function Rv(t,e){return e>=1&&e<=(Nu(t)?366:365)}function Pv(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function Vv(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Fv(t,e){return e>=0&&e<=59}var mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function qv(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){if(this instanceof o){var r=[null];r.push.apply(r,arguments);var i=Function.bind.apply(e,r);return new i}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return t[o]}})}),n}var rt={},Du={},ia={},sa={},lr={},yi={};Object.defineProperty(yi,"__esModule",{value:!0}),yi.lexoHelper=void 0,yi.lexoHelper={arrayCopy:jv};function jv(t,e,n,o,r){let i=o;const s=e+r;for(let l=e;l<s;l++)n[i]=t[l],++i}var la={};Object.defineProperty(la,"__esModule",{value:!0});class Uv{constructor(e=""){this.str=e}get length(){return this.str.length}set length(e){this.str=this.str.substring(0,e)}append(e){return this.str=this.str+e,this}remove(e,n){return this.str=this.str.substr(0,e)+this.str.substr(e+n),this}insert(e,n){return this.str=this.str.substr(0,e)+n+this.str.substr(e),this}toString(){return this.str}}la.default=Uv,Object.defineProperty(lr,"__esModule",{value:!0}),lr.LexoInteger=void 0;const vi=yi,Hv=la;class ue{constructor(e,n,o){this.sys=e,this.sign=n,this.mag=o}static parse(e,n){let o=e,r=1;e.indexOf(n.getPositiveChar())===0?o=e.substring(1):e.indexOf(n.getNegativeChar())===0&&(o=e.substring(1),r=-1);const i=new Array(o.length);let s=i.length-1;for(let l=0;s>=0;++l)i[l]=n.toDigit(o.charAt(s)),--s;return ue.make(n,r,i)}static zero(e){return new ue(e,0,ue.ZERO_MAG)}static one(e){return ue.make(e,1,ue.ONE_MAG)}static make(e,n,o){let r;for(r=o.length;r>0&&o[r-1]===0;--r);if(r===0)return ue.zero(e);if(r===o.length)return new ue(e,n,o);const i=new Array(r).fill(0);return vi.lexoHelper.arrayCopy(o,0,i,0,r),new ue(e,n,i)}static add(e,n,o){const r=Math.max(n.length,o.length),i=new Array(r).fill(0);let s=0;for(let l=0;l<r;++l){const c=l<n.length?n[l]:0,d=l<o.length?o[l]:0;let u=c+d+s;for(s=0;u>=e.getBase();u-=e.getBase())++s;i[l]=u}return ue.extendWithCarry(i,s)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return vi.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const r=ue.complement(e,o,n.length),i=ue.add(e,n,r);return i[i.length-1]=0,ue.add(e,i,ue.ONE_MAG)}static multiply(e,n,o){const r=new Array(n.length+o.length).fill(0);for(let i=0;i<n.length;++i)for(let s=0;s<o.length;++s){const l=i+s;for(r[l]+=n[i]*o[s];r[l]>=e.getBase();r[l]-=e.getBase())++r[l+1]}return r}static complement(e,n,o){if(o<=0)throw new Error("Expected at least 1 digit");const r=new Array(o).fill(e.getBase()-1);for(let i=0;i<n.length;++i)r[i]=e.getBase()-1-n[i];return r}static compare(e,n){if(e.length<n.length)return-1;if(e.length>n.length)return 1;for(let o=e.length-1;o>=0;--o){if(e[o]<n[o])return-1;if(e[o]>n[o])return 1}return 0}add(e){if(this.checkSystem(e),this.isZero())return e;if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.subtract(e).negate()):(o=e.negate(),this.subtract(o))}const n=ue.add(this.sys,this.mag,e.mag);return ue.make(this.sys,this.sign,n)}subtract(e){if(this.checkSystem(e),this.isZero())return e.negate();if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.add(e).negate()):(o=e.negate(),this.add(o))}const n=ue.compare(this.mag,e.mag);return n===0?ue.zero(this.sys):n<0?ue.make(this.sys,this.sign===-1?1:-1,ue.subtract(this.sys,e.mag,this.mag)):ue.make(this.sys,this.sign===-1?-1:1,ue.subtract(this.sys,this.mag,e.mag))}multiply(e){if(this.checkSystem(e),this.isZero())return this;if(e.isZero())return e;if(this.isOneish())return this.sign===e.sign?ue.make(this.sys,1,e.mag):ue.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?ue.make(this.sys,1,this.mag):ue.make(this.sys,-1,this.mag);const n=ue.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?ue.make(this.sys,1,n):ue.make(this.sys,-1,n)}negate(){return this.isZero()?this:ue.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(e=1){if(e===0)return this;if(e<0)return this.shiftRight(Math.abs(e));const n=new Array(this.mag.length+e).fill(0);return vi.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),ue.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return ue.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return vi.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),ue.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return ue.make(this.sys,this.sign,ue.complement(this.sys,this.mag,e))}isZero(){return this.sign===0&&this.mag.length===1&&this.mag[0]===0}isOne(){return this.sign===1&&this.mag.length===1&&this.mag[0]===1}getMag(e){return this.mag[e]}compareTo(e){if(this===e)return 0;if(!e)return 1;if(this.sign===-1){if(e.sign===-1){const n=ue.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?ue.compare(this.mag,e.mag):1:e.sign===-1?1:e.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const e=new Hv.default,n=this.mag,o=n.length;for(let r=0;r<o;++r){const i=n[r];e.insert(0,this.sys.toChar(i))}return this.sign===-1&&e.insert(0,this.sys.getNegativeChar()),e.toString()}equals(e){return this===e?!0:e?this.sys.getBase()===e.sys.getBase()&&this.compareTo(e)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(e){if(this.sys.getBase()!==e.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}lr.LexoInteger=ue,ue.ZERO_MAG=[0],ue.ONE_MAG=[1],ue.NEGATIVE_SIGN=-1,ue.ZERO_SIGN=0,ue.POSITIVE_SIGN=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.LexoDecimal=void 0;const ca=lr,Wv=la;class Vt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Vt.make(ca.LexoInteger.make(e,1,[n]),1)}static parse(e,n){const o=e.indexOf(n.getRadixPointChar());if(e.lastIndexOf(n.getRadixPointChar())!==o)throw new Error("More than one "+n.getRadixPointChar());if(o<0)return Vt.make(ca.LexoInteger.parse(e,n),0);const r=e.substring(0,o)+e.substring(o+1);return Vt.make(ca.LexoInteger.parse(r,n),e.length-1-o)}static from(e){return Vt.make(e,0)}static make(e,n){if(e.isZero())return new Vt(e,0);let o=0;for(let s=0;s<n&&e.getMag(s)===0;++s)++o;const r=e.shiftRight(o),i=n-o;return new Vt(r,i)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,r=e.mag,i;for(i=e.sig;o<i;++o)n=n.shiftLeft();for(;o>i;)r=r.shiftLeft(),++i;return Vt.make(n.add(r),o)}subtract(e){let n=this.mag,o=this.sig,r=e.mag,i;for(i=e.sig;o<i;++o)n=n.shiftLeft();for(;o>i;)r=r.shiftLeft(),++i;return Vt.make(n.subtract(r),o)}multiply(e){return Vt.make(this.mag.multiply(e.mag),this.sig+e.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const e=this.floor();return e.add(ca.LexoInteger.one(e.getSystem()))}isExact(){if(this.sig===0)return!0;for(let e=0;e<this.sig;++e)if(this.mag.getMag(e)!==0)return!1;return!0}getScale(){return this.sig}setScale(e,n=!1){if(e>=this.sig)return this;e<0&&(e=0);const o=this.sig-e;let r=this.mag.shiftRight(o);return n&&(r=r.add(ca.LexoInteger.one(r.getSystem()))),Vt.make(r,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let n=this.mag,o=e.mag;return this.sig>e.sig?o=o.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(n=n.shiftLeft(e.sig-this.sig)),n.compareTo(o)}format(){const e=this.mag.format();if(this.sig===0)return e;const n=new Wv.default(e),o=n[0],r=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(r&&n.remove(0,1);n.length<this.sig+1;)n.insert(0,this.mag.getSystem().toChar(0));return n.insert(n.length-this.sig,this.mag.getSystem().getRadixPointChar()),n.length-this.sig===0&&n.insert(0,this.mag.getSystem().toChar(0)),r&&n.insert(0,o),n.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}sa.LexoDecimal=Vt;var Ci={},Bu;function Lu(){if(Bu)return Ci;Bu=1,Object.defineProperty(Ci,"__esModule",{value:!0});const t=lr,e=Ou();class n{constructor(r){this.value=t.LexoInteger.parse(r,e.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new n("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new n("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new n("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[n.BUCKET_0,n.BUCKET_1,n.BUCKET_2]),this._VALUES}static max(){return n.VALUES[n.VALUES.length-1]}static from(r){const i=t.LexoInteger.parse(r,e.LexoRank.NUMERAL_SYSTEM),s=n.VALUES,l=s.length;for(let c=0;c<l;++c){const d=s[c];if(d.value.equals(i))return d}throw new Error("Unknown bucket: "+r)}static resolve(r){const i=n.VALUES,s=i.length;for(let l=0;l<s;++l){const c=i[l];if(c.equals(n.from(r.toString())))return c}throw new Error("No bucket found with id "+r)}format(){return this.value.format()}next(){return this.equals(n.BUCKET_0)?n.BUCKET_1:this.equals(n.BUCKET_1)?n.BUCKET_2:this.equals(n.BUCKET_2)?n.BUCKET_0:n.BUCKET_2}prev(){return this.equals(n.BUCKET_0)?n.BUCKET_2:this.equals(n.BUCKET_1)?n.BUCKET_0:this.equals(n.BUCKET_2)?n.BUCKET_1:n.BUCKET_0}equals(r){return this===r?!0:r?this.value.equals(r.value):!1}}return Ci.default=n,Ci}var bl={},Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});var wi={};Object.defineProperty(wi,"__esModule",{value:!0}),wi.LexoNumeralSystem10=void 0;class Zv{getBase(){return 10}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return"."}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;throw new Error("Not valid digit: "+e)}toChar(e){return String.fromCharCode(e+48)}}wi.LexoNumeralSystem10=Zv;var ki={};Object.defineProperty(ki,"__esModule",{value:!0}),ki.LexoNumeralSystem36=void 0;class Gv{constructor(){this.DIGITS="0123456789abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 36}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+10;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}ki.LexoNumeralSystem36=Gv;var xi={};Object.defineProperty(xi,"__esModule",{value:!0}),xi.LexoNumeralSystem64=void 0;class Kv{constructor(){this.DIGITS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 64}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="A"&&e<="Z")return e.charCodeAt(0)-65+10;if(e==="^")return 36;if(e==="_")return 37;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+38;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}xi.LexoNumeralSystem64=Kv,function(t){var e=mt&&mt.__createBinding||(Object.create?function(o,r,i,s){s===void 0&&(s=i);var l=Object.getOwnPropertyDescriptor(r,i);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[i]}}),Object.defineProperty(o,s,l)}:function(o,r,i,s){s===void 0&&(s=i),o[s]=r[i]}),n=mt&&mt.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&e(r,o,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(Mu,t),n(wi,t),n(ki,t),n(xi,t)}(bl);var $u;function Ou(){if($u)return ia;$u=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.LexoRank=void 0;const t=sa,e=Lu(),n=la,o=bl;class r{constructor(s,l){this.value=s.format()+"|"+r.formatDecimal(l),this.bucket=s,this.decimal=l}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new o.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=t.LexoDecimal.parse("0",r.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=t.LexoDecimal.parse("1",r.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=t.LexoDecimal.parse("8",r.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=r.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=t.LexoDecimal.parse("1000000",r.NUMERAL_SYSTEM).subtract(r.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=r.between(r.MIN_DECIMAL,r.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=t.LexoDecimal.parse("100000",r.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=t.LexoDecimal.parse(r.NUMERAL_SYSTEM.toChar(r.NUMERAL_SYSTEM.getBase()-2)+"00000",r.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return r.from(e.default.BUCKET_0,r.MIN_DECIMAL)}static middle(){const s=r.min();return s.between(r.max(s.bucket))}static max(s=e.default.BUCKET_0){return r.from(s,r.MAX_DECIMAL)}static initial(s){return s===e.default.BUCKET_0?r.from(s,r.INITIAL_MIN_DECIMAL):r.from(s,r.INITIAL_MAX_DECIMAL)}static between(s,l){if(s.getSystem().getBase()!==l.getSystem().getBase())throw new Error("Expected same system");let c=s,d=l,u;if(s.getScale()<l.getScale()){if(u=l.setScale(s.getScale(),!1),s.compareTo(u)>=0)return r.mid(s,l);d=u}if(s.getScale()>d.getScale()){if(u=s.setScale(d.getScale(),!0),u.compareTo(d)>=0)return r.mid(s,l);c=u}let p;for(let h=c.getScale();h>0;d=p){const g=h-1,v=c.setScale(g,!0);if(p=d.setScale(g,!1),v.compareTo(p)===0)return r.checkMid(s,l,v);if(v.compareTo(p)>0)break;h=g,c=v}let f=r.middleInternal(s,l,c,d),m;for(let h=f.getScale();h>0;h=m){m=h-1;const g=f.setScale(m);if(s.compareTo(g)>=0||g.compareTo(l)>=0)break;f=g}return f}static parse(s){const l=s.split("|"),c=e.default.from(l[0]),d=t.LexoDecimal.parse(l[1],r.NUMERAL_SYSTEM);return new r(c,d)}static from(s,l){if(l.getSystem().getBase()!==r.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new r(s,l)}static middleInternal(s,l,c,d){const u=r.mid(c,d);return r.checkMid(s,l,u)}static checkMid(s,l,c){return s.compareTo(c)>=0||c.compareTo(l)>=0?r.mid(s,l):c}static mid(s,l){const d=s.add(l).multiply(t.LexoDecimal.half(s.getSystem())),u=s.getScale()>l.getScale()?s.getScale():l.getScale();if(d.getScale()>u){const p=d.setScale(u,!1);if(p.compareTo(s)>0)return p;const f=d.setScale(u,!0);if(f.compareTo(l)<0)return f}return d}static formatDecimal(s){const l=s.format(),c=new n.default(l);let d=l.indexOf(r.NUMERAL_SYSTEM.getRadixPointChar());const u=r.NUMERAL_SYSTEM.toChar(0);for(d<0&&(d=l.length,c.append(r.NUMERAL_SYSTEM.getRadixPointChar()));d<6;)c.insert(0,u),++d;for(;c[c.length-1]===u;)c.length=c.length-1;return c.toString()}genPrev(){if(this.isMax())return new r(this.bucket,r.INITIAL_MAX_DECIMAL);const s=this.decimal.floor();let c=t.LexoDecimal.from(s).subtract(r.EIGHT_DECIMAL);return c.compareTo(r.MIN_DECIMAL)<=0&&(c=r.between(r.MIN_DECIMAL,this.decimal)),new r(this.bucket,c)}genNext(){if(this.isMin())return new r(this.bucket,r.INITIAL_MIN_DECIMAL);const s=this.decimal.ceil();let c=t.LexoDecimal.from(s).add(r.EIGHT_DECIMAL);return c.compareTo(r.MAX_DECIMAL)>=0&&(c=r.between(this.decimal,r.MAX_DECIMAL)),new r(this.bucket,c)}between(s){if(!this.bucket.equals(s.bucket))throw new Error("Between works only within the same bucket");const l=this.decimal.compareTo(s.decimal);if(l>0)return new r(this.bucket,r.between(s.decimal,this.decimal));if(l===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+s+" this.decimal="+this.decimal+" other.decimal="+s.decimal);return new r(this.bucket,r.between(this.decimal,s.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return r.from(this.bucket.next(),this.decimal)}inPrevBucket(){return r.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(r.MIN_DECIMAL)}isMax(){return this.decimal.equals(r.MAX_DECIMAL)}format(){return this.value}equals(s){return this===s?!0:s?this.value===s.value:!1}toString(){return this.value}compareTo(s){return this===s?0:s?this.value.localeCompare(s.value):1}}return ia.LexoRank=r,ia}(function(t){var e=mt&&mt.__createBinding||(Object.create?function(o,r,i,s){s===void 0&&(s=i);var l=Object.getOwnPropertyDescriptor(r,i);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[i]}}),Object.defineProperty(o,s,l)}:function(o,r,i,s){s===void 0&&(s=i),o[s]=r[i]}),n=mt&&mt.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&e(r,o,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(Ou(),t),n(Lu(),t),n(sa,t),n(lr,t)})(Du),function(t){var e=mt&&mt.__createBinding||(Object.create?function(o,r,i,s){s===void 0&&(s=i);var l=Object.getOwnPropertyDescriptor(r,i);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[i]}}),Object.defineProperty(o,s,l)}:function(o,r,i,s){s===void 0&&(s=i),o[s]=r[i]}),n=mt&&mt.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&e(r,o,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(Du,t),n(bl,t)}(rt);const da=60,Iu=da*8;function Ei(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/Iu),r=Math.floor(t%Iu/da);if(o>0&&r>0)return`${o}d ${r}h`;if(o>0)return`${o}d`;{const i=t%da;return i>0?`${r}h ${i}m`:`${r}h`}}else{const o=Math.floor(t/da),r=t%da;return o>0&&r>0?`${o}h ${r}m`:o>0?`${o}h`:`${r}m`}}function Ru(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.activities)==null?void 0:o.length)??0)},0))??0}function Yv(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.milestones)==null?void 0:o.length)??0)},0))??0}function Jv(t){return(t==null?void 0:t.reduce((e,n)=>{var r;const o=(r=n.milestones)!=null&&r.length?Ru(n.milestones):0;return e+o},0))??0}function Xv(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function ua(t,e){if(t.moved)return cr(e,t.moved.newIndex)}function cr(t,e){if(e===0)if(t.length>1){const n=t[e+1];return rt.LexoRank.parse(n.rank).genPrev().format()}else return rt.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return rt.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return rt.LexoRank.parse(o.rank).between(rt.LexoRank.parse(n.rank)).format()}}function Si(t,e="dd/MM/yyyy"){if(!t)return"";const n=ra(t);return yu(n)?Au(n,e):""}function _l(t,e){return t.status.id===e.id}function Qv(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!_l(n,e))}function e5(t,e){return{...t,status:Qv(t,e)?Qr.done:Qr.todo}}const Pu=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function t5(t,e){const n=t.replace("#",""),o=parseInt(n.slice(0,2),16),r=parseInt(n.slice(2,4),16),i=parseInt(n.slice(4,6),16);return`rgba(${o}, ${r}, ${i}, ${e})`}function n5(t,e=.15){var n;if(t.startsWith("#"))return t5(t,e);if(t.startsWith("rgba")){const o=(n=t.match(/rgba?\(([^)]+)\)/))==null?void 0:n[1].split(",").map(r=>r.trim());if(o&&o.length>=3){const[r,i,s]=o;return`rgba(${r}, ${i}, ${s}, ${e})`}}return t}function Vu(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function Fu(t,e){const n=e.filter(r=>r.firstName||r.lastName).map(r=>({id:r.id,name:Vu(r)})),o=Array.from(t.matchAll(/@([\p{L}\p{M}0-9_-]+)/gu)).map(r=>r[1]);return Array.from(new Set(n.filter(r=>o.includes(r.name)).map(r=>r.id)))}const o5=["title"],r5={key:0,className:"ao-avatar__initials"},a5=["src"],An=a.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:mi.MD},color:{default:"primary"}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>[`ao-avatar--${n.color}`,...n.avatarUrl?["ao-avatar-img",`ao-avatar-img--${n.size}`]:["ao-avatar",`ao-avatar--${n.size}`]]),i=Xv(n.userName),s=l=>{o("close",l)};return(l,c)=>(a.openBlock(),a.createElementBlock("div",{role:"img",class:a.normalizeClass(r.value),title:t.userName},[t.avatarUrl?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",r5,a.toDisplayString(a.unref(i)),1)),t.avatarUrl?(a.openBlock(),a.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,a5)):a.createCommentVNode("",!0),t.isClosable?(a.openBlock(),a.createBlock(he,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:t.color,corners:"round",onClick:a.withModifiers(s,["stop"])},null,8,["color"])):a.createCommentVNode("",!0)],10,o5))}}),DD="",i5={class:"ao-card-template__subitems"},s5={class:"ao-card-template__subitem"},l5={class:"ao-card-template__subitem-number"},c5={class:"ao-card-template__subitem"},d5={class:"ao-card-template__subitem"},u5={class:"ao-card-template__body"},p5={class:"ao-card-template__col ao-card-template__col--phases"},f5={class:"ao-card-template__col-title"},m5={class:"ao-card-template__col-label"},h5={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},g5={class:"ao-card-template__footer"},b5={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},_5={class:"ao-card-template__col-title"},y5={class:"ao-card-template__col-label"},v5={class:"ao-card-template__col-body"},C5={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},w5={class:"ao-card-template__col-title"},k5={class:"ao-card-template__col-label"},x5={class:"ao-card-template__col-body"},E5={class:"ao-card-template-item__secondary"},yl=5,S5=a.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(t,{emit:e}){const n=t,o=e,r=c=>{o("updateTitle",c)},i=(c,d)=>{o("deleteItem",c,d)},s=a.computed(()=>{var c;return((c=n.phases)==null?void 0:c.slice(0,yl))??[]}),l=a.computed(()=>n.phases&&n.phases.length>yl?n.phases.length-yl:0);return(c,d)=>(a.openBlock(),a.createBlock(du,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":r},a.createSlots({subtitle:a.withCtx(()=>[a.createElementVNode("ul",i5,[a.createElementVNode("li",s5,[a.createVNode(Ee,{name:"MountainFlagOutlineRounded",size:"sm"}),a.createElementVNode("span",l5,a.toDisplayString(t.milestones),1)]),a.createElementVNode("li",c5,[a.createVNode(Ee,{name:"TaskOutlineRounded",size:"sm"}),a.createElementVNode("span",d5,a.toDisplayString(t.activities),1)])])]),default:a.withCtx(()=>[a.createElementVNode("div",u5,[a.createElementVNode("div",p5,[a.createElementVNode("div",f5,[a.createVNode(Ee,{name:"WaterfallChartRounded",size:"sm"}),a.createElementVNode("span",m5,a.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(a.openBlock(),a.createElementBlock("ul",h5,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,u=>(a.openBlock(),a.createBlock(Xr,{key:u.id,label:u.name||u.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(a.openBlock(),a.createBlock(Xr,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])])]),secondary:a.withCtx(()=>[a.createElementVNode("div",E5,[a.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:d[0]||(d[0]=a.withModifiers(u=>i(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:a.withCtx(()=>[a.createElementVNode("div",g5,[t.updatedAt?(a.openBlock(),a.createElementBlock("div",b5,[a.createElementVNode("div",_5,[a.createElementVNode("span",y5,a.toDisplayString(c.$t("template.updatedAt.label")),1)]),a.createElementVNode("div",v5,[a.createElementVNode("span",null,a.toDisplayString(t.updatedAt),1)])])):a.createCommentVNode("",!0),t.updatedBy?(a.openBlock(),a.createElementBlock("div",C5,[a.createElementVNode("div",w5,[a.createElementVNode("span",k5,a.toDisplayString(c.$t("template.updatedBy.label")),1)]),a.createElementVNode("div",x5,[a.createVNode(An,{"user-name":t.updatedBy},null,8,["user-name"])])])):a.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}}),BD="",T5={class:"ao-page-header"},A5={class:"ao-page-header-main"},N5={key:0,class:"ao-page-header-secondary"},pa=a.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("header",T5,[a.createElementVNode("div",A5,[t.canGoBack?(a.openBlock(),a.createBlock(he,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:n[0]||(n[0]=o=>e.$emit("goBack"))})):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(a.openBlock(),a.createElementBlock("div",N5,[a.renderSlot(e.$slots,"secondary")])):a.createCommentVNode("",!0)]))}}),LD="",D5=["type"],B5={key:0,class:"ao-button-card__label"},Yn=a.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>fl.BLACK},size:{default:()=>mi.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>cu.ROUNDED}},setup(t){const e=t,n=a.computed(()=>e.size),o=a.computed(()=>e.isLoading?"Loading":e.iconName);return(r,i)=>(a.openBlock(),a.createElementBlock("button",{type:t.type,class:a.normalizeClass(["ao-button-card",`ao-button-card--${t.color}`,`ao-button-card--${t.corners}`,r.$attrs.disabled?"ao-button-card--is-disabled":""])},[a.renderSlot(r.$slots,"default",{},()=>[t.label?(a.openBlock(),a.createElementBlock("span",B5,a.toDisplayString(t.label),1)):a.createCommentVNode("",!0)]),o.value?(a.openBlock(),a.createBlock(Ee,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):a.createCommentVNode("",!0)],10,D5))}}),MD="",L5={class:"ao-card-template-item__footer"},M5={key:0,class:"ao-card-template-item__subitem"},$5={class:"ao-card-template-item__subitem-number"},O5={class:"ao-card-template-item__secondary"},vl=a.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(t,{emit:e}){const n=e,o=l=>{n("update:title",l)},r=["milestones","activities","rules","tasks"],i={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},s=()=>{n("remove")};return(l,c)=>(a.openBlock(),a.createBlock(du,{"onUpdate:title":o},{footer:a.withCtx(()=>[a.createElementVNode("ul",L5,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(r,d=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:d},[l.$props[d]?(a.openBlock(),a.createElementBlock("li",M5,[a.createVNode(Ee,{name:i[d],size:"sm"},null,8,["name"]),a.createElementVNode("span",$5,a.toDisplayString(l.$props[d]),1)])):a.createCommentVNode("",!0)],64))),64))])]),secondary:a.withCtx(()=>[a.createElementVNode("div",O5,[a.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:a.withModifiers(s,["stop"])})])]),_:1}))}}),$D="",I5=a.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(t){const e=t,n=a.computed(()=>{var r;return(r=e.milestones)==null?void 0:r.length}),o=a.computed(()=>e.milestones?Ru(e.milestones):0);return(r,i)=>(a.openBlock(),a.createBlock(vl,a.mergeProps({id:t.id,title:t.name,activities:o.value,milestones:n.value},r.$attrs),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),R5=a.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(t){const e=t,n=a.computed(()=>{var o;return((o=e.activities)==null?void 0:o.length)||0});return(o,r)=>(a.openBlock(),a.createBlock(vl,{activities:n.value},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),P5={class:"ao-list__footer"},V5=a.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addMilestone",{phaseId:n.phase.id})},i=c=>{o("removeMilestone",{phaseId:n.phase.id,id:c})},s=c=>{o("updateMilestone",c)},l=c=>{if(c.moved){const d=ua(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:d})}};return(c,d)=>t.phase?(a.openBlock(),a.createBlock(a.unref(Gn),{key:0,"model-value":t.phase.milestones,class:"ao-templates__list",title:c.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:l},{header:a.withCtx(()=>[a.createVNode(ot,{title:"Milestones",level:3,class:"ao-list__title"})]),item:a.withCtx(({element:u})=>[(a.openBlock(),a.createBlock(R5,{id:u.id,key:u.id,title:u.name,activities:u.activities,"is-active":t.milestoneId===u.id,"is-draggable":!0,"onUpdate:title":p=>s({id:u.id,name:p}),onClick:p=>c.$router.push({params:{milestoneId:u.id}}),onRemove:()=>i(u.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:a.withCtx(()=>[a.createElementVNode("div",P5,[a.createVNode(Yn,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):a.createCommentVNode("",!0)}}),F5=a.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(t){const e=t,n=a.computed(()=>{var o;return((o=e.tasks)==null?void 0:o.length)||0});return(o,r)=>(a.openBlock(),a.createBlock(vl,{tasks:n.value},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),z5={class:"ao-list__footer"},q5=a.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addActivity",{milestoneId:n.milestone.id})},i=c=>{o("updateActivity",{...c})},s=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const d=ua(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:d})}};return(c,d)=>t.milestone?(a.openBlock(),a.createBlock(a.unref(Gn),{key:0,"model-value":t.milestone.activities,title:c.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:l},{header:a.withCtx(()=>[a.createVNode(ot,{title:"Activities",level:3,class:"ao-list__title"})]),item:a.withCtx(({element:u})=>[(a.openBlock(),a.createBlock(F5,{id:u.id,key:u.id,title:u.name,tasks:u.tasks,"is-active":t.activityId===u.id,"is-draggable":!0,"onUpdate:title":p=>i({id:u.id,name:p}),onClick:p=>c.$router.push({params:{activityId:u.id}}),onRemove:()=>s(u.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:a.withCtx(()=>[a.createElementVNode("div",z5,[a.createVNode(Yn,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):a.createCommentVNode("",!0)}}),j5={class:"ao-modal"},U5={key:0,class:"ao-modal__header"},H5={class:"ao-modal__header-meta"},W5={class:"ao-modal__title-group"},Z5={class:"ao-modal__body"},G5={key:1,class:"ao-modal__footer"},Ti=a.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[a.createElementVNode("div",{class:"ao-modal__backdrop",onClick:n[0]||(n[0]=o=>e.$emit("close"))}),a.createElementVNode("div",j5,[e.$slots.header?(a.openBlock(),a.createElementBlock("div",U5,[a.createElementVNode("div",H5,[a.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),a.createElementVNode("header",W5,[a.renderSlot(e.$slots,"header")])])):a.createCommentVNode("",!0),a.createElementVNode("div",Z5,[a.renderSlot(e.$slots,"default")]),e.$slots.footer?(a.openBlock(),a.createElementBlock("footer",G5,[a.renderSlot(e.$slots,"footer")])):a.createCommentVNode("",!0)])],2))}}),OD="",fa=Math.min,Ft=Math.max,Ai=Math.round,Ni=Math.floor,Jn=t=>({x:t,y:t}),K5={left:"right",right:"left",bottom:"top",top:"bottom"},Y5={start:"end",end:"start"};function Cl(t,e){return typeof t=="function"?t(e):t}function dr(t){return t.split("-")[0]}function Di(t){return t.split("-")[1]}function J5(t){return t==="x"?"y":"x"}function zu(t){return t==="y"?"height":"width"}function wl(t){return["top","bottom"].includes(dr(t))?"y":"x"}function qu(t){return J5(wl(t))}function X5(t,e,n){n===void 0&&(n=!1);const o=Di(t),r=qu(t),i=zu(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Bi(s)),[s,Bi(s)]}function Q5(t){const e=Bi(t);return[kl(t),e,kl(e)]}function kl(t){return t.replace(/start|end/g,e=>Y5[e])}function e7(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}function t7(t,e,n,o){const r=Di(t);let i=e7(dr(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(kl)))),i}function Bi(t){return t.replace(/left|right|bottom|top/g,e=>K5[e])}function n7(t){return{top:0,right:0,bottom:0,left:0,...t}}function o7(t){return typeof t!="number"?n7(t):{top:t,right:t,bottom:t,left:t}}function Li(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ju(t,e,n){let{reference:o,floating:r}=t;const i=wl(e),s=qu(e),l=zu(s),c=dr(e),d=i==="y",u=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,f=o[l]/2-r[l]/2;let m;switch(c){case"top":m={x:u,y:o.y-r.height};break;case"bottom":m={x:u,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:p};break;case"left":m={x:o.x-r.width,y:p};break;default:m={x:o.x,y:o.y}}switch(Di(e)){case"start":m[s]-=f*(n&&d?-1:1);break;case"end":m[s]+=f*(n&&d?-1:1);break}return m}const r7=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let d=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:p}=ju(d,o,c),f=o,m={},h=0;for(let g=0;g<l.length;g++){const{name:v,fn:y}=l[g],{x:_,y:b,data:k,reset:w}=await y({x:u,y:p,initialPlacement:o,placement:f,strategy:r,middlewareData:m,rects:d,platform:s,elements:{reference:t,floating:e}});if(u=_??u,p=b??p,m={...m,[v]:{...m[v],...k}},w&&h<=50){h++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(d=w.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):w.rects),{x:u,y:p}=ju(d,f,c)),g=-1;continue}}return{x:u,y:p,placement:f,strategy:r,middlewareData:m}};async function Uu(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:m=0}=Cl(e,t),h=o7(m),v=l[f?p==="floating"?"reference":"floating":p],y=Li(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),_=p==="floating"?{...s.floating,x:o,y:r}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),k=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},w=Li(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_,offsetParent:b,strategy:c}):_);return{top:(y.top-w.top+h.top)/k.y,bottom:(w.bottom-y.bottom+h.bottom)/k.y,left:(y.left-w.left+h.left)/k.x,right:(w.right-y.right+h.right)/k.x}}const a7=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:d}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...v}=Cl(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=dr(r),_=dr(l)===l,b=await(c.isRTL==null?void 0:c.isRTL(d.floating)),k=f||(_||!g?[Bi(l)]:Q5(l));!f&&h!=="none"&&k.push(...t7(l,g,h,b));const w=[l,...k],C=await Uu(e,v),x=[];let S=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&x.push(C[y]),p){const O=X5(r,s,b);x.push(C[O[0]],C[O[1]])}if(S=[...S,{placement:r,overflows:x}],!x.every(O=>O<=0)){var T,A;const O=(((T=i.flip)==null?void 0:T.index)||0)+1,B=w[O];if(B)return{data:{index:O,overflows:S},reset:{placement:B}};let L=(A=S.filter(I=>I.overflows[0]<=0).sort((I,P)=>I.overflows[1]-P.overflows[1])[0])==null?void 0:A.placement;if(!L)switch(m){case"bestFit":{var z;const I=(z=S.map(P=>[P.placement,P.overflows.filter(G=>G>0).reduce((G,R)=>G+R,0)]).sort((P,G)=>P[1]-G[1])[0])==null?void 0:z[0];I&&(L=I);break}case"initialPlacement":L=l;break}if(r!==L)return{reset:{placement:L}}}return{}}}},i7=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:i}=e,{apply:s=()=>{},...l}=Cl(t,e),c=await Uu(e,l),d=dr(n),u=Di(n),p=wl(n)==="y",{width:f,height:m}=o.floating;let h,g;d==="top"||d==="bottom"?(h=d,g=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(g=d,h=u==="end"?"top":"bottom");const v=m-c[h],y=f-c[g],_=!e.middlewareData.shift;let b=v,k=y;if(p){const C=f-c.left-c.right;k=u||_?fa(y,C):C}else{const C=m-c.top-c.bottom;b=u||_?fa(v,C):C}if(_&&!u){const C=Ft(c.left,0),x=Ft(c.right,0),S=Ft(c.top,0),T=Ft(c.bottom,0);p?k=f-2*(C!==0||x!==0?C+x:Ft(c.left,c.right)):b=m-2*(S!==0||T!==0?S+T:Ft(c.top,c.bottom))}await s({...e,availableWidth:k,availableHeight:b});const w=await r.getDimensions(i.floating);return f!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function Xn(t){return Hu(t)?(t.nodeName||"").toLowerCase():"#document"}function kt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Nn(t){var e;return(e=(Hu(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Hu(t){return t instanceof Node||t instanceof kt(t).Node}function Dn(t){return t instanceof Element||t instanceof kt(t).Element}function un(t){return t instanceof HTMLElement||t instanceof kt(t).HTMLElement}function Wu(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof kt(t).ShadowRoot}function ma(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=zt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function s7(t){return["table","td","th"].includes(Xn(t))}function xl(t){const e=El(),n=zt(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function l7(t){let e=ur(t);for(;un(e)&&!Mi(e);){if(xl(e))return e;e=ur(e)}return null}function El(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mi(t){return["html","body","#document"].includes(Xn(t))}function zt(t){return kt(t).getComputedStyle(t)}function $i(t){return Dn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ur(t){if(Xn(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wu(t)&&t.host||Nn(t);return Wu(e)?e.host:e}function Zu(t){const e=ur(t);return Mi(e)?t.ownerDocument?t.ownerDocument.body:t.body:un(e)&&ma(e)?e:Zu(e)}function ha(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Zu(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=kt(r);return i?e.concat(s,s.visualViewport||[],ma(r)?r:[],s.frameElement&&n?ha(s.frameElement):[]):e.concat(r,ha(r))}function Gu(t){const e=zt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=un(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,l=Ai(n)!==i||Ai(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function Sl(t){return Dn(t)?t:t.contextElement}function pr(t){const e=Sl(t);if(!un(e))return Jn(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Gu(e);let s=(i?Ai(n.width):n.width)/o,l=(i?Ai(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const c7=Jn(0);function Ku(t){const e=kt(t);return!El()||!e.visualViewport?c7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function d7(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==kt(t)?!1:e}function Eo(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Sl(t);let s=Jn(1);e&&(o?Dn(o)&&(s=pr(o)):s=pr(t));const l=d7(i,n,o)?Ku(i):Jn(0);let c=(r.left+l.x)/s.x,d=(r.top+l.y)/s.y,u=r.width/s.x,p=r.height/s.y;if(i){const f=kt(i),m=o&&Dn(o)?kt(o):o;let h=f.frameElement;for(;h&&o&&m!==f;){const g=pr(h),v=h.getBoundingClientRect(),y=zt(h),_=v.left+(h.clientLeft+parseFloat(y.paddingLeft))*g.x,b=v.top+(h.clientTop+parseFloat(y.paddingTop))*g.y;c*=g.x,d*=g.y,u*=g.x,p*=g.y,c+=_,d+=b,h=kt(h).frameElement}}return Li({width:u,height:p,x:c,y:d})}function u7(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=un(n),i=Nn(n);if(n===i)return e;let s={scrollLeft:0,scrollTop:0},l=Jn(1);const c=Jn(0);if((r||!r&&o!=="fixed")&&((Xn(n)!=="body"||ma(i))&&(s=$i(n)),un(n))){const d=Eo(n);l=pr(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+c.x,y:e.y*l.y-s.scrollTop*l.y+c.y}}function p7(t){return Array.from(t.getClientRects())}function Yu(t){return Eo(Nn(t)).left+$i(t).scrollLeft}function f7(t){const e=Nn(t),n=$i(t),o=t.ownerDocument.body,r=Ft(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Ft(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Yu(t);const l=-n.scrollTop;return zt(o).direction==="rtl"&&(s+=Ft(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function m7(t,e){const n=kt(t),o=Nn(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const d=El();(!d||d&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function h7(t,e){const n=Eo(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=un(t)?pr(t):Jn(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=r*i.x,d=o*i.y;return{width:s,height:l,x:c,y:d}}function Ju(t,e,n){let o;if(e==="viewport")o=m7(t,n);else if(e==="document")o=f7(Nn(t));else if(Dn(e))o=h7(e,n);else{const r=Ku(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return Li(o)}function Xu(t,e){const n=ur(t);return n===e||!Dn(n)||Mi(n)?!1:zt(n).position==="fixed"||Xu(n,e)}function g7(t,e){const n=e.get(t);if(n)return n;let o=ha(t,[],!1).filter(l=>Dn(l)&&Xn(l)!=="body"),r=null;const i=zt(t).position==="fixed";let s=i?ur(t):t;for(;Dn(s)&&!Mi(s);){const l=zt(s),c=xl(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ma(s)&&!c&&Xu(t,s))?o=o.filter(u=>u!==s):r=l,s=ur(s)}return e.set(t,o),o}function b7(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?g7(e,this._c):[].concat(n),o],l=s[0],c=s.reduce((d,u)=>{const p=Ju(e,u,r);return d.top=Ft(p.top,d.top),d.right=fa(p.right,d.right),d.bottom=fa(p.bottom,d.bottom),d.left=Ft(p.left,d.left),d},Ju(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function _7(t){return Gu(t)}function y7(t,e,n){const o=un(e),r=Nn(e),i=n==="fixed",s=Eo(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Jn(0);if(o||!o&&!i)if((Xn(e)!=="body"||ma(r))&&(l=$i(e)),o){const d=Eo(e,!0,i,e);c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}else r&&(c.x=Yu(r));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Qu(t,e){return!un(t)||zt(t).position==="fixed"?null:e?e(t):t.offsetParent}function ep(t,e){const n=kt(t);if(!un(t))return n;let o=Qu(t,e);for(;o&&s7(o)&&zt(o).position==="static";)o=Qu(o,e);return o&&(Xn(o)==="html"||Xn(o)==="body"&&zt(o).position==="static"&&!xl(o))?n:o||l7(t)||n}const v7=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||ep,i=this.getDimensions;return{reference:y7(e,await r(n),o),floating:{x:0,y:0,...await i(n)}}};function C7(t){return zt(t).direction==="rtl"}const w7={convertOffsetParentRelativeRectToViewportRelativeRect:u7,getDocumentElement:Nn,getClippingRect:b7,getOffsetParent:ep,getElementRects:v7,getClientRects:p7,getDimensions:_7,getScale:pr,isElement:Dn,isRTL:C7};function k7(t,e){let n=null,o;const r=Nn(t);function i(){clearTimeout(o),n&&n.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:d,top:u,width:p,height:f}=t.getBoundingClientRect();if(l||e(),!p||!f)return;const m=Ni(u),h=Ni(r.clientWidth-(d+p)),g=Ni(r.clientHeight-(u+f)),v=Ni(d),_={rootMargin:-m+"px "+-h+"px "+-g+"px "+-v+"px",threshold:Ft(0,fa(1,c))||1};let b=!0;function k(w){const C=w[0].intersectionRatio;if(C!==c){if(!b)return s();C?s(!1,C):o=setTimeout(()=>{s(!1,1e-7)},100)}b=!1}try{n=new IntersectionObserver(k,{..._,root:r.ownerDocument})}catch{n=new IntersectionObserver(k,_)}n.observe(t)}return s(!0),i}function x7(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,d=Sl(t),u=r||i?[...d?ha(d):[],...ha(e)]:[];u.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const p=d&&l?k7(d,n):null;let f=-1,m=null;s&&(m=new ResizeObserver(y=>{let[_]=y;_&&_.target===d&&m&&(m.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{m&&m.observe(e)})),n()}),d&&!c&&m.observe(d),m.observe(e));let h,g=c?Eo(t):null;c&&v();function v(){const y=Eo(t);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,h=requestAnimationFrame(v)}return n(),()=>{u.forEach(y=>{r&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),p&&p(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const E7=(t,e,n)=>{const o=new Map,r={platform:w7,...n},i={...r.platform,_c:o};return r7(t,e,{...r,platform:i})},S7=t=>{const e=a.ref(!1),n=a.ref(),o=a.ref(),r=a.ref(0);function i(){const p=a.unref(t.appendTo);return p?typeof p=="string"?document.getElementById(p)??document.body:p:document.getElementById("floatingElements")??document.body}const s=i(),l=a.ref(()=>{});function c(p){p.relatedTarget&&o.value&&o.value.contains(p.relatedTarget)||t.multiselect.value.deactivate()}function d(){const p=t.multiselect.value.$el,f=p.querySelector(".multiselect-dropdown");if(!f||!p||e.value===!0)return;o.value=f,n.value=p,getComputedStyle(f).getPropertyValue("display")==="none"&&(f.style.display="flex"),r.value=f.offsetHeight,f.style.removeProperty("display"),Object.assign(f.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),s.appendChild(f),t.multiselect.value.handleFocusOut=c;const h=x7(n.value,o.value,u);l.value=()=>{o.value&&s.contains(o.value)&&s.removeChild(o.value),h()}}function u(){!o.value||!n.value||E7(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[a7({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),i7({apply({availableWidth:p,availableHeight:f,elements:m,rects:h}){Object.assign(m.floating.style,{minHeight:`${r.value}px`,width:`${h.reference.width}px`,maxWidth:`${p}px`,maxHeight:`${f}px`})}})]}).then(({x:p,y:f})=>{Object.assign(o.value.style,{left:`${p}px`,top:`${f}px`})})}a.onMounted(()=>{d()}),a.onBeforeUnmount(()=>{l.value()}),a.onUnmounted(()=>{l.value()})};function pn(t){return[null,void 0].indexOf(t)!==-1}function T7(t,e,n){const{object:o,valueProp:r,mode:i}=a.toRefs(t),s=a.getCurrentInstance().proxy,l=n.iv,c=(p,f=!0)=>{l.value=u(p);const m=d(p);e.emit("change",m,s),f&&(e.emit("input",m),e.emit("update:modelValue",m))},d=p=>o.value||pn(p)?p:Array.isArray(p)?p.map(f=>f[r.value]):p[r.value],u=p=>pn(p)?i.value==="single"?{}:[]:p;return{update:c}}function A7(t,e){const{value:n,modelValue:o,mode:r,valueProp:i}=a.toRefs(t),s=a.ref(r.value!=="single"?[]:{}),l=a.computed(()=>o&&o.value!==void 0?o.value:n.value),c=a.computed(()=>r.value==="single"?s.value[i.value]:s.value.map(u=>u[i.value])),d=a.computed(()=>r.value!=="single"?s.value.map(u=>u[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:d,plainValue:c}}function N7(t,e,n){const{regex:o}=a.toRefs(t),r=a.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=a.ref(null),c=()=>{l.value=""},d=f=>{l.value=f.target.value},u=f=>{if(o&&o.value){let m=o.value;typeof m=="string"&&(m=new RegExp(m)),f.key.match(m)||f.preventDefault()}},p=f=>{if(o&&o.value){let h=(f.clipboardData||window.clipboardData).getData("Text"),g=o.value;typeof g=="string"&&(g=new RegExp(g)),h.split("").every(v=>!!v.match(g))||f.preventDefault()}e.emit("paste",f,r)};return a.watch(l,f=>{!i.value&&f&&s(),e.emit("search-change",f,r)}),{search:l,clearSearch:c,handleSearchInput:d,handleKeypress:u,handlePaste:p}}function D7(t,e,n){const{groupSelect:o,mode:r,groups:i,disabledProp:s}=a.toRefs(t),l=a.ref(null),c=u=>{u===void 0||u!==null&&u[s.value]||i.value&&u&&u.group&&(r.value==="single"||!o.value)||(l.value=u)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function Tl(t,e=!0){return e?String(t).toLowerCase().trim():String(t).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function B7(t){return Object.prototype.toString.call(t)==="[object Object]"}function L7(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function M7(t,e,n){const{options:o,mode:r,trackBy:i,limit:s,hideSelected:l,createTag:c,createOption:d,label:u,appendNewTag:p,appendNewOption:f,multipleLabel:m,object:h,loading:g,delay:v,resolveOnLoad:y,minChars:_,filterResults:b,clearOnSearch:k,clearOnSelect:w,valueProp:C,allowAbsent:x,groupLabel:S,canDeselect:T,max:A,strict:z,closeOnSelect:O,closeOnDeselect:B,groups:L,reverse:I,infinite:P,groupOptions:G,groupHideEmpty:R,groupSelect:D,onCreate:K,disabledProp:F,searchStart:U,searchFilter:ce}=a.toRefs(t),ee=a.getCurrentInstance().proxy,ae=n.iv,q=n.ev,ne=n.search,$=n.clearSearch,Y=n.update,be=n.pointer,Ze=n.setPointer,pe=n.clearPointer,Ce=n.focus,xe=n.deactivate,bt=n.close,De=n.localize,_t=a.ref([]),Lt=a.ref([]),Pe=a.ref(!1),yt=a.ref(null),Mt=a.ref(P.value&&s.value===-1?10:s.value),bo=a.computed(()=>c.value||d.value||!1),or=a.computed(()=>p.value!==void 0?p.value:f.value!==void 0?f.value:!0),Ve=a.computed(()=>{if(L.value){let N=sn.value||[],J=[];return N.forEach(ge=>{li(ge[G.value]).forEach(Oe=>{J.push(Object.assign({},Oe,ge[F.value]?{[F.value]:!0}:{}))})}),J}else{let N=li(Lt.value||[]);return _t.value.length&&(N=N.concat(_t.value)),N}}),vt=a.computed(()=>{let N=Ve.value;return I.value&&(N=N.reverse()),Hn.value.length&&(N=Hn.value.concat(N)),si(N)}),lt=a.computed(()=>{let N=vt.value;return Mt.value>0&&(N=N.slice(0,Mt.value)),N}),sn=a.computed(()=>{if(!L.value)return[];let N=[],J=Lt.value||[];return _t.value.length&&N.push({[S.value]:" ",[G.value]:[..._t.value],__CREATE__:!0}),N.concat(J)}),Un=a.computed(()=>{let N=[...sn.value].map(J=>({...J}));return Hn.value.length&&(N[0]&&N[0].__CREATE__?N[0][G.value]=[...Hn.value,...N[0][G.value]]:N=[{[S.value]:" ",[G.value]:[...Hn.value],__CREATE__:!0}].concat(N)),N}),_o=a.computed(()=>{if(!L.value)return[];let N=Un.value;return ir((N||[]).map((J,ge)=>{const Oe=li(J[G.value]);return{...J,index:ge,group:!0,[G.value]:si(Oe,!1).map(Wn=>Object.assign({},Wn,J[F.value]?{[F.value]:!0}:{})),__VISIBLE__:si(Oe).map(Wn=>Object.assign({},Wn,J[F.value]?{[F.value]:!0}:{}))}}))}),rr=a.computed(()=>{switch(r.value){case"single":return!pn(ae.value[C.value]);case"multiple":case"tags":return!pn(ae.value)&&ae.value.length>0}}),yo=a.computed(()=>m!==void 0&&m.value!==void 0?m.value(ae.value,ee):ae.value&&ae.value.length>1?`${ae.value.length} options selected`:"1 option selected"),Wr=a.computed(()=>!Ve.value.length&&!Pe.value&&!Hn.value.length),Zr=a.computed(()=>Ve.value.length>0&&lt.value.length==0&&(ne.value&&L.value||!L.value)),Hn=a.computed(()=>bo.value===!1||!ne.value?[]:sl(ne.value)!==-1?[]:[{[C.value]:ne.value,[En.value[0]]:ne.value,[u.value]:ne.value,__CREATE__:!0}]),En=a.computed(()=>i.value?Array.isArray(i.value)?i.value:[i.value]:[u.value]),rl=a.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),oi=a.computed(()=>g.value||Pe.value),ln=N=>{switch(typeof N!="object"&&(N=Pt(N)),r.value){case"single":Y(N);break;case"multiple":case"tags":Y(ae.value.concat(N));break}e.emit("select",Ot(N),N,ee)},$t=N=>{switch(typeof N!="object"&&(N=Pt(N)),r.value){case"single":ri();break;case"tags":case"multiple":Y(Array.isArray(N)?ae.value.filter(J=>N.map(ge=>ge[C.value]).indexOf(J[C.value])===-1):ae.value.filter(J=>J[C.value]!=N[C.value]));break}e.emit("deselect",Ot(N),N,ee)},Ot=N=>h.value?N:N[C.value],Gr=N=>{$t(N)},al=(N,J)=>{if(J.button!==0){J.preventDefault();return}Gr(N)},ri=()=>{Y(rl.value),e.emit("clear",ee)},It=N=>{if(N.group!==void 0)return r.value==="single"?!1:il(N[G.value])&&N[G.value].length;switch(r.value){case"single":return!pn(ae.value)&&ae.value[C.value]==N[C.value];case"tags":case"multiple":return!pn(ae.value)&&ae.value.map(J=>J[C.value]).indexOf(N[C.value])!==-1}},Kr=N=>N[F.value]===!0,vo=()=>A===void 0||A.value===-1||!rr.value&&A.value>0?!1:ae.value.length>=A.value,Yr=N=>{if(!Kr(N)){if(K&&K.value&&!It(N)&&N.__CREATE__&&(N={...N},delete N.__CREATE__,N=K.value(N,ee),N instanceof Promise)){Pe.value=!0,N.then(J=>{Pe.value=!1,Rt(J)});return}Rt(N)}},Rt=N=>{switch(N.__CREATE__&&(N={...N},delete N.__CREATE__),r.value){case"single":if(N&&It(N)){T.value&&$t(N),B.value&&(pe(),bt());return}N&&ar(N),w.value&&$(),O.value&&(pe(),bt()),N&&ln(N);break;case"multiple":if(N&&It(N)){$t(N),B.value&&(pe(),bt());return}if(vo()){e.emit("max",ee);return}N&&(ar(N),ln(N)),w.value&&$(),l.value&&pe(),O.value&&bt();break;case"tags":if(N&&It(N)){$t(N),B.value&&(pe(),bt());return}if(vo()){e.emit("max",ee);return}N&&ar(N),w.value&&$(),N&&ln(N),l.value&&pe(),O.value&&bt();break}O.value||Ce()},Co=N=>{if(!(Kr(N)||r.value==="single"||!D.value)){switch(r.value){case"multiple":case"tags":ru(N[G.value])?$t(N[G.value]):ln(N[G.value].filter(J=>ae.value.map(ge=>ge[C.value]).indexOf(J[C.value])===-1).filter(J=>!J[F.value]).filter((J,ge)=>ae.value.length+1+ge<=A.value||A.value===-1)),l.value&&be.value&&Ze(_o.value.filter(J=>!J[F.value])[be.value.index]);break}O.value&&xe()}},ar=N=>{Pt(N[C.value])===void 0&&bo.value&&(e.emit("tag",N[C.value],ee),e.emit("option",N[C.value],ee),e.emit("create",N[C.value],ee),or.value&&au(N),$())},ai=()=>{r.value!=="single"&&ln(lt.value.filter(N=>!N.disabled&&!It(N)))},ru=N=>N.find(J=>!It(J)&&!J[F.value])===void 0,il=N=>N.find(J=>!It(J))===void 0,Pt=N=>Ve.value[Ve.value.map(J=>String(J[C.value])).indexOf(String(N))],sl=N=>Ve.value.findIndex(J=>En.value.some(ge=>(parseInt(J[ge])==J[ge]?parseInt(J[ge]):J[ge])===(parseInt(N)==N?parseInt(N):N))),ii=N=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&It(N),au=N=>{_t.value.push(N)},ir=N=>R.value?N.filter(J=>ne.value?J.__VISIBLE__.length:J[G.value].length):N.filter(J=>ne.value?J.__VISIBLE__.length:!0),si=(N,J=!0)=>{let ge=N;if(ne.value&&b.value){let Oe=ce.value;Oe||(Oe=(Wn,dn,ui)=>En.value.some(Zn=>{let cl=Tl(De(Wn[Zn]),z.value);return U.value?cl.startsWith(Tl(dn,z.value)):cl.indexOf(Tl(dn,z.value))!==-1})),ge=ge.filter(Wn=>Oe(Wn,ne.value,ee))}return l.value&&J&&(ge=ge.filter(Oe=>!ii(Oe))),ge},li=N=>{let J=N;return B7(J)&&(J=Object.keys(J).map(ge=>{let Oe=J[ge];return{[C.value]:ge,[En.value[0]]:Oe,[u.value]:Oe}})),J=J.map(ge=>typeof ge=="object"?ge:{[C.value]:ge,[En.value[0]]:ge,[u.value]:ge}),J},Ae=()=>{pn(q.value)||(ae.value=wo(q.value))},cn=N=>(Pe.value=!0,new Promise((J,ge)=>{o.value(ne.value,ee).then(Oe=>{Lt.value=Oe||[],typeof N=="function"&&N(Oe),Pe.value=!1}).catch(Oe=>{console.error(Oe),Lt.value=[],Pe.value=!1}).finally(()=>{J()})})),ci=()=>{if(rr.value)if(r.value==="single"){let N=Pt(ae.value[C.value]);if(N!==void 0){let J=N[u.value];ae.value[u.value]=J,h.value&&(q.value[u.value]=J)}}else ae.value.forEach((N,J)=>{let ge=Pt(ae.value[J][C.value]);if(ge!==void 0){let Oe=ge[u.value];ae.value[J][u.value]=Oe,h.value&&(q.value[J][u.value]=Oe)}})},ll=N=>{cn(N)},wo=N=>pn(N)?r.value==="single"?{}:[]:h.value?N:r.value==="single"?Pt(N)||(x.value?{[u.value]:N,[C.value]:N,[En.value[0]]:N}:{}):N.filter(J=>!!Pt(J)||x.value).map(J=>Pt(J)||{[u.value]:J,[C.value]:J,[En.value[0]]:J}),di=()=>{yt.value=a.watch(ne,N=>{N.length<_.value||!N&&_.value!==0||(Pe.value=!0,k.value&&(Lt.value=[]),setTimeout(()=>{N==ne.value&&o.value(ne.value,ee).then(J=>{(N==ne.value||!ne.value)&&(Lt.value=J,be.value=lt.value.filter(ge=>ge[F.value]!==!0)[0]||null,Pe.value=!1)}).catch(J=>{console.error(J)})},v.value))},{flush:"sync"})};if(r.value!=="single"&&!pn(q.value)&&!Array.isArray(q.value))throw new Error(`v-model must be an array when using "${r.value}" mode`);return o&&typeof o.value=="function"?y.value?cn(Ae):h.value==!0&&Ae():(Lt.value=o.value,Ae()),v.value>-1&&di(),a.watch(v,(N,J)=>{yt.value&&yt.value(),N>=0&&di()}),a.watch(q,N=>{if(pn(N)){Y(wo(N),!1);return}switch(r.value){case"single":(h.value?N[C.value]!=ae.value[C.value]:N!=ae.value[C.value])&&Y(wo(N),!1);break;case"multiple":case"tags":L7(h.value?N.map(J=>J[C.value]):N,ae.value.map(J=>J[C.value]))||Y(wo(N),!1);break}},{deep:!0}),a.watch(o,(N,J)=>{typeof t.options=="function"?y.value&&(!J||N&&N.toString()!==J.toString())&&cn():(Lt.value=t.options,Object.keys(ae.value).length||Ae(),ci())}),a.watch(u,ci),a.watch(s,(N,J)=>{Mt.value=P.value&&N===-1?10:N}),{pfo:vt,fo:lt,filteredOptions:lt,hasSelected:rr,multipleLabelText:yo,eo:Ve,extendedOptions:Ve,eg:sn,extendedGroups:sn,fg:_o,filteredGroups:_o,noOptions:Wr,noResults:Zr,resolving:Pe,busy:oi,offset:Mt,select:ln,deselect:$t,remove:Gr,selectAll:ai,clear:ri,isSelected:It,isDisabled:Kr,isMax:vo,getOption:Pt,handleOptionClick:Yr,handleGroupClick:Co,handleTagRemove:al,refreshOptions:ll,resolveOptions:cn,refreshLabels:ci}}function $7(t,e,n){const{valueProp:o,showOptions:r,searchable:i,groupLabel:s,groups:l,mode:c,groupSelect:d,disabledProp:u,groupOptions:p}=a.toRefs(t),f=n.fo,m=n.fg,h=n.handleOptionClick,g=n.handleGroupClick,v=n.search,y=n.pointer,_=n.setPointer,b=n.clearPointer,k=n.multiselect,w=n.isOpen,C=a.computed(()=>f.value.filter(q=>!q[u.value])),x=a.computed(()=>m.value.filter(q=>!q[u.value])),S=a.computed(()=>c.value!=="single"&&d.value),T=a.computed(()=>y.value&&y.value.group),A=a.computed(()=>ee(y.value)),z=a.computed(()=>{const q=T.value?y.value:ee(y.value),ne=x.value.map(Y=>Y[s.value]).indexOf(q[s.value]);let $=x.value[ne-1];return $===void 0&&($=B.value),$}),O=a.computed(()=>{let q=x.value.map(ne=>ne.label).indexOf(T.value?y.value[s.value]:ee(y.value)[s.value])+1;return x.value.length<=q&&(q=0),x.value[q]}),B=a.computed(()=>[...x.value].slice(-1)[0]),L=a.computed(()=>y.value.__VISIBLE__.filter(q=>!q[u.value])[0]),I=a.computed(()=>{const q=A.value.__VISIBLE__.filter(ne=>!ne[u.value]);return q[q.map(ne=>ne[o.value]).indexOf(y.value[o.value])-1]}),P=a.computed(()=>{const q=ee(y.value).__VISIBLE__.filter(ne=>!ne[u.value]);return q[q.map(ne=>ne[o.value]).indexOf(y.value[o.value])+1]}),G=a.computed(()=>[...z.value.__VISIBLE__.filter(q=>!q[u.value])].slice(-1)[0]),R=a.computed(()=>[...B.value.__VISIBLE__.filter(q=>!q[u.value])].slice(-1)[0]),D=q=>y.value&&(!q.group&&y.value[o.value]===q[o.value]||q.group!==void 0&&y.value[s.value]===q[s.value])?!0:void 0,K=()=>{_(C.value[0]||null)},F=()=>{!y.value||y.value[u.value]===!0||(T.value?g(y.value):h(y.value))},U=()=>{if(y.value===null)_((l.value&&S.value?x.value[0].__CREATE__?C.value[0]:x.value[0]:C.value[0])||null);else if(l.value&&S.value){let q=T.value?L.value:P.value;q===void 0&&(q=O.value,q.__CREATE__&&(q=q[p.value][0])),_(q||null)}else{let q=C.value.map(ne=>ne[o.value]).indexOf(y.value[o.value])+1;C.value.length<=q&&(q=0),_(C.value[q]||null)}a.nextTick(()=>{ae()})},ce=()=>{if(y.value===null){let q=C.value[C.value.length-1];l.value&&S.value&&(q=R.value,q===void 0&&(q=B.value)),_(q||null)}else if(l.value&&S.value){let q=T.value?G.value:I.value;q===void 0&&(q=T.value?z.value:A.value,q.__CREATE__&&(q=G.value,q===void 0&&(q=z.value))),_(q||null)}else{let q=C.value.map(ne=>ne[o.value]).indexOf(y.value[o.value])-1;q<0&&(q=C.value.length-1),_(C.value[q]||null)}a.nextTick(()=>{ae()})},ee=q=>x.value.find(ne=>ne.__VISIBLE__.map($=>$[o.value]).indexOf(q[o.value])!==-1),ae=()=>{let q=k.value.querySelector("[data-pointed]");if(!q)return;let ne=q.parentElement.parentElement;l.value&&(ne=T.value?q.parentElement.parentElement.parentElement:q.parentElement.parentElement.parentElement.parentElement),q.offsetTop+q.offsetHeight>ne.clientHeight+ne.scrollTop&&(ne.scrollTop=q.offsetTop+q.offsetHeight-ne.clientHeight),q.offsetTop<ne.scrollTop&&(ne.scrollTop=q.offsetTop)};return a.watch(v,q=>{i.value&&(q.length&&r.value?K():b())}),a.watch(w,q=>{if(q){let ne=k.value.querySelectorAll("[data-selected]")[0];if(!ne)return;let $=ne.parentElement.parentElement;a.nextTick(()=>{$.scrollTop>0||($.scrollTop=ne.offsetTop)})}}),{pointer:y,canPointGroups:S,isPointed:D,setPointerFirst:K,selectPointer:F,forwardPointer:U,backwardPointer:ce}}function xt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function So(t){var e=xt(t).Element;return t instanceof e||t instanceof Element}function qt(t){var e=xt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Al(t){if(typeof ShadowRoot>"u")return!1;var e=xt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var To=Math.max,Oi=Math.min,fr=Math.round;function Nl(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function tp(){return!/^((?!chrome|android).)*safari/i.test(Nl())}function mr(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,i=1;e&&qt(t)&&(r=t.offsetWidth>0&&fr(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&fr(o.height)/t.offsetHeight||1);var s=So(t)?xt(t):window,l=s.visualViewport,c=!tp()&&n,d=(o.left+(c&&l?l.offsetLeft:0))/r,u=(o.top+(c&&l?l.offsetTop:0))/i,p=o.width/r,f=o.height/i;return{width:p,height:f,top:u,right:d+p,bottom:u+f,left:d,x:d,y:u}}function Dl(t){var e=xt(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function O7(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function I7(t){return t===xt(t)||!qt(t)?Dl(t):O7(t)}function fn(t){return t?(t.nodeName||"").toLowerCase():null}function Qn(t){return((So(t)?t.ownerDocument:t.document)||window.document).documentElement}function Bl(t){return mr(Qn(t)).left+Dl(t).scrollLeft}function Bn(t){return xt(t).getComputedStyle(t)}function Ll(t){var e=Bn(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function R7(t){var e=t.getBoundingClientRect(),n=fr(e.width)/t.offsetWidth||1,o=fr(e.height)/t.offsetHeight||1;return n!==1||o!==1}function P7(t,e,n){n===void 0&&(n=!1);var o=qt(e),r=qt(e)&&R7(e),i=Qn(e),s=mr(t,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((fn(e)!=="body"||Ll(i))&&(l=I7(e)),qt(e)?(c=mr(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=Bl(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function np(t){var e=mr(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function Ii(t){return fn(t)==="html"?t:t.assignedSlot||t.parentNode||(Al(t)?t.host:null)||Qn(t)}function op(t){return["html","body","#document"].indexOf(fn(t))>=0?t.ownerDocument.body:qt(t)&&Ll(t)?t:op(Ii(t))}function ga(t,e){var n;e===void 0&&(e=[]);var o=op(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),i=xt(o),s=r?[i].concat(i.visualViewport||[],Ll(o)?o:[]):o,l=e.concat(s);return r?l:l.concat(ga(Ii(s)))}function V7(t){return["table","td","th"].indexOf(fn(t))>=0}function rp(t){return!qt(t)||Bn(t).position==="fixed"?null:t.offsetParent}function F7(t){var e=/firefox/i.test(Nl()),n=/Trident/i.test(Nl());if(n&&qt(t)){var o=Bn(t);if(o.position==="fixed")return null}var r=Ii(t);for(Al(r)&&(r=r.host);qt(r)&&["html","body"].indexOf(fn(r))<0;){var i=Bn(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Ri(t){for(var e=xt(t),n=rp(t);n&&V7(n)&&Bn(n).position==="static";)n=rp(n);return n&&(fn(n)==="html"||fn(n)==="body"&&Bn(n).position==="static")?e:n||F7(t)||e}var Kt="top",mn="bottom",eo="right",Ln="left",Ml="auto",Pi=[Kt,mn,eo,Ln],hr="start",ba="end",z7="clippingParents",ap="viewport",_a="popper",q7="reference",ip=Pi.reduce(function(t,e){return t.concat([e+"-"+hr,e+"-"+ba])},[]),j7=[].concat(Pi,[Ml]).reduce(function(t,e){return t.concat([e,e+"-"+hr,e+"-"+ba])},[]),U7="beforeRead",H7="read",W7="afterRead",Z7="beforeMain",G7="main",K7="afterMain",Y7="beforeWrite",J7="write",X7="afterWrite",Q7=[U7,H7,W7,Z7,G7,K7,Y7,J7,X7];function eC(t){var e=new Map,n=new Set,o=[];t.forEach(function(i){e.set(i.name,i)});function r(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&r(c)}}),o.push(i)}return t.forEach(function(i){n.has(i.name)||r(i)}),o}function tC(t){var e=eC(t);return Q7.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function nC(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function oC(t){var e=t.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}function rC(t,e){var n=xt(t),o=Qn(t),r=n.visualViewport,i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;var d=tp();(d||!d&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l+Bl(t),y:c}}function aC(t){var e,n=Qn(t),o=Dl(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=To(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=To(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Bl(t),c=-o.scrollTop;return Bn(r||n).direction==="rtl"&&(l+=To(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function iC(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Al(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function $l(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function sC(t,e){var n=mr(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function sp(t,e,n){return e===ap?$l(rC(t,n)):So(e)?sC(e,n):$l(aC(Qn(t)))}function lC(t){var e=ga(Ii(t)),n=["absolute","fixed"].indexOf(Bn(t).position)>=0,o=n&&qt(t)?Ri(t):t;return So(o)?e.filter(function(r){return So(r)&&iC(r,o)&&fn(r)!=="body"}):[]}function cC(t,e,n,o){var r=e==="clippingParents"?lC(t):[].concat(e),i=[].concat(r,[n]),s=i[0],l=i.reduce(function(c,d){var u=sp(t,d,o);return c.top=To(u.top,c.top),c.right=Oi(u.right,c.right),c.bottom=Oi(u.bottom,c.bottom),c.left=To(u.left,c.left),c},sp(t,s,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function to(t){return t.split("-")[0]}function gr(t){return t.split("-")[1]}function lp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function cp(t){var e=t.reference,n=t.element,o=t.placement,r=o?to(o):null,i=o?gr(o):null,s=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(r){case Kt:c={x:s,y:e.y-n.height};break;case mn:c={x:s,y:e.y+e.height};break;case eo:c={x:e.x+e.width,y:l};break;case Ln:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var d=r?lp(r):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case hr:c[d]=c[d]-(e[u]/2-n[u]/2);break;case ba:c[d]=c[d]+(e[u]/2-n[u]/2);break}}return c}function dp(){return{top:0,right:0,bottom:0,left:0}}function dC(t){return Object.assign({},dp(),t)}function uC(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function Ol(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=o===void 0?t.placement:o,i=n.strategy,s=i===void 0?t.strategy:i,l=n.boundary,c=l===void 0?z7:l,d=n.rootBoundary,u=d===void 0?ap:d,p=n.elementContext,f=p===void 0?_a:p,m=n.altBoundary,h=m===void 0?!1:m,g=n.padding,v=g===void 0?0:g,y=dC(typeof v!="number"?v:uC(v,Pi)),_=f===_a?q7:_a,b=t.rects.popper,k=t.elements[h?_:f],w=cC(So(k)?k:k.contextElement||Qn(t.elements.popper),c,u,s),C=mr(t.elements.reference),x=cp({reference:C,element:b,strategy:"absolute",placement:r}),S=$l(Object.assign({},b,x)),T=f===_a?S:C,A={top:w.top-T.top+y.top,bottom:T.bottom-w.bottom+y.bottom,left:w.left-T.left+y.left,right:T.right-w.right+y.right},z=t.modifiersData.offset;if(f===_a&&z){var O=z[r];Object.keys(A).forEach(function(B){var L=[eo,mn].indexOf(B)>=0?1:-1,I=[Kt,mn].indexOf(B)>=0?"y":"x";A[B]+=O[I]*L})}return A}var up={placement:"bottom",modifiers:[],strategy:"absolute"};function pp(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function pC(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,i=r===void 0?up:r;return function(l,c,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},up,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],f=!1,m={state:u,setOptions:function(y){var _=typeof y=="function"?y(u.options):y;g(),u.options=Object.assign({},i,u.options,_),u.scrollParents={reference:So(l)?ga(l):l.contextElement?ga(l.contextElement):[],popper:ga(c)};var b=tC(oC([].concat(o,u.options.modifiers)));return u.orderedModifiers=b.filter(function(k){return k.enabled}),h(),m.update()},forceUpdate:function(){if(!f){var y=u.elements,_=y.reference,b=y.popper;if(pp(_,b)){u.rects={reference:P7(_,Ri(b),u.options.strategy==="fixed"),popper:np(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(A){return u.modifiersData[A.name]=Object.assign({},A.data)});for(var k=0;k<u.orderedModifiers.length;k++){if(u.reset===!0){u.reset=!1,k=-1;continue}var w=u.orderedModifiers[k],C=w.fn,x=w.options,S=x===void 0?{}:x,T=w.name;typeof C=="function"&&(u=C({state:u,options:S,name:T,instance:m})||u)}}}},update:nC(function(){return new Promise(function(v){m.forceUpdate(),v(u)})}),destroy:function(){g(),f=!0}};if(!pp(l,c))return m;m.setOptions(d).then(function(v){!f&&d.onFirstUpdate&&d.onFirstUpdate(v)});function h(){u.orderedModifiers.forEach(function(v){var y=v.name,_=v.options,b=_===void 0?{}:_,k=v.effect;if(typeof k=="function"){var w=k({state:u,name:y,instance:m,options:b}),C=function(){};p.push(w||C)}})}function g(){p.forEach(function(v){return v()}),p=[]}return m}}var Vi={passive:!0};function fC(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,i=r===void 0?!0:r,s=o.resize,l=s===void 0?!0:s,c=xt(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",n.update,Vi)}),l&&c.addEventListener("resize",n.update,Vi),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",n.update,Vi)}),l&&c.removeEventListener("resize",n.update,Vi)}}var mC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fC,data:{}};function hC(t){var e=t.state,n=t.name;e.modifiersData[n]=cp({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var gC={name:"popperOffsets",enabled:!0,phase:"read",fn:hC,data:{}},bC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _C(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:fr(n*r)/r||0,y:fr(o*r)/r||0}}function fp(t){var e,n=t.popper,o=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,l=t.position,c=t.gpuAcceleration,d=t.adaptive,u=t.roundOffsets,p=t.isFixed,f=s.x,m=f===void 0?0:f,h=s.y,g=h===void 0?0:h,v=typeof u=="function"?u({x:m,y:g}):{x:m,y:g};m=v.x,g=v.y;var y=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),b=Ln,k=Kt,w=window;if(d){var C=Ri(n),x="clientHeight",S="clientWidth";if(C===xt(n)&&(C=Qn(n),Bn(C).position!=="static"&&l==="absolute"&&(x="scrollHeight",S="scrollWidth")),C=C,r===Kt||(r===Ln||r===eo)&&i===ba){k=mn;var T=p&&C===w&&w.visualViewport?w.visualViewport.height:C[x];g-=T-o.height,g*=c?1:-1}if(r===Ln||(r===Kt||r===mn)&&i===ba){b=eo;var A=p&&C===w&&w.visualViewport?w.visualViewport.width:C[S];m-=A-o.width,m*=c?1:-1}}var z=Object.assign({position:l},d&&bC),O=u===!0?_C({x:m,y:g},xt(n)):{x:m,y:g};if(m=O.x,g=O.y,c){var B;return Object.assign({},z,(B={},B[k]=_?"0":"",B[b]=y?"0":"",B.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",B))}return Object.assign({},z,(e={},e[k]=_?g+"px":"",e[b]=y?m+"px":"",e.transform="",e))}function yC(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:to(e.placement),variation:gr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,fp(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,fp(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var vC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yC,data:{}};function CC(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},r=e.attributes[n]||{},i=e.elements[n];!qt(i)||!fn(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(s){var l=r[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function wC(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(o){var r=e.elements[o],i=e.attributes[o]||{},s=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:n[o]),l=s.reduce(function(c,d){return c[d]="",c},{});!qt(r)||!fn(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}var kC={name:"applyStyles",enabled:!0,phase:"write",fn:CC,effect:wC,requires:["computeStyles"]},xC=[mC,gC,vC,kC],EC=pC({defaultModifiers:xC});function SC(t){return t==="x"?"y":"x"}function Fi(t,e,n){return To(t,Oi(e,n))}function TC(t,e,n){var o=Fi(t,e,n);return o>n?n:o}function AC(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,p=n.padding,f=n.tether,m=f===void 0?!0:f,h=n.tetherOffset,g=h===void 0?0:h,v=Ol(e,{boundary:c,rootBoundary:d,padding:p,altBoundary:u}),y=to(e.placement),_=gr(e.placement),b=!_,k=lp(y),w=SC(k),C=e.modifiersData.popperOffsets,x=e.rects.reference,S=e.rects.popper,T=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,A=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,O={x:0,y:0};if(C){if(i){var B,L=k==="y"?Kt:Ln,I=k==="y"?mn:eo,P=k==="y"?"height":"width",G=C[k],R=G+v[L],D=G-v[I],K=m?-S[P]/2:0,F=_===hr?x[P]:S[P],U=_===hr?-S[P]:-x[P],ce=e.elements.arrow,ee=m&&ce?np(ce):{width:0,height:0},ae=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:dp(),q=ae[L],ne=ae[I],$=Fi(0,x[P],ee[P]),Y=b?x[P]/2-K-$-q-A.mainAxis:F-$-q-A.mainAxis,be=b?-x[P]/2+K+$+ne+A.mainAxis:U+$+ne+A.mainAxis,Ze=e.elements.arrow&&Ri(e.elements.arrow),pe=Ze?k==="y"?Ze.clientTop||0:Ze.clientLeft||0:0,Ce=(B=z==null?void 0:z[k])!=null?B:0,xe=G+Y-Ce-pe,bt=G+be-Ce,De=Fi(m?Oi(R,xe):R,G,m?To(D,bt):D);C[k]=De,O[k]=De-G}if(l){var _t,Lt=k==="x"?Kt:Ln,Pe=k==="x"?mn:eo,yt=C[w],Mt=w==="y"?"height":"width",bo=yt+v[Lt],or=yt-v[Pe],Ve=[Kt,Ln].indexOf(y)!==-1,vt=(_t=z==null?void 0:z[w])!=null?_t:0,lt=Ve?bo:yt-x[Mt]-S[Mt]-vt+A.altAxis,sn=Ve?yt+x[Mt]+S[Mt]-vt-A.altAxis:or,Un=m&&Ve?TC(lt,yt,sn):Fi(m?lt:bo,yt,m?sn:or);C[w]=Un,O[w]=Un-yt}e.modifiersData[o]=O}}var NC={name:"preventOverflow",enabled:!0,phase:"main",fn:AC,requiresIfExists:["offset"]},DC={left:"right",right:"left",bottom:"top",top:"bottom"};function zi(t){return t.replace(/left|right|bottom|top/g,function(e){return DC[e]})}var BC={start:"end",end:"start"};function mp(t){return t.replace(/start|end/g,function(e){return BC[e]})}function LC(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?j7:c,u=gr(o),p=u?l?ip:ip.filter(function(h){return gr(h)===u}):Pi,f=p.filter(function(h){return d.indexOf(h)>=0});f.length===0&&(f=p);var m=f.reduce(function(h,g){return h[g]=Ol(t,{placement:g,boundary:r,rootBoundary:i,padding:s})[to(g)],h},{});return Object.keys(m).sort(function(h,g){return m[h]-m[g]})}function MC(t){if(to(t)===Ml)return[];var e=zi(t);return[mp(t),e,mp(e)]}function $C(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,u=n.boundary,p=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,h=m===void 0?!0:m,g=n.allowedAutoPlacements,v=e.options.placement,y=to(v),_=y===v,b=c||(_||!h?[zi(v)]:MC(v)),k=[v].concat(b).reduce(function(ee,ae){return ee.concat(to(ae)===Ml?LC(e,{placement:ae,boundary:u,rootBoundary:p,padding:d,flipVariations:h,allowedAutoPlacements:g}):ae)},[]),w=e.rects.reference,C=e.rects.popper,x=new Map,S=!0,T=k[0],A=0;A<k.length;A++){var z=k[A],O=to(z),B=gr(z)===hr,L=[Kt,mn].indexOf(O)>=0,I=L?"width":"height",P=Ol(e,{placement:z,boundary:u,rootBoundary:p,altBoundary:f,padding:d}),G=L?B?eo:Ln:B?mn:Kt;w[I]>C[I]&&(G=zi(G));var R=zi(G),D=[];if(i&&D.push(P[O]<=0),l&&D.push(P[G]<=0,P[R]<=0),D.every(function(ee){return ee})){T=z,S=!1;break}x.set(z,D)}if(S)for(var K=h?3:1,F=function(ae){var q=k.find(function(ne){var $=x.get(ne);if($)return $.slice(0,ae).every(function(Y){return Y})});if(q)return T=q,"break"},U=K;U>0;U--){var ce=F(U);if(ce==="break")break}e.placement!==T&&(e.modifiersData[o]._skip=!0,e.placement=T,e.reset=!0)}}var OC={name:"flip",enabled:!0,phase:"main",fn:$C,requiresIfExists:["offset"],data:{_skip:!1}};function IC(t,e,n){const{disabled:o,appendTo:r,appendToBody:i,openDirection:s}=a.toRefs(t),l=a.getCurrentInstance().proxy,c=n.multiselect,d=n.dropdown,u=a.ref(!1),p=a.ref(null),f=a.ref(null),m=a.computed(()=>r.value||i.value),h=a.computed(()=>s.value==="top"&&f.value==="bottom"||s.value==="bottom"&&f.value!=="top"?"bottom":"top"),g=()=>{u.value||o.value||(u.value=!0,e.emit("open",l),m.value&&a.nextTick(()=>{y()}))},v=()=>{u.value&&(u.value=!1,e.emit("close",l))},y=()=>{if(!p.value)return;let b=parseInt(window.getComputedStyle(d.value).borderTopWidth.replace("px","")),k=parseInt(window.getComputedStyle(d.value).borderBottomWidth.replace("px",""));p.value.setOptions(w=>({...w,modifiers:[...w.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?b:k)*-1]}}]})),p.value.update()},_=b=>{for(;b&&b!==document.body;){if(getComputedStyle(b).position==="fixed")return!0;b=b.parentElement}return!1};return a.onMounted(()=>{m.value&&(p.value=EC(c.value,d.value,{strategy:_(c.value)?"fixed":void 0,placement:s.value,modifiers:[NC,OC,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:b})=>{b.styles.popper.width=`${b.rects.reference.width}px`},effect:({state:b})=>{b.elements.popper.style.width=`${b.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:b}){f.value=b.placement}}]}))}),a.onBeforeUnmount(()=>{!m.value||!p.value||(p.value.destroy(),p.value=null)}),{popper:p,isOpen:u,open:g,close:v,placement:h,updatePopper:y}}function RC(t,e,n){const{searchable:o,disabled:r,clearOnBlur:i}=a.toRefs(t),s=n.input,l=n.open,c=n.close,d=n.clearSearch,u=n.isOpen,p=n.wrapper,f=n.tags,m=a.ref(!1),h=a.ref(!1),g=a.computed(()=>o.value||r.value?-1:0),v=()=>{o.value&&s.value.blur(),p.value.blur()},y=()=>{o.value&&!r.value&&s.value.focus()},_=(S=!0)=>{r.value||(m.value=!0,S&&l())},b=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),i.value&&d())},1)};return{tabindex:g,isActive:m,mouseClicked:h,blur:v,focus:y,activate:_,deactivate:b,handleFocusIn:S=>{S.target.closest("[data-tags]")&&S.target.nodeName!=="INPUT"||S.target.closest("[data-clear]")||_(h.value)},handleFocusOut:()=>{b()},handleCaretClick:()=>{b(),v()},handleMousedown:S=>{h.value=!0,u.value&&(S.target.isEqualNode(p.value)||S.target.isEqualNode(f.value))?setTimeout(()=>{b()},0):!u.value&&(document.activeElement.isEqualNode(p.value)||document.activeElement.isEqualNode(s.value))&&_(),setTimeout(()=>{h.value=!1},0)}}}function PC(t,e,n){const{mode:o,addTagOn:r,openDirection:i,searchable:s,showOptions:l,valueProp:c,groups:d,addOptionOn:u,createTag:p,createOption:f,reverse:m}=a.toRefs(t),h=a.getCurrentInstance().proxy,g=n.iv,v=n.update,y=n.deselect,_=n.search,b=n.setPointer,k=n.selectPointer,w=n.backwardPointer,C=n.forwardPointer,x=n.multiselect,S=n.wrapper,T=n.tags,A=n.isOpen,z=n.open,O=n.blur,B=n.fo,L=a.computed(()=>p.value||f.value||!1),I=a.computed(()=>r.value!==void 0?r.value:u.value!==void 0?u.value:["enter"]),P=()=>{o.value==="tags"&&!l.value&&L.value&&s.value&&!d.value&&b(B.value[B.value.map(D=>D[c.value]).indexOf(_.value)])};return{handleKeydown:D=>{e.emit("keydown",D,h);let K,F;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(D.key)!==-1&&o.value==="tags"&&(K=[...x.value.querySelectorAll("[data-tags] > *")].filter(U=>U!==T.value),F=K.findIndex(U=>U===document.activeElement)),D.key){case"Backspace":if(o.value==="single"||s.value&&[null,""].indexOf(_.value)===-1||g.value.length===0)return;let U=g.value.filter(ce=>!ce.disabled&&ce.remove!==!1);U.length&&y(U[U.length-1]);break;case"Enter":if(D.preventDefault(),D.keyCode===229)return;if(F!==-1&&F!==void 0){v([...g.value].filter((ce,ee)=>ee!==F)),F===K.length-1&&(K.length-1?K[K.length-2].focus():s.value?T.value.querySelector("input").focus():S.value.focus());return}if(I.value.indexOf("enter")===-1&&L.value)return;P(),k();break;case" ":if(!L.value&&!s.value){D.preventDefault(),P(),k();return}if(!L.value)return!1;if(I.value.indexOf("space")===-1&&L.value)return;D.preventDefault(),P(),k();break;case"Tab":case";":case",":if(I.value.indexOf(D.key.toLowerCase())===-1||!L.value)return;P(),k(),D.preventDefault();break;case"Escape":O();break;case"ArrowUp":if(D.preventDefault(),!l.value)return;A.value||z(),w();break;case"ArrowDown":if(D.preventDefault(),!l.value)return;A.value||z(),C();break;case"ArrowLeft":if(s.value&&T.value&&T.value.querySelector("input").selectionStart||D.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;D.preventDefault(),F===-1?K[K.length-1].focus():F>0&&K[F-1].focus();break;case"ArrowRight":if(F===-1||D.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;D.preventDefault(),K.length>F+1?K[F+1].focus():s.value?T.value.querySelector("input").focus():s.value||S.value.focus();break}},handleKeyup:D=>{e.emit("keyup",D,h)},preparePointer:P}}function VC(t,e,n){const{classes:o,disabled:r,showOptions:i,breakTags:s}=a.toRefs(t),l=n.isOpen,c=n.isPointed,d=n.isSelected,u=n.isDisabled,p=n.isActive,f=n.canPointGroups,m=n.resolving,h=n.fo,g=n.placement,v=a.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...o.value})),y=a.computed(()=>!!(l.value&&i.value&&(!m.value||m.value&&h.value.length)));return{classList:a.computed(()=>{const b=v.value;return{container:[b.container].concat(r.value?b.containerDisabled:[]).concat(y.value&&g.value==="top"?b.containerOpenTop:[]).concat(y.value&&g.value!=="top"?b.containerOpen:[]).concat(p.value?b.containerActive:[]),wrapper:b.wrapper,spacer:b.spacer,singleLabel:b.singleLabel,singleLabelText:b.singleLabelText,multipleLabel:b.multipleLabel,search:b.search,tags:b.tags,tag:[b.tag].concat(r.value?b.tagDisabled:[]),tagWrapper:[b.tagWrapper,s.value?b.tagWrapperBreak:null],tagDisabled:b.tagDisabled,tagRemove:b.tagRemove,tagRemoveIcon:b.tagRemoveIcon,tagsSearchWrapper:b.tagsSearchWrapper,tagsSearch:b.tagsSearch,tagsSearchCopy:b.tagsSearchCopy,placeholder:b.placeholder,caret:[b.caret].concat(l.value?b.caretOpen:[]),clear:b.clear,clearIcon:b.clearIcon,spinner:b.spinner,inifinite:b.inifinite,inifiniteSpinner:b.inifiniteSpinner,dropdown:[b.dropdown].concat(g.value==="top"?b.dropdownTop:[]).concat(!l.value||!i.value||!y.value?b.dropdownHidden:[]),options:[b.options].concat(g.value==="top"?b.optionsTop:[]),group:b.group,groupLabel:k=>{let w=[b.groupLabel];return c(k)?w.push(d(k)?b.groupLabelSelectedPointed:b.groupLabelPointed):d(k)&&f.value?w.push(u(k)?b.groupLabelSelectedDisabled:b.groupLabelSelected):u(k)&&w.push(b.groupLabelDisabled),f.value&&w.push(b.groupLabelPointable),w},groupOptions:b.groupOptions,option:(k,w)=>{let C=[b.option];return c(k)?C.push(d(k)?b.optionSelectedPointed:b.optionPointed):d(k)?C.push(u(k)?b.optionSelectedDisabled:b.optionSelected):(u(k)||w&&u(w))&&C.push(b.optionDisabled),C},noOptions:b.noOptions,noResults:b.noResults,assist:b.assist,fakeInput:b.fakeInput}}),showDropdown:y}}function FC(t,e,n){const{limit:o,infinite:r}=a.toRefs(t),i=n.isOpen,s=n.offset,l=n.search,c=n.pfo,d=n.eo,u=a.ref(null),p=a.ref(null),f=a.computed(()=>s.value<c.value.length),m=g=>{const{isIntersecting:v,target:y}=g[0];if(v){const _=y.offsetParent,b=_.scrollTop;s.value+=o.value==-1?10:o.value,a.nextTick(()=>{_.scrollTop=b})}},h=()=>{i.value&&s.value<c.value.length?u.value.observe(p.value):!i.value&&u.value&&u.value.disconnect()};return a.watch(i,()=>{r.value&&h()}),a.watch(l,()=>{r.value&&(s.value=o.value,h())},{flush:"post"}),a.watch(d,()=>{r.value&&h()},{immediate:!1,flush:"post"}),a.onMounted(()=>{window&&window.IntersectionObserver&&(u.value=new IntersectionObserver(m))}),{hasMore:f,infiniteLoader:p}}function zC(t,e,n){const{placeholder:o,id:r,valueProp:i,label:s,mode:l,groupLabel:c,aria:d,searchable:u}=a.toRefs(t),p=n.pointer,f=n.iv,m=n.hasSelected,h=n.multipleLabelText,g=a.ref(null),v=a.computed(()=>{let O=[];return r&&r.value&&O.push(r.value),O.push("assist"),O.join("-")}),y=a.computed(()=>{let O=[];return r&&r.value&&O.push(r.value),O.push("multiselect-options"),O.join("-")}),_=a.computed(()=>{let O=[];if(r&&r.value&&O.push(r.value),p.value)return O.push(p.value.group?"multiselect-group":"multiselect-option"),O.push(p.value.group?p.value.index:p.value[i.value]),O.join("-")}),b=a.computed(()=>o.value),k=a.computed(()=>l.value!=="single"),w=a.computed(()=>{let O="";return l.value==="single"&&m.value&&(O+=f.value[s.value]),l.value==="multiple"&&m.value&&(O+=h.value),l.value==="tags"&&m.value&&(O+=f.value.map(B=>B[s.value]).join(", ")),O}),C=a.computed(()=>{let O={...d.value};return u.value&&(O["aria-labelledby"]=O["aria-labelledby"]?`${v.value} ${O["aria-labelledby"]}`:v.value,w.value&&O["aria-label"]&&(O["aria-label"]=`${w.value}, ${O["aria-label"]}`)),O}),x=O=>{let B=[];return r&&r.value&&B.push(r.value),B.push("multiselect-option"),B.push(O[i.value]),B.join("-")},S=O=>{let B=[];return r&&r.value&&B.push(r.value),B.push("multiselect-group"),B.push(O.index),B.join("-")},T=O=>{let B=[];return B.push(O),B.join(" ")},A=O=>{let B=[];return B.push(O),B.join(" ")},z=O=>`${O} ❎`;return a.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let O=document.querySelector(`[for="${r.value}"]`);g.value=O?O.innerText:null}}),{arias:C,ariaLabel:w,ariaAssist:v,ariaControls:y,ariaPlaceholder:b,ariaMultiselectable:k,ariaActiveDescendant:_,ariaOptionId:x,ariaOptionLabel:T,ariaGroupId:S,ariaGroupLabel:A,ariaTagLabel:z}}function qC(t,e,n){const{locale:o,fallbackLocale:r}=a.toRefs(t);return{localize:s=>!s||typeof s!="object"?s:s&&s[o.value]?s[o.value]:s&&o.value&&s[o.value.toUpperCase()]?s[o.value.toUpperCase()]:s&&s[r.value]?s[r.value]:s&&r.value&&s[r.value.toUpperCase()]?s[r.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function jC(t,e,n){const o=a.ref(null),r=a.ref(null),i=a.ref(null),s=a.ref(null),l=a.ref(null);return{multiselect:o,wrapper:r,tags:i,input:s,dropdown:l}}function UC(t,e,n,o={}){return n.forEach(r=>{r&&(o={...o,...r(t,e,o)})}),o}var no={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup(t,e){return UC(t,e,[jC,qC,A7,D7,IC,N7,T7,RC,M7,FC,$7,PC,VC,zC])},beforeMount(){var t,e;((e=(t=this.$root.constructor)==null?void 0:t.version)!=null&&e.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const HC=["id","dir"],WC=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],ZC=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],GC=["onKeyup","aria-label"],KC=["onClick"],YC=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],JC=["innerHTML"],XC=["id"],QC=["id"],ew=["id","aria-label","aria-selected"],tw=["data-pointed","onMouseenter","onMousedown"],nw=["innerHTML"],ow=["aria-label"],rw=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],aw=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],iw=["innerHTML"],sw=["innerHTML"],lw=["value"],cw=["name","value"],dw=["name","value"],uw=["id"];function pw(t,e,n,o,r,i){return a.openBlock(),a.createElementBlock("div",{ref:"multiselect",class:a.normalizeClass(t.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:e[10]||(e[10]=(...s)=>t.handleFocusIn&&t.handleFocusIn(...s)),onFocusout:e[11]||(e[11]=(...s)=>t.handleFocusOut&&t.handleFocusOut(...s)),onKeyup:e[12]||(e[12]=(...s)=>t.handleKeyup&&t.handleKeyup(...s)),onKeydown:e[13]||(e[13]=(...s)=>t.handleKeydown&&t.handleKeydown(...s))},[a.createElementVNode("div",a.mergeProps({class:t.classList.wrapper,onMousedown:e[9]||(e[9]=(...s)=>t.handleMousedown&&t.handleMousedown(...s)),ref:"wrapper",tabindex:t.tabindex,"aria-controls":n.searchable?void 0:t.ariaControls,"aria-placeholder":n.searchable?void 0:t.ariaPlaceholder,"aria-expanded":n.searchable?void 0:t.isOpen,"aria-activedescendant":n.searchable?void 0:t.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:t.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:t.arias),[a.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:e[0]||(e[0]=(...s)=>t.handleSearchInput&&t.handleSearchInput(...s)),onKeypress:e[1]||(e[1]=(...s)=>t.handleKeypress&&t.handleKeypress(...s)),onPaste:e[2]||(e[2]=a.withModifiers((...s)=>t.handlePaste&&t.handlePaste(...s),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,ZC)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(t.classList.tags),"data-tags":""},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.iv,(s,l,c)=>a.renderSlot(t.$slots,"tag",{option:s,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass([t.classList.tag,s.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:a.withKeys(d=>t.handleTagRemove(s,d),["enter"]),key:c,"aria-label":t.ariaTagLabel(t.localize(s[n.label]))},[a.createElementVNode("span",{class:a.normalizeClass(t.classList.tagWrapper)},a.toDisplayString(t.localize(s[n.label])),3),!n.disabled&&!s.disabled?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(t.classList.tagRemove),onClick:a.withModifiers(d=>t.handleTagRemove(s,d),["stop"])},[a.createElementVNode("span",{class:a.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,KC)):a.createCommentVNode("v-if",!0)],42,GC))])),256)),a.createElementVNode("div",{class:a.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[a.createCommentVNode(" Used for measuring search width "),a.createElementVNode("span",{class:a.normalizeClass(t.classList.tagsSearchCopy)},a.toDisplayString(t.search),3),a.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:e[3]||(e[3]=(...s)=>t.handleSearchInput&&t.handleSearchInput(...s)),onKeypress:e[4]||(e[4]=(...s)=>t.handleKeypress&&t.handleKeypress(...s)),onPaste:e[5]||(e[5]=a.withModifiers((...s)=>t.handlePaste&&t.handlePaste(...s),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,YC)):a.createCommentVNode("v-if",!0)],2)],2)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?a.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(t.classList.singleLabel)},[a.createElementVNode("span",{class:a.normalizeClass(t.classList.singleLabelText)},a.toDisplayString(t.localize(t.iv[n.label])),3)],2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?a.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,JC)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?a.renderSlot(t.$slots,"placeholder",{key:4},()=>[a.createElementVNode("div",{class:a.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},a.toDisplayString(n.placeholder),3)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Spinner "),n.loading||t.resolving?a.renderSlot(t.$slots,"spinner",{key:5},()=>[a.createElementVNode("span",{class:a.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?a.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[a.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:a.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...s)=>t.clear&&t.clear(...s)),onKeyup:e[7]||(e[7]=a.withKeys((...s)=>t.clear&&t.clear(...s),["enter"]))},[a.createElementVNode("span",{class:a.normalizeClass(t.classList.clearIcon)},null,2)],34)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Caret "),n.caret&&n.showOptions?a.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},()=>[a.createElementVNode("span",{class:a.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...s)=>t.handleCaretClick&&t.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0)],16,WC),a.createCommentVNode(" Options "),(a.openBlock(),a.createBlock(a.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[a.createElementVNode("div",{id:`${n.id}-dropdown`,class:a.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[a.renderSlot(t.$slots,"beforelist",{options:t.fo}),a.createElementVNode("ul",{class:a.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(t.fg,(s,l,c)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(t.classList.group),key:c,id:t.ariaGroupId(s),"aria-label":t.ariaGroupLabel(t.localize(s[n.groupLabel])),"aria-selected":t.isSelected(s),role:"option"},[s.__CREATE__?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(t.classList.groupLabel(s)),"data-pointed":t.isPointed(s),onMouseenter:d=>t.setPointer(s,l),onMousedown:a.withModifiers(d=>t.handleGroupClick(s),["prevent"])},[a.renderSlot(t.$slots,"grouplabel",{group:s,isSelected:t.isSelected,isPointed:t.isPointed},()=>[a.createElementVNode("span",{innerHTML:t.localize(s[n.groupLabel])},null,8,nw)])],42,tw)),a.createElementVNode("ul",{class:a.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(s[n.groupLabel])),role:"group"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.__VISIBLE__,(d,u,p)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(t.classList.option(d,s)),"data-pointed":t.isPointed(d),"data-selected":t.isSelected(d)||void 0,key:p,onMouseenter:f=>t.setPointer(d),onMousedown:a.withModifiers(f=>t.handleOptionClick(d),["prevent"]),id:t.ariaOptionId(d),"aria-selected":t.isSelected(d),"aria-label":t.ariaOptionLabel(t.localize(d[n.label])),role:"option"},[a.renderSlot(t.$slots,"option",{option:d,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[a.createElementVNode("span",null,a.toDisplayString(t.localize(d[n.label])),1)])],42,rw))),128))],10,ow)],10,ew))),128)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(t.fo,(s,l,c)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(t.classList.option(s)),"data-pointed":t.isPointed(s),"data-selected":t.isSelected(s)||void 0,key:c,onMouseenter:d=>t.setPointer(s),onMousedown:a.withModifiers(d=>t.handleOptionClick(s),["prevent"]),id:t.ariaOptionId(s),"aria-selected":t.isSelected(s),"aria-label":t.ariaOptionLabel(t.localize(s[n.label])),role:"option"},[a.renderSlot(t.$slots,"option",{option:s,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[a.createElementVNode("span",null,a.toDisplayString(t.localize(s[n.label])),1)])],42,aw))),128))],10,QC),t.noOptions?a.renderSlot(t.$slots,"nooptions",{key:0},()=>[a.createElementVNode("div",{class:a.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,iw)]):a.createCommentVNode("v-if",!0),t.noResults?a.renderSlot(t.$slots,"noresults",{key:1},()=>[a.createElementVNode("div",{class:a.normalizeClass(t.classList.noResults),innerHTML:t.localize(n.noResultsText)},null,10,sw)]):a.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[a.renderSlot(t.$slots,"infinite",{},()=>[a.createElementVNode("span",{class:a.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):a.createCommentVNode("v-if",!0),a.renderSlot(t.$slots,"afterlist",{options:t.fo})],10,XC)],8,["to","disabled"])),a.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(a.openBlock(),a.createElementBlock("input",{key:0,class:a.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,lw)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Native input support "),n.nativeSupport?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[n.mode=="single"?(a.openBlock(),a.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,cw)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(t.plainValue,(s,l)=>(a.openBlock(),a.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:l},null,8,dw))),128))],64)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},a.toDisplayString(t.ariaLabel),11,uw)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Create height for empty input "),a.createElementVNode("div",{class:a.normalizeClass(t.classList.spacer)},null,2)],42,HC)}no.render=pw,no.__file="src/Multiselect.vue";const Et=a.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(t){const e=t,n=a.toRef(()=>e.appendTo),o=a.ref();return e.detached&&S7({multiselect:o,appendTo:n.value}),(r,i)=>(a.openBlock(),a.createBlock(a.unref(no),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect"},a.createSlots({_:2},[a.renderList(r.$slots,(s,l)=>({name:l,fn:a.withCtx(c=>[a.renderSlot(r.$slots,l,a.normalizeProps(a.guardReactiveProps(c??{})))])}))]),1536))}});var hp;function Mn(){const t=fw(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function fw(){const t=a.getCurrentInstance();if(!t)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return t}a.defineComponent({props:{translation:{type:String,required:!0}},setup(t,{slots:e}){return()=>{const n=t.translation,o=[];let r,i=0;for(;(r=hp.exec(n))!==null;){o.push(n.substring(i,r.index));const s=e[r[1]];s?o.push(...s()):o.push(r[0]),i=hp.lastIndex}return o.push(n.substring(i)),o}}});async function $n(t,e){if(e&&t&&t.length-e.length===1){const n=new Set(e.map(l=>l.id)),o=t.filter(l=>!n.has(l.id));if(o.length!==1)return;const r=o[0].id;await a.nextTick();const i=document.getElementById(r);i==null||i.focus(),await a.nextTick();const s=document.getElementById(r);s==null||s.select()}}const mw={class:"ao-tasks"},hw={class:"ao-tasks__list"},gw=["id","value","readonly","onChange"],bw={class:"ao-tasks__list-footer"},_w=a.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e;a.watch(()=>o.tasks,(f,m)=>{$n(f,m)});const i=a.computed(()=>{var f;return((f=o.users)==null?void 0:f.map(m=>({label:`${m.firstName} ${m.lastName}`,value:m.id,avatar:m.avatarUrl})))??[]}),s=()=>{const f=o.tasks.length,m={name:n("task.defaultName",{idx:f+1}),activityId:o.activityId};r("add",m)},l=(f,m)=>{const g=f.target.value;r("update",{id:m,name:g})},c=(f,m)=>{o.isEditable&&r("update",{id:f,isDone:m})},d=f=>{r("delete",{id:f})},u=(f,m)=>{r("update",{id:m,assigneeId:f[0]??null})},p=f=>{const m=f.target;m==null||m.blur()};return(f,m)=>(a.openBlock(),a.createElementBlock("div",mw,[a.createElementVNode("ul",hw,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.tasks,h=>{var g,v;return a.openBlock(),a.createElementBlock("li",{key:h.id,class:"ao-subtask"},[((g=t.isCheckable)==null?void 0:g.call(t,h))??!1?(a.openBlock(),a.createBlock(he,{key:0,class:"ao-subtask__check","icon-name":h.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>c(h.id,!h.isDone)},null,8,["icon-name","disabled","onClick"])):a.createCommentVNode("",!0),a.createElementVNode("input",{id:h.id,value:h.name,readonly:!t.isEditable,class:a.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":h.isDone}]),type:"text",onChange:y=>l(y,h.id),onKeyup:a.withKeys(p,["enter"])},null,42,gw),m[0]||(m[0]=a.createTextVNode(". ",-1)),!t.isTemplate&&t.users?(a.openBlock(),a.createBlock(Et,{key:1,value:(v=h.assignee)!=null&&v.id?[h.assignee.id]:[],options:i.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:f.$t("feed.filters.assignee.placeholder"),disabled:!t.isEditable,caret:t.isEditable,onChange:y=>u(y,h.id)},{tag:a.withCtx(({option:y,handleTagRemove:_})=>[a.createVNode(An,{"user-name":y.label,"avatar-url":y.avatar,"is-closable":!0,onClose:b=>_(y,b)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):a.createCommentVNode("",!0),t.isEditable?(a.openBlock(),a.createBlock(he,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>d(h.id)},null,8,["onClick"])):a.createCommentVNode("",!0)])}),128))]),a.createElementVNode("div",bw,[t.isEditable?(a.openBlock(),a.createBlock(he,{key:0,label:f.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:s},null,8,["label"])):a.createCommentVNode("",!0)])]))}}),ID="",yw={class:"ao-files__placeholder"},vw={key:0,class:"ao-files__list"},Cw=["href"],ww={class:"ao-file__title"},kw={key:0},xw={class:"ao-files__input"},Ew={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},Sw={class:"ao-button__label"},Tw={class:"ao-files__dropzone"},Aw={class:"ao-files__dropzone-label"},Nw=a.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(t,{emit:e}){const n=e,o=t,r=p=>{n("remove",p)},i=p=>{const f=p.target,m=Array.from(f.files??[]);n("add",m)},s=["dragenter","dragover","dragleave","drop"];a.onMounted(()=>{s.forEach(p=>{document.body.addEventListener(p,f=>f.preventDefault())})}),a.onUnmounted(()=>{s.forEach(p=>{document.body.removeEventListener(p,f=>f.preventDefault())})});const l=a.ref(!1);function c(){o.isEditable&&(l.value=!0)}function d(){l.value=!1}a.watch(l,p=>{n("toggleIsDropActive",p)});function u(p){var m;d();const f=Array.from(((m=p.dataTransfer)==null?void 0:m.files)||[]);p.dataTransfer&&n("add",f)}return(p,f)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":l.value}]),onDrop:a.withModifiers(u,["prevent"]),onDragenter:a.withModifiers(c,["prevent"]),onDragover:a.withModifiers(c,["prevent"]),onDragleave:a.withModifiers(d,["prevent"])},[a.renderSlot(p.$slots,"default",{},()=>[a.createElementVNode("span",yw,a.toDisplayString(p.$t("activity.attachment.placeholder.resting")),1)]),t.attachments?(a.openBlock(),a.createElementBlock("ul",vw,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.attachments,m=>(a.openBlock(),a.createElementBlock("li",{key:m.id,class:"ao-file"},[a.createElementVNode("a",{class:"ao-file__link",href:m.url,target:"_blank",rel:"noopener noreferrer"},[a.createVNode(Ee,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),a.createElementVNode("span",ww,a.toDisplayString(m.name),1)],8,Cw),t.isEditable?(a.openBlock(),a.createBlock(he,{key:0,class:"ao-files__delete-button","icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round",onClick:()=>r(m)},null,8,["onClick"])):a.createCommentVNode("",!0)]))),128)),t.isEditable?(a.openBlock(),a.createElementBlock("li",kw,[a.createElementVNode("label",xw,[a.createElementVNode("div",Ew,[a.createVNode(Ee,{name:"Add",size:"sm"}),a.createElementVNode("span",Sw,a.toDisplayString(p.$t("activity.attachment.button.resting")),1)]),a.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:i},null,32)])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",Tw,[a.createElementVNode("span",Aw,a.toDisplayString(p.$t("activity.attachment.placeholder.active")),1)],512),[[a.vShow,l.value]])],34))}}),RD="";var ke={},gp={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
3
- `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Il=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,br={},bp={};function Dw(t){var e,n,o=bp[t];if(o)return o;for(o=bp[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)o[t.charCodeAt(e)]=t[e];return o}function qi(t,e,n){var o,r,i,s,l,c="";for(typeof e!="string"&&(n=e,e=qi.defaultChars),typeof n>"u"&&(n=!0),l=Dw(e),o=0,r=t.length;o<r;o++){if(i=t.charCodeAt(o),n&&i===37&&o+2<r&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){c+=t.slice(o,o+3),o+=2;continue}if(i<128){c+=l[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&o+1<r&&(s=t.charCodeAt(o+1),s>=56320&&s<=57343)){c+=encodeURIComponent(t[o]+t[o+1]),o++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(t[o])}return c}qi.defaultChars=";/?:@&=+$,-_.!~*'()#",qi.componentChars="-_.!~*'()";var Bw=qi,_p={};function Lw(t){var e,n,o=_p[t];if(o)return o;for(o=_p[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),o.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),o[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}function ji(t,e){var n;return typeof e!="string"&&(e=ji.defaultChars),n=Lw(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var r,i,s,l,c,d,u,p="";for(r=0,i=o.length;r<i;r+=3){if(s=parseInt(o.slice(r+1,r+3),16),s<128){p+=n[s];continue}if((s&224)===192&&r+3<i&&(l=parseInt(o.slice(r+4,r+6),16),(l&192)===128)){u=s<<6&1984|l&63,u<128?p+="��":p+=String.fromCharCode(u),r+=3;continue}if((s&240)===224&&r+6<i&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16),(l&192)===128&&(c&192)===128)){u=s<<12&61440|l<<6&4032|c&63,u<2048||u>=55296&&u<=57343?p+="���":p+=String.fromCharCode(u),r+=6;continue}if((s&248)===240&&r+9<i&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16),d=parseInt(o.slice(r+10,r+12),16),(l&192)===128&&(c&192)===128&&(d&192)===128)){u=s<<18&1835008|l<<12&258048|c<<6&4032|d&63,u<65536||u>1114111?p+="����":(u-=65536,p+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),r+=9;continue}p+="�"}return p})}ji.defaultChars=";/?:@&=+$,#",ji.componentChars="";var Mw=ji,$w=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function Ui(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Ow=/^([a-z0-9.+-]+:)/i,Iw=/:[0-9]*$/,Rw=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Pw=["<",">",'"',"`"," ","\r",`
4
- `," "],Vw=["{","}","|","\\","^","`"].concat(Pw),Fw=["'"].concat(Vw),yp=["%","/","?",";","#"].concat(Fw),vp=["/","?","#"],zw=255,Cp=/^[+a-z0-9A-Z_-]{0,63}$/,qw=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,wp={javascript:!0,"javascript:":!0},kp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function jw(t,e){if(t&&t instanceof Ui)return t;var n=new Ui;return n.parse(t,e),n}Ui.prototype.parse=function(t,e){var n,o,r,i,s,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=Rw.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var d=Ow.exec(l);if(d&&(d=d[0],r=d.toLowerCase(),this.protocol=d,l=l.substr(d.length)),(e||d||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=l.substr(0,2)==="//",s&&!(d&&wp[d])&&(l=l.substr(2),this.slashes=!0)),!wp[d]&&(s||d&&!kp[d])){var u=-1;for(n=0;n<vp.length;n++)i=l.indexOf(vp[n]),i!==-1&&(u===-1||i<u)&&(u=i);var p,f;for(u===-1?f=l.lastIndexOf("@"):f=l.lastIndexOf("@",u),f!==-1&&(p=l.slice(0,f),l=l.slice(f+1),this.auth=p),u=-1,n=0;n<yp.length;n++)i=l.indexOf(yp[n]),i!==-1&&(u===-1||i<u)&&(u=i);u===-1&&(u=l.length),l[u-1]===":"&&u--;var m=l.slice(0,u);l=l.slice(u),this.parseHost(m),this.hostname=this.hostname||"";var h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){var g=this.hostname.split(/\./);for(n=0,o=g.length;n<o;n++){var v=g[n];if(v&&!v.match(Cp)){for(var y="",_=0,b=v.length;_<b;_++)v.charCodeAt(_)>127?y+="x":y+=v[_];if(!y.match(Cp)){var k=g.slice(0,n),w=g.slice(n+1),C=v.match(qw);C&&(k.push(C[1]),w.unshift(C[2])),w.length&&(l=w.join(".")+l),this.hostname=k.join(".");break}}}}this.hostname.length>zw&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var x=l.indexOf("#");x!==-1&&(this.hash=l.substr(x),l=l.slice(0,x));var S=l.indexOf("?");return S!==-1&&(this.search=l.substr(S),l=l.slice(0,S)),l&&(this.pathname=l),kp[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Ui.prototype.parseHost=function(t){var e=Iw.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Uw=jw;br.encode=Bw,br.decode=Mw,br.format=$w,br.parse=Uw;var Ao={},Rl,xp;function Ep(){return xp||(xp=1,Rl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Rl}var Pl,Sp;function Tp(){return Sp||(Sp=1,Pl=/[\0-\x1F\x7F-\x9F]/),Pl}var Vl,Ap;function Hw(){return Ap||(Ap=1,Vl=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Vl}var Fl,Np;function Dp(){return Np||(Np=1,Fl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Fl}var Bp;function Ww(){return Bp||(Bp=1,Ao.Any=Ep(),Ao.Cc=Tp(),Ao.Cf=Hw(),Ao.P=Il,Ao.Z=Dp()),Ao}(function(t){function e(L){return Object.prototype.toString.call(L)}function n(L){return e(L)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(L,I){return o.call(L,I)}function i(L){var I=Array.prototype.slice.call(arguments,1);return I.forEach(function(P){if(P){if(typeof P!="object")throw new TypeError(P+"must be object");Object.keys(P).forEach(function(G){L[G]=P[G]})}}),L}function s(L,I,P){return[].concat(L.slice(0,I),P,L.slice(I+1))}function l(L){return!(L>=55296&&L<=57343||L>=64976&&L<=65007||(L&65535)===65535||(L&65535)===65534||L>=0&&L<=8||L===11||L>=14&&L<=31||L>=127&&L<=159||L>1114111)}function c(L){if(L>65535){L-=65536;var I=55296+(L>>10),P=56320+(L&1023);return String.fromCharCode(I,P)}return String.fromCharCode(L)}var d=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(d.source+"|"+u.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,m=gp;function h(L,I){var P;return r(m,I)?m[I]:I.charCodeAt(0)===35&&f.test(I)&&(P=I[1].toLowerCase()==="x"?parseInt(I.slice(2),16):parseInt(I.slice(1),10),l(P))?c(P):L}function g(L){return L.indexOf("\\")<0?L:L.replace(d,"$1")}function v(L){return L.indexOf("\\")<0&&L.indexOf("&")<0?L:L.replace(p,function(I,P,G){return P||h(I,G)})}var y=/[&<>"]/,_=/[&<>"]/g,b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function k(L){return b[L]}function w(L){return y.test(L)?L.replace(_,k):L}var C=/[.?*+^$[\]\\(){}|-]/g;function x(L){return L.replace(C,"\\$&")}function S(L){switch(L){case 9:case 32:return!0}return!1}function T(L){if(L>=8192&&L<=8202)return!0;switch(L){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var A=Il;function z(L){return A.test(L)}function O(L){switch(L){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function B(L){return L=L.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(L=L.replace(/ẞ/g,"ß")),L.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=br,t.lib.ucmicro=Ww(),t.assign=i,t.isString=n,t.has=r,t.unescapeMd=g,t.unescapeAll=v,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=w,t.arrayReplaceAt=s,t.isSpace=S,t.isWhiteSpace=T,t.isMdAsciiPunct=O,t.isPunctChar=z,t.escapeRE=x,t.normalizeReference=B})(ke);var Hi={},Zw=function(e,n,o){var r,i,s,l,c=-1,d=e.posMax,u=e.pos;for(e.pos=n+1,r=1;e.pos<d;){if(s=e.src.charCodeAt(e.pos),s===93&&(r--,r===0)){i=!0;break}if(l=e.pos,e.md.inline.skipToken(e),s===91){if(l===e.pos-1)r++;else if(o)return e.pos=u,-1}}return i&&(c=e.pos),e.pos=u,c},Lp=ke.unescapeAll,Gw=function(e,n,o){var r,i,s=n,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(s)===60){for(s++;s<o;){if(r=e.charCodeAt(s),r===10||r===60)return l;if(r===62)return l.pos=s+1,l.str=Lp(e.slice(n+1,s)),l.ok=!0,l;if(r===92&&s+1<o){s+=2;continue}s++}return l}for(i=0;s<o&&(r=e.charCodeAt(s),!(r===32||r<32||r===127));){if(r===92&&s+1<o){if(e.charCodeAt(s+1)===32)break;s+=2;continue}if(r===40&&(i++,i>32))return l;if(r===41){if(i===0)break;i--}s++}return n===s||i!==0||(l.str=Lp(e.slice(n,s)),l.pos=s,l.ok=!0),l},Kw=ke.unescapeAll,Yw=function(e,n,o){var r,i,s=0,l=n,c={ok:!1,pos:0,lines:0,str:""};if(l>=o||(i=e.charCodeAt(l),i!==34&&i!==39&&i!==40))return c;for(l++,i===40&&(i=41);l<o;){if(r=e.charCodeAt(l),r===i)return c.pos=l+1,c.lines=s,c.str=Kw(e.slice(n+1,l)),c.ok=!0,c;if(r===40&&i===41)return c;r===10?s++:r===92&&l+1<o&&(l++,e.charCodeAt(l)===10&&s++),l++}return c};Hi.parseLinkLabel=Zw,Hi.parseLinkDestination=Gw,Hi.parseLinkTitle=Yw;var Jw=ke.assign,Xw=ke.unescapeAll,No=ke.escapeHtml,hn={};hn.code_inline=function(t,e,n,o,r){var i=t[e];return"<code"+r.renderAttrs(i)+">"+No(i.content)+"</code>"},hn.code_block=function(t,e,n,o,r){var i=t[e];return"<pre"+r.renderAttrs(i)+"><code>"+No(t[e].content)+`</code></pre>
2
+ `,document.head.appendChild(ft),typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("vue-router"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","vuedraggable"],a):(fe=typeof globalThis<"u"?globalThis:fe||self,a(fe.Orcha={},fe.Vue,fe.vueRouter,fe.Draggable))})(this,function(fe,a,ft,Gn){"use strict";var mD=Object.defineProperty;var hD=(fe,a,ft)=>a in fe?mD(fe,a,{enumerable:!0,configurable:!0,writable:!0,value:ft}):fe[a]=ft;var j=(fe,a,ft)=>(hD(fe,typeof a!="symbol"?a+"":a,ft),ft);const gD="",bD="",yD="",_D="",qg=a.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(a.openBlock(),a.createBlock(a.unref(ft.RouterView),a.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),oe=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},jg={},Ug={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hg(t,e){return a.openBlock(),a.createElementBlock("svg",Ug,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 13C12.9667 13 13.7917 12.6583 14.475 11.975C15.1583 11.2917 15.5 10.4667 15.5 9.5C15.5 8.53333 15.1583 7.70833 14.475 7.025C13.7917 6.34167 12.9667 6 12 6C11.0333 6 10.2083 6.34167 9.525 7.025C8.84167 7.70833 8.5 8.53333 8.5 9.5C8.5 10.4667 8.84167 11.2917 9.525 11.975C10.2083 12.6583 11.0333 13 12 13ZM3 21V3H21V21H3ZM5 19H19V17.85C18.1 16.9667 17.054 16.271 15.862 15.763C14.67 15.255 13.3827 15.0007 12 15C10.6167 15 9.329 15.2543 8.137 15.763C6.945 16.2717 5.89933 16.9673 5 17.85V19Z",fill:"black"},null,-1)])])}const Wg=oe(jg,[["render",Hg]]),Zg={},Gg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Kg(t,e){return a.openBlock(),a.createElementBlock("svg",Gg,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5.85 17.1C6.7 16.45 7.65 15.9373 8.7 15.562C9.75 15.1867 10.85 14.9993 12 15C13.15 15 14.25 15.1877 15.3 15.563C16.35 15.9383 17.3 16.4507 18.15 17.1C18.7333 16.4167 19.1877 15.6417 19.513 14.775C19.8383 13.9083 20.0007 12.9833 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.105 4.77833 14.2173 3.99933 12 4C9.78333 4 7.89567 4.779 6.337 6.337C4.77833 7.895 3.99933 9.78267 4 12C4 12.9833 4.16267 13.9083 4.488 14.775C4.81333 15.6417 5.26733 16.4167 5.85 17.1ZM12 13C11.0167 13 10.1873 12.6627 9.512 11.988C8.83667 11.3133 8.49933 10.484 8.5 9.5C8.5 8.51667 8.83733 7.68733 9.512 7.012C10.1867 6.33667 11.016 5.99933 12 6C12.9833 6 13.8127 6.33733 14.488 7.012C15.1633 7.68667 15.5007 8.516 15.5 9.5C15.5 10.4833 15.1627 11.3127 14.488 11.988C13.8133 12.6633 12.984 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const Yg=oe(Zg,[["render",Kg]]),Jg={},Xg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qg(t,e){return a.openBlock(),a.createElementBlock("svg",Xg,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17ZM17 9H20V5H17V9ZM17 19H20V15H17V19ZM4 9H7V5H4V9Z",fill:"black"},null,-1)])])}const e0=oe(Jg,[["render",Qg]]),t0={},n0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o0(t,e){return a.openBlock(),a.createElementBlock("svg",n0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17Z",fill:"black"},null,-1)])])}const r0=oe(t0,[["render",o0]]),a0={},i0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s0(t,e){return a.openBlock(),a.createElementBlock("svg",i0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const l0=oe(a0,[["render",s0]]),c0={},d0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function u0(t,e){return a.openBlock(),a.createElementBlock("svg",d0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V13H16C16.2833 13 16.5207 12.904 16.712 12.712C16.904 12.5207 17 12.2833 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.5207 11.0957 16.2833 11 16 11H13V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V11H8C7.71667 11 7.479 11.0957 7.287 11.287C7.09567 11.479 7 11.7167 7 12C7 12.2833 7.09567 12.5207 7.287 12.712C7.479 12.904 7.71667 13 8 13H11V16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V5H5V19ZM5 19V5V19Z",fill:"black"},null,-1)])])}const p0=oe(c0,[["render",u0]]),f0={},m0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function h0(t,e){return a.openBlock(),a.createElementBlock("svg",m0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V6.50001C3 6.25001 3.04167 6.02501 3.125 5.82501C3.20834 5.62501 3.31667 5.43334 3.45 5.25001L4.85 3.55001C4.98333 3.36667 5.15 3.22901 5.35 3.13701C5.55 3.04501 5.76667 2.99934 6 3.00001H18C18.2333 3.00001 18.45 3.04567 18.65 3.13701C18.85 3.22834 19.0167 3.36601 19.15 3.55001L20.55 5.25001C20.6833 5.43334 20.7917 5.62501 20.875 5.82501C20.9583 6.02501 21 6.25001 21 6.50001V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5.4 6.00001H18.6L17.75 5.00001H6.25L5.4 6.00001ZM5 19H19V8.00001H5V19ZM12 17.575C12.1333 17.575 12.2583 17.554 12.375 17.512C12.4917 17.47 12.6 17.3993 12.7 17.3L15.3 14.7C15.4833 14.5167 15.575 14.2833 15.575 14C15.575 13.7167 15.4833 13.4833 15.3 13.3C15.1167 13.1167 14.8833 13.025 14.6 13.025C14.3167 13.025 14.0833 13.1167 13.9 13.3L13 14.2V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99934 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14.2L10.1 13.3C9.91667 13.1167 9.68333 13.025 9.4 13.025C9.11667 13.025 8.88334 13.1167 8.7 13.3C8.51667 13.4833 8.425 13.7167 8.425 14C8.425 14.2833 8.51667 14.5167 8.7 14.7L11.3 17.3C11.4 17.4 11.5083 17.4707 11.625 17.512C11.7417 17.5533 11.8667 17.5743 12 17.575Z",fill:"black"},null,-1)])])}const g0=oe(f0,[["render",h0]]),b0={},y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _0(t,e){return a.openBlock(),a.createElementBlock("svg",y0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10.875 19.3001L4.275 12.7001C4.175 12.6001 4.104 12.4917 4.062 12.3751C4.02067 12.2584 4 12.1334 4 12.0001C4 11.8667 4.02067 11.7417 4.062 11.6251C4.104 11.5084 4.175 11.4001 4.275 11.3001L10.875 4.70008C11.0583 4.51675 11.2873 4.42075 11.562 4.41208C11.8373 4.40408 12.075 4.50008 12.275 4.70008C12.475 4.88342 12.5793 5.11242 12.588 5.38708C12.596 5.66242 12.5 5.90008 12.3 6.10008L7.4 11.0001H18.575C18.8583 11.0001 19.096 11.0957 19.288 11.2871C19.4793 11.4791 19.575 11.7167 19.575 12.0001C19.575 12.2834 19.4793 12.5207 19.288 12.7121C19.096 12.9041 18.8583 13.0001 18.575 13.0001H7.4L12.3 17.9001C12.4833 18.0834 12.5793 18.3167 12.588 18.6001C12.596 18.8834 12.5 19.1167 12.3 19.3001C12.1167 19.5001 11.8833 19.6001 11.6 19.6001C11.3167 19.6001 11.075 19.5001 10.875 19.3001V19.3001Z",fill:"black"},null,-1)])])}const v0=oe(b0,[["render",_0]]),C0={},w0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k0(t,e){return a.openBlock(),a.createElementBlock("svg",w0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",fill:"black"},null,-1)])])}const x0=oe(C0,[["render",k0]]),E0={},S0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T0(t,e){return a.openBlock(),a.createElementBlock("svg",S0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11.3 19.3C11.1167 19.1167 11.0207 18.8834 11.012 18.6C11.004 18.3167 11.0917 18.0834 11.275 17.9L16.175 13H5C4.71667 13 4.479 12.904 4.287 12.712C4.09567 12.5207 4 12.2834 4 12C4 11.7167 4.09567 11.479 4.287 11.287C4.479 11.0957 4.71667 11 5 11H16.175L11.275 6.10005C11.0917 5.91672 11.004 5.68338 11.012 5.40005C11.0207 5.11672 11.1167 4.88338 11.3 4.70005C11.4833 4.51672 11.7167 4.42505 12 4.42505C12.2833 4.42505 12.5167 4.51672 12.7 4.70005L19.3 11.3C19.4 11.3834 19.471 11.4874 19.513 11.612C19.5543 11.7374 19.575 11.8667 19.575 12C19.575 12.1334 19.5543 12.2584 19.513 12.375C19.471 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4834 12.2833 19.575 12 19.575C11.7167 19.575 11.4833 19.4834 11.3 19.3V19.3Z",fill:"black"},null,-1)])])}const A0=oe(E0,[["render",T0]]),N0={},D0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B0(t,e){return a.openBlock(),a.createElementBlock("svg",D0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8 17H13C13.2833 17 13.521 16.904 13.713 16.712C13.905 16.52 14.0007 16.2827 14 16C14 15.7167 13.904 15.479 13.712 15.287C13.52 15.095 13.2827 14.9993 13 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H16C16.2833 9 16.521 8.904 16.713 8.712C16.905 8.52 17.0007 8.28267 17 8C17 7.71667 16.904 7.479 16.712 7.287C16.52 7.095 16.2827 6.99933 16 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71733 7 8C7 8.28333 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9ZM5 19H19V5H5V19ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99933 5 3H9.2C9.41667 2.4 9.77934 1.91667 10.288 1.55C10.7967 1.18333 11.3673 1 12 1C12.6333 1 13.2043 1.18333 13.713 1.55C14.2217 1.91667 14.584 2.4 14.8 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM12 4.25C12.2167 4.25 12.3957 4.179 12.537 4.037C12.6783 3.895 12.7493 3.716 12.75 3.5C12.75 3.28333 12.679 3.10433 12.537 2.963C12.395 2.82167 12.216 2.75067 12 2.75C11.7833 2.75 11.6043 2.821 11.463 2.963C11.3217 3.105 11.2507 3.284 11.25 3.5C11.25 3.71667 11.321 3.89567 11.463 4.037C11.605 4.17833 11.784 4.24933 12 4.25Z",fill:"black"},null,-1)])])}const L0=oe(N0,[["render",B0]]),M0={},$0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O0(t,e){return a.openBlock(),a.createElementBlock("svg",$0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11.5 22C9.96667 22 8.66667 21.4667 7.6 20.4C6.53333 19.3333 6 18.0333 6 16.5V6C6 4.9 6.39167 3.95833 7.175 3.175C7.95833 2.39167 8.9 2 10 2C11.1 2 12.0417 2.39167 12.825 3.175C13.6083 3.95833 14 4.9 14 6V15.5C14 16.2 13.7583 16.7917 13.275 17.275C12.7917 17.7583 12.2 18 11.5 18C10.8 18 10.2083 17.7583 9.725 17.275C9.24167 16.7917 9 16.2 9 15.5V6.75C9 6.53333 9.071 6.35433 9.213 6.213C9.355 6.07167 9.534 6.00067 9.75 6C9.96667 6 10.1457 6.071 10.287 6.213C10.4283 6.355 10.4993 6.534 10.5 6.75V15.5C10.5 15.7833 10.596 16.021 10.788 16.213C10.98 16.405 11.2173 16.5007 11.5 16.5C11.7833 16.5 12.021 16.404 12.213 16.212C12.405 16.02 12.5007 15.7827 12.5 15.5V6C12.5 5.3 12.2583 4.70833 11.775 4.225C11.2917 3.74167 10.7 3.5 10 3.5C9.3 3.5 8.70833 3.74167 8.225 4.225C7.74167 4.70833 7.5 5.3 7.5 6V16.5C7.5 17.6 7.89167 18.5417 8.675 19.325C9.45833 20.1083 10.4 20.5 11.5 20.5C12.6 20.5 13.5417 20.1083 14.325 19.325C15.1083 18.5417 15.5 17.6 15.5 16.5V6.75C15.5 6.53333 15.571 6.35433 15.713 6.213C15.855 6.07167 16.034 6.00067 16.25 6C16.4667 6 16.6457 6.071 16.787 6.213C16.9283 6.355 16.9993 6.534 17 6.75V16.5C17 18.0333 16.4667 19.3333 15.4 20.4C14.3333 21.4667 13.0333 22 11.5 22Z",fill:"black"},null,-1)])])}const I0=oe(M0,[["render",O0]]),R0={},P0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V0(t,e){return a.openBlock(),a.createElementBlock("svg",P0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6C3 5.45 3.196 4.979 3.588 4.587C3.98 4.195 4.45067 3.99933 5 4H6V2.975C6 2.69167 6.096 2.45833 6.288 2.275C6.48 2.09167 6.71734 2 7 2C7.28334 2 7.521 2.096 7.713 2.288C7.905 2.48 8.00067 2.71733 8 3V4H16V2.975C16 2.69167 16.096 2.45833 16.288 2.275C16.48 2.09167 16.7173 2 17 2C17.2833 2 17.521 2.096 17.713 2.288C17.905 2.48 18.0007 2.71733 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.805 4.98 21.0007 5.45067 21 6V20C21 20.55 20.804 21.021 20.412 21.413C20.02 21.805 19.5493 22.0007 19 22H5ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z",fill:"black"},null,-1)])])}const F0=oe(R0,[["render",V0]]),z0={},q0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j0(t,e){return a.openBlock(),a.createElementBlock("svg",q0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 13.4L14.9 16.3C15.0833 16.4833 15.3167 16.575 15.6 16.575C15.8833 16.575 16.1167 16.4833 16.3 16.3C16.4833 16.1167 16.575 15.8833 16.575 15.6C16.575 15.3167 16.4833 15.0833 16.3 14.9L13.4 12L16.3 9.1C16.4833 8.91667 16.575 8.68333 16.575 8.4C16.575 8.11667 16.4833 7.88333 16.3 7.7C16.1167 7.51667 15.8833 7.425 15.6 7.425C15.3167 7.425 15.0833 7.51667 14.9 7.7L12 10.6L9.1 7.7C8.91667 7.51667 8.68333 7.425 8.4 7.425C8.11667 7.425 7.88333 7.51667 7.7 7.7C7.51667 7.88333 7.425 8.11667 7.425 8.4C7.425 8.68333 7.51667 8.91667 7.7 9.1L10.6 12L7.7 14.9C7.51667 15.0833 7.425 15.3167 7.425 15.6C7.425 15.8833 7.51667 16.1167 7.7 16.3C7.88333 16.4833 8.11667 16.575 8.4 16.575C8.68333 16.575 8.91667 16.4833 9.1 16.3L12 13.4ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const U0=oe(z0,[["render",j0]]),H0={},W0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z0(t,e){return a.openBlock(),a.createElementBlock("svg",W0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 14H14V12H6V14ZM6 11H18V9H6V11ZM6 8H18V6H6V8ZM2 22V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H6L2 22ZM4 17.175L5.175 16H20V4H4V17.175Z",fill:"black"},null,-1)])])}const G0=oe(H0,[["render",Z0]]),K0={},Y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J0(t,e){return a.openBlock(),a.createElementBlock("svg",Y0,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const X0=oe(K0,[["render",J0]]),Q0={},e2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t2(t,e){return a.openBlock(),a.createElementBlock("svg",e2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const n2=oe(Q0,[["render",t2]]),o2={},r2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a2(t,e){return a.openBlock(),a.createElementBlock("svg",r2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03334 10.975 7.75 10.975C7.46667 10.975 7.23334 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63334 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const i2=oe(o2,[["render",a2]]),s2={},l2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c2(t,e){return a.openBlock(),a.createElementBlock("svg",l2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10 13.6L15.9 7.70005C16.0834 7.51672 16.3167 7.42505 16.6 7.42505C16.8834 7.42505 17.1167 7.51672 17.3 7.70005C17.4834 7.88338 17.575 8.11671 17.575 8.40005C17.575 8.68338 17.4834 8.91672 17.3 9.10005L10.7 15.7C10.5 15.9 10.2667 16 10 16C9.73338 16 9.50005 15.9 9.30005 15.7L6.70005 13.1C6.51672 12.9167 6.42505 12.6834 6.42505 12.4C6.42505 12.1167 6.51672 11.8834 6.70005 11.7C6.88338 11.5167 7.11672 11.425 7.40005 11.425C7.68338 11.425 7.91672 11.5167 8.10005 11.7L10 13.6Z",fill:"black"},null,-1)])])}const d2=oe(s2,[["render",c2]]),u2={},p2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f2(t,e){return a.openBlock(),a.createElementBlock("svg",p2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M14 8.99989C13.7167 8.99989 13.479 8.90389 13.287 8.71189C13.095 8.51989 12.9994 8.28255 13 7.99989C13 7.71655 13.096 7.47889 13.288 7.28689C13.48 7.09489 13.7174 6.99922 14 6.99989H21C21.2834 6.99989 21.521 7.09589 21.713 7.28789C21.905 7.47989 22.0007 7.71722 22 7.99989C22 8.28322 21.904 8.52089 21.712 8.71289C21.52 8.90489 21.2827 9.00055 21 8.99989H14ZM14 16.9999C13.7167 16.9999 13.479 16.9039 13.287 16.7119C13.095 16.5199 12.9994 16.2826 13 15.9999C13 15.7166 13.096 15.4789 13.288 15.2869C13.48 15.0949 13.7174 14.9992 14 14.9999H21C21.2834 14.9999 21.521 15.0959 21.713 15.2879C21.905 15.4799 22.0007 15.7172 22 15.9999C22 16.2832 21.904 16.5209 21.712 16.7129C21.52 16.9049 21.2827 17.0006 21 16.9999H14ZM4.85005 10.2999L2.70005 8.14989C2.51672 7.96655 2.42505 7.73322 2.42505 7.44989C2.42505 7.16655 2.51672 6.93322 2.70005 6.74989C2.88338 6.56655 3.11672 6.47489 3.40005 6.47489C3.68338 6.47489 3.91672 6.56655 4.10005 6.74989L5.52505 8.17489L9.07505 4.62489C9.27505 4.42489 9.50838 4.32889 9.77505 4.33689C10.0417 4.34489 10.275 4.44922 10.475 4.64989C10.6584 4.84989 10.75 5.08322 10.75 5.34989C10.75 5.61655 10.6584 5.84989 10.475 6.04989L6.25005 10.2999C6.05005 10.4999 5.81672 10.5999 5.55005 10.5999C5.28338 10.5999 5.05005 10.4999 4.85005 10.2999ZM4.85005 18.2999L2.70005 16.1499C2.51672 15.9666 2.42505 15.7332 2.42505 15.4499C2.42505 15.1666 2.51672 14.9332 2.70005 14.7499C2.88338 14.5666 3.11672 14.4749 3.40005 14.4749C3.68338 14.4749 3.91672 14.5666 4.10005 14.7499L5.52505 16.1749L9.07505 12.6249C9.27505 12.4249 9.50838 12.3292 9.77505 12.3379C10.0417 12.3466 10.275 12.4506 10.475 12.6499C10.6584 12.8499 10.75 13.0832 10.75 13.3499C10.75 13.6166 10.6584 13.8499 10.475 14.0499L6.25005 18.2999C6.05005 18.4999 5.81672 18.5999 5.55005 18.5999C5.28338 18.5999 5.05005 18.4999 4.85005 18.2999Z",fill:"black"},null,-1)])])}const m2=oe(u2,[["render",f2]]),h2={},g2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b2(t,e){return a.openBlock(),a.createElementBlock("svg",g2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const y2=oe(h2,[["render",b2]]),_2={},v2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C2(t,e){return a.openBlock(),a.createElementBlock("svg",v2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const w2=oe(_2,[["render",C2]]),k2={},x2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E2(t,e){return a.openBlock(),a.createElementBlock("svg",x2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 13.4L7.10005 18.3C6.91672 18.4834 6.68338 18.575 6.40005 18.575C6.11672 18.575 5.88338 18.4834 5.70005 18.3C5.51672 18.1167 5.42505 17.8834 5.42505 17.6C5.42505 17.3167 5.51672 17.0834 5.70005 16.9L10.6 12L5.70005 7.10005C5.51672 6.91672 5.42505 6.68338 5.42505 6.40005C5.42505 6.11672 5.51672 5.88338 5.70005 5.70005C5.88338 5.51672 6.11672 5.42505 6.40005 5.42505C6.68338 5.42505 6.91672 5.51672 7.10005 5.70005L12 10.6L16.9 5.70005C17.0834 5.51672 17.3167 5.42505 17.6 5.42505C17.8834 5.42505 18.1167 5.51672 18.3 5.70005C18.4834 5.88338 18.575 6.11672 18.575 6.40005C18.575 6.68338 18.4834 6.91672 18.3 7.10005L13.4 12L18.3 16.9C18.4834 17.0834 18.575 17.3167 18.575 17.6C18.575 17.8834 18.4834 18.1167 18.3 18.3C18.1167 18.4834 17.8834 18.575 17.6 18.575C17.3167 18.575 17.0834 18.4834 16.9 18.3L12 13.4Z",fill:"black"},null,-1)])])}const S2=oe(k2,[["render",E2]]),T2={},A2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N2(t,e){return a.openBlock(),a.createElementBlock("svg",A2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 23C4.71667 23 4.479 22.904 4.287 22.712C4.095 22.52 3.99934 22.2827 4 22C4 21.7167 4.096 21.479 4.288 21.287C4.48 21.095 4.71734 20.9993 5 21H19C19.2833 21 19.521 21.096 19.713 21.288C19.905 21.48 20.0007 21.7173 20 22C20 22.2833 19.904 22.521 19.712 22.713C19.52 22.905 19.2827 23.0007 19 23H5ZM5 3C4.71667 3 4.479 2.904 4.287 2.712C4.095 2.52 3.99934 2.28267 4 2C4 1.71667 4.096 1.479 4.288 1.287C4.48 1.095 4.71734 0.999337 5 1H19C19.2833 1 19.521 1.096 19.713 1.288C19.905 1.48 20.0007 1.71734 20 2C20 2.28334 19.904 2.521 19.712 2.713C19.52 2.905 19.2827 3.00067 19 3H5ZM12 13C12.8333 13 13.5417 12.7083 14.125 12.125C14.7083 11.5417 15 10.8333 15 10C15 9.16667 14.7083 8.45834 14.125 7.875C13.5417 7.29167 12.8333 7 12 7C11.1667 7 10.4583 7.29167 9.875 7.875C9.29167 8.45834 9 9.16667 9 10C9 10.8333 9.29167 11.5417 9.875 12.125C10.4583 12.7083 11.1667 13 12 13ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4ZM5.75 18C6.5 17.0667 7.40834 16.3333 8.475 15.8C9.54167 15.2667 10.7167 15 12 15C13.2833 15 14.4583 15.2667 15.525 15.8C16.5917 16.3333 17.5 17.0667 18.25 18H20V6H4V18H5.75ZM8.7 18H15.3C14.8167 17.6667 14.2957 17.4167 13.737 17.25C13.1783 17.0833 12.5993 17 12 17C11.4 17 10.8207 17.0833 10.262 17.25C9.70334 17.4167 9.18267 17.6667 8.7 18ZM12 11C11.7167 11 11.479 10.904 11.287 10.712C11.095 10.52 10.9993 10.2827 11 10C11 9.71667 11.096 9.479 11.288 9.287C11.48 9.095 11.7173 8.99934 12 9C12.2833 9 12.521 9.096 12.713 9.288C12.905 9.48 13.0007 9.71734 13 10C13 10.2833 12.904 10.521 12.712 10.713C12.52 10.905 12.2827 11.0007 12 11Z",fill:"black"},null,-1)])])}const D2=oe(T2,[["render",N2]]),B2={},L2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M2(t,e){return a.openBlock(),a.createElementBlock("svg",L2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.979 17.804 7.587 17.412C7.195 17.02 6.99934 16.5493 7 16V4C7 3.45 7.196 2.979 7.588 2.587C7.98 2.195 8.45067 1.99934 9 2H18C18.55 2 19.021 2.196 19.413 2.588C19.805 2.98 20.0007 3.45067 20 4V16C20 16.55 19.804 17.021 19.412 17.413C19.02 17.805 18.5493 18.0007 18 18H9ZM9 16H18V4H9V16Z",fill:"black"},null,-1)])])}const $2=oe(B2,[["render",M2]]),O2={},I2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R2(t,e){return a.openBlock(),a.createElementBlock("svg",I2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M7 21C6.45 21 5.979 20.804 5.587 20.412C5.195 20.02 4.99934 19.5493 5 19V6C4.71667 6 4.479 5.904 4.287 5.712C4.095 5.52 3.99934 5.28267 4 5C4 4.71667 4.096 4.479 4.288 4.287C4.48 4.095 4.71734 3.99934 5 4H9C9 3.71667 9.096 3.479 9.288 3.287C9.48 3.095 9.71734 2.99934 10 3H14C14.2833 3 14.521 3.096 14.713 3.288C14.905 3.48 15.0007 3.71734 15 4H19C19.2833 4 19.521 4.096 19.713 4.288C19.905 4.48 20.0007 4.71734 20 5C20 5.28334 19.904 5.521 19.712 5.713C19.52 5.905 19.2827 6.00067 19 6V19C19 19.55 18.804 20.021 18.412 20.413C18.02 20.805 17.5493 21.0007 17 21H7ZM7 6V19H17V6H7ZM9 16C9 16.2833 9.096 16.521 9.288 16.713C9.48 16.905 9.71734 17.0007 10 17C10.2833 17 10.521 16.904 10.713 16.712C10.905 16.52 11.0007 16.2827 11 16V9C11 8.71667 10.904 8.479 10.712 8.287C10.52 8.095 10.2827 7.99934 10 8C9.71667 8 9.479 8.096 9.287 8.288C9.095 8.48 8.99934 8.71734 9 9V16ZM13 16C13 16.2833 13.096 16.521 13.288 16.713C13.48 16.905 13.7173 17.0007 14 17C14.2833 17 14.521 16.904 14.713 16.712C14.905 16.52 15.0007 16.2827 15 16V9C15 8.71667 14.904 8.479 14.712 8.287C14.52 8.095 14.2827 7.99934 14 8C13.7167 8 13.479 8.096 13.287 8.288C13.095 8.48 12.9993 8.71734 13 9V16Z",fill:"black"},null,-1)])])}const P2=oe(O2,[["render",R2]]),V2={},F2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z2(t,e){return a.openBlock(),a.createElementBlock("svg",F2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M9 20C8.45 20 7.97933 19.8043 7.588 19.413C7.196 19.021 7 18.55 7 18C7 17.45 7.196 16.979 7.588 16.587C7.97933 16.1957 8.45 16 9 16C9.55 16 10.021 16.1957 10.413 16.587C10.8043 16.979 11 17.45 11 18C11 18.55 10.8043 19.021 10.413 19.413C10.021 19.8043 9.55 20 9 20ZM15 20C14.45 20 13.9793 19.8043 13.588 19.413C13.196 19.021 13 18.55 13 18C13 17.45 13.196 16.979 13.588 16.587C13.9793 16.1957 14.45 16 15 16C15.55 16 16.021 16.1957 16.413 16.587C16.8043 16.979 17 17.45 17 18C17 18.55 16.8043 19.021 16.413 19.413C16.021 19.8043 15.55 20 15 20ZM9 14C8.45 14 7.97933 13.804 7.588 13.412C7.196 13.0207 7 12.55 7 12C7 11.45 7.196 10.979 7.588 10.587C7.97933 10.1957 8.45 10 9 10C9.55 10 10.021 10.1957 10.413 10.587C10.8043 10.979 11 11.45 11 12C11 12.55 10.8043 13.0207 10.413 13.412C10.021 13.804 9.55 14 9 14ZM15 14C14.45 14 13.9793 13.804 13.588 13.412C13.196 13.0207 13 12.55 13 12C13 11.45 13.196 10.979 13.588 10.587C13.9793 10.1957 14.45 10 15 10C15.55 10 16.021 10.1957 16.413 10.587C16.8043 10.979 17 11.45 17 12C17 12.55 16.8043 13.0207 16.413 13.412C16.021 13.804 15.55 14 15 14ZM9 8C8.45 8 7.97933 7.804 7.588 7.412C7.196 7.02067 7 6.55 7 6C7 5.45 7.196 4.97933 7.588 4.588C7.97933 4.196 8.45 4 9 4C9.55 4 10.021 4.196 10.413 4.588C10.8043 4.97933 11 5.45 11 6C11 6.55 10.8043 7.02067 10.413 7.412C10.021 7.804 9.55 8 9 8ZM15 8C14.45 8 13.9793 7.804 13.588 7.412C13.196 7.02067 13 6.55 13 6C13 5.45 13.196 4.97933 13.588 4.588C13.9793 4.196 14.45 4 15 4C15.55 4 16.021 4.196 16.413 4.588C16.8043 4.97933 17 5.45 17 6C17 6.55 16.8043 7.02067 16.413 7.412C16.021 7.804 15.55 8 15 8Z",fill:"black"},null,-1)])])}const q2=oe(V2,[["render",z2]]),j2={},U2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H2(t,e){return a.openBlock(),a.createElementBlock("svg",U2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V11.1L12 19.075V22H6ZM14.5 22C14.3667 22 14.25 21.95 14.15 21.85C14.05 21.75 14 21.6333 14 21.5V20.3C14 20.1667 14.0293 20.0333 14.088 19.9C14.1467 19.7667 14.2173 19.6583 14.3 19.575L19.15 14.7L21.3 16.8L16.425 21.7C16.3417 21.8 16.2333 21.875 16.1 21.925C15.9667 21.975 15.8333 22 15.7 22H14.5ZM22.025 16.1L19.9 13.975L20.6 13.275C20.8 13.075 21.0417 12.975 21.325 12.975C21.6083 12.975 21.8417 13.075 22.025 13.275L22.725 14C22.9083 14.2 23 14.4377 23 14.713C23 14.9883 22.9083 15.2173 22.725 15.4L22.025 16.1ZM14 9H18L13 4V8C13 8.28334 13.096 8.521 13.288 8.713C13.48 8.905 13.7173 9.00067 14 9Z",fill:"black"},null,-1)])])}const W2=oe(j2,[["render",H2]]),Z2={},G2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K2(t,e){return a.openBlock(),a.createElementBlock("svg",G2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3043 2.75 17.863 2.75C18.4217 2.75 18.8923 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.571 21.275 6.113C21.2917 6.655 21.1083 7.11733 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4ZM14.325 9.675L13.625 8.975L15.025 10.375L14.325 9.675Z",fill:"black"},null,-1)])])}const Y2=oe(Z2,[["render",K2]]),J2={},X2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q2(t,e){return a.openBlock(),a.createElementBlock("svg",X2,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.905 16.52 13.0007 16.2827 13 16C13 15.7167 12.904 15.479 12.712 15.287C12.52 15.095 12.2827 14.9993 12 15C11.7167 15 11.479 15.096 11.287 15.288C11.095 15.48 10.9993 15.7173 11 16C11 16.2833 11.096 16.521 11.288 16.713C11.48 16.905 11.7173 17.0007 12 17ZM12 13C12.2833 13 12.521 12.904 12.713 12.712C12.905 12.52 13.0007 12.2827 13 12V8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8V12C11 12.2833 11.096 12.521 11.288 12.713C11.48 12.905 11.7173 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const eb=oe(J2,[["render",Q2]]),tb={},nb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ob(t,e){return a.openBlock(),a.createElementBlock("svg",nb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11 18C10.7167 18 10.479 17.904 10.287 17.712C10.095 17.52 9.99934 17.2827 10 17C10 16.7167 10.096 16.479 10.288 16.287C10.48 16.095 10.7173 15.9993 11 16H13C13.2833 16 13.521 16.096 13.713 16.288C13.905 16.48 14.0007 16.7173 14 17C14 17.2833 13.904 17.521 13.712 17.713C13.52 17.905 13.2827 18.0007 13 18H11ZM4 8C3.71667 8 3.479 7.904 3.287 7.712C3.095 7.52 2.99934 7.28267 3 7C3 6.71667 3.096 6.479 3.288 6.287C3.48 6.095 3.71734 5.99934 4 6H20C20.2833 6 20.521 6.096 20.713 6.288C20.905 6.48 21.0007 6.71734 21 7C21 7.28334 20.904 7.521 20.712 7.713C20.52 7.905 20.2827 8.00067 20 8H4ZM7 13C6.71667 13 6.479 12.904 6.287 12.712C6.095 12.52 5.99934 12.2827 6 12C6 11.7167 6.096 11.479 6.288 11.287C6.48 11.095 6.71734 10.9993 7 11H17C17.2833 11 17.521 11.096 17.713 11.288C17.905 11.48 18.0007 11.7173 18 12C18 12.2833 17.904 12.521 17.712 12.713C17.52 12.905 17.2827 13.0007 17 13H7Z",fill:"black"},null,-1)])])}const rb=oe(tb,[["render",ob]]),ab={},ib={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sb(t,e){return a.openBlock(),a.createElementBlock("svg",ib,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 21C5.71667 21 5.479 20.904 5.287 20.712C5.095 20.52 4.99934 20.2827 5 20V5C5 4.71667 5.096 4.479 5.288 4.287C5.48 4.095 5.71734 3.99934 6 4H13.175C13.4083 4 13.6167 4.075 13.8 4.225C13.9833 4.375 14.1 4.56667 14.15 4.8L14.4 6H19C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71734 20 7V15C20 15.2833 19.904 15.521 19.712 15.713C19.52 15.905 19.2827 16.0007 19 16H13.825C13.5917 16 13.3833 15.925 13.2 15.775C13.0167 15.625 12.9 15.4333 12.85 15.2L12.6 14H7V20C7 20.2833 6.904 20.521 6.712 20.713C6.52 20.905 6.28267 21.0007 6 21Z",fill:"black"},null,-1)])])}const lb=oe(ab,[["render",sb]]),cb={},db={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ub(t,e){return a.openBlock(),a.createElementBlock("svg",db,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M4 12V18V6V12ZM14 21C14.2833 21 14.521 20.904 14.713 20.712C14.905 20.52 15.0007 20.2827 15 20C15 19.7167 14.904 19.479 14.712 19.287C14.52 19.095 14.2827 18.9993 14 19C13.7167 19 13.479 19.096 13.287 19.288C13.095 19.48 12.9993 19.7173 13 20C13 20.2833 13.096 20.521 13.288 20.713C13.48 20.905 13.7173 21.0007 14 21ZM20 11C20.2833 11 20.521 10.904 20.713 10.712C20.905 10.52 21.0007 10.2827 21 10C21 9.71667 20.904 9.479 20.712 9.287C20.52 9.095 20.2827 8.99934 20 9C19.7167 9 19.479 9.096 19.287 9.288C19.095 9.48 18.9993 9.71734 19 10C19 10.2833 19.096 10.521 19.288 10.713C19.48 10.905 19.7173 11.0007 20 11ZM10 11C10.2833 11 10.521 10.904 10.713 10.712C10.905 10.52 11.0007 10.2827 11 10C11 9.71667 10.904 9.479 10.712 9.287C10.52 9.095 10.2827 8.99934 10 9H7C6.71667 9 6.479 9.096 6.287 9.288C6.095 9.48 5.99934 9.71734 6 10C6 10.2833 6.096 10.521 6.288 10.713C6.48 10.905 6.71734 11.0007 7 11H10ZM10 15C10.2833 15 10.521 14.904 10.713 14.712C10.905 14.52 11.0007 14.2827 11 14C11 13.7167 10.904 13.479 10.712 13.287C10.52 13.095 10.2827 12.9993 10 13H7C6.71667 13 6.479 13.096 6.287 13.288C6.095 13.48 5.99934 13.7173 6 14C6 14.2833 6.096 14.521 6.288 14.713C6.48 14.905 6.71734 15.0007 7 15H10ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6H4V18H9V20H4ZM14 23C13.1667 23 12.4583 22.7083 11.875 22.125C11.2917 21.5417 11 20.8333 11 20C11 19.35 11.1877 18.7667 11.563 18.25C11.9383 17.7333 12.4173 17.375 13 17.175V15C13 14.7167 13.096 14.479 13.288 14.287C13.48 14.095 13.7173 13.9993 14 14H19V12.825C18.4167 12.625 17.9373 12.2667 17.562 11.75C17.1867 11.2333 16.9993 10.65 17 10C17 9.16667 17.2917 8.45833 17.875 7.875C18.4583 7.29167 19.1667 7 20 7C20.8333 7 21.5417 7.29167 22.125 7.875C22.7083 8.45833 23 9.16667 23 10C23 10.65 22.8123 11.2333 22.437 11.75C22.0617 12.2667 21.5827 12.625 21 12.825V15C21 15.2833 20.904 15.521 20.712 15.713C20.52 15.905 20.2827 16.0007 20 16H15V17.175C15.5833 17.375 16.0627 17.7333 16.438 18.25C16.8133 18.7667 17.0007 19.35 17 20C17 20.8333 16.7083 21.5417 16.125 22.125C15.5417 22.7083 14.8333 23 14 23Z",fill:"black"},null,-1)])])}const pb=oe(cb,[["render",ub]]),fb={},mb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hb(t,e){return a.openBlock(),a.createElementBlock("svg",mb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8.5 14H9.5C9.78334 14 10.021 13.904 10.213 13.712C10.405 13.52 10.5007 13.2827 10.5 13V12H9.5V13H8.5V11H10.5C10.5 10.7167 10.404 10.479 10.212 10.287C10.02 10.095 9.78267 9.99934 9.5 10H8.5C8.21667 10 7.979 10.096 7.787 10.288C7.595 10.48 7.49934 10.7173 7.5 11V13C7.5 13.2833 7.596 13.521 7.788 13.713C7.98 13.905 8.21734 14.0007 8.5 14ZM11.5 14H12.5V10H11.5V14ZM13.5 14H14.5V12.5H16V11.5H14.5V11H16.5V10H13.5V14ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const gb=oe(fb,[["render",hb]]),bb={},yb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _b(t,e){return a.openBlock(),a.createElementBlock("svg",yb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M0 18V16.425C0 15.7083 0.366667 15.125 1.1 14.675C1.83333 14.225 2.8 14 4 14C4.21667 14 4.425 14.0043 4.625 14.013C4.825 14.0217 5.01667 14.0423 5.2 14.075C4.96667 14.425 4.79167 14.7917 4.675 15.175C4.55833 15.5583 4.5 15.9583 4.5 16.375V18H0ZM6 18V16.375C6 15.8417 6.146 15.354 6.438 14.912C6.73 14.47 7.14233 14.0827 7.675 13.75C8.20833 13.4167 8.846 13.1667 9.588 13C10.33 12.8333 11.134 12.75 12 12.75C12.8833 12.75 13.696 12.8333 14.438 13C15.18 13.1667 15.8173 13.4167 16.35 13.75C16.8833 14.0833 17.2917 14.471 17.575 14.913C17.8583 15.355 18 15.8423 18 16.375V18H6ZM19.5 18V16.375C19.5 15.9417 19.4457 15.5333 19.337 15.15C19.2283 14.7667 19.066 14.4083 18.85 14.075C19.0333 14.0417 19.221 14.021 19.413 14.013C19.605 14.005 19.8007 14.0007 20 14C21.2 14 22.1667 14.221 22.9 14.663C23.6333 15.105 24 15.6923 24 16.425V18H19.5ZM8.125 16H15.9C15.7333 15.6667 15.2707 15.375 14.512 15.125C13.7533 14.875 12.916 14.75 12 14.75C11.0833 14.75 10.2457 14.875 9.487 15.125C8.72833 15.375 8.27467 15.6667 8.126 16H8.125ZM4 13C3.45 13 2.979 12.804 2.587 12.412C2.195 12.02 1.99933 11.5493 2 11C2 10.4333 2.196 9.95833 2.588 9.575C2.98 9.19167 3.45067 9 4 9C4.56667 9 5.04167 9.19167 5.425 9.575C5.80833 9.95833 6 10.4333 6 11C6 11.55 5.80833 12.021 5.425 12.413C5.04167 12.805 4.56667 13.0007 4 13ZM20 13C19.45 13 18.979 12.804 18.587 12.412C18.195 12.02 17.9993 11.5493 18 11C18 10.4333 18.196 9.95833 18.588 9.575C18.98 9.19167 19.4507 9 20 9C20.5667 9 21.0417 9.19167 21.425 9.575C21.8083 9.95833 22 10.4333 22 11C22 11.55 21.8083 12.021 21.425 12.413C21.0417 12.805 20.5667 13.0007 20 13ZM12 12C11.1667 12 10.4583 11.7083 9.875 11.125C9.29167 10.5417 9 9.83333 9 9C9 8.15 9.29167 7.43733 9.875 6.862C10.4583 6.28667 11.1667 5.99933 12 6C12.85 6 13.5627 6.28767 14.138 6.863C14.7133 7.43833 15.0007 8.15067 15 9C15 9.83333 14.7123 10.5417 14.137 11.125C13.5617 11.7083 12.8493 12 12 12ZM12 10C12.2833 10 12.521 9.904 12.713 9.712C12.905 9.52 13.0007 9.28267 13 9C13 8.71667 12.904 8.479 12.712 8.287C12.52 8.095 12.2827 7.99933 12 8C11.7167 8 11.479 8.096 11.287 8.288C11.095 8.48 10.9993 8.71733 11 9C11 9.28333 11.096 9.521 11.288 9.713C11.48 9.905 11.7173 10.0007 12 10Z",fill:"black"},null,-1)])])}const vb=oe(bb,[["render",_b]]),Cb={},wb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kb(t,e){return a.openBlock(),a.createElementBlock("svg",wb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 19H9V13H15V19H18V10L12 5.5L6 10V19ZM6 21C5.45 21 4.979 20.804 4.587 20.412C4.195 20.02 3.99934 19.5493 4 19V10C4 9.68333 4.071 9.38333 4.213 9.1C4.355 8.81667 4.55067 8.58333 4.8 8.4L10.8 3.9C10.9833 3.76667 11.175 3.66667 11.375 3.6C11.575 3.53333 11.7833 3.5 12 3.5C12.2167 3.5 12.425 3.53333 12.625 3.6C12.825 3.66667 13.0167 3.76667 13.2 3.9L19.2 8.4C19.45 8.58333 19.646 8.81667 19.788 9.1C19.93 9.38333 20.0007 9.68333 20 10V19C20 19.55 19.804 20.021 19.412 20.413C19.02 20.805 18.5493 21.0007 18 21H13V15H11V21H6Z",fill:"black"},null,-1)])])}const xb=oe(Cb,[["render",kb]]),Eb={},Sb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Tb(t,e){return a.openBlock(),a.createElementBlock("svg",Sb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83334 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17Z",fill:"black"},null,-1)])])}const Ab=oe(Eb,[["render",Tb]]),Nb={},Db={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Bb(t,e){return a.openBlock(),a.createElementBlock("svg",Db,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.905 8.52 13.0007 8.28267 13 8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8C11 8.28333 11.096 8.521 11.288 8.713C11.48 8.905 11.7173 9.00067 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const Lb=oe(Nb,[["render",Bb]]),Mb={},$b={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ob(t,e){return a.openBlock(),a.createElementBlock("svg",$b,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const Ib=oe(Mb,[["render",Ob]]),Rb={},Pb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Vb(t,e){return a.openBlock(),a.createElementBlock("svg",Pb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const Fb=oe(Rb,[["render",Vb]]),zb=a.defineComponent({name:"LoadingIcon"}),vD="",qb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jb(t,e,n,o,r,i){return a.openBlock(),a.createElementBlock("svg",qb,[...e[0]||(e[0]=[a.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),a.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),a.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const Ub=oe(zb,[["render",jb],["__scopeId","data-v-ad6da4a9"]]),Hb={},Wb={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function Zb(t,e){return a.openBlock(),a.createElementBlock("svg",Wb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm0-80h480v-400H240v400Zm240-120q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z"},null,-1)])])}const Gb=oe(Hb,[["render",Zb]]),Kb={},Yb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jb(t,e){return a.openBlock(),a.createElementBlock("svg",Yb,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M15.325 16.275C15.1417 16.0583 15.05 15.8127 15.05 15.538C15.05 15.2633 15.1417 15.034 15.325 14.85L17.175 13H10C9.71667 13 9.479 12.904 9.287 12.712C9.095 12.52 8.99934 12.2827 9 12C9 11.7167 9.096 11.479 9.288 11.287C9.48 11.095 9.71734 10.9993 10 11H17.175L15.325 9.15C15.125 8.95 15.025 8.71234 15.025 8.437C15.025 8.16167 15.125 7.92434 15.325 7.725C15.5083 7.525 15.7377 7.425 16.013 7.425C16.2883 7.425 16.5173 7.51667 16.7 7.7L20.3 11.3C20.4 11.4 20.471 11.5083 20.513 11.625C20.555 11.7417 20.5757 11.8667 20.575 12C20.575 12.1333 20.5543 12.2583 20.513 12.375C20.4717 12.4917 20.4007 12.6 20.3 12.7L16.7 16.3C16.4833 16.5167 16.2457 16.6127 15.987 16.588C15.7283 16.5633 15.5077 16.459 15.325 16.275ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H11C11.2833 3 11.521 3.096 11.713 3.288C11.905 3.48 12.0007 3.71734 12 4C12 4.28334 11.904 4.521 11.712 4.713C11.52 4.905 11.2827 5.00067 11 5H5V19H11C11.2833 19 11.521 19.096 11.713 19.288C11.905 19.48 12.0007 19.7173 12 20C12 20.2833 11.904 20.521 11.712 20.713C11.52 20.905 11.2827 21.0007 11 21H5Z",fill:"black"},null,-1)])])}const Xb=oe(Kb,[["render",Jb]]),Qb={},e3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t3(t,e){return a.openBlock(),a.createElementBlock("svg",e3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const n3=oe(Qb,[["render",t3]]),o3={},r3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a3(t,e){return a.openBlock(),a.createElementBlock("svg",r3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 14C5.45 14 4.979 13.804 4.587 13.412C4.195 13.02 3.99934 12.5493 4 12C4 11.45 4.196 10.979 4.588 10.587C4.98 10.195 5.45067 9.99934 6 10C6.55 10 7.021 10.196 7.413 10.588C7.805 10.98 8.00067 11.4507 8 12C8 12.55 7.804 13.021 7.412 13.413C7.02 13.805 6.54934 14.0007 6 14ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM18 14C17.45 14 16.979 13.804 16.587 13.412C16.195 13.02 15.9993 12.5493 16 12C16 11.45 16.196 10.979 16.588 10.587C16.98 10.195 17.4507 9.99934 18 10C18.55 10 19.021 10.196 19.413 10.588C19.805 10.98 20.0007 11.4507 20 12C20 12.55 19.804 13.021 19.412 13.413C19.02 13.805 18.5493 14.0007 18 14Z",fill:"black"},null,-1)])])}const i3=oe(o3,[["render",a3]]),s3={},l3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c3(t,e){return a.openBlock(),a.createElementBlock("svg",l3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11 21C9.75 21 8.57933 20.7667 7.488 20.3C6.396 19.8333 5.44167 19.1917 4.625 18.375C3.80833 17.5583 3.16667 16.604 2.7 15.512C2.23333 14.4207 2 13.25 2 12C2 9.48333 2.871 7.354 4.613 5.612C6.35433 3.87067 8.48333 3 11 3C11.2167 3 11.425 3.00833 11.625 3.025C11.825 3.04167 12.025 3.06667 12.225 3.1C12.4417 3.13333 12.625 3.24567 12.775 3.437C12.925 3.629 13 3.84167 13 4.075C13 4.40833 12.8877 4.66233 12.663 4.837C12.4377 5.01233 12.15 5.08333 11.8 5.05C11.6667 5.03333 11.5333 5.02067 11.4 5.012C11.2667 5.004 11.1333 5 11 5C9.03333 5 7.375 5.675 6.025 7.025C4.675 8.375 4 10.0333 4 12C4 13.9667 4.675 15.625 6.025 16.975C7.375 18.325 9.03333 19 11 19C12.95 19 14.596 18.3333 15.938 17C17.2793 15.6667 17.9667 14.025 18 12.075H18.013H18C18 11.7917 18.096 11.5417 18.288 11.325C18.4793 11.1083 18.7167 11 19 11C19.2667 11 19.5 11.0957 19.7 11.287C19.9 11.479 20 11.7 20 11.95V12C20 14.5167 19.129 16.6457 17.387 18.387C15.6457 20.129 13.5167 21 11 21ZM19 9C18.7167 9 18.4793 8.904 18.288 8.712C18.096 8.52067 18 8.28333 18 8V6H16C15.7167 6 15.4793 5.90433 15.288 5.713C15.096 5.521 15 5.28333 15 5C15 4.71667 15.096 4.479 15.288 4.287C15.4793 4.09567 15.7167 4 16 4H18V2C18 1.71667 18.096 1.479 18.288 1.287C18.4793 1.09567 18.7167 1 19 1C19.2833 1 19.5207 1.09567 19.712 1.287C19.904 1.479 20 1.71667 20 2V4H22C22.2833 4 22.5207 4.09567 22.712 4.287C22.904 4.479 23 4.71667 23 5C23 5.28333 22.904 5.521 22.712 5.713C22.5207 5.90433 22.2833 6 22 6H20V8C20 8.28333 19.904 8.52067 19.712 8.712C19.5207 8.904 19.2833 9 19 9ZM13.1 15.5L10.3 12.7C10.2 12.6 10.125 12.4873 10.075 12.362C10.025 12.2373 10 12.1083 10 11.975V8C10 7.71667 10.096 7.479 10.288 7.287C10.4793 7.09567 10.7167 7 11 7C11.2833 7 11.521 7.09567 11.713 7.287C11.9043 7.479 12 7.71667 12 8V11.6L14.5 14.1C14.6833 14.2833 14.775 14.5167 14.775 14.8C14.775 15.0833 14.6833 15.3167 14.5 15.5C14.3167 15.6833 14.0833 15.775 13.8 15.775C13.5167 15.775 13.2833 15.6833 13.1 15.5V15.5Z",fill:"black"},null,-1)])])}const d3=oe(s3,[["render",c3]]),u3={},p3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f3(t,e){return a.openBlock(),a.createElementBlock("svg",p3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 20C11.45 20 10.979 19.804 10.587 19.412C10.195 19.02 9.99934 18.5493 10 18C10 17.45 10.196 16.979 10.588 16.587C10.98 16.195 11.4507 15.9993 12 16C12.55 16 13.021 16.196 13.413 16.588C13.805 16.98 14.0007 17.4507 14 18C14 18.55 13.804 19.021 13.412 19.413C13.02 19.805 12.5493 20.0007 12 20ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM12 8C11.45 8 10.979 7.804 10.587 7.412C10.195 7.02 9.99934 6.54934 10 6C10 5.45 10.196 4.979 10.588 4.587C10.98 4.195 11.4507 3.99934 12 4C12.55 4 13.021 4.196 13.413 4.588C13.805 4.98 14.0007 5.45067 14 6C14 6.55 13.804 7.021 13.412 7.413C13.02 7.805 12.5493 8.00067 12 8Z",fill:"black"},null,-1)])])}const m3=oe(u3,[["render",f3]]),h3={},g3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b3(t,e){return a.openBlock(),a.createElementBlock("svg",g3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8.70002 12.925L10.075 13.85L11.55 13.1C11.6834 13.0167 11.8334 12.975 12 12.975C12.1667 12.975 12.3167 13.0167 12.45 13.1L13.925 13.85L15.25 12.975L14.25 11H9.65002L8.70002 12.925ZM5.22502 20H18.75L16.15 14.775L14.55 15.85C14.4 15.95 14.2377 16.0043 14.063 16.013C13.8884 16.0217 13.7174 15.984 13.55 15.9L12 15.125L10.45 15.9C10.2834 15.9833 10.1124 16.0167 9.93702 16C9.76169 15.9833 9.59936 15.925 9.45002 15.825L7.80002 14.75L5.22502 20ZM3.60002 22C3.21669 22 2.92936 21.8417 2.73802 21.525C2.54669 21.2083 2.53402 20.8833 2.70002 20.55L7.85002 10.125C8.01669 9.79167 8.26269 9.52067 8.58802 9.312C8.91336 9.10334 9.26736 8.99934 9.65002 9H11V3C11 2.71667 11.096 2.479 11.288 2.287C11.48 2.095 11.7174 1.99934 12 2H17.2C17.3834 2 17.525 2.07934 17.625 2.238C17.725 2.39667 17.7334 2.559 17.65 2.725L17.1 3.775C17.0667 3.85834 17.05 3.93334 17.05 4C17.05 4.06667 17.0667 4.14167 17.1 4.225L17.65 5.275C17.7334 5.44167 17.725 5.604 17.625 5.762C17.525 5.92 17.3834 5.99934 17.2 6H13V9H14.25C14.6334 9 14.9834 9.1 15.3 9.3C15.6167 9.5 15.8667 9.76667 16.05 10.1L21.275 20.55C21.4417 20.8833 21.4294 21.2083 21.238 21.525C21.0467 21.8417 20.759 22 20.375 22H3.60002Z",fill:"black"},null,-1)])])}const y3=oe(h3,[["render",b3]]),_3={},v3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C3(t,e){return a.openBlock(),a.createElementBlock("svg",v3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",fill:"black"},null,-1)])])}const w3=oe(_3,[["render",C3]]),k3={},x3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E3(t,e){return a.openBlock(),a.createElementBlock("svg",x3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10 10.5H11C11.2833 10.5 11.521 10.404 11.713 10.212C11.905 10.02 12.0007 9.78267 12 9.5V8.5C12 8.21667 11.904 7.979 11.712 7.787C11.52 7.595 11.2827 7.49934 11 7.5H9.5C9.36667 7.5 9.25 7.55 9.15 7.65C9.05 7.75 9 7.86667 9 8V12C9 12.1333 9.05 12.25 9.15 12.35C9.25 12.45 9.36667 12.5 9.5 12.5C9.63334 12.5 9.75 12.45 9.85 12.35C9.95 12.25 10 12.1333 10 12V10.5ZM10 9.5V8.5H11V9.5H10ZM15 12.5C15.2833 12.5 15.521 12.404 15.713 12.212C15.905 12.02 16.0007 11.7827 16 11.5V8.5C16 8.21667 15.904 7.979 15.712 7.787C15.52 7.595 15.2827 7.49934 15 7.5H13.5C13.3667 7.5 13.25 7.55 13.15 7.65C13.05 7.75 13 7.86667 13 8V12C13 12.1333 13.05 12.25 13.15 12.35C13.25 12.45 13.3667 12.5 13.5 12.5H15ZM14 11.5V8.5H15V11.5H14ZM18 10.5H18.5C18.6333 10.5 18.75 10.45 18.85 10.35C18.95 10.25 19 10.1333 19 10C19 9.86667 18.95 9.75 18.85 9.65C18.75 9.55 18.6333 9.5 18.5 9.5H18V8.5H18.5C18.6333 8.5 18.75 8.45 18.85 8.35C18.95 8.25 19 8.13334 19 8C19 7.86667 18.95 7.75 18.85 7.65C18.75 7.55 18.6333 7.5 18.5 7.5H17.5C17.3667 7.5 17.25 7.55 17.15 7.65C17.05 7.75 17 7.86667 17 8V12C17 12.1333 17.05 12.25 17.15 12.35C17.25 12.45 17.3667 12.5 17.5 12.5C17.6333 12.5 17.75 12.45 17.85 12.35C17.95 12.25 18 12.1333 18 12V10.5ZM8 18C7.45 18 6.979 17.804 6.587 17.412C6.195 17.02 5.99934 16.5493 6 16V4C6 3.45 6.196 2.979 6.588 2.587C6.98 2.195 7.45067 1.99934 8 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H8ZM4 22C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V7C2 6.71667 2.096 6.479 2.288 6.287C2.48 6.095 2.71734 5.99934 3 6C3.28334 6 3.521 6.096 3.713 6.288C3.905 6.48 4.00067 6.71734 4 7V20H17C17.2833 20 17.521 20.096 17.713 20.288C17.905 20.48 18.0007 20.7173 18 21C18 21.2833 17.904 21.521 17.712 21.713C17.52 21.905 17.2827 22.0007 17 22H4Z",fill:"black"},null,-1)])])}const S3=oe(k3,[["render",E3]]),T3={},A3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N3(t,e){return a.openBlock(),a.createElementBlock("svg",A3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const D3=oe(T3,[["render",N3]]),B3={},L3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M3(t,e){return a.openBlock(),a.createElementBlock("svg",L3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const $3=oe(B3,[["render",M3]]),O3={},I3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R3(t,e){return a.openBlock(),a.createElementBlock("svg",I3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1)])])}const P3=oe(O3,[["render",R3]]),V3={},F3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z3(t,e){return a.openBlock(),a.createElementBlock("svg",F3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 13C5.71667 13 5.479 12.904 5.287 12.712C5.095 12.52 4.99934 12.2827 5 12C5 11.7167 5.096 11.479 5.288 11.287C5.48 11.095 5.71734 10.9993 6 11H18C18.2833 11 18.521 11.096 18.713 11.288C18.905 11.48 19.0007 11.7173 19 12C19 12.2833 18.904 12.521 18.712 12.713C18.52 12.905 18.2827 13.0007 18 13H6Z",fill:"black"},null,-1)])])}const q3=oe(V3,[["render",z3]]),j3={},U3={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H3(t,e){return a.openBlock(),a.createElementBlock("svg",U3,[...e[0]||(e[0]=[a.createStaticVNode('<g filter="url(#filter0_d_2030_169)"><path d="M19.9 20.3L14.3 14.7C13.8 15.1 13.225 15.4167 12.575 15.65C11.925 15.8833 11.2333 16 10.5 16C8.68333 16 7.146 15.3707 5.888 14.112C4.63 12.8533 4.00067 11.316 4 9.5C4 7.68333 4.62933 6.146 5.888 4.888C7.14667 3.63 8.684 3.00067 10.5 3C12.3167 3 13.854 3.62933 15.112 4.888C16.37 6.14667 16.9993 7.684 17 9.5C17 10.2333 16.8833 10.925 16.65 11.575C16.4167 12.225 16.1 12.8 15.7 13.3L21.325 18.925C21.5083 19.1083 21.6 19.3333 21.6 19.6C21.6 19.8667 21.5 20.1 21.3 20.3C21.1167 20.4833 20.8833 20.575 20.6 20.575C20.3167 20.575 20.0833 20.4833 19.9 20.3ZM10.5 14C11.75 14 12.8127 13.5623 13.688 12.687C14.5633 11.8117 15.0007 10.7493 15 9.5C15 8.25 14.5623 7.18733 13.687 6.312C12.8117 5.43667 11.7493 4.99933 10.5 5C9.25 5 8.18733 5.43767 7.312 6.313C6.43667 7.18833 5.99933 8.25067 6 9.5C6 10.75 6.43767 11.8127 7.313 12.688C8.18833 13.5633 9.25067 14.0007 10.5 14Z" fill="black"></path></g><defs><filter id="filter0_d_2030_169" x="-3" y="0" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2030_169"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2030_169" result="shape"></feBlend></filter></defs>',2)])])}const W3=oe(j3,[["render",H3]]),Z3={},G3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K3(t,e){return a.openBlock(),a.createElementBlock("svg",G3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",fill:"black"},null,-1)])])}const Y3=oe(Z3,[["render",K3]]),J3={},X3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q3(t,e){return a.openBlock(),a.createElementBlock("svg",X3,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M4.4 19.4251C4.06667 19.5584 3.75 19.5291 3.45 19.3371C3.15 19.1457 3 18.8667 3 18.5001V14.7751C3 14.5417 3.06667 14.3334 3.2 14.1501C3.33333 13.9667 3.51667 13.8501 3.75 13.8001L11 12.0001L3.75 10.2001C3.51667 10.1501 3.33333 10.0334 3.2 9.85006C3.06667 9.66672 3 9.45839 3 9.22506V5.50006C3 5.13339 3.15 4.85406 3.45 4.66206C3.75 4.47072 4.06667 4.44172 4.4 4.57506L19.8 11.0751C20.2167 11.2584 20.425 11.5667 20.425 12.0001C20.425 12.4334 20.2167 12.7417 19.8 12.9251L4.4 19.4251Z",fill:"black"},null,-1)])])}const ey=oe(J3,[["render",Q3]]),ty={},ny={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oy(t,e){return a.openBlock(),a.createElementBlock("svg",ny,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M9.24995 22L8.84995 18.8C8.63329 18.7167 8.42895 18.6167 8.23695 18.5C8.04495 18.3833 7.85762 18.2583 7.67495 18.125L4.69995 19.375L1.94995 14.625L4.52495 12.675C4.50828 12.5583 4.49995 12.4457 4.49995 12.337V11.663C4.49995 11.5543 4.50828 11.4417 4.52495 11.325L1.94995 9.375L4.69995 4.625L7.67495 5.875C7.85828 5.74167 8.04995 5.61667 8.24995 5.5C8.44995 5.38333 8.64995 5.28333 8.84995 5.2L9.24995 2H14.75L15.15 5.2C15.3666 5.28333 15.571 5.38333 15.763 5.5C15.955 5.61667 16.1423 5.74167 16.325 5.875L19.2999 4.625L22.0499 9.375L19.475 11.325C19.4916 11.4417 19.5 11.5543 19.5 11.663V12.337C19.5 12.4457 19.4833 12.5583 19.45 12.675L22.025 14.625L19.275 19.375L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.75 22H9.24995ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2373 8.84167 9.56195 9.525C8.88662 10.2083 8.54928 11.0333 8.54995 12C8.54995 12.9667 8.88728 13.7917 9.56195 14.475C10.2366 15.1583 11.066 15.5 12.05 15.5Z",fill:"black"},null,-1)])])}const ry=oe(ty,[["render",oy]]),ay={},iy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sy(t,e){return a.openBlock(),a.createElementBlock("svg",iy,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M15.85 12.425C16 12.325 16.075 12.1833 16.075 12C16.075 11.8167 16 11.675 15.85 11.575L10.275 8C10.1083 7.88334 9.93734 7.875 9.762 7.975C9.58667 8.075 9.49934 8.225 9.5 8.425V15.575C9.5 15.775 9.58767 15.925 9.763 16.025C9.93833 16.125 10.109 16.1167 10.275 16L15.85 12.425ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const ly=oe(ay,[["render",sy]]),cy={},dy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uy(t,e){return a.openBlock(),a.createElementBlock("svg",dy,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 18C10.3333 18 8.91667 17.4167 7.75 16.25C6.58333 15.0833 6 13.6667 6 12C6 10.3333 6.58333 8.91667 7.75 7.75C8.91667 6.58333 10.3333 6 12 6C13.6667 6 15.0833 6.58333 16.25 7.75C17.4167 8.91667 18 10.3333 18 12C18 13.6667 17.4167 15.0833 16.25 16.25C15.0833 17.4167 13.6667 18 12 18ZM12 16C13.1 16 14.0417 15.6083 14.825 14.825C15.6083 14.0417 16 13.1 16 12C16 10.9 15.6083 9.95833 14.825 9.175C14.0417 8.39167 13.1 8 12 8C10.9 8 9.95833 8.39167 9.175 9.175C8.39167 9.95833 8 10.9 8 12C8 13.1 8.39167 14.0417 9.175 14.825C9.95833 15.6083 10.9 16 12 16ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99933 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99933 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14Z",fill:"black"},null,-1)])])}const py=oe(cy,[["render",uy]]),fy={},my={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hy(t,e){return a.openBlock(),a.createElementBlock("svg",my,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10.925 15.125L9.525 13.725C9.425 13.625 9.31667 13.55 9.2 13.5C9.08334 13.45 8.96267 13.425 8.838 13.425C8.71267 13.425 8.58767 13.45 8.463 13.5C8.33834 13.55 8.22567 13.625 8.125 13.725C7.925 13.925 7.825 14.1627 7.825 14.438C7.825 14.7133 7.925 14.9507 8.125 15.15L10.25 17.3C10.35 17.4 10.4583 17.471 10.575 17.513C10.6917 17.555 10.8167 17.5757 10.95 17.575C11.0833 17.575 11.2083 17.554 11.325 17.512C11.4417 17.47 11.55 17.3993 11.65 17.3L15.875 13.075C16.075 12.875 16.175 12.6333 16.175 12.35C16.175 12.0667 16.075 11.825 15.875 11.625C15.675 11.425 15.4333 11.325 15.15 11.325C14.8667 11.325 14.625 11.425 14.425 11.625L10.925 15.125ZM6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V20C20 20.55 19.804 21.021 19.412 21.413C19.02 21.805 18.5493 22.0007 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.479 8.904 13.287 8.712C13.095 8.52 12.9993 8.28267 13 8Z",fill:"black"},null,-1)])])}const gy=oe(fy,[["render",hy]]),by={},yy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _y(t,e){return a.openBlock(),a.createElementBlock("svg",yy,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1)])])}const vy=oe(by,[["render",_y]]),Cy={},wy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ky(t,e){return a.openBlock(),a.createElementBlock("svg",wy,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M9 3V1H15V3H9ZM11 14H13V8H11V14ZM12 22C10.7667 22 9.604 21.7623 8.512 21.287C7.42 20.8117 6.466 20.166 5.65 19.35C4.83333 18.5333 4.18733 17.579 3.712 16.487C3.23667 15.395 2.99933 14.2327 3 13C3 11.7667 3.23767 10.604 3.713 9.512C4.18833 8.42 4.834 7.466 5.65 6.65C6.46667 5.83333 7.421 5.18733 8.513 4.712C9.605 4.23667 10.7673 3.99933 12 4C13.0333 4 14.025 4.16667 14.975 4.5C15.925 4.83333 16.8167 5.31667 17.65 5.95L19.05 4.55L20.45 5.95L19.05 7.35C19.6833 8.18333 20.1667 9.075 20.5 10.025C20.8333 10.975 21 11.9667 21 13C21 14.2333 20.7623 15.396 20.287 16.488C19.8117 17.58 19.166 18.534 18.35 19.35C17.5333 20.1667 16.579 20.8127 15.487 21.288C14.395 21.7633 13.2327 22.0007 12 22ZM12 20C13.9333 20 15.5833 19.3167 16.95 17.95C18.3167 16.5833 19 14.9333 19 13C19 11.0667 18.3167 9.41667 16.95 8.05C15.5833 6.68333 13.9333 6 12 6C10.0667 6 8.41667 6.68333 7.05 8.05C5.68333 9.41667 5 11.0667 5 13C5 14.9333 5.68333 16.5833 7.05 17.95C8.41667 19.3167 10.0667 20 12 20Z",fill:"black"},null,-1)])])}const xy=oe(Cy,[["render",ky]]),Ey={},Sy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ty(t,e){return a.openBlock(),a.createElementBlock("svg",Sy,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8 10H4C3.45 10 2.979 9.804 2.587 9.412C2.195 9.02 1.99934 8.54934 2 8V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H8C8.55 2 9.021 2.196 9.413 2.588C9.805 2.98 10.0007 3.45067 10 4V8C10 8.55 9.804 9.021 9.412 9.413C9.02 9.805 8.54934 10.0007 8 10ZM8 22H4C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V16C2 15.45 2.196 14.979 2.588 14.587C2.98 14.195 3.45067 13.9993 4 14H8C8.55 14 9.021 14.196 9.413 14.588C9.805 14.98 10.0007 15.4507 10 16V20C10 20.55 9.804 21.021 9.412 21.413C9.02 21.805 8.54934 22.0007 8 22ZM20 10H16C15.45 10 14.979 9.804 14.587 9.412C14.195 9.02 13.9993 8.54934 14 8V4C14 3.45 14.196 2.979 14.588 2.587C14.98 2.195 15.4507 1.99934 16 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V8C22 8.55 21.804 9.021 21.412 9.413C21.02 9.805 20.5493 10.0007 20 10ZM20 22H16C15.45 22 14.979 21.804 14.587 21.412C14.195 21.02 13.9993 20.5493 14 20V16C14 15.45 14.196 14.979 14.588 14.587C14.98 14.195 15.4507 13.9993 16 14H20C20.55 14 21.021 14.196 21.413 14.588C21.805 14.98 22.0007 15.4507 22 16V20C22 20.55 21.804 21.021 21.412 21.413C21.02 21.805 20.5493 22.0007 20 22Z",fill:"black"},null,-1)])])}const Ay=oe(Ey,[["render",Ty]]),Ny={},Dy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function By(t,e){return a.openBlock(),a.createElementBlock("svg",Dy,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8.5 16.5H10.5C10.7833 16.5 11.021 16.404 11.213 16.212C11.405 16.02 11.5007 15.7827 11.5 15.5V13.5C11.5 13.2167 11.404 12.979 11.212 12.787C11.02 12.595 10.7827 12.4993 10.5 12.5H8.5C8.21667 12.5 7.979 12.596 7.787 12.788C7.595 12.98 7.49934 13.2173 7.5 13.5V15.5C7.5 15.7833 7.596 16.021 7.788 16.213C7.98 16.405 8.21734 16.5007 8.5 16.5ZM8.5 11.5H10.5C10.7833 11.5 11.021 11.404 11.213 11.212C11.405 11.02 11.5007 10.7827 11.5 10.5V8.5C11.5 8.21667 11.404 7.979 11.212 7.787C11.02 7.595 10.7827 7.49934 10.5 7.5H8.5C8.21667 7.5 7.979 7.596 7.787 7.788C7.595 7.98 7.49934 8.21734 7.5 8.5V10.5C7.5 10.7833 7.596 11.021 7.788 11.213C7.98 11.405 8.21734 11.5007 8.5 11.5ZM13.5 16.5H15.5C15.7833 16.5 16.021 16.404 16.213 16.212C16.405 16.02 16.5007 15.7827 16.5 15.5V13.5C16.5 13.2167 16.404 12.979 16.212 12.787C16.02 12.595 15.7827 12.4993 15.5 12.5H13.5C13.2167 12.5 12.979 12.596 12.787 12.788C12.595 12.98 12.4993 13.2173 12.5 13.5V15.5C12.5 15.7833 12.596 16.021 12.788 16.213C12.98 16.405 13.2173 16.5007 13.5 16.5ZM13.5 11.5H15.5C15.7833 11.5 16.021 11.404 16.213 11.212C16.405 11.02 16.5007 10.7827 16.5 10.5V8.5C16.5 8.21667 16.404 7.979 16.212 7.787C16.02 7.595 15.7827 7.49934 15.5 7.5H13.5C13.2167 7.5 12.979 7.596 12.787 7.788C12.595 7.98 12.4993 8.21734 12.5 8.5V10.5C12.5 10.7833 12.596 11.021 12.788 11.213C12.98 11.405 13.2173 11.5007 13.5 11.5ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4Z",fill:"black"},null,-1)])])}const Ly=oe(Ny,[["render",By]]),My={},$y={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Oy(t,e){return a.openBlock(),a.createElementBlock("svg",$y,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const Iy=oe(My,[["render",Oy]]),Ry={},Py={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Vy(t,e){return a.openBlock(),a.createElementBlock("svg",Py,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1)])])}const Fy=oe(Ry,[["render",Vy]]),zy={},qy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jy(t,e){return a.openBlock(),a.createElementBlock("svg",qy,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M2.72505 21C2.34172 21 2.05838 20.8333 1.87505 20.5C1.69172 20.1667 1.69172 19.8333 1.87505 19.5L11.125 3.5C11.3084 3.16667 11.6 3 12 3C12.4 3 12.6917 3.16667 12.875 3.5L22.125 19.5C22.3084 19.8333 22.3084 20.1667 22.125 20.5C21.9417 20.8333 21.6584 21 21.275 21H2.72505ZM12 10C11.7167 10 11.4794 10.0957 11.288 10.287C11.096 10.479 11 10.7167 11 11V14C11 14.2833 11.096 14.5207 11.288 14.712C11.4794 14.904 11.7167 15 12 15C12.2834 15 12.521 14.904 12.713 14.712C12.9044 14.5207 13 14.2833 13 14V11C13 10.7167 12.9044 10.479 12.713 10.287C12.521 10.0957 12.2834 10 12 10ZM12 18C12.2834 18 12.521 17.904 12.713 17.712C12.9044 17.5207 13 17.2833 13 17C13 16.7167 12.9044 16.4793 12.713 16.288C12.521 16.096 12.2834 16 12 16C11.7167 16 11.4794 16.096 11.288 16.288C11.096 16.4793 11 16.7167 11 17C11 17.2833 11.096 17.5207 11.288 17.712C11.4794 17.904 11.7167 18 12 18Z",fill:"black"},null,-1)])])}const Uy=oe(zy,[["render",jy]]),Hy={},Wy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zy(t,e){return a.openBlock(),a.createElementBlock("svg",Wy,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M19.5 20C19.0833 20 18.729 19.854 18.437 19.562C18.145 19.27 17.9993 18.916 18 18.5V5.5C18 5.08334 18.146 4.729 18.438 4.437C18.73 4.145 19.084 3.99934 19.5 4C19.9167 4 20.271 4.146 20.563 4.438C20.855 4.73 21.0007 5.084 21 5.5V18.5C21 18.9167 20.854 19.271 20.562 19.563C20.27 19.855 19.916 20.0007 19.5 20ZM4.5 20C4.08334 20 3.729 19.854 3.437 19.562C3.145 19.27 2.99934 18.916 3 18.5V14.5C3 14.0833 3.146 13.729 3.438 13.437C3.73 13.145 4.084 12.9993 4.5 13C4.91667 13 5.271 13.146 5.563 13.438C5.855 13.73 6.00067 14.084 6 14.5V18.5C6 18.9167 5.854 19.271 5.562 19.563C5.27 19.855 4.916 20.0007 4.5 20ZM15.5 7C15.0833 7 14.729 6.854 14.437 6.562C14.145 6.27 13.9993 5.916 14 5.5C14 5.08334 14.146 4.729 14.438 4.437C14.73 4.145 15.084 3.99934 15.5 4C15.9167 4 16.271 4.146 16.563 4.438C16.855 4.73 17.0007 5.084 17 5.5C17 5.91667 16.854 6.271 16.562 6.563C16.27 6.855 15.916 7.00067 15.5 7ZM11.5 9C11.0833 9 10.729 8.854 10.437 8.562C10.145 8.27 9.99934 7.916 10 7.5V6.5C10 6.08334 10.146 5.729 10.438 5.437C10.73 5.145 11.084 4.99934 11.5 5C11.9167 5 12.271 5.146 12.563 5.438C12.855 5.73 13.0007 6.084 13 6.5V7.5C13 7.91667 12.854 8.271 12.562 8.563C12.27 8.855 11.916 9.00067 11.5 9ZM8.5 14C8.08334 14 7.729 13.854 7.437 13.562C7.145 13.27 6.99934 12.916 7 12.5V11.5C7 11.0833 7.146 10.729 7.438 10.437C7.73 10.145 8.084 9.99934 8.5 10C8.91667 10 9.271 10.146 9.563 10.438C9.855 10.73 10.0007 11.084 10 11.5V12.5C10 12.9167 9.854 13.271 9.562 13.563C9.27 13.855 8.916 14.0007 8.5 14Z",fill:"black"},null,-1)])])}const Gy=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:Wg,AccountCircle:Yg,AccountTreeOutlineRounded:e0,AccountTreeRounded:r0,Add:l0,AddBoxOutlineRounded:p0,ArchiveOutlineRounded:g0,ArrowBackRounded:v0,ArrowDropDownRounded:x0,ArrowForwardRounded:A0,AssignmentOutlineRounded:L0,AttachFileRounded:I0,CalendarTodayOutlineRounded:F0,CancelRounded:U0,ChatOutline:G0,CheckBoxOutlineBlank:X0,CheckBoxOutlineBlankSharp:n2,CheckBoxOutlineRounded:i2,CheckSmallRounded:d2,ChecklistRounded:m2,ChevronLeft:y2,ChevronRight:w2,CloseRounded:S2,ContactsOutlineRounded:D2,ContentCopyOutline:$2,DeleteOutlineRounded:P2,DragIndicator:q2,EditDocumentRounded:W2,EditOutline:Y2,ErrorOutlineRounded:eb,FilterListRounded:rb,FlagRounded:lb,FlowsheetOutlineRounded:pb,GifBox:gb,GroupsOutline:vb,HomeOutlineRounded:xb,ImageRounded:Ab,Info:Lb,KeyboardArrowDown:Ib,KeyboardArrowUp:Fb,Loading:Ub,Lock:Gb,LogoutRounded:Xb,Menu:n3,MoreHoriz:i3,MoreTimeRounded:d3,MoreVert:m3,MountainFlagOutlineRounded:y3,PersonAddOutlineRounded:w3,PictureAsPdfRounded:S3,RadioButtonChecked:D3,RadioButtonCheckedOutline:$3,RadioButtonUnchecked:P3,RemoveRounded:q3,SearchRounded:W3,SelectCheckBox:Y3,SendRounded:ey,Settings:ry,SlideshowRounded:ly,Target:py,TaskOutlineRounded:gy,TextSnippetRounded:vy,TimerOutline:xy,ViewComfyAltRounded:Ay,ViewCompactAltRounded:Ly,ViewTimelineRounded:Iy,WarningOutlineRounded:Fy,WarningRounded:Uy,WaterfallChartRounded:oe(Hy,[["render",Zy]])},Symbol.toStringTag,{value:"Module"})),Ky={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},mi={SM:"sm",MD:"md",LG:"lg",XL:"xl"},fl={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"};({...fl,...{WARNING:"warning",SUCCESS:"success",DANGER:"danger"}});const cu={ROUND:"round",ROUNDED:"rounded"},Yy={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},Ee=a.defineComponent({__name:"AoIcon",props:{name:{},size:{default:mi.MD}},setup(t){const e=t,n=a.computed(()=>Gy[e.name]);return(o,r)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),{class:a.normalizeClass(["ao-icon",`ao-icon--${t.size}`])},null,8,["class"]))}}),kD="",Jy=["type"],Xy={key:0,class:"ao-button__label"},he=a.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>Ky.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>mi.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>cu.ROUNDED}},setup(t){const e=t,n=a.computed(()=>e.size),o=a.computed(()=>e.isLoading?"Loading":e.iconName);return(r,i)=>(a.openBlock(),a.createElementBlock("button",{type:t.type,class:a.normalizeClass(["ao-button",`ao-button--${t.variant}`,t.color?`ao-button--${t.color}`:"",`ao-button--${t.corners}`,t.footer?"ao-button--footer":"",t.size?`ao-button--${t.size}`:"",t.iconName&&t.iconPosition?`ao-button--icon-${t.iconPosition}`:"",r.$attrs.disabled?"ao-button--is-disabled":""])},[a.renderSlot(r.$slots,"default",{},()=>[t.label?(a.openBlock(),a.createElementBlock("span",Xy,a.toDisplayString(t.label),1)):a.createCommentVNode("",!0)]),o.value?(a.openBlock(),a.createBlock(Ee,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):a.createCommentVNode("",!0)],10,Jy))}}),xD="";function Qy(t){const e=a.ref(!1),n=a.ref(""),o=a.computed(()=>"value"in t.value?"value":"innerHTML"),r=()=>{e.value=!e.value},i=c=>{e.value=c},s=c=>async()=>{i(!1),await a.nextTick(()=>{t.value[o.value]=n.value,c==null||c()})},l=c=>async d=>{const u=t.value[o.value];i(!1),await a.nextTick(()=>{c(u,d)})};return a.watch(e,async c=>{await a.nextTick(()=>{setTimeout(()=>{t.value&&c&&(t.value.focus(),n.value=t.value[o.value])},1)})}),{isEditing:e,setIsEditing:i,toggleIsEditing:r,onUpdate:l,onDiscard:s}}const ot=a.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(t,{emit:e}){const n=a.ref(null),o=t,r=e,{isEditing:i,setIsEditing:s,onUpdate:l,onDiscard:c}=Qy(n),d=a.computed(()=>i.value?"input":o.tag||`h${o.level}`),u=a.computed(()=>o.isEditable?i.value?{change:p,click:v=>v.stopPropagation(),blur:m}:{click:g,focus:g}:{}),p=l((v,_)=>{const b=_.target.value;r("update:title",b)}),f=c(),m=async()=>{i.value&&s(!1)},h=()=>{r("toggle-is-editing",!1)},g=v=>{v.stopPropagation(),i.value||s(!0)};return a.watch(()=>o.isEditable,v=>{v||f()}),(v,_)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(d.value),a.mergeProps({id:t.id,ref_key:"target",ref:n,class:["ao-title",`ao-title--${t.level}`,{[`ao-title--${t.color}`]:!!t.color,"ao-title--editable":t.isEditable,"ao-field__input ao-title--editing":a.unref(i),"ao-title--readonly":!a.unref(i)}],type:a.unref(i)?"text":null,value:a.unref(i)?t.title:null,tabindex:"0",onKeyup:a.withKeys(h,["enter"])},a.toHandlers(u.value),{onKeydown:a.withKeys(a.unref(f),["esc"])}),{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}}),ED="",e_={key:0,class:"ao-card-horiz__drag ao-card__drag"},t_={class:"ao-card-horiz__header"},n_={key:0,class:"ao-card-horiz__avatar"},o_={class:"ao-card-horiz__title-group"},r_={key:0,class:"ao-card-horiz__subtitle"},a_={key:1,class:"ao-card-horiz__header"},i_={key:1,class:"ao-card-horiz__body"},s_={key:2,class:"ao-card-horiz__footer"},l_={key:3,class:"ao-card-horiz__secondary"},du=a.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(t,{emit:e}){const n=e,o=r=>{n("update:title",r)};return(r,i)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.tagName),{class:a.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":t.isActive}])},{default:a.withCtx(()=>[t.isDraggable?(a.openBlock(),a.createElementBlock("div",e_,[a.createVNode(Ee,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):a.createCommentVNode("",!0),a.createElementVNode("div",t_,[t.icon?(a.openBlock(),a.createElementBlock("div",n_,[a.createVNode(Ee,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):a.createCommentVNode("",!0),a.createElementVNode("div",o_,[a.createVNode(ot,{id:t.id,class:"ao-card-horiz__title",level:4,title:t.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),a.renderSlot(r.$slots,"subtitle",{},()=>[t.subtitle?(a.openBlock(),a.createElementBlock("span",r_,a.toDisplayString(t.subtitle),1)):a.createCommentVNode("",!0)])]),r.$slots.header?(a.openBlock(),a.createElementBlock("div",a_,[a.renderSlot(r.$slots,"header")])):a.createCommentVNode("",!0)]),r.$slots.default?(a.openBlock(),a.createElementBlock("div",i_,[a.renderSlot(r.$slots,"default")])):a.createCommentVNode("",!0),r.$slots.footer?(a.openBlock(),a.createElementBlock("div",s_,[a.renderSlot(r.$slots,"footer")])):a.createCommentVNode("",!0),r.$slots.secondary?(a.openBlock(),a.createElementBlock("div",l_,[a.renderSlot(r.$slots,"secondary")])):a.createCommentVNode("",!0)]),_:3},8,["class"]))}}),SD="",Xr=a.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(t){const e=t,n=a.computed(()=>e.clickable?"button":"span"),o=a.computed(()=>n.value==="button"?{type:"button"}:{});return(r,i)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-tag",t.color?`ao-tag--${t.color}`:"",t.clickable?"ao-tag--clickable":"",t.closable?"ao-tag--closable":"",t.variant?`ao-tag--${t.variant}`:""]),style:a.normalizeStyle(t.rawColor?{"--ao-tag-bg":t.rawColor}:{})},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),a.mergeProps({class:"ao-tag__label"},o.value,{onClick:i[0]||(i[0]=s=>r.$emit("click",s))}),{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.label)+" ",1),t.variant===a.unref(Yy).SOLID_ICON&&t.iconName?(a.openBlock(),a.createBlock(Ee,{key:0,name:t.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):a.createCommentVNode("",!0)]),_:1},16)),t.closable?(a.openBlock(),a.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:i[1]||(i[1]=s=>r.$emit("close",s))},[a.createVNode(Ee,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):a.createCommentVNode("",!0)],6))}}),TD="",Qr={todo:"todo",done:"done",archived:"archived"},c_={months:"months",weeks:"weeks",days:"days"},d_={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},uu={BEFORE:"before",AFTER:"after"},pu={START:"start",end:"end"},fu={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},Le={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var mu=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(mu||{});const u_={add:"add",remove:"remove",moved:"moved"};var hu=(t=>(t.HOURS="hours",t.DAYS="days",t))(hu||{});const ko={project:"projectId",type:"typeId",assignee:"assigneeId"};function hi(t){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hi(t)}function Tn(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Fe(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function ct(t){Fe(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||hi(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function p_(t,e){Fe(2,arguments);var n=ct(t).getTime(),o=Tn(e);return new Date(n+o)}var f_={};function ea(){return f_}function ta(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function gu(t){Fe(1,arguments);var e=ct(t);return e.setHours(0,0,0,0),e}var m_=864e5;function h_(t,e){Fe(2,arguments);var n=gu(t),o=gu(e),r=n.getTime()-ta(n),i=o.getTime()-ta(o);return Math.round((r-i)/m_)}function g_(t,e){Fe(2,arguments);var n=ct(t),o=ct(e),r=n.getTime()-o.getTime();return r<0?-1:r>0?1:r}var bu=6e4,yu=36e5;function b_(t){return Fe(1,arguments),t instanceof Date||hi(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function _u(t){if(Fe(1,arguments),!b_(t)&&typeof t!="number")return!1;var e=ct(t);return!isNaN(Number(e))}function ml(t,e){Fe(2,arguments);var n=Tn(e);return p_(t,-n)}var y_=864e5;function __(t){Fe(1,arguments);var e=ct(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),r=n-o;return Math.floor(r/y_)+1}function gi(t){Fe(1,arguments);var e=1,n=ct(t),o=n.getUTCDay(),r=(o<e?7:0)+o-e;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function vu(t){Fe(1,arguments);var e=ct(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=gi(o),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=gi(i);return e.getTime()>=r.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function v_(t){Fe(1,arguments);var e=vu(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=gi(n);return o}var C_=6048e5;function w_(t){Fe(1,arguments);var e=ct(t),n=gi(e).getTime()-v_(e).getTime();return Math.round(n/C_)+1}function bi(t,e){var n,o,r,i,s,l,c,d;Fe(1,arguments);var u=ea(),p=Tn((n=(o=(r=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&o!==void 0?o:(c=u.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=ct(t),m=f.getUTCDay(),h=(m<p?7:0)+m-p;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function Cu(t,e){var n,o,r,i,s,l,c,d;Fe(1,arguments);var u=ct(t),p=u.getUTCFullYear(),f=ea(),m=Tn((n=(o=(r=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(p+1,0,m),h.setUTCHours(0,0,0,0);var g=bi(h,e),v=new Date(0);v.setUTCFullYear(p,0,m),v.setUTCHours(0,0,0,0);var _=bi(v,e);return u.getTime()>=g.getTime()?p+1:u.getTime()>=_.getTime()?p:p-1}function k_(t,e){var n,o,r,i,s,l,c,d;Fe(1,arguments);var u=ea(),p=Tn((n=(o=(r=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:u.firstWeekContainsDate)!==null&&o!==void 0?o:(c=u.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=Cu(t,e),m=new Date(0);m.setUTCFullYear(f,0,p),m.setUTCHours(0,0,0,0);var h=bi(m,e);return h}var x_=6048e5;function E_(t,e){Fe(1,arguments);var n=ct(t),o=bi(n,e).getTime()-k_(n,e).getTime();return Math.round(o/x_)+1}function Se(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var S_={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return Se(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Se(o+1,2)},d:function(e,n){return Se(e.getUTCDate(),n.length)},a:function(e,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h:function(e,n){return Se(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Se(e.getUTCHours(),n.length)},m:function(e,n){return Se(e.getUTCMinutes(),n.length)},s:function(e,n){return Se(e.getUTCSeconds(),n.length)},S:function(e,n){var o=n.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,o-3));return Se(i,n.length)}};const Kn=S_;var sr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},T_={G:function(e,n,o){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})}},y:function(e,n,o){if(n==="yo"){var r=e.getUTCFullYear(),i=r>0?r:1-r;return o.ordinalNumber(i,{unit:"year"})}return Kn.y(e,n)},Y:function(e,n,o,r){var i=Cu(e,r),s=i>0?i:1-i;if(n==="YY"){var l=s%100;return Se(l,2)}return n==="Yo"?o.ordinalNumber(s,{unit:"year"}):Se(s,n.length)},R:function(e,n){var o=vu(e);return Se(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Se(o,n.length)},Q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return Se(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return Se(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,o){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Kn.M(e,n);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,o){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return Se(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,o,r){var i=E_(e,r);return n==="wo"?o.ordinalNumber(i,{unit:"week"}):Se(i,n.length)},I:function(e,n,o){var r=w_(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):Se(r,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):Kn.d(e,n)},D:function(e,n,o){var r=__(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):Se(r,n.length)},E:function(e,n,o){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,o,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return Se(s,2);case"eo":return o.ordinalNumber(s,{unit:"day"});case"eee":return o.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(i,{width:"short",context:"formatting"});case"eeee":default:return o.day(i,{width:"wide",context:"formatting"})}},c:function(e,n,o,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return Se(s,n.length);case"co":return o.ordinalNumber(s,{unit:"day"});case"ccc":return o.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(i,{width:"narrow",context:"standalone"});case"cccccc":return o.day(i,{width:"short",context:"standalone"});case"cccc":default:return o.day(i,{width:"wide",context:"standalone"})}},i:function(e,n,o){var r=e.getUTCDay(),i=r===0?7:r;switch(n){case"i":return String(i);case"ii":return Se(i,n.length);case"io":return o.ordinalNumber(i,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,o){var r=e.getUTCHours(),i=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,n,o){var r=e.getUTCHours(),i;switch(r===12?i=sr.noon:r===0?i=sr.midnight:i=r/12>=1?"pm":"am",n){case"b":case"bb":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,n,o){var r=e.getUTCHours(),i;switch(r>=17?i=sr.evening:r>=12?i=sr.afternoon:r>=4?i=sr.morning:i=sr.night,n){case"B":case"BB":case"BBB":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,n,o){if(n==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return Kn.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Kn.H(e,n)},K:function(e,n,o){var r=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(r,{unit:"hour"}):Se(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):Se(r,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Kn.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Kn.s(e,n)},S:function(e,n){return Kn.S(e,n)},X:function(e,n,o,r){var i=r._originalDate||e,s=i.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return ku(s);case"XXXX":case"XX":return xo(s);case"XXXXX":case"XXX":default:return xo(s,":")}},x:function(e,n,o,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(n){case"x":return ku(s);case"xxxx":case"xx":return xo(s);case"xxxxx":case"xxx":default:return xo(s,":")}},O:function(e,n,o,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+wu(s,":");case"OOOO":default:return"GMT"+xo(s,":")}},z:function(e,n,o,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+wu(s,":");case"zzzz":default:return"GMT"+xo(s,":")}},t:function(e,n,o,r){var i=r._originalDate||e,s=Math.floor(i.getTime()/1e3);return Se(s,n.length)},T:function(e,n,o,r){var i=r._originalDate||e,s=i.getTime();return Se(s,n.length)}};function wu(t,e){var n=t>0?"-":"+",o=Math.abs(t),r=Math.floor(o/60),i=o%60;if(i===0)return n+String(r);var s=e||"";return n+String(r)+s+Se(i,2)}function ku(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Se(Math.abs(t)/60,2)}return xo(t,e)}function xo(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),i=Se(Math.floor(r/60),2),s=Se(r%60,2);return o+i+n+s}const A_=T_;var xu=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Eu=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},N_=function(e,n){var o=e.match(/(P+)(p+)?/)||[],r=o[1],i=o[2];if(!i)return xu(e,n);var s;switch(r){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",xu(r,n)).replace("{{time}}",Eu(i,n))},D_={p:Eu,P:N_};const B_=D_;var L_=["D","DD"],M_=["YY","YYYY"];function $_(t){return L_.indexOf(t)!==-1}function O_(t){return M_.indexOf(t)!==-1}function Su(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var I_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},R_=function(e,n,o){var r,i=I_[e];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};const P_=R_;function hl(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,o=t.formats[n]||t.formats[t.defaultWidth];return o}}var V_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},F_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},z_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},q_={date:hl({formats:V_,defaultWidth:"full"}),time:hl({formats:F_,defaultWidth:"full"}),dateTime:hl({formats:z_,defaultWidth:"full"})};const j_=q_;var U_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},H_=function(e,n,o,r){return U_[e]};const W_=H_;function na(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",r;if(o==="formatting"&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):i;r=t.formattingValues[s]||t.formattingValues[i]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[c]||t.values[l]}var d=t.argumentCallback?t.argumentCallback(e):e;return r[d]}}var Z_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},G_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},K_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Y_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},J_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},X_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Q_=function(e,n){var o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},ev={ordinalNumber:Q_,era:na({values:Z_,defaultWidth:"wide"}),quarter:na({values:G_,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:na({values:K_,defaultWidth:"wide"}),day:na({values:Y_,defaultWidth:"wide"}),dayPeriod:na({values:J_,defaultWidth:"wide",formattingValues:X_,defaultFormattingWidth:"wide"})};const tv=ev;function oa(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],i=e.match(r);if(!i)return null;var s=i[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?ov(l,function(p){return p.test(s)}):nv(l,function(p){return p.test(s)}),d;d=t.valueCallback?t.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;var u=e.slice(s.length);return{value:d,rest:u}}}function nv(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function ov(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function rv(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.match(t.matchPattern);if(!o)return null;var r=o[0],i=e.match(t.parsePattern);if(!i)return null;var s=t.valueCallback?t.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;var l=e.slice(r.length);return{value:s,rest:l}}}var av=/^(\d+)(th|st|nd|rd)?/i,iv=/\d+/i,sv={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lv={any:[/^b/i,/^(a|c)/i]},cv={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dv={any:[/1/i,/2/i,/3/i,/4/i]},uv={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pv={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},fv={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},mv={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},hv={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gv={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bv={ordinalNumber:rv({matchPattern:av,parsePattern:iv,valueCallback:function(e){return parseInt(e,10)}}),era:oa({matchPatterns:sv,defaultMatchWidth:"wide",parsePatterns:lv,defaultParseWidth:"any"}),quarter:oa({matchPatterns:cv,defaultMatchWidth:"wide",parsePatterns:dv,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:oa({matchPatterns:uv,defaultMatchWidth:"wide",parsePatterns:pv,defaultParseWidth:"any"}),day:oa({matchPatterns:fv,defaultMatchWidth:"wide",parsePatterns:mv,defaultParseWidth:"any"}),dayPeriod:oa({matchPatterns:hv,defaultMatchWidth:"any",parsePatterns:gv,defaultParseWidth:"any"})},yv={code:"en-US",formatDistance:P_,formatLong:j_,formatRelative:W_,localize:tv,match:bv,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Tu=yv;var _v=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cv=/^'([^]*?)'?$/,wv=/''/g,kv=/[a-zA-Z]/;function Au(t,e,n){var o,r,i,s,l,c,d,u,p,f,m,h,g,v,_,y,b,k;Fe(2,arguments);var w=String(e),C=ea(),x=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:C.locale)!==null&&o!==void 0?o:Tu,S=Tn((i=(s=(l=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(d=n.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&l!==void 0?l:C.firstWeekContainsDate)!==null&&s!==void 0?s:(p=C.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=Tn((m=(h=(g=(v=n==null?void 0:n.weekStartsOn)!==null&&v!==void 0?v:n==null||(_=n.locale)===null||_===void 0||(y=_.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&g!==void 0?g:C.weekStartsOn)!==null&&h!==void 0?h:(b=C.locale)===null||b===void 0||(k=b.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&m!==void 0?m:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var A=ct(t);if(!_u(A))throw new RangeError("Invalid time value");var z=ta(A),O=ml(A,z),B={firstWeekContainsDate:S,weekStartsOn:T,locale:x,_originalDate:A},L=w.match(vv).map(function(I){var P=I[0];if(P==="p"||P==="P"){var G=B_[P];return G(I,x.formatLong)}return I}).join("").match(_v).map(function(I){if(I==="''")return"'";var P=I[0];if(P==="'")return xv(I);var G=A_[P];if(G)return!(n!=null&&n.useAdditionalWeekYearTokens)&&O_(I)&&Su(I,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&$_(I)&&Su(I,e,String(t)),G(O,I,x.localize,B);if(P.match(kv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return I}).join("");return L}function xv(t){var e=t.match(Cv);return e?e[1].replace(wv,"'"):t}function Ev(t,e,n){var o,r,i,s,l,c,d,u,p,f;Fe(2,arguments);var m=ct(t),h=ct(e),g=ea(),v=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&o!==void 0?o:Tu,_=Tn((i=(s=(l=(c=n==null?void 0:n.weekStartsOn)!==null&&c!==void 0?c:n==null||(d=n.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&l!==void 0?l:g.weekStartsOn)!==null&&s!==void 0?s:(p=g.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&i!==void 0?i:0);if(!v.localize)throw new RangeError("locale must contain localize property");if(!v.formatLong)throw new RangeError("locale must contain formatLong property");if(!v.formatRelative)throw new RangeError("locale must contain formatRelative property");var y=h_(m,h);if(isNaN(y))throw new RangeError("Invalid time value");var b;y<-6?b="other":y<-1?b="lastWeek":y<0?b="yesterday":y<1?b="today":y<2?b="tomorrow":y<7?b="nextWeek":b="other";var k=ml(m,ta(m)),w=ml(h,ta(h)),C=v.formatRelative(b,k,w,{locale:v,weekStartsOn:_});return Au(m,C,{locale:v,weekStartsOn:_})}function ra(t,e){var n;Fe(1,arguments);var o=Tn((n=e==null?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(o!==2&&o!==1&&o!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var r=Nv(t),i;if(r.date){var s=Dv(r.date,o);i=Bv(s.restDateString,s.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var l=i.getTime(),c=0,d;if(r.time&&(c=Lv(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(d=Mv(r.timezone),isNaN(d))return new Date(NaN)}else{var u=new Date(l+c),p=new Date(0);return p.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),p.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),p}return new Date(l+c+d)}var yi={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Sv=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Tv=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Av=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Nv(t){var e={},n=t.split(yi.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],yi.timeZoneDelimiter.test(e.date)&&(e.date=t.split(yi.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var r=yi.timezone.exec(o);r?(e.time=o.replace(r[1],""),e.timezone=r[1]):e.time=o}return e}function Dv(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=t.match(n);if(!o)return{year:NaN,restDateString:""};var r=o[1]?parseInt(o[1]):null,i=o[2]?parseInt(o[2]):null;return{year:i===null?r:i*100,restDateString:t.slice((o[1]||o[2]).length)}}function Bv(t,e){if(e===null)return new Date(NaN);var n=t.match(Sv);if(!n)return new Date(NaN);var o=!!n[4],r=aa(n[1]),i=aa(n[2])-1,s=aa(n[3]),l=aa(n[4]),c=aa(n[5])-1;if(o)return Pv(e,l,c)?$v(e,l,c):new Date(NaN);var d=new Date(0);return!Iv(e,i,s)||!Rv(e,r)?new Date(NaN):(d.setUTCFullYear(e,i,Math.max(r,s)),d)}function aa(t){return t?parseInt(t):1}function Lv(t){var e=t.match(Tv);if(!e)return NaN;var n=gl(e[1]),o=gl(e[2]),r=gl(e[3]);return Vv(n,o,r)?n*yu+o*bu+r*1e3:NaN}function gl(t){return t&&parseFloat(t.replace(",","."))||0}function Mv(t){if(t==="Z")return 0;var e=t.match(Av);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return Fv(o,r)?n*(o*yu+r*bu):NaN}function $v(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var r=o.getUTCDay()||7,i=(e-1)*7+n+1-r;return o.setUTCDate(o.getUTCDate()+i),o}var Ov=[31,null,31,30,31,30,31,31,30,31,30,31];function Nu(t){return t%400===0||t%4===0&&t%100!==0}function Iv(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Ov[e]||(Nu(t)?29:28))}function Rv(t,e){return e>=1&&e<=(Nu(t)?366:365)}function Pv(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function Vv(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Fv(t,e){return e>=0&&e<=59}var mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function qv(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){if(this instanceof o){var r=[null];r.push.apply(r,arguments);var i=Function.bind.apply(e,r);return new i}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return t[o]}})}),n}var rt={},Du={},ia={},sa={},lr={},_i={};Object.defineProperty(_i,"__esModule",{value:!0}),_i.lexoHelper=void 0,_i.lexoHelper={arrayCopy:jv};function jv(t,e,n,o,r){let i=o;const s=e+r;for(let l=e;l<s;l++)n[i]=t[l],++i}var la={};Object.defineProperty(la,"__esModule",{value:!0});class Uv{constructor(e=""){this.str=e}get length(){return this.str.length}set length(e){this.str=this.str.substring(0,e)}append(e){return this.str=this.str+e,this}remove(e,n){return this.str=this.str.substr(0,e)+this.str.substr(e+n),this}insert(e,n){return this.str=this.str.substr(0,e)+n+this.str.substr(e),this}toString(){return this.str}}la.default=Uv,Object.defineProperty(lr,"__esModule",{value:!0}),lr.LexoInteger=void 0;const vi=_i,Hv=la;class ue{constructor(e,n,o){this.sys=e,this.sign=n,this.mag=o}static parse(e,n){let o=e,r=1;e.indexOf(n.getPositiveChar())===0?o=e.substring(1):e.indexOf(n.getNegativeChar())===0&&(o=e.substring(1),r=-1);const i=new Array(o.length);let s=i.length-1;for(let l=0;s>=0;++l)i[l]=n.toDigit(o.charAt(s)),--s;return ue.make(n,r,i)}static zero(e){return new ue(e,0,ue.ZERO_MAG)}static one(e){return ue.make(e,1,ue.ONE_MAG)}static make(e,n,o){let r;for(r=o.length;r>0&&o[r-1]===0;--r);if(r===0)return ue.zero(e);if(r===o.length)return new ue(e,n,o);const i=new Array(r).fill(0);return vi.lexoHelper.arrayCopy(o,0,i,0,r),new ue(e,n,i)}static add(e,n,o){const r=Math.max(n.length,o.length),i=new Array(r).fill(0);let s=0;for(let l=0;l<r;++l){const c=l<n.length?n[l]:0,d=l<o.length?o[l]:0;let u=c+d+s;for(s=0;u>=e.getBase();u-=e.getBase())++s;i[l]=u}return ue.extendWithCarry(i,s)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return vi.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const r=ue.complement(e,o,n.length),i=ue.add(e,n,r);return i[i.length-1]=0,ue.add(e,i,ue.ONE_MAG)}static multiply(e,n,o){const r=new Array(n.length+o.length).fill(0);for(let i=0;i<n.length;++i)for(let s=0;s<o.length;++s){const l=i+s;for(r[l]+=n[i]*o[s];r[l]>=e.getBase();r[l]-=e.getBase())++r[l+1]}return r}static complement(e,n,o){if(o<=0)throw new Error("Expected at least 1 digit");const r=new Array(o).fill(e.getBase()-1);for(let i=0;i<n.length;++i)r[i]=e.getBase()-1-n[i];return r}static compare(e,n){if(e.length<n.length)return-1;if(e.length>n.length)return 1;for(let o=e.length-1;o>=0;--o){if(e[o]<n[o])return-1;if(e[o]>n[o])return 1}return 0}add(e){if(this.checkSystem(e),this.isZero())return e;if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.subtract(e).negate()):(o=e.negate(),this.subtract(o))}const n=ue.add(this.sys,this.mag,e.mag);return ue.make(this.sys,this.sign,n)}subtract(e){if(this.checkSystem(e),this.isZero())return e.negate();if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.add(e).negate()):(o=e.negate(),this.add(o))}const n=ue.compare(this.mag,e.mag);return n===0?ue.zero(this.sys):n<0?ue.make(this.sys,this.sign===-1?1:-1,ue.subtract(this.sys,e.mag,this.mag)):ue.make(this.sys,this.sign===-1?-1:1,ue.subtract(this.sys,this.mag,e.mag))}multiply(e){if(this.checkSystem(e),this.isZero())return this;if(e.isZero())return e;if(this.isOneish())return this.sign===e.sign?ue.make(this.sys,1,e.mag):ue.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?ue.make(this.sys,1,this.mag):ue.make(this.sys,-1,this.mag);const n=ue.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?ue.make(this.sys,1,n):ue.make(this.sys,-1,n)}negate(){return this.isZero()?this:ue.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(e=1){if(e===0)return this;if(e<0)return this.shiftRight(Math.abs(e));const n=new Array(this.mag.length+e).fill(0);return vi.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),ue.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return ue.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return vi.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),ue.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return ue.make(this.sys,this.sign,ue.complement(this.sys,this.mag,e))}isZero(){return this.sign===0&&this.mag.length===1&&this.mag[0]===0}isOne(){return this.sign===1&&this.mag.length===1&&this.mag[0]===1}getMag(e){return this.mag[e]}compareTo(e){if(this===e)return 0;if(!e)return 1;if(this.sign===-1){if(e.sign===-1){const n=ue.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?ue.compare(this.mag,e.mag):1:e.sign===-1?1:e.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const e=new Hv.default,n=this.mag,o=n.length;for(let r=0;r<o;++r){const i=n[r];e.insert(0,this.sys.toChar(i))}return this.sign===-1&&e.insert(0,this.sys.getNegativeChar()),e.toString()}equals(e){return this===e?!0:e?this.sys.getBase()===e.sys.getBase()&&this.compareTo(e)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(e){if(this.sys.getBase()!==e.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}lr.LexoInteger=ue,ue.ZERO_MAG=[0],ue.ONE_MAG=[1],ue.NEGATIVE_SIGN=-1,ue.ZERO_SIGN=0,ue.POSITIVE_SIGN=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.LexoDecimal=void 0;const ca=lr,Wv=la;class Vt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Vt.make(ca.LexoInteger.make(e,1,[n]),1)}static parse(e,n){const o=e.indexOf(n.getRadixPointChar());if(e.lastIndexOf(n.getRadixPointChar())!==o)throw new Error("More than one "+n.getRadixPointChar());if(o<0)return Vt.make(ca.LexoInteger.parse(e,n),0);const r=e.substring(0,o)+e.substring(o+1);return Vt.make(ca.LexoInteger.parse(r,n),e.length-1-o)}static from(e){return Vt.make(e,0)}static make(e,n){if(e.isZero())return new Vt(e,0);let o=0;for(let s=0;s<n&&e.getMag(s)===0;++s)++o;const r=e.shiftRight(o),i=n-o;return new Vt(r,i)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,r=e.mag,i;for(i=e.sig;o<i;++o)n=n.shiftLeft();for(;o>i;)r=r.shiftLeft(),++i;return Vt.make(n.add(r),o)}subtract(e){let n=this.mag,o=this.sig,r=e.mag,i;for(i=e.sig;o<i;++o)n=n.shiftLeft();for(;o>i;)r=r.shiftLeft(),++i;return Vt.make(n.subtract(r),o)}multiply(e){return Vt.make(this.mag.multiply(e.mag),this.sig+e.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const e=this.floor();return e.add(ca.LexoInteger.one(e.getSystem()))}isExact(){if(this.sig===0)return!0;for(let e=0;e<this.sig;++e)if(this.mag.getMag(e)!==0)return!1;return!0}getScale(){return this.sig}setScale(e,n=!1){if(e>=this.sig)return this;e<0&&(e=0);const o=this.sig-e;let r=this.mag.shiftRight(o);return n&&(r=r.add(ca.LexoInteger.one(r.getSystem()))),Vt.make(r,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let n=this.mag,o=e.mag;return this.sig>e.sig?o=o.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(n=n.shiftLeft(e.sig-this.sig)),n.compareTo(o)}format(){const e=this.mag.format();if(this.sig===0)return e;const n=new Wv.default(e),o=n[0],r=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(r&&n.remove(0,1);n.length<this.sig+1;)n.insert(0,this.mag.getSystem().toChar(0));return n.insert(n.length-this.sig,this.mag.getSystem().getRadixPointChar()),n.length-this.sig===0&&n.insert(0,this.mag.getSystem().toChar(0)),r&&n.insert(0,o),n.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}sa.LexoDecimal=Vt;var Ci={},Bu;function Lu(){if(Bu)return Ci;Bu=1,Object.defineProperty(Ci,"__esModule",{value:!0});const t=lr,e=Ou();class n{constructor(r){this.value=t.LexoInteger.parse(r,e.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new n("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new n("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new n("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[n.BUCKET_0,n.BUCKET_1,n.BUCKET_2]),this._VALUES}static max(){return n.VALUES[n.VALUES.length-1]}static from(r){const i=t.LexoInteger.parse(r,e.LexoRank.NUMERAL_SYSTEM),s=n.VALUES,l=s.length;for(let c=0;c<l;++c){const d=s[c];if(d.value.equals(i))return d}throw new Error("Unknown bucket: "+r)}static resolve(r){const i=n.VALUES,s=i.length;for(let l=0;l<s;++l){const c=i[l];if(c.equals(n.from(r.toString())))return c}throw new Error("No bucket found with id "+r)}format(){return this.value.format()}next(){return this.equals(n.BUCKET_0)?n.BUCKET_1:this.equals(n.BUCKET_1)?n.BUCKET_2:this.equals(n.BUCKET_2)?n.BUCKET_0:n.BUCKET_2}prev(){return this.equals(n.BUCKET_0)?n.BUCKET_2:this.equals(n.BUCKET_1)?n.BUCKET_0:this.equals(n.BUCKET_2)?n.BUCKET_1:n.BUCKET_0}equals(r){return this===r?!0:r?this.value.equals(r.value):!1}}return Ci.default=n,Ci}var bl={},Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});var wi={};Object.defineProperty(wi,"__esModule",{value:!0}),wi.LexoNumeralSystem10=void 0;class Zv{getBase(){return 10}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return"."}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;throw new Error("Not valid digit: "+e)}toChar(e){return String.fromCharCode(e+48)}}wi.LexoNumeralSystem10=Zv;var ki={};Object.defineProperty(ki,"__esModule",{value:!0}),ki.LexoNumeralSystem36=void 0;class Gv{constructor(){this.DIGITS="0123456789abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 36}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+10;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}ki.LexoNumeralSystem36=Gv;var xi={};Object.defineProperty(xi,"__esModule",{value:!0}),xi.LexoNumeralSystem64=void 0;class Kv{constructor(){this.DIGITS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 64}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="A"&&e<="Z")return e.charCodeAt(0)-65+10;if(e==="^")return 36;if(e==="_")return 37;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+38;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}xi.LexoNumeralSystem64=Kv,function(t){var e=mt&&mt.__createBinding||(Object.create?function(o,r,i,s){s===void 0&&(s=i);var l=Object.getOwnPropertyDescriptor(r,i);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[i]}}),Object.defineProperty(o,s,l)}:function(o,r,i,s){s===void 0&&(s=i),o[s]=r[i]}),n=mt&&mt.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&e(r,o,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(Mu,t),n(wi,t),n(ki,t),n(xi,t)}(bl);var $u;function Ou(){if($u)return ia;$u=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.LexoRank=void 0;const t=sa,e=Lu(),n=la,o=bl;class r{constructor(s,l){this.value=s.format()+"|"+r.formatDecimal(l),this.bucket=s,this.decimal=l}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new o.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=t.LexoDecimal.parse("0",r.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=t.LexoDecimal.parse("1",r.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=t.LexoDecimal.parse("8",r.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=r.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=t.LexoDecimal.parse("1000000",r.NUMERAL_SYSTEM).subtract(r.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=r.between(r.MIN_DECIMAL,r.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=t.LexoDecimal.parse("100000",r.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=t.LexoDecimal.parse(r.NUMERAL_SYSTEM.toChar(r.NUMERAL_SYSTEM.getBase()-2)+"00000",r.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return r.from(e.default.BUCKET_0,r.MIN_DECIMAL)}static middle(){const s=r.min();return s.between(r.max(s.bucket))}static max(s=e.default.BUCKET_0){return r.from(s,r.MAX_DECIMAL)}static initial(s){return s===e.default.BUCKET_0?r.from(s,r.INITIAL_MIN_DECIMAL):r.from(s,r.INITIAL_MAX_DECIMAL)}static between(s,l){if(s.getSystem().getBase()!==l.getSystem().getBase())throw new Error("Expected same system");let c=s,d=l,u;if(s.getScale()<l.getScale()){if(u=l.setScale(s.getScale(),!1),s.compareTo(u)>=0)return r.mid(s,l);d=u}if(s.getScale()>d.getScale()){if(u=s.setScale(d.getScale(),!0),u.compareTo(d)>=0)return r.mid(s,l);c=u}let p;for(let h=c.getScale();h>0;d=p){const g=h-1,v=c.setScale(g,!0);if(p=d.setScale(g,!1),v.compareTo(p)===0)return r.checkMid(s,l,v);if(v.compareTo(p)>0)break;h=g,c=v}let f=r.middleInternal(s,l,c,d),m;for(let h=f.getScale();h>0;h=m){m=h-1;const g=f.setScale(m);if(s.compareTo(g)>=0||g.compareTo(l)>=0)break;f=g}return f}static parse(s){const l=s.split("|"),c=e.default.from(l[0]),d=t.LexoDecimal.parse(l[1],r.NUMERAL_SYSTEM);return new r(c,d)}static from(s,l){if(l.getSystem().getBase()!==r.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new r(s,l)}static middleInternal(s,l,c,d){const u=r.mid(c,d);return r.checkMid(s,l,u)}static checkMid(s,l,c){return s.compareTo(c)>=0||c.compareTo(l)>=0?r.mid(s,l):c}static mid(s,l){const d=s.add(l).multiply(t.LexoDecimal.half(s.getSystem())),u=s.getScale()>l.getScale()?s.getScale():l.getScale();if(d.getScale()>u){const p=d.setScale(u,!1);if(p.compareTo(s)>0)return p;const f=d.setScale(u,!0);if(f.compareTo(l)<0)return f}return d}static formatDecimal(s){const l=s.format(),c=new n.default(l);let d=l.indexOf(r.NUMERAL_SYSTEM.getRadixPointChar());const u=r.NUMERAL_SYSTEM.toChar(0);for(d<0&&(d=l.length,c.append(r.NUMERAL_SYSTEM.getRadixPointChar()));d<6;)c.insert(0,u),++d;for(;c[c.length-1]===u;)c.length=c.length-1;return c.toString()}genPrev(){if(this.isMax())return new r(this.bucket,r.INITIAL_MAX_DECIMAL);const s=this.decimal.floor();let c=t.LexoDecimal.from(s).subtract(r.EIGHT_DECIMAL);return c.compareTo(r.MIN_DECIMAL)<=0&&(c=r.between(r.MIN_DECIMAL,this.decimal)),new r(this.bucket,c)}genNext(){if(this.isMin())return new r(this.bucket,r.INITIAL_MIN_DECIMAL);const s=this.decimal.ceil();let c=t.LexoDecimal.from(s).add(r.EIGHT_DECIMAL);return c.compareTo(r.MAX_DECIMAL)>=0&&(c=r.between(this.decimal,r.MAX_DECIMAL)),new r(this.bucket,c)}between(s){if(!this.bucket.equals(s.bucket))throw new Error("Between works only within the same bucket");const l=this.decimal.compareTo(s.decimal);if(l>0)return new r(this.bucket,r.between(s.decimal,this.decimal));if(l===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+s+" this.decimal="+this.decimal+" other.decimal="+s.decimal);return new r(this.bucket,r.between(this.decimal,s.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return r.from(this.bucket.next(),this.decimal)}inPrevBucket(){return r.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(r.MIN_DECIMAL)}isMax(){return this.decimal.equals(r.MAX_DECIMAL)}format(){return this.value}equals(s){return this===s?!0:s?this.value===s.value:!1}toString(){return this.value}compareTo(s){return this===s?0:s?this.value.localeCompare(s.value):1}}return ia.LexoRank=r,ia}(function(t){var e=mt&&mt.__createBinding||(Object.create?function(o,r,i,s){s===void 0&&(s=i);var l=Object.getOwnPropertyDescriptor(r,i);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[i]}}),Object.defineProperty(o,s,l)}:function(o,r,i,s){s===void 0&&(s=i),o[s]=r[i]}),n=mt&&mt.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&e(r,o,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(Ou(),t),n(Lu(),t),n(sa,t),n(lr,t)})(Du),function(t){var e=mt&&mt.__createBinding||(Object.create?function(o,r,i,s){s===void 0&&(s=i);var l=Object.getOwnPropertyDescriptor(r,i);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[i]}}),Object.defineProperty(o,s,l)}:function(o,r,i,s){s===void 0&&(s=i),o[s]=r[i]}),n=mt&&mt.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&e(r,o,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(Du,t),n(bl,t)}(rt);const da=60,Iu=da*8;function Ei(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/Iu),r=Math.floor(t%Iu/da);if(o>0&&r>0)return`${o}d ${r}h`;if(o>0)return`${o}d`;{const i=t%da;return i>0?`${r}h ${i}m`:`${r}h`}}else{const o=Math.floor(t/da),r=t%da;return o>0&&r>0?`${o}h ${r}m`:o>0?`${o}h`:`${r}m`}}function Ru(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.activities)==null?void 0:o.length)??0)},0))??0}function Yv(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.milestones)==null?void 0:o.length)??0)},0))??0}function Jv(t){return(t==null?void 0:t.reduce((e,n)=>{var r;const o=(r=n.milestones)!=null&&r.length?Ru(n.milestones):0;return e+o},0))??0}function Xv(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function ua(t,e){if(t.moved)return cr(e,t.moved.newIndex)}function cr(t,e){if(e===0)if(t.length>1){const n=t[e+1];return rt.LexoRank.parse(n.rank).genPrev().format()}else return rt.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return rt.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return rt.LexoRank.parse(o.rank).between(rt.LexoRank.parse(n.rank)).format()}}function Si(t,e="dd/MM/yyyy"){if(!t)return"";const n=ra(t);return _u(n)?Au(n,e):""}function yl(t,e){return t.status.id===e.id}function Qv(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!yl(n,e))}function e5(t,e){return{...t,status:Qv(t,e)?Qr.done:Qr.todo}}const Pu=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function t5(t,e){const n=t.replace("#",""),o=parseInt(n.slice(0,2),16),r=parseInt(n.slice(2,4),16),i=parseInt(n.slice(4,6),16);return`rgba(${o}, ${r}, ${i}, ${e})`}function n5(t,e=.15){var n;if(t.startsWith("#"))return t5(t,e);if(t.startsWith("rgba")){const o=(n=t.match(/rgba?\(([^)]+)\)/))==null?void 0:n[1].split(",").map(r=>r.trim());if(o&&o.length>=3){const[r,i,s]=o;return`rgba(${r}, ${i}, ${s}, ${e})`}}return t}function Vu(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function Fu(t,e){const n=e.filter(r=>r.firstName||r.lastName).map(r=>({id:r.id,name:Vu(r)})),o=Array.from(t.matchAll(/@([\p{L}\p{M}0-9_-]+)/gu)).map(r=>r[1]);return Array.from(new Set(n.filter(r=>o.includes(r.name)).map(r=>r.id)))}const o5=["title"],r5={key:0,className:"ao-avatar__initials"},a5=["src"],An=a.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:mi.MD},color:{default:"primary"}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>[`ao-avatar--${n.color}`,...n.avatarUrl?["ao-avatar-img",`ao-avatar-img--${n.size}`]:["ao-avatar",`ao-avatar--${n.size}`]]),i=Xv(n.userName),s=l=>{o("close",l)};return(l,c)=>(a.openBlock(),a.createElementBlock("div",{role:"img",class:a.normalizeClass(r.value),title:t.userName},[t.avatarUrl?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",r5,a.toDisplayString(a.unref(i)),1)),t.avatarUrl?(a.openBlock(),a.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,a5)):a.createCommentVNode("",!0),t.isClosable?(a.openBlock(),a.createBlock(he,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:t.color,corners:"round",onClick:a.withModifiers(s,["stop"])},null,8,["color"])):a.createCommentVNode("",!0)],10,o5))}}),DD="",i5={class:"ao-card-template__subitems"},s5={class:"ao-card-template__subitem"},l5={class:"ao-card-template__subitem-number"},c5={class:"ao-card-template__subitem"},d5={class:"ao-card-template__subitem"},u5={class:"ao-card-template__body"},p5={class:"ao-card-template__col ao-card-template__col--phases"},f5={class:"ao-card-template__col-title"},m5={class:"ao-card-template__col-label"},h5={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},g5={class:"ao-card-template__footer"},b5={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},y5={class:"ao-card-template__col-title"},_5={class:"ao-card-template__col-label"},v5={class:"ao-card-template__col-body"},C5={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},w5={class:"ao-card-template__col-title"},k5={class:"ao-card-template__col-label"},x5={class:"ao-card-template__col-body"},E5={class:"ao-card-template-item__secondary"},_l=5,S5=a.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(t,{emit:e}){const n=t,o=e,r=c=>{o("updateTitle",c)},i=(c,d)=>{o("deleteItem",c,d)},s=a.computed(()=>{var c;return((c=n.phases)==null?void 0:c.slice(0,_l))??[]}),l=a.computed(()=>n.phases&&n.phases.length>_l?n.phases.length-_l:0);return(c,d)=>(a.openBlock(),a.createBlock(du,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":r},a.createSlots({subtitle:a.withCtx(()=>[a.createElementVNode("ul",i5,[a.createElementVNode("li",s5,[a.createVNode(Ee,{name:"MountainFlagOutlineRounded",size:"sm"}),a.createElementVNode("span",l5,a.toDisplayString(t.milestones),1)]),a.createElementVNode("li",c5,[a.createVNode(Ee,{name:"TaskOutlineRounded",size:"sm"}),a.createElementVNode("span",d5,a.toDisplayString(t.activities),1)])])]),default:a.withCtx(()=>[a.createElementVNode("div",u5,[a.createElementVNode("div",p5,[a.createElementVNode("div",f5,[a.createVNode(Ee,{name:"WaterfallChartRounded",size:"sm"}),a.createElementVNode("span",m5,a.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(a.openBlock(),a.createElementBlock("ul",h5,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,u=>(a.openBlock(),a.createBlock(Xr,{key:u.id,label:u.name||u.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(a.openBlock(),a.createBlock(Xr,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])])]),secondary:a.withCtx(()=>[a.createElementVNode("div",E5,[a.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:d[0]||(d[0]=a.withModifiers(u=>i(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:a.withCtx(()=>[a.createElementVNode("div",g5,[t.updatedAt?(a.openBlock(),a.createElementBlock("div",b5,[a.createElementVNode("div",y5,[a.createElementVNode("span",_5,a.toDisplayString(c.$t("template.updatedAt.label")),1)]),a.createElementVNode("div",v5,[a.createElementVNode("span",null,a.toDisplayString(t.updatedAt),1)])])):a.createCommentVNode("",!0),t.updatedBy?(a.openBlock(),a.createElementBlock("div",C5,[a.createElementVNode("div",w5,[a.createElementVNode("span",k5,a.toDisplayString(c.$t("template.updatedBy.label")),1)]),a.createElementVNode("div",x5,[a.createVNode(An,{"user-name":t.updatedBy},null,8,["user-name"])])])):a.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}}),BD="",T5={class:"ao-page-header"},A5={class:"ao-page-header-main"},N5={key:0,class:"ao-page-header-secondary"},pa=a.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("header",T5,[a.createElementVNode("div",A5,[t.canGoBack?(a.openBlock(),a.createBlock(he,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:n[0]||(n[0]=o=>e.$emit("goBack"))})):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(a.openBlock(),a.createElementBlock("div",N5,[a.renderSlot(e.$slots,"secondary")])):a.createCommentVNode("",!0)]))}}),LD="",D5=["type"],B5={key:0,class:"ao-button-card__label"},Yn=a.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>fl.BLACK},size:{default:()=>mi.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>cu.ROUNDED}},setup(t){const e=t,n=a.computed(()=>e.size),o=a.computed(()=>e.isLoading?"Loading":e.iconName);return(r,i)=>(a.openBlock(),a.createElementBlock("button",{type:t.type,class:a.normalizeClass(["ao-button-card",`ao-button-card--${t.color}`,`ao-button-card--${t.corners}`,r.$attrs.disabled?"ao-button-card--is-disabled":""])},[a.renderSlot(r.$slots,"default",{},()=>[t.label?(a.openBlock(),a.createElementBlock("span",B5,a.toDisplayString(t.label),1)):a.createCommentVNode("",!0)]),o.value?(a.openBlock(),a.createBlock(Ee,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):a.createCommentVNode("",!0)],10,D5))}}),MD="",L5={class:"ao-card-template-item__footer"},M5={key:0,class:"ao-card-template-item__subitem"},$5={class:"ao-card-template-item__subitem-number"},O5={class:"ao-card-template-item__secondary"},vl=a.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(t,{emit:e}){const n=e,o=l=>{n("update:title",l)},r=["milestones","activities","rules","tasks"],i={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},s=()=>{n("remove")};return(l,c)=>(a.openBlock(),a.createBlock(du,{"onUpdate:title":o},{footer:a.withCtx(()=>[a.createElementVNode("ul",L5,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(r,d=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:d},[l.$props[d]?(a.openBlock(),a.createElementBlock("li",M5,[a.createVNode(Ee,{name:i[d],size:"sm"},null,8,["name"]),a.createElementVNode("span",$5,a.toDisplayString(l.$props[d]),1)])):a.createCommentVNode("",!0)],64))),64))])]),secondary:a.withCtx(()=>[a.createElementVNode("div",O5,[a.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:a.withModifiers(s,["stop"])})])]),_:1}))}}),$D="",I5=a.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(t){const e=t,n=a.computed(()=>{var r;return(r=e.milestones)==null?void 0:r.length}),o=a.computed(()=>e.milestones?Ru(e.milestones):0);return(r,i)=>(a.openBlock(),a.createBlock(vl,a.mergeProps({id:t.id,title:t.name,activities:o.value,milestones:n.value},r.$attrs),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),R5=a.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(t){const e=t,n=a.computed(()=>{var o;return((o=e.activities)==null?void 0:o.length)||0});return(o,r)=>(a.openBlock(),a.createBlock(vl,{activities:n.value},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),P5={class:"ao-list__footer"},V5=a.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addMilestone",{phaseId:n.phase.id})},i=c=>{o("removeMilestone",{phaseId:n.phase.id,id:c})},s=c=>{o("updateMilestone",c)},l=c=>{if(c.moved){const d=ua(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:d})}};return(c,d)=>t.phase?(a.openBlock(),a.createBlock(a.unref(Gn),{key:0,"model-value":t.phase.milestones,class:"ao-templates__list",title:c.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:l},{header:a.withCtx(()=>[a.createVNode(ot,{title:"Milestones",level:3,class:"ao-list__title"})]),item:a.withCtx(({element:u})=>[(a.openBlock(),a.createBlock(R5,{id:u.id,key:u.id,title:u.name,activities:u.activities,"is-active":t.milestoneId===u.id,"is-draggable":!0,"onUpdate:title":p=>s({id:u.id,name:p}),onClick:p=>c.$router.push({params:{milestoneId:u.id}}),onRemove:()=>i(u.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:a.withCtx(()=>[a.createElementVNode("div",P5,[a.createVNode(Yn,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):a.createCommentVNode("",!0)}}),F5=a.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(t){const e=t,n=a.computed(()=>{var o;return((o=e.tasks)==null?void 0:o.length)||0});return(o,r)=>(a.openBlock(),a.createBlock(vl,{tasks:n.value},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),z5={class:"ao-list__footer"},q5=a.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addActivity",{milestoneId:n.milestone.id})},i=c=>{o("updateActivity",{...c})},s=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const d=ua(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:d})}};return(c,d)=>t.milestone?(a.openBlock(),a.createBlock(a.unref(Gn),{key:0,"model-value":t.milestone.activities,title:c.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:l},{header:a.withCtx(()=>[a.createVNode(ot,{title:"Activities",level:3,class:"ao-list__title"})]),item:a.withCtx(({element:u})=>[(a.openBlock(),a.createBlock(F5,{id:u.id,key:u.id,title:u.name,tasks:u.tasks,"is-active":t.activityId===u.id,"is-draggable":!0,"onUpdate:title":p=>i({id:u.id,name:p}),onClick:p=>c.$router.push({params:{activityId:u.id}}),onRemove:()=>s(u.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:a.withCtx(()=>[a.createElementVNode("div",z5,[a.createVNode(Yn,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):a.createCommentVNode("",!0)}}),j5={class:"ao-modal"},U5={key:0,class:"ao-modal__header"},H5={class:"ao-modal__header-meta"},W5={class:"ao-modal__title-group"},Z5={class:"ao-modal__body"},G5={key:1,class:"ao-modal__footer"},Ti=a.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[a.createElementVNode("div",{class:"ao-modal__backdrop",onClick:n[0]||(n[0]=o=>e.$emit("close"))}),a.createElementVNode("div",j5,[e.$slots.header?(a.openBlock(),a.createElementBlock("div",U5,[a.createElementVNode("div",H5,[a.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),a.createElementVNode("header",W5,[a.renderSlot(e.$slots,"header")])])):a.createCommentVNode("",!0),a.createElementVNode("div",Z5,[a.renderSlot(e.$slots,"default")]),e.$slots.footer?(a.openBlock(),a.createElementBlock("footer",G5,[a.renderSlot(e.$slots,"footer")])):a.createCommentVNode("",!0)])],2))}}),OD="",fa=Math.min,Ft=Math.max,Ai=Math.round,Ni=Math.floor,Jn=t=>({x:t,y:t}),K5={left:"right",right:"left",bottom:"top",top:"bottom"},Y5={start:"end",end:"start"};function Cl(t,e){return typeof t=="function"?t(e):t}function dr(t){return t.split("-")[0]}function Di(t){return t.split("-")[1]}function J5(t){return t==="x"?"y":"x"}function zu(t){return t==="y"?"height":"width"}function wl(t){return["top","bottom"].includes(dr(t))?"y":"x"}function qu(t){return J5(wl(t))}function X5(t,e,n){n===void 0&&(n=!1);const o=Di(t),r=qu(t),i=zu(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Bi(s)),[s,Bi(s)]}function Q5(t){const e=Bi(t);return[kl(t),e,kl(e)]}function kl(t){return t.replace(/start|end/g,e=>Y5[e])}function e7(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}function t7(t,e,n,o){const r=Di(t);let i=e7(dr(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(kl)))),i}function Bi(t){return t.replace(/left|right|bottom|top/g,e=>K5[e])}function n7(t){return{top:0,right:0,bottom:0,left:0,...t}}function o7(t){return typeof t!="number"?n7(t):{top:t,right:t,bottom:t,left:t}}function Li(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ju(t,e,n){let{reference:o,floating:r}=t;const i=wl(e),s=qu(e),l=zu(s),c=dr(e),d=i==="y",u=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,f=o[l]/2-r[l]/2;let m;switch(c){case"top":m={x:u,y:o.y-r.height};break;case"bottom":m={x:u,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:p};break;case"left":m={x:o.x-r.width,y:p};break;default:m={x:o.x,y:o.y}}switch(Di(e)){case"start":m[s]-=f*(n&&d?-1:1);break;case"end":m[s]+=f*(n&&d?-1:1);break}return m}const r7=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let d=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:p}=ju(d,o,c),f=o,m={},h=0;for(let g=0;g<l.length;g++){const{name:v,fn:_}=l[g],{x:y,y:b,data:k,reset:w}=await _({x:u,y:p,initialPlacement:o,placement:f,strategy:r,middlewareData:m,rects:d,platform:s,elements:{reference:t,floating:e}});if(u=y??u,p=b??p,m={...m,[v]:{...m[v],...k}},w&&h<=50){h++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(d=w.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):w.rects),{x:u,y:p}=ju(d,f,c)),g=-1;continue}}return{x:u,y:p,placement:f,strategy:r,middlewareData:m}};async function Uu(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:m=0}=Cl(e,t),h=o7(m),v=l[f?p==="floating"?"reference":"floating":p],_=Li(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),y=p==="floating"?{...s.floating,x:o,y:r}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),k=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},w=Li(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:b,strategy:c}):y);return{top:(_.top-w.top+h.top)/k.y,bottom:(w.bottom-_.bottom+h.bottom)/k.y,left:(_.left-w.left+h.left)/k.x,right:(w.right-_.right+h.right)/k.x}}const a7=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:d}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...v}=Cl(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const _=dr(r),y=dr(l)===l,b=await(c.isRTL==null?void 0:c.isRTL(d.floating)),k=f||(y||!g?[Bi(l)]:Q5(l));!f&&h!=="none"&&k.push(...t7(l,g,h,b));const w=[l,...k],C=await Uu(e,v),x=[];let S=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&x.push(C[_]),p){const O=X5(r,s,b);x.push(C[O[0]],C[O[1]])}if(S=[...S,{placement:r,overflows:x}],!x.every(O=>O<=0)){var T,A;const O=(((T=i.flip)==null?void 0:T.index)||0)+1,B=w[O];if(B)return{data:{index:O,overflows:S},reset:{placement:B}};let L=(A=S.filter(I=>I.overflows[0]<=0).sort((I,P)=>I.overflows[1]-P.overflows[1])[0])==null?void 0:A.placement;if(!L)switch(m){case"bestFit":{var z;const I=(z=S.map(P=>[P.placement,P.overflows.filter(G=>G>0).reduce((G,R)=>G+R,0)]).sort((P,G)=>P[1]-G[1])[0])==null?void 0:z[0];I&&(L=I);break}case"initialPlacement":L=l;break}if(r!==L)return{reset:{placement:L}}}return{}}}},i7=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:i}=e,{apply:s=()=>{},...l}=Cl(t,e),c=await Uu(e,l),d=dr(n),u=Di(n),p=wl(n)==="y",{width:f,height:m}=o.floating;let h,g;d==="top"||d==="bottom"?(h=d,g=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(g=d,h=u==="end"?"top":"bottom");const v=m-c[h],_=f-c[g],y=!e.middlewareData.shift;let b=v,k=_;if(p){const C=f-c.left-c.right;k=u||y?fa(_,C):C}else{const C=m-c.top-c.bottom;b=u||y?fa(v,C):C}if(y&&!u){const C=Ft(c.left,0),x=Ft(c.right,0),S=Ft(c.top,0),T=Ft(c.bottom,0);p?k=f-2*(C!==0||x!==0?C+x:Ft(c.left,c.right)):b=m-2*(S!==0||T!==0?S+T:Ft(c.top,c.bottom))}await s({...e,availableWidth:k,availableHeight:b});const w=await r.getDimensions(i.floating);return f!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function Xn(t){return Hu(t)?(t.nodeName||"").toLowerCase():"#document"}function kt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Nn(t){var e;return(e=(Hu(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Hu(t){return t instanceof Node||t instanceof kt(t).Node}function Dn(t){return t instanceof Element||t instanceof kt(t).Element}function un(t){return t instanceof HTMLElement||t instanceof kt(t).HTMLElement}function Wu(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof kt(t).ShadowRoot}function ma(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=zt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function s7(t){return["table","td","th"].includes(Xn(t))}function xl(t){const e=El(),n=zt(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function l7(t){let e=ur(t);for(;un(e)&&!Mi(e);){if(xl(e))return e;e=ur(e)}return null}function El(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mi(t){return["html","body","#document"].includes(Xn(t))}function zt(t){return kt(t).getComputedStyle(t)}function $i(t){return Dn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ur(t){if(Xn(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wu(t)&&t.host||Nn(t);return Wu(e)?e.host:e}function Zu(t){const e=ur(t);return Mi(e)?t.ownerDocument?t.ownerDocument.body:t.body:un(e)&&ma(e)?e:Zu(e)}function ha(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Zu(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=kt(r);return i?e.concat(s,s.visualViewport||[],ma(r)?r:[],s.frameElement&&n?ha(s.frameElement):[]):e.concat(r,ha(r))}function Gu(t){const e=zt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=un(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,l=Ai(n)!==i||Ai(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function Sl(t){return Dn(t)?t:t.contextElement}function pr(t){const e=Sl(t);if(!un(e))return Jn(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Gu(e);let s=(i?Ai(n.width):n.width)/o,l=(i?Ai(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const c7=Jn(0);function Ku(t){const e=kt(t);return!El()||!e.visualViewport?c7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function d7(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==kt(t)?!1:e}function Eo(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Sl(t);let s=Jn(1);e&&(o?Dn(o)&&(s=pr(o)):s=pr(t));const l=d7(i,n,o)?Ku(i):Jn(0);let c=(r.left+l.x)/s.x,d=(r.top+l.y)/s.y,u=r.width/s.x,p=r.height/s.y;if(i){const f=kt(i),m=o&&Dn(o)?kt(o):o;let h=f.frameElement;for(;h&&o&&m!==f;){const g=pr(h),v=h.getBoundingClientRect(),_=zt(h),y=v.left+(h.clientLeft+parseFloat(_.paddingLeft))*g.x,b=v.top+(h.clientTop+parseFloat(_.paddingTop))*g.y;c*=g.x,d*=g.y,u*=g.x,p*=g.y,c+=y,d+=b,h=kt(h).frameElement}}return Li({width:u,height:p,x:c,y:d})}function u7(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=un(n),i=Nn(n);if(n===i)return e;let s={scrollLeft:0,scrollTop:0},l=Jn(1);const c=Jn(0);if((r||!r&&o!=="fixed")&&((Xn(n)!=="body"||ma(i))&&(s=$i(n)),un(n))){const d=Eo(n);l=pr(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+c.x,y:e.y*l.y-s.scrollTop*l.y+c.y}}function p7(t){return Array.from(t.getClientRects())}function Yu(t){return Eo(Nn(t)).left+$i(t).scrollLeft}function f7(t){const e=Nn(t),n=$i(t),o=t.ownerDocument.body,r=Ft(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Ft(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Yu(t);const l=-n.scrollTop;return zt(o).direction==="rtl"&&(s+=Ft(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function m7(t,e){const n=kt(t),o=Nn(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const d=El();(!d||d&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function h7(t,e){const n=Eo(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=un(t)?pr(t):Jn(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=r*i.x,d=o*i.y;return{width:s,height:l,x:c,y:d}}function Ju(t,e,n){let o;if(e==="viewport")o=m7(t,n);else if(e==="document")o=f7(Nn(t));else if(Dn(e))o=h7(e,n);else{const r=Ku(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return Li(o)}function Xu(t,e){const n=ur(t);return n===e||!Dn(n)||Mi(n)?!1:zt(n).position==="fixed"||Xu(n,e)}function g7(t,e){const n=e.get(t);if(n)return n;let o=ha(t,[],!1).filter(l=>Dn(l)&&Xn(l)!=="body"),r=null;const i=zt(t).position==="fixed";let s=i?ur(t):t;for(;Dn(s)&&!Mi(s);){const l=zt(s),c=xl(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ma(s)&&!c&&Xu(t,s))?o=o.filter(u=>u!==s):r=l,s=ur(s)}return e.set(t,o),o}function b7(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?g7(e,this._c):[].concat(n),o],l=s[0],c=s.reduce((d,u)=>{const p=Ju(e,u,r);return d.top=Ft(p.top,d.top),d.right=fa(p.right,d.right),d.bottom=fa(p.bottom,d.bottom),d.left=Ft(p.left,d.left),d},Ju(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function y7(t){return Gu(t)}function _7(t,e,n){const o=un(e),r=Nn(e),i=n==="fixed",s=Eo(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Jn(0);if(o||!o&&!i)if((Xn(e)!=="body"||ma(r))&&(l=$i(e)),o){const d=Eo(e,!0,i,e);c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}else r&&(c.x=Yu(r));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Qu(t,e){return!un(t)||zt(t).position==="fixed"?null:e?e(t):t.offsetParent}function ep(t,e){const n=kt(t);if(!un(t))return n;let o=Qu(t,e);for(;o&&s7(o)&&zt(o).position==="static";)o=Qu(o,e);return o&&(Xn(o)==="html"||Xn(o)==="body"&&zt(o).position==="static"&&!xl(o))?n:o||l7(t)||n}const v7=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||ep,i=this.getDimensions;return{reference:_7(e,await r(n),o),floating:{x:0,y:0,...await i(n)}}};function C7(t){return zt(t).direction==="rtl"}const w7={convertOffsetParentRelativeRectToViewportRelativeRect:u7,getDocumentElement:Nn,getClippingRect:b7,getOffsetParent:ep,getElementRects:v7,getClientRects:p7,getDimensions:y7,getScale:pr,isElement:Dn,isRTL:C7};function k7(t,e){let n=null,o;const r=Nn(t);function i(){clearTimeout(o),n&&n.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:d,top:u,width:p,height:f}=t.getBoundingClientRect();if(l||e(),!p||!f)return;const m=Ni(u),h=Ni(r.clientWidth-(d+p)),g=Ni(r.clientHeight-(u+f)),v=Ni(d),y={rootMargin:-m+"px "+-h+"px "+-g+"px "+-v+"px",threshold:Ft(0,fa(1,c))||1};let b=!0;function k(w){const C=w[0].intersectionRatio;if(C!==c){if(!b)return s();C?s(!1,C):o=setTimeout(()=>{s(!1,1e-7)},100)}b=!1}try{n=new IntersectionObserver(k,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(k,y)}n.observe(t)}return s(!0),i}function x7(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,d=Sl(t),u=r||i?[...d?ha(d):[],...ha(e)]:[];u.forEach(_=>{r&&_.addEventListener("scroll",n,{passive:!0}),i&&_.addEventListener("resize",n)});const p=d&&l?k7(d,n):null;let f=-1,m=null;s&&(m=new ResizeObserver(_=>{let[y]=_;y&&y.target===d&&m&&(m.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{m&&m.observe(e)})),n()}),d&&!c&&m.observe(d),m.observe(e));let h,g=c?Eo(t):null;c&&v();function v(){const _=Eo(t);g&&(_.x!==g.x||_.y!==g.y||_.width!==g.width||_.height!==g.height)&&n(),g=_,h=requestAnimationFrame(v)}return n(),()=>{u.forEach(_=>{r&&_.removeEventListener("scroll",n),i&&_.removeEventListener("resize",n)}),p&&p(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const E7=(t,e,n)=>{const o=new Map,r={platform:w7,...n},i={...r.platform,_c:o};return r7(t,e,{...r,platform:i})},S7=t=>{const e=a.ref(!1),n=a.ref(),o=a.ref(),r=a.ref(0);function i(){const p=a.unref(t.appendTo);return p?typeof p=="string"?document.getElementById(p)??document.body:p:document.getElementById("floatingElements")??document.body}const s=i(),l=a.ref(()=>{});function c(p){p.relatedTarget&&o.value&&o.value.contains(p.relatedTarget)||t.multiselect.value.deactivate()}function d(){const p=t.multiselect.value.$el,f=p.querySelector(".multiselect-dropdown");if(!f||!p||e.value===!0)return;o.value=f,n.value=p,getComputedStyle(f).getPropertyValue("display")==="none"&&(f.style.display="flex"),r.value=f.offsetHeight,f.style.removeProperty("display"),Object.assign(f.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),s.appendChild(f),t.multiselect.value.handleFocusOut=c;const h=x7(n.value,o.value,u);l.value=()=>{o.value&&s.contains(o.value)&&s.removeChild(o.value),h()}}function u(){!o.value||!n.value||E7(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[a7({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),i7({apply({availableWidth:p,availableHeight:f,elements:m,rects:h}){Object.assign(m.floating.style,{minHeight:`${r.value}px`,width:`${h.reference.width}px`,maxWidth:`${p}px`,maxHeight:`${f}px`})}})]}).then(({x:p,y:f})=>{Object.assign(o.value.style,{left:`${p}px`,top:`${f}px`})})}a.onMounted(()=>{d()}),a.onBeforeUnmount(()=>{l.value()}),a.onUnmounted(()=>{l.value()})};function pn(t){return[null,void 0].indexOf(t)!==-1}function T7(t,e,n){const{object:o,valueProp:r,mode:i}=a.toRefs(t),s=a.getCurrentInstance().proxy,l=n.iv,c=(p,f=!0)=>{l.value=u(p);const m=d(p);e.emit("change",m,s),f&&(e.emit("input",m),e.emit("update:modelValue",m))},d=p=>o.value||pn(p)?p:Array.isArray(p)?p.map(f=>f[r.value]):p[r.value],u=p=>pn(p)?i.value==="single"?{}:[]:p;return{update:c}}function A7(t,e){const{value:n,modelValue:o,mode:r,valueProp:i}=a.toRefs(t),s=a.ref(r.value!=="single"?[]:{}),l=a.computed(()=>o&&o.value!==void 0?o.value:n.value),c=a.computed(()=>r.value==="single"?s.value[i.value]:s.value.map(u=>u[i.value])),d=a.computed(()=>r.value!=="single"?s.value.map(u=>u[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:d,plainValue:c}}function N7(t,e,n){const{regex:o}=a.toRefs(t),r=a.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=a.ref(null),c=()=>{l.value=""},d=f=>{l.value=f.target.value},u=f=>{if(o&&o.value){let m=o.value;typeof m=="string"&&(m=new RegExp(m)),f.key.match(m)||f.preventDefault()}},p=f=>{if(o&&o.value){let h=(f.clipboardData||window.clipboardData).getData("Text"),g=o.value;typeof g=="string"&&(g=new RegExp(g)),h.split("").every(v=>!!v.match(g))||f.preventDefault()}e.emit("paste",f,r)};return a.watch(l,f=>{!i.value&&f&&s(),e.emit("search-change",f,r)}),{search:l,clearSearch:c,handleSearchInput:d,handleKeypress:u,handlePaste:p}}function D7(t,e,n){const{groupSelect:o,mode:r,groups:i,disabledProp:s}=a.toRefs(t),l=a.ref(null),c=u=>{u===void 0||u!==null&&u[s.value]||i.value&&u&&u.group&&(r.value==="single"||!o.value)||(l.value=u)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function Tl(t,e=!0){return e?String(t).toLowerCase().trim():String(t).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function B7(t){return Object.prototype.toString.call(t)==="[object Object]"}function L7(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function M7(t,e,n){const{options:o,mode:r,trackBy:i,limit:s,hideSelected:l,createTag:c,createOption:d,label:u,appendNewTag:p,appendNewOption:f,multipleLabel:m,object:h,loading:g,delay:v,resolveOnLoad:_,minChars:y,filterResults:b,clearOnSearch:k,clearOnSelect:w,valueProp:C,allowAbsent:x,groupLabel:S,canDeselect:T,max:A,strict:z,closeOnSelect:O,closeOnDeselect:B,groups:L,reverse:I,infinite:P,groupOptions:G,groupHideEmpty:R,groupSelect:D,onCreate:K,disabledProp:F,searchStart:U,searchFilter:ce}=a.toRefs(t),ee=a.getCurrentInstance().proxy,ae=n.iv,q=n.ev,ne=n.search,$=n.clearSearch,Y=n.update,be=n.pointer,Ze=n.setPointer,pe=n.clearPointer,Ce=n.focus,xe=n.deactivate,bt=n.close,De=n.localize,yt=a.ref([]),Lt=a.ref([]),Pe=a.ref(!1),_t=a.ref(null),Mt=a.ref(P.value&&s.value===-1?10:s.value),bo=a.computed(()=>c.value||d.value||!1),or=a.computed(()=>p.value!==void 0?p.value:f.value!==void 0?f.value:!0),Ve=a.computed(()=>{if(L.value){let N=sn.value||[],J=[];return N.forEach(ge=>{li(ge[G.value]).forEach(Oe=>{J.push(Object.assign({},Oe,ge[F.value]?{[F.value]:!0}:{}))})}),J}else{let N=li(Lt.value||[]);return yt.value.length&&(N=N.concat(yt.value)),N}}),vt=a.computed(()=>{let N=Ve.value;return I.value&&(N=N.reverse()),Hn.value.length&&(N=Hn.value.concat(N)),si(N)}),lt=a.computed(()=>{let N=vt.value;return Mt.value>0&&(N=N.slice(0,Mt.value)),N}),sn=a.computed(()=>{if(!L.value)return[];let N=[],J=Lt.value||[];return yt.value.length&&N.push({[S.value]:" ",[G.value]:[...yt.value],__CREATE__:!0}),N.concat(J)}),Un=a.computed(()=>{let N=[...sn.value].map(J=>({...J}));return Hn.value.length&&(N[0]&&N[0].__CREATE__?N[0][G.value]=[...Hn.value,...N[0][G.value]]:N=[{[S.value]:" ",[G.value]:[...Hn.value],__CREATE__:!0}].concat(N)),N}),yo=a.computed(()=>{if(!L.value)return[];let N=Un.value;return ir((N||[]).map((J,ge)=>{const Oe=li(J[G.value]);return{...J,index:ge,group:!0,[G.value]:si(Oe,!1).map(Wn=>Object.assign({},Wn,J[F.value]?{[F.value]:!0}:{})),__VISIBLE__:si(Oe).map(Wn=>Object.assign({},Wn,J[F.value]?{[F.value]:!0}:{}))}}))}),rr=a.computed(()=>{switch(r.value){case"single":return!pn(ae.value[C.value]);case"multiple":case"tags":return!pn(ae.value)&&ae.value.length>0}}),_o=a.computed(()=>m!==void 0&&m.value!==void 0?m.value(ae.value,ee):ae.value&&ae.value.length>1?`${ae.value.length} options selected`:"1 option selected"),Wr=a.computed(()=>!Ve.value.length&&!Pe.value&&!Hn.value.length),Zr=a.computed(()=>Ve.value.length>0&&lt.value.length==0&&(ne.value&&L.value||!L.value)),Hn=a.computed(()=>bo.value===!1||!ne.value?[]:sl(ne.value)!==-1?[]:[{[C.value]:ne.value,[En.value[0]]:ne.value,[u.value]:ne.value,__CREATE__:!0}]),En=a.computed(()=>i.value?Array.isArray(i.value)?i.value:[i.value]:[u.value]),rl=a.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),oi=a.computed(()=>g.value||Pe.value),ln=N=>{switch(typeof N!="object"&&(N=Pt(N)),r.value){case"single":Y(N);break;case"multiple":case"tags":Y(ae.value.concat(N));break}e.emit("select",Ot(N),N,ee)},$t=N=>{switch(typeof N!="object"&&(N=Pt(N)),r.value){case"single":ri();break;case"tags":case"multiple":Y(Array.isArray(N)?ae.value.filter(J=>N.map(ge=>ge[C.value]).indexOf(J[C.value])===-1):ae.value.filter(J=>J[C.value]!=N[C.value]));break}e.emit("deselect",Ot(N),N,ee)},Ot=N=>h.value?N:N[C.value],Gr=N=>{$t(N)},al=(N,J)=>{if(J.button!==0){J.preventDefault();return}Gr(N)},ri=()=>{Y(rl.value),e.emit("clear",ee)},It=N=>{if(N.group!==void 0)return r.value==="single"?!1:il(N[G.value])&&N[G.value].length;switch(r.value){case"single":return!pn(ae.value)&&ae.value[C.value]==N[C.value];case"tags":case"multiple":return!pn(ae.value)&&ae.value.map(J=>J[C.value]).indexOf(N[C.value])!==-1}},Kr=N=>N[F.value]===!0,vo=()=>A===void 0||A.value===-1||!rr.value&&A.value>0?!1:ae.value.length>=A.value,Yr=N=>{if(!Kr(N)){if(K&&K.value&&!It(N)&&N.__CREATE__&&(N={...N},delete N.__CREATE__,N=K.value(N,ee),N instanceof Promise)){Pe.value=!0,N.then(J=>{Pe.value=!1,Rt(J)});return}Rt(N)}},Rt=N=>{switch(N.__CREATE__&&(N={...N},delete N.__CREATE__),r.value){case"single":if(N&&It(N)){T.value&&$t(N),B.value&&(pe(),bt());return}N&&ar(N),w.value&&$(),O.value&&(pe(),bt()),N&&ln(N);break;case"multiple":if(N&&It(N)){$t(N),B.value&&(pe(),bt());return}if(vo()){e.emit("max",ee);return}N&&(ar(N),ln(N)),w.value&&$(),l.value&&pe(),O.value&&bt();break;case"tags":if(N&&It(N)){$t(N),B.value&&(pe(),bt());return}if(vo()){e.emit("max",ee);return}N&&ar(N),w.value&&$(),N&&ln(N),l.value&&pe(),O.value&&bt();break}O.value||Ce()},Co=N=>{if(!(Kr(N)||r.value==="single"||!D.value)){switch(r.value){case"multiple":case"tags":ru(N[G.value])?$t(N[G.value]):ln(N[G.value].filter(J=>ae.value.map(ge=>ge[C.value]).indexOf(J[C.value])===-1).filter(J=>!J[F.value]).filter((J,ge)=>ae.value.length+1+ge<=A.value||A.value===-1)),l.value&&be.value&&Ze(yo.value.filter(J=>!J[F.value])[be.value.index]);break}O.value&&xe()}},ar=N=>{Pt(N[C.value])===void 0&&bo.value&&(e.emit("tag",N[C.value],ee),e.emit("option",N[C.value],ee),e.emit("create",N[C.value],ee),or.value&&au(N),$())},ai=()=>{r.value!=="single"&&ln(lt.value.filter(N=>!N.disabled&&!It(N)))},ru=N=>N.find(J=>!It(J)&&!J[F.value])===void 0,il=N=>N.find(J=>!It(J))===void 0,Pt=N=>Ve.value[Ve.value.map(J=>String(J[C.value])).indexOf(String(N))],sl=N=>Ve.value.findIndex(J=>En.value.some(ge=>(parseInt(J[ge])==J[ge]?parseInt(J[ge]):J[ge])===(parseInt(N)==N?parseInt(N):N))),ii=N=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&It(N),au=N=>{yt.value.push(N)},ir=N=>R.value?N.filter(J=>ne.value?J.__VISIBLE__.length:J[G.value].length):N.filter(J=>ne.value?J.__VISIBLE__.length:!0),si=(N,J=!0)=>{let ge=N;if(ne.value&&b.value){let Oe=ce.value;Oe||(Oe=(Wn,dn,ui)=>En.value.some(Zn=>{let cl=Tl(De(Wn[Zn]),z.value);return U.value?cl.startsWith(Tl(dn,z.value)):cl.indexOf(Tl(dn,z.value))!==-1})),ge=ge.filter(Wn=>Oe(Wn,ne.value,ee))}return l.value&&J&&(ge=ge.filter(Oe=>!ii(Oe))),ge},li=N=>{let J=N;return B7(J)&&(J=Object.keys(J).map(ge=>{let Oe=J[ge];return{[C.value]:ge,[En.value[0]]:Oe,[u.value]:Oe}})),J=J.map(ge=>typeof ge=="object"?ge:{[C.value]:ge,[En.value[0]]:ge,[u.value]:ge}),J},Ae=()=>{pn(q.value)||(ae.value=wo(q.value))},cn=N=>(Pe.value=!0,new Promise((J,ge)=>{o.value(ne.value,ee).then(Oe=>{Lt.value=Oe||[],typeof N=="function"&&N(Oe),Pe.value=!1}).catch(Oe=>{console.error(Oe),Lt.value=[],Pe.value=!1}).finally(()=>{J()})})),ci=()=>{if(rr.value)if(r.value==="single"){let N=Pt(ae.value[C.value]);if(N!==void 0){let J=N[u.value];ae.value[u.value]=J,h.value&&(q.value[u.value]=J)}}else ae.value.forEach((N,J)=>{let ge=Pt(ae.value[J][C.value]);if(ge!==void 0){let Oe=ge[u.value];ae.value[J][u.value]=Oe,h.value&&(q.value[J][u.value]=Oe)}})},ll=N=>{cn(N)},wo=N=>pn(N)?r.value==="single"?{}:[]:h.value?N:r.value==="single"?Pt(N)||(x.value?{[u.value]:N,[C.value]:N,[En.value[0]]:N}:{}):N.filter(J=>!!Pt(J)||x.value).map(J=>Pt(J)||{[u.value]:J,[C.value]:J,[En.value[0]]:J}),di=()=>{_t.value=a.watch(ne,N=>{N.length<y.value||!N&&y.value!==0||(Pe.value=!0,k.value&&(Lt.value=[]),setTimeout(()=>{N==ne.value&&o.value(ne.value,ee).then(J=>{(N==ne.value||!ne.value)&&(Lt.value=J,be.value=lt.value.filter(ge=>ge[F.value]!==!0)[0]||null,Pe.value=!1)}).catch(J=>{console.error(J)})},v.value))},{flush:"sync"})};if(r.value!=="single"&&!pn(q.value)&&!Array.isArray(q.value))throw new Error(`v-model must be an array when using "${r.value}" mode`);return o&&typeof o.value=="function"?_.value?cn(Ae):h.value==!0&&Ae():(Lt.value=o.value,Ae()),v.value>-1&&di(),a.watch(v,(N,J)=>{_t.value&&_t.value(),N>=0&&di()}),a.watch(q,N=>{if(pn(N)){Y(wo(N),!1);return}switch(r.value){case"single":(h.value?N[C.value]!=ae.value[C.value]:N!=ae.value[C.value])&&Y(wo(N),!1);break;case"multiple":case"tags":L7(h.value?N.map(J=>J[C.value]):N,ae.value.map(J=>J[C.value]))||Y(wo(N),!1);break}},{deep:!0}),a.watch(o,(N,J)=>{typeof t.options=="function"?_.value&&(!J||N&&N.toString()!==J.toString())&&cn():(Lt.value=t.options,Object.keys(ae.value).length||Ae(),ci())}),a.watch(u,ci),a.watch(s,(N,J)=>{Mt.value=P.value&&N===-1?10:N}),{pfo:vt,fo:lt,filteredOptions:lt,hasSelected:rr,multipleLabelText:_o,eo:Ve,extendedOptions:Ve,eg:sn,extendedGroups:sn,fg:yo,filteredGroups:yo,noOptions:Wr,noResults:Zr,resolving:Pe,busy:oi,offset:Mt,select:ln,deselect:$t,remove:Gr,selectAll:ai,clear:ri,isSelected:It,isDisabled:Kr,isMax:vo,getOption:Pt,handleOptionClick:Yr,handleGroupClick:Co,handleTagRemove:al,refreshOptions:ll,resolveOptions:cn,refreshLabels:ci}}function $7(t,e,n){const{valueProp:o,showOptions:r,searchable:i,groupLabel:s,groups:l,mode:c,groupSelect:d,disabledProp:u,groupOptions:p}=a.toRefs(t),f=n.fo,m=n.fg,h=n.handleOptionClick,g=n.handleGroupClick,v=n.search,_=n.pointer,y=n.setPointer,b=n.clearPointer,k=n.multiselect,w=n.isOpen,C=a.computed(()=>f.value.filter(q=>!q[u.value])),x=a.computed(()=>m.value.filter(q=>!q[u.value])),S=a.computed(()=>c.value!=="single"&&d.value),T=a.computed(()=>_.value&&_.value.group),A=a.computed(()=>ee(_.value)),z=a.computed(()=>{const q=T.value?_.value:ee(_.value),ne=x.value.map(Y=>Y[s.value]).indexOf(q[s.value]);let $=x.value[ne-1];return $===void 0&&($=B.value),$}),O=a.computed(()=>{let q=x.value.map(ne=>ne.label).indexOf(T.value?_.value[s.value]:ee(_.value)[s.value])+1;return x.value.length<=q&&(q=0),x.value[q]}),B=a.computed(()=>[...x.value].slice(-1)[0]),L=a.computed(()=>_.value.__VISIBLE__.filter(q=>!q[u.value])[0]),I=a.computed(()=>{const q=A.value.__VISIBLE__.filter(ne=>!ne[u.value]);return q[q.map(ne=>ne[o.value]).indexOf(_.value[o.value])-1]}),P=a.computed(()=>{const q=ee(_.value).__VISIBLE__.filter(ne=>!ne[u.value]);return q[q.map(ne=>ne[o.value]).indexOf(_.value[o.value])+1]}),G=a.computed(()=>[...z.value.__VISIBLE__.filter(q=>!q[u.value])].slice(-1)[0]),R=a.computed(()=>[...B.value.__VISIBLE__.filter(q=>!q[u.value])].slice(-1)[0]),D=q=>_.value&&(!q.group&&_.value[o.value]===q[o.value]||q.group!==void 0&&_.value[s.value]===q[s.value])?!0:void 0,K=()=>{y(C.value[0]||null)},F=()=>{!_.value||_.value[u.value]===!0||(T.value?g(_.value):h(_.value))},U=()=>{if(_.value===null)y((l.value&&S.value?x.value[0].__CREATE__?C.value[0]:x.value[0]:C.value[0])||null);else if(l.value&&S.value){let q=T.value?L.value:P.value;q===void 0&&(q=O.value,q.__CREATE__&&(q=q[p.value][0])),y(q||null)}else{let q=C.value.map(ne=>ne[o.value]).indexOf(_.value[o.value])+1;C.value.length<=q&&(q=0),y(C.value[q]||null)}a.nextTick(()=>{ae()})},ce=()=>{if(_.value===null){let q=C.value[C.value.length-1];l.value&&S.value&&(q=R.value,q===void 0&&(q=B.value)),y(q||null)}else if(l.value&&S.value){let q=T.value?G.value:I.value;q===void 0&&(q=T.value?z.value:A.value,q.__CREATE__&&(q=G.value,q===void 0&&(q=z.value))),y(q||null)}else{let q=C.value.map(ne=>ne[o.value]).indexOf(_.value[o.value])-1;q<0&&(q=C.value.length-1),y(C.value[q]||null)}a.nextTick(()=>{ae()})},ee=q=>x.value.find(ne=>ne.__VISIBLE__.map($=>$[o.value]).indexOf(q[o.value])!==-1),ae=()=>{let q=k.value.querySelector("[data-pointed]");if(!q)return;let ne=q.parentElement.parentElement;l.value&&(ne=T.value?q.parentElement.parentElement.parentElement:q.parentElement.parentElement.parentElement.parentElement),q.offsetTop+q.offsetHeight>ne.clientHeight+ne.scrollTop&&(ne.scrollTop=q.offsetTop+q.offsetHeight-ne.clientHeight),q.offsetTop<ne.scrollTop&&(ne.scrollTop=q.offsetTop)};return a.watch(v,q=>{i.value&&(q.length&&r.value?K():b())}),a.watch(w,q=>{if(q){let ne=k.value.querySelectorAll("[data-selected]")[0];if(!ne)return;let $=ne.parentElement.parentElement;a.nextTick(()=>{$.scrollTop>0||($.scrollTop=ne.offsetTop)})}}),{pointer:_,canPointGroups:S,isPointed:D,setPointerFirst:K,selectPointer:F,forwardPointer:U,backwardPointer:ce}}function xt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function So(t){var e=xt(t).Element;return t instanceof e||t instanceof Element}function qt(t){var e=xt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Al(t){if(typeof ShadowRoot>"u")return!1;var e=xt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var To=Math.max,Oi=Math.min,fr=Math.round;function Nl(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function tp(){return!/^((?!chrome|android).)*safari/i.test(Nl())}function mr(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,i=1;e&&qt(t)&&(r=t.offsetWidth>0&&fr(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&fr(o.height)/t.offsetHeight||1);var s=So(t)?xt(t):window,l=s.visualViewport,c=!tp()&&n,d=(o.left+(c&&l?l.offsetLeft:0))/r,u=(o.top+(c&&l?l.offsetTop:0))/i,p=o.width/r,f=o.height/i;return{width:p,height:f,top:u,right:d+p,bottom:u+f,left:d,x:d,y:u}}function Dl(t){var e=xt(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function O7(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function I7(t){return t===xt(t)||!qt(t)?Dl(t):O7(t)}function fn(t){return t?(t.nodeName||"").toLowerCase():null}function Qn(t){return((So(t)?t.ownerDocument:t.document)||window.document).documentElement}function Bl(t){return mr(Qn(t)).left+Dl(t).scrollLeft}function Bn(t){return xt(t).getComputedStyle(t)}function Ll(t){var e=Bn(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function R7(t){var e=t.getBoundingClientRect(),n=fr(e.width)/t.offsetWidth||1,o=fr(e.height)/t.offsetHeight||1;return n!==1||o!==1}function P7(t,e,n){n===void 0&&(n=!1);var o=qt(e),r=qt(e)&&R7(e),i=Qn(e),s=mr(t,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((fn(e)!=="body"||Ll(i))&&(l=I7(e)),qt(e)?(c=mr(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=Bl(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function np(t){var e=mr(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function Ii(t){return fn(t)==="html"?t:t.assignedSlot||t.parentNode||(Al(t)?t.host:null)||Qn(t)}function op(t){return["html","body","#document"].indexOf(fn(t))>=0?t.ownerDocument.body:qt(t)&&Ll(t)?t:op(Ii(t))}function ga(t,e){var n;e===void 0&&(e=[]);var o=op(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),i=xt(o),s=r?[i].concat(i.visualViewport||[],Ll(o)?o:[]):o,l=e.concat(s);return r?l:l.concat(ga(Ii(s)))}function V7(t){return["table","td","th"].indexOf(fn(t))>=0}function rp(t){return!qt(t)||Bn(t).position==="fixed"?null:t.offsetParent}function F7(t){var e=/firefox/i.test(Nl()),n=/Trident/i.test(Nl());if(n&&qt(t)){var o=Bn(t);if(o.position==="fixed")return null}var r=Ii(t);for(Al(r)&&(r=r.host);qt(r)&&["html","body"].indexOf(fn(r))<0;){var i=Bn(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Ri(t){for(var e=xt(t),n=rp(t);n&&V7(n)&&Bn(n).position==="static";)n=rp(n);return n&&(fn(n)==="html"||fn(n)==="body"&&Bn(n).position==="static")?e:n||F7(t)||e}var Kt="top",mn="bottom",eo="right",Ln="left",Ml="auto",Pi=[Kt,mn,eo,Ln],hr="start",ba="end",z7="clippingParents",ap="viewport",ya="popper",q7="reference",ip=Pi.reduce(function(t,e){return t.concat([e+"-"+hr,e+"-"+ba])},[]),j7=[].concat(Pi,[Ml]).reduce(function(t,e){return t.concat([e,e+"-"+hr,e+"-"+ba])},[]),U7="beforeRead",H7="read",W7="afterRead",Z7="beforeMain",G7="main",K7="afterMain",Y7="beforeWrite",J7="write",X7="afterWrite",Q7=[U7,H7,W7,Z7,G7,K7,Y7,J7,X7];function eC(t){var e=new Map,n=new Set,o=[];t.forEach(function(i){e.set(i.name,i)});function r(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&r(c)}}),o.push(i)}return t.forEach(function(i){n.has(i.name)||r(i)}),o}function tC(t){var e=eC(t);return Q7.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function nC(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function oC(t){var e=t.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}function rC(t,e){var n=xt(t),o=Qn(t),r=n.visualViewport,i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;var d=tp();(d||!d&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l+Bl(t),y:c}}function aC(t){var e,n=Qn(t),o=Dl(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=To(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=To(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Bl(t),c=-o.scrollTop;return Bn(r||n).direction==="rtl"&&(l+=To(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function iC(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Al(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function $l(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function sC(t,e){var n=mr(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function sp(t,e,n){return e===ap?$l(rC(t,n)):So(e)?sC(e,n):$l(aC(Qn(t)))}function lC(t){var e=ga(Ii(t)),n=["absolute","fixed"].indexOf(Bn(t).position)>=0,o=n&&qt(t)?Ri(t):t;return So(o)?e.filter(function(r){return So(r)&&iC(r,o)&&fn(r)!=="body"}):[]}function cC(t,e,n,o){var r=e==="clippingParents"?lC(t):[].concat(e),i=[].concat(r,[n]),s=i[0],l=i.reduce(function(c,d){var u=sp(t,d,o);return c.top=To(u.top,c.top),c.right=Oi(u.right,c.right),c.bottom=Oi(u.bottom,c.bottom),c.left=To(u.left,c.left),c},sp(t,s,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function to(t){return t.split("-")[0]}function gr(t){return t.split("-")[1]}function lp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function cp(t){var e=t.reference,n=t.element,o=t.placement,r=o?to(o):null,i=o?gr(o):null,s=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(r){case Kt:c={x:s,y:e.y-n.height};break;case mn:c={x:s,y:e.y+e.height};break;case eo:c={x:e.x+e.width,y:l};break;case Ln:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var d=r?lp(r):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case hr:c[d]=c[d]-(e[u]/2-n[u]/2);break;case ba:c[d]=c[d]+(e[u]/2-n[u]/2);break}}return c}function dp(){return{top:0,right:0,bottom:0,left:0}}function dC(t){return Object.assign({},dp(),t)}function uC(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function Ol(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=o===void 0?t.placement:o,i=n.strategy,s=i===void 0?t.strategy:i,l=n.boundary,c=l===void 0?z7:l,d=n.rootBoundary,u=d===void 0?ap:d,p=n.elementContext,f=p===void 0?ya:p,m=n.altBoundary,h=m===void 0?!1:m,g=n.padding,v=g===void 0?0:g,_=dC(typeof v!="number"?v:uC(v,Pi)),y=f===ya?q7:ya,b=t.rects.popper,k=t.elements[h?y:f],w=cC(So(k)?k:k.contextElement||Qn(t.elements.popper),c,u,s),C=mr(t.elements.reference),x=cp({reference:C,element:b,strategy:"absolute",placement:r}),S=$l(Object.assign({},b,x)),T=f===ya?S:C,A={top:w.top-T.top+_.top,bottom:T.bottom-w.bottom+_.bottom,left:w.left-T.left+_.left,right:T.right-w.right+_.right},z=t.modifiersData.offset;if(f===ya&&z){var O=z[r];Object.keys(A).forEach(function(B){var L=[eo,mn].indexOf(B)>=0?1:-1,I=[Kt,mn].indexOf(B)>=0?"y":"x";A[B]+=O[I]*L})}return A}var up={placement:"bottom",modifiers:[],strategy:"absolute"};function pp(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function pC(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,i=r===void 0?up:r;return function(l,c,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},up,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],f=!1,m={state:u,setOptions:function(_){var y=typeof _=="function"?_(u.options):_;g(),u.options=Object.assign({},i,u.options,y),u.scrollParents={reference:So(l)?ga(l):l.contextElement?ga(l.contextElement):[],popper:ga(c)};var b=tC(oC([].concat(o,u.options.modifiers)));return u.orderedModifiers=b.filter(function(k){return k.enabled}),h(),m.update()},forceUpdate:function(){if(!f){var _=u.elements,y=_.reference,b=_.popper;if(pp(y,b)){u.rects={reference:P7(y,Ri(b),u.options.strategy==="fixed"),popper:np(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(A){return u.modifiersData[A.name]=Object.assign({},A.data)});for(var k=0;k<u.orderedModifiers.length;k++){if(u.reset===!0){u.reset=!1,k=-1;continue}var w=u.orderedModifiers[k],C=w.fn,x=w.options,S=x===void 0?{}:x,T=w.name;typeof C=="function"&&(u=C({state:u,options:S,name:T,instance:m})||u)}}}},update:nC(function(){return new Promise(function(v){m.forceUpdate(),v(u)})}),destroy:function(){g(),f=!0}};if(!pp(l,c))return m;m.setOptions(d).then(function(v){!f&&d.onFirstUpdate&&d.onFirstUpdate(v)});function h(){u.orderedModifiers.forEach(function(v){var _=v.name,y=v.options,b=y===void 0?{}:y,k=v.effect;if(typeof k=="function"){var w=k({state:u,name:_,instance:m,options:b}),C=function(){};p.push(w||C)}})}function g(){p.forEach(function(v){return v()}),p=[]}return m}}var Vi={passive:!0};function fC(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,i=r===void 0?!0:r,s=o.resize,l=s===void 0?!0:s,c=xt(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",n.update,Vi)}),l&&c.addEventListener("resize",n.update,Vi),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",n.update,Vi)}),l&&c.removeEventListener("resize",n.update,Vi)}}var mC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fC,data:{}};function hC(t){var e=t.state,n=t.name;e.modifiersData[n]=cp({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var gC={name:"popperOffsets",enabled:!0,phase:"read",fn:hC,data:{}},bC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yC(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:fr(n*r)/r||0,y:fr(o*r)/r||0}}function fp(t){var e,n=t.popper,o=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,l=t.position,c=t.gpuAcceleration,d=t.adaptive,u=t.roundOffsets,p=t.isFixed,f=s.x,m=f===void 0?0:f,h=s.y,g=h===void 0?0:h,v=typeof u=="function"?u({x:m,y:g}):{x:m,y:g};m=v.x,g=v.y;var _=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=Ln,k=Kt,w=window;if(d){var C=Ri(n),x="clientHeight",S="clientWidth";if(C===xt(n)&&(C=Qn(n),Bn(C).position!=="static"&&l==="absolute"&&(x="scrollHeight",S="scrollWidth")),C=C,r===Kt||(r===Ln||r===eo)&&i===ba){k=mn;var T=p&&C===w&&w.visualViewport?w.visualViewport.height:C[x];g-=T-o.height,g*=c?1:-1}if(r===Ln||(r===Kt||r===mn)&&i===ba){b=eo;var A=p&&C===w&&w.visualViewport?w.visualViewport.width:C[S];m-=A-o.width,m*=c?1:-1}}var z=Object.assign({position:l},d&&bC),O=u===!0?yC({x:m,y:g},xt(n)):{x:m,y:g};if(m=O.x,g=O.y,c){var B;return Object.assign({},z,(B={},B[k]=y?"0":"",B[b]=_?"0":"",B.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",B))}return Object.assign({},z,(e={},e[k]=y?g+"px":"",e[b]=_?m+"px":"",e.transform="",e))}function _C(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:to(e.placement),variation:gr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,fp(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,fp(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var vC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_C,data:{}};function CC(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},r=e.attributes[n]||{},i=e.elements[n];!qt(i)||!fn(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(s){var l=r[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function wC(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(o){var r=e.elements[o],i=e.attributes[o]||{},s=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:n[o]),l=s.reduce(function(c,d){return c[d]="",c},{});!qt(r)||!fn(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}var kC={name:"applyStyles",enabled:!0,phase:"write",fn:CC,effect:wC,requires:["computeStyles"]},xC=[mC,gC,vC,kC],EC=pC({defaultModifiers:xC});function SC(t){return t==="x"?"y":"x"}function Fi(t,e,n){return To(t,Oi(e,n))}function TC(t,e,n){var o=Fi(t,e,n);return o>n?n:o}function AC(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,p=n.padding,f=n.tether,m=f===void 0?!0:f,h=n.tetherOffset,g=h===void 0?0:h,v=Ol(e,{boundary:c,rootBoundary:d,padding:p,altBoundary:u}),_=to(e.placement),y=gr(e.placement),b=!y,k=lp(_),w=SC(k),C=e.modifiersData.popperOffsets,x=e.rects.reference,S=e.rects.popper,T=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,A=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,O={x:0,y:0};if(C){if(i){var B,L=k==="y"?Kt:Ln,I=k==="y"?mn:eo,P=k==="y"?"height":"width",G=C[k],R=G+v[L],D=G-v[I],K=m?-S[P]/2:0,F=y===hr?x[P]:S[P],U=y===hr?-S[P]:-x[P],ce=e.elements.arrow,ee=m&&ce?np(ce):{width:0,height:0},ae=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:dp(),q=ae[L],ne=ae[I],$=Fi(0,x[P],ee[P]),Y=b?x[P]/2-K-$-q-A.mainAxis:F-$-q-A.mainAxis,be=b?-x[P]/2+K+$+ne+A.mainAxis:U+$+ne+A.mainAxis,Ze=e.elements.arrow&&Ri(e.elements.arrow),pe=Ze?k==="y"?Ze.clientTop||0:Ze.clientLeft||0:0,Ce=(B=z==null?void 0:z[k])!=null?B:0,xe=G+Y-Ce-pe,bt=G+be-Ce,De=Fi(m?Oi(R,xe):R,G,m?To(D,bt):D);C[k]=De,O[k]=De-G}if(l){var yt,Lt=k==="x"?Kt:Ln,Pe=k==="x"?mn:eo,_t=C[w],Mt=w==="y"?"height":"width",bo=_t+v[Lt],or=_t-v[Pe],Ve=[Kt,Ln].indexOf(_)!==-1,vt=(yt=z==null?void 0:z[w])!=null?yt:0,lt=Ve?bo:_t-x[Mt]-S[Mt]-vt+A.altAxis,sn=Ve?_t+x[Mt]+S[Mt]-vt-A.altAxis:or,Un=m&&Ve?TC(lt,_t,sn):Fi(m?lt:bo,_t,m?sn:or);C[w]=Un,O[w]=Un-_t}e.modifiersData[o]=O}}var NC={name:"preventOverflow",enabled:!0,phase:"main",fn:AC,requiresIfExists:["offset"]},DC={left:"right",right:"left",bottom:"top",top:"bottom"};function zi(t){return t.replace(/left|right|bottom|top/g,function(e){return DC[e]})}var BC={start:"end",end:"start"};function mp(t){return t.replace(/start|end/g,function(e){return BC[e]})}function LC(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?j7:c,u=gr(o),p=u?l?ip:ip.filter(function(h){return gr(h)===u}):Pi,f=p.filter(function(h){return d.indexOf(h)>=0});f.length===0&&(f=p);var m=f.reduce(function(h,g){return h[g]=Ol(t,{placement:g,boundary:r,rootBoundary:i,padding:s})[to(g)],h},{});return Object.keys(m).sort(function(h,g){return m[h]-m[g]})}function MC(t){if(to(t)===Ml)return[];var e=zi(t);return[mp(t),e,mp(e)]}function $C(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,u=n.boundary,p=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,h=m===void 0?!0:m,g=n.allowedAutoPlacements,v=e.options.placement,_=to(v),y=_===v,b=c||(y||!h?[zi(v)]:MC(v)),k=[v].concat(b).reduce(function(ee,ae){return ee.concat(to(ae)===Ml?LC(e,{placement:ae,boundary:u,rootBoundary:p,padding:d,flipVariations:h,allowedAutoPlacements:g}):ae)},[]),w=e.rects.reference,C=e.rects.popper,x=new Map,S=!0,T=k[0],A=0;A<k.length;A++){var z=k[A],O=to(z),B=gr(z)===hr,L=[Kt,mn].indexOf(O)>=0,I=L?"width":"height",P=Ol(e,{placement:z,boundary:u,rootBoundary:p,altBoundary:f,padding:d}),G=L?B?eo:Ln:B?mn:Kt;w[I]>C[I]&&(G=zi(G));var R=zi(G),D=[];if(i&&D.push(P[O]<=0),l&&D.push(P[G]<=0,P[R]<=0),D.every(function(ee){return ee})){T=z,S=!1;break}x.set(z,D)}if(S)for(var K=h?3:1,F=function(ae){var q=k.find(function(ne){var $=x.get(ne);if($)return $.slice(0,ae).every(function(Y){return Y})});if(q)return T=q,"break"},U=K;U>0;U--){var ce=F(U);if(ce==="break")break}e.placement!==T&&(e.modifiersData[o]._skip=!0,e.placement=T,e.reset=!0)}}var OC={name:"flip",enabled:!0,phase:"main",fn:$C,requiresIfExists:["offset"],data:{_skip:!1}};function IC(t,e,n){const{disabled:o,appendTo:r,appendToBody:i,openDirection:s}=a.toRefs(t),l=a.getCurrentInstance().proxy,c=n.multiselect,d=n.dropdown,u=a.ref(!1),p=a.ref(null),f=a.ref(null),m=a.computed(()=>r.value||i.value),h=a.computed(()=>s.value==="top"&&f.value==="bottom"||s.value==="bottom"&&f.value!=="top"?"bottom":"top"),g=()=>{u.value||o.value||(u.value=!0,e.emit("open",l),m.value&&a.nextTick(()=>{_()}))},v=()=>{u.value&&(u.value=!1,e.emit("close",l))},_=()=>{if(!p.value)return;let b=parseInt(window.getComputedStyle(d.value).borderTopWidth.replace("px","")),k=parseInt(window.getComputedStyle(d.value).borderBottomWidth.replace("px",""));p.value.setOptions(w=>({...w,modifiers:[...w.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?b:k)*-1]}}]})),p.value.update()},y=b=>{for(;b&&b!==document.body;){if(getComputedStyle(b).position==="fixed")return!0;b=b.parentElement}return!1};return a.onMounted(()=>{m.value&&(p.value=EC(c.value,d.value,{strategy:y(c.value)?"fixed":void 0,placement:s.value,modifiers:[NC,OC,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:b})=>{b.styles.popper.width=`${b.rects.reference.width}px`},effect:({state:b})=>{b.elements.popper.style.width=`${b.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:b}){f.value=b.placement}}]}))}),a.onBeforeUnmount(()=>{!m.value||!p.value||(p.value.destroy(),p.value=null)}),{popper:p,isOpen:u,open:g,close:v,placement:h,updatePopper:_}}function RC(t,e,n){const{searchable:o,disabled:r,clearOnBlur:i}=a.toRefs(t),s=n.input,l=n.open,c=n.close,d=n.clearSearch,u=n.isOpen,p=n.wrapper,f=n.tags,m=a.ref(!1),h=a.ref(!1),g=a.computed(()=>o.value||r.value?-1:0),v=()=>{o.value&&s.value.blur(),p.value.blur()},_=()=>{o.value&&!r.value&&s.value.focus()},y=(S=!0)=>{r.value||(m.value=!0,S&&l())},b=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),i.value&&d())},1)};return{tabindex:g,isActive:m,mouseClicked:h,blur:v,focus:_,activate:y,deactivate:b,handleFocusIn:S=>{S.target.closest("[data-tags]")&&S.target.nodeName!=="INPUT"||S.target.closest("[data-clear]")||y(h.value)},handleFocusOut:()=>{b()},handleCaretClick:()=>{b(),v()},handleMousedown:S=>{h.value=!0,u.value&&(S.target.isEqualNode(p.value)||S.target.isEqualNode(f.value))?setTimeout(()=>{b()},0):!u.value&&(document.activeElement.isEqualNode(p.value)||document.activeElement.isEqualNode(s.value))&&y(),setTimeout(()=>{h.value=!1},0)}}}function PC(t,e,n){const{mode:o,addTagOn:r,openDirection:i,searchable:s,showOptions:l,valueProp:c,groups:d,addOptionOn:u,createTag:p,createOption:f,reverse:m}=a.toRefs(t),h=a.getCurrentInstance().proxy,g=n.iv,v=n.update,_=n.deselect,y=n.search,b=n.setPointer,k=n.selectPointer,w=n.backwardPointer,C=n.forwardPointer,x=n.multiselect,S=n.wrapper,T=n.tags,A=n.isOpen,z=n.open,O=n.blur,B=n.fo,L=a.computed(()=>p.value||f.value||!1),I=a.computed(()=>r.value!==void 0?r.value:u.value!==void 0?u.value:["enter"]),P=()=>{o.value==="tags"&&!l.value&&L.value&&s.value&&!d.value&&b(B.value[B.value.map(D=>D[c.value]).indexOf(y.value)])};return{handleKeydown:D=>{e.emit("keydown",D,h);let K,F;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(D.key)!==-1&&o.value==="tags"&&(K=[...x.value.querySelectorAll("[data-tags] > *")].filter(U=>U!==T.value),F=K.findIndex(U=>U===document.activeElement)),D.key){case"Backspace":if(o.value==="single"||s.value&&[null,""].indexOf(y.value)===-1||g.value.length===0)return;let U=g.value.filter(ce=>!ce.disabled&&ce.remove!==!1);U.length&&_(U[U.length-1]);break;case"Enter":if(D.preventDefault(),D.keyCode===229)return;if(F!==-1&&F!==void 0){v([...g.value].filter((ce,ee)=>ee!==F)),F===K.length-1&&(K.length-1?K[K.length-2].focus():s.value?T.value.querySelector("input").focus():S.value.focus());return}if(I.value.indexOf("enter")===-1&&L.value)return;P(),k();break;case" ":if(!L.value&&!s.value){D.preventDefault(),P(),k();return}if(!L.value)return!1;if(I.value.indexOf("space")===-1&&L.value)return;D.preventDefault(),P(),k();break;case"Tab":case";":case",":if(I.value.indexOf(D.key.toLowerCase())===-1||!L.value)return;P(),k(),D.preventDefault();break;case"Escape":O();break;case"ArrowUp":if(D.preventDefault(),!l.value)return;A.value||z(),w();break;case"ArrowDown":if(D.preventDefault(),!l.value)return;A.value||z(),C();break;case"ArrowLeft":if(s.value&&T.value&&T.value.querySelector("input").selectionStart||D.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;D.preventDefault(),F===-1?K[K.length-1].focus():F>0&&K[F-1].focus();break;case"ArrowRight":if(F===-1||D.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;D.preventDefault(),K.length>F+1?K[F+1].focus():s.value?T.value.querySelector("input").focus():s.value||S.value.focus();break}},handleKeyup:D=>{e.emit("keyup",D,h)},preparePointer:P}}function VC(t,e,n){const{classes:o,disabled:r,showOptions:i,breakTags:s}=a.toRefs(t),l=n.isOpen,c=n.isPointed,d=n.isSelected,u=n.isDisabled,p=n.isActive,f=n.canPointGroups,m=n.resolving,h=n.fo,g=n.placement,v=a.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...o.value})),_=a.computed(()=>!!(l.value&&i.value&&(!m.value||m.value&&h.value.length)));return{classList:a.computed(()=>{const b=v.value;return{container:[b.container].concat(r.value?b.containerDisabled:[]).concat(_.value&&g.value==="top"?b.containerOpenTop:[]).concat(_.value&&g.value!=="top"?b.containerOpen:[]).concat(p.value?b.containerActive:[]),wrapper:b.wrapper,spacer:b.spacer,singleLabel:b.singleLabel,singleLabelText:b.singleLabelText,multipleLabel:b.multipleLabel,search:b.search,tags:b.tags,tag:[b.tag].concat(r.value?b.tagDisabled:[]),tagWrapper:[b.tagWrapper,s.value?b.tagWrapperBreak:null],tagDisabled:b.tagDisabled,tagRemove:b.tagRemove,tagRemoveIcon:b.tagRemoveIcon,tagsSearchWrapper:b.tagsSearchWrapper,tagsSearch:b.tagsSearch,tagsSearchCopy:b.tagsSearchCopy,placeholder:b.placeholder,caret:[b.caret].concat(l.value?b.caretOpen:[]),clear:b.clear,clearIcon:b.clearIcon,spinner:b.spinner,inifinite:b.inifinite,inifiniteSpinner:b.inifiniteSpinner,dropdown:[b.dropdown].concat(g.value==="top"?b.dropdownTop:[]).concat(!l.value||!i.value||!_.value?b.dropdownHidden:[]),options:[b.options].concat(g.value==="top"?b.optionsTop:[]),group:b.group,groupLabel:k=>{let w=[b.groupLabel];return c(k)?w.push(d(k)?b.groupLabelSelectedPointed:b.groupLabelPointed):d(k)&&f.value?w.push(u(k)?b.groupLabelSelectedDisabled:b.groupLabelSelected):u(k)&&w.push(b.groupLabelDisabled),f.value&&w.push(b.groupLabelPointable),w},groupOptions:b.groupOptions,option:(k,w)=>{let C=[b.option];return c(k)?C.push(d(k)?b.optionSelectedPointed:b.optionPointed):d(k)?C.push(u(k)?b.optionSelectedDisabled:b.optionSelected):(u(k)||w&&u(w))&&C.push(b.optionDisabled),C},noOptions:b.noOptions,noResults:b.noResults,assist:b.assist,fakeInput:b.fakeInput}}),showDropdown:_}}function FC(t,e,n){const{limit:o,infinite:r}=a.toRefs(t),i=n.isOpen,s=n.offset,l=n.search,c=n.pfo,d=n.eo,u=a.ref(null),p=a.ref(null),f=a.computed(()=>s.value<c.value.length),m=g=>{const{isIntersecting:v,target:_}=g[0];if(v){const y=_.offsetParent,b=y.scrollTop;s.value+=o.value==-1?10:o.value,a.nextTick(()=>{y.scrollTop=b})}},h=()=>{i.value&&s.value<c.value.length?u.value.observe(p.value):!i.value&&u.value&&u.value.disconnect()};return a.watch(i,()=>{r.value&&h()}),a.watch(l,()=>{r.value&&(s.value=o.value,h())},{flush:"post"}),a.watch(d,()=>{r.value&&h()},{immediate:!1,flush:"post"}),a.onMounted(()=>{window&&window.IntersectionObserver&&(u.value=new IntersectionObserver(m))}),{hasMore:f,infiniteLoader:p}}function zC(t,e,n){const{placeholder:o,id:r,valueProp:i,label:s,mode:l,groupLabel:c,aria:d,searchable:u}=a.toRefs(t),p=n.pointer,f=n.iv,m=n.hasSelected,h=n.multipleLabelText,g=a.ref(null),v=a.computed(()=>{let O=[];return r&&r.value&&O.push(r.value),O.push("assist"),O.join("-")}),_=a.computed(()=>{let O=[];return r&&r.value&&O.push(r.value),O.push("multiselect-options"),O.join("-")}),y=a.computed(()=>{let O=[];if(r&&r.value&&O.push(r.value),p.value)return O.push(p.value.group?"multiselect-group":"multiselect-option"),O.push(p.value.group?p.value.index:p.value[i.value]),O.join("-")}),b=a.computed(()=>o.value),k=a.computed(()=>l.value!=="single"),w=a.computed(()=>{let O="";return l.value==="single"&&m.value&&(O+=f.value[s.value]),l.value==="multiple"&&m.value&&(O+=h.value),l.value==="tags"&&m.value&&(O+=f.value.map(B=>B[s.value]).join(", ")),O}),C=a.computed(()=>{let O={...d.value};return u.value&&(O["aria-labelledby"]=O["aria-labelledby"]?`${v.value} ${O["aria-labelledby"]}`:v.value,w.value&&O["aria-label"]&&(O["aria-label"]=`${w.value}, ${O["aria-label"]}`)),O}),x=O=>{let B=[];return r&&r.value&&B.push(r.value),B.push("multiselect-option"),B.push(O[i.value]),B.join("-")},S=O=>{let B=[];return r&&r.value&&B.push(r.value),B.push("multiselect-group"),B.push(O.index),B.join("-")},T=O=>{let B=[];return B.push(O),B.join(" ")},A=O=>{let B=[];return B.push(O),B.join(" ")},z=O=>`${O} ❎`;return a.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let O=document.querySelector(`[for="${r.value}"]`);g.value=O?O.innerText:null}}),{arias:C,ariaLabel:w,ariaAssist:v,ariaControls:_,ariaPlaceholder:b,ariaMultiselectable:k,ariaActiveDescendant:y,ariaOptionId:x,ariaOptionLabel:T,ariaGroupId:S,ariaGroupLabel:A,ariaTagLabel:z}}function qC(t,e,n){const{locale:o,fallbackLocale:r}=a.toRefs(t);return{localize:s=>!s||typeof s!="object"?s:s&&s[o.value]?s[o.value]:s&&o.value&&s[o.value.toUpperCase()]?s[o.value.toUpperCase()]:s&&s[r.value]?s[r.value]:s&&r.value&&s[r.value.toUpperCase()]?s[r.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function jC(t,e,n){const o=a.ref(null),r=a.ref(null),i=a.ref(null),s=a.ref(null),l=a.ref(null);return{multiselect:o,wrapper:r,tags:i,input:s,dropdown:l}}function UC(t,e,n,o={}){return n.forEach(r=>{r&&(o={...o,...r(t,e,o)})}),o}var no={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup(t,e){return UC(t,e,[jC,qC,A7,D7,IC,N7,T7,RC,M7,FC,$7,PC,VC,zC])},beforeMount(){var t,e;((e=(t=this.$root.constructor)==null?void 0:t.version)!=null&&e.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const HC=["id","dir"],WC=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],ZC=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],GC=["onKeyup","aria-label"],KC=["onClick"],YC=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],JC=["innerHTML"],XC=["id"],QC=["id"],ew=["id","aria-label","aria-selected"],tw=["data-pointed","onMouseenter","onMousedown"],nw=["innerHTML"],ow=["aria-label"],rw=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],aw=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],iw=["innerHTML"],sw=["innerHTML"],lw=["value"],cw=["name","value"],dw=["name","value"],uw=["id"];function pw(t,e,n,o,r,i){return a.openBlock(),a.createElementBlock("div",{ref:"multiselect",class:a.normalizeClass(t.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:e[10]||(e[10]=(...s)=>t.handleFocusIn&&t.handleFocusIn(...s)),onFocusout:e[11]||(e[11]=(...s)=>t.handleFocusOut&&t.handleFocusOut(...s)),onKeyup:e[12]||(e[12]=(...s)=>t.handleKeyup&&t.handleKeyup(...s)),onKeydown:e[13]||(e[13]=(...s)=>t.handleKeydown&&t.handleKeydown(...s))},[a.createElementVNode("div",a.mergeProps({class:t.classList.wrapper,onMousedown:e[9]||(e[9]=(...s)=>t.handleMousedown&&t.handleMousedown(...s)),ref:"wrapper",tabindex:t.tabindex,"aria-controls":n.searchable?void 0:t.ariaControls,"aria-placeholder":n.searchable?void 0:t.ariaPlaceholder,"aria-expanded":n.searchable?void 0:t.isOpen,"aria-activedescendant":n.searchable?void 0:t.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:t.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:t.arias),[a.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:e[0]||(e[0]=(...s)=>t.handleSearchInput&&t.handleSearchInput(...s)),onKeypress:e[1]||(e[1]=(...s)=>t.handleKeypress&&t.handleKeypress(...s)),onPaste:e[2]||(e[2]=a.withModifiers((...s)=>t.handlePaste&&t.handlePaste(...s),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,ZC)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(t.classList.tags),"data-tags":""},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.iv,(s,l,c)=>a.renderSlot(t.$slots,"tag",{option:s,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass([t.classList.tag,s.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:a.withKeys(d=>t.handleTagRemove(s,d),["enter"]),key:c,"aria-label":t.ariaTagLabel(t.localize(s[n.label]))},[a.createElementVNode("span",{class:a.normalizeClass(t.classList.tagWrapper)},a.toDisplayString(t.localize(s[n.label])),3),!n.disabled&&!s.disabled?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(t.classList.tagRemove),onClick:a.withModifiers(d=>t.handleTagRemove(s,d),["stop"])},[a.createElementVNode("span",{class:a.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,KC)):a.createCommentVNode("v-if",!0)],42,GC))])),256)),a.createElementVNode("div",{class:a.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[a.createCommentVNode(" Used for measuring search width "),a.createElementVNode("span",{class:a.normalizeClass(t.classList.tagsSearchCopy)},a.toDisplayString(t.search),3),a.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:e[3]||(e[3]=(...s)=>t.handleSearchInput&&t.handleSearchInput(...s)),onKeypress:e[4]||(e[4]=(...s)=>t.handleKeypress&&t.handleKeypress(...s)),onPaste:e[5]||(e[5]=a.withModifiers((...s)=>t.handlePaste&&t.handlePaste(...s),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,YC)):a.createCommentVNode("v-if",!0)],2)],2)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?a.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(t.classList.singleLabel)},[a.createElementVNode("span",{class:a.normalizeClass(t.classList.singleLabelText)},a.toDisplayString(t.localize(t.iv[n.label])),3)],2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?a.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,JC)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?a.renderSlot(t.$slots,"placeholder",{key:4},()=>[a.createElementVNode("div",{class:a.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},a.toDisplayString(n.placeholder),3)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Spinner "),n.loading||t.resolving?a.renderSlot(t.$slots,"spinner",{key:5},()=>[a.createElementVNode("span",{class:a.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?a.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[a.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:a.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...s)=>t.clear&&t.clear(...s)),onKeyup:e[7]||(e[7]=a.withKeys((...s)=>t.clear&&t.clear(...s),["enter"]))},[a.createElementVNode("span",{class:a.normalizeClass(t.classList.clearIcon)},null,2)],34)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Caret "),n.caret&&n.showOptions?a.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},()=>[a.createElementVNode("span",{class:a.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...s)=>t.handleCaretClick&&t.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0)],16,WC),a.createCommentVNode(" Options "),(a.openBlock(),a.createBlock(a.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[a.createElementVNode("div",{id:`${n.id}-dropdown`,class:a.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[a.renderSlot(t.$slots,"beforelist",{options:t.fo}),a.createElementVNode("ul",{class:a.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(t.fg,(s,l,c)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(t.classList.group),key:c,id:t.ariaGroupId(s),"aria-label":t.ariaGroupLabel(t.localize(s[n.groupLabel])),"aria-selected":t.isSelected(s),role:"option"},[s.__CREATE__?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(t.classList.groupLabel(s)),"data-pointed":t.isPointed(s),onMouseenter:d=>t.setPointer(s,l),onMousedown:a.withModifiers(d=>t.handleGroupClick(s),["prevent"])},[a.renderSlot(t.$slots,"grouplabel",{group:s,isSelected:t.isSelected,isPointed:t.isPointed},()=>[a.createElementVNode("span",{innerHTML:t.localize(s[n.groupLabel])},null,8,nw)])],42,tw)),a.createElementVNode("ul",{class:a.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(s[n.groupLabel])),role:"group"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.__VISIBLE__,(d,u,p)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(t.classList.option(d,s)),"data-pointed":t.isPointed(d),"data-selected":t.isSelected(d)||void 0,key:p,onMouseenter:f=>t.setPointer(d),onMousedown:a.withModifiers(f=>t.handleOptionClick(d),["prevent"]),id:t.ariaOptionId(d),"aria-selected":t.isSelected(d),"aria-label":t.ariaOptionLabel(t.localize(d[n.label])),role:"option"},[a.renderSlot(t.$slots,"option",{option:d,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[a.createElementVNode("span",null,a.toDisplayString(t.localize(d[n.label])),1)])],42,rw))),128))],10,ow)],10,ew))),128)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(t.fo,(s,l,c)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(t.classList.option(s)),"data-pointed":t.isPointed(s),"data-selected":t.isSelected(s)||void 0,key:c,onMouseenter:d=>t.setPointer(s),onMousedown:a.withModifiers(d=>t.handleOptionClick(s),["prevent"]),id:t.ariaOptionId(s),"aria-selected":t.isSelected(s),"aria-label":t.ariaOptionLabel(t.localize(s[n.label])),role:"option"},[a.renderSlot(t.$slots,"option",{option:s,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[a.createElementVNode("span",null,a.toDisplayString(t.localize(s[n.label])),1)])],42,aw))),128))],10,QC),t.noOptions?a.renderSlot(t.$slots,"nooptions",{key:0},()=>[a.createElementVNode("div",{class:a.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,iw)]):a.createCommentVNode("v-if",!0),t.noResults?a.renderSlot(t.$slots,"noresults",{key:1},()=>[a.createElementVNode("div",{class:a.normalizeClass(t.classList.noResults),innerHTML:t.localize(n.noResultsText)},null,10,sw)]):a.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[a.renderSlot(t.$slots,"infinite",{},()=>[a.createElementVNode("span",{class:a.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):a.createCommentVNode("v-if",!0),a.renderSlot(t.$slots,"afterlist",{options:t.fo})],10,XC)],8,["to","disabled"])),a.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(a.openBlock(),a.createElementBlock("input",{key:0,class:a.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,lw)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Native input support "),n.nativeSupport?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[n.mode=="single"?(a.openBlock(),a.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,cw)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(t.plainValue,(s,l)=>(a.openBlock(),a.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:l},null,8,dw))),128))],64)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},a.toDisplayString(t.ariaLabel),11,uw)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Create height for empty input "),a.createElementVNode("div",{class:a.normalizeClass(t.classList.spacer)},null,2)],42,HC)}no.render=pw,no.__file="src/Multiselect.vue";const Et=a.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(t){const e=t,n=a.toRef(()=>e.appendTo),o=a.ref();return e.detached&&S7({multiselect:o,appendTo:n.value}),(r,i)=>(a.openBlock(),a.createBlock(a.unref(no),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect"},a.createSlots({_:2},[a.renderList(r.$slots,(s,l)=>({name:l,fn:a.withCtx(c=>[a.renderSlot(r.$slots,l,a.normalizeProps(a.guardReactiveProps(c??{})))])}))]),1536))}});var hp;function Mn(){const t=fw(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function fw(){const t=a.getCurrentInstance();if(!t)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return t}a.defineComponent({props:{translation:{type:String,required:!0}},setup(t,{slots:e}){return()=>{const n=t.translation,o=[];let r,i=0;for(;(r=hp.exec(n))!==null;){o.push(n.substring(i,r.index));const s=e[r[1]];s?o.push(...s()):o.push(r[0]),i=hp.lastIndex}return o.push(n.substring(i)),o}}});async function $n(t,e){if(e&&t&&t.length-e.length===1){const n=new Set(e.map(l=>l.id)),o=t.filter(l=>!n.has(l.id));if(o.length!==1)return;const r=o[0].id;await a.nextTick();const i=document.getElementById(r);i==null||i.focus(),await a.nextTick();const s=document.getElementById(r);s==null||s.select()}}const mw={class:"ao-tasks"},hw={class:"ao-tasks__list"},gw=["id","value","readonly","onChange"],bw={class:"ao-tasks__list-footer"},yw=a.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e;a.watch(()=>o.tasks,(f,m)=>{$n(f,m)});const i=a.computed(()=>{var f;return((f=o.users)==null?void 0:f.map(m=>({label:`${m.firstName} ${m.lastName}`,value:m.id,avatar:m.avatarUrl})))??[]}),s=()=>{const f=o.tasks.length,m={name:n("task.defaultName",{idx:f+1}),activityId:o.activityId};r("add",m)},l=(f,m)=>{const g=f.target.value;r("update",{id:m,name:g})},c=(f,m)=>{o.isEditable&&r("update",{id:f,isDone:m})},d=f=>{r("delete",{id:f})},u=(f,m)=>{r("update",{id:m,assigneeId:f[0]??null})},p=f=>{const m=f.target;m==null||m.blur()};return(f,m)=>(a.openBlock(),a.createElementBlock("div",mw,[a.createElementVNode("ul",hw,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.tasks,h=>{var g,v;return a.openBlock(),a.createElementBlock("li",{key:h.id,class:"ao-subtask"},[((g=t.isCheckable)==null?void 0:g.call(t,h))??!1?(a.openBlock(),a.createBlock(he,{key:0,class:"ao-subtask__check","icon-name":h.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>c(h.id,!h.isDone)},null,8,["icon-name","disabled","onClick"])):a.createCommentVNode("",!0),a.createElementVNode("input",{id:h.id,value:h.name,readonly:!t.isEditable,class:a.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":h.isDone}]),type:"text",onChange:_=>l(_,h.id),onKeyup:a.withKeys(p,["enter"])},null,42,gw),m[0]||(m[0]=a.createTextVNode(". ",-1)),!t.isTemplate&&t.users?(a.openBlock(),a.createBlock(Et,{key:1,value:(v=h.assignee)!=null&&v.id?[h.assignee.id]:[],options:i.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:f.$t("feed.filters.assignee.placeholder"),disabled:!t.isEditable,caret:t.isEditable,onChange:_=>u(_,h.id)},{tag:a.withCtx(({option:_,handleTagRemove:y})=>[a.createVNode(An,{"user-name":_.label,"avatar-url":_.avatar,"is-closable":!0,onClose:b=>y(_,b)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):a.createCommentVNode("",!0),t.isEditable?(a.openBlock(),a.createBlock(he,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>d(h.id)},null,8,["onClick"])):a.createCommentVNode("",!0)])}),128))]),a.createElementVNode("div",bw,[t.isEditable?(a.openBlock(),a.createBlock(he,{key:0,label:f.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:s},null,8,["label"])):a.createCommentVNode("",!0)])]))}}),ID="",_w={class:"ao-files__placeholder"},vw={key:0,class:"ao-files__list"},Cw=["href"],ww={class:"ao-file__title"},kw={key:0},xw={class:"ao-files__input"},Ew={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},Sw={class:"ao-button__label"},Tw={class:"ao-files__dropzone"},Aw={class:"ao-files__dropzone-label"},Nw=a.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(t,{emit:e}){const n=e,o=t,r=p=>{n("remove",p)},i=p=>{const f=p.target,m=Array.from(f.files??[]);n("add",m)},s=["dragenter","dragover","dragleave","drop"];a.onMounted(()=>{s.forEach(p=>{document.body.addEventListener(p,f=>f.preventDefault())})}),a.onUnmounted(()=>{s.forEach(p=>{document.body.removeEventListener(p,f=>f.preventDefault())})});const l=a.ref(!1);function c(){o.isEditable&&(l.value=!0)}function d(){l.value=!1}a.watch(l,p=>{n("toggleIsDropActive",p)});function u(p){var m;d();const f=Array.from(((m=p.dataTransfer)==null?void 0:m.files)||[]);p.dataTransfer&&n("add",f)}return(p,f)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":l.value}]),onDrop:a.withModifiers(u,["prevent"]),onDragenter:a.withModifiers(c,["prevent"]),onDragover:a.withModifiers(c,["prevent"]),onDragleave:a.withModifiers(d,["prevent"])},[a.renderSlot(p.$slots,"default",{},()=>[a.createElementVNode("span",_w,a.toDisplayString(p.$t("activity.attachment.placeholder.resting")),1)]),t.attachments?(a.openBlock(),a.createElementBlock("ul",vw,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.attachments,m=>(a.openBlock(),a.createElementBlock("li",{key:m.id,class:"ao-file"},[a.createElementVNode("a",{class:"ao-file__link",href:m.url,target:"_blank",rel:"noopener noreferrer"},[a.createVNode(Ee,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),a.createElementVNode("span",ww,a.toDisplayString(m.name),1)],8,Cw),t.isEditable?(a.openBlock(),a.createBlock(he,{key:0,class:"ao-files__delete-button","icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round",onClick:()=>r(m)},null,8,["onClick"])):a.createCommentVNode("",!0)]))),128)),t.isEditable?(a.openBlock(),a.createElementBlock("li",kw,[a.createElementVNode("label",xw,[a.createElementVNode("div",Ew,[a.createVNode(Ee,{name:"Add",size:"sm"}),a.createElementVNode("span",Sw,a.toDisplayString(p.$t("activity.attachment.button.resting")),1)]),a.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:i},null,32)])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",Tw,[a.createElementVNode("span",Aw,a.toDisplayString(p.$t("activity.attachment.placeholder.active")),1)],512),[[a.vShow,l.value]])],34))}}),RD="";var ke={},gp={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
3
+ `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Il=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,br={},bp={};function Dw(t){var e,n,o=bp[t];if(o)return o;for(o=bp[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)o[t.charCodeAt(e)]=t[e];return o}function qi(t,e,n){var o,r,i,s,l,c="";for(typeof e!="string"&&(n=e,e=qi.defaultChars),typeof n>"u"&&(n=!0),l=Dw(e),o=0,r=t.length;o<r;o++){if(i=t.charCodeAt(o),n&&i===37&&o+2<r&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){c+=t.slice(o,o+3),o+=2;continue}if(i<128){c+=l[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&o+1<r&&(s=t.charCodeAt(o+1),s>=56320&&s<=57343)){c+=encodeURIComponent(t[o]+t[o+1]),o++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(t[o])}return c}qi.defaultChars=";/?:@&=+$,-_.!~*'()#",qi.componentChars="-_.!~*'()";var Bw=qi,yp={};function Lw(t){var e,n,o=yp[t];if(o)return o;for(o=yp[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),o.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),o[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}function ji(t,e){var n;return typeof e!="string"&&(e=ji.defaultChars),n=Lw(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var r,i,s,l,c,d,u,p="";for(r=0,i=o.length;r<i;r+=3){if(s=parseInt(o.slice(r+1,r+3),16),s<128){p+=n[s];continue}if((s&224)===192&&r+3<i&&(l=parseInt(o.slice(r+4,r+6),16),(l&192)===128)){u=s<<6&1984|l&63,u<128?p+="��":p+=String.fromCharCode(u),r+=3;continue}if((s&240)===224&&r+6<i&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16),(l&192)===128&&(c&192)===128)){u=s<<12&61440|l<<6&4032|c&63,u<2048||u>=55296&&u<=57343?p+="���":p+=String.fromCharCode(u),r+=6;continue}if((s&248)===240&&r+9<i&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16),d=parseInt(o.slice(r+10,r+12),16),(l&192)===128&&(c&192)===128&&(d&192)===128)){u=s<<18&1835008|l<<12&258048|c<<6&4032|d&63,u<65536||u>1114111?p+="����":(u-=65536,p+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),r+=9;continue}p+="�"}return p})}ji.defaultChars=";/?:@&=+$,#",ji.componentChars="";var Mw=ji,$w=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function Ui(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Ow=/^([a-z0-9.+-]+:)/i,Iw=/:[0-9]*$/,Rw=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Pw=["<",">",'"',"`"," ","\r",`
4
+ `," "],Vw=["{","}","|","\\","^","`"].concat(Pw),Fw=["'"].concat(Vw),_p=["%","/","?",";","#"].concat(Fw),vp=["/","?","#"],zw=255,Cp=/^[+a-z0-9A-Z_-]{0,63}$/,qw=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,wp={javascript:!0,"javascript:":!0},kp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function jw(t,e){if(t&&t instanceof Ui)return t;var n=new Ui;return n.parse(t,e),n}Ui.prototype.parse=function(t,e){var n,o,r,i,s,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=Rw.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var d=Ow.exec(l);if(d&&(d=d[0],r=d.toLowerCase(),this.protocol=d,l=l.substr(d.length)),(e||d||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=l.substr(0,2)==="//",s&&!(d&&wp[d])&&(l=l.substr(2),this.slashes=!0)),!wp[d]&&(s||d&&!kp[d])){var u=-1;for(n=0;n<vp.length;n++)i=l.indexOf(vp[n]),i!==-1&&(u===-1||i<u)&&(u=i);var p,f;for(u===-1?f=l.lastIndexOf("@"):f=l.lastIndexOf("@",u),f!==-1&&(p=l.slice(0,f),l=l.slice(f+1),this.auth=p),u=-1,n=0;n<_p.length;n++)i=l.indexOf(_p[n]),i!==-1&&(u===-1||i<u)&&(u=i);u===-1&&(u=l.length),l[u-1]===":"&&u--;var m=l.slice(0,u);l=l.slice(u),this.parseHost(m),this.hostname=this.hostname||"";var h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){var g=this.hostname.split(/\./);for(n=0,o=g.length;n<o;n++){var v=g[n];if(v&&!v.match(Cp)){for(var _="",y=0,b=v.length;y<b;y++)v.charCodeAt(y)>127?_+="x":_+=v[y];if(!_.match(Cp)){var k=g.slice(0,n),w=g.slice(n+1),C=v.match(qw);C&&(k.push(C[1]),w.unshift(C[2])),w.length&&(l=w.join(".")+l),this.hostname=k.join(".");break}}}}this.hostname.length>zw&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var x=l.indexOf("#");x!==-1&&(this.hash=l.substr(x),l=l.slice(0,x));var S=l.indexOf("?");return S!==-1&&(this.search=l.substr(S),l=l.slice(0,S)),l&&(this.pathname=l),kp[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Ui.prototype.parseHost=function(t){var e=Iw.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Uw=jw;br.encode=Bw,br.decode=Mw,br.format=$w,br.parse=Uw;var Ao={},Rl,xp;function Ep(){return xp||(xp=1,Rl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Rl}var Pl,Sp;function Tp(){return Sp||(Sp=1,Pl=/[\0-\x1F\x7F-\x9F]/),Pl}var Vl,Ap;function Hw(){return Ap||(Ap=1,Vl=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Vl}var Fl,Np;function Dp(){return Np||(Np=1,Fl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Fl}var Bp;function Ww(){return Bp||(Bp=1,Ao.Any=Ep(),Ao.Cc=Tp(),Ao.Cf=Hw(),Ao.P=Il,Ao.Z=Dp()),Ao}(function(t){function e(L){return Object.prototype.toString.call(L)}function n(L){return e(L)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(L,I){return o.call(L,I)}function i(L){var I=Array.prototype.slice.call(arguments,1);return I.forEach(function(P){if(P){if(typeof P!="object")throw new TypeError(P+"must be object");Object.keys(P).forEach(function(G){L[G]=P[G]})}}),L}function s(L,I,P){return[].concat(L.slice(0,I),P,L.slice(I+1))}function l(L){return!(L>=55296&&L<=57343||L>=64976&&L<=65007||(L&65535)===65535||(L&65535)===65534||L>=0&&L<=8||L===11||L>=14&&L<=31||L>=127&&L<=159||L>1114111)}function c(L){if(L>65535){L-=65536;var I=55296+(L>>10),P=56320+(L&1023);return String.fromCharCode(I,P)}return String.fromCharCode(L)}var d=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(d.source+"|"+u.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,m=gp;function h(L,I){var P;return r(m,I)?m[I]:I.charCodeAt(0)===35&&f.test(I)&&(P=I[1].toLowerCase()==="x"?parseInt(I.slice(2),16):parseInt(I.slice(1),10),l(P))?c(P):L}function g(L){return L.indexOf("\\")<0?L:L.replace(d,"$1")}function v(L){return L.indexOf("\\")<0&&L.indexOf("&")<0?L:L.replace(p,function(I,P,G){return P||h(I,G)})}var _=/[&<>"]/,y=/[&<>"]/g,b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function k(L){return b[L]}function w(L){return _.test(L)?L.replace(y,k):L}var C=/[.?*+^$[\]\\(){}|-]/g;function x(L){return L.replace(C,"\\$&")}function S(L){switch(L){case 9:case 32:return!0}return!1}function T(L){if(L>=8192&&L<=8202)return!0;switch(L){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var A=Il;function z(L){return A.test(L)}function O(L){switch(L){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function B(L){return L=L.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(L=L.replace(/ẞ/g,"ß")),L.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=br,t.lib.ucmicro=Ww(),t.assign=i,t.isString=n,t.has=r,t.unescapeMd=g,t.unescapeAll=v,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=w,t.arrayReplaceAt=s,t.isSpace=S,t.isWhiteSpace=T,t.isMdAsciiPunct=O,t.isPunctChar=z,t.escapeRE=x,t.normalizeReference=B})(ke);var Hi={},Zw=function(e,n,o){var r,i,s,l,c=-1,d=e.posMax,u=e.pos;for(e.pos=n+1,r=1;e.pos<d;){if(s=e.src.charCodeAt(e.pos),s===93&&(r--,r===0)){i=!0;break}if(l=e.pos,e.md.inline.skipToken(e),s===91){if(l===e.pos-1)r++;else if(o)return e.pos=u,-1}}return i&&(c=e.pos),e.pos=u,c},Lp=ke.unescapeAll,Gw=function(e,n,o){var r,i,s=n,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(s)===60){for(s++;s<o;){if(r=e.charCodeAt(s),r===10||r===60)return l;if(r===62)return l.pos=s+1,l.str=Lp(e.slice(n+1,s)),l.ok=!0,l;if(r===92&&s+1<o){s+=2;continue}s++}return l}for(i=0;s<o&&(r=e.charCodeAt(s),!(r===32||r<32||r===127));){if(r===92&&s+1<o){if(e.charCodeAt(s+1)===32)break;s+=2;continue}if(r===40&&(i++,i>32))return l;if(r===41){if(i===0)break;i--}s++}return n===s||i!==0||(l.str=Lp(e.slice(n,s)),l.pos=s,l.ok=!0),l},Kw=ke.unescapeAll,Yw=function(e,n,o){var r,i,s=0,l=n,c={ok:!1,pos:0,lines:0,str:""};if(l>=o||(i=e.charCodeAt(l),i!==34&&i!==39&&i!==40))return c;for(l++,i===40&&(i=41);l<o;){if(r=e.charCodeAt(l),r===i)return c.pos=l+1,c.lines=s,c.str=Kw(e.slice(n+1,l)),c.ok=!0,c;if(r===40&&i===41)return c;r===10?s++:r===92&&l+1<o&&(l++,e.charCodeAt(l)===10&&s++),l++}return c};Hi.parseLinkLabel=Zw,Hi.parseLinkDestination=Gw,Hi.parseLinkTitle=Yw;var Jw=ke.assign,Xw=ke.unescapeAll,No=ke.escapeHtml,hn={};hn.code_inline=function(t,e,n,o,r){var i=t[e];return"<code"+r.renderAttrs(i)+">"+No(i.content)+"</code>"},hn.code_block=function(t,e,n,o,r){var i=t[e];return"<pre"+r.renderAttrs(i)+"><code>"+No(t[e].content)+`</code></pre>
5
5
  `},hn.fence=function(t,e,n,o,r){var i=t[e],s=i.info?Xw(i.info).trim():"",l="",c="",d,u,p,f,m;return s&&(p=s.split(/(\s+)/g),l=p[0],c=p.slice(2).join("")),n.highlight?d=n.highlight(i.content,l,c)||No(i.content):d=No(i.content),d.indexOf("<pre")===0?d+`
6
6
  `:s?(u=i.attrIndex("class"),f=i.attrs?i.attrs.slice():[],u<0?f.push(["class",n.langPrefix+l]):(f[u]=f[u].slice(),f[u][1]+=" "+n.langPrefix+l),m={attrs:f},"<pre><code"+r.renderAttrs(m)+">"+d+`</code></pre>
7
7
  `):"<pre><code"+r.renderAttrs(i)+">"+d+`</code></pre>
@@ -10,50 +10,50 @@
10
10
  `},hn.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
11
11
  `:`<br>
12
12
  `:`
13
- `},hn.text=function(t,e){return No(t[e].content)},hn.html_block=function(t,e){return t[e].content},hn.html_inline=function(t,e){return t[e].content};function _r(){this.rules=Jw({},hn)}_r.prototype.renderAttrs=function(e){var n,o,r;if(!e.attrs)return"";for(r="",n=0,o=e.attrs.length;n<o;n++)r+=" "+No(e.attrs[n][0])+'="'+No(e.attrs[n][1])+'"';return r},_r.prototype.renderToken=function(e,n,o){var r,i="",s=!1,l=e[n];return l.hidden?"":(l.block&&l.nesting!==-1&&n&&e[n-1].hidden&&(i+=`
13
+ `},hn.text=function(t,e){return No(t[e].content)},hn.html_block=function(t,e){return t[e].content},hn.html_inline=function(t,e){return t[e].content};function yr(){this.rules=Jw({},hn)}yr.prototype.renderAttrs=function(e){var n,o,r;if(!e.attrs)return"";for(r="",n=0,o=e.attrs.length;n<o;n++)r+=" "+No(e.attrs[n][0])+'="'+No(e.attrs[n][1])+'"';return r},yr.prototype.renderToken=function(e,n,o){var r,i="",s=!1,l=e[n];return l.hidden?"":(l.block&&l.nesting!==-1&&n&&e[n-1].hidden&&(i+=`
14
14
  `),i+=(l.nesting===-1?"</":"<")+l.tag,i+=this.renderAttrs(l),l.nesting===0&&o.xhtmlOut&&(i+=" /"),l.block&&(s=!0,l.nesting===1&&n+1<e.length&&(r=e[n+1],(r.type==="inline"||r.hidden||r.nesting===-1&&r.tag===l.tag)&&(s=!1))),i+=s?`>
15
- `:">",i)},_r.prototype.renderInline=function(t,e,n){for(var o,r="",i=this.rules,s=0,l=t.length;s<l;s++)o=t[s].type,typeof i[o]<"u"?r+=i[o](t,s,e,n,this):r+=this.renderToken(t,s,e);return r},_r.prototype.renderInlineAsText=function(t,e,n){for(var o="",r=0,i=t.length;r<i;r++)t[r].type==="text"?o+=t[r].content:t[r].type==="image"?o+=this.renderInlineAsText(t[r].children,e,n):t[r].type==="softbreak"&&(o+=`
16
- `);return o},_r.prototype.render=function(t,e,n){var o,r,i,s="",l=this.rules;for(o=0,r=t.length;o<r;o++)i=t[o].type,i==="inline"?s+=this.renderInline(t[o].children,e,n):typeof l[i]<"u"?s+=l[i](t,o,e,n,this):s+=this.renderToken(t,o,e,n);return s};var Qw=_r;function Yt(){this.__rules__=[],this.__cache__=null}Yt.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},Yt.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(o){o.enabled&&(n&&o.alt.indexOf(n)<0||t.__cache__[n].push(o.fn))})})},Yt.prototype.at=function(t,e,n){var o=this.__find__(t),r=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=r.alt||[],this.__cache__=null},Yt.prototype.before=function(t,e,n,o){var r=this.__find__(t),i=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r,0,{name:e,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},Yt.prototype.after=function(t,e,n,o){var r=this.__find__(t),i=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r+1,0,{name:e,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},Yt.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null},Yt.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!0,n.push(o)},this),this.__cache__=null,n},Yt.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)},Yt.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!1,n.push(o)},this),this.__cache__=null,n},Yt.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var zl=Yt,ek=/\r\n?|\n/g,tk=/\0/g,nk=function(e){var n;n=e.src.replace(ek,`
17
- `),n=n.replace(tk,"�"),e.src=n},ok=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},rk=function(e){var n=e.tokens,o,r,i;for(r=0,i=n.length;r<i;r++)o=n[r],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},ak=ke.arrayReplaceAt;function ik(t){return/^<a[>\s]/i.test(t)}function sk(t){return/^<\/a\s*>/i.test(t)}var lk=function(e){var n,o,r,i,s,l,c,d,u,p,f,m,h,g,v,y,_=e.tokens,b;if(e.md.options.linkify){for(o=0,r=_.length;o<r;o++)if(!(_[o].type!=="inline"||!e.md.linkify.pretest(_[o].content)))for(i=_[o].children,h=0,n=i.length-1;n>=0;n--){if(l=i[n],l.type==="link_close"){for(n--;i[n].level!==l.level&&i[n].type!=="link_open";)n--;continue}if(l.type==="html_inline"&&(ik(l.content)&&h>0&&h--,sk(l.content)&&h++),!(h>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(u=l.content,b=e.md.linkify.match(u),c=[],m=l.level,f=0,b.length>0&&b[0].index===0&&n>0&&i[n-1].type==="text_special"&&(b=b.slice(1)),d=0;d<b.length;d++)g=b[d].url,v=e.md.normalizeLink(g),e.md.validateLink(v)&&(y=b[d].text,b[d].schema?b[d].schema==="mailto:"&&!/^mailto:/i.test(y)?y=e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):y=e.md.normalizeLinkText(y):y=e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),p=b[d].index,p>f&&(s=new e.Token("text","",0),s.content=u.slice(f,p),s.level=m,c.push(s)),s=new e.Token("link_open","a",1),s.attrs=[["href",v]],s.level=m++,s.markup="linkify",s.info="auto",c.push(s),s=new e.Token("text","",0),s.content=y,s.level=m,c.push(s),s=new e.Token("link_close","a",-1),s.level=--m,s.markup="linkify",s.info="auto",c.push(s),f=b[d].lastIndex);f<u.length&&(s=new e.Token("text","",0),s.content=u.slice(f),s.level=m,c.push(s)),_[o].children=i=ak(i,n,c)}}}},Mp=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ck=/\((c|tm|r)\)/i,dk=/\((c|tm|r)\)/ig,uk={c:"©",r:"®",tm:"™"};function pk(t,e){return uk[e.toLowerCase()]}function fk(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&(n.content=n.content.replace(dk,pk)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function mk(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&Mp.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}var hk=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(ck.test(e.tokens[n].content)&&fk(e.tokens[n].children),Mp.test(e.tokens[n].content)&&mk(e.tokens[n].children))},$p=ke.isWhiteSpace,Op=ke.isPunctChar,Ip=ke.isMdAsciiPunct,gk=/['"]/,Rp=/['"]/g,Pp="’";function Wi(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function bk(t,e){var n,o,r,i,s,l,c,d,u,p,f,m,h,g,v,y,_,b,k,w,C;for(k=[],n=0;n<t.length;n++){for(o=t[n],c=t[n].level,_=k.length-1;_>=0&&!(k[_].level<=c);_--);if(k.length=_+1,o.type==="text"){r=o.content,s=0,l=r.length;e:for(;s<l&&(Rp.lastIndex=s,i=Rp.exec(r),!!i);){if(v=y=!0,s=i.index+1,b=i[0]==="'",u=32,i.index-1>=0)u=r.charCodeAt(i.index-1);else for(_=n-1;_>=0&&!(t[_].type==="softbreak"||t[_].type==="hardbreak");_--)if(t[_].content){u=t[_].content.charCodeAt(t[_].content.length-1);break}if(p=32,s<l)p=r.charCodeAt(s);else for(_=n+1;_<t.length&&!(t[_].type==="softbreak"||t[_].type==="hardbreak");_++)if(t[_].content){p=t[_].content.charCodeAt(0);break}if(f=Ip(u)||Op(String.fromCharCode(u)),m=Ip(p)||Op(String.fromCharCode(p)),h=$p(u),g=$p(p),g?v=!1:m&&(h||f||(v=!1)),h?y=!1:f&&(g||m||(y=!1)),p===34&&i[0]==='"'&&u>=48&&u<=57&&(y=v=!1),v&&y&&(v=f,y=m),!v&&!y){b&&(o.content=Wi(o.content,i.index,Pp));continue}if(y){for(_=k.length-1;_>=0&&(d=k[_],!(k[_].level<c));_--)if(d.single===b&&k[_].level===c){d=k[_],b?(w=e.md.options.quotes[2],C=e.md.options.quotes[3]):(w=e.md.options.quotes[0],C=e.md.options.quotes[1]),o.content=Wi(o.content,i.index,C),t[d.token].content=Wi(t[d.token].content,d.pos,w),s+=C.length-1,d.token===n&&(s+=w.length-1),r=o.content,l=r.length,k.length=_;continue e}}v?k.push({token:n,pos:i.index,single:b,level:c}):y&&b&&(o.content=Wi(o.content,i.index,Pp))}}}}var _k=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!gk.test(e.tokens[n].content)||bk(e.tokens[n].children,e)},yk=function(e){var n,o,r,i,s,l,c=e.tokens;for(n=0,o=c.length;n<o;n++)if(c[n].type==="inline"){for(r=c[n].children,s=r.length,i=0;i<s;i++)r[i].type==="text_special"&&(r[i].type="text");for(i=l=0;i<s;i++)r[i].type==="text"&&i+1<s&&r[i+1].type==="text"?r[i+1].content=r[i].content+r[i+1].content:(i!==l&&(r[l]=r[i]),l++);i!==l&&(r.length=l)}};function yr(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}yr.prototype.attrIndex=function(e){var n,o,r;if(!this.attrs)return-1;for(n=this.attrs,o=0,r=n.length;o<r;o++)if(n[o][0]===e)return o;return-1},yr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},yr.prototype.attrSet=function(e,n){var o=this.attrIndex(e),r=[e,n];o<0?this.attrPush(r):this.attrs[o]=r},yr.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o},yr.prototype.attrJoin=function(e,n){var o=this.attrIndex(e);o<0?this.attrPush([e,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var ql=yr,vk=ql;function Vp(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}Vp.prototype.Token=vk;var Ck=Vp,wk=zl,jl=[["normalize",nk],["block",ok],["inline",rk],["linkify",lk],["replacements",hk],["smartquotes",_k],["text_join",yk]];function Ul(){this.ruler=new wk;for(var t=0;t<jl.length;t++)this.ruler.push(jl[t][0],jl[t][1])}Ul.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)},Ul.prototype.State=Ck;var kk=Ul,Hl=ke.isSpace;function Wl(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function Fp(t){var e=[],n=0,o=t.length,r,i=!1,s=0,l="";for(r=t.charCodeAt(n);n<o;)r===124&&(i?(l+=t.substring(s,n-1),s=n):(e.push(l+t.substring(s,n)),l="",s=n+1)),i=r===92,n++,r=t.charCodeAt(n);return e.push(l+t.substring(s)),e}var xk=function(e,n,o,r){var i,s,l,c,d,u,p,f,m,h,g,v,y,_,b,k,w,C;if(n+2>o||(u=n+1,e.sCount[u]<e.blkIndent)||e.sCount[u]-e.blkIndent>=4||(l=e.bMarks[u]+e.tShift[u],l>=e.eMarks[u])||(w=e.src.charCodeAt(l++),w!==124&&w!==45&&w!==58)||l>=e.eMarks[u]||(C=e.src.charCodeAt(l++),C!==124&&C!==45&&C!==58&&!Hl(C))||w===45&&Hl(C))return!1;for(;l<e.eMarks[u];){if(i=e.src.charCodeAt(l),i!==124&&i!==45&&i!==58&&!Hl(i))return!1;l++}for(s=Wl(e,n+1),p=s.split("|"),h=[],c=0;c<p.length;c++){if(g=p[c].trim(),!g){if(c===0||c===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;g.charCodeAt(g.length-1)===58?h.push(g.charCodeAt(0)===58?"center":"right"):g.charCodeAt(0)===58?h.push("left"):h.push("")}if(s=Wl(e,n).trim(),s.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(p=Fp(s),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),f=p.length,f===0||f!==h.length))return!1;if(r)return!0;for(_=e.parentType,e.parentType="table",k=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),m.map=v=[n,0],m=e.push("thead_open","thead",1),m.map=[n,n+1],m=e.push("tr_open","tr",1),m.map=[n,n+1],c=0;c<p.length;c++)m=e.push("th_open","th",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=p[c].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),u=n+2;u<o&&!(e.sCount[u]<e.blkIndent);u++){for(b=!1,c=0,d=k.length;c<d;c++)if(k[c](e,u,o,!0)){b=!0;break}if(b||(s=Wl(e,u).trim(),!s)||e.sCount[u]-e.blkIndent>=4)break;for(p=Fp(s),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),u===n+2&&(m=e.push("tbody_open","tbody",1),m.map=y=[n+2,0]),m=e.push("tr_open","tr",1),m.map=[u,u+1],c=0;c<f;c++)m=e.push("td_open","td",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=p[c]?p[c].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return y&&(m=e.push("tbody_close","tbody",-1),y[1]=u),m=e.push("table_close","table",-1),v[1]=u,e.parentType=_,e.line=u,!0},Ek=function(e,n,o){var r,i,s;if(e.sCount[n]-e.blkIndent<4)return!1;for(i=r=n+1;r<o;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}return e.line=i,s=e.push("code_block","code",0),s.content=e.getLines(n,i,4+e.blkIndent,!1)+`
18
- `,s.map=[n,e.line],!0},Sk=function(e,n,o,r){var i,s,l,c,d,u,p,f=!1,m=e.bMarks[n]+e.tShift[n],h=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||m+3>h||(i=e.src.charCodeAt(m),i!==126&&i!==96)||(d=m,m=e.skipChars(m,i),s=m-d,s<3)||(p=e.src.slice(d,m),l=e.src.slice(m,h),i===96&&l.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(c=n;c++,!(c>=o||(m=d=e.bMarks[c]+e.tShift[c],h=e.eMarks[c],m<h&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(m)===i&&!(e.sCount[c]-e.blkIndent>=4)&&(m=e.skipChars(m,i),!(m-d<s)&&(m=e.skipSpaces(m),!(m<h)))){f=!0;break}return s=e.sCount[n],e.line=c+(f?1:0),u=e.push("fence","code",0),u.info=l,u.content=e.getLines(n+1,c,s,!0),u.markup=p,u.map=[n,e.line],!0},Tk=ke.isSpace,Ak=function(e,n,o,r){var i,s,l,c,d,u,p,f,m,h,g,v,y,_,b,k,w,C,x,S,T=e.lineMax,A=e.bMarks[n]+e.tShift[n],z=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(A)!==62)return!1;if(r)return!0;for(h=[],g=[],_=[],b=[],C=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",f=n;f<o&&(S=e.sCount[f]<e.blkIndent,A=e.bMarks[f]+e.tShift[f],z=e.eMarks[f],!(A>=z));f++){if(e.src.charCodeAt(A++)===62&&!S){for(c=e.sCount[f]+1,e.src.charCodeAt(A)===32?(A++,c++,i=!1,k=!0):e.src.charCodeAt(A)===9?(k=!0,(e.bsCount[f]+c)%4===3?(A++,c++,i=!1):i=!0):k=!1,m=c,h.push(e.bMarks[f]),e.bMarks[f]=A;A<z&&(s=e.src.charCodeAt(A),Tk(s));){s===9?m+=4-(m+e.bsCount[f]+(i?1:0))%4:m++;A++}u=A>=z,g.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(k?1:0),_.push(e.sCount[f]),e.sCount[f]=m-c,b.push(e.tShift[f]),e.tShift[f]=A-e.bMarks[f];continue}if(u)break;for(w=!1,l=0,d=C.length;l<d;l++)if(C[l](e,f,o,!0)){w=!0;break}if(w){e.lineMax=f,e.blkIndent!==0&&(h.push(e.bMarks[f]),g.push(e.bsCount[f]),b.push(e.tShift[f]),_.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}h.push(e.bMarks[f]),g.push(e.bsCount[f]),b.push(e.tShift[f]),_.push(e.sCount[f]),e.sCount[f]=-1}for(v=e.blkIndent,e.blkIndent=0,x=e.push("blockquote_open","blockquote",1),x.markup=">",x.map=p=[n,0],e.md.block.tokenize(e,n,f),x=e.push("blockquote_close","blockquote",-1),x.markup=">",e.lineMax=T,e.parentType=y,p[1]=e.line,l=0;l<b.length;l++)e.bMarks[l+n]=h[l],e.tShift[l+n]=b[l],e.sCount[l+n]=_[l],e.bsCount[l+n]=g[l];return e.blkIndent=v,!0},Nk=ke.isSpace,Dk=function(e,n,o,r){var i,s,l,c,d=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(i=e.src.charCodeAt(d++),i!==42&&i!==45&&i!==95))return!1;for(s=1;d<u;){if(l=e.src.charCodeAt(d++),l!==i&&!Nk(l))return!1;l===i&&s++}return s<3?!1:(r||(e.line=n+1,c=e.push("hr","hr",0),c.map=[n,e.line],c.markup=Array(s+1).join(String.fromCharCode(i))),!0)},zp=ke.isSpace;function qp(t,e){var n,o,r,i;return o=t.bMarks[e]+t.tShift[e],r=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<r&&(i=t.src.charCodeAt(o),!zp(i))?-1:o}function jp(t,e){var n,o=t.bMarks[e]+t.tShift[e],r=o,i=t.eMarks[e];if(r+1>=i||(n=t.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=i)return-1;if(n=t.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r<i&&(n=t.src.charCodeAt(r),!zp(n))?-1:r}function Bk(t,e){var n,o,r=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===r&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var Lk=function(e,n,o,r){var i,s,l,c,d,u,p,f,m,h,g,v,y,_,b,k,w,C,x,S,T,A,z,O,B,L,I,P=n,G=!1,R=!0;if(e.sCount[P]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[P]-e.listIndent>=4&&e.sCount[P]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[P]>=e.blkIndent&&(G=!0),(A=jp(e,P))>=0){if(p=!0,O=e.bMarks[P]+e.tShift[P],y=Number(e.src.slice(O,A-1)),G&&y!==1)return!1}else if((A=qp(e,P))>=0)p=!1;else return!1;if(G&&e.skipSpaces(A)>=e.eMarks[P])return!1;if(r)return!0;for(v=e.src.charCodeAt(A-1),g=e.tokens.length,p?(I=e.push("ordered_list_open","ol",1),y!==1&&(I.attrs=[["start",y]])):I=e.push("bullet_list_open","ul",1),I.map=h=[P,0],I.markup=String.fromCharCode(v),z=!1,L=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";P<o;){for(T=A,_=e.eMarks[P],u=b=e.sCount[P]+A-(e.bMarks[P]+e.tShift[P]);T<_;){if(i=e.src.charCodeAt(T),i===9)b+=4-(b+e.bsCount[P])%4;else if(i===32)b++;else break;T++}if(s=T,s>=_?d=1:d=b-u,d>4&&(d=1),c=u+d,I=e.push("list_item_open","li",1),I.markup=String.fromCharCode(v),I.map=f=[P,0],p&&(I.info=e.src.slice(O,A-1)),S=e.tight,x=e.tShift[P],C=e.sCount[P],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[P]=s-e.bMarks[P],e.sCount[P]=b,s>=_&&e.isEmpty(P+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,P,o,!0),(!e.tight||z)&&(R=!1),z=e.line-P>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[P]=x,e.sCount[P]=C,e.tight=S,I=e.push("list_item_close","li",-1),I.markup=String.fromCharCode(v),P=e.line,f[1]=P,P>=o||e.sCount[P]<e.blkIndent||e.sCount[P]-e.blkIndent>=4)break;for(B=!1,l=0,m=L.length;l<m;l++)if(L[l](e,P,o,!0)){B=!0;break}if(B)break;if(p){if(A=jp(e,P),A<0)break;O=e.bMarks[P]+e.tShift[P]}else if(A=qp(e,P),A<0)break;if(v!==e.src.charCodeAt(A-1))break}return p?I=e.push("ordered_list_close","ol",-1):I=e.push("bullet_list_close","ul",-1),I.markup=String.fromCharCode(v),h[1]=P,e.line=P,e.parentType=w,R&&Bk(e,g),!0},Mk=ke.normalizeReference,Zi=ke.isSpace,$k=function(e,n,o,r){var i,s,l,c,d,u,p,f,m,h,g,v,y,_,b,k,w=0,C=e.bMarks[n]+e.tShift[n],x=e.eMarks[n],S=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(C)!==91)return!1;for(;++C<x;)if(e.src.charCodeAt(C)===93&&e.src.charCodeAt(C-1)!==92){if(C+1===x||e.src.charCodeAt(C+1)!==58)return!1;break}for(c=e.lineMax,b=e.md.block.ruler.getRules("reference"),h=e.parentType,e.parentType="reference";S<c&&!e.isEmpty(S);S++)if(!(e.sCount[S]-e.blkIndent>3)&&!(e.sCount[S]<0)){for(_=!1,u=0,p=b.length;u<p;u++)if(b[u](e,S,c,!0)){_=!0;break}if(_)break}for(y=e.getLines(n,S,e.blkIndent,!1).trim(),x=y.length,C=1;C<x;C++){if(i=y.charCodeAt(C),i===91)return!1;if(i===93){m=C;break}else i===10?w++:i===92&&(C++,C<x&&y.charCodeAt(C)===10&&w++)}if(m<0||y.charCodeAt(m+1)!==58)return!1;for(C=m+2;C<x;C++)if(i=y.charCodeAt(C),i===10)w++;else if(!Zi(i))break;if(g=e.md.helpers.parseLinkDestination(y,C,x),!g.ok||(d=e.md.normalizeLink(g.str),!e.md.validateLink(d)))return!1;for(C=g.pos,w+=g.lines,s=C,l=w,v=C;C<x;C++)if(i=y.charCodeAt(C),i===10)w++;else if(!Zi(i))break;for(g=e.md.helpers.parseLinkTitle(y,C,x),C<x&&v!==C&&g.ok?(k=g.str,C=g.pos,w+=g.lines):(k="",C=s,w=l);C<x&&(i=y.charCodeAt(C),!!Zi(i));)C++;if(C<x&&y.charCodeAt(C)!==10&&k)for(k="",C=s,w=l;C<x&&(i=y.charCodeAt(C),!!Zi(i));)C++;return C<x&&y.charCodeAt(C)!==10||(f=Mk(y.slice(1,m)),!f)?!1:(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:k,href:d}),e.parentType=h,e.line=n+w+1),!0)},Ok=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gi={},Ik="[a-zA-Z_:][a-zA-Z0-9:._-]*",Rk="[^\"'=<>`\\x00-\\x20]+",Pk="'[^']*'",Vk='"[^"]*"',Fk="(?:"+Rk+"|"+Pk+"|"+Vk+")",zk="(?:\\s+"+Ik+"(?:\\s*=\\s*"+Fk+")?)",Up="<[A-Za-z][A-Za-z0-9\\-]*"+zk+"*\\s*\\/?>",Hp="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",qk="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",jk="<[?][\\s\\S]*?[?]>",Uk="<![A-Z]+\\s+[^>]*>",Hk="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Wk=new RegExp("^(?:"+Up+"|"+Hp+"|"+qk+"|"+jk+"|"+Uk+"|"+Hk+")"),Zk=new RegExp("^(?:"+Up+"|"+Hp+")");Gi.HTML_TAG_RE=Wk,Gi.HTML_OPEN_CLOSE_TAG_RE=Zk;var Gk=Ok,Kk=Gi.HTML_OPEN_CLOSE_TAG_RE,vr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Gk.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Kk.source+"\\s*$"),/^$/,!1]],Yk=function(e,n,o,r){var i,s,l,c,d=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(d)!==60)return!1;for(c=e.src.slice(d,u),i=0;i<vr.length&&!vr[i][0].test(c);i++);if(i===vr.length)return!1;if(r)return vr[i][2];if(s=n+1,!vr[i][1].test(c)){for(;s<o&&!(e.sCount[s]<e.blkIndent);s++)if(d=e.bMarks[s]+e.tShift[s],u=e.eMarks[s],c=e.src.slice(d,u),vr[i][1].test(c)){c.length!==0&&s++;break}}return e.line=s,l=e.push("html_block","",0),l.map=[n,s],l.content=e.getLines(n,s,e.blkIndent,!0),!0},Wp=ke.isSpace,Jk=function(e,n,o,r){var i,s,l,c,d=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(i=e.src.charCodeAt(d),i!==35||d>=u))return!1;for(s=1,i=e.src.charCodeAt(++d);i===35&&d<u&&s<=6;)s++,i=e.src.charCodeAt(++d);return s>6||d<u&&!Wp(i)?!1:(r||(u=e.skipSpacesBack(u,d),l=e.skipCharsBack(u,35,d),l>d&&Wp(e.src.charCodeAt(l-1))&&(u=l),e.line=n+1,c=e.push("heading_open","h"+String(s),1),c.markup="########".slice(0,s),c.map=[n,e.line],c=e.push("inline","",0),c.content=e.src.slice(d,u).trim(),c.map=[n,e.line],c.children=[],c=e.push("heading_close","h"+String(s),-1),c.markup="########".slice(0,s)),!0)},Xk=function(e,n,o){var r,i,s,l,c,d,u,p,f,m=n+1,h,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";m<o&&!e.isEmpty(m);m++)if(!(e.sCount[m]-e.blkIndent>3)){if(e.sCount[m]>=e.blkIndent&&(d=e.bMarks[m]+e.tShift[m],u=e.eMarks[m],d<u&&(f=e.src.charCodeAt(d),(f===45||f===61)&&(d=e.skipChars(d,f),d=e.skipSpaces(d),d>=u)))){p=f===61?1:2;break}if(!(e.sCount[m]<0)){for(i=!1,s=0,l=g.length;s<l;s++)if(g[s](e,m,o,!0)){i=!0;break}if(i)break}}return p?(r=e.getLines(n,m,e.blkIndent,!1).trim(),e.line=m+1,c=e.push("heading_open","h"+String(p),1),c.markup=String.fromCharCode(f),c.map=[n,e.line],c=e.push("inline","",0),c.content=r,c.map=[n,e.line-1],c.children=[],c=e.push("heading_close","h"+String(p),-1),c.markup=String.fromCharCode(f),e.parentType=h,!0):!1},Qk=function(e,n,o){var r,i,s,l,c,d,u=n+1,p=e.md.block.ruler.getRules("paragraph");for(d=e.parentType,e.parentType="paragraph";u<o&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)&&!(e.sCount[u]<0)){for(i=!1,s=0,l=p.length;s<l;s++)if(p[s](e,u,o,!0)){i=!0;break}if(i)break}return r=e.getLines(n,u,e.blkIndent,!1).trim(),e.line=u,c=e.push("paragraph_open","p",1),c.map=[n,e.line],c=e.push("inline","",0),c.content=r,c.map=[n,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=d,!0},Zp=ql,Ki=ke.isSpace;function gn(t,e,n,o){var r,i,s,l,c,d,u,p;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",i=this.src,p=!1,s=l=d=u=0,c=i.length;l<c;l++){if(r=i.charCodeAt(l),!p)if(Ki(r)){d++,r===9?u+=4-u%4:u++;continue}else p=!0;(r===10||l===c-1)&&(r!==10&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(d),this.sCount.push(u),this.bsCount.push(0),p=!1,d=0,u=0,s=l+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}gn.prototype.push=function(t,e,n){var o=new Zp(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o},gn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},gn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},gn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!Ki(n));e++);return e},gn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Ki(this.src.charCodeAt(--e)))return e+1;return e},gn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e},gn.prototype.skipCharsBack=function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e},gn.prototype.getLines=function(e,n,o,r){var i,s,l,c,d,u,p,f=e;if(e>=n)return"";for(u=new Array(n-e),i=0;f<n;f++,i++){for(s=0,p=c=this.bMarks[f],f+1<n||r?d=this.eMarks[f]+1:d=this.eMarks[f];c<d&&s<o;){if(l=this.src.charCodeAt(c),Ki(l))l===9?s+=4-(s+this.bsCount[f])%4:s++;else if(c-p<this.tShift[f])s++;else break;c++}s>o?u[i]=new Array(s-o+1).join(" ")+this.src.slice(c,d):u[i]=this.src.slice(c,d)}return u.join("")},gn.prototype.Token=Zp;var e4=gn,t4=zl,Yi=[["table",xk,["paragraph","reference"]],["code",Ek],["fence",Sk,["paragraph","reference","blockquote","list"]],["blockquote",Ak,["paragraph","reference","blockquote","list"]],["hr",Dk,["paragraph","reference","blockquote","list"]],["list",Lk,["paragraph","reference","blockquote"]],["reference",$k],["html_block",Yk,["paragraph","reference","blockquote"]],["heading",Jk,["paragraph","reference","blockquote"]],["lheading",Xk],["paragraph",Qk]];function Ji(){this.ruler=new t4;for(var t=0;t<Yi.length;t++)this.ruler.push(Yi[t][0],Yi[t][1],{alt:(Yi[t][2]||[]).slice()})}Ji.prototype.tokenize=function(t,e,n){for(var o,r,i,s=this.ruler.getRules(""),l=s.length,c=e,d=!1,u=t.md.options.maxNesting;c<n&&(t.line=c=t.skipEmptyLines(c),!(c>=n||t.sCount[c]<t.blkIndent));){if(t.level>=u){t.line=n;break}for(i=t.line,r=0;r<l;r++)if(o=s[r](t,c,n,!1),o){if(i>=t.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");t.tight=!d,t.isEmpty(t.line-1)&&(d=!0),c=t.line,c<n&&t.isEmpty(c)&&(d=!0,c++,t.line=c)}},Ji.prototype.parse=function(t,e,n,o){var r;t&&(r=new this.State(t,e,n,o),this.tokenize(r,r.line,r.lineMax))},Ji.prototype.State=e4;var n4=Ji;function o4(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var r4=function(e,n){for(var o=e.pos;o<e.posMax&&!o4(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},a4=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,i4=function(e,n){var o,r,i,s,l,c,d,u;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,r=e.posMax,o+3>r)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(i=e.pending.match(a4),!i)||(s=i[1],l=e.md.linkify.matchAtStart(e.src.slice(o-s.length)),!l)||(c=l.url,c.length<=s.length)||(c=c.replace(/\*+$/,""),d=e.md.normalizeLink(c),!e.md.validateLink(d))?!1:(n||(e.pending=e.pending.slice(0,-s.length),u=e.push("link_open","a",1),u.attrs=[["href",d]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(c),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=c.length-s.length,!0)},s4=ke.isSpace,l4=function(e,n){var o,r,i,s=e.pos;if(e.src.charCodeAt(s)!==10)return!1;if(o=e.pending.length-1,r=e.posMax,!n)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(i=o-1;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(s++;s<r&&s4(e.src.charCodeAt(s));)s++;return e.pos=s,!0},c4=ke.isSpace,Zl=[],Gp=0;Gp<256;Gp++)Zl.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Zl[t.charCodeAt(0)]=1});var d4=function(e,n){var o,r,i,s,l,c=e.pos,d=e.posMax;if(e.src.charCodeAt(c)!==92||(c++,c>=d))return!1;if(o=e.src.charCodeAt(c),o===10){for(n||e.push("hardbreak","br",0),c++;c<d&&(o=e.src.charCodeAt(c),!!c4(o));)c++;return e.pos=c,!0}return s=e.src[c],o>=55296&&o<=56319&&c+1<d&&(r=e.src.charCodeAt(c+1),r>=56320&&r<=57343&&(s+=e.src[c+1],c++)),i="\\"+s,n||(l=e.push("text_special","",0),o<256&&Zl[o]!==0?l.content=s:l.content=i,l.markup=i,l.info="escape"),e.pos=c+1,!0},u4=function(e,n){var o,r,i,s,l,c,d,u,p=e.pos,f=e.src.charCodeAt(p);if(f!==96)return!1;for(o=p,p++,r=e.posMax;p<r&&e.src.charCodeAt(p)===96;)p++;if(i=e.src.slice(o,p),d=i.length,e.backticksScanned&&(e.backticks[d]||0)<=o)return n||(e.pending+=i),e.pos+=d,!0;for(c=p;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<r&&e.src.charCodeAt(c)===96;)c++;if(u=c-l,u===d)return n||(s=e.push("code_inline","code",0),s.markup=i,s.content=e.src.slice(p,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[u]=l}return e.backticksScanned=!0,n||(e.pending+=i),e.pos+=d,!0},Xi={};Xi.tokenize=function(e,n){var o,r,i,s,l,c=e.pos,d=e.src.charCodeAt(c);if(n||d!==126||(r=e.scanDelims(e.pos,!0),s=r.length,l=String.fromCharCode(d),s<2))return!1;for(s%2&&(i=e.push("text","",0),i.content=l,s--),o=0;o<s;o+=2)i=e.push("text","",0),i.content=l+l,e.delimiters.push({marker:d,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function Kp(t,e){var n,o,r,i,s,l=[],c=e.length;for(n=0;n<c;n++)r=e[n],r.marker===126&&r.end!==-1&&(i=e[r.end],s=t.tokens[r.token],s.type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",s=t.tokens[i.token],s.type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="",t.tokens[i.token-1].type==="text"&&t.tokens[i.token-1].content==="~"&&l.push(i.token-1));for(;l.length;){for(n=l.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(s=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=s)}}Xi.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(Kp(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&Kp(e,o[n].delimiters)};var Qi={};Qi.tokenize=function(e,n){var o,r,i,s=e.pos,l=e.src.charCodeAt(s);if(n||l!==95&&l!==42)return!1;for(r=e.scanDelims(e.pos,l===42),o=0;o<r.length;o++)i=e.push("text","",0),i.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function Yp(t,e){var n,o,r,i,s,l,c=e.length;for(n=c-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(r=e[o.end],l=n>0&&e[n-1].end===o.end+1&&e[n-1].marker===o.marker&&e[n-1].token===o.token-1&&e[o.end+1].token===r.token+1,s=String.fromCharCode(o.marker),i=t.tokens[o.token],i.type=l?"strong_open":"em_open",i.tag=l?"strong":"em",i.nesting=1,i.markup=l?s+s:s,i.content="",i=t.tokens[r.token],i.type=l?"strong_close":"em_close",i.tag=l?"strong":"em",i.nesting=-1,i.markup=l?s+s:s,i.content="",l&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}Qi.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(Yp(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&Yp(e,o[n].delimiters)};var p4=ke.normalizeReference,Gl=ke.isSpace,f4=function(e,n){var o,r,i,s,l,c,d,u,p,f="",m="",h=e.pos,g=e.posMax,v=e.pos,y=!0;if(e.src.charCodeAt(e.pos)!==91||(l=e.pos+1,s=e.md.helpers.parseLinkLabel(e,e.pos,!0),s<0))return!1;if(c=s+1,c<g&&e.src.charCodeAt(c)===40){for(y=!1,c++;c<g&&(r=e.src.charCodeAt(c),!(!Gl(r)&&r!==10));c++);if(c>=g)return!1;if(v=c,d=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),d.ok){for(f=e.md.normalizeLink(d.str),e.md.validateLink(f)?c=d.pos:f="",v=c;c<g&&(r=e.src.charCodeAt(c),!(!Gl(r)&&r!==10));c++);if(d=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&v!==c&&d.ok)for(m=d.str,c=d.pos;c<g&&(r=e.src.charCodeAt(c),!(!Gl(r)&&r!==10));c++);}(c>=g||e.src.charCodeAt(c)!==41)&&(y=!0),c++}if(y){if(typeof e.env.references>"u")return!1;if(c<g&&e.src.charCodeAt(c)===91?(v=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?i=e.src.slice(v,c++):c=s+1):c=s+1,i||(i=e.src.slice(l,s)),u=e.env.references[p4(i)],!u)return e.pos=h,!1;f=u.href,m=u.title}return n||(e.pos=l,e.posMax=s,p=e.push("link_open","a",1),p.attrs=o=[["href",f]],m&&o.push(["title",m]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,p=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},m4=ke.normalizeReference,Kl=ke.isSpace,h4=function(e,n){var o,r,i,s,l,c,d,u,p,f,m,h,g,v="",y=e.pos,_=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(c=e.pos+2,l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),l<0))return!1;if(d=l+1,d<_&&e.src.charCodeAt(d)===40){for(d++;d<_&&(r=e.src.charCodeAt(d),!(!Kl(r)&&r!==10));d++);if(d>=_)return!1;for(g=d,p=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),p.ok&&(v=e.md.normalizeLink(p.str),e.md.validateLink(v)?d=p.pos:v=""),g=d;d<_&&(r=e.src.charCodeAt(d),!(!Kl(r)&&r!==10));d++);if(p=e.md.helpers.parseLinkTitle(e.src,d,e.posMax),d<_&&g!==d&&p.ok)for(f=p.str,d=p.pos;d<_&&(r=e.src.charCodeAt(d),!(!Kl(r)&&r!==10));d++);else f="";if(d>=_||e.src.charCodeAt(d)!==41)return e.pos=y,!1;d++}else{if(typeof e.env.references>"u")return!1;if(d<_&&e.src.charCodeAt(d)===91?(g=d+1,d=e.md.helpers.parseLinkLabel(e,d),d>=0?s=e.src.slice(g,d++):d=l+1):d=l+1,s||(s=e.src.slice(c,l)),u=e.env.references[m4(s)],!u)return e.pos=y,!1;v=u.href,f=u.title}return n||(i=e.src.slice(c,l),e.md.inline.parse(i,e.md,e.env,h=[]),m=e.push("image","img",0),m.attrs=o=[["src",v],["alt",""]],m.children=h,m.content=i,f&&o.push(["title",f])),e.pos=d,e.posMax=_,!0},g4=/^([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])?)*)$/,b4=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,_4=function(e,n){var o,r,i,s,l,c,d=e.pos;if(e.src.charCodeAt(d)!==60)return!1;for(l=e.pos,c=e.posMax;;){if(++d>=c||(s=e.src.charCodeAt(d),s===60))return!1;if(s===62)break}return o=e.src.slice(l+1,d),b4.test(o)?(r=e.md.normalizeLink(o),e.md.validateLink(r)?(n||(i=e.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(o),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=o.length+2,!0):!1):g4.test(o)?(r=e.md.normalizeLink("mailto:"+o),e.md.validateLink(r)?(n||(i=e.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(o),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=o.length+2,!0):!1):!1},y4=Gi.HTML_TAG_RE;function v4(t){return/^<a[>\s]/i.test(t)}function C4(t){return/^<\/a\s*>/i.test(t)}function w4(t){var e=t|32;return e>=97&&e<=122}var k4=function(e,n){var o,r,i,s,l=e.pos;return!e.md.options.html||(i=e.posMax,e.src.charCodeAt(l)!==60||l+2>=i)||(o=e.src.charCodeAt(l+1),o!==33&&o!==63&&o!==47&&!w4(o))||(r=e.src.slice(l).match(y4),!r)?!1:(n||(s=e.push("html_inline","",0),s.content=r[0],v4(s.content)&&e.linkLevel++,C4(s.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},Jp=gp,x4=ke.has,E4=ke.isValidEntityCode,Xp=ke.fromCodePoint,S4=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,T4=/^&([a-z][a-z0-9]{1,31});/i,A4=function(e,n){var o,r,i,s,l=e.pos,c=e.posMax;if(e.src.charCodeAt(l)!==38||l+1>=c)return!1;if(o=e.src.charCodeAt(l+1),o===35){if(i=e.src.slice(l).match(S4),i)return n||(r=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),s=e.push("text_special","",0),s.content=E4(r)?Xp(r):Xp(65533),s.markup=i[0],s.info="entity"),e.pos+=i[0].length,!0}else if(i=e.src.slice(l).match(T4),i&&x4(Jp,i[1]))return n||(s=e.push("text_special","",0),s.content=Jp[i[1]],s.markup=i[0],s.info="entity"),e.pos+=i[0].length,!0;return!1};function Qp(t){var e,n,o,r,i,s,l,c,d={},u=t.length;if(u){var p=0,f=-2,m=[];for(e=0;e<u;e++)if(o=t[e],m.push(0),(t[p].marker!==o.marker||f!==o.token-1)&&(p=e),f=o.token,o.length=o.length||0,!!o.close){for(d.hasOwnProperty(o.marker)||(d[o.marker]=[-1,-1,-1,-1,-1,-1]),i=d[o.marker][(o.open?3:0)+o.length%3],n=p-m[p]-1,s=n;n>i;n-=m[n]+1)if(r=t[n],r.marker===o.marker&&r.open&&r.end<0&&(l=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.length%3!==0||o.length%3!==0)&&(l=!0),!l)){c=n>0&&!t[n-1].open?m[n-1]+1:0,m[e]=e-n+c,m[n]=c,o.open=!1,r.end=e,r.close=!1,s=-1,f=-2;break}s!==-1&&(d[o.marker][(o.open?3:0)+(o.length||0)%3]=s)}}}var N4=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(Qp(e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&Qp(o[n].delimiters)},D4=function(e){var n,o,r=0,i=e.tokens,s=e.tokens.length;for(n=o=0;n<s;n++)i[n].nesting<0&&r--,i[n].level=r,i[n].nesting>0&&r++,i[n].type==="text"&&n+1<s&&i[n+1].type==="text"?i[n+1].content=i[n].content+i[n+1].content:(n!==o&&(i[o]=i[n]),o++);n!==o&&(i.length=o)},Yl=ql,e1=ke.isWhiteSpace,t1=ke.isPunctChar,n1=ke.isMdAsciiPunct;function ya(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}ya.prototype.pushPending=function(){var t=new Yl("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},ya.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new Yl(t,e,n),r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o},ya.prototype.scanDelims=function(t,e){var n=t,o,r,i,s,l,c,d,u,p,f=!0,m=!0,h=this.posMax,g=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<h&&this.src.charCodeAt(n)===g;)n++;return i=n-t,r=n<h?this.src.charCodeAt(n):32,d=n1(o)||t1(String.fromCharCode(o)),p=n1(r)||t1(String.fromCharCode(r)),c=e1(o),u=e1(r),u?f=!1:p&&(c||d||(f=!1)),c?m=!1:d&&(u||p||(m=!1)),e?(s=f,l=m):(s=f&&(!m||d),l=m&&(!f||p)),{can_open:s,can_close:l,length:i}},ya.prototype.Token=Yl;var B4=ya,o1=zl,Jl=[["text",r4],["linkify",i4],["newline",l4],["escape",d4],["backticks",u4],["strikethrough",Xi.tokenize],["emphasis",Qi.tokenize],["link",f4],["image",h4],["autolink",_4],["html_inline",k4],["entity",A4]],Xl=[["balance_pairs",N4],["strikethrough",Xi.postProcess],["emphasis",Qi.postProcess],["fragments_join",D4]];function va(){var t;for(this.ruler=new o1,t=0;t<Jl.length;t++)this.ruler.push(Jl[t][0],Jl[t][1]);for(this.ruler2=new o1,t=0;t<Xl.length;t++)this.ruler2.push(Xl[t][0],Xl[t][1])}va.prototype.skipToken=function(t){var e,n,o=t.pos,r=this.ruler.getRules(""),i=r.length,s=t.md.options.maxNesting,l=t.cache;if(typeof l[o]<"u"){t.pos=l[o];return}if(t.level<s){for(n=0;n<i;n++)if(t.level++,e=r[n](t,!0),t.level--,e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,l[o]=t.pos},va.prototype.tokenize=function(t){for(var e,n,o,r=this.ruler.getRules(""),i=r.length,s=t.posMax,l=t.md.options.maxNesting;t.pos<s;){if(o=t.pos,t.level<l){for(n=0;n<i;n++)if(e=r[n](t,!1),e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=s)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},va.prototype.parse=function(t,e,n,o){var r,i,s,l=new this.State(t,e,n,o);for(this.tokenize(l),i=this.ruler2.getRules(""),s=i.length,r=0;r<s;r++)i[r](l)},va.prototype.State=B4;var L4=va,Ql,r1;function M4(){return r1||(r1=1,Ql=function(t){var e={};t=t||{},e.src_Any=Ep().source,e.src_Cc=Tp().source,e.src_Z=Dp().source,e.src_P=Il.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Ql}function ec(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}function es(t){return Object.prototype.toString.call(t)}function $4(t){return es(t)==="[object String]"}function O4(t){return es(t)==="[object Object]"}function I4(t){return es(t)==="[object RegExp]"}function a1(t){return es(t)==="[object Function]"}function R4(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var i1={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function P4(t){return Object.keys(t||{}).reduce(function(e,n){return e||i1.hasOwnProperty(n)},!1)}var V4={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},F4="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",z4="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function q4(t){t.__index__=-1,t.__text_cache__=""}function j4(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function s1(){return function(t,e){e.normalize(t)}}function ts(t){var e=t.re=M4()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(F4),n.push(e.src_xn),e.src_tlds=n.join("|");function o(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var r=[];t.__compiled__={};function i(l,c){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c)}Object.keys(t.__schemas__).forEach(function(l){var c=t.__schemas__[l];if(c!==null){var d={validate:null,link:null};if(t.__compiled__[l]=d,O4(c)){I4(c.validate)?d.validate=j4(c.validate):a1(c.validate)?d.validate=c.validate:i(l,c),a1(c.normalize)?d.normalize=c.normalize:c.normalize?i(l,c):d.normalize=s1();return}if($4(c)){r.push(l);return}i(l,c)}}),r.forEach(function(l){t.__compiled__[t.__schemas__[l]]&&(t.__compiled__[l].validate=t.__compiled__[t.__schemas__[l]].validate,t.__compiled__[l].normalize=t.__compiled__[t.__schemas__[l]].normalize)}),t.__compiled__[""]={validate:null,normalize:s1()};var s=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(R4).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),q4(t)}function U4(t,e){var n=t.__index__,o=t.__last_index__,r=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=r,this.text=r,this.url=r}function tc(t,e){var n=new U4(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function St(t,e){if(!(this instanceof St))return new St(t,e);e||P4(t)&&(e=t,t={}),this.__opts__=ec({},i1,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ec({},V4,t),this.__compiled__={},this.__tlds__=z4,this.__tlds_replaced__=!1,this.re={},ts(this)}St.prototype.add=function(e,n){return this.__schemas__[e]=n,ts(this),this},St.prototype.set=function(e){return this.__opts__=ec(this.__opts__,e),this},St.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,r,i,s,l,c,d,u;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(i=this.testSchemaAt(e,n[2],c.lastIndex),i){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=o.index+o[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=e.indexOf("@"),u>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(s=r.index+r[1].length,l=r.index+r[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=l))),this.__index__>=0},St.prototype.pretest=function(e){return this.re.pretest.test(e)},St.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0},St.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(tc(this,n)),n=this.__last_index__);for(var r=n?e.slice(n):e;this.test(r);)o.push(tc(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null},St.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var o=this.testSchemaAt(e,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,tc(this,0)):null},St.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,r,i){return o!==i[r-1]}).reverse(),ts(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ts(this),this)},St.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},St.prototype.onCompile=function(){};var H4=St;const Cr=2147483647,bn=36,nc=1,Ca=26,W4=38,Z4=700,l1=72,c1=128,d1="-",G4=/^xn--/,K4=/[^\0-\x7F]/,Y4=/[\x2E\u3002\uFF0E\uFF61]/g,J4={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},oc=bn-nc,_n=Math.floor,rc=String.fromCharCode;function oo(t){throw new RangeError(J4[t])}function X4(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function u1(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(Y4,".");const r=t.split("."),i=X4(r,e).join(".");return o+i}function ac(t){const e=[];let n=0;const o=t.length;for(;n<o;){const r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<o){const i=t.charCodeAt(n++);(i&64512)==56320?e.push(((r&1023)<<10)+(i&1023)+65536):(e.push(r),n--)}else e.push(r)}return e}const p1=t=>String.fromCodePoint(...t),Q4=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:bn},f1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},m1=function(t,e,n){let o=0;for(t=n?_n(t/Z4):t>>1,t+=_n(t/e);t>oc*Ca>>1;o+=bn)t=_n(t/oc);return _n(o+(oc+1)*t/(t+W4))},ic=function(t){const e=[],n=t.length;let o=0,r=c1,i=l1,s=t.lastIndexOf(d1);s<0&&(s=0);for(let l=0;l<s;++l)t.charCodeAt(l)>=128&&oo("not-basic"),e.push(t.charCodeAt(l));for(let l=s>0?s+1:0;l<n;){const c=o;for(let u=1,p=bn;;p+=bn){l>=n&&oo("invalid-input");const f=Q4(t.charCodeAt(l++));f>=bn&&oo("invalid-input"),f>_n((Cr-o)/u)&&oo("overflow"),o+=f*u;const m=p<=i?nc:p>=i+Ca?Ca:p-i;if(f<m)break;const h=bn-m;u>_n(Cr/h)&&oo("overflow"),u*=h}const d=e.length+1;i=m1(o-c,d,c==0),_n(o/d)>Cr-r&&oo("overflow"),r+=_n(o/d),o%=d,e.splice(o++,0,r)}return String.fromCodePoint(...e)},sc=function(t){const e=[];t=ac(t);const n=t.length;let o=c1,r=0,i=l1;for(const c of t)c<128&&e.push(rc(c));const s=e.length;let l=s;for(s&&e.push(d1);l<n;){let c=Cr;for(const u of t)u>=o&&u<c&&(c=u);const d=l+1;c-o>_n((Cr-r)/d)&&oo("overflow"),r+=(c-o)*d,o=c;for(const u of t)if(u<o&&++r>Cr&&oo("overflow"),u===o){let p=r;for(let f=bn;;f+=bn){const m=f<=i?nc:f>=i+Ca?Ca:f-i;if(p<m)break;const h=p-m,g=bn-m;e.push(rc(f1(m+h%g,0))),p=_n(h/g)}e.push(rc(f1(p,0))),i=m1(r,d,l===s),r=0,++l}++r,++o}return e.join("")},h1=function(t){return u1(t,function(e){return G4.test(e)?ic(e.slice(4).toLowerCase()):e})},g1=function(t){return u1(t,function(e){return K4.test(e)?"xn--"+sc(e):e})},e8=qv(Object.freeze(Object.defineProperty({__proto__:null,decode:ic,default:{version:"2.1.0",ucs2:{decode:ac,encode:p1},decode:ic,encode:sc,toASCII:g1,toUnicode:h1},encode:sc,toASCII:g1,toUnicode:h1,ucs2decode:ac,ucs2encode:p1},Symbol.toStringTag,{value:"Module"})));var t8={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},n8={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},o8={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},wa=ke,r8=Hi,a8=Qw,i8=kk,s8=n4,l8=L4,c8=H4,Do=br,b1=e8,d8={default:t8,zero:n8,commonmark:o8},u8=/^(vbscript|javascript|file|data):/,p8=/^data:image\/(gif|png|jpeg|webp);/;function f8(t){var e=t.trim().toLowerCase();return u8.test(e)?!!p8.test(e):!0}var _1=["http:","https:","mailto:"];function m8(t){var e=Do.parse(t,!0);if(e.hostname&&(!e.protocol||_1.indexOf(e.protocol)>=0))try{e.hostname=b1.toASCII(e.hostname)}catch{}return Do.encode(Do.format(e))}function h8(t){var e=Do.parse(t,!0);if(e.hostname&&(!e.protocol||_1.indexOf(e.protocol)>=0))try{e.hostname=b1.toUnicode(e.hostname)}catch{}return Do.decode(Do.format(e),Do.decode.defaultChars+"%")}function jt(t,e){if(!(this instanceof jt))return new jt(t,e);e||wa.isString(t)||(e=t||{},t="default"),this.inline=new l8,this.block=new s8,this.core=new i8,this.renderer=new a8,this.linkify=new c8,this.validateLink=f8,this.normalizeLink=m8,this.normalizeLinkText=h8,this.utils=wa,this.helpers=wa.assign({},r8),this.options={},this.configure(t),e&&this.set(e)}jt.prototype.set=function(t){return wa.assign(this.options,t),this},jt.prototype.configure=function(t){var e=this,n;if(wa.isString(t)&&(n=t,t=d8[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this},jt.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this},jt.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this},jt.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},jt.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},jt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},jt.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},jt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var g8=jt,b8=g8;const _8=zv(b8);/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function y1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function y8(t){if(Array.isArray(t))return t}function v8(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,s,l=[],c=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(u){d=!0,r=u}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw r}}return l}}function C8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w8(t,e){return y8(t)||v8(t,e)||k8(t,e)||C8()}function k8(t,e){if(t){if(typeof t=="string")return y1(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y1(t,e):void 0}}const v1=Object.entries,C1=Object.setPrototypeOf,x8=Object.isFrozen,E8=Object.getPrototypeOf,S8=Object.getOwnPropertyDescriptor;let Qe=Object.freeze,et=Object.seal,wr=Object.create,w1=typeof Reflect<"u"&&Reflect,lc=w1.apply,cc=w1.construct;Qe||(Qe=function(e){return e}),et||(et=function(e){return e}),lc||(lc=function(e,n){for(var o=arguments.length,r=new Array(o>2?o-2:0),i=2;i<o;i++)r[i-2]=arguments[i];return e.apply(n,r)}),cc||(cc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return new e(...o)});const kr=ze(Array.prototype.forEach),T8=ze(Array.prototype.lastIndexOf),k1=ze(Array.prototype.pop),xr=ze(Array.prototype.push),A8=ze(Array.prototype.splice),ro=Array.isArray,ka=ze(String.prototype.toLowerCase),dc=ze(String.prototype.toString),x1=ze(String.prototype.match),xa=ze(String.prototype.replace),E1=ze(String.prototype.indexOf),N8=ze(String.prototype.trim),D8=ze(Number.prototype.toString),B8=ze(Boolean.prototype.toString),S1=typeof BigInt>"u"?null:ze(BigInt.prototype.toString),T1=typeof Symbol>"u"?null:ze(Symbol.prototype.toString),Ge=ze(Object.prototype.hasOwnProperty),Ea=ze(Object.prototype.toString),Ke=ze(RegExp.prototype.test),Bo=L8(TypeError);function ze(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return lc(t,e,o)}}function L8(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return cc(t,n)}}function _e(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ka;if(C1&&C1(t,null),!ro(e))return t;let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(x8(e)||(e[o]=i),r=i)}t[r]=!0}return t}function M8(t){for(let e=0;e<t.length;e++)Ge(t,e)||(t[e]=null);return t}function at(t){const e=wr(null);for(const o of v1(t)){var n=w8(o,2);const r=n[0],i=n[1];Ge(t,r)&&(ro(i)?e[r]=M8(i):i&&typeof i=="object"&&i.constructor===Object?e[r]=at(i):e[r]=i)}return e}function $8(t){switch(typeof t){case"string":return t;case"number":return D8(t);case"boolean":return B8(t);case"bigint":return S1?S1(t):"0";case"symbol":return T1?T1(t):"Symbol()";case"undefined":return Ea(t);case"function":case"object":{if(t===null)return Ea(t);const e=t,n=Jt(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:Ea(o)}return Ea(t)}default:return Ea(t)}}function Jt(t,e){for(;t!==null;){const o=S8(t,e);if(o){if(o.get)return ze(o.get);if(typeof o.value=="function")return ze(o.value)}t=E8(t)}function n(){return null}return n}function O8(t){try{return Ke(t,""),!0}catch{return!1}}const A1=Qe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),uc=Qe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pc=Qe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I8=Qe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),fc=Qe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),R8=Qe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N1=Qe(["#text"]),D1=Qe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),mc=Qe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B1=Qe(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ns=Qe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),P8=et(/{{[\w\W]*|^[\w\W]*}}/g),V8=et(/<%[\w\W]*|^[\w\W]*%>/g),F8=et(/\${[\w\W]*/g),z8=et(/^data-[\-\w.\u00B7-\uFFFF]+$/),q8=et(/^aria-[\-\w]+$/),L1=et(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j8=et(/^(?:\w+script|data):/i),U8=et(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),H8=et(/^html$/i),W8=et(/^[a-z][.\w]*(-[.\w]+)+$/i),M1=et(/<[/\w!]/g),$1=et(/<[/\w]/g),Z8=et(/<\/no(script|embed|frames)/i),G8=et(/\/>/i),Tt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},K8=function(){return typeof window>"u"?null:window},Y8=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));const i="dompurify"+(o?"#"+o:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},O1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ao=function(e,n,o,r){return Ge(e,n)&&ro(e[n])?_e(r.base?at(r.base):{},e[n],r.transform):o};function I1(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:K8();const e=Q=>I1(Q);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Tt.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,r=o.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,s=t.Node,l=t.Element,c=t.NodeFilter,d=t.NamedNodeMap;d===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const u=t.DOMParser,p=t.trustedTypes,f=l.prototype,m=Jt(f,"cloneNode"),h=Jt(f,"remove"),g=Jt(f,"nextSibling"),v=Jt(f,"childNodes"),y=Jt(f,"parentNode"),_=Jt(f,"shadowRoot"),b=Jt(f,"attributes"),k=s&&s.prototype?Jt(s.prototype,"nodeType"):null,w=s&&s.prototype?Jt(s.prototype,"nodeName"):null,C=s&&s.prototype?Jt(s.prototype,"ownerDocument"):null;if(typeof i=="function"){const Q=n.createElement("template");Q.content&&Q.content.ownerDocument&&(n=Q.content.ownerDocument)}let x,S="",T,A=!1,z=0;const O=function(){if(z>0)throw Bo('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},B=function(E){O(),z++;try{return x.createHTML(E)}finally{z--}},L=function(E){O(),z++;try{return x.createScriptURL(E)}finally{z--}},I=function(){return A||(T=Y8(p,r),A=!0),T},P=n,G=P.implementation,R=P.createNodeIterator,D=P.createDocumentFragment,K=P.getElementsByTagName,F=o.importNode;let U=O1();e.isSupported=typeof v1=="function"&&typeof y=="function"&&G&&G.createHTMLDocument!==void 0;const ce=P8,ee=V8,ae=F8,q=z8,ne=q8,$=j8,Y=U8,be=W8;let Ze=L1,pe=null;const Ce=_e({},[...A1,...uc,...pc,...fc,...N1]);let xe=null;const bt=_e({},[...D1,...mc,...B1,...ns]);let De=Object.seal(wr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_t=null,Lt=null;const Pe=Object.seal(wr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let yt=!0,Mt=!0,bo=!1,or=!0,Ve=!1,vt=!0,lt=!1,sn=!1,Un=null,_o=null,rr=!1,yo=!1,Wr=!1,Zr=!1,Hn=!0,En=!1;const rl="user-content-";let oi=!0,ln=!1,$t={},Ot=null;const Gr=_e({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let al=null;const ri=_e({},["audio","video","img","source","image","track"]);let It=null;const Kr=_e({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vo="http://www.w3.org/1998/Math/MathML",Yr="http://www.w3.org/2000/svg",Rt="http://www.w3.org/1999/xhtml";let Co=Rt,ar=!1,ai=null;const ru=_e({},[vo,Yr,Rt],dc),il=Qe(["mi","mo","mn","ms","mtext"]);let Pt=_e({},il);const sl=Qe(["annotation-xml"]);let ii=_e({},sl);const au=_e({},["title","style","font","a","script"]);let ir=null;const si=["application/xhtml+xml","text/html"],li="text/html";let Ae=null,cn=null;const ci=n.createElement("form"),ll=function(E){return E instanceof RegExp||E instanceof Function},wo=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(cn&&cn===E)return;(!E||typeof E!="object")&&(E={}),E=at(E),ir=si.indexOf(E.PARSER_MEDIA_TYPE)===-1?li:E.PARSER_MEDIA_TYPE,Ae=ir==="application/xhtml+xml"?dc:ka,pe=ao(E,"ALLOWED_TAGS",Ce,{transform:Ae}),xe=ao(E,"ALLOWED_ATTR",bt,{transform:Ae}),ai=ao(E,"ALLOWED_NAMESPACES",ru,{transform:dc}),It=ao(E,"ADD_URI_SAFE_ATTR",Kr,{transform:Ae,base:Kr}),al=ao(E,"ADD_DATA_URI_TAGS",ri,{transform:Ae,base:ri}),Ot=ao(E,"FORBID_CONTENTS",Gr,{transform:Ae}),_t=ao(E,"FORBID_TAGS",at({}),{transform:Ae}),Lt=ao(E,"FORBID_ATTR",at({}),{transform:Ae}),$t=Ge(E,"USE_PROFILES")?E.USE_PROFILES&&typeof E.USE_PROFILES=="object"?at(E.USE_PROFILES):E.USE_PROFILES:!1,yt=E.ALLOW_ARIA_ATTR!==!1,Mt=E.ALLOW_DATA_ATTR!==!1,bo=E.ALLOW_UNKNOWN_PROTOCOLS||!1,or=E.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ve=E.SAFE_FOR_TEMPLATES||!1,vt=E.SAFE_FOR_XML!==!1,lt=E.WHOLE_DOCUMENT||!1,yo=E.RETURN_DOM||!1,Wr=E.RETURN_DOM_FRAGMENT||!1,Zr=E.RETURN_TRUSTED_TYPE||!1,rr=E.FORCE_BODY||!1,Hn=E.SANITIZE_DOM!==!1,En=E.SANITIZE_NAMED_PROPS||!1,oi=E.KEEP_CONTENT!==!1,ln=E.IN_PLACE||!1,Ze=O8(E.ALLOWED_URI_REGEXP)?E.ALLOWED_URI_REGEXP:L1,Co=typeof E.NAMESPACE=="string"?E.NAMESPACE:Rt,Pt=Ge(E,"MATHML_TEXT_INTEGRATION_POINTS")&&E.MATHML_TEXT_INTEGRATION_POINTS&&typeof E.MATHML_TEXT_INTEGRATION_POINTS=="object"?at(E.MATHML_TEXT_INTEGRATION_POINTS):_e({},il),ii=Ge(E,"HTML_INTEGRATION_POINTS")&&E.HTML_INTEGRATION_POINTS&&typeof E.HTML_INTEGRATION_POINTS=="object"?at(E.HTML_INTEGRATION_POINTS):_e({},sl);const M=Ge(E,"CUSTOM_ELEMENT_HANDLING")&&E.CUSTOM_ELEMENT_HANDLING&&typeof E.CUSTOM_ELEMENT_HANDLING=="object"?at(E.CUSTOM_ELEMENT_HANDLING):wr(null);if(De=wr(null),Ge(M,"tagNameCheck")&&ll(M.tagNameCheck)&&(De.tagNameCheck=M.tagNameCheck),Ge(M,"attributeNameCheck")&&ll(M.attributeNameCheck)&&(De.attributeNameCheck=M.attributeNameCheck),Ge(M,"allowCustomizedBuiltInElements")&&typeof M.allowCustomizedBuiltInElements=="boolean"&&(De.allowCustomizedBuiltInElements=M.allowCustomizedBuiltInElements),et(De),Ve&&(Mt=!1),Wr&&(yo=!0),$t&&(pe=_e({},N1),xe=wr(null),$t.html===!0&&(_e(pe,A1),_e(xe,D1)),$t.svg===!0&&(_e(pe,uc),_e(xe,mc),_e(xe,ns)),$t.svgFilters===!0&&(_e(pe,pc),_e(xe,mc),_e(xe,ns)),$t.mathMl===!0&&(_e(pe,fc),_e(xe,B1),_e(xe,ns))),Pe.tagCheck=null,Pe.attributeCheck=null,Ge(E,"ADD_TAGS")&&(typeof E.ADD_TAGS=="function"?Pe.tagCheck=E.ADD_TAGS:ro(E.ADD_TAGS)&&(pe===Ce&&(pe=at(pe)),_e(pe,E.ADD_TAGS,Ae))),Ge(E,"ADD_ATTR")&&(typeof E.ADD_ATTR=="function"?Pe.attributeCheck=E.ADD_ATTR:ro(E.ADD_ATTR)&&(xe===bt&&(xe=at(xe)),_e(xe,E.ADD_ATTR,Ae))),Ge(E,"ADD_URI_SAFE_ATTR")&&ro(E.ADD_URI_SAFE_ATTR)&&_e(It,E.ADD_URI_SAFE_ATTR,Ae),Ge(E,"FORBID_CONTENTS")&&ro(E.FORBID_CONTENTS)&&(Ot===Gr&&(Ot=at(Ot)),_e(Ot,E.FORBID_CONTENTS,Ae)),Ge(E,"ADD_FORBID_CONTENTS")&&ro(E.ADD_FORBID_CONTENTS)&&(Ot===Gr&&(Ot=at(Ot)),_e(Ot,E.ADD_FORBID_CONTENTS,Ae)),oi&&(pe["#text"]=!0),lt&&_e(pe,["html","head","body"]),pe.table&&(_e(pe,["tbody"]),delete _t.tbody),E.TRUSTED_TYPES_POLICY){if(typeof E.TRUSTED_TYPES_POLICY.createHTML!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof E.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const W=x;x=E.TRUSTED_TYPES_POLICY;try{S=B("")}catch(ie){throw x=W,ie}}else E.TRUSTED_TYPES_POLICY===null?(x=void 0,S=""):(x===void 0&&(x=I()),x&&typeof S=="string"&&(S=B("")));Qe&&Qe(E),cn=E},di=_e({},[...uc,...pc,...I8]),N=_e({},[...fc,...R8]),J=function(E,M,W){return M.namespaceURI===Rt?E==="svg":M.namespaceURI===vo?E==="svg"&&(W==="annotation-xml"||Pt[W]):!!di[E]},ge=function(E,M,W){return M.namespaceURI===Rt?E==="math":M.namespaceURI===Yr?E==="math"&&ii[W]:!!N[E]},Oe=function(E,M,W){return M.namespaceURI===Yr&&!ii[W]||M.namespaceURI===vo&&!Pt[W]?!1:!N[E]&&(au[E]||!di[E])},Wn=function(E){let M=y(E);(!M||!M.tagName)&&(M={namespaceURI:Co,tagName:"template"});const W=ka(E.tagName),ie=ka(M.tagName);return ai[E.namespaceURI]?E.namespaceURI===Yr?J(W,M,ie):E.namespaceURI===vo?ge(W,M,ie):E.namespaceURI===Rt?Oe(W,M,ie):!!(ir==="application/xhtml+xml"&&ai[E.namespaceURI]):!1},dn=function(E){xr(e.removed,{element:E});try{y(E).removeChild(E)}catch{if(h(E),!y(E))throw Bo("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ui=function(E){pi(E);const M=v(E);if(M){const ie=[];kr(M,se=>{xr(ie,se)}),kr(ie,se=>{try{h(se)}catch{}})}const W=b(E);if(W)for(let ie=W.length-1;ie>=0;--ie){const se=W[ie],me=se&&se.name;if(typeof me=="string")try{E.removeAttribute(me)}catch{}}},Zn=function(E,M){try{xr(e.removed,{attribute:M.getAttributeNode(E),from:M})}catch{xr(e.removed,{attribute:null,from:M})}if(M.removeAttribute(E),E==="is")if(yo||Wr)try{dn(M)}catch{}else try{M.setAttribute(E,"")}catch{}},cl=function(E){const M=b(E);if(M)for(let W=M.length-1;W>=0;--W){const ie=M[W],se=ie&&ie.name;if(!(typeof se!="string"||xe[Ae(se)]))try{E.removeAttribute(se)}catch{}}},pi=function(E){const M=[E];for(;M.length>0;){const W=M.pop();(k?k(W):W.nodeType)===Tt.element&&cl(W);const se=v(W);if(se)for(let me=se.length-1;me>=0;--me)M.push(se[me])}},lD=function(E){if(!vt)return;const M=[E];for(;M.length>0;){const W=M.pop(),ie=k?k(W):W.nodeType;if(ie===Tt.processingInstruction||ie===Tt.comment&&Ke($1,W.data)){try{h(W)}catch{}continue}if(ie===Tt.element){const me=W,Ne=Ae(w?w(W):W.nodeName);try{me.hasAttribute&&me.hasAttribute("patchsrc")&&me.removeAttribute("patchsrc"),me.hasAttribute&&me.hasAttribute("for")&&Ne!=="label"&&Ne!=="output"&&me.removeAttribute("for")}catch{}}const se=v(W);if(se)for(let me=se.length-1;me>=0;--me)M.push(se[me])}},Dg=function(E){let M=null,W=null;if(rr)E="<remove></remove>"+E;else{const me=x1(E,/^[\r\n\t ]+/);W=me&&me[0]}ir==="application/xhtml+xml"&&Co===Rt&&(E='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+E+"</body></html>");const ie=x?B(E):E;if(Co===Rt)try{M=new u().parseFromString(ie,ir)}catch{}if(!M||!M.documentElement){M=G.createDocument(Co,"template",null);try{M.documentElement.innerHTML=ar?S:ie}catch{}}const se=M.body||M.documentElement;return E&&W&&se.insertBefore(n.createTextNode(W),se.childNodes[0]||null),Co===Rt?K.call(M,lt?"html":"body")[0]:lt?M.documentElement:se},Bg=function(E){const M=C?C(E):E.ownerDocument;return R.call(M||E,E,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},dl=function(E){return E=xa(E,ce," "),E=xa(E,ee," "),E=xa(E,ae," "),E},iu=function(E){var M;E.normalize();const W=C?C(E):E.ownerDocument,ie=R.call(W||E,E,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let se=ie.nextNode();for(;se;)se.data=dl(se.data),se=ie.nextNode();const me=(M=E.querySelectorAll)===null||M===void 0?void 0:M.call(E,"template");me&&kr(me,Ne=>{Jr(Ne.content)&&iu(Ne.content)})},ul=function(E){const M=w?w(E):null;return typeof M!="string"||Ae(M)!=="form"?!1:typeof E.nodeName!="string"||typeof E.textContent!="string"||typeof E.removeChild!="function"||E.attributes!==b(E)||typeof E.removeAttribute!="function"||typeof E.setAttribute!="function"||typeof E.namespaceURI!="string"||typeof E.insertBefore!="function"||typeof E.hasChildNodes!="function"||E.nodeType!==k(E)||E.childNodes!==v(E)},Jr=function(E){if(!k||typeof E!="object"||E===null)return!1;try{return k(E)===Tt.documentFragment}catch{return!1}},fi=function(E){if(!k||typeof E!="object"||E===null)return!1;try{return typeof k(E)=="number"}catch{return!1}};function Sn(Q,E,M){Q.length!==0&&kr(Q,W=>{W.call(e,E,M,cn)})}const cD=function(E,M){return!!(vt&&E.hasChildNodes()&&!fi(E.firstElementChild)&&Ke(M1,E.textContent)&&Ke(M1,E.innerHTML)||vt&&E.namespaceURI===Rt&&M==="style"&&fi(E.firstElementChild)||E.nodeType===Tt.processingInstruction||vt&&E.nodeType===Tt.comment&&Ke($1,E.data))},dD=function(E,M,W){if(!_t[M]&&Og(M)&&(De.tagNameCheck instanceof RegExp&&Ke(De.tagNameCheck,M)||De.tagNameCheck instanceof Function&&De.tagNameCheck(M)))return!1;if(oi&&!Ot[M]){const ie=y(E),se=v(E);if(se&&ie){const me=se.length;for(let Ne=me-1;Ne>=0;--Ne){const Ie=E===W?m(se[Ne],!0):se[Ne];ie.insertBefore(Ie,g(E))}}}return dn(E),!0},Lg=function(E,M,W,ie){return E.length===0?M:M===W||M===ie?at(M):M},Mg=function(E,M){if(Sn(U.beforeSanitizeElements,E,null),E!==M&&y(E)===null)return ln&&pi(E),!0;if(ul(E))return dn(E),!0;const W=Ae(w?w(E):E.nodeName);if(pe=Lg(U.uponSanitizeElement,pe,Ce,Un),Sn(U.uponSanitizeElement,E,{tagName:W,allowedTags:pe}),E!==M&&y(E)===null)return ln&&pi(E),!0;if(cD(E,W))return dn(E),!0;if(_t[W]||!(Pe.tagCheck instanceof Function&&Pe.tagCheck(W))&&!pe[W]){const se=dD(E,W,M);return se===!1&&Sn(U.afterSanitizeElements,E,null),se}if((k?k(E):E.nodeType)===Tt.element&&!Wn(E)||(W==="noscript"||W==="noembed"||W==="noframes")&&Ke(Z8,E.innerHTML))return dn(E),!0;if(Ve&&E.nodeType===Tt.text){const se=dl(E.textContent);E.textContent!==se&&(xr(e.removed,{element:E.cloneNode()}),E.textContent=se)}return Sn(U.afterSanitizeElements,E,null),!1},$g=function(E,M,W){if(Lt[M]||vt&&M==="patchsrc"||vt&&M==="for"&&E!=="label"&&E!=="output"||Hn&&(M==="id"||M==="name")&&(W in n||W in ci))return!1;const ie=xe[M]||Pe.attributeCheck instanceof Function&&Pe.attributeCheck(M,E);if(!(Mt&&Ke(q,M))){if(!(yt&&Ke(ne,M))){if(ie){if(!It[M]){if(!Ke(Ze,xa(W,Y,""))){if(!((M==="src"||M==="xlink:href"||M==="href")&&E!=="script"&&E1(W,"data:")===0&&al[E])){if(!(bo&&!Ke($,xa(W,Y,"")))){if(W)return!1}}}}}else if(!(Og(E)&&(De.tagNameCheck instanceof RegExp&&Ke(De.tagNameCheck,E)||De.tagNameCheck instanceof Function&&De.tagNameCheck(E))&&(De.attributeNameCheck instanceof RegExp&&Ke(De.attributeNameCheck,M)||De.attributeNameCheck instanceof Function&&De.attributeNameCheck(M,E))||M==="is"&&De.allowCustomizedBuiltInElements&&(De.tagNameCheck instanceof RegExp&&Ke(De.tagNameCheck,W)||De.tagNameCheck instanceof Function&&De.tagNameCheck(W))))return!1}}return!0},uD=_e({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Og=function(E){return!uD[ka(E)]&&Ke(be,E)},pD=function(E,M,W,ie){if(x&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!W)switch(p.getAttributeType(E,M)){case"TrustedHTML":return B(ie);case"TrustedScriptURL":return L(ie)}return ie},fD=function(E,M,W,ie){try{W?E.setAttributeNS(W,M,ie):E.setAttribute(M,ie),ul(E)?dn(E):k1(e.removed)}catch{Zn(M,E)}},Ig=function(E){Sn(U.beforeSanitizeAttributes,E,null);const M=E.attributes;if(!M||ul(E))return;xe=Lg(U.uponSanitizeAttribute,xe,bt,_o);const W={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe,forceKeepAttr:void 0};let ie=M.length;const se=Ae(E.nodeName);for(;ie--;){const me=M[ie],Ne=me.name,Ie=me.namespaceURI,Ct=me.value,wt=Ae(Ne),lu=Ct;let pt=Ne==="value"?lu:N8(lu);if(W.attrName=wt,W.attrValue=pt,W.keepAttr=!0,W.forceKeepAttr=void 0,Sn(U.uponSanitizeAttribute,E,W),pt=W.attrValue,En&&(wt==="id"||wt==="name")&&E1(pt,rl)!==0&&(Zn(Ne,E),pt=rl+pt),vt&&Ke(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,pt)){Zn(Ne,E);continue}if(wt==="attributename"&&x1(pt,"href")){Zn(Ne,E);continue}if(!W.forceKeepAttr){if(!W.keepAttr){Zn(Ne,E);continue}if(!or&&Ke(G8,pt)){Zn(Ne,E);continue}if(Ve&&(pt=dl(pt)),!$g(se,wt,pt)){Zn(Ne,E);continue}pt=pD(se,wt,Ie,pt),pt!==lu&&fD(E,Ne,Ie,pt)}}Sn(U.afterSanitizeAttributes,E,null)},pl=function(E){let M=null;const W=Bg(E);for(Sn(U.beforeSanitizeShadowDOM,E,null);M=W.nextNode();)if(Sn(U.uponSanitizeShadowNode,M,null),Mg(M,E),Ig(M),Jr(M.content)&&pl(M.content),(k?k(M):M.nodeType)===Tt.element){const se=_(M);Jr(se)&&(su(se),pl(se))}Sn(U.afterSanitizeShadowDOM,E,null)},su=function(E){const M=[{node:E,shadow:null}];for(;M.length>0;){const W=M.pop();if(W.shadow){pl(W.shadow);continue}const ie=W.node,me=(k?k(ie):ie.nodeType)===Tt.element,Ne=v(ie);if(Ne)for(let Ie=Ne.length-1;Ie>=0;--Ie)M.push({node:Ne[Ie],shadow:null});if(me){const Ie=w?w(ie):null;if(typeof Ie=="string"&&Ae(Ie)==="template"){const Ct=ie.content;Jr(Ct)&&M.push({node:Ct,shadow:null})}}if(me){const Ie=_(ie);Jr(Ie)&&M.push({node:null,shadow:Ie},{node:Ie,shadow:null})}}};return e.sanitize=function(Q){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=null,W=null,ie=null,se=null;if(ar=!Q,ar&&(Q="<!-->"),typeof Q!="string"&&!fi(Q)&&(Q=$8(Q),typeof Q!="string"))throw Bo("dirty is not a string, aborting");if(!e.isSupported)return Q;sn?(pe=Un,xe=_o):wo(E),(U.uponSanitizeElement.length>0||U.uponSanitizeAttribute.length>0)&&(pe=at(pe)),U.uponSanitizeAttribute.length>0&&(xe=at(xe)),e.removed=[];const me=ln&&typeof Q!="string"&&fi(Q);if(me){lD(Q);const Ct=w?w(Q):Q.nodeName;if(typeof Ct=="string"){const wt=Ae(Ct);if(!pe[wt]||_t[wt])throw ui(Q),Bo("root node is forbidden and cannot be sanitized in-place")}if(ul(Q))throw ui(Q),Bo("root node is clobbered and cannot be sanitized in-place");try{su(Q)}catch(wt){throw ui(Q),wt}}else if(fi(Q))M=Dg("<!---->"),W=M.ownerDocument.importNode(Q,!0),W.nodeType===Tt.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?M=W:M.appendChild(W),su(W);else{if(!yo&&!Ve&&!lt&&Q.indexOf("<")===-1)return x&&Zr?B(Q):Q;if(M=Dg(Q),!M)return yo?null:Zr?S:""}M&&rr&&dn(M.firstChild);const Ne=me?Q:M;try{const Ct=Bg(Ne);for(;ie=Ct.nextNode();)Mg(ie,Ne),Ig(ie),Jr(ie.content)&&pl(ie.content)}catch(Ct){throw me&&(ui(Q),kr(e.removed,wt=>{wt.element&&pi(wt.element)})),Ct}if(me)return kr(e.removed,Ct=>{Ct.element&&pi(Ct.element)}),Ve&&iu(Q),Q;if(yo){if(Ve&&iu(M),Wr)for(se=D.call(M.ownerDocument);M.firstChild;)se.appendChild(M.firstChild);else se=M;return(xe.shadowroot||xe.shadowrootmode)&&(se=F.call(o,se,!0)),se}let Ie=lt?M.outerHTML:M.innerHTML;return lt&&pe["!doctype"]&&M.ownerDocument&&M.ownerDocument.doctype&&M.ownerDocument.doctype.name&&Ke(H8,M.ownerDocument.doctype.name)&&(Ie="<!DOCTYPE "+M.ownerDocument.doctype.name+`>
20
- `+Ie),Ve&&(Ie=dl(Ie)),x&&Zr?B(Ie):Ie},e.setConfig=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};wo(Q),sn=!0,Un=pe,_o=xe},e.clearConfig=function(){cn=null,sn=!1,Un=null,_o=null,x=T,S=""},e.isValidAttribute=function(Q,E,M){cn||wo({});const W=Ae(Q),ie=Ae(E);return $g(W,ie,M)},e.addHook=function(Q,E){typeof E=="function"&&Ge(U,Q)&&xr(U[Q],E)},e.removeHook=function(Q,E){if(Ge(U,Q)){if(E!==void 0){const M=T8(U[Q],E);return M===-1?void 0:A8(U[Q],M,1)[0]}return k1(U[Q])}},e.removeHooks=function(Q){Ge(U,Q)&&(U[Q]=[])},e.removeAllHooks=function(){U=O1()},e}var J8=I1();const X8=["innerHTML"],Q8={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},R1=a.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new _8({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=a.computed(()=>e.content?J8.sanitize(n.render(e.content),{ALLOWED_TAGS:["p","br","strong","em","s","del","ul","ol","li","h1","h2","h3","pre","code"],ALLOWED_ATTR:[]}):"");return(r,i)=>t.content?(a.openBlock(),a.createElementBlock("div",{key:0,class:"ao-markdown-content",innerHTML:o.value},null,8,X8)):(a.openBlock(),a.createElementBlock("div",Q8,a.toDisplayString(t.placeholder),1))}}),rhe="";function Z(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function P1(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);n.search=o.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Xt=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,e9=Xt&&"documentMode"in document?document.documentMode:null,Qt=Xt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Lo=Xt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),os=!(!Xt||!("InputEvent"in window)||e9)&&"getTargetRanges"in new window.InputEvent("input"),Sa=Xt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Er=Xt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,t9=Xt&&/Android/.test(navigator.userAgent),V1=Xt&&/^(?=.*Chrome).*/i.test(navigator.userAgent),F1=Xt&&t9&&V1,Ta=Xt&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Qt&&!V1;function z1(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}const n9=0,o9=1,r9=2,q1=128,a9=1,i9=2,s9=3,l9=4,c9=5,d9=6,rs=Sa||Er||Ta?" ":"​",io=`
15
+ `:">",i)},yr.prototype.renderInline=function(t,e,n){for(var o,r="",i=this.rules,s=0,l=t.length;s<l;s++)o=t[s].type,typeof i[o]<"u"?r+=i[o](t,s,e,n,this):r+=this.renderToken(t,s,e);return r},yr.prototype.renderInlineAsText=function(t,e,n){for(var o="",r=0,i=t.length;r<i;r++)t[r].type==="text"?o+=t[r].content:t[r].type==="image"?o+=this.renderInlineAsText(t[r].children,e,n):t[r].type==="softbreak"&&(o+=`
16
+ `);return o},yr.prototype.render=function(t,e,n){var o,r,i,s="",l=this.rules;for(o=0,r=t.length;o<r;o++)i=t[o].type,i==="inline"?s+=this.renderInline(t[o].children,e,n):typeof l[i]<"u"?s+=l[i](t,o,e,n,this):s+=this.renderToken(t,o,e,n);return s};var Qw=yr;function Yt(){this.__rules__=[],this.__cache__=null}Yt.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},Yt.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(o){o.enabled&&(n&&o.alt.indexOf(n)<0||t.__cache__[n].push(o.fn))})})},Yt.prototype.at=function(t,e,n){var o=this.__find__(t),r=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=r.alt||[],this.__cache__=null},Yt.prototype.before=function(t,e,n,o){var r=this.__find__(t),i=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r,0,{name:e,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},Yt.prototype.after=function(t,e,n,o){var r=this.__find__(t),i=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r+1,0,{name:e,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},Yt.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null},Yt.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!0,n.push(o)},this),this.__cache__=null,n},Yt.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)},Yt.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!1,n.push(o)},this),this.__cache__=null,n},Yt.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var zl=Yt,ek=/\r\n?|\n/g,tk=/\0/g,nk=function(e){var n;n=e.src.replace(ek,`
17
+ `),n=n.replace(tk,"�"),e.src=n},ok=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},rk=function(e){var n=e.tokens,o,r,i;for(r=0,i=n.length;r<i;r++)o=n[r],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},ak=ke.arrayReplaceAt;function ik(t){return/^<a[>\s]/i.test(t)}function sk(t){return/^<\/a\s*>/i.test(t)}var lk=function(e){var n,o,r,i,s,l,c,d,u,p,f,m,h,g,v,_,y=e.tokens,b;if(e.md.options.linkify){for(o=0,r=y.length;o<r;o++)if(!(y[o].type!=="inline"||!e.md.linkify.pretest(y[o].content)))for(i=y[o].children,h=0,n=i.length-1;n>=0;n--){if(l=i[n],l.type==="link_close"){for(n--;i[n].level!==l.level&&i[n].type!=="link_open";)n--;continue}if(l.type==="html_inline"&&(ik(l.content)&&h>0&&h--,sk(l.content)&&h++),!(h>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(u=l.content,b=e.md.linkify.match(u),c=[],m=l.level,f=0,b.length>0&&b[0].index===0&&n>0&&i[n-1].type==="text_special"&&(b=b.slice(1)),d=0;d<b.length;d++)g=b[d].url,v=e.md.normalizeLink(g),e.md.validateLink(v)&&(_=b[d].text,b[d].schema?b[d].schema==="mailto:"&&!/^mailto:/i.test(_)?_=e.md.normalizeLinkText("mailto:"+_).replace(/^mailto:/,""):_=e.md.normalizeLinkText(_):_=e.md.normalizeLinkText("http://"+_).replace(/^http:\/\//,""),p=b[d].index,p>f&&(s=new e.Token("text","",0),s.content=u.slice(f,p),s.level=m,c.push(s)),s=new e.Token("link_open","a",1),s.attrs=[["href",v]],s.level=m++,s.markup="linkify",s.info="auto",c.push(s),s=new e.Token("text","",0),s.content=_,s.level=m,c.push(s),s=new e.Token("link_close","a",-1),s.level=--m,s.markup="linkify",s.info="auto",c.push(s),f=b[d].lastIndex);f<u.length&&(s=new e.Token("text","",0),s.content=u.slice(f),s.level=m,c.push(s)),y[o].children=i=ak(i,n,c)}}}},Mp=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ck=/\((c|tm|r)\)/i,dk=/\((c|tm|r)\)/ig,uk={c:"©",r:"®",tm:"™"};function pk(t,e){return uk[e.toLowerCase()]}function fk(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&(n.content=n.content.replace(dk,pk)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function mk(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&Mp.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}var hk=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(ck.test(e.tokens[n].content)&&fk(e.tokens[n].children),Mp.test(e.tokens[n].content)&&mk(e.tokens[n].children))},$p=ke.isWhiteSpace,Op=ke.isPunctChar,Ip=ke.isMdAsciiPunct,gk=/['"]/,Rp=/['"]/g,Pp="’";function Wi(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function bk(t,e){var n,o,r,i,s,l,c,d,u,p,f,m,h,g,v,_,y,b,k,w,C;for(k=[],n=0;n<t.length;n++){for(o=t[n],c=t[n].level,y=k.length-1;y>=0&&!(k[y].level<=c);y--);if(k.length=y+1,o.type==="text"){r=o.content,s=0,l=r.length;e:for(;s<l&&(Rp.lastIndex=s,i=Rp.exec(r),!!i);){if(v=_=!0,s=i.index+1,b=i[0]==="'",u=32,i.index-1>=0)u=r.charCodeAt(i.index-1);else for(y=n-1;y>=0&&!(t[y].type==="softbreak"||t[y].type==="hardbreak");y--)if(t[y].content){u=t[y].content.charCodeAt(t[y].content.length-1);break}if(p=32,s<l)p=r.charCodeAt(s);else for(y=n+1;y<t.length&&!(t[y].type==="softbreak"||t[y].type==="hardbreak");y++)if(t[y].content){p=t[y].content.charCodeAt(0);break}if(f=Ip(u)||Op(String.fromCharCode(u)),m=Ip(p)||Op(String.fromCharCode(p)),h=$p(u),g=$p(p),g?v=!1:m&&(h||f||(v=!1)),h?_=!1:f&&(g||m||(_=!1)),p===34&&i[0]==='"'&&u>=48&&u<=57&&(_=v=!1),v&&_&&(v=f,_=m),!v&&!_){b&&(o.content=Wi(o.content,i.index,Pp));continue}if(_){for(y=k.length-1;y>=0&&(d=k[y],!(k[y].level<c));y--)if(d.single===b&&k[y].level===c){d=k[y],b?(w=e.md.options.quotes[2],C=e.md.options.quotes[3]):(w=e.md.options.quotes[0],C=e.md.options.quotes[1]),o.content=Wi(o.content,i.index,C),t[d.token].content=Wi(t[d.token].content,d.pos,w),s+=C.length-1,d.token===n&&(s+=w.length-1),r=o.content,l=r.length,k.length=y;continue e}}v?k.push({token:n,pos:i.index,single:b,level:c}):_&&b&&(o.content=Wi(o.content,i.index,Pp))}}}}var yk=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!gk.test(e.tokens[n].content)||bk(e.tokens[n].children,e)},_k=function(e){var n,o,r,i,s,l,c=e.tokens;for(n=0,o=c.length;n<o;n++)if(c[n].type==="inline"){for(r=c[n].children,s=r.length,i=0;i<s;i++)r[i].type==="text_special"&&(r[i].type="text");for(i=l=0;i<s;i++)r[i].type==="text"&&i+1<s&&r[i+1].type==="text"?r[i+1].content=r[i].content+r[i+1].content:(i!==l&&(r[l]=r[i]),l++);i!==l&&(r.length=l)}};function _r(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}_r.prototype.attrIndex=function(e){var n,o,r;if(!this.attrs)return-1;for(n=this.attrs,o=0,r=n.length;o<r;o++)if(n[o][0]===e)return o;return-1},_r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},_r.prototype.attrSet=function(e,n){var o=this.attrIndex(e),r=[e,n];o<0?this.attrPush(r):this.attrs[o]=r},_r.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o},_r.prototype.attrJoin=function(e,n){var o=this.attrIndex(e);o<0?this.attrPush([e,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var ql=_r,vk=ql;function Vp(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}Vp.prototype.Token=vk;var Ck=Vp,wk=zl,jl=[["normalize",nk],["block",ok],["inline",rk],["linkify",lk],["replacements",hk],["smartquotes",yk],["text_join",_k]];function Ul(){this.ruler=new wk;for(var t=0;t<jl.length;t++)this.ruler.push(jl[t][0],jl[t][1])}Ul.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)},Ul.prototype.State=Ck;var kk=Ul,Hl=ke.isSpace;function Wl(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function Fp(t){var e=[],n=0,o=t.length,r,i=!1,s=0,l="";for(r=t.charCodeAt(n);n<o;)r===124&&(i?(l+=t.substring(s,n-1),s=n):(e.push(l+t.substring(s,n)),l="",s=n+1)),i=r===92,n++,r=t.charCodeAt(n);return e.push(l+t.substring(s)),e}var xk=function(e,n,o,r){var i,s,l,c,d,u,p,f,m,h,g,v,_,y,b,k,w,C;if(n+2>o||(u=n+1,e.sCount[u]<e.blkIndent)||e.sCount[u]-e.blkIndent>=4||(l=e.bMarks[u]+e.tShift[u],l>=e.eMarks[u])||(w=e.src.charCodeAt(l++),w!==124&&w!==45&&w!==58)||l>=e.eMarks[u]||(C=e.src.charCodeAt(l++),C!==124&&C!==45&&C!==58&&!Hl(C))||w===45&&Hl(C))return!1;for(;l<e.eMarks[u];){if(i=e.src.charCodeAt(l),i!==124&&i!==45&&i!==58&&!Hl(i))return!1;l++}for(s=Wl(e,n+1),p=s.split("|"),h=[],c=0;c<p.length;c++){if(g=p[c].trim(),!g){if(c===0||c===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;g.charCodeAt(g.length-1)===58?h.push(g.charCodeAt(0)===58?"center":"right"):g.charCodeAt(0)===58?h.push("left"):h.push("")}if(s=Wl(e,n).trim(),s.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(p=Fp(s),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),f=p.length,f===0||f!==h.length))return!1;if(r)return!0;for(y=e.parentType,e.parentType="table",k=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),m.map=v=[n,0],m=e.push("thead_open","thead",1),m.map=[n,n+1],m=e.push("tr_open","tr",1),m.map=[n,n+1],c=0;c<p.length;c++)m=e.push("th_open","th",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=p[c].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),u=n+2;u<o&&!(e.sCount[u]<e.blkIndent);u++){for(b=!1,c=0,d=k.length;c<d;c++)if(k[c](e,u,o,!0)){b=!0;break}if(b||(s=Wl(e,u).trim(),!s)||e.sCount[u]-e.blkIndent>=4)break;for(p=Fp(s),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),u===n+2&&(m=e.push("tbody_open","tbody",1),m.map=_=[n+2,0]),m=e.push("tr_open","tr",1),m.map=[u,u+1],c=0;c<f;c++)m=e.push("td_open","td",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=p[c]?p[c].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return _&&(m=e.push("tbody_close","tbody",-1),_[1]=u),m=e.push("table_close","table",-1),v[1]=u,e.parentType=y,e.line=u,!0},Ek=function(e,n,o){var r,i,s;if(e.sCount[n]-e.blkIndent<4)return!1;for(i=r=n+1;r<o;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}return e.line=i,s=e.push("code_block","code",0),s.content=e.getLines(n,i,4+e.blkIndent,!1)+`
18
+ `,s.map=[n,e.line],!0},Sk=function(e,n,o,r){var i,s,l,c,d,u,p,f=!1,m=e.bMarks[n]+e.tShift[n],h=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||m+3>h||(i=e.src.charCodeAt(m),i!==126&&i!==96)||(d=m,m=e.skipChars(m,i),s=m-d,s<3)||(p=e.src.slice(d,m),l=e.src.slice(m,h),i===96&&l.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(c=n;c++,!(c>=o||(m=d=e.bMarks[c]+e.tShift[c],h=e.eMarks[c],m<h&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(m)===i&&!(e.sCount[c]-e.blkIndent>=4)&&(m=e.skipChars(m,i),!(m-d<s)&&(m=e.skipSpaces(m),!(m<h)))){f=!0;break}return s=e.sCount[n],e.line=c+(f?1:0),u=e.push("fence","code",0),u.info=l,u.content=e.getLines(n+1,c,s,!0),u.markup=p,u.map=[n,e.line],!0},Tk=ke.isSpace,Ak=function(e,n,o,r){var i,s,l,c,d,u,p,f,m,h,g,v,_,y,b,k,w,C,x,S,T=e.lineMax,A=e.bMarks[n]+e.tShift[n],z=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(A)!==62)return!1;if(r)return!0;for(h=[],g=[],y=[],b=[],C=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",f=n;f<o&&(S=e.sCount[f]<e.blkIndent,A=e.bMarks[f]+e.tShift[f],z=e.eMarks[f],!(A>=z));f++){if(e.src.charCodeAt(A++)===62&&!S){for(c=e.sCount[f]+1,e.src.charCodeAt(A)===32?(A++,c++,i=!1,k=!0):e.src.charCodeAt(A)===9?(k=!0,(e.bsCount[f]+c)%4===3?(A++,c++,i=!1):i=!0):k=!1,m=c,h.push(e.bMarks[f]),e.bMarks[f]=A;A<z&&(s=e.src.charCodeAt(A),Tk(s));){s===9?m+=4-(m+e.bsCount[f]+(i?1:0))%4:m++;A++}u=A>=z,g.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(k?1:0),y.push(e.sCount[f]),e.sCount[f]=m-c,b.push(e.tShift[f]),e.tShift[f]=A-e.bMarks[f];continue}if(u)break;for(w=!1,l=0,d=C.length;l<d;l++)if(C[l](e,f,o,!0)){w=!0;break}if(w){e.lineMax=f,e.blkIndent!==0&&(h.push(e.bMarks[f]),g.push(e.bsCount[f]),b.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}h.push(e.bMarks[f]),g.push(e.bsCount[f]),b.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]=-1}for(v=e.blkIndent,e.blkIndent=0,x=e.push("blockquote_open","blockquote",1),x.markup=">",x.map=p=[n,0],e.md.block.tokenize(e,n,f),x=e.push("blockquote_close","blockquote",-1),x.markup=">",e.lineMax=T,e.parentType=_,p[1]=e.line,l=0;l<b.length;l++)e.bMarks[l+n]=h[l],e.tShift[l+n]=b[l],e.sCount[l+n]=y[l],e.bsCount[l+n]=g[l];return e.blkIndent=v,!0},Nk=ke.isSpace,Dk=function(e,n,o,r){var i,s,l,c,d=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(i=e.src.charCodeAt(d++),i!==42&&i!==45&&i!==95))return!1;for(s=1;d<u;){if(l=e.src.charCodeAt(d++),l!==i&&!Nk(l))return!1;l===i&&s++}return s<3?!1:(r||(e.line=n+1,c=e.push("hr","hr",0),c.map=[n,e.line],c.markup=Array(s+1).join(String.fromCharCode(i))),!0)},zp=ke.isSpace;function qp(t,e){var n,o,r,i;return o=t.bMarks[e]+t.tShift[e],r=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<r&&(i=t.src.charCodeAt(o),!zp(i))?-1:o}function jp(t,e){var n,o=t.bMarks[e]+t.tShift[e],r=o,i=t.eMarks[e];if(r+1>=i||(n=t.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=i)return-1;if(n=t.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r<i&&(n=t.src.charCodeAt(r),!zp(n))?-1:r}function Bk(t,e){var n,o,r=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===r&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var Lk=function(e,n,o,r){var i,s,l,c,d,u,p,f,m,h,g,v,_,y,b,k,w,C,x,S,T,A,z,O,B,L,I,P=n,G=!1,R=!0;if(e.sCount[P]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[P]-e.listIndent>=4&&e.sCount[P]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[P]>=e.blkIndent&&(G=!0),(A=jp(e,P))>=0){if(p=!0,O=e.bMarks[P]+e.tShift[P],_=Number(e.src.slice(O,A-1)),G&&_!==1)return!1}else if((A=qp(e,P))>=0)p=!1;else return!1;if(G&&e.skipSpaces(A)>=e.eMarks[P])return!1;if(r)return!0;for(v=e.src.charCodeAt(A-1),g=e.tokens.length,p?(I=e.push("ordered_list_open","ol",1),_!==1&&(I.attrs=[["start",_]])):I=e.push("bullet_list_open","ul",1),I.map=h=[P,0],I.markup=String.fromCharCode(v),z=!1,L=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";P<o;){for(T=A,y=e.eMarks[P],u=b=e.sCount[P]+A-(e.bMarks[P]+e.tShift[P]);T<y;){if(i=e.src.charCodeAt(T),i===9)b+=4-(b+e.bsCount[P])%4;else if(i===32)b++;else break;T++}if(s=T,s>=y?d=1:d=b-u,d>4&&(d=1),c=u+d,I=e.push("list_item_open","li",1),I.markup=String.fromCharCode(v),I.map=f=[P,0],p&&(I.info=e.src.slice(O,A-1)),S=e.tight,x=e.tShift[P],C=e.sCount[P],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[P]=s-e.bMarks[P],e.sCount[P]=b,s>=y&&e.isEmpty(P+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,P,o,!0),(!e.tight||z)&&(R=!1),z=e.line-P>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[P]=x,e.sCount[P]=C,e.tight=S,I=e.push("list_item_close","li",-1),I.markup=String.fromCharCode(v),P=e.line,f[1]=P,P>=o||e.sCount[P]<e.blkIndent||e.sCount[P]-e.blkIndent>=4)break;for(B=!1,l=0,m=L.length;l<m;l++)if(L[l](e,P,o,!0)){B=!0;break}if(B)break;if(p){if(A=jp(e,P),A<0)break;O=e.bMarks[P]+e.tShift[P]}else if(A=qp(e,P),A<0)break;if(v!==e.src.charCodeAt(A-1))break}return p?I=e.push("ordered_list_close","ol",-1):I=e.push("bullet_list_close","ul",-1),I.markup=String.fromCharCode(v),h[1]=P,e.line=P,e.parentType=w,R&&Bk(e,g),!0},Mk=ke.normalizeReference,Zi=ke.isSpace,$k=function(e,n,o,r){var i,s,l,c,d,u,p,f,m,h,g,v,_,y,b,k,w=0,C=e.bMarks[n]+e.tShift[n],x=e.eMarks[n],S=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(C)!==91)return!1;for(;++C<x;)if(e.src.charCodeAt(C)===93&&e.src.charCodeAt(C-1)!==92){if(C+1===x||e.src.charCodeAt(C+1)!==58)return!1;break}for(c=e.lineMax,b=e.md.block.ruler.getRules("reference"),h=e.parentType,e.parentType="reference";S<c&&!e.isEmpty(S);S++)if(!(e.sCount[S]-e.blkIndent>3)&&!(e.sCount[S]<0)){for(y=!1,u=0,p=b.length;u<p;u++)if(b[u](e,S,c,!0)){y=!0;break}if(y)break}for(_=e.getLines(n,S,e.blkIndent,!1).trim(),x=_.length,C=1;C<x;C++){if(i=_.charCodeAt(C),i===91)return!1;if(i===93){m=C;break}else i===10?w++:i===92&&(C++,C<x&&_.charCodeAt(C)===10&&w++)}if(m<0||_.charCodeAt(m+1)!==58)return!1;for(C=m+2;C<x;C++)if(i=_.charCodeAt(C),i===10)w++;else if(!Zi(i))break;if(g=e.md.helpers.parseLinkDestination(_,C,x),!g.ok||(d=e.md.normalizeLink(g.str),!e.md.validateLink(d)))return!1;for(C=g.pos,w+=g.lines,s=C,l=w,v=C;C<x;C++)if(i=_.charCodeAt(C),i===10)w++;else if(!Zi(i))break;for(g=e.md.helpers.parseLinkTitle(_,C,x),C<x&&v!==C&&g.ok?(k=g.str,C=g.pos,w+=g.lines):(k="",C=s,w=l);C<x&&(i=_.charCodeAt(C),!!Zi(i));)C++;if(C<x&&_.charCodeAt(C)!==10&&k)for(k="",C=s,w=l;C<x&&(i=_.charCodeAt(C),!!Zi(i));)C++;return C<x&&_.charCodeAt(C)!==10||(f=Mk(_.slice(1,m)),!f)?!1:(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:k,href:d}),e.parentType=h,e.line=n+w+1),!0)},Ok=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gi={},Ik="[a-zA-Z_:][a-zA-Z0-9:._-]*",Rk="[^\"'=<>`\\x00-\\x20]+",Pk="'[^']*'",Vk='"[^"]*"',Fk="(?:"+Rk+"|"+Pk+"|"+Vk+")",zk="(?:\\s+"+Ik+"(?:\\s*=\\s*"+Fk+")?)",Up="<[A-Za-z][A-Za-z0-9\\-]*"+zk+"*\\s*\\/?>",Hp="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",qk="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",jk="<[?][\\s\\S]*?[?]>",Uk="<![A-Z]+\\s+[^>]*>",Hk="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Wk=new RegExp("^(?:"+Up+"|"+Hp+"|"+qk+"|"+jk+"|"+Uk+"|"+Hk+")"),Zk=new RegExp("^(?:"+Up+"|"+Hp+")");Gi.HTML_TAG_RE=Wk,Gi.HTML_OPEN_CLOSE_TAG_RE=Zk;var Gk=Ok,Kk=Gi.HTML_OPEN_CLOSE_TAG_RE,vr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Gk.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Kk.source+"\\s*$"),/^$/,!1]],Yk=function(e,n,o,r){var i,s,l,c,d=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(d)!==60)return!1;for(c=e.src.slice(d,u),i=0;i<vr.length&&!vr[i][0].test(c);i++);if(i===vr.length)return!1;if(r)return vr[i][2];if(s=n+1,!vr[i][1].test(c)){for(;s<o&&!(e.sCount[s]<e.blkIndent);s++)if(d=e.bMarks[s]+e.tShift[s],u=e.eMarks[s],c=e.src.slice(d,u),vr[i][1].test(c)){c.length!==0&&s++;break}}return e.line=s,l=e.push("html_block","",0),l.map=[n,s],l.content=e.getLines(n,s,e.blkIndent,!0),!0},Wp=ke.isSpace,Jk=function(e,n,o,r){var i,s,l,c,d=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(i=e.src.charCodeAt(d),i!==35||d>=u))return!1;for(s=1,i=e.src.charCodeAt(++d);i===35&&d<u&&s<=6;)s++,i=e.src.charCodeAt(++d);return s>6||d<u&&!Wp(i)?!1:(r||(u=e.skipSpacesBack(u,d),l=e.skipCharsBack(u,35,d),l>d&&Wp(e.src.charCodeAt(l-1))&&(u=l),e.line=n+1,c=e.push("heading_open","h"+String(s),1),c.markup="########".slice(0,s),c.map=[n,e.line],c=e.push("inline","",0),c.content=e.src.slice(d,u).trim(),c.map=[n,e.line],c.children=[],c=e.push("heading_close","h"+String(s),-1),c.markup="########".slice(0,s)),!0)},Xk=function(e,n,o){var r,i,s,l,c,d,u,p,f,m=n+1,h,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";m<o&&!e.isEmpty(m);m++)if(!(e.sCount[m]-e.blkIndent>3)){if(e.sCount[m]>=e.blkIndent&&(d=e.bMarks[m]+e.tShift[m],u=e.eMarks[m],d<u&&(f=e.src.charCodeAt(d),(f===45||f===61)&&(d=e.skipChars(d,f),d=e.skipSpaces(d),d>=u)))){p=f===61?1:2;break}if(!(e.sCount[m]<0)){for(i=!1,s=0,l=g.length;s<l;s++)if(g[s](e,m,o,!0)){i=!0;break}if(i)break}}return p?(r=e.getLines(n,m,e.blkIndent,!1).trim(),e.line=m+1,c=e.push("heading_open","h"+String(p),1),c.markup=String.fromCharCode(f),c.map=[n,e.line],c=e.push("inline","",0),c.content=r,c.map=[n,e.line-1],c.children=[],c=e.push("heading_close","h"+String(p),-1),c.markup=String.fromCharCode(f),e.parentType=h,!0):!1},Qk=function(e,n,o){var r,i,s,l,c,d,u=n+1,p=e.md.block.ruler.getRules("paragraph");for(d=e.parentType,e.parentType="paragraph";u<o&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)&&!(e.sCount[u]<0)){for(i=!1,s=0,l=p.length;s<l;s++)if(p[s](e,u,o,!0)){i=!0;break}if(i)break}return r=e.getLines(n,u,e.blkIndent,!1).trim(),e.line=u,c=e.push("paragraph_open","p",1),c.map=[n,e.line],c=e.push("inline","",0),c.content=r,c.map=[n,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=d,!0},Zp=ql,Ki=ke.isSpace;function gn(t,e,n,o){var r,i,s,l,c,d,u,p;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",i=this.src,p=!1,s=l=d=u=0,c=i.length;l<c;l++){if(r=i.charCodeAt(l),!p)if(Ki(r)){d++,r===9?u+=4-u%4:u++;continue}else p=!0;(r===10||l===c-1)&&(r!==10&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(d),this.sCount.push(u),this.bsCount.push(0),p=!1,d=0,u=0,s=l+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}gn.prototype.push=function(t,e,n){var o=new Zp(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o},gn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},gn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},gn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!Ki(n));e++);return e},gn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Ki(this.src.charCodeAt(--e)))return e+1;return e},gn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e},gn.prototype.skipCharsBack=function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e},gn.prototype.getLines=function(e,n,o,r){var i,s,l,c,d,u,p,f=e;if(e>=n)return"";for(u=new Array(n-e),i=0;f<n;f++,i++){for(s=0,p=c=this.bMarks[f],f+1<n||r?d=this.eMarks[f]+1:d=this.eMarks[f];c<d&&s<o;){if(l=this.src.charCodeAt(c),Ki(l))l===9?s+=4-(s+this.bsCount[f])%4:s++;else if(c-p<this.tShift[f])s++;else break;c++}s>o?u[i]=new Array(s-o+1).join(" ")+this.src.slice(c,d):u[i]=this.src.slice(c,d)}return u.join("")},gn.prototype.Token=Zp;var e4=gn,t4=zl,Yi=[["table",xk,["paragraph","reference"]],["code",Ek],["fence",Sk,["paragraph","reference","blockquote","list"]],["blockquote",Ak,["paragraph","reference","blockquote","list"]],["hr",Dk,["paragraph","reference","blockquote","list"]],["list",Lk,["paragraph","reference","blockquote"]],["reference",$k],["html_block",Yk,["paragraph","reference","blockquote"]],["heading",Jk,["paragraph","reference","blockquote"]],["lheading",Xk],["paragraph",Qk]];function Ji(){this.ruler=new t4;for(var t=0;t<Yi.length;t++)this.ruler.push(Yi[t][0],Yi[t][1],{alt:(Yi[t][2]||[]).slice()})}Ji.prototype.tokenize=function(t,e,n){for(var o,r,i,s=this.ruler.getRules(""),l=s.length,c=e,d=!1,u=t.md.options.maxNesting;c<n&&(t.line=c=t.skipEmptyLines(c),!(c>=n||t.sCount[c]<t.blkIndent));){if(t.level>=u){t.line=n;break}for(i=t.line,r=0;r<l;r++)if(o=s[r](t,c,n,!1),o){if(i>=t.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");t.tight=!d,t.isEmpty(t.line-1)&&(d=!0),c=t.line,c<n&&t.isEmpty(c)&&(d=!0,c++,t.line=c)}},Ji.prototype.parse=function(t,e,n,o){var r;t&&(r=new this.State(t,e,n,o),this.tokenize(r,r.line,r.lineMax))},Ji.prototype.State=e4;var n4=Ji;function o4(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var r4=function(e,n){for(var o=e.pos;o<e.posMax&&!o4(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},a4=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,i4=function(e,n){var o,r,i,s,l,c,d,u;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,r=e.posMax,o+3>r)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(i=e.pending.match(a4),!i)||(s=i[1],l=e.md.linkify.matchAtStart(e.src.slice(o-s.length)),!l)||(c=l.url,c.length<=s.length)||(c=c.replace(/\*+$/,""),d=e.md.normalizeLink(c),!e.md.validateLink(d))?!1:(n||(e.pending=e.pending.slice(0,-s.length),u=e.push("link_open","a",1),u.attrs=[["href",d]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(c),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=c.length-s.length,!0)},s4=ke.isSpace,l4=function(e,n){var o,r,i,s=e.pos;if(e.src.charCodeAt(s)!==10)return!1;if(o=e.pending.length-1,r=e.posMax,!n)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(i=o-1;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(s++;s<r&&s4(e.src.charCodeAt(s));)s++;return e.pos=s,!0},c4=ke.isSpace,Zl=[],Gp=0;Gp<256;Gp++)Zl.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Zl[t.charCodeAt(0)]=1});var d4=function(e,n){var o,r,i,s,l,c=e.pos,d=e.posMax;if(e.src.charCodeAt(c)!==92||(c++,c>=d))return!1;if(o=e.src.charCodeAt(c),o===10){for(n||e.push("hardbreak","br",0),c++;c<d&&(o=e.src.charCodeAt(c),!!c4(o));)c++;return e.pos=c,!0}return s=e.src[c],o>=55296&&o<=56319&&c+1<d&&(r=e.src.charCodeAt(c+1),r>=56320&&r<=57343&&(s+=e.src[c+1],c++)),i="\\"+s,n||(l=e.push("text_special","",0),o<256&&Zl[o]!==0?l.content=s:l.content=i,l.markup=i,l.info="escape"),e.pos=c+1,!0},u4=function(e,n){var o,r,i,s,l,c,d,u,p=e.pos,f=e.src.charCodeAt(p);if(f!==96)return!1;for(o=p,p++,r=e.posMax;p<r&&e.src.charCodeAt(p)===96;)p++;if(i=e.src.slice(o,p),d=i.length,e.backticksScanned&&(e.backticks[d]||0)<=o)return n||(e.pending+=i),e.pos+=d,!0;for(c=p;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<r&&e.src.charCodeAt(c)===96;)c++;if(u=c-l,u===d)return n||(s=e.push("code_inline","code",0),s.markup=i,s.content=e.src.slice(p,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[u]=l}return e.backticksScanned=!0,n||(e.pending+=i),e.pos+=d,!0},Xi={};Xi.tokenize=function(e,n){var o,r,i,s,l,c=e.pos,d=e.src.charCodeAt(c);if(n||d!==126||(r=e.scanDelims(e.pos,!0),s=r.length,l=String.fromCharCode(d),s<2))return!1;for(s%2&&(i=e.push("text","",0),i.content=l,s--),o=0;o<s;o+=2)i=e.push("text","",0),i.content=l+l,e.delimiters.push({marker:d,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function Kp(t,e){var n,o,r,i,s,l=[],c=e.length;for(n=0;n<c;n++)r=e[n],r.marker===126&&r.end!==-1&&(i=e[r.end],s=t.tokens[r.token],s.type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",s=t.tokens[i.token],s.type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="",t.tokens[i.token-1].type==="text"&&t.tokens[i.token-1].content==="~"&&l.push(i.token-1));for(;l.length;){for(n=l.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(s=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=s)}}Xi.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(Kp(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&Kp(e,o[n].delimiters)};var Qi={};Qi.tokenize=function(e,n){var o,r,i,s=e.pos,l=e.src.charCodeAt(s);if(n||l!==95&&l!==42)return!1;for(r=e.scanDelims(e.pos,l===42),o=0;o<r.length;o++)i=e.push("text","",0),i.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function Yp(t,e){var n,o,r,i,s,l,c=e.length;for(n=c-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(r=e[o.end],l=n>0&&e[n-1].end===o.end+1&&e[n-1].marker===o.marker&&e[n-1].token===o.token-1&&e[o.end+1].token===r.token+1,s=String.fromCharCode(o.marker),i=t.tokens[o.token],i.type=l?"strong_open":"em_open",i.tag=l?"strong":"em",i.nesting=1,i.markup=l?s+s:s,i.content="",i=t.tokens[r.token],i.type=l?"strong_close":"em_close",i.tag=l?"strong":"em",i.nesting=-1,i.markup=l?s+s:s,i.content="",l&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}Qi.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(Yp(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&Yp(e,o[n].delimiters)};var p4=ke.normalizeReference,Gl=ke.isSpace,f4=function(e,n){var o,r,i,s,l,c,d,u,p,f="",m="",h=e.pos,g=e.posMax,v=e.pos,_=!0;if(e.src.charCodeAt(e.pos)!==91||(l=e.pos+1,s=e.md.helpers.parseLinkLabel(e,e.pos,!0),s<0))return!1;if(c=s+1,c<g&&e.src.charCodeAt(c)===40){for(_=!1,c++;c<g&&(r=e.src.charCodeAt(c),!(!Gl(r)&&r!==10));c++);if(c>=g)return!1;if(v=c,d=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),d.ok){for(f=e.md.normalizeLink(d.str),e.md.validateLink(f)?c=d.pos:f="",v=c;c<g&&(r=e.src.charCodeAt(c),!(!Gl(r)&&r!==10));c++);if(d=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&v!==c&&d.ok)for(m=d.str,c=d.pos;c<g&&(r=e.src.charCodeAt(c),!(!Gl(r)&&r!==10));c++);}(c>=g||e.src.charCodeAt(c)!==41)&&(_=!0),c++}if(_){if(typeof e.env.references>"u")return!1;if(c<g&&e.src.charCodeAt(c)===91?(v=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?i=e.src.slice(v,c++):c=s+1):c=s+1,i||(i=e.src.slice(l,s)),u=e.env.references[p4(i)],!u)return e.pos=h,!1;f=u.href,m=u.title}return n||(e.pos=l,e.posMax=s,p=e.push("link_open","a",1),p.attrs=o=[["href",f]],m&&o.push(["title",m]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,p=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},m4=ke.normalizeReference,Kl=ke.isSpace,h4=function(e,n){var o,r,i,s,l,c,d,u,p,f,m,h,g,v="",_=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(c=e.pos+2,l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),l<0))return!1;if(d=l+1,d<y&&e.src.charCodeAt(d)===40){for(d++;d<y&&(r=e.src.charCodeAt(d),!(!Kl(r)&&r!==10));d++);if(d>=y)return!1;for(g=d,p=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),p.ok&&(v=e.md.normalizeLink(p.str),e.md.validateLink(v)?d=p.pos:v=""),g=d;d<y&&(r=e.src.charCodeAt(d),!(!Kl(r)&&r!==10));d++);if(p=e.md.helpers.parseLinkTitle(e.src,d,e.posMax),d<y&&g!==d&&p.ok)for(f=p.str,d=p.pos;d<y&&(r=e.src.charCodeAt(d),!(!Kl(r)&&r!==10));d++);else f="";if(d>=y||e.src.charCodeAt(d)!==41)return e.pos=_,!1;d++}else{if(typeof e.env.references>"u")return!1;if(d<y&&e.src.charCodeAt(d)===91?(g=d+1,d=e.md.helpers.parseLinkLabel(e,d),d>=0?s=e.src.slice(g,d++):d=l+1):d=l+1,s||(s=e.src.slice(c,l)),u=e.env.references[m4(s)],!u)return e.pos=_,!1;v=u.href,f=u.title}return n||(i=e.src.slice(c,l),e.md.inline.parse(i,e.md,e.env,h=[]),m=e.push("image","img",0),m.attrs=o=[["src",v],["alt",""]],m.children=h,m.content=i,f&&o.push(["title",f])),e.pos=d,e.posMax=y,!0},g4=/^([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])?)*)$/,b4=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,y4=function(e,n){var o,r,i,s,l,c,d=e.pos;if(e.src.charCodeAt(d)!==60)return!1;for(l=e.pos,c=e.posMax;;){if(++d>=c||(s=e.src.charCodeAt(d),s===60))return!1;if(s===62)break}return o=e.src.slice(l+1,d),b4.test(o)?(r=e.md.normalizeLink(o),e.md.validateLink(r)?(n||(i=e.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(o),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=o.length+2,!0):!1):g4.test(o)?(r=e.md.normalizeLink("mailto:"+o),e.md.validateLink(r)?(n||(i=e.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(o),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=o.length+2,!0):!1):!1},_4=Gi.HTML_TAG_RE;function v4(t){return/^<a[>\s]/i.test(t)}function C4(t){return/^<\/a\s*>/i.test(t)}function w4(t){var e=t|32;return e>=97&&e<=122}var k4=function(e,n){var o,r,i,s,l=e.pos;return!e.md.options.html||(i=e.posMax,e.src.charCodeAt(l)!==60||l+2>=i)||(o=e.src.charCodeAt(l+1),o!==33&&o!==63&&o!==47&&!w4(o))||(r=e.src.slice(l).match(_4),!r)?!1:(n||(s=e.push("html_inline","",0),s.content=r[0],v4(s.content)&&e.linkLevel++,C4(s.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},Jp=gp,x4=ke.has,E4=ke.isValidEntityCode,Xp=ke.fromCodePoint,S4=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,T4=/^&([a-z][a-z0-9]{1,31});/i,A4=function(e,n){var o,r,i,s,l=e.pos,c=e.posMax;if(e.src.charCodeAt(l)!==38||l+1>=c)return!1;if(o=e.src.charCodeAt(l+1),o===35){if(i=e.src.slice(l).match(S4),i)return n||(r=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),s=e.push("text_special","",0),s.content=E4(r)?Xp(r):Xp(65533),s.markup=i[0],s.info="entity"),e.pos+=i[0].length,!0}else if(i=e.src.slice(l).match(T4),i&&x4(Jp,i[1]))return n||(s=e.push("text_special","",0),s.content=Jp[i[1]],s.markup=i[0],s.info="entity"),e.pos+=i[0].length,!0;return!1};function Qp(t){var e,n,o,r,i,s,l,c,d={},u=t.length;if(u){var p=0,f=-2,m=[];for(e=0;e<u;e++)if(o=t[e],m.push(0),(t[p].marker!==o.marker||f!==o.token-1)&&(p=e),f=o.token,o.length=o.length||0,!!o.close){for(d.hasOwnProperty(o.marker)||(d[o.marker]=[-1,-1,-1,-1,-1,-1]),i=d[o.marker][(o.open?3:0)+o.length%3],n=p-m[p]-1,s=n;n>i;n-=m[n]+1)if(r=t[n],r.marker===o.marker&&r.open&&r.end<0&&(l=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.length%3!==0||o.length%3!==0)&&(l=!0),!l)){c=n>0&&!t[n-1].open?m[n-1]+1:0,m[e]=e-n+c,m[n]=c,o.open=!1,r.end=e,r.close=!1,s=-1,f=-2;break}s!==-1&&(d[o.marker][(o.open?3:0)+(o.length||0)%3]=s)}}}var N4=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(Qp(e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&Qp(o[n].delimiters)},D4=function(e){var n,o,r=0,i=e.tokens,s=e.tokens.length;for(n=o=0;n<s;n++)i[n].nesting<0&&r--,i[n].level=r,i[n].nesting>0&&r++,i[n].type==="text"&&n+1<s&&i[n+1].type==="text"?i[n+1].content=i[n].content+i[n+1].content:(n!==o&&(i[o]=i[n]),o++);n!==o&&(i.length=o)},Yl=ql,e1=ke.isWhiteSpace,t1=ke.isPunctChar,n1=ke.isMdAsciiPunct;function _a(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}_a.prototype.pushPending=function(){var t=new Yl("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},_a.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new Yl(t,e,n),r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o},_a.prototype.scanDelims=function(t,e){var n=t,o,r,i,s,l,c,d,u,p,f=!0,m=!0,h=this.posMax,g=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<h&&this.src.charCodeAt(n)===g;)n++;return i=n-t,r=n<h?this.src.charCodeAt(n):32,d=n1(o)||t1(String.fromCharCode(o)),p=n1(r)||t1(String.fromCharCode(r)),c=e1(o),u=e1(r),u?f=!1:p&&(c||d||(f=!1)),c?m=!1:d&&(u||p||(m=!1)),e?(s=f,l=m):(s=f&&(!m||d),l=m&&(!f||p)),{can_open:s,can_close:l,length:i}},_a.prototype.Token=Yl;var B4=_a,o1=zl,Jl=[["text",r4],["linkify",i4],["newline",l4],["escape",d4],["backticks",u4],["strikethrough",Xi.tokenize],["emphasis",Qi.tokenize],["link",f4],["image",h4],["autolink",y4],["html_inline",k4],["entity",A4]],Xl=[["balance_pairs",N4],["strikethrough",Xi.postProcess],["emphasis",Qi.postProcess],["fragments_join",D4]];function va(){var t;for(this.ruler=new o1,t=0;t<Jl.length;t++)this.ruler.push(Jl[t][0],Jl[t][1]);for(this.ruler2=new o1,t=0;t<Xl.length;t++)this.ruler2.push(Xl[t][0],Xl[t][1])}va.prototype.skipToken=function(t){var e,n,o=t.pos,r=this.ruler.getRules(""),i=r.length,s=t.md.options.maxNesting,l=t.cache;if(typeof l[o]<"u"){t.pos=l[o];return}if(t.level<s){for(n=0;n<i;n++)if(t.level++,e=r[n](t,!0),t.level--,e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,l[o]=t.pos},va.prototype.tokenize=function(t){for(var e,n,o,r=this.ruler.getRules(""),i=r.length,s=t.posMax,l=t.md.options.maxNesting;t.pos<s;){if(o=t.pos,t.level<l){for(n=0;n<i;n++)if(e=r[n](t,!1),e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=s)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},va.prototype.parse=function(t,e,n,o){var r,i,s,l=new this.State(t,e,n,o);for(this.tokenize(l),i=this.ruler2.getRules(""),s=i.length,r=0;r<s;r++)i[r](l)},va.prototype.State=B4;var L4=va,Ql,r1;function M4(){return r1||(r1=1,Ql=function(t){var e={};t=t||{},e.src_Any=Ep().source,e.src_Cc=Tp().source,e.src_Z=Dp().source,e.src_P=Il.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Ql}function ec(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}function es(t){return Object.prototype.toString.call(t)}function $4(t){return es(t)==="[object String]"}function O4(t){return es(t)==="[object Object]"}function I4(t){return es(t)==="[object RegExp]"}function a1(t){return es(t)==="[object Function]"}function R4(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var i1={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function P4(t){return Object.keys(t||{}).reduce(function(e,n){return e||i1.hasOwnProperty(n)},!1)}var V4={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},F4="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",z4="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function q4(t){t.__index__=-1,t.__text_cache__=""}function j4(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function s1(){return function(t,e){e.normalize(t)}}function ts(t){var e=t.re=M4()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(F4),n.push(e.src_xn),e.src_tlds=n.join("|");function o(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var r=[];t.__compiled__={};function i(l,c){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c)}Object.keys(t.__schemas__).forEach(function(l){var c=t.__schemas__[l];if(c!==null){var d={validate:null,link:null};if(t.__compiled__[l]=d,O4(c)){I4(c.validate)?d.validate=j4(c.validate):a1(c.validate)?d.validate=c.validate:i(l,c),a1(c.normalize)?d.normalize=c.normalize:c.normalize?i(l,c):d.normalize=s1();return}if($4(c)){r.push(l);return}i(l,c)}}),r.forEach(function(l){t.__compiled__[t.__schemas__[l]]&&(t.__compiled__[l].validate=t.__compiled__[t.__schemas__[l]].validate,t.__compiled__[l].normalize=t.__compiled__[t.__schemas__[l]].normalize)}),t.__compiled__[""]={validate:null,normalize:s1()};var s=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(R4).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),q4(t)}function U4(t,e){var n=t.__index__,o=t.__last_index__,r=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=r,this.text=r,this.url=r}function tc(t,e){var n=new U4(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function St(t,e){if(!(this instanceof St))return new St(t,e);e||P4(t)&&(e=t,t={}),this.__opts__=ec({},i1,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ec({},V4,t),this.__compiled__={},this.__tlds__=z4,this.__tlds_replaced__=!1,this.re={},ts(this)}St.prototype.add=function(e,n){return this.__schemas__[e]=n,ts(this),this},St.prototype.set=function(e){return this.__opts__=ec(this.__opts__,e),this},St.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,r,i,s,l,c,d,u;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(i=this.testSchemaAt(e,n[2],c.lastIndex),i){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=o.index+o[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=e.indexOf("@"),u>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(s=r.index+r[1].length,l=r.index+r[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=l))),this.__index__>=0},St.prototype.pretest=function(e){return this.re.pretest.test(e)},St.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0},St.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(tc(this,n)),n=this.__last_index__);for(var r=n?e.slice(n):e;this.test(r);)o.push(tc(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null},St.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var o=this.testSchemaAt(e,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,tc(this,0)):null},St.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,r,i){return o!==i[r-1]}).reverse(),ts(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ts(this),this)},St.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},St.prototype.onCompile=function(){};var H4=St;const Cr=2147483647,bn=36,nc=1,Ca=26,W4=38,Z4=700,l1=72,c1=128,d1="-",G4=/^xn--/,K4=/[^\0-\x7F]/,Y4=/[\x2E\u3002\uFF0E\uFF61]/g,J4={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},oc=bn-nc,yn=Math.floor,rc=String.fromCharCode;function oo(t){throw new RangeError(J4[t])}function X4(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function u1(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(Y4,".");const r=t.split("."),i=X4(r,e).join(".");return o+i}function ac(t){const e=[];let n=0;const o=t.length;for(;n<o;){const r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<o){const i=t.charCodeAt(n++);(i&64512)==56320?e.push(((r&1023)<<10)+(i&1023)+65536):(e.push(r),n--)}else e.push(r)}return e}const p1=t=>String.fromCodePoint(...t),Q4=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:bn},f1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},m1=function(t,e,n){let o=0;for(t=n?yn(t/Z4):t>>1,t+=yn(t/e);t>oc*Ca>>1;o+=bn)t=yn(t/oc);return yn(o+(oc+1)*t/(t+W4))},ic=function(t){const e=[],n=t.length;let o=0,r=c1,i=l1,s=t.lastIndexOf(d1);s<0&&(s=0);for(let l=0;l<s;++l)t.charCodeAt(l)>=128&&oo("not-basic"),e.push(t.charCodeAt(l));for(let l=s>0?s+1:0;l<n;){const c=o;for(let u=1,p=bn;;p+=bn){l>=n&&oo("invalid-input");const f=Q4(t.charCodeAt(l++));f>=bn&&oo("invalid-input"),f>yn((Cr-o)/u)&&oo("overflow"),o+=f*u;const m=p<=i?nc:p>=i+Ca?Ca:p-i;if(f<m)break;const h=bn-m;u>yn(Cr/h)&&oo("overflow"),u*=h}const d=e.length+1;i=m1(o-c,d,c==0),yn(o/d)>Cr-r&&oo("overflow"),r+=yn(o/d),o%=d,e.splice(o++,0,r)}return String.fromCodePoint(...e)},sc=function(t){const e=[];t=ac(t);const n=t.length;let o=c1,r=0,i=l1;for(const c of t)c<128&&e.push(rc(c));const s=e.length;let l=s;for(s&&e.push(d1);l<n;){let c=Cr;for(const u of t)u>=o&&u<c&&(c=u);const d=l+1;c-o>yn((Cr-r)/d)&&oo("overflow"),r+=(c-o)*d,o=c;for(const u of t)if(u<o&&++r>Cr&&oo("overflow"),u===o){let p=r;for(let f=bn;;f+=bn){const m=f<=i?nc:f>=i+Ca?Ca:f-i;if(p<m)break;const h=p-m,g=bn-m;e.push(rc(f1(m+h%g,0))),p=yn(h/g)}e.push(rc(f1(p,0))),i=m1(r,d,l===s),r=0,++l}++r,++o}return e.join("")},h1=function(t){return u1(t,function(e){return G4.test(e)?ic(e.slice(4).toLowerCase()):e})},g1=function(t){return u1(t,function(e){return K4.test(e)?"xn--"+sc(e):e})},e8=qv(Object.freeze(Object.defineProperty({__proto__:null,decode:ic,default:{version:"2.1.0",ucs2:{decode:ac,encode:p1},decode:ic,encode:sc,toASCII:g1,toUnicode:h1},encode:sc,toASCII:g1,toUnicode:h1,ucs2decode:ac,ucs2encode:p1},Symbol.toStringTag,{value:"Module"})));var t8={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},n8={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},o8={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},wa=ke,r8=Hi,a8=Qw,i8=kk,s8=n4,l8=L4,c8=H4,Do=br,b1=e8,d8={default:t8,zero:n8,commonmark:o8},u8=/^(vbscript|javascript|file|data):/,p8=/^data:image\/(gif|png|jpeg|webp);/;function f8(t){var e=t.trim().toLowerCase();return u8.test(e)?!!p8.test(e):!0}var y1=["http:","https:","mailto:"];function m8(t){var e=Do.parse(t,!0);if(e.hostname&&(!e.protocol||y1.indexOf(e.protocol)>=0))try{e.hostname=b1.toASCII(e.hostname)}catch{}return Do.encode(Do.format(e))}function h8(t){var e=Do.parse(t,!0);if(e.hostname&&(!e.protocol||y1.indexOf(e.protocol)>=0))try{e.hostname=b1.toUnicode(e.hostname)}catch{}return Do.decode(Do.format(e),Do.decode.defaultChars+"%")}function jt(t,e){if(!(this instanceof jt))return new jt(t,e);e||wa.isString(t)||(e=t||{},t="default"),this.inline=new l8,this.block=new s8,this.core=new i8,this.renderer=new a8,this.linkify=new c8,this.validateLink=f8,this.normalizeLink=m8,this.normalizeLinkText=h8,this.utils=wa,this.helpers=wa.assign({},r8),this.options={},this.configure(t),e&&this.set(e)}jt.prototype.set=function(t){return wa.assign(this.options,t),this},jt.prototype.configure=function(t){var e=this,n;if(wa.isString(t)&&(n=t,t=d8[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this},jt.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this},jt.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this},jt.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},jt.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},jt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},jt.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},jt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var g8=jt,b8=g8;const y8=zv(b8);/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function _1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function _8(t){if(Array.isArray(t))return t}function v8(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,s,l=[],c=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(u){d=!0,r=u}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw r}}return l}}function C8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
19
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w8(t,e){return _8(t)||v8(t,e)||k8(t,e)||C8()}function k8(t,e){if(t){if(typeof t=="string")return _1(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_1(t,e):void 0}}const v1=Object.entries,C1=Object.setPrototypeOf,x8=Object.isFrozen,E8=Object.getPrototypeOf,S8=Object.getOwnPropertyDescriptor;let Qe=Object.freeze,et=Object.seal,wr=Object.create,w1=typeof Reflect<"u"&&Reflect,lc=w1.apply,cc=w1.construct;Qe||(Qe=function(e){return e}),et||(et=function(e){return e}),lc||(lc=function(e,n){for(var o=arguments.length,r=new Array(o>2?o-2:0),i=2;i<o;i++)r[i-2]=arguments[i];return e.apply(n,r)}),cc||(cc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return new e(...o)});const kr=ze(Array.prototype.forEach),T8=ze(Array.prototype.lastIndexOf),k1=ze(Array.prototype.pop),xr=ze(Array.prototype.push),A8=ze(Array.prototype.splice),ro=Array.isArray,ka=ze(String.prototype.toLowerCase),dc=ze(String.prototype.toString),x1=ze(String.prototype.match),xa=ze(String.prototype.replace),E1=ze(String.prototype.indexOf),N8=ze(String.prototype.trim),D8=ze(Number.prototype.toString),B8=ze(Boolean.prototype.toString),S1=typeof BigInt>"u"?null:ze(BigInt.prototype.toString),T1=typeof Symbol>"u"?null:ze(Symbol.prototype.toString),Ge=ze(Object.prototype.hasOwnProperty),Ea=ze(Object.prototype.toString),Ke=ze(RegExp.prototype.test),Bo=L8(TypeError);function ze(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return lc(t,e,o)}}function L8(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return cc(t,n)}}function ye(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ka;if(C1&&C1(t,null),!ro(e))return t;let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(x8(e)||(e[o]=i),r=i)}t[r]=!0}return t}function M8(t){for(let e=0;e<t.length;e++)Ge(t,e)||(t[e]=null);return t}function at(t){const e=wr(null);for(const o of v1(t)){var n=w8(o,2);const r=n[0],i=n[1];Ge(t,r)&&(ro(i)?e[r]=M8(i):i&&typeof i=="object"&&i.constructor===Object?e[r]=at(i):e[r]=i)}return e}function $8(t){switch(typeof t){case"string":return t;case"number":return D8(t);case"boolean":return B8(t);case"bigint":return S1?S1(t):"0";case"symbol":return T1?T1(t):"Symbol()";case"undefined":return Ea(t);case"function":case"object":{if(t===null)return Ea(t);const e=t,n=Jt(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:Ea(o)}return Ea(t)}default:return Ea(t)}}function Jt(t,e){for(;t!==null;){const o=S8(t,e);if(o){if(o.get)return ze(o.get);if(typeof o.value=="function")return ze(o.value)}t=E8(t)}function n(){return null}return n}function O8(t){try{return Ke(t,""),!0}catch{return!1}}const A1=Qe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),uc=Qe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pc=Qe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I8=Qe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),fc=Qe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),R8=Qe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N1=Qe(["#text"]),D1=Qe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),mc=Qe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B1=Qe(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ns=Qe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),P8=et(/{{[\w\W]*|^[\w\W]*}}/g),V8=et(/<%[\w\W]*|^[\w\W]*%>/g),F8=et(/\${[\w\W]*/g),z8=et(/^data-[\-\w.\u00B7-\uFFFF]+$/),q8=et(/^aria-[\-\w]+$/),L1=et(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j8=et(/^(?:\w+script|data):/i),U8=et(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),H8=et(/^html$/i),W8=et(/^[a-z][.\w]*(-[.\w]+)+$/i),M1=et(/<[/\w!]/g),$1=et(/<[/\w]/g),Z8=et(/<\/no(script|embed|frames)/i),G8=et(/\/>/i),Tt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},K8=function(){return typeof window>"u"?null:window},Y8=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));const i="dompurify"+(o?"#"+o:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},O1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ao=function(e,n,o,r){return Ge(e,n)&&ro(e[n])?ye(r.base?at(r.base):{},e[n],r.transform):o};function I1(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:K8();const e=Q=>I1(Q);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Tt.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,r=o.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,s=t.Node,l=t.Element,c=t.NodeFilter,d=t.NamedNodeMap;d===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const u=t.DOMParser,p=t.trustedTypes,f=l.prototype,m=Jt(f,"cloneNode"),h=Jt(f,"remove"),g=Jt(f,"nextSibling"),v=Jt(f,"childNodes"),_=Jt(f,"parentNode"),y=Jt(f,"shadowRoot"),b=Jt(f,"attributes"),k=s&&s.prototype?Jt(s.prototype,"nodeType"):null,w=s&&s.prototype?Jt(s.prototype,"nodeName"):null,C=s&&s.prototype?Jt(s.prototype,"ownerDocument"):null;if(typeof i=="function"){const Q=n.createElement("template");Q.content&&Q.content.ownerDocument&&(n=Q.content.ownerDocument)}let x,S="",T,A=!1,z=0;const O=function(){if(z>0)throw Bo('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},B=function(E){O(),z++;try{return x.createHTML(E)}finally{z--}},L=function(E){O(),z++;try{return x.createScriptURL(E)}finally{z--}},I=function(){return A||(T=Y8(p,r),A=!0),T},P=n,G=P.implementation,R=P.createNodeIterator,D=P.createDocumentFragment,K=P.getElementsByTagName,F=o.importNode;let U=O1();e.isSupported=typeof v1=="function"&&typeof _=="function"&&G&&G.createHTMLDocument!==void 0;const ce=P8,ee=V8,ae=F8,q=z8,ne=q8,$=j8,Y=U8,be=W8;let Ze=L1,pe=null;const Ce=ye({},[...A1,...uc,...pc,...fc,...N1]);let xe=null;const bt=ye({},[...D1,...mc,...B1,...ns]);let De=Object.seal(wr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),yt=null,Lt=null;const Pe=Object.seal(wr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let _t=!0,Mt=!0,bo=!1,or=!0,Ve=!1,vt=!0,lt=!1,sn=!1,Un=null,yo=null,rr=!1,_o=!1,Wr=!1,Zr=!1,Hn=!0,En=!1;const rl="user-content-";let oi=!0,ln=!1,$t={},Ot=null;const Gr=ye({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let al=null;const ri=ye({},["audio","video","img","source","image","track"]);let It=null;const Kr=ye({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vo="http://www.w3.org/1998/Math/MathML",Yr="http://www.w3.org/2000/svg",Rt="http://www.w3.org/1999/xhtml";let Co=Rt,ar=!1,ai=null;const ru=ye({},[vo,Yr,Rt],dc),il=Qe(["mi","mo","mn","ms","mtext"]);let Pt=ye({},il);const sl=Qe(["annotation-xml"]);let ii=ye({},sl);const au=ye({},["title","style","font","a","script"]);let ir=null;const si=["application/xhtml+xml","text/html"],li="text/html";let Ae=null,cn=null;const ci=n.createElement("form"),ll=function(E){return E instanceof RegExp||E instanceof Function},wo=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(cn&&cn===E)return;(!E||typeof E!="object")&&(E={}),E=at(E),ir=si.indexOf(E.PARSER_MEDIA_TYPE)===-1?li:E.PARSER_MEDIA_TYPE,Ae=ir==="application/xhtml+xml"?dc:ka,pe=ao(E,"ALLOWED_TAGS",Ce,{transform:Ae}),xe=ao(E,"ALLOWED_ATTR",bt,{transform:Ae}),ai=ao(E,"ALLOWED_NAMESPACES",ru,{transform:dc}),It=ao(E,"ADD_URI_SAFE_ATTR",Kr,{transform:Ae,base:Kr}),al=ao(E,"ADD_DATA_URI_TAGS",ri,{transform:Ae,base:ri}),Ot=ao(E,"FORBID_CONTENTS",Gr,{transform:Ae}),yt=ao(E,"FORBID_TAGS",at({}),{transform:Ae}),Lt=ao(E,"FORBID_ATTR",at({}),{transform:Ae}),$t=Ge(E,"USE_PROFILES")?E.USE_PROFILES&&typeof E.USE_PROFILES=="object"?at(E.USE_PROFILES):E.USE_PROFILES:!1,_t=E.ALLOW_ARIA_ATTR!==!1,Mt=E.ALLOW_DATA_ATTR!==!1,bo=E.ALLOW_UNKNOWN_PROTOCOLS||!1,or=E.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ve=E.SAFE_FOR_TEMPLATES||!1,vt=E.SAFE_FOR_XML!==!1,lt=E.WHOLE_DOCUMENT||!1,_o=E.RETURN_DOM||!1,Wr=E.RETURN_DOM_FRAGMENT||!1,Zr=E.RETURN_TRUSTED_TYPE||!1,rr=E.FORCE_BODY||!1,Hn=E.SANITIZE_DOM!==!1,En=E.SANITIZE_NAMED_PROPS||!1,oi=E.KEEP_CONTENT!==!1,ln=E.IN_PLACE||!1,Ze=O8(E.ALLOWED_URI_REGEXP)?E.ALLOWED_URI_REGEXP:L1,Co=typeof E.NAMESPACE=="string"?E.NAMESPACE:Rt,Pt=Ge(E,"MATHML_TEXT_INTEGRATION_POINTS")&&E.MATHML_TEXT_INTEGRATION_POINTS&&typeof E.MATHML_TEXT_INTEGRATION_POINTS=="object"?at(E.MATHML_TEXT_INTEGRATION_POINTS):ye({},il),ii=Ge(E,"HTML_INTEGRATION_POINTS")&&E.HTML_INTEGRATION_POINTS&&typeof E.HTML_INTEGRATION_POINTS=="object"?at(E.HTML_INTEGRATION_POINTS):ye({},sl);const M=Ge(E,"CUSTOM_ELEMENT_HANDLING")&&E.CUSTOM_ELEMENT_HANDLING&&typeof E.CUSTOM_ELEMENT_HANDLING=="object"?at(E.CUSTOM_ELEMENT_HANDLING):wr(null);if(De=wr(null),Ge(M,"tagNameCheck")&&ll(M.tagNameCheck)&&(De.tagNameCheck=M.tagNameCheck),Ge(M,"attributeNameCheck")&&ll(M.attributeNameCheck)&&(De.attributeNameCheck=M.attributeNameCheck),Ge(M,"allowCustomizedBuiltInElements")&&typeof M.allowCustomizedBuiltInElements=="boolean"&&(De.allowCustomizedBuiltInElements=M.allowCustomizedBuiltInElements),et(De),Ve&&(Mt=!1),Wr&&(_o=!0),$t&&(pe=ye({},N1),xe=wr(null),$t.html===!0&&(ye(pe,A1),ye(xe,D1)),$t.svg===!0&&(ye(pe,uc),ye(xe,mc),ye(xe,ns)),$t.svgFilters===!0&&(ye(pe,pc),ye(xe,mc),ye(xe,ns)),$t.mathMl===!0&&(ye(pe,fc),ye(xe,B1),ye(xe,ns))),Pe.tagCheck=null,Pe.attributeCheck=null,Ge(E,"ADD_TAGS")&&(typeof E.ADD_TAGS=="function"?Pe.tagCheck=E.ADD_TAGS:ro(E.ADD_TAGS)&&(pe===Ce&&(pe=at(pe)),ye(pe,E.ADD_TAGS,Ae))),Ge(E,"ADD_ATTR")&&(typeof E.ADD_ATTR=="function"?Pe.attributeCheck=E.ADD_ATTR:ro(E.ADD_ATTR)&&(xe===bt&&(xe=at(xe)),ye(xe,E.ADD_ATTR,Ae))),Ge(E,"ADD_URI_SAFE_ATTR")&&ro(E.ADD_URI_SAFE_ATTR)&&ye(It,E.ADD_URI_SAFE_ATTR,Ae),Ge(E,"FORBID_CONTENTS")&&ro(E.FORBID_CONTENTS)&&(Ot===Gr&&(Ot=at(Ot)),ye(Ot,E.FORBID_CONTENTS,Ae)),Ge(E,"ADD_FORBID_CONTENTS")&&ro(E.ADD_FORBID_CONTENTS)&&(Ot===Gr&&(Ot=at(Ot)),ye(Ot,E.ADD_FORBID_CONTENTS,Ae)),oi&&(pe["#text"]=!0),lt&&ye(pe,["html","head","body"]),pe.table&&(ye(pe,["tbody"]),delete yt.tbody),E.TRUSTED_TYPES_POLICY){if(typeof E.TRUSTED_TYPES_POLICY.createHTML!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof E.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const W=x;x=E.TRUSTED_TYPES_POLICY;try{S=B("")}catch(ie){throw x=W,ie}}else E.TRUSTED_TYPES_POLICY===null?(x=void 0,S=""):(x===void 0&&(x=I()),x&&typeof S=="string"&&(S=B("")));Qe&&Qe(E),cn=E},di=ye({},[...uc,...pc,...I8]),N=ye({},[...fc,...R8]),J=function(E,M,W){return M.namespaceURI===Rt?E==="svg":M.namespaceURI===vo?E==="svg"&&(W==="annotation-xml"||Pt[W]):!!di[E]},ge=function(E,M,W){return M.namespaceURI===Rt?E==="math":M.namespaceURI===Yr?E==="math"&&ii[W]:!!N[E]},Oe=function(E,M,W){return M.namespaceURI===Yr&&!ii[W]||M.namespaceURI===vo&&!Pt[W]?!1:!N[E]&&(au[E]||!di[E])},Wn=function(E){let M=_(E);(!M||!M.tagName)&&(M={namespaceURI:Co,tagName:"template"});const W=ka(E.tagName),ie=ka(M.tagName);return ai[E.namespaceURI]?E.namespaceURI===Yr?J(W,M,ie):E.namespaceURI===vo?ge(W,M,ie):E.namespaceURI===Rt?Oe(W,M,ie):!!(ir==="application/xhtml+xml"&&ai[E.namespaceURI]):!1},dn=function(E){xr(e.removed,{element:E});try{_(E).removeChild(E)}catch{if(h(E),!_(E))throw Bo("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ui=function(E){pi(E);const M=v(E);if(M){const ie=[];kr(M,se=>{xr(ie,se)}),kr(ie,se=>{try{h(se)}catch{}})}const W=b(E);if(W)for(let ie=W.length-1;ie>=0;--ie){const se=W[ie],me=se&&se.name;if(typeof me=="string")try{E.removeAttribute(me)}catch{}}},Zn=function(E,M){try{xr(e.removed,{attribute:M.getAttributeNode(E),from:M})}catch{xr(e.removed,{attribute:null,from:M})}if(M.removeAttribute(E),E==="is")if(_o||Wr)try{dn(M)}catch{}else try{M.setAttribute(E,"")}catch{}},cl=function(E){const M=b(E);if(M)for(let W=M.length-1;W>=0;--W){const ie=M[W],se=ie&&ie.name;if(!(typeof se!="string"||xe[Ae(se)]))try{E.removeAttribute(se)}catch{}}},pi=function(E){const M=[E];for(;M.length>0;){const W=M.pop();(k?k(W):W.nodeType)===Tt.element&&cl(W);const se=v(W);if(se)for(let me=se.length-1;me>=0;--me)M.push(se[me])}},lD=function(E){if(!vt)return;const M=[E];for(;M.length>0;){const W=M.pop(),ie=k?k(W):W.nodeType;if(ie===Tt.processingInstruction||ie===Tt.comment&&Ke($1,W.data)){try{h(W)}catch{}continue}if(ie===Tt.element){const me=W,Ne=Ae(w?w(W):W.nodeName);try{me.hasAttribute&&me.hasAttribute("patchsrc")&&me.removeAttribute("patchsrc"),me.hasAttribute&&me.hasAttribute("for")&&Ne!=="label"&&Ne!=="output"&&me.removeAttribute("for")}catch{}}const se=v(W);if(se)for(let me=se.length-1;me>=0;--me)M.push(se[me])}},Dg=function(E){let M=null,W=null;if(rr)E="<remove></remove>"+E;else{const me=x1(E,/^[\r\n\t ]+/);W=me&&me[0]}ir==="application/xhtml+xml"&&Co===Rt&&(E='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+E+"</body></html>");const ie=x?B(E):E;if(Co===Rt)try{M=new u().parseFromString(ie,ir)}catch{}if(!M||!M.documentElement){M=G.createDocument(Co,"template",null);try{M.documentElement.innerHTML=ar?S:ie}catch{}}const se=M.body||M.documentElement;return E&&W&&se.insertBefore(n.createTextNode(W),se.childNodes[0]||null),Co===Rt?K.call(M,lt?"html":"body")[0]:lt?M.documentElement:se},Bg=function(E){const M=C?C(E):E.ownerDocument;return R.call(M||E,E,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},dl=function(E){return E=xa(E,ce," "),E=xa(E,ee," "),E=xa(E,ae," "),E},iu=function(E){var M;E.normalize();const W=C?C(E):E.ownerDocument,ie=R.call(W||E,E,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let se=ie.nextNode();for(;se;)se.data=dl(se.data),se=ie.nextNode();const me=(M=E.querySelectorAll)===null||M===void 0?void 0:M.call(E,"template");me&&kr(me,Ne=>{Jr(Ne.content)&&iu(Ne.content)})},ul=function(E){const M=w?w(E):null;return typeof M!="string"||Ae(M)!=="form"?!1:typeof E.nodeName!="string"||typeof E.textContent!="string"||typeof E.removeChild!="function"||E.attributes!==b(E)||typeof E.removeAttribute!="function"||typeof E.setAttribute!="function"||typeof E.namespaceURI!="string"||typeof E.insertBefore!="function"||typeof E.hasChildNodes!="function"||E.nodeType!==k(E)||E.childNodes!==v(E)},Jr=function(E){if(!k||typeof E!="object"||E===null)return!1;try{return k(E)===Tt.documentFragment}catch{return!1}},fi=function(E){if(!k||typeof E!="object"||E===null)return!1;try{return typeof k(E)=="number"}catch{return!1}};function Sn(Q,E,M){Q.length!==0&&kr(Q,W=>{W.call(e,E,M,cn)})}const cD=function(E,M){return!!(vt&&E.hasChildNodes()&&!fi(E.firstElementChild)&&Ke(M1,E.textContent)&&Ke(M1,E.innerHTML)||vt&&E.namespaceURI===Rt&&M==="style"&&fi(E.firstElementChild)||E.nodeType===Tt.processingInstruction||vt&&E.nodeType===Tt.comment&&Ke($1,E.data))},dD=function(E,M,W){if(!yt[M]&&Og(M)&&(De.tagNameCheck instanceof RegExp&&Ke(De.tagNameCheck,M)||De.tagNameCheck instanceof Function&&De.tagNameCheck(M)))return!1;if(oi&&!Ot[M]){const ie=_(E),se=v(E);if(se&&ie){const me=se.length;for(let Ne=me-1;Ne>=0;--Ne){const Ie=E===W?m(se[Ne],!0):se[Ne];ie.insertBefore(Ie,g(E))}}}return dn(E),!0},Lg=function(E,M,W,ie){return E.length===0?M:M===W||M===ie?at(M):M},Mg=function(E,M){if(Sn(U.beforeSanitizeElements,E,null),E!==M&&_(E)===null)return ln&&pi(E),!0;if(ul(E))return dn(E),!0;const W=Ae(w?w(E):E.nodeName);if(pe=Lg(U.uponSanitizeElement,pe,Ce,Un),Sn(U.uponSanitizeElement,E,{tagName:W,allowedTags:pe}),E!==M&&_(E)===null)return ln&&pi(E),!0;if(cD(E,W))return dn(E),!0;if(yt[W]||!(Pe.tagCheck instanceof Function&&Pe.tagCheck(W))&&!pe[W]){const se=dD(E,W,M);return se===!1&&Sn(U.afterSanitizeElements,E,null),se}if((k?k(E):E.nodeType)===Tt.element&&!Wn(E)||(W==="noscript"||W==="noembed"||W==="noframes")&&Ke(Z8,E.innerHTML))return dn(E),!0;if(Ve&&E.nodeType===Tt.text){const se=dl(E.textContent);E.textContent!==se&&(xr(e.removed,{element:E.cloneNode()}),E.textContent=se)}return Sn(U.afterSanitizeElements,E,null),!1},$g=function(E,M,W){if(Lt[M]||vt&&M==="patchsrc"||vt&&M==="for"&&E!=="label"&&E!=="output"||Hn&&(M==="id"||M==="name")&&(W in n||W in ci))return!1;const ie=xe[M]||Pe.attributeCheck instanceof Function&&Pe.attributeCheck(M,E);if(!(Mt&&Ke(q,M))){if(!(_t&&Ke(ne,M))){if(ie){if(!It[M]){if(!Ke(Ze,xa(W,Y,""))){if(!((M==="src"||M==="xlink:href"||M==="href")&&E!=="script"&&E1(W,"data:")===0&&al[E])){if(!(bo&&!Ke($,xa(W,Y,"")))){if(W)return!1}}}}}else if(!(Og(E)&&(De.tagNameCheck instanceof RegExp&&Ke(De.tagNameCheck,E)||De.tagNameCheck instanceof Function&&De.tagNameCheck(E))&&(De.attributeNameCheck instanceof RegExp&&Ke(De.attributeNameCheck,M)||De.attributeNameCheck instanceof Function&&De.attributeNameCheck(M,E))||M==="is"&&De.allowCustomizedBuiltInElements&&(De.tagNameCheck instanceof RegExp&&Ke(De.tagNameCheck,W)||De.tagNameCheck instanceof Function&&De.tagNameCheck(W))))return!1}}return!0},uD=ye({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Og=function(E){return!uD[ka(E)]&&Ke(be,E)},pD=function(E,M,W,ie){if(x&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!W)switch(p.getAttributeType(E,M)){case"TrustedHTML":return B(ie);case"TrustedScriptURL":return L(ie)}return ie},fD=function(E,M,W,ie){try{W?E.setAttributeNS(W,M,ie):E.setAttribute(M,ie),ul(E)?dn(E):k1(e.removed)}catch{Zn(M,E)}},Ig=function(E){Sn(U.beforeSanitizeAttributes,E,null);const M=E.attributes;if(!M||ul(E))return;xe=Lg(U.uponSanitizeAttribute,xe,bt,yo);const W={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe,forceKeepAttr:void 0};let ie=M.length;const se=Ae(E.nodeName);for(;ie--;){const me=M[ie],Ne=me.name,Ie=me.namespaceURI,Ct=me.value,wt=Ae(Ne),lu=Ct;let pt=Ne==="value"?lu:N8(lu);if(W.attrName=wt,W.attrValue=pt,W.keepAttr=!0,W.forceKeepAttr=void 0,Sn(U.uponSanitizeAttribute,E,W),pt=W.attrValue,En&&(wt==="id"||wt==="name")&&E1(pt,rl)!==0&&(Zn(Ne,E),pt=rl+pt),vt&&Ke(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,pt)){Zn(Ne,E);continue}if(wt==="attributename"&&x1(pt,"href")){Zn(Ne,E);continue}if(!W.forceKeepAttr){if(!W.keepAttr){Zn(Ne,E);continue}if(!or&&Ke(G8,pt)){Zn(Ne,E);continue}if(Ve&&(pt=dl(pt)),!$g(se,wt,pt)){Zn(Ne,E);continue}pt=pD(se,wt,Ie,pt),pt!==lu&&fD(E,Ne,Ie,pt)}}Sn(U.afterSanitizeAttributes,E,null)},pl=function(E){let M=null;const W=Bg(E);for(Sn(U.beforeSanitizeShadowDOM,E,null);M=W.nextNode();)if(Sn(U.uponSanitizeShadowNode,M,null),Mg(M,E),Ig(M),Jr(M.content)&&pl(M.content),(k?k(M):M.nodeType)===Tt.element){const se=y(M);Jr(se)&&(su(se),pl(se))}Sn(U.afterSanitizeShadowDOM,E,null)},su=function(E){const M=[{node:E,shadow:null}];for(;M.length>0;){const W=M.pop();if(W.shadow){pl(W.shadow);continue}const ie=W.node,me=(k?k(ie):ie.nodeType)===Tt.element,Ne=v(ie);if(Ne)for(let Ie=Ne.length-1;Ie>=0;--Ie)M.push({node:Ne[Ie],shadow:null});if(me){const Ie=w?w(ie):null;if(typeof Ie=="string"&&Ae(Ie)==="template"){const Ct=ie.content;Jr(Ct)&&M.push({node:Ct,shadow:null})}}if(me){const Ie=y(ie);Jr(Ie)&&M.push({node:null,shadow:Ie},{node:Ie,shadow:null})}}};return e.sanitize=function(Q){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=null,W=null,ie=null,se=null;if(ar=!Q,ar&&(Q="<!-->"),typeof Q!="string"&&!fi(Q)&&(Q=$8(Q),typeof Q!="string"))throw Bo("dirty is not a string, aborting");if(!e.isSupported)return Q;sn?(pe=Un,xe=yo):wo(E),(U.uponSanitizeElement.length>0||U.uponSanitizeAttribute.length>0)&&(pe=at(pe)),U.uponSanitizeAttribute.length>0&&(xe=at(xe)),e.removed=[];const me=ln&&typeof Q!="string"&&fi(Q);if(me){lD(Q);const Ct=w?w(Q):Q.nodeName;if(typeof Ct=="string"){const wt=Ae(Ct);if(!pe[wt]||yt[wt])throw ui(Q),Bo("root node is forbidden and cannot be sanitized in-place")}if(ul(Q))throw ui(Q),Bo("root node is clobbered and cannot be sanitized in-place");try{su(Q)}catch(wt){throw ui(Q),wt}}else if(fi(Q))M=Dg("<!---->"),W=M.ownerDocument.importNode(Q,!0),W.nodeType===Tt.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?M=W:M.appendChild(W),su(W);else{if(!_o&&!Ve&&!lt&&Q.indexOf("<")===-1)return x&&Zr?B(Q):Q;if(M=Dg(Q),!M)return _o?null:Zr?S:""}M&&rr&&dn(M.firstChild);const Ne=me?Q:M;try{const Ct=Bg(Ne);for(;ie=Ct.nextNode();)Mg(ie,Ne),Ig(ie),Jr(ie.content)&&pl(ie.content)}catch(Ct){throw me&&(ui(Q),kr(e.removed,wt=>{wt.element&&pi(wt.element)})),Ct}if(me)return kr(e.removed,Ct=>{Ct.element&&pi(Ct.element)}),Ve&&iu(Q),Q;if(_o){if(Ve&&iu(M),Wr)for(se=D.call(M.ownerDocument);M.firstChild;)se.appendChild(M.firstChild);else se=M;return(xe.shadowroot||xe.shadowrootmode)&&(se=F.call(o,se,!0)),se}let Ie=lt?M.outerHTML:M.innerHTML;return lt&&pe["!doctype"]&&M.ownerDocument&&M.ownerDocument.doctype&&M.ownerDocument.doctype.name&&Ke(H8,M.ownerDocument.doctype.name)&&(Ie="<!DOCTYPE "+M.ownerDocument.doctype.name+`>
20
+ `+Ie),Ve&&(Ie=dl(Ie)),x&&Zr?B(Ie):Ie},e.setConfig=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};wo(Q),sn=!0,Un=pe,yo=xe},e.clearConfig=function(){cn=null,sn=!1,Un=null,yo=null,x=T,S=""},e.isValidAttribute=function(Q,E,M){cn||wo({});const W=Ae(Q),ie=Ae(E);return $g(W,ie,M)},e.addHook=function(Q,E){typeof E=="function"&&Ge(U,Q)&&xr(U[Q],E)},e.removeHook=function(Q,E){if(Ge(U,Q)){if(E!==void 0){const M=T8(U[Q],E);return M===-1?void 0:A8(U[Q],M,1)[0]}return k1(U[Q])}},e.removeHooks=function(Q){Ge(U,Q)&&(U[Q]=[])},e.removeAllHooks=function(){U=O1()},e}var J8=I1();const X8=["innerHTML"],Q8={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},R1=a.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new y8({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=a.computed(()=>e.content?J8.sanitize(n.render(e.content),{ALLOWED_TAGS:["p","br","strong","em","s","del","ul","ol","li","h1","h2","h3","pre","code"],ALLOWED_ATTR:[]}):"");return(r,i)=>t.content?(a.openBlock(),a.createElementBlock("div",{key:0,class:"ao-markdown-content",innerHTML:o.value},null,8,X8)):(a.openBlock(),a.createElementBlock("div",Q8,a.toDisplayString(t.placeholder),1))}}),rhe="";function Z(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function P1(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);n.search=o.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Xt=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,e9=Xt&&"documentMode"in document?document.documentMode:null,Qt=Xt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Lo=Xt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),os=!(!Xt||!("InputEvent"in window)||e9)&&"getTargetRanges"in new window.InputEvent("input"),Sa=Xt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Er=Xt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,t9=Xt&&/Android/.test(navigator.userAgent),V1=Xt&&/^(?=.*Chrome).*/i.test(navigator.userAgent),F1=Xt&&t9&&V1,Ta=Xt&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Qt&&!V1;function z1(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}const n9=0,o9=1,r9=2,q1=128,a9=1,i9=2,s9=3,l9=4,c9=5,d9=6,rs=Sa||Er||Ta?" ":"​",io=`
21
21
 
22
- `,u9=Lo?" ":rs,dt={bold:1,capitalize:1024,code:16,highlight:q1,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},p9={directionless:1,unmergeable:2},j1={center:2,end:6,justify:4,left:1,right:3,start:5},f9={[i9]:"center",[d9]:"end",[l9]:"justify",[a9]:"left",[s9]:"right",[c9]:"start"},m9={normal:0,segmented:2,token:1},h9={[n9]:"normal",[r9]:"segmented",[o9]:"token"},U1="$config";function H1(t,e,n,o,r,i){let s=t.getFirstChild();for(;s!==null;){const l=s.__key;s.__parent===e&&(V(s)&&H1(s,l,n,o,r,i),n.has(l)||i.delete(l),r.push(l)),s=s.getNextSibling()}}let hc=!1,gc=0;function g9(t){gc=t.timeStamp}function bc(t,e,n){const o=t.nodeName==="BR",r=e.__lexicalLineBreak;return r&&(t===r||o&&t.previousSibling===r)||o&&Ms(t,n)!==void 0}function b9(t,e,n){const o=rn(Ht(n));let r=null,i=null;o!==null&&o.anchorNode===t&&(r=o.anchorOffset,i=o.focusOffset);const s=t.nodeValue;s!==null&&ad(e,s,r,i,!1)}function _9(t,e,n){if(H(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return Fn(e)&&n.isAttached()}function y9(t,e,n,o){for(let r=t;r&&!w6(r);r=Ga(r)){const i=Ms(r,e);if(i!==void 0){const s=He(i,n);if(s)return ve(s)||!je(r)?void 0:[r,s]}else if(r===o)return[o,Nm(n)]}}function W1(t,e,n){hc=!0;const o=performance.now()-gc>100;try{Nt(t,()=>{const r=te()||function(f){return f.getEditorState().read(()=>{const m=te();return m!==null?m.clone():null})}(t),i=new Map,s=t.getRootElement(),l=t._editorState,c=t._blockCursorElement;let d=!1,u="";for(let f=0;f<e.length;f++){const m=e[f],h=m.type,g=m.target,v=y9(g,t,l,s);if(!v)continue;const[y,_]=v;if(h==="characterData")o&&X(_)&&Fn(g)&&_9(r,g,_)&&b9(g,_,t);else if(h==="childList"){d=!0;const b=m.addedNodes;for(let C=0;C<b.length;C++){const x=b[C],S=Sm(x),T=x.parentNode;if(T!=null&&x!==c&&S===null&&!bc(x,T,t)){if(Lo){const A=(je(x)?x.innerText:null)||x.nodeValue;A&&(u+=A)}T.removeChild(x)}}const k=m.removedNodes,w=k.length;if(w>0){let C=0;for(let x=0;x<w;x++){const S=k[x];(bc(S,g,t)||c===S)&&(g.appendChild(S),C++)}w!==C&&i.set(y,_)}}}if(i.size>0)for(const[f,m]of i)m.reconcileObservedMutation(f,t);const p=n.takeRecords();if(p.length>0){for(let f=0;f<p.length;f++){const m=p[f],h=m.addedNodes,g=m.target;for(let v=0;v<h.length;v++){const y=h[v],_=y.parentNode;_==null||y.nodeName!=="BR"||bc(y,g,t)||_.removeChild(y)}}n.takeRecords()}r!==null&&(d&&st(r),Lo&&Pm(t)&&r.insertRawText(u))})}finally{hc=!1}}function Z1(t){const e=t._observer;e!==null&&W1(t,e.takeRecords(),e)}function G1(t){(function(e){gc===0&&Ht(e).addEventListener("textInput",g9,!0)})(t),t._observer=new MutationObserver((e,n)=>{W1(t,e,n)})}let v9=class{constructor(e,n){j(this,"key");j(this,"parse");j(this,"unparse");j(this,"isEqual");j(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||x9).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function C9(t,e){return new v9(t,e)}function K1(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function _c(t,e,n){let o;if(Xe(),typeof n=="function"){const i=t.getLatest(),s=K1(i,e);if(o=n(s),e.isEqual(s,o))return i}else o=n;const r=t.getWritable();return Y1(r).updateFromKnown(e,o),r}function w9(t){const e=new Map,n=new Set;for(let o=typeof t=="function"?t:t.replace;o.prototype&&o.prototype.getType!==void 0;o=Object.getPrototypeOf(o)){const{ownNodeConfig:r}=Ps(o);if(r&&r.stateConfigs)for(const i of r.stateConfigs){let s;"stateConfig"in i?(s=i.stateConfig,i.flat&&n.add(s.key)):s=i,e.set(s.key,s)}}return{flatKeys:n,sharedConfigMap:e}}let k9=class Rg{constructor(e,n,o=void 0,r=new Map,i=void 0){j(this,"node");j(this,"knownState");j(this,"unknownState");j(this,"sharedNodeState");j(this,"size");this.node=e,this.sharedNodeState=n,this.unknownState=o,this.knownState=r;const{sharedConfigMap:s}=this.sharedNodeState,l=i!==void 0?i:function(c,d,u){let p=u.size;if(d)for(const f in d){const m=c.get(f);m&&u.has(m)||p++}return p}(s,o,r);this.size=l}getValue(e){const n=this.knownState.get(e);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(e.key,e);let o=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const r=this.unknownState[e.key];r!==void 0&&(o=e.parse(r)),this.updateFromKnown(e,o)}return o}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[o,r]of this.knownState)o.isEqual(r,o.defaultValue)?delete e[o.key]:e[o.key]=o.unparse(r);for(const o of this.sharedNodeState.flatKeys)o in e&&(n[o]=e[o],delete e[o]);return X1(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:o}=this,r=new Map(this.knownState);return new Rg(e,n,function(i,s,l){let c;if(l)for(const[d,u]of Object.entries(l)){const p=i.get(d);p?s.has(p)||s.set(p,p.parse(u)):(c=c||{},c[d]=u)}return c}(n.sharedConfigMap,r,o),r,this.size)}updateFromKnown(e,n){const o=e.key;this.sharedNodeState.sharedConfigMap.set(o,e);const{knownState:r,unknownState:i}=this;r.has(e)||i&&o in i||(i&&(delete i[o],this.unknownState=X1(i)),this.size++),r.set(e,n)}updateFromUnknown(e,n){const o=this.sharedNodeState.sharedConfigMap.get(e);o?this.updateFromKnown(o,o.parse(n)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=n)}updateFromJSON(e){const{knownState:n}=this;for(const o of n.keys())n.set(o,o.defaultValue);if(this.size=n.size,this.unknownState=void 0,e)for(const[o,r]of Object.entries(e))this.updateFromUnknown(o,r)}};function Y1(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new k9(e,J1(e));return e.__state=n,n}function J1(t){return t.__state?t.__state.sharedNodeState:Cm(Rs(),t.getType()).sharedNodeState}function X1(t){if(t)for(const e in t)return t}function x9(t){return t}function Q1(t,e,n){for(const[o,r]of e.knownState){if(t.has(o.key))continue;t.add(o.key);const i=n?n.getValue(o):o.defaultValue;if(i!==r&&!o.isEqual(i,r))return!0}return!1}function ef(t,e,n){const{unknownState:o}=e,r=n?n.unknownState:void 0;if(o){for(const[i,s]of Object.entries(o))if(!t.has(i)&&(t.add(i),s!==(r?r[i]:void 0)))return!0}return!1}function tf(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function nf(t,e){const n=t.__mode,o=t.__format,r=t.__style,i=e.__mode,s=e.__format,l=e.__style,c=t.__state,d=e.__state;return(n===null||n===i)&&(o===null||o===s)&&(r===null||r===l)&&(t.__state===null||c===d||function(u,p){if(u===p)return!0;if(u&&p&&u.size!==p.size)return!1;const f=new Set;return!(u&&Q1(f,u,p)||p&&Q1(f,p,u)||u&&ef(f,u,p)||p&&ef(f,p,u))}(c,d))}function of(t,e){const n=t.mergeWithSibling(e),o=Me()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function rf(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&X(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(nf(e,o)){o=of(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(nf(o,n)){o=of(o,n);break}break}n.remove()}}else o.remove()}function as(t){return af(t.anchor),af(t.focus),t}function af(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,r;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),r=!0):(o=e.getChildAtIndex(n),r=!1),X(o)){t.set(o.__key,r?o.getTextContentSize():0,"text",!0);break}if(!V(o))break;t.set(o.__key,r?o.getChildrenSize():0,"element",!0)}}let Mo,it,Aa,is,yc,vc,$o,en,Cc,Na,Ue="",yn=null,vn="",On="",Sr=!1,ss=!1;function ls(t,e){const n=$o.get(t);if(e!==null){const o=Sc(t);o.parentNode===e&&e.removeChild(o)}if(en.has(t)||it._keyToDOMMap.delete(t),V(n)){const o=ds(n,$o);wc(o,0,o.length-1,null)}n!==void 0&&id(Na,Aa,is,n,"destroyed")}function wc(t,e,n,o){let r=e;for(;r<=n;++r){const i=t[r];i!==void 0&&ls(i,o)}}function Oo(t,e){t.setProperty("text-align",e)}const E9="40px";function sf(t,e){const n=Mo.theme.indent;if(typeof n=="string"){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}const o=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||E9;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function lf(t,e){const n=t.style;e===0?Oo(n,""):e===1?Oo(n,"left"):e===2?Oo(n,"center"):e===3?Oo(n,"right"):e===4?Oo(n,"justify"):e===5?Oo(n,"start"):e===6&&Oo(n,"end")}function kc(t,e){const n=function(o){const r=o.__dir;if(r!==null)return r;if(qe(o))return null;const i=o.getParentOrThrow();return qe(i)&&i.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function cs(t,e){const n=en.get(t);n===void 0&&Z(60);const o=n.createDOM(Mo,it);if(function(r,i,s){const l=s._keyToDOMMap;(function(c,d,u){const p=`__lexicalKey_${d._key}`;c[p]=u})(i,s,r),l.set(r,i)}(t,o,it),X(n)?o.setAttribute("data-lexical-text","true"):ve(n)&&o.setAttribute("data-lexical-decorator","true"),V(n)){const r=n.__indent,i=n.__size;if(kc(o,n),r!==0&&sf(o,r),i!==0){const l=i-1;xc(ds(n,en),n,0,l,n.getDOMSlot(o))}const s=n.__format;s!==0&&lf(o,s),n.isInline()||df(null,n,o),Os(n)&&(Ue+=io,On+=io)}else{const r=n.getTextContent();if(ve(n)){const i=n.decorate(it,Mo);i!==null&&uf(t,i),o.contentEditable="false"}Ue+=r,On+=r}return e!==null&&e.insertChild(o),id(Na,Aa,is,n,"created"),o}function xc(t,e,n,o,r){const i=Ue;Ue="";let s=n;for(;s<=o;++s){cs(t[s],r);const l=en.get(t[s]);l!==null&&X(l)&&(yn===null&&(yn=l.getFormat()),vn===""&&(vn=l.getStyle()))}Os(e)&&(Ue+=io),r.element.__lexicalTextContent=Ue,Ue=i+Ue}function cf(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return so(o)?"line-break":ve(o)&&o.isInline()?"decorator":null}return"empty"}return null}function df(t,e,n){const o=cf(t,$o),r=cf(e,en);o!==r&&e.getDOMSlot(n).setManagedLineBreak(r)}function S9(t,e,n){var o;yn=null,vn="",function(r,i,s){const l=Ue,c=r.__size,d=i.__size;Ue="";const u=s.element;if(c===1&&d===1){const p=r.__first,f=i.__first;if(p===f)Da(p,u);else{const h=Sc(p),g=cs(f,null);try{u.replaceChild(g,h)}catch(v){if(typeof v=="object"&&v!=null){const y=`${v.toString()} Parent: ${u.tagName}, new child: {tag: ${g.tagName} key: ${f}}, old child: {tag: ${h.tagName}, key: ${p}}.`;throw new Error(y)}throw v}ls(p,null)}const m=en.get(f);X(m)&&(yn===null&&(yn=m.getFormat()),vn===""&&(vn=m.getStyle()))}else{const p=ds(r,$o),f=ds(i,en);if(p.length!==c&&Z(227),f.length!==d&&Z(228),c===0)d!==0&&xc(f,i,0,d-1,s);else if(d===0){if(c!==0){const m=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;wc(p,0,c-1,m?null:u),m&&(u.textContent="")}}else(function(m,h,g,v,y,_){const b=v-1,k=y-1;let w,C,x=_.getFirstChild(),S=0,T=0;for(;S<=b&&T<=k;){const O=h[S],B=g[T];if(O===B)x=Ec(Da(B,_.element)),S++,T++;else{w===void 0&&(w=new Set(h)),C===void 0&&(C=new Set(g));const I=C.has(O),P=w.has(B);if(I)if(P){const G=qo(it,B);G===x?x=Ec(Da(B,_.element)):(_.withBefore(x).insertChild(G),Da(B,_.element)),S++,T++}else cs(B,_.withBefore(x)),T++;else x=Ec(Sc(O)),ls(O,_.element),S++}const L=en.get(B);L!==null&&X(L)&&(yn===null&&(yn=L.getFormat()),vn===""&&(vn=L.getStyle()))}const A=S>b,z=T>k;if(A&&!z){const O=g[k+1],B=O===void 0?null:it.getElementByKey(O);xc(g,m,T,k,_.withBefore(B))}else z&&!A&&wc(h,S,b,_.element)})(i,p,f,c,d,s)}Os(i)&&(Ue+=io),u.__lexicalTextContent=Ue,Ue=l+Ue}(t,e,e.getDOMSlot(n)),o=e,yn==null||yn===o.__textFormat||ss||o.setTextFormat(yn),function(r){vn===""||vn===r.__textStyle||ss||r.setTextStyle(vn)}(e)}function ds(t,e){const n=[];let o=t.__first;for(;o!==null;){const r=e.get(o);r===void 0&&Z(101),n.push(o),o=r.__next}return n}function Da(t,e){const n=$o.get(t);let o=en.get(t);n!==void 0&&o!==void 0||Z(61);const r=Sr||vc.has(t)||yc.has(t),i=qo(it,t);if(n===o&&!r){if(V(n)){const s=i.__lexicalTextContent;s!==void 0&&(Ue+=s,On+=s)}else{const s=n.getTextContent();On+=s,Ue+=s}return i}if(n!==o&&r&&id(Na,Aa,is,o,"updated"),o.updateDOM(n,i,Mo)){const s=cs(t,null);return e===null&&Z(62),e.replaceChild(s,i),ls(t,null),s}if(V(n)&&V(o)){const s=o.__indent;(Sr||s!==n.__indent)&&sf(i,s);const l=o.__format;if((Sr||l!==n.__format)&&lf(i,l),r&&(S9(n,o,i),qe(o)||o.isInline()||df(n,o,i)),Os(o)&&(Ue+=io,On+=io),(Sr||o.__dir!==n.__dir)&&(kc(i,o),qe(o)&&!Sr))for(const c of o.getChildren())V(c)&&kc(qo(it,c.getKey()),c)}else{const s=o.getTextContent();if(ve(o)){const l=o.decorate(it,Mo);l!==null&&uf(t,l)}Ue+=s,On+=s}if(!ss&&qe(o)&&o.__cachedText!==On){const s=o.getWritable();s.__cachedText=On,o=s}return i}function uf(t,e){let n=it._pendingDecorators;const o=it._decorators;if(n===null){if(o[t]===e)return;n=Tm(it)}n[t]=e}function Ec(t){let e=t.nextSibling;return e!==null&&e===it._blockCursorElement&&(e=e.nextSibling),e}function T9(t,e,n,o,r,i){Ue="",On="",Sr=o===2,it=n,Mo=n._config,Aa=n._nodes,is=it._listeners.mutation,yc=r,vc=i,$o=t._nodeMap,en=e._nodeMap,ss=e._readOnly,Cc=new Map(n._keyToDOMMap);const s=new Map;return Na=s,Da("root",null),it=void 0,Aa=void 0,yc=void 0,vc=void 0,$o=void 0,en=void 0,Mo=void 0,Cc=void 0,Na=void 0,s}function Sc(t){const e=Cc.get(t);return e===void 0&&Z(75,t),e}function le(t){return{type:t}}const pf=le("SELECTION_CHANGE_COMMAND"),A9=le("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),ff=le("CLICK_COMMAND"),Io=le("DELETE_CHARACTER_COMMAND"),Tr=le("INSERT_LINE_BREAK_COMMAND"),Ba=le("INSERT_PARAGRAPH_COMMAND"),Ar=le("CONTROLLED_TEXT_INSERTION_COMMAND"),Tc=le("PASTE_COMMAND"),Ac=le("REMOVE_TEXT_COMMAND"),La=le("DELETE_WORD_COMMAND"),Ma=le("DELETE_LINE_COMMAND"),Ut=le("FORMAT_TEXT_COMMAND"),Nc=le("UNDO_COMMAND"),Dc=le("REDO_COMMAND"),N9=le("KEYDOWN_COMMAND"),mf=le("KEY_ARROW_RIGHT_COMMAND"),D9=le("MOVE_TO_END"),hf=le("KEY_ARROW_LEFT_COMMAND"),B9=le("MOVE_TO_START"),gf=le("KEY_ARROW_UP_COMMAND"),bf=le("KEY_ARROW_DOWN_COMMAND"),us=le("KEY_ENTER_COMMAND"),_f=le("KEY_SPACE_COMMAND"),yf=le("KEY_BACKSPACE_COMMAND"),vf=le("KEY_ESCAPE_COMMAND"),Cf=le("KEY_DELETE_COMMAND"),wf=le("KEY_TAB_COMMAND"),L9=le("INSERT_TAB_COMMAND"),M9=le("INDENT_CONTENT_COMMAND"),kf=le("OUTDENT_CONTENT_COMMAND"),xf=le("DROP_COMMAND"),$9=le("FORMAT_ELEMENT_COMMAND"),Ef=le("DRAGSTART_COMMAND"),Sf=le("DRAGOVER_COMMAND"),O9=le("DRAGEND_COMMAND"),ps=le("COPY_COMMAND"),Bc=le("CUT_COMMAND"),Lc=le("SELECT_ALL_COMMAND"),I9=le("CLEAR_EDITOR_COMMAND"),R9=le("CLEAR_HISTORY_COMMAND"),fs=le("CAN_REDO_COMMAND"),ms=le("CAN_UNDO_COMMAND"),P9=le("FOCUS_COMMAND"),V9=le("BLUR_COMMAND"),F9=le("KEY_MODIFIER_COMMAND"),In=Object.freeze({}),Mc=[["keydown",function(t,e){if($a=t.timeStamp,Tf=t.key,!e.isComposing()&&!re(e,N9,t)&&t.key!=null){if(Rc&&Om(t))return Nt(e,()=>{bs(e,Pc)}),Rc=!1,void(Pc="");if(function(n){return Te(n,"ArrowRight",{shiftKey:"any"})}(t))re(e,mf,t);else if(function(n){return Te(n,"ArrowRight",zn)}(t))re(e,D9,t);else if(function(n){return Te(n,"ArrowLeft",{shiftKey:"any"})}(t))re(e,hf,t);else if(function(n){return Te(n,"ArrowLeft",zn)}(t))re(e,B9,t);else if(function(n){return Te(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))re(e,gf,t);else if(function(n){return Te(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))re(e,bf,t);else if(function(n){return Te(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Oa=!0,re(e,us,t);else if(function(n){return n.key===" "}(t))re(e,_f,t);else if(function(n){return Qt&&Te(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Oa=!0,re(e,Tr,!0);else if(function(n){return Te(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Oa=!1,re(e,us,t);else if(function(n){return Te(n,"Backspace",{shiftKey:"any"})||Qt&&Te(n,"h",{ctrlKey:!0})}(t))Om(t)?re(e,yf,t):(t.preventDefault(),re(e,Io,!0));else if(function(n){return n.key==="Escape"}(t))re(e,vf,t);else if(function(n){return Te(n,"Delete",{})||Qt&&Te(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?re(e,Cf,t):(t.preventDefault(),re(e,Io,!1));else if(function(n){return Te(n,"Backspace",$m)}(t))t.preventDefault(),re(e,La,!0);else if(function(n){return Te(n,"Delete",$m)}(t))t.preventDefault(),re(e,La,!1);else if(function(n){return Qt&&Te(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),re(e,Ma,!0);else if(function(n){return Qt&&(Te(n,"Delete",{metaKey:!0})||Te(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),re(e,Ma,!1);else if(function(n){return Te(n,"b",zn)}(t))t.preventDefault(),re(e,Ut,"bold");else if(function(n){return Te(n,"u",zn)}(t))t.preventDefault(),re(e,Ut,"underline");else if(function(n){return Te(n,"i",zn)}(t))t.preventDefault(),re(e,Ut,"italic");else if(function(n){return Te(n,"Tab",{shiftKey:"any"})}(t))re(e,wf,t);else if(function(n){return Te(n,"z",zn)}(t))t.preventDefault(),re(e,Nc,void 0);else if(function(n){return Qt?Te(n,"z",{metaKey:!0,shiftKey:!0}):Te(n,"y",{ctrlKey:!0})||Te(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),re(e,Dc,void 0);else{const n=e._editorState._selection;n===null||H(n)?Im(t)&&(t.preventDefault(),re(e,Lc,t)):function(o){return Te(o,"c",zn)}(t)?(t.preventDefault(),re(e,ps,t)):function(o){return Te(o,"x",zn)}(t)?(t.preventDefault(),re(e,Bc,t)):Im(t)&&(t.preventDefault(),re(e,Lc,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&re(e,F9,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Rr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Nt(e,()=>{wm(n)||(Ic=!0)})}],["compositionstart",function(t,e){Nt(e,()=>{const n=te();if(H(n)&&!e.isComposing()){const o=n.anchor,r=n.anchor.getNode();tt(o.key),(t.timeStamp<$a+30||o.type==="element"||!n.isCollapsed()||r.getFormat()!==n.format||X(r)&&r.getStyle()!==n.style)&&re(e,Ar,u9)}})}],["compositionend",function(t,e){Lo?Ia=!0:Er||!Sa&&!Ta?Nt(e,()=>{bs(e,t.data)}):(Rc=!0,Pc=t.data)}],["input",function(t,e){t.stopPropagation(),Nt(e,()=>{if(je(t.target)&&wm(t.target))return;const n=te(),o=t.data,r=$f(t);if(o!=null&&H(n)&&Df(n,r,o,t.timeStamp,!1)){Ia&&(bs(e,o),Ia=!1);const i=n.anchor.getNode(),s=rn(Ht(e));if(s===null)return;const l=n.isBackward(),c=l?n.anchor.offset:n.focus.offset,d=l?n.focus.offset:n.anchor.offset;os&&!n.isCollapsed()&&X(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,c)+o+i.getTextContent().slice(c+d)===Lm(s.anchorNode)||re(e,Ar,o);const u=o.length;Lo&&u>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=u),Sa||Er||Ta||!e.isComposing()||($a=0,tt(null))}else rd(!1,e,o!==null?o:void 0),Ia&&(bs(e,o||void 0),Ia=!1);(function(){Xe();const i=Me();Z1(i)})()},{event:t}),Nr=null}],["click",function(t,e){Nt(e,()=>{const n=te(),o=rn(Ht(e)),r=Lr();if(o){if(H(n)){const i=n.anchor,s=i.getNode();if(i.type==="element"&&i.offset===0&&n.isCollapsed()&&!qe(s)&&$e().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&r!==null&&n.is(r))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&s!==n.focus.getNode()){const l=Zt(s,c=>V(c)&&!c.isInline());V(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const i=o.anchorNode;(je(i)||Fn(i))&&st(Wc(r,o,e,t))}}re(e,ff,t)})}],["cut",In],["copy",In],["dragstart",In],["dragover",In],["dragend",In],["paste",In],["focus",In],["blur",In],["drop",In]];os&&Mc.push(["beforeinput",(t,e)=>function(n,o){const r=n.inputType,i=$f(n);r==="deleteCompositionText"||Lo&&Pm(o)||r!=="insertCompositionText"&&Nt(o,()=>{const s=te();if(r==="deleteContentBackward"){if(s===null){const m=Lr();if(!H(m))return;st(m.clone())}if(H(s)){const m=s.anchor.key===s.focus.key;if(l=n.timeStamp,Tf==="MediaLast"&&l<$a+30&&o.isComposing()&&m){if(tt(null),$a=0,setTimeout(()=>{Nt(o,()=>{tt(null)})},30),H(s)){const h=s.anchor.getNode();h.markDirty(),X(h)||Z(142),Mf(s,h)}}else{tt(null),n.preventDefault();const h=s.anchor.getNode(),g=h.getTextContent(),v=h.canInsertTextAfter(),y=s.anchor.offset===0&&s.focus.offset===g.length;let _=F1&&m&&!y&&v;if(_&&s.isCollapsed()&&(_=!ve(sd(s.anchor,!0))),!_){re(o,Io,!0);const b=te();F1&&H(b)&&b.isCollapsed()&&(Ro=b,setTimeout(()=>Ro=null))}}return}}var l;if(!H(s))return;const c=n.data;Nr!==null&&rd(!1,o,Nr),s.dirty&&Nr===null||!s.isCollapsed()||qe(s.anchor.getNode())||i===null||s.applyDOMRange(i),Nr=null;const d=s.anchor,u=s.focus,p=d.getNode(),f=u.getNode();if(r!=="insertText"&&r!=="insertTranspose")switch(n.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":re(o,Ar,n);break;case"insertFromComposition":tt(null),re(o,Ar,n);break;case"insertLineBreak":tt(null),re(o,Tr,!1);break;case"insertParagraph":tt(null),Oa&&!Er?(Oa=!1,re(o,Tr,!1)):re(o,Ba,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":re(o,Tc,n);break;case"deleteByComposition":(function(m,h){return m!==h||V(m)||V(h)||!Fo(m)||!Fo(h)})(p,f)&&re(o,Ac,n);break;case"deleteByDrag":case"deleteByCut":re(o,Ac,n);break;case"deleteContent":re(o,Io,!1);break;case"deleteWordBackward":re(o,La,!0);break;case"deleteWordForward":re(o,La,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":re(o,Ma,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":re(o,Ma,!1);break;case"formatStrikeThrough":re(o,Ut,"strikethrough");break;case"formatBold":re(o,Ut,"bold");break;case"formatItalic":re(o,Ut,"italic");break;case"formatUnderline":re(o,Ut,"underline");break;case"historyUndo":re(o,Nc,void 0);break;case"historyRedo":re(o,Dc,void 0)}else{if(c===`
23
- `)n.preventDefault(),re(o,Tr,!1);else if(c===io)n.preventDefault(),re(o,Ba,void 0);else if(c==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),s.insertRawText(m)}else c!=null&&Df(s,i,c,n.timeStamp,!0)?(n.preventDefault(),re(o,Ar,c)):Nr=c;Af=n.timeStamp}})}(t,e)]);let $a=0,Tf=null,Af=0,Nr=null;const $c=new WeakMap,hs=new WeakMap;let Oc=!1,Ic=!1,Oa=!1,Ia=!1,Rc=!1,Pc="",Ro=null,Nf=[0,"",0,"root",0];function Df(t,e,n,o,r){const i=t.anchor,s=t.focus,l=i.getNode(),c=Me(),d=rn(Ht(c)),u=d!==null?d.anchorNode:null,p=i.key,f=c.getElementByKey(p),m=n.length;return p!==s.key||!X(l)||(!r&&(!os||Af<o+50)||l.isDirty()&&m<2||Dm(n))&&i.offset!==s.offset&&!l.isComposing()||Vn(l)||l.isDirty()&&m>1||(r||!os)&&f!==null&&!l.isComposing()&&u!==Mr(f)||d!==null&&e!==null&&(!e.collapsed||e.startContainer!==d.anchorNode||e.startOffset!==d.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function(h,g){if(g.isSegmented())return!0;if(!h.isCollapsed())return!1;const v=h.anchor.offset,y=g.getParentOrThrow(),_=Fo(g);return v===0?!g.canInsertTextBefore()||!y.canInsertTextBefore()&&!g.isComposing()||_||function(b){const k=b.getPreviousSibling();return(X(k)||V(k)&&k.isInline())&&!k.canInsertTextAfter()}(g):v===g.getTextContentSize()&&(!g.canInsertTextAfter()||!y.canInsertTextAfter()&&!g.isComposing()||_)}(t,l)}function Bf(t,e){return Fn(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function Lf(t,e,n){const{anchorNode:o,anchorOffset:r,focusNode:i,focusOffset:s}=t;Oc&&(Oc=!1,Bf(o,r)&&Bf(i,s)&&!Ro)||Nt(e,()=>{if(!n)return void st(null);if(!Za(e,o,i))return;let l=te();if(Ro&&H(l)&&l.isCollapsed()){const c=l.anchor,d=Ro.anchor;(c.key===d.key&&c.offset===d.offset+1||c.offset===1&&d.getNode().is(c.getNode().getPreviousSibling()))&&(l=Ro.clone(),st(l))}if(Ro=null,H(l)){const c=l.anchor,d=c.getNode();if(l.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(l.dirty=!0);const u=Ht(e).event,p=u?u.timeStamp:performance.now(),[f,m,h,g,v]=Nf,y=$e(),_=e.isComposing()===!1&&y.getTextContent()==="";if(p<v+200&&c.offset===h&&c.key===g)gs(l,f,m);else if(c.type==="text")X(d)||Z(141),Mf(l,d);else if(c.type==="element"&&!_){V(d)||Z(259);const b=c.getNode();b.isEmpty()?function(k,w){const C=w.getTextFormat(),x=w.getTextStyle();gs(k,C,x)}(l,b):gs(l,0,"")}}else{const u=c.key,p=l.focus.key,f=l.getNodes(),m=f.length,h=l.isBackward(),g=h?s:r,v=h?r:s,y=h?p:u,_=h?u:p;let b=2047,k=!1;for(let w=0;w<m;w++){const C=f[w],x=C.getTextContentSize();if(X(C)&&x!==0&&!(w===0&&C.__key===y&&g===x||w===m-1&&C.__key===_&&v===0)&&(k=!0,b&=C.getFormat(),b===0))break}l.format=k?b:0}}re(e,pf,void 0)})}function gs(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function Mf(t,e){gs(t,e.getFormat(),e.getStyle())}function $f(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function bs(t,e){const n=t._compositionKey;if(tt(null),n!==null&&e!=null){if(e===""){const o=He(n),r=Mr(t.getElementByKey(n));return void(r!==null&&r.nodeValue!==null&&X(o)&&ad(o,r.nodeValue,null,null,!0))}if(e[e.length-1]===`
24
- `){const o=te();if(H(o)){const r=o.focus;return o.anchor.set(r.key,r.offset,r.type),void re(t,us,null)}}}rd(!0,t,e)}function Of(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const Dr=new Map;function If(t){const e=y6(t.target);if(e===null)return;const n=km(e.anchorNode);if(n===null)return;Ic&&(Ic=!1,Nt(n,()=>{const c=Lr(),d=e.anchorNode;(je(d)||Fn(d))&&st(Wc(c,e,n,t))}));const o=od(n),r=o[o.length-1],i=r._key,s=Dr.get(i),l=s||r;l!==n&&Lf(e,l,!1),Lf(e,n,!0),n!==r?Dr.set(i,n):s&&Dr.delete(i)}function Rf(t){t._lexicalHandled=!0}function Pf(t){return t._lexicalHandled===!0}const Vf=()=>{};function z9(t){const e=$c.get(t);if(e===void 0)return void Vf();const n=hs.get(e);if(n===void 0)return void Vf();const o=n-1;o>=0||Z(164),$c.delete(t),hs.set(e,o),o===0&&e.removeEventListener("selectionchange",If);const r=Ds(t);nd(r)?(function(s){if(s._parentEditor!==null){const l=od(s),c=l[l.length-1]._key;Dr.get(c)===s&&Dr.delete(c)}else Dr.delete(s._key)}(r),t.__lexicalEditor=null):r&&Z(198);const i=Of(t);for(let s=0;s<i.length;s++)i[s]();t.__lexicalEventHandles=[]}function Vc(t,e,n){Xe();const o=t.__key,r=t.getParent();if(r===null)return;const i=function(l){const c=te();if(!H(c)||!V(l))return c;const{anchor:d,focus:u}=c,p=d.getNode(),f=u.getNode();return ld(p,l)&&d.set(l.__key,0,"element"),ld(f,l)&&u.set(l.__key,0,"element"),c}(t);let s=!1;if(H(i)&&e){const l=i.anchor,c=i.focus;l.key===o&&(Ss(l,t,r,t.getPreviousSibling(),t.getNextSibling()),s=!0),c.key===o&&(Ss(c,t,r,t.getPreviousSibling(),t.getNextSibling()),s=!0)}else At(i)&&e&&t.isSelected()&&t.selectPrevious();if(H(i)&&e&&!s){const l=t.getIndexWithinParent();zo(t),Es(i,r,l,-1)}else zo(t);n||ut(r)||r.canBeEmpty()||!r.isEmpty()||Vc(r,e),e&&i&&qe(r)&&r.isEmpty()&&r.selectEnd()}function ahe(t){return t}const Ff=Symbol.for("ephemeral");function _s(t){return t[Ff]||!1}class tn{constructor(e){j(this,"__type");j(this,"__key");j(this,"__parent");j(this,"__prev");j(this,"__next");j(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),p6(this,e)}static getType(){const{ownNodeType:e}=Ps(this);return e===void 0&&Z(64,this.name),e}static clone(e){Z(65,this.name)}$config(){return{}}config(e,n){const o=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:o,type:e}),{[e]:n}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){Z(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=He(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||te();if(n==null)return!1;const o=n.getNodes().some(r=>r.__key===this.__key);if(X(this))return o;if(H(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const r=this.getParent();if(ve(this)&&this.isInline()&&r){const i=n.isBackward()?n.focus:n.anchor;if(r.is(i.getNode())&&i.offset===r.getChildrenSize()&&this.is(r.getLastChild()))return!1}}return o}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let n=e.getFirstChild(),o=0;for(;n!==null;){if(this.is(n))return o;o++,n=n.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:He(e)}getParentOrThrow(){const e=this.getParent();return e===null&&Z(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(ut(n))return V(e)||e===this&&ve(e)||Z(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&Z(67,this.__key),e}getParents(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:He(e)}getPreviousSiblings(){const e=[],n=this.getParent();if(n===null)return e;let o=n.getFirstChild();for(;o!==null&&!o.is(this);)e.push(o),o=o.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:He(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=V(this)?this:this.getParent(),o=V(e)?e:e.getParent(),r=n&&o?Fs(n,o):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Fs(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Zm(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&Z(279),!1)))}isParentOf(e){const n=Fs(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),o=[],r=new Set;let i=this;for(;i!==null;){const s=i.__key;if(r.has(s)||(r.add(s),o.push(i)),i===e)break;const l=V(i)?n?i.getFirstChild():i.getLastChild():null;if(l!==null){i=l;continue}const c=n?i.getNextSibling():i.getPreviousSibling();if(c!==null){i=c;continue}const d=i.getParentOrThrow();if(r.has(d.__key)||o.push(d),d===e)break;let u=null,p=d;do{if(p===null&&Z(68),u=n?p.getNextSibling():p.getPreviousSibling(),p=p.getParent(),p===null)break;u!==null||r.has(p.__key)||o.push(p)}while(u===null);i=u}return n||o.reverse(),o}isDirty(){const e=Me()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(_s(this))return this;const e=He(this.__key);return e===null&&Z(113),e}getWritable(){if(_s(this))return this;Xe();const e=co(),n=Me(),o=e._nodeMap,r=this.__key,i=this.getLatest(),s=n._cloneNotNeeded,l=te();if(l!==null&&l.setCachedNodes(null),s.has(r))return Ls(i),i;const c=jm(i);return s.add(r),Ls(c),o.set(r,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){Z(70)}updateDOM(e,n,o){Z(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){Z(18,this.name)}updateFromJSON(e){return function(n,o){const r=n.getWritable(),i=o.$;let s=i;for(const l of J1(r).flatKeys)l in o&&(s!==void 0&&s!==i||(s={...i}),s[l]=o[l]);return(r.__state||s)&&Y1(n).updateFromJSON(s),r}(this,e)}static transform(){return null}remove(e){Vc(this,!0,e)}replace(e,n){Xe();let o=te();o!==null&&(o=o.clone()),dd(this,e);const r=this.getLatest(),i=this.__key,s=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),d=c.__size;zo(l);const u=r.getPreviousSibling(),p=r.getNextSibling(),f=r.__prev,m=r.__next,h=r.__parent;if(Vc(r,!1,!0),u===null?c.__first=s:u.getWritable().__next=s,l.__prev=f,p===null?c.__last=s:p.getWritable().__prev=s,l.__next=m,l.__parent=h,c.__size=d,n&&(V(this)&&V(l)||Z(139),this.getChildren().forEach(g=>{l.append(g)})),H(o)){st(o);const g=o.anchor,v=o.focus;g.key===i&&Zf(g,l),v.key===i&&Zf(v,l)}return uo()===i&&tt(s),l}insertAfter(e,n=!0){Xe(),dd(this,e);const o=this.getWritable(),r=e.getWritable(),i=r.getParent(),s=te();let l=!1,c=!1;if(i!==null){const m=e.getIndexWithinParent();if(zo(r),H(s)){const h=i.__key,g=s.anchor,v=s.focus;l=g.type==="element"&&g.key===h&&g.offset===m+1,c=v.type==="element"&&v.key===h&&v.offset===m+1}}const d=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),p=r.__key,f=o.__next;if(d===null?u.__last=p:d.getWritable().__prev=p,u.__size++,o.__next=p,r.__next=f,r.__prev=o.__key,r.__parent=o.__parent,n&&H(s)){const m=this.getIndexWithinParent();Es(s,u,m+1);const h=u.__key;l&&s.anchor.set(h,m+2,"element"),c&&s.focus.set(h,m+2,"element")}return e}insertBefore(e,n=!0){Xe(),dd(this,e);const o=this.getWritable(),r=e.getWritable(),i=r.__key;zo(r);const s=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),c=o.__prev,d=this.getIndexWithinParent();s===null?l.__first=i:s.getWritable().__next=i,l.__size++,o.__prev=i,r.__prev=c,r.__next=o.__key,r.__parent=o.__parent;const u=te();return n&&H(u)&&Es(u,this.getParentOrThrow(),d),e}isParentRequired(){return!1}createParentElementNode(){return Be()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){Xe();const o=this.getPreviousSibling(),r=this.getParentOrThrow();if(o===null)return r.select(0,0);if(V(o))return o.select();if(!X(o)){const i=o.getIndexWithinParent()+1;return r.select(i,i)}return o.select(e,n)}selectNext(e,n){Xe();const o=this.getNextSibling(),r=this.getParentOrThrow();if(o===null)return r.select();if(V(o))return o.select(0,0);if(!X(o)){const i=o.getIndexWithinParent();return r.select(i,i)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}j(tn,"importDOM");const ys="historic",q9="history-push",Ra="history-merge",j9="paste",zf="collaboration",U9="skip-scroll-into-view",H9="skip-dom-selection",W9="skip-selection-focus";class Pa extends tn{static getType(){return"linebreak"}static clone(e){return new Pa(e.__key)}constructor(e){super(e)}getTextContent(){return`
25
- `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(n){const o=n.parentElement;if(o!==null&&Is(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&vs(r)){const i=o.lastChild;if(i===n||i.previousSibling===n&&vs(i))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&Is(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&vs(r))return!1;const i=o.lastChild;if(i===n||i.previousSibling===n&&vs(i))return!0}return!1}(e)?null:{conversion:Z9,priority:0}}}static importJSON(e){return nn().updateFromJSON(e)}}function Z9(t){return{node:nn()}}function nn(){return on(new Pa)}function so(t){return t instanceof Pa}function vs(t){return Fn(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Fc(t,e){return 16&e?"code":e&q1?"mark":32&e?"sub":64&e?"sup":null}function zc(t,e){return 1&e?"strong":2&e?"em":"span"}function qf(t,e,n,o,r){const i=o.classList;let s=Ir(r,"base");s!==void 0&&i.add(...s),s=Ir(r,"underlineStrikethrough");let l=!1;const c=8&e&&4&e;s!==void 0&&(8&n&&4&n?(l=!0,c||i.add(...s)):c&&i.remove(...s));for(const d in dt){const u=dt[d];if(s=Ir(r,d),s!==void 0)if(n&u){if(l&&(d==="underline"||d==="strikethrough")){e&u&&i.remove(...s);continue}(!(e&u)||c&&d==="underline"||d==="strikethrough")&&i.add(...s)}else e&u&&i.remove(...s)}}function jf(t,e,n){const o=e.firstChild,r=n.isComposing(),i=t+(r?rs:"");if(o==null)e.textContent=i;else{const s=o.nodeValue;if(s!==i)if(r||Lo){const[l,c,d]=function(u,p){const f=u.length,m=p.length;let h=0,g=0;for(;h<f&&h<m&&u[h]===p[h];)h++;for(;g+h<f&&g+h<m&&u[f-g-1]===p[m-g-1];)g++;return[h,f-h-g,p.slice(h,m-g)]}(s,i);c!==0&&o.deleteData(l,c),o.insertData(l,d)}else o.nodeValue=i}}function Uf(t,e,n,o,r,i){jf(r,t,e);const s=i.theme.text;s!==void 0&&qf(0,0,o,t,s)}function Cs(t,e){const n=document.createElement(e);return n.appendChild(t),n}class lo extends tn{constructor(n="",o){super(o);j(this,"__text");j(this,"__format");j(this,"__style");j(this,"__mode");j(this,"__detail");this.__text=n,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(n){return new lo(n.__text,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__text=n.__text,this.__format=n.__format,this.__style=n.__style,this.__mode=n.__mode,this.__detail=n.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const n=this.getLatest();return h9[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===uo()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=dt[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return Bs(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const r=this.__format,i=Fc(0,r),s=zc(0,r),l=i===null?s:i,c=document.createElement(l);let d=c;this.hasFormat("code")&&c.setAttribute("spellcheck","false"),i!==null&&(d=document.createElement(s),c.appendChild(d)),Uf(d,this,0,r,this.__text,n);const u=this.__style;return u!==""&&(c.style.cssText=u),c}updateDOM(n,o,r){const i=this.__text,s=n.__format,l=this.__format,c=Fc(0,s),d=Fc(0,l),u=zc(0,s),p=zc(0,l);if((c===null?u:c)!==(d===null?p:d))return!0;if(c===d&&u!==p){const v=o.firstChild;v==null&&Z(48);const y=document.createElement(p);return Uf(y,this,0,l,i,r),o.replaceChild(y,v),!1}let f=o;d!==null&&c!==null&&(f=o.firstChild,f==null&&Z(49)),jf(i,f,this);const m=r.theme.text;m!==void 0&&s!==l&&qf(0,s,l,f,m);const h=n.__style,g=this.__style;return h!==g&&(o.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:J9,priority:0}),b:()=>({conversion:K9,priority:0}),code:()=>({conversion:Rn,priority:0}),em:()=>({conversion:Rn,priority:0}),i:()=>({conversion:Rn,priority:0}),mark:()=>({conversion:Rn,priority:0}),s:()=>({conversion:Rn,priority:0}),span:()=>({conversion:G9,priority:0}),strong:()=>({conversion:Rn,priority:0}),sub:()=>({conversion:Rn,priority:0}),sup:()=>({conversion:Rn,priority:0}),u:()=>({conversion:Rn,priority:0})}}static importJSON(n){return Re().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTextContent(n.text).setFormat(n.format).setDetail(n.detail).setMode(n.mode).setStyle(n.style)}exportDOM(n){let{element:o}=super.exportDOM(n);return je(o)||Z(132),o.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?o.style.textTransform="lowercase":this.hasFormat("uppercase")?o.style.textTransform="uppercase":this.hasFormat("capitalize")&&(o.style.textTransform="capitalize"),this.hasFormat("bold")&&(o=Cs(o,"b")),this.hasFormat("italic")&&(o=Cs(o,"i")),this.hasFormat("strikethrough")&&(o=Cs(o,"s")),this.hasFormat("underline")&&(o=Cs(o,"u")),{element:o}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(n,o){}setFormat(n){const o=this.getWritable();return o.__format=typeof n=="string"?dt[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?p9[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=Bs(this.getFormat(),n,null);return this.setFormat(o)}toggleDirectionless(){const n=this.getWritable();return n.__detail^=1,n}toggleUnmergeable(){const n=this.getWritable();return n.__detail^=2,n}setMode(n){const o=m9[n];if(this.__mode===o)return this;const r=this.getWritable();return r.__mode=o,r}setTextContent(n){if(this.__text===n)return this;const o=this.getWritable();return o.__text=n,o}select(n,o){Xe();let r=n,i=o;const s=te(),l=this.getTextContent(),c=this.__key;if(typeof l=="string"){const d=l.length;r===void 0&&(r=d),i===void 0&&(i=d)}else r=0,i=0;if(!H(s))return tm(c,r,c,i,"text","text");{const d=uo();d!==s.anchor.key&&d!==s.focus.key||tt(c),s.setTextNodeRange(this,r,this,i)}return s}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,o,r,i){const s=this.getWritable(),l=s.__text,c=r.length;let d=n;d<0&&(d=c+d,d<0&&(d=0));const u=te();if(i&&H(u)){const f=n+c;u.setTextNodeRange(s,f,s,f)}const p=l.slice(0,d)+r+l.slice(d+o);return s.__text=p,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){Xe();const o=this.getLatest(),r=o.getTextContent();if(r==="")return[];const i=o.__key,s=uo(),l=r.length;n.sort((T,A)=>T-A),n.push(l);const c=[],d=n.length;for(let T=0,A=0;T<l&&A<=d;A++){const z=n[A];z>T&&(c.push(r.slice(T,z)),T=z)}const u=c.length;if(u===1)return[o];const p=c[0],f=o.getParent();let m;const h=o.getFormat(),g=o.getStyle(),v=o.__detail;let y=!1,_=null,b=null;const k=te();if(H(k)){const[T,A]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];T.type==="text"&&T.key===i&&(_=T),A.type==="text"&&A.key===i&&(b=A)}o.isSegmented()?(m=Re(p),m.__format=h,m.__style=g,m.__detail=v,m.__state=tf(o,m),y=!0):m=o.setTextContent(p);const w=[m];for(let T=1;T<u;T++){const A=Re(c[T]);A.__format=h,A.__style=g,A.__detail=v,A.__state=tf(o,A);const z=A.__key;s===i&&tt(z),w.push(A)}const C=_?_.offset:null,x=b?b.offset:null;let S=0;for(const T of w){if(!_&&!b)break;const A=S+T.getTextContentSize();if(_!==null&&C!==null&&C<=A&&C>=S&&(_.set(T.getKey(),C-S,"text"),C<A&&(_=null)),b!==null&&x!==null&&x<=A&&x>=S){b.set(T.getKey(),x-S,"text");break}S=A}if(f!==null){(function(z){const O=z.getPreviousSibling(),B=z.getNextSibling();O!==null&&Ls(O),B!==null&&Ls(B)})(this);const T=f.getWritable(),A=this.getIndexWithinParent();y?(T.splice(A,0,w),this.remove()):T.splice(A,1,w),H(k)&&Es(k,f,A,u-1)}return w}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||Z(50);const r=this.__key,i=n.__key,s=this.__text,l=s.length;uo()===i&&tt(r);const c=te();if(H(c)){const f=c.anchor,m=c.focus;f!==null&&f.key===i&&rm(f,o,r,n,l),m!==null&&m.key===i&&rm(m,o,r,n,l)}const d=n.__text,u=o?d+s:s+d;this.setTextContent(u);const p=this.getWritable();return n.remove(),p}isTextEntity(){return!1}}function G9(t){return{forChild:qc(t.style),node:null}}function K9(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:qc(e.style,n?void 0:"bold"),node:null}}const Hf=new WeakMap;function Y9(t){if(!je(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function J9(t){const e=t;t.parentElement===null&&Z(129);let n=e.textContent||"";if(function(o){let r,i=o.parentNode;const s=[o];for(;i!==null&&(r=Hf.get(i))===void 0&&!Y9(i);)s.push(i),i=i.parentNode;const l=r===void 0?i:r;for(let c=0;c<s.length;c++)Hf.set(s[c],l);return l}(e)!==null){const o=n.split(/(\r?\n|\t)/),r=[],i=o.length;for(let s=0;s<i;s++){const l=o[s];l===`
22
+ `,u9=Lo?" ":rs,dt={bold:1,capitalize:1024,code:16,highlight:q1,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},p9={directionless:1,unmergeable:2},j1={center:2,end:6,justify:4,left:1,right:3,start:5},f9={[i9]:"center",[d9]:"end",[l9]:"justify",[a9]:"left",[s9]:"right",[c9]:"start"},m9={normal:0,segmented:2,token:1},h9={[n9]:"normal",[r9]:"segmented",[o9]:"token"},U1="$config";function H1(t,e,n,o,r,i){let s=t.getFirstChild();for(;s!==null;){const l=s.__key;s.__parent===e&&(V(s)&&H1(s,l,n,o,r,i),n.has(l)||i.delete(l),r.push(l)),s=s.getNextSibling()}}let hc=!1,gc=0;function g9(t){gc=t.timeStamp}function bc(t,e,n){const o=t.nodeName==="BR",r=e.__lexicalLineBreak;return r&&(t===r||o&&t.previousSibling===r)||o&&Ms(t,n)!==void 0}function b9(t,e,n){const o=rn(Ht(n));let r=null,i=null;o!==null&&o.anchorNode===t&&(r=o.anchorOffset,i=o.focusOffset);const s=t.nodeValue;s!==null&&ad(e,s,r,i,!1)}function y9(t,e,n){if(H(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return Fn(e)&&n.isAttached()}function _9(t,e,n,o){for(let r=t;r&&!w6(r);r=Ga(r)){const i=Ms(r,e);if(i!==void 0){const s=He(i,n);if(s)return ve(s)||!je(r)?void 0:[r,s]}else if(r===o)return[o,Nm(n)]}}function W1(t,e,n){hc=!0;const o=performance.now()-gc>100;try{Nt(t,()=>{const r=te()||function(f){return f.getEditorState().read(()=>{const m=te();return m!==null?m.clone():null})}(t),i=new Map,s=t.getRootElement(),l=t._editorState,c=t._blockCursorElement;let d=!1,u="";for(let f=0;f<e.length;f++){const m=e[f],h=m.type,g=m.target,v=_9(g,t,l,s);if(!v)continue;const[_,y]=v;if(h==="characterData")o&&X(y)&&Fn(g)&&y9(r,g,y)&&b9(g,y,t);else if(h==="childList"){d=!0;const b=m.addedNodes;for(let C=0;C<b.length;C++){const x=b[C],S=Sm(x),T=x.parentNode;if(T!=null&&x!==c&&S===null&&!bc(x,T,t)){if(Lo){const A=(je(x)?x.innerText:null)||x.nodeValue;A&&(u+=A)}T.removeChild(x)}}const k=m.removedNodes,w=k.length;if(w>0){let C=0;for(let x=0;x<w;x++){const S=k[x];(bc(S,g,t)||c===S)&&(g.appendChild(S),C++)}w!==C&&i.set(_,y)}}}if(i.size>0)for(const[f,m]of i)m.reconcileObservedMutation(f,t);const p=n.takeRecords();if(p.length>0){for(let f=0;f<p.length;f++){const m=p[f],h=m.addedNodes,g=m.target;for(let v=0;v<h.length;v++){const _=h[v],y=_.parentNode;y==null||_.nodeName!=="BR"||bc(_,g,t)||y.removeChild(_)}}n.takeRecords()}r!==null&&(d&&st(r),Lo&&Pm(t)&&r.insertRawText(u))})}finally{hc=!1}}function Z1(t){const e=t._observer;e!==null&&W1(t,e.takeRecords(),e)}function G1(t){(function(e){gc===0&&Ht(e).addEventListener("textInput",g9,!0)})(t),t._observer=new MutationObserver((e,n)=>{W1(t,e,n)})}let v9=class{constructor(e,n){j(this,"key");j(this,"parse");j(this,"unparse");j(this,"isEqual");j(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||x9).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function C9(t,e){return new v9(t,e)}function K1(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function yc(t,e,n){let o;if(Xe(),typeof n=="function"){const i=t.getLatest(),s=K1(i,e);if(o=n(s),e.isEqual(s,o))return i}else o=n;const r=t.getWritable();return Y1(r).updateFromKnown(e,o),r}function w9(t){const e=new Map,n=new Set;for(let o=typeof t=="function"?t:t.replace;o.prototype&&o.prototype.getType!==void 0;o=Object.getPrototypeOf(o)){const{ownNodeConfig:r}=Ps(o);if(r&&r.stateConfigs)for(const i of r.stateConfigs){let s;"stateConfig"in i?(s=i.stateConfig,i.flat&&n.add(s.key)):s=i,e.set(s.key,s)}}return{flatKeys:n,sharedConfigMap:e}}let k9=class Rg{constructor(e,n,o=void 0,r=new Map,i=void 0){j(this,"node");j(this,"knownState");j(this,"unknownState");j(this,"sharedNodeState");j(this,"size");this.node=e,this.sharedNodeState=n,this.unknownState=o,this.knownState=r;const{sharedConfigMap:s}=this.sharedNodeState,l=i!==void 0?i:function(c,d,u){let p=u.size;if(d)for(const f in d){const m=c.get(f);m&&u.has(m)||p++}return p}(s,o,r);this.size=l}getValue(e){const n=this.knownState.get(e);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(e.key,e);let o=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const r=this.unknownState[e.key];r!==void 0&&(o=e.parse(r)),this.updateFromKnown(e,o)}return o}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[o,r]of this.knownState)o.isEqual(r,o.defaultValue)?delete e[o.key]:e[o.key]=o.unparse(r);for(const o of this.sharedNodeState.flatKeys)o in e&&(n[o]=e[o],delete e[o]);return X1(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:o}=this,r=new Map(this.knownState);return new Rg(e,n,function(i,s,l){let c;if(l)for(const[d,u]of Object.entries(l)){const p=i.get(d);p?s.has(p)||s.set(p,p.parse(u)):(c=c||{},c[d]=u)}return c}(n.sharedConfigMap,r,o),r,this.size)}updateFromKnown(e,n){const o=e.key;this.sharedNodeState.sharedConfigMap.set(o,e);const{knownState:r,unknownState:i}=this;r.has(e)||i&&o in i||(i&&(delete i[o],this.unknownState=X1(i)),this.size++),r.set(e,n)}updateFromUnknown(e,n){const o=this.sharedNodeState.sharedConfigMap.get(e);o?this.updateFromKnown(o,o.parse(n)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=n)}updateFromJSON(e){const{knownState:n}=this;for(const o of n.keys())n.set(o,o.defaultValue);if(this.size=n.size,this.unknownState=void 0,e)for(const[o,r]of Object.entries(e))this.updateFromUnknown(o,r)}};function Y1(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new k9(e,J1(e));return e.__state=n,n}function J1(t){return t.__state?t.__state.sharedNodeState:Cm(Rs(),t.getType()).sharedNodeState}function X1(t){if(t)for(const e in t)return t}function x9(t){return t}function Q1(t,e,n){for(const[o,r]of e.knownState){if(t.has(o.key))continue;t.add(o.key);const i=n?n.getValue(o):o.defaultValue;if(i!==r&&!o.isEqual(i,r))return!0}return!1}function ef(t,e,n){const{unknownState:o}=e,r=n?n.unknownState:void 0;if(o){for(const[i,s]of Object.entries(o))if(!t.has(i)&&(t.add(i),s!==(r?r[i]:void 0)))return!0}return!1}function tf(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function nf(t,e){const n=t.__mode,o=t.__format,r=t.__style,i=e.__mode,s=e.__format,l=e.__style,c=t.__state,d=e.__state;return(n===null||n===i)&&(o===null||o===s)&&(r===null||r===l)&&(t.__state===null||c===d||function(u,p){if(u===p)return!0;if(u&&p&&u.size!==p.size)return!1;const f=new Set;return!(u&&Q1(f,u,p)||p&&Q1(f,p,u)||u&&ef(f,u,p)||p&&ef(f,p,u))}(c,d))}function of(t,e){const n=t.mergeWithSibling(e),o=Me()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function rf(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&X(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(nf(e,o)){o=of(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(nf(o,n)){o=of(o,n);break}break}n.remove()}}else o.remove()}function as(t){return af(t.anchor),af(t.focus),t}function af(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,r;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),r=!0):(o=e.getChildAtIndex(n),r=!1),X(o)){t.set(o.__key,r?o.getTextContentSize():0,"text",!0);break}if(!V(o))break;t.set(o.__key,r?o.getChildrenSize():0,"element",!0)}}let Mo,it,Aa,is,_c,vc,$o,en,Cc,Na,Ue="",_n=null,vn="",On="",Sr=!1,ss=!1;function ls(t,e){const n=$o.get(t);if(e!==null){const o=Sc(t);o.parentNode===e&&e.removeChild(o)}if(en.has(t)||it._keyToDOMMap.delete(t),V(n)){const o=ds(n,$o);wc(o,0,o.length-1,null)}n!==void 0&&id(Na,Aa,is,n,"destroyed")}function wc(t,e,n,o){let r=e;for(;r<=n;++r){const i=t[r];i!==void 0&&ls(i,o)}}function Oo(t,e){t.setProperty("text-align",e)}const E9="40px";function sf(t,e){const n=Mo.theme.indent;if(typeof n=="string"){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}const o=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||E9;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function lf(t,e){const n=t.style;e===0?Oo(n,""):e===1?Oo(n,"left"):e===2?Oo(n,"center"):e===3?Oo(n,"right"):e===4?Oo(n,"justify"):e===5?Oo(n,"start"):e===6&&Oo(n,"end")}function kc(t,e){const n=function(o){const r=o.__dir;if(r!==null)return r;if(qe(o))return null;const i=o.getParentOrThrow();return qe(i)&&i.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function cs(t,e){const n=en.get(t);n===void 0&&Z(60);const o=n.createDOM(Mo,it);if(function(r,i,s){const l=s._keyToDOMMap;(function(c,d,u){const p=`__lexicalKey_${d._key}`;c[p]=u})(i,s,r),l.set(r,i)}(t,o,it),X(n)?o.setAttribute("data-lexical-text","true"):ve(n)&&o.setAttribute("data-lexical-decorator","true"),V(n)){const r=n.__indent,i=n.__size;if(kc(o,n),r!==0&&sf(o,r),i!==0){const l=i-1;xc(ds(n,en),n,0,l,n.getDOMSlot(o))}const s=n.__format;s!==0&&lf(o,s),n.isInline()||df(null,n,o),Os(n)&&(Ue+=io,On+=io)}else{const r=n.getTextContent();if(ve(n)){const i=n.decorate(it,Mo);i!==null&&uf(t,i),o.contentEditable="false"}Ue+=r,On+=r}return e!==null&&e.insertChild(o),id(Na,Aa,is,n,"created"),o}function xc(t,e,n,o,r){const i=Ue;Ue="";let s=n;for(;s<=o;++s){cs(t[s],r);const l=en.get(t[s]);l!==null&&X(l)&&(_n===null&&(_n=l.getFormat()),vn===""&&(vn=l.getStyle()))}Os(e)&&(Ue+=io),r.element.__lexicalTextContent=Ue,Ue=i+Ue}function cf(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return so(o)?"line-break":ve(o)&&o.isInline()?"decorator":null}return"empty"}return null}function df(t,e,n){const o=cf(t,$o),r=cf(e,en);o!==r&&e.getDOMSlot(n).setManagedLineBreak(r)}function S9(t,e,n){var o;_n=null,vn="",function(r,i,s){const l=Ue,c=r.__size,d=i.__size;Ue="";const u=s.element;if(c===1&&d===1){const p=r.__first,f=i.__first;if(p===f)Da(p,u);else{const h=Sc(p),g=cs(f,null);try{u.replaceChild(g,h)}catch(v){if(typeof v=="object"&&v!=null){const _=`${v.toString()} Parent: ${u.tagName}, new child: {tag: ${g.tagName} key: ${f}}, old child: {tag: ${h.tagName}, key: ${p}}.`;throw new Error(_)}throw v}ls(p,null)}const m=en.get(f);X(m)&&(_n===null&&(_n=m.getFormat()),vn===""&&(vn=m.getStyle()))}else{const p=ds(r,$o),f=ds(i,en);if(p.length!==c&&Z(227),f.length!==d&&Z(228),c===0)d!==0&&xc(f,i,0,d-1,s);else if(d===0){if(c!==0){const m=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;wc(p,0,c-1,m?null:u),m&&(u.textContent="")}}else(function(m,h,g,v,_,y){const b=v-1,k=_-1;let w,C,x=y.getFirstChild(),S=0,T=0;for(;S<=b&&T<=k;){const O=h[S],B=g[T];if(O===B)x=Ec(Da(B,y.element)),S++,T++;else{w===void 0&&(w=new Set(h)),C===void 0&&(C=new Set(g));const I=C.has(O),P=w.has(B);if(I)if(P){const G=qo(it,B);G===x?x=Ec(Da(B,y.element)):(y.withBefore(x).insertChild(G),Da(B,y.element)),S++,T++}else cs(B,y.withBefore(x)),T++;else x=Ec(Sc(O)),ls(O,y.element),S++}const L=en.get(B);L!==null&&X(L)&&(_n===null&&(_n=L.getFormat()),vn===""&&(vn=L.getStyle()))}const A=S>b,z=T>k;if(A&&!z){const O=g[k+1],B=O===void 0?null:it.getElementByKey(O);xc(g,m,T,k,y.withBefore(B))}else z&&!A&&wc(h,S,b,y.element)})(i,p,f,c,d,s)}Os(i)&&(Ue+=io),u.__lexicalTextContent=Ue,Ue=l+Ue}(t,e,e.getDOMSlot(n)),o=e,_n==null||_n===o.__textFormat||ss||o.setTextFormat(_n),function(r){vn===""||vn===r.__textStyle||ss||r.setTextStyle(vn)}(e)}function ds(t,e){const n=[];let o=t.__first;for(;o!==null;){const r=e.get(o);r===void 0&&Z(101),n.push(o),o=r.__next}return n}function Da(t,e){const n=$o.get(t);let o=en.get(t);n!==void 0&&o!==void 0||Z(61);const r=Sr||vc.has(t)||_c.has(t),i=qo(it,t);if(n===o&&!r){if(V(n)){const s=i.__lexicalTextContent;s!==void 0&&(Ue+=s,On+=s)}else{const s=n.getTextContent();On+=s,Ue+=s}return i}if(n!==o&&r&&id(Na,Aa,is,o,"updated"),o.updateDOM(n,i,Mo)){const s=cs(t,null);return e===null&&Z(62),e.replaceChild(s,i),ls(t,null),s}if(V(n)&&V(o)){const s=o.__indent;(Sr||s!==n.__indent)&&sf(i,s);const l=o.__format;if((Sr||l!==n.__format)&&lf(i,l),r&&(S9(n,o,i),qe(o)||o.isInline()||df(n,o,i)),Os(o)&&(Ue+=io,On+=io),(Sr||o.__dir!==n.__dir)&&(kc(i,o),qe(o)&&!Sr))for(const c of o.getChildren())V(c)&&kc(qo(it,c.getKey()),c)}else{const s=o.getTextContent();if(ve(o)){const l=o.decorate(it,Mo);l!==null&&uf(t,l)}Ue+=s,On+=s}if(!ss&&qe(o)&&o.__cachedText!==On){const s=o.getWritable();s.__cachedText=On,o=s}return i}function uf(t,e){let n=it._pendingDecorators;const o=it._decorators;if(n===null){if(o[t]===e)return;n=Tm(it)}n[t]=e}function Ec(t){let e=t.nextSibling;return e!==null&&e===it._blockCursorElement&&(e=e.nextSibling),e}function T9(t,e,n,o,r,i){Ue="",On="",Sr=o===2,it=n,Mo=n._config,Aa=n._nodes,is=it._listeners.mutation,_c=r,vc=i,$o=t._nodeMap,en=e._nodeMap,ss=e._readOnly,Cc=new Map(n._keyToDOMMap);const s=new Map;return Na=s,Da("root",null),it=void 0,Aa=void 0,_c=void 0,vc=void 0,$o=void 0,en=void 0,Mo=void 0,Cc=void 0,Na=void 0,s}function Sc(t){const e=Cc.get(t);return e===void 0&&Z(75,t),e}function le(t){return{type:t}}const pf=le("SELECTION_CHANGE_COMMAND"),A9=le("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),ff=le("CLICK_COMMAND"),Io=le("DELETE_CHARACTER_COMMAND"),Tr=le("INSERT_LINE_BREAK_COMMAND"),Ba=le("INSERT_PARAGRAPH_COMMAND"),Ar=le("CONTROLLED_TEXT_INSERTION_COMMAND"),Tc=le("PASTE_COMMAND"),Ac=le("REMOVE_TEXT_COMMAND"),La=le("DELETE_WORD_COMMAND"),Ma=le("DELETE_LINE_COMMAND"),Ut=le("FORMAT_TEXT_COMMAND"),Nc=le("UNDO_COMMAND"),Dc=le("REDO_COMMAND"),N9=le("KEYDOWN_COMMAND"),mf=le("KEY_ARROW_RIGHT_COMMAND"),D9=le("MOVE_TO_END"),hf=le("KEY_ARROW_LEFT_COMMAND"),B9=le("MOVE_TO_START"),gf=le("KEY_ARROW_UP_COMMAND"),bf=le("KEY_ARROW_DOWN_COMMAND"),us=le("KEY_ENTER_COMMAND"),yf=le("KEY_SPACE_COMMAND"),_f=le("KEY_BACKSPACE_COMMAND"),vf=le("KEY_ESCAPE_COMMAND"),Cf=le("KEY_DELETE_COMMAND"),wf=le("KEY_TAB_COMMAND"),L9=le("INSERT_TAB_COMMAND"),M9=le("INDENT_CONTENT_COMMAND"),kf=le("OUTDENT_CONTENT_COMMAND"),xf=le("DROP_COMMAND"),$9=le("FORMAT_ELEMENT_COMMAND"),Ef=le("DRAGSTART_COMMAND"),Sf=le("DRAGOVER_COMMAND"),O9=le("DRAGEND_COMMAND"),ps=le("COPY_COMMAND"),Bc=le("CUT_COMMAND"),Lc=le("SELECT_ALL_COMMAND"),I9=le("CLEAR_EDITOR_COMMAND"),R9=le("CLEAR_HISTORY_COMMAND"),fs=le("CAN_REDO_COMMAND"),ms=le("CAN_UNDO_COMMAND"),P9=le("FOCUS_COMMAND"),V9=le("BLUR_COMMAND"),F9=le("KEY_MODIFIER_COMMAND"),In=Object.freeze({}),Mc=[["keydown",function(t,e){if($a=t.timeStamp,Tf=t.key,!e.isComposing()&&!re(e,N9,t)&&t.key!=null){if(Rc&&Om(t))return Nt(e,()=>{bs(e,Pc)}),Rc=!1,void(Pc="");if(function(n){return Te(n,"ArrowRight",{shiftKey:"any"})}(t))re(e,mf,t);else if(function(n){return Te(n,"ArrowRight",zn)}(t))re(e,D9,t);else if(function(n){return Te(n,"ArrowLeft",{shiftKey:"any"})}(t))re(e,hf,t);else if(function(n){return Te(n,"ArrowLeft",zn)}(t))re(e,B9,t);else if(function(n){return Te(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))re(e,gf,t);else if(function(n){return Te(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))re(e,bf,t);else if(function(n){return Te(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Oa=!0,re(e,us,t);else if(function(n){return n.key===" "}(t))re(e,yf,t);else if(function(n){return Qt&&Te(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Oa=!0,re(e,Tr,!0);else if(function(n){return Te(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Oa=!1,re(e,us,t);else if(function(n){return Te(n,"Backspace",{shiftKey:"any"})||Qt&&Te(n,"h",{ctrlKey:!0})}(t))Om(t)?re(e,_f,t):(t.preventDefault(),re(e,Io,!0));else if(function(n){return n.key==="Escape"}(t))re(e,vf,t);else if(function(n){return Te(n,"Delete",{})||Qt&&Te(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?re(e,Cf,t):(t.preventDefault(),re(e,Io,!1));else if(function(n){return Te(n,"Backspace",$m)}(t))t.preventDefault(),re(e,La,!0);else if(function(n){return Te(n,"Delete",$m)}(t))t.preventDefault(),re(e,La,!1);else if(function(n){return Qt&&Te(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),re(e,Ma,!0);else if(function(n){return Qt&&(Te(n,"Delete",{metaKey:!0})||Te(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),re(e,Ma,!1);else if(function(n){return Te(n,"b",zn)}(t))t.preventDefault(),re(e,Ut,"bold");else if(function(n){return Te(n,"u",zn)}(t))t.preventDefault(),re(e,Ut,"underline");else if(function(n){return Te(n,"i",zn)}(t))t.preventDefault(),re(e,Ut,"italic");else if(function(n){return Te(n,"Tab",{shiftKey:"any"})}(t))re(e,wf,t);else if(function(n){return Te(n,"z",zn)}(t))t.preventDefault(),re(e,Nc,void 0);else if(function(n){return Qt?Te(n,"z",{metaKey:!0,shiftKey:!0}):Te(n,"y",{ctrlKey:!0})||Te(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),re(e,Dc,void 0);else{const n=e._editorState._selection;n===null||H(n)?Im(t)&&(t.preventDefault(),re(e,Lc,t)):function(o){return Te(o,"c",zn)}(t)?(t.preventDefault(),re(e,ps,t)):function(o){return Te(o,"x",zn)}(t)?(t.preventDefault(),re(e,Bc,t)):Im(t)&&(t.preventDefault(),re(e,Lc,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&re(e,F9,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Rr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Nt(e,()=>{wm(n)||(Ic=!0)})}],["compositionstart",function(t,e){Nt(e,()=>{const n=te();if(H(n)&&!e.isComposing()){const o=n.anchor,r=n.anchor.getNode();tt(o.key),(t.timeStamp<$a+30||o.type==="element"||!n.isCollapsed()||r.getFormat()!==n.format||X(r)&&r.getStyle()!==n.style)&&re(e,Ar,u9)}})}],["compositionend",function(t,e){Lo?Ia=!0:Er||!Sa&&!Ta?Nt(e,()=>{bs(e,t.data)}):(Rc=!0,Pc=t.data)}],["input",function(t,e){t.stopPropagation(),Nt(e,()=>{if(je(t.target)&&wm(t.target))return;const n=te(),o=t.data,r=$f(t);if(o!=null&&H(n)&&Df(n,r,o,t.timeStamp,!1)){Ia&&(bs(e,o),Ia=!1);const i=n.anchor.getNode(),s=rn(Ht(e));if(s===null)return;const l=n.isBackward(),c=l?n.anchor.offset:n.focus.offset,d=l?n.focus.offset:n.anchor.offset;os&&!n.isCollapsed()&&X(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,c)+o+i.getTextContent().slice(c+d)===Lm(s.anchorNode)||re(e,Ar,o);const u=o.length;Lo&&u>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=u),Sa||Er||Ta||!e.isComposing()||($a=0,tt(null))}else rd(!1,e,o!==null?o:void 0),Ia&&(bs(e,o||void 0),Ia=!1);(function(){Xe();const i=Me();Z1(i)})()},{event:t}),Nr=null}],["click",function(t,e){Nt(e,()=>{const n=te(),o=rn(Ht(e)),r=Lr();if(o){if(H(n)){const i=n.anchor,s=i.getNode();if(i.type==="element"&&i.offset===0&&n.isCollapsed()&&!qe(s)&&$e().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&r!==null&&n.is(r))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&s!==n.focus.getNode()){const l=Zt(s,c=>V(c)&&!c.isInline());V(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const i=o.anchorNode;(je(i)||Fn(i))&&st(Wc(r,o,e,t))}}re(e,ff,t)})}],["cut",In],["copy",In],["dragstart",In],["dragover",In],["dragend",In],["paste",In],["focus",In],["blur",In],["drop",In]];os&&Mc.push(["beforeinput",(t,e)=>function(n,o){const r=n.inputType,i=$f(n);r==="deleteCompositionText"||Lo&&Pm(o)||r!=="insertCompositionText"&&Nt(o,()=>{const s=te();if(r==="deleteContentBackward"){if(s===null){const m=Lr();if(!H(m))return;st(m.clone())}if(H(s)){const m=s.anchor.key===s.focus.key;if(l=n.timeStamp,Tf==="MediaLast"&&l<$a+30&&o.isComposing()&&m){if(tt(null),$a=0,setTimeout(()=>{Nt(o,()=>{tt(null)})},30),H(s)){const h=s.anchor.getNode();h.markDirty(),X(h)||Z(142),Mf(s,h)}}else{tt(null),n.preventDefault();const h=s.anchor.getNode(),g=h.getTextContent(),v=h.canInsertTextAfter(),_=s.anchor.offset===0&&s.focus.offset===g.length;let y=F1&&m&&!_&&v;if(y&&s.isCollapsed()&&(y=!ve(sd(s.anchor,!0))),!y){re(o,Io,!0);const b=te();F1&&H(b)&&b.isCollapsed()&&(Ro=b,setTimeout(()=>Ro=null))}}return}}var l;if(!H(s))return;const c=n.data;Nr!==null&&rd(!1,o,Nr),s.dirty&&Nr===null||!s.isCollapsed()||qe(s.anchor.getNode())||i===null||s.applyDOMRange(i),Nr=null;const d=s.anchor,u=s.focus,p=d.getNode(),f=u.getNode();if(r!=="insertText"&&r!=="insertTranspose")switch(n.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":re(o,Ar,n);break;case"insertFromComposition":tt(null),re(o,Ar,n);break;case"insertLineBreak":tt(null),re(o,Tr,!1);break;case"insertParagraph":tt(null),Oa&&!Er?(Oa=!1,re(o,Tr,!1)):re(o,Ba,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":re(o,Tc,n);break;case"deleteByComposition":(function(m,h){return m!==h||V(m)||V(h)||!Fo(m)||!Fo(h)})(p,f)&&re(o,Ac,n);break;case"deleteByDrag":case"deleteByCut":re(o,Ac,n);break;case"deleteContent":re(o,Io,!1);break;case"deleteWordBackward":re(o,La,!0);break;case"deleteWordForward":re(o,La,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":re(o,Ma,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":re(o,Ma,!1);break;case"formatStrikeThrough":re(o,Ut,"strikethrough");break;case"formatBold":re(o,Ut,"bold");break;case"formatItalic":re(o,Ut,"italic");break;case"formatUnderline":re(o,Ut,"underline");break;case"historyUndo":re(o,Nc,void 0);break;case"historyRedo":re(o,Dc,void 0)}else{if(c===`
23
+ `)n.preventDefault(),re(o,Tr,!1);else if(c===io)n.preventDefault(),re(o,Ba,void 0);else if(c==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),s.insertRawText(m)}else c!=null&&Df(s,i,c,n.timeStamp,!0)?(n.preventDefault(),re(o,Ar,c)):Nr=c;Af=n.timeStamp}})}(t,e)]);let $a=0,Tf=null,Af=0,Nr=null;const $c=new WeakMap,hs=new WeakMap;let Oc=!1,Ic=!1,Oa=!1,Ia=!1,Rc=!1,Pc="",Ro=null,Nf=[0,"",0,"root",0];function Df(t,e,n,o,r){const i=t.anchor,s=t.focus,l=i.getNode(),c=Me(),d=rn(Ht(c)),u=d!==null?d.anchorNode:null,p=i.key,f=c.getElementByKey(p),m=n.length;return p!==s.key||!X(l)||(!r&&(!os||Af<o+50)||l.isDirty()&&m<2||Dm(n))&&i.offset!==s.offset&&!l.isComposing()||Vn(l)||l.isDirty()&&m>1||(r||!os)&&f!==null&&!l.isComposing()&&u!==Mr(f)||d!==null&&e!==null&&(!e.collapsed||e.startContainer!==d.anchorNode||e.startOffset!==d.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function(h,g){if(g.isSegmented())return!0;if(!h.isCollapsed())return!1;const v=h.anchor.offset,_=g.getParentOrThrow(),y=Fo(g);return v===0?!g.canInsertTextBefore()||!_.canInsertTextBefore()&&!g.isComposing()||y||function(b){const k=b.getPreviousSibling();return(X(k)||V(k)&&k.isInline())&&!k.canInsertTextAfter()}(g):v===g.getTextContentSize()&&(!g.canInsertTextAfter()||!_.canInsertTextAfter()&&!g.isComposing()||y)}(t,l)}function Bf(t,e){return Fn(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function Lf(t,e,n){const{anchorNode:o,anchorOffset:r,focusNode:i,focusOffset:s}=t;Oc&&(Oc=!1,Bf(o,r)&&Bf(i,s)&&!Ro)||Nt(e,()=>{if(!n)return void st(null);if(!Za(e,o,i))return;let l=te();if(Ro&&H(l)&&l.isCollapsed()){const c=l.anchor,d=Ro.anchor;(c.key===d.key&&c.offset===d.offset+1||c.offset===1&&d.getNode().is(c.getNode().getPreviousSibling()))&&(l=Ro.clone(),st(l))}if(Ro=null,H(l)){const c=l.anchor,d=c.getNode();if(l.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(l.dirty=!0);const u=Ht(e).event,p=u?u.timeStamp:performance.now(),[f,m,h,g,v]=Nf,_=$e(),y=e.isComposing()===!1&&_.getTextContent()==="";if(p<v+200&&c.offset===h&&c.key===g)gs(l,f,m);else if(c.type==="text")X(d)||Z(141),Mf(l,d);else if(c.type==="element"&&!y){V(d)||Z(259);const b=c.getNode();b.isEmpty()?function(k,w){const C=w.getTextFormat(),x=w.getTextStyle();gs(k,C,x)}(l,b):gs(l,0,"")}}else{const u=c.key,p=l.focus.key,f=l.getNodes(),m=f.length,h=l.isBackward(),g=h?s:r,v=h?r:s,_=h?p:u,y=h?u:p;let b=2047,k=!1;for(let w=0;w<m;w++){const C=f[w],x=C.getTextContentSize();if(X(C)&&x!==0&&!(w===0&&C.__key===_&&g===x||w===m-1&&C.__key===y&&v===0)&&(k=!0,b&=C.getFormat(),b===0))break}l.format=k?b:0}}re(e,pf,void 0)})}function gs(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function Mf(t,e){gs(t,e.getFormat(),e.getStyle())}function $f(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function bs(t,e){const n=t._compositionKey;if(tt(null),n!==null&&e!=null){if(e===""){const o=He(n),r=Mr(t.getElementByKey(n));return void(r!==null&&r.nodeValue!==null&&X(o)&&ad(o,r.nodeValue,null,null,!0))}if(e[e.length-1]===`
24
+ `){const o=te();if(H(o)){const r=o.focus;return o.anchor.set(r.key,r.offset,r.type),void re(t,us,null)}}}rd(!0,t,e)}function Of(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const Dr=new Map;function If(t){const e=_6(t.target);if(e===null)return;const n=km(e.anchorNode);if(n===null)return;Ic&&(Ic=!1,Nt(n,()=>{const c=Lr(),d=e.anchorNode;(je(d)||Fn(d))&&st(Wc(c,e,n,t))}));const o=od(n),r=o[o.length-1],i=r._key,s=Dr.get(i),l=s||r;l!==n&&Lf(e,l,!1),Lf(e,n,!0),n!==r?Dr.set(i,n):s&&Dr.delete(i)}function Rf(t){t._lexicalHandled=!0}function Pf(t){return t._lexicalHandled===!0}const Vf=()=>{};function z9(t){const e=$c.get(t);if(e===void 0)return void Vf();const n=hs.get(e);if(n===void 0)return void Vf();const o=n-1;o>=0||Z(164),$c.delete(t),hs.set(e,o),o===0&&e.removeEventListener("selectionchange",If);const r=Ds(t);nd(r)?(function(s){if(s._parentEditor!==null){const l=od(s),c=l[l.length-1]._key;Dr.get(c)===s&&Dr.delete(c)}else Dr.delete(s._key)}(r),t.__lexicalEditor=null):r&&Z(198);const i=Of(t);for(let s=0;s<i.length;s++)i[s]();t.__lexicalEventHandles=[]}function Vc(t,e,n){Xe();const o=t.__key,r=t.getParent();if(r===null)return;const i=function(l){const c=te();if(!H(c)||!V(l))return c;const{anchor:d,focus:u}=c,p=d.getNode(),f=u.getNode();return ld(p,l)&&d.set(l.__key,0,"element"),ld(f,l)&&u.set(l.__key,0,"element"),c}(t);let s=!1;if(H(i)&&e){const l=i.anchor,c=i.focus;l.key===o&&(Ss(l,t,r,t.getPreviousSibling(),t.getNextSibling()),s=!0),c.key===o&&(Ss(c,t,r,t.getPreviousSibling(),t.getNextSibling()),s=!0)}else At(i)&&e&&t.isSelected()&&t.selectPrevious();if(H(i)&&e&&!s){const l=t.getIndexWithinParent();zo(t),Es(i,r,l,-1)}else zo(t);n||ut(r)||r.canBeEmpty()||!r.isEmpty()||Vc(r,e),e&&i&&qe(r)&&r.isEmpty()&&r.selectEnd()}function ahe(t){return t}const Ff=Symbol.for("ephemeral");function ys(t){return t[Ff]||!1}class tn{constructor(e){j(this,"__type");j(this,"__key");j(this,"__parent");j(this,"__prev");j(this,"__next");j(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),p6(this,e)}static getType(){const{ownNodeType:e}=Ps(this);return e===void 0&&Z(64,this.name),e}static clone(e){Z(65,this.name)}$config(){return{}}config(e,n){const o=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:o,type:e}),{[e]:n}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){Z(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=He(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||te();if(n==null)return!1;const o=n.getNodes().some(r=>r.__key===this.__key);if(X(this))return o;if(H(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const r=this.getParent();if(ve(this)&&this.isInline()&&r){const i=n.isBackward()?n.focus:n.anchor;if(r.is(i.getNode())&&i.offset===r.getChildrenSize()&&this.is(r.getLastChild()))return!1}}return o}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let n=e.getFirstChild(),o=0;for(;n!==null;){if(this.is(n))return o;o++,n=n.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:He(e)}getParentOrThrow(){const e=this.getParent();return e===null&&Z(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(ut(n))return V(e)||e===this&&ve(e)||Z(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&Z(67,this.__key),e}getParents(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:He(e)}getPreviousSiblings(){const e=[],n=this.getParent();if(n===null)return e;let o=n.getFirstChild();for(;o!==null&&!o.is(this);)e.push(o),o=o.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:He(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=V(this)?this:this.getParent(),o=V(e)?e:e.getParent(),r=n&&o?Fs(n,o):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Fs(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Zm(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&Z(279),!1)))}isParentOf(e){const n=Fs(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),o=[],r=new Set;let i=this;for(;i!==null;){const s=i.__key;if(r.has(s)||(r.add(s),o.push(i)),i===e)break;const l=V(i)?n?i.getFirstChild():i.getLastChild():null;if(l!==null){i=l;continue}const c=n?i.getNextSibling():i.getPreviousSibling();if(c!==null){i=c;continue}const d=i.getParentOrThrow();if(r.has(d.__key)||o.push(d),d===e)break;let u=null,p=d;do{if(p===null&&Z(68),u=n?p.getNextSibling():p.getPreviousSibling(),p=p.getParent(),p===null)break;u!==null||r.has(p.__key)||o.push(p)}while(u===null);i=u}return n||o.reverse(),o}isDirty(){const e=Me()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(ys(this))return this;const e=He(this.__key);return e===null&&Z(113),e}getWritable(){if(ys(this))return this;Xe();const e=co(),n=Me(),o=e._nodeMap,r=this.__key,i=this.getLatest(),s=n._cloneNotNeeded,l=te();if(l!==null&&l.setCachedNodes(null),s.has(r))return Ls(i),i;const c=jm(i);return s.add(r),Ls(c),o.set(r,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){Z(70)}updateDOM(e,n,o){Z(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){Z(18,this.name)}updateFromJSON(e){return function(n,o){const r=n.getWritable(),i=o.$;let s=i;for(const l of J1(r).flatKeys)l in o&&(s!==void 0&&s!==i||(s={...i}),s[l]=o[l]);return(r.__state||s)&&Y1(n).updateFromJSON(s),r}(this,e)}static transform(){return null}remove(e){Vc(this,!0,e)}replace(e,n){Xe();let o=te();o!==null&&(o=o.clone()),dd(this,e);const r=this.getLatest(),i=this.__key,s=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),d=c.__size;zo(l);const u=r.getPreviousSibling(),p=r.getNextSibling(),f=r.__prev,m=r.__next,h=r.__parent;if(Vc(r,!1,!0),u===null?c.__first=s:u.getWritable().__next=s,l.__prev=f,p===null?c.__last=s:p.getWritable().__prev=s,l.__next=m,l.__parent=h,c.__size=d,n&&(V(this)&&V(l)||Z(139),this.getChildren().forEach(g=>{l.append(g)})),H(o)){st(o);const g=o.anchor,v=o.focus;g.key===i&&Zf(g,l),v.key===i&&Zf(v,l)}return uo()===i&&tt(s),l}insertAfter(e,n=!0){Xe(),dd(this,e);const o=this.getWritable(),r=e.getWritable(),i=r.getParent(),s=te();let l=!1,c=!1;if(i!==null){const m=e.getIndexWithinParent();if(zo(r),H(s)){const h=i.__key,g=s.anchor,v=s.focus;l=g.type==="element"&&g.key===h&&g.offset===m+1,c=v.type==="element"&&v.key===h&&v.offset===m+1}}const d=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),p=r.__key,f=o.__next;if(d===null?u.__last=p:d.getWritable().__prev=p,u.__size++,o.__next=p,r.__next=f,r.__prev=o.__key,r.__parent=o.__parent,n&&H(s)){const m=this.getIndexWithinParent();Es(s,u,m+1);const h=u.__key;l&&s.anchor.set(h,m+2,"element"),c&&s.focus.set(h,m+2,"element")}return e}insertBefore(e,n=!0){Xe(),dd(this,e);const o=this.getWritable(),r=e.getWritable(),i=r.__key;zo(r);const s=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),c=o.__prev,d=this.getIndexWithinParent();s===null?l.__first=i:s.getWritable().__next=i,l.__size++,o.__prev=i,r.__prev=c,r.__next=o.__key,r.__parent=o.__parent;const u=te();return n&&H(u)&&Es(u,this.getParentOrThrow(),d),e}isParentRequired(){return!1}createParentElementNode(){return Be()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){Xe();const o=this.getPreviousSibling(),r=this.getParentOrThrow();if(o===null)return r.select(0,0);if(V(o))return o.select();if(!X(o)){const i=o.getIndexWithinParent()+1;return r.select(i,i)}return o.select(e,n)}selectNext(e,n){Xe();const o=this.getNextSibling(),r=this.getParentOrThrow();if(o===null)return r.select();if(V(o))return o.select(0,0);if(!X(o)){const i=o.getIndexWithinParent();return r.select(i,i)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}j(tn,"importDOM");const _s="historic",q9="history-push",Ra="history-merge",j9="paste",zf="collaboration",U9="skip-scroll-into-view",H9="skip-dom-selection",W9="skip-selection-focus";class Pa extends tn{static getType(){return"linebreak"}static clone(e){return new Pa(e.__key)}constructor(e){super(e)}getTextContent(){return`
25
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(n){const o=n.parentElement;if(o!==null&&Is(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&vs(r)){const i=o.lastChild;if(i===n||i.previousSibling===n&&vs(i))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&Is(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&vs(r))return!1;const i=o.lastChild;if(i===n||i.previousSibling===n&&vs(i))return!0}return!1}(e)?null:{conversion:Z9,priority:0}}}static importJSON(e){return nn().updateFromJSON(e)}}function Z9(t){return{node:nn()}}function nn(){return on(new Pa)}function so(t){return t instanceof Pa}function vs(t){return Fn(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Fc(t,e){return 16&e?"code":e&q1?"mark":32&e?"sub":64&e?"sup":null}function zc(t,e){return 1&e?"strong":2&e?"em":"span"}function qf(t,e,n,o,r){const i=o.classList;let s=Ir(r,"base");s!==void 0&&i.add(...s),s=Ir(r,"underlineStrikethrough");let l=!1;const c=8&e&&4&e;s!==void 0&&(8&n&&4&n?(l=!0,c||i.add(...s)):c&&i.remove(...s));for(const d in dt){const u=dt[d];if(s=Ir(r,d),s!==void 0)if(n&u){if(l&&(d==="underline"||d==="strikethrough")){e&u&&i.remove(...s);continue}(!(e&u)||c&&d==="underline"||d==="strikethrough")&&i.add(...s)}else e&u&&i.remove(...s)}}function jf(t,e,n){const o=e.firstChild,r=n.isComposing(),i=t+(r?rs:"");if(o==null)e.textContent=i;else{const s=o.nodeValue;if(s!==i)if(r||Lo){const[l,c,d]=function(u,p){const f=u.length,m=p.length;let h=0,g=0;for(;h<f&&h<m&&u[h]===p[h];)h++;for(;g+h<f&&g+h<m&&u[f-g-1]===p[m-g-1];)g++;return[h,f-h-g,p.slice(h,m-g)]}(s,i);c!==0&&o.deleteData(l,c),o.insertData(l,d)}else o.nodeValue=i}}function Uf(t,e,n,o,r,i){jf(r,t,e);const s=i.theme.text;s!==void 0&&qf(0,0,o,t,s)}function Cs(t,e){const n=document.createElement(e);return n.appendChild(t),n}class lo extends tn{constructor(n="",o){super(o);j(this,"__text");j(this,"__format");j(this,"__style");j(this,"__mode");j(this,"__detail");this.__text=n,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(n){return new lo(n.__text,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__text=n.__text,this.__format=n.__format,this.__style=n.__style,this.__mode=n.__mode,this.__detail=n.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const n=this.getLatest();return h9[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===uo()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=dt[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return Bs(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const r=this.__format,i=Fc(0,r),s=zc(0,r),l=i===null?s:i,c=document.createElement(l);let d=c;this.hasFormat("code")&&c.setAttribute("spellcheck","false"),i!==null&&(d=document.createElement(s),c.appendChild(d)),Uf(d,this,0,r,this.__text,n);const u=this.__style;return u!==""&&(c.style.cssText=u),c}updateDOM(n,o,r){const i=this.__text,s=n.__format,l=this.__format,c=Fc(0,s),d=Fc(0,l),u=zc(0,s),p=zc(0,l);if((c===null?u:c)!==(d===null?p:d))return!0;if(c===d&&u!==p){const v=o.firstChild;v==null&&Z(48);const _=document.createElement(p);return Uf(_,this,0,l,i,r),o.replaceChild(_,v),!1}let f=o;d!==null&&c!==null&&(f=o.firstChild,f==null&&Z(49)),jf(i,f,this);const m=r.theme.text;m!==void 0&&s!==l&&qf(0,s,l,f,m);const h=n.__style,g=this.__style;return h!==g&&(o.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:J9,priority:0}),b:()=>({conversion:K9,priority:0}),code:()=>({conversion:Rn,priority:0}),em:()=>({conversion:Rn,priority:0}),i:()=>({conversion:Rn,priority:0}),mark:()=>({conversion:Rn,priority:0}),s:()=>({conversion:Rn,priority:0}),span:()=>({conversion:G9,priority:0}),strong:()=>({conversion:Rn,priority:0}),sub:()=>({conversion:Rn,priority:0}),sup:()=>({conversion:Rn,priority:0}),u:()=>({conversion:Rn,priority:0})}}static importJSON(n){return Re().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTextContent(n.text).setFormat(n.format).setDetail(n.detail).setMode(n.mode).setStyle(n.style)}exportDOM(n){let{element:o}=super.exportDOM(n);return je(o)||Z(132),o.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?o.style.textTransform="lowercase":this.hasFormat("uppercase")?o.style.textTransform="uppercase":this.hasFormat("capitalize")&&(o.style.textTransform="capitalize"),this.hasFormat("bold")&&(o=Cs(o,"b")),this.hasFormat("italic")&&(o=Cs(o,"i")),this.hasFormat("strikethrough")&&(o=Cs(o,"s")),this.hasFormat("underline")&&(o=Cs(o,"u")),{element:o}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(n,o){}setFormat(n){const o=this.getWritable();return o.__format=typeof n=="string"?dt[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?p9[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=Bs(this.getFormat(),n,null);return this.setFormat(o)}toggleDirectionless(){const n=this.getWritable();return n.__detail^=1,n}toggleUnmergeable(){const n=this.getWritable();return n.__detail^=2,n}setMode(n){const o=m9[n];if(this.__mode===o)return this;const r=this.getWritable();return r.__mode=o,r}setTextContent(n){if(this.__text===n)return this;const o=this.getWritable();return o.__text=n,o}select(n,o){Xe();let r=n,i=o;const s=te(),l=this.getTextContent(),c=this.__key;if(typeof l=="string"){const d=l.length;r===void 0&&(r=d),i===void 0&&(i=d)}else r=0,i=0;if(!H(s))return tm(c,r,c,i,"text","text");{const d=uo();d!==s.anchor.key&&d!==s.focus.key||tt(c),s.setTextNodeRange(this,r,this,i)}return s}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,o,r,i){const s=this.getWritable(),l=s.__text,c=r.length;let d=n;d<0&&(d=c+d,d<0&&(d=0));const u=te();if(i&&H(u)){const f=n+c;u.setTextNodeRange(s,f,s,f)}const p=l.slice(0,d)+r+l.slice(d+o);return s.__text=p,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){Xe();const o=this.getLatest(),r=o.getTextContent();if(r==="")return[];const i=o.__key,s=uo(),l=r.length;n.sort((T,A)=>T-A),n.push(l);const c=[],d=n.length;for(let T=0,A=0;T<l&&A<=d;A++){const z=n[A];z>T&&(c.push(r.slice(T,z)),T=z)}const u=c.length;if(u===1)return[o];const p=c[0],f=o.getParent();let m;const h=o.getFormat(),g=o.getStyle(),v=o.__detail;let _=!1,y=null,b=null;const k=te();if(H(k)){const[T,A]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];T.type==="text"&&T.key===i&&(y=T),A.type==="text"&&A.key===i&&(b=A)}o.isSegmented()?(m=Re(p),m.__format=h,m.__style=g,m.__detail=v,m.__state=tf(o,m),_=!0):m=o.setTextContent(p);const w=[m];for(let T=1;T<u;T++){const A=Re(c[T]);A.__format=h,A.__style=g,A.__detail=v,A.__state=tf(o,A);const z=A.__key;s===i&&tt(z),w.push(A)}const C=y?y.offset:null,x=b?b.offset:null;let S=0;for(const T of w){if(!y&&!b)break;const A=S+T.getTextContentSize();if(y!==null&&C!==null&&C<=A&&C>=S&&(y.set(T.getKey(),C-S,"text"),C<A&&(y=null)),b!==null&&x!==null&&x<=A&&x>=S){b.set(T.getKey(),x-S,"text");break}S=A}if(f!==null){(function(z){const O=z.getPreviousSibling(),B=z.getNextSibling();O!==null&&Ls(O),B!==null&&Ls(B)})(this);const T=f.getWritable(),A=this.getIndexWithinParent();_?(T.splice(A,0,w),this.remove()):T.splice(A,1,w),H(k)&&Es(k,f,A,u-1)}return w}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||Z(50);const r=this.__key,i=n.__key,s=this.__text,l=s.length;uo()===i&&tt(r);const c=te();if(H(c)){const f=c.anchor,m=c.focus;f!==null&&f.key===i&&rm(f,o,r,n,l),m!==null&&m.key===i&&rm(m,o,r,n,l)}const d=n.__text,u=o?d+s:s+d;this.setTextContent(u);const p=this.getWritable();return n.remove(),p}isTextEntity(){return!1}}function G9(t){return{forChild:qc(t.style),node:null}}function K9(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:qc(e.style,n?void 0:"bold"),node:null}}const Hf=new WeakMap;function Y9(t){if(!je(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function J9(t){const e=t;t.parentElement===null&&Z(129);let n=e.textContent||"";if(function(o){let r,i=o.parentNode;const s=[o];for(;i!==null&&(r=Hf.get(i))===void 0&&!Y9(i);)s.push(i),i=i.parentNode;const l=r===void 0?i:r;for(let c=0;c<s.length;c++)Hf.set(s[c],l);return l}(e)!==null){const o=n.split(/(\r?\n|\t)/),r=[],i=o.length;for(let s=0;s<i;s++){const l=o[s];l===`
26
26
  `||l===`\r
27
- `?r.push(nn()):l===" "?r.push(Br()):l!==""&&r.push(Re(l))}return{node:r}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let o=e,r=!0;for(;o!==null&&(o=Wf(o,!1))!==null;){const i=o.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===" "){let o=e,r=!0;for(;o!==null&&(o=Wf(o,!0))!==null;)if((o.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:Re(n)}}function Wf(t,e){let n=t;for(;;){let o;for(;(o=e?n.nextSibling:n.previousSibling)===null;){const i=n.parentElement;if(i===null)return null;n=i}if(n=o,je(n)){const i=n.style.display;if(i===""&&!md(n)||i!==""&&!i.startsWith("inline"))return null}let r=n;for(;(r=e?n.firstChild:n.lastChild)!==null;)n=r;if(Fn(n))return n;if(n.nodeName==="BR")return null}}const X9={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Rn(t){const e=X9[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:qc(t.style,e),node:null}}function Re(t=""){return on(new lo(t))}function X(t){return t instanceof lo}function qc(t,e){const n=t.fontWeight,o=t.textDecoration.split(" "),r=n==="700"||n==="bold",i=o.includes("line-through"),s=t.fontStyle==="italic",l=o.includes("underline"),c=t.verticalAlign;return d=>(X(d)&&(r&&!d.hasFormat("bold")&&d.toggleFormat("bold"),i&&!d.hasFormat("strikethrough")&&d.toggleFormat("strikethrough"),s&&!d.hasFormat("italic")&&d.toggleFormat("italic"),l&&!d.hasFormat("underline")&&d.toggleFormat("underline"),c!=="sub"||d.hasFormat("subscript")||d.toggleFormat("subscript"),c!=="super"||d.hasFormat("superscript")||d.toggleFormat("superscript"),e&&!d.hasFormat(e)&&d.toggleFormat(e)),d)}class Va extends lo{static getType(){return"tab"}static clone(e){return new Va(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Ir(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Br().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&P1(126),super.setTextContent(" ")}spliceText(e,n,o,r){return o===""&&n===0||o===" "&&n===1||Z(286),this}setDetail(e){return e!==2&&Z(127),this}setMode(e){return e!=="normal"&&Z(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Br(){return on(new Va)}function ws(t){return t instanceof Va}class Q9{constructor(e,n,o){j(this,"key");j(this,"offset");j(this,"type");j(this,"_selection");this._selection=null,this.key=e,this.offset=n,this.type=o}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:Wm(Gt(qn(this,"next")),Gt(qn(e,"next")))<0}getNode(){const e=He(this.key);return e===null&&Z(20),e}set(e,n,o,r){const i=this._selection,s=this.key;r&&this.key===e&&this.offset===n&&this.type===o||(this.key=e,this.offset=n,this.type=o,Fa()||(uo()===s&&tt(e),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}}function Cn(t,e,n){return new Q9(t,e,n)}function jc(t,e){let n=e.__key,o=t.offset,r="element";if(X(e)){r="text";const i=e.getTextContentSize();o>i&&(o=i)}else if(!V(e)){const i=e.getNextSibling();if(X(i))n=i.__key,o=0,r="text";else{const s=e.getParent();s&&(n=s.__key,o=e.getIndexWithinParent()+1)}}t.set(n,o,r)}function Zf(t,e){if(V(e)){const n=e.getLastDescendant();V(n)||X(n)?jc(t,n):jc(t,e)}else jc(t,e)}class ks{constructor(e){j(this,"_nodes");j(this,"_cachedNodes");j(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!At(e))return!1;const n=this._nodes,o=e._nodes;return n.size===o.size&&Array.from(n).every(r=>o.has(r))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new ks(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),o=n.length,r=n[o-1];let i;if(X(r))i=r.select();else{const s=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(s,s)}i.insertNodes(e);for(let s=0;s<o;s++)n[s].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this._nodes,o=[];for(const r of n){const i=He(r);i!==null&&o.push(i)}return Fa()||(this._cachedNodes=o),o}getTextContent(){const e=this.getNodes();let n="";for(let o=0;o<e.length;o++)n+=e[o].getTextContent();return n}deleteNodes(){const e=this.getNodes();if((te()||Lr())===this&&e[0]){const n=nt(e[0],"next");L6(mo(n,n))}for(const n of e)n.remove()}}function H(t){return t instanceof Po}class Po{constructor(e,n,o,r){j(this,"format");j(this,"style");j(this,"anchor");j(this,"focus");j(this,"_cachedNodes");j(this,"dirty");this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=o,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!H(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=function(o){const r=[],[i,s]=o.getTextSlices();i&&r.push(i.caret.origin);const l=new Set,c=new Set;for(const d of o)if(wn(d)){const{origin:u}=d;r.length===0?l.add(u):(c.add(u),r.push(u))}else{const{origin:u}=d;V(u)&&c.has(u)||r.push(u)}if(s&&r.push(s.caret.origin),Vr(o.focus)&&V(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let d=an(o.focus.origin,"previous");wn(d)&&l.has(d.origin)&&!d.origin.isEmpty()&&d.origin.is(r[r.length-1]);d=_d(d))l.delete(d.origin),r.pop();for(;r.length>1;){const d=r[r.length-1];if(!V(d)||c.has(d)||d.isEmpty()||l.has(d))break;r.pop()}if(r.length===0&&o.isCollapsed()){const d=Gt(o.anchor),u=Gt(o.anchor.getFlipped()),p=m=>po(m)?m.origin:m.getNodeAtCaret(),f=p(d)||p(u)||(o.anchor.getNodeAtCaret()?d.origin:u.origin);r.push(f)}return r}(Xm(Km(this),"next"));return Fa()||(this._cachedNodes=n),n}setTextNodeRange(e,n,o,r){this.anchor.set(e.__key,n,"text"),this.focus.set(o.__key,r,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],o=e[e.length-1],r=this.anchor,i=this.focus,s=r.isBefore(i),[l,c]=Uc(this);let d="",u=!0;for(let p=0;p<e.length;p++){const f=e[p];if(V(f)&&!f.isInline())u||(d+=`
27
+ `?r.push(nn()):l===" "?r.push(Br()):l!==""&&r.push(Re(l))}return{node:r}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let o=e,r=!0;for(;o!==null&&(o=Wf(o,!1))!==null;){const i=o.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===" "){let o=e,r=!0;for(;o!==null&&(o=Wf(o,!0))!==null;)if((o.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:Re(n)}}function Wf(t,e){let n=t;for(;;){let o;for(;(o=e?n.nextSibling:n.previousSibling)===null;){const i=n.parentElement;if(i===null)return null;n=i}if(n=o,je(n)){const i=n.style.display;if(i===""&&!md(n)||i!==""&&!i.startsWith("inline"))return null}let r=n;for(;(r=e?n.firstChild:n.lastChild)!==null;)n=r;if(Fn(n))return n;if(n.nodeName==="BR")return null}}const X9={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Rn(t){const e=X9[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:qc(t.style,e),node:null}}function Re(t=""){return on(new lo(t))}function X(t){return t instanceof lo}function qc(t,e){const n=t.fontWeight,o=t.textDecoration.split(" "),r=n==="700"||n==="bold",i=o.includes("line-through"),s=t.fontStyle==="italic",l=o.includes("underline"),c=t.verticalAlign;return d=>(X(d)&&(r&&!d.hasFormat("bold")&&d.toggleFormat("bold"),i&&!d.hasFormat("strikethrough")&&d.toggleFormat("strikethrough"),s&&!d.hasFormat("italic")&&d.toggleFormat("italic"),l&&!d.hasFormat("underline")&&d.toggleFormat("underline"),c!=="sub"||d.hasFormat("subscript")||d.toggleFormat("subscript"),c!=="super"||d.hasFormat("superscript")||d.toggleFormat("superscript"),e&&!d.hasFormat(e)&&d.toggleFormat(e)),d)}class Va extends lo{static getType(){return"tab"}static clone(e){return new Va(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Ir(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Br().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&P1(126),super.setTextContent(" ")}spliceText(e,n,o,r){return o===""&&n===0||o===" "&&n===1||Z(286),this}setDetail(e){return e!==2&&Z(127),this}setMode(e){return e!=="normal"&&Z(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Br(){return on(new Va)}function ws(t){return t instanceof Va}class Q9{constructor(e,n,o){j(this,"key");j(this,"offset");j(this,"type");j(this,"_selection");this._selection=null,this.key=e,this.offset=n,this.type=o}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:Wm(Gt(qn(this,"next")),Gt(qn(e,"next")))<0}getNode(){const e=He(this.key);return e===null&&Z(20),e}set(e,n,o,r){const i=this._selection,s=this.key;r&&this.key===e&&this.offset===n&&this.type===o||(this.key=e,this.offset=n,this.type=o,Fa()||(uo()===s&&tt(e),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}}function Cn(t,e,n){return new Q9(t,e,n)}function jc(t,e){let n=e.__key,o=t.offset,r="element";if(X(e)){r="text";const i=e.getTextContentSize();o>i&&(o=i)}else if(!V(e)){const i=e.getNextSibling();if(X(i))n=i.__key,o=0,r="text";else{const s=e.getParent();s&&(n=s.__key,o=e.getIndexWithinParent()+1)}}t.set(n,o,r)}function Zf(t,e){if(V(e)){const n=e.getLastDescendant();V(n)||X(n)?jc(t,n):jc(t,e)}else jc(t,e)}class ks{constructor(e){j(this,"_nodes");j(this,"_cachedNodes");j(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!At(e))return!1;const n=this._nodes,o=e._nodes;return n.size===o.size&&Array.from(n).every(r=>o.has(r))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new ks(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),o=n.length,r=n[o-1];let i;if(X(r))i=r.select();else{const s=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(s,s)}i.insertNodes(e);for(let s=0;s<o;s++)n[s].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this._nodes,o=[];for(const r of n){const i=He(r);i!==null&&o.push(i)}return Fa()||(this._cachedNodes=o),o}getTextContent(){const e=this.getNodes();let n="";for(let o=0;o<e.length;o++)n+=e[o].getTextContent();return n}deleteNodes(){const e=this.getNodes();if((te()||Lr())===this&&e[0]){const n=nt(e[0],"next");L6(mo(n,n))}for(const n of e)n.remove()}}function H(t){return t instanceof Po}class Po{constructor(e,n,o,r){j(this,"format");j(this,"style");j(this,"anchor");j(this,"focus");j(this,"_cachedNodes");j(this,"dirty");this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=o,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!H(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=function(o){const r=[],[i,s]=o.getTextSlices();i&&r.push(i.caret.origin);const l=new Set,c=new Set;for(const d of o)if(wn(d)){const{origin:u}=d;r.length===0?l.add(u):(c.add(u),r.push(u))}else{const{origin:u}=d;V(u)&&c.has(u)||r.push(u)}if(s&&r.push(s.caret.origin),Vr(o.focus)&&V(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let d=an(o.focus.origin,"previous");wn(d)&&l.has(d.origin)&&!d.origin.isEmpty()&&d.origin.is(r[r.length-1]);d=yd(d))l.delete(d.origin),r.pop();for(;r.length>1;){const d=r[r.length-1];if(!V(d)||c.has(d)||d.isEmpty()||l.has(d))break;r.pop()}if(r.length===0&&o.isCollapsed()){const d=Gt(o.anchor),u=Gt(o.anchor.getFlipped()),p=m=>po(m)?m.origin:m.getNodeAtCaret(),f=p(d)||p(u)||(o.anchor.getNodeAtCaret()?d.origin:u.origin);r.push(f)}return r}(Xm(Km(this),"next"));return Fa()||(this._cachedNodes=n),n}setTextNodeRange(e,n,o,r){this.anchor.set(e.__key,n,"text"),this.focus.set(o.__key,r,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],o=e[e.length-1],r=this.anchor,i=this.focus,s=r.isBefore(i),[l,c]=Uc(this);let d="",u=!0;for(let p=0;p<e.length;p++){const f=e[p];if(V(f)&&!f.isInline())u||(d+=`
28
28
  `),u=!f.isEmpty();else if(u=!1,X(f)){let m=f.getTextContent();f===n?f===o?r.type==="element"&&i.type==="element"&&i.offset!==r.offset||(m=l<c?m.slice(l,c):m.slice(c,l)):m=s?m.slice(l):m.slice(c):f===o&&(m=s?m.slice(0,c):m.slice(0,l)),d+=m}else!ve(f)&&!so(f)||f===o&&this.isCollapsed()||(d+=f.getTextContent())}return d}applyDOMRange(e){const n=Me(),o=n.getEditorState()._selection,r=em(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,o);if(r===null)return;const[i,s]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),as(this)}clone(){const e=this.anchor,n=this.focus;return new Po(Cn(e.key,e.offset,e.type),Cn(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=Bs(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const n=dt[e];return(this.format&n)!==0}insertRawText(e){const n=e.split(/(\r?\n|\t)/),o=[],r=n.length;for(let i=0;i<r;i++){const s=n[i];s===`
29
29
  `||s===`\r
30
- `?o.push(nn()):s===" "?o.push(Br()):o.push(Re(s))}this.insertNodes(o)}insertText(e){const n=this.anchor,o=this.focus,r=this.format,i=this.style;let s=n,l=o;!this.isCollapsed()&&o.isBefore(n)&&(s=o,l=n),s.type==="element"&&function(v,y,_,b){const k=v.getNode(),w=k.getChildAtIndex(v.offset),C=Re();if(C.setFormat(_),C.setStyle(b),Ha(w))w.splice(0,0,[C]);else{const x=qe(k)?Be().append(C):C;w===null?k.append(x):w.insertBefore(x)}v.is(y)&&y.set(C.__key,0,"text"),v.set(C.__key,0,"text")}(s,l,r,i),l.type==="element"&&Wo(l,Gt(qn(l,"next")));const c=s.offset;let d=l.offset;const u=this.getNodes(),p=u.length;let f=u[0];X(f)||Z(26);const m=f.getTextContent().length,h=f.getParentOrThrow();let g=u[p-1];if(p===1&&l.type==="element"&&(d=m,l.set(s.key,d,"text")),this.isCollapsed()&&c===m&&(Vn(f)||!f.canInsertTextAfter()||!h.canInsertTextAfter()&&f.getNextSibling()===null)){let v=f.getNextSibling();if(X(v)&&v.canInsertTextBefore()&&!Vn(v)||(v=Re(),v.setFormat(r),v.setStyle(i),h.canInsertTextAfter()?f.insertAfter(v):h.insertAfter(v)),v.select(0,0),f=v,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(Vn(f)||!f.canInsertTextBefore()||!h.canInsertTextBefore()&&f.getPreviousSibling()===null)){let v=f.getPreviousSibling();if(X(v)&&!Vn(v)||(v=Re(),v.setFormat(r),h.canInsertTextBefore()?f.insertBefore(v):h.insertBefore(v)),v.select(),f=v,e!=="")return void this.insertText(e)}else if(f.isSegmented()&&c!==m){const v=Re(f.getTextContent());v.setFormat(r),f.replace(v),f=v}else if(!this.isCollapsed()&&e!==""){const v=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||V(v)&&(!v.canInsertTextBefore()||!v.canInsertTextAfter()))return this.insertText(""),Qf(this.anchor,this.focus,null),void this.insertText(e)}if(p===1){if(Fo(f)){const b=Re(e);return b.select(),void f.replace(b)}const v=f.getFormat(),y=f.getStyle();if(c!==d||v===r&&y===i){if(ws(f)){const b=Re(e);return b.setFormat(r),b.setStyle(i),b.select(),void f.replace(b)}}else{if(f.getTextContent()!==""){const b=Re(e);if(b.setFormat(r),b.setStyle(i),b.select(),c===0)f.insertBefore(b,!1);else{const[k]=f.splitText(c);k.insertAfter(b,!1)}return void(b.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}f.setFormat(r),f.setStyle(i)}const _=d-c;f=f.spliceText(c,_,e,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=v,this.style=y))}else{const v=new Set([...f.getParentKeys(),...g.getParentKeys()]),y=V(f)?f:f.getParentOrThrow();let _=V(g)?g:g.getParentOrThrow(),b=g;if(!y.is(_)&&_.isInline())do b=_,_=_.getParentOrThrow();while(_.isInline());if(l.type==="text"&&(d!==0||g.getTextContent()==="")||l.type==="element"&&g.getIndexWithinParent()<d)if(X(g)&&!Fo(g)&&d!==g.getTextContentSize()){if(g.isSegmented()){const S=Re(g.getTextContent());g.replace(S),g=S}qe(l.getNode())||l.type!=="text"||(g=g.spliceText(0,d,"")),v.add(g.__key)}else{const S=g.getParentOrThrow();S.canBeEmpty()||S.getChildrenSize()!==1?g.remove():S.remove()}else v.add(g.__key);const k=_.getChildren(),w=new Set(u),C=y.is(_),x=y.isInline()&&f.getNextSibling()===null?y:f;for(let S=k.length-1;S>=0;S--){const T=k[S];if(T.is(f)||V(T)&&T.isParentOf(f))break;T.isAttached()&&(!w.has(T)||T.is(b)?C||x.insertAfter(T,!1):T.remove())}if(!C){let S=_,T=null;for(;S!==null;){const A=S.getChildren(),z=A.length;(z===0||A[z-1].is(T))&&(v.delete(S.__key),T=S),S=S.getParent()}}if(Fo(f))if(c===m)f.select();else{const S=Re(e);S.select(),f.replace(S)}else f=f.spliceText(c,m-c,e,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let S=1;S<p;S++){const T=u[S],A=T.__key;v.has(A)||T.remove()}}}removeText(){const e=te()===this;zs(this,M6(Km(this))),e&&te()!==this&&st(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void tt(null);const o=this.getNodes(),r=[];for(const k of o)X(k)&&r.push(k);const i=k=>{o.forEach(w=>{if(V(w)){const C=w.getFormatFlags(e,k);w.setTextFormat(C)}})},s=r.length;if(s===0)return this.toggleFormat(e),tt(null),void i(n);const l=this.anchor,c=this.focus,d=this.isBackward(),u=d?c:l,p=d?l:c;let f=0,m=r[0],h=u.type==="element"?0:u.offset;if(u.type==="text"&&h===m.getTextContentSize()&&(f=1,m=r[1],h=0),m==null)return;const g=m.getFormatFlags(e,n);i(g);const v=s-1;let y=r[v];const _=p.type==="text"?p.offset:y.getTextContentSize();if(m.is(y)){if(h===_)return;if(Vn(m)||h===0&&_===m.getTextContentSize())m.setFormat(g);else{const k=m.splitText(h,_),w=h===0?k[0]:k[1];w.setFormat(g),u.type==="text"&&u.set(w.__key,0,"text"),p.type==="text"&&p.set(w.__key,_-h,"text")}return void(this.format=g)}h===0||Vn(m)||([,m]=m.splitText(h),h=0),m.setFormat(g);const b=y.getFormatFlags(e,g);_>0&&(_===y.getTextContentSize()||Vn(y)||([y]=y.splitText(_)),y.setFormat(b));for(let k=f+1;k<v;k++){const w=r[k],C=w.getFormatFlags(e,b);w.setFormat(C)}u.type==="text"&&u.set(m.__key,h,"text"),p.type==="text"&&p.set(y.__key,_,"text"),this.format=g|b}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=te();return H(h)||Z(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=Zt(n,Wt),r=e[e.length-1];if(V(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Zc(this);o.splice(h,0,e),r.selectEnd()}return}if(!e.some(h=>(V(h)||ve(h))&&!h.isInline())){V(o)||Z(211,n.constructor.name,n.getType());const h=Zc(this);return o.splice(h,0,e),void r.selectEnd()}const i=function(h){const g=Be();let v=null;for(let y=0;y<h.length;y++){const _=h[y],b=so(_);if(b||ve(_)&&_.isInline()||V(_)&&_.isInline()||X(_)||_.isParentRequired()){if(v===null&&(v=_.createParentElementNode(),g.append(v),b))continue;v!==null&&v.append(_)}else g.append(_),v=null}return g}(e),s=i.getLastDescendant(),l=i.getChildren(),c=!V(o)||!o.isEmpty()?this.insertParagraph():null,d=l[l.length-1];let u=l[0];var p;V(p=u)&&Wt(p)&&!p.isEmpty()&&V(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(V(o)||Z(211,n.constructor.name,n.getType()),o.append(...u.getChildren()),u=l[1]),u&&(o===null&&Z(212,n.constructor.name,n.getType()),function(h,g){const v=g.getParentOrThrow().getLastChild();let y=g;const _=[g];for(;y!==v;)y.getNextSibling()||Z(140),y=y.getNextSibling(),_.push(y);let b=h;for(const k of _)b=b.insertAfter(k)}(o,u));const f=Zt(s,Wt);c&&V(f)&&(c.canMergeWhenEmpty()||Wt(d))&&(f.append(...c.getChildren()),c.remove()),V(o)&&o.isEmpty()&&o.remove(),s.selectEnd();const m=V(o)?o.getLastChild():null;so(m)&&f!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Be();return $e().splice(this.anchor.offset,0,[s]),s.select(),s}const e=Zc(this),n=Zt(this.anchor.getNode(),Wt);V(n)||Z(213);const o=n.getChildAtIndex(e),r=o?[o,...o.getNextSiblings()]:[],i=n.insertNewAfter(this,!1);return i?(i.append(...r),i.selectStart(),i):null}insertLineBreak(e){const n=nn();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),r=n.getIndexWithinParent();o.select(r,r)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],r=e[n-1];const[i,s]=Uc(this),l=this.isBackward(),[c,d]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[u,p]=l?[s,i]:[i,s];if(n===0)return[];if(n===1){if(X(o)&&!this.isCollapsed()){const f=o.splitText(u,p),m=u===0?f[0]:f[1];return m?(c.set(m.getKey(),0,"text"),d.set(m.getKey(),m.getTextContentSize(),"text"),[m]):[]}return[o]}if(X(o)&&(u===o.getTextContentSize()?e.shift():u!==0&&([,o]=o.splitText(u),e[0]=o,c.set(o.getKey(),0,"text"))),X(r)){const f=r.getTextContent().length;p===0?e.pop():p!==f&&([r]=r.splitText(p),e[e.length-1]=r,d.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,n,o){if(im(this,e,n,o))return;const r=e==="move",i=Me(),s=rn(Ht(i));if(!s)return;const l=i._blockCursorElement,c=i._rootElement,d=this.focus.getNode();if(c===null||l===null||!V(d)||d.isInline()||d.canBeEmpty()||pd(l,i,c),this.dirty){let u=qo(i,this.anchor.key),p=qo(i,this.focus.key);this.anchor.type==="text"&&(u=Mr(u)),this.focus.type==="text"&&(p=Mr(p)),u&&p&&am(s,u,this.anchor.offset,p,this.focus.offset)}if(function(u,p,f,m){u.modify(p,f,m)}(s,e,n?"backward":"forward",o),s.rangeCount>0){const u=s.getRangeAt(0),p=this.anchor.getNode(),f=qe(p)?p:b6(p);if(this.applyDOMRange(u),this.dirty=!0,!r){const m=this.getNodes(),h=[];let g=!1;for(let v=0;v<m.length;v++){const y=m[v];ld(y,f)?h.push(y):g=!0}if(g&&h.length>0)if(n){const v=h[0];V(v)?v.selectStart():v.getParentOrThrow().selectStart()}else{const v=h[h.length-1];V(v)?v.selectEnd():v.getParentOrThrow().selectEnd()}s.anchorNode===u.startContainer&&s.anchorOffset===u.startOffset||function(v){const y=v.focus,_=v.anchor,b=_.key,k=_.offset,w=_.type;_.set(y.key,y.offset,y.type,!0),y.set(b,k,w,!0)}(this)}}o==="lineboundary"&&im(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&V(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const r=n.getParent(),i=n.getNextSibling()||(r===null?null:r.getNextSibling());if(V(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const o=this.anchor;let r=o.getNode();if(this.forwardDeletion(o,r,e))return;const i=vd(qn(o,e?"previous":"next"));if(i.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const c of i.iterNodeCarets("shadowRoot"))if(wn(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(V(i.anchor.origin)&&i.anchor.origin.isEmpty()){const d=Gt(c);zs(this,mo(d,d)),i.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:c,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Vr(c)){if(V(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(i.anchor.origin))break}else l={block:c.origin,type:"merge-next-block"};continue}if(ve(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&V(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const d=nm();d.add(c.origin.getKey()),st(d)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:d}=l;return zs(this,mo(!c.origin.isEmpty()&&d.isEmpty()?Cd(nt(d,c.direction)):i.anchor,c)),this.removeText()}}const s=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&o.offset===0&&Kf(this,o.getNode()))return}else{const l=s.type==="text"?s.getNode():null;if(r=o.type==="text"?o.getNode():null,l!==null&&l.isSegmented()){const c=s.offset,d=l.getTextContentSize();if(l.is(r)||e&&c!==d||!e&&c!==0)return void Yf(l,e,c)}else if(r!==null&&r.isSegmented()){const c=o.offset,d=r.getTextContentSize();if(r.is(l)||e&&c!==0||!e&&c!==d)return void Yf(r,e,c)}(function(c,d){const u=c.anchor,p=c.focus,f=u.getNode(),m=p.getNode();if(f===m&&u.type==="text"&&p.type==="text"){const h=u.offset,g=p.offset,v=h<g,y=v?h:g,_=v?g:h,b=_-1;y!==b&&function(k){return!(Dm(k)||e6(k))}(f.getTextContent().slice(y,_))&&(d?p.set(p.key,b,p.type):u.set(u.key,b,u.type))}})(this,e)}}if(this.removeText(),e&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const o=this.anchor.getNode();o.isEmpty()&&qe(o.getParent())&&o.getPreviousSibling()===null&&Kf(this,o)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const n=this.anchor,o=n.getNode();if(this.forwardDeletion(n,o,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function At(t){return t instanceof ks}function Gf(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Uc(t){const e=t.getStartEndPoints();if(e===null)return[0,0];const[n,o]=e;return n.type==="element"&&o.type==="element"&&n.key===o.key&&n.offset===o.offset?[0,0]:[Gf(n),Gf(o)]}function Kf(t,e){for(let n=e;n;n=n.getParent()){if(V(n)){if(n.collapseAtStart(t))return!0;if(ut(n))break}if(n.getPreviousSibling())break}return!1}const e6=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function Yf(t,e,n){const o=t,r=o.getTextContent().split(/(?=\s)/g),i=r.length;let s=0,l=0;for(let d=0;d<i;d++){const u=d===i-1;if(l=s,s+=r[d].length,e&&s===n||s>n||u){r.splice(d,1),u&&(l=void 0);break}}const c=r.join("").trim();c===""?o.remove():(o.setTextContent(c),o.select(l,l))}function Jf(t,e,n,o){let r,i=e;if(je(t)){let s=!1;const l=t.childNodes,c=l.length,d=o._blockCursorElement;i===c&&(s=!0,i=c-1);let u=l[i],p=!1;if(u===d)u=l[i+1],p=!0;else if(d!==null){const f=d.parentNode;t===f&&e>Array.prototype.indexOf.call(f.children,d)&&i--}if(r=Or(u),X(r))i=fo(r,s?"next":"previous");else{let f=Or(t);if(f===null)return null;if(V(f)){const m=o.getElementByKey(f.getKey());m===null&&Z(214),[f,i]=f.getDOMSlot(m).resolveChildIndex(f,m,t,e),V(f)||Z(215),s&&i>=f.getChildrenSize()&&(i=Math.max(0,f.getChildrenSize()-1));let g=f.getChildAtIndex(i);if(V(g)&&function(v,y,_){const b=v.getParent();return _===null||b===null||!b.canBeEmpty()||b!==_.getNode()}(g,0,n)){const v=s?g.getLastDescendant():g.getFirstDescendant();v===null?f=g:(g=v,f=V(g)?g:g.getParentOrThrow()),i=0}X(g)?(r=g,f=null,i=fo(g,s?"next":"previous")):g!==f&&s&&!p&&(V(f)||Z(216),i=Math.min(f.getChildrenSize(),i+1))}else{const m=f.getIndexWithinParent();i=e===0&&ve(f)&&Or(t)===f?m:m+1,f=f.getParentOrThrow()}if(V(f))return Cn(f.__key,i,"element")}}else r=Or(t);return X(r)?Cn(r.__key,fo(r,i,"clamp"),"text"):null}function Xf(t,e,n){const o=t.offset,r=t.getNode();if(o===0){const i=r.getPreviousSibling(),s=r.getParent();if(e){if((n||!e)&&i===null&&V(s)&&s.isInline()){const l=s.getPreviousSibling();X(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else V(i)&&!n&&i.isInline()?t.set(i.__key,i.getChildrenSize(),"element"):X(i)&&t.set(i.__key,i.getTextContent().length,"text")}else if(o===r.getTextContent().length){const i=r.getNextSibling(),s=r.getParent();if(e&&V(i)&&i.isInline())t.set(i.__key,0,"element");else if((n||e)&&i===null&&V(s)&&s.isInline()&&!s.canInsertTextAfter()){const l=s.getNextSibling();X(l)&&t.set(l.__key,0,"text")}}}function Qf(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),r=t.is(e);Xf(t,o,r),Xf(e,!o,r),r&&e.set(t.key,t.offset,t.type);const i=Me();if(i.isComposing()&&i._compositionKey!==t.key&&H(n)){const s=n.anchor,l=n.focus;t.set(s.key,s.offset,s.type,!0),e.set(l.key,l.offset,l.type,!0)}}}function em(t,e,n,o,r,i){if(t===null||n===null||!Za(r,t,n))return null;const s=Jf(t,e,H(i)?i.anchor:null,r);if(s===null)return null;const l=Jf(n,o,H(i)?i.focus:null,r);if(l===null)return null;if(s.type==="element"&&l.type==="element"){const c=Or(t),d=Or(n);if(ve(c)&&ve(d))return null}return Qf(s,l,i),[s,l]}function Hc(t){return V(t)&&!t.isInline()}function tm(t,e,n,o,r,i){const s=co(),l=new Po(Cn(t,e,r),Cn(n,o,i),0,"");return l.dirty=!0,s._selection=l,l}function xs(){const t=Cn("root",0,"element"),e=Cn("root",0,"element");return new Po(t,e,0,"")}function nm(){return new ks(new Set)}function Wc(t,e,n,o){const r=n._window;if(r===null)return null;const i=o||r.event,s=i?i.type:void 0,l=s==="selectionchange",c=!hc&&(l||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let d,u,p,f;if(H(t)&&!c)return t.clone();if(e===null)return null;if(d=e.anchorNode,u=e.focusNode,p=e.anchorOffset,f=e.focusOffset,(l||s===void 0)&&H(t)&&!Za(n,d,u))return t.clone();const m=em(d,p,u,f,n,t);if(m===null)return null;const[h,g]=m;return new Po(h,g,H(t)?t.format:0,H(t)?t.style:"")}function te(){return co()._selection}function Lr(){return Me()._editorState._selection}function Es(t,e,n,o=1){const r=t.anchor,i=t.focus,s=r.getNode(),l=i.getNode();if(!e.is(s)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const d=r.offset;if(n<=d&&o>0||n<d&&o<0){const u=Math.max(0,d+o);r.set(c,u,"element"),i.set(c,u,"element"),om(t)}}else{const d=t.isBackward(),u=d?i:r,p=u.getNode(),f=d?r:i,m=f.getNode();if(e.is(p)){const h=u.offset;(n<=h&&o>0||n<h&&o<0)&&u.set(c,Math.max(0,h+o),"element")}if(e.is(m)){const h=f.offset;(n<=h&&o>0||n<h&&o<0)&&f.set(c,Math.max(0,h+o),"element")}}om(t)}function om(t){const e=t.anchor,n=e.offset,o=t.focus,r=o.offset,i=e.getNode(),s=o.getNode();if(t.isCollapsed()){if(!V(i))return;const l=i.getChildrenSize(),c=n>=l,d=c?i.getChildAtIndex(l-1):i.getChildAtIndex(n);if(X(d)){let u=0;c&&(u=d.getTextContentSize()),e.set(d.__key,u,"text"),o.set(d.__key,u,"text")}return}if(V(i)){const l=i.getChildrenSize(),c=n>=l,d=c?i.getChildAtIndex(l-1):i.getChildAtIndex(n);if(X(d)){let u=0;c&&(u=d.getTextContentSize()),e.set(d.__key,u,"text")}}if(V(s)){const l=s.getChildrenSize(),c=r>=l,d=c?s.getChildAtIndex(l-1):s.getChildAtIndex(r);if(X(d)){let u=0;c&&(u=d.getTextContentSize()),o.set(d.__key,u,"text")}}}function Ss(t,e,n,o,r){let i=null,s=0,l=null;o!==null?(i=o.__key,X(o)?(s=o.getTextContentSize(),l="text"):V(o)&&(s=o.getChildrenSize(),l="element")):r!==null&&(i=r.__key,X(r)?l="text":V(r)&&(l="element")),i!==null&&l!==null?t.set(i,s,l):(s=e.getIndexWithinParent(),s===-1&&(s=n.getChildrenSize()),t.set(n.__key,s,"element"))}function rm(t,e,n,o,r){t.type==="text"?t.set(n,t.offset+(e?0:r),"text"):t.offset>o.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function am(t,e,n,o,r){try{t.setBaseAndExtent(e,n,o,r)}catch{}}function t6(t,e,n,o,r,i,s){const l=o.anchorNode,c=o.focusNode,d=o.anchorOffset,u=o.focusOffset,p=document.activeElement;if(r.has(zf)&&p!==i||p!==null&&td(p))return;if(!H(e))return void(t!==null&&Za(n,l,c)&&o.removeAllRanges());const f=e.anchor,m=e.focus,h=f.key,g=m.key,v=qo(n,h),y=qo(n,g),_=f.offset,b=m.offset,k=e.format,w=e.style,C=e.isCollapsed();let x=v,S=y,T=!1;if(f.type==="text"){x=Mr(v);const I=f.getNode();T=I.getFormat()!==k||I.getStyle()!==w}else H(t)&&t.anchor.type==="text"&&(T=!0);var A,z,O,B,L;if(m.type==="text"&&(S=Mr(y)),x!==null&&S!==null&&(C&&(t===null||T||H(t)&&(t.format!==k||t.style!==w))&&(A=k,z=w,O=_,B=h,L=performance.now(),Nf=[A,z,O,B,L]),d!==_||u!==b||l!==x||c!==S||o.type==="Range"&&C||(p!==null&&i.contains(p)||r.has(W9)||i.focus({preventScroll:!0}),f.type==="element"))){if(am(o,x,_,S,b),!r.has(U9)&&e.isCollapsed()&&i!==null&&i===document.activeElement){const I=H(e)&&e.anchor.type==="element"?x.childNodes[_]||null:o.rangeCount>0?o.getRangeAt(0):null;if(I!==null){let P;if(I instanceof Text){const G=document.createRange();G.selectNode(I),P=G.getBoundingClientRect()}else P=I.getBoundingClientRect();(function(G,R,D){const K=Vm(D),F=cd(K);if(K===null||F===null)return;let{top:U,bottom:ce}=R,ee=0,ae=0,q=D;for(;q!==null;){const ne=q===K.body;if(ne)ee=0,ae=Ht(G).innerHeight;else{const Y=q.getBoundingClientRect();ee=Y.top,ae=Y.bottom}let $=0;if(U<ee?$=-(ee-U):ce>ae&&($=ce-ae),$!==0)if(ne)F.scrollBy(0,$);else{const Y=q.scrollTop;q.scrollTop+=$;const be=q.scrollTop-Y;U-=be,ce-=be}if(ne)break;q=Ga(q)}})(n,P,i)}}Oc=!0}}function n6(t){let e=te()||Lr();e===null&&(e=$e().selectEnd()),e.insertNodes(t)}function Zc(t){let e=t;t.isCollapsed()||e.removeText();const n=te();H(n)&&(e=n),H(e)||Z(161);const o=e.anchor;let r=o.getNode(),i=o.offset;for(;!Wt(r);){const s=r;if([r,i]=o6(r,i),s.is(r))break}return i}function o6(t,e){const n=t.getParent();if(!n){const r=Be();return $e().append(r),r.select(),[$e(),0]}if(X(t)){const r=t.splitText(e);if(r.length===0)return[n,t.getIndexWithinParent()];const i=e===0?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!V(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const r=new Po(Cn(t.__key,e,"element"),Cn(t.__key,e,"element"),0,""),i=t.insertNewAfter(r);i&&i.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function im(t,e,n,o,r="decorators-and-blocks"){if(e==="move"&&o==="character"&&!t.isCollapsed()){const[u,p]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return p.set(u.key,u.offset,u.type),!0}const i=qn(t.focus,n?"previous":"next"),s=o==="lineboundary",l=e==="move";let c=i,d=r==="decorators-and-blocks";if(!Jm(c)){for(const u of c){d=!1;const{origin:p}=u;if(!ve(p)||p.isIsolated()||(c=u,!s||!p.isInline()))break}if(d)for(const u of vd(i).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(wn(u))u.origin.isInline()||(c=u);else{if(V(u.origin))continue;ve(u.origin)&&!u.origin.isInline()&&(c=u)}break}}if(c===i)return!1;if(l&&!s&&ve(c.origin)&&c.origin.isKeyboardSelectable()){const u=nm();return u.add(c.origin.getKey()),st(u),!0}return c=Gt(c),l&&Wo(t.anchor,c),Wo(t.focus,c),d||!s}let Ye=null,Je=null,ht=!1,Gc=!1,Ts=0;const sm={characterData:!0,childList:!0,subtree:!0};function Fa(){return ht||Ye!==null&&Ye._readOnly}function Xe(){ht&&Z(13)}function lm(){Ts>99&&Z(14)}function co(){return Ye===null&&Z(195,cm()),Ye}function Me(){return Je===null&&Z(196,cm()),Je}function cm(){let t=0;const e=new Set,n=Vo.version;if(typeof window<"u")for(const r of document.querySelectorAll("[contenteditable]")){const i=Ds(r);if(nd(i))t++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===n&&(s+=" (separately built, likely a bundler configuration issue)"),e.add(s)}}let o=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(o+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),o}function r6(){return Je}function dm(t,e,n){const o=e.__type,r=Cm(t,o);let i=n.get(o);i===void 0&&(i=Array.from(r.transforms),n.set(o,i));const s=i.length;for(let l=0;l<s&&(i[l](e),e.isAttached());l++);}function um(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function pm(t,e){if(!e)return;const n=t._updateTags;let o=e;Array.isArray(e)||(o=[e]);for(const r of o)n.add(r)}function a6(t){return Kc(t,Me()._nodes)}function Kc(t,e){const n=t.type,o=e.get(n);o===void 0&&Z(17,n);const r=o.klass;t.type!==r.getType()&&Z(18,r.name);const i=r.importJSON(t),s=t.children;if(V(i)&&Array.isArray(s))for(let l=0;l<s.length;l++){const c=Kc(s[l],e);i.append(c)}return i}function fm(t,e,n){const o=Ye,r=ht,i=Je;Ye=e,ht=!0,Je=t;try{return n()}finally{Ye=o,ht=r,Je=i}}function Pn(t,e){const n=t._pendingEditorState,o=t._rootElement,r=t._headless||o===null;if(n===null)return;const i=t._editorState,s=i._selection,l=n._selection,c=t._dirtyType!==0,d=Ye,u=ht,p=Je,f=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!r&&c&&m!==null){Je=t,Ye=n,ht=!1,t._updating=!0;try{const C=t._dirtyType,x=t._dirtyElements,S=t._dirtyLeaves;m.disconnect(),h=T9(i,n,t,C,x,S)}catch(C){if(C instanceof Error&&t._onError(C),Gc)throw C;return vm(t,null,o,n),G1(t),t._dirtyType=2,Gc=!0,Pn(t,i),void(Gc=!1)}finally{m.observe(o,sm),t._updating=f,Ye=d,ht=u,Je=p}}n._readOnly||(n._readOnly=!0);const g=t._dirtyLeaves,v=t._dirtyElements,y=t._normalizedNodes,_=t._updateTags,b=t._deferred;c&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(C,x){const S=C._decorators;let T=C._pendingDecorators||S;const A=x._nodeMap;let z;for(z in T)A.has(z)||(T===S&&(T=Tm(C)),delete T[z])}(t,n);const k=r?null:rn(Ht(t));if(t._editable&&k!==null&&(c||l===null||l.dirty||!l.is(s))&&o!==null&&!_.has(H9)){Je=t,Ye=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const C=t._blockCursorElement;C!==null&&pd(C,t,o),t6(s,l,t,k,_,o)}(function(C,x,S){let T=C._blockCursorElement;if(H(S)&&S.isCollapsed()&&S.anchor.type==="element"&&x.contains(document.activeElement)){const A=S.anchor,z=A.getNode(),O=A.offset;let B=!1,L=null;if(O===z.getChildrenSize())ud(z.getChildAtIndex(O-1))&&(B=!0);else{const I=z.getChildAtIndex(O);if(I!==null&&ud(I)){const P=I.getPreviousSibling();(P===null||ud(P))&&(B=!0,L=C.getElementByKey(I.__key))}}if(B){const I=C.getElementByKey(z.__key);return T===null&&(C._blockCursorElement=T=function(P){const G=P.theme,R=document.createElement("div");R.contentEditable="false",R.setAttribute("data-lexical-cursor","true");let D=G.blockCursor;if(D!==void 0){if(typeof D=="string"){const K=z1(D);D=G.blockCursor=K}D!==void 0&&R.classList.add(...D)}return R}(C._config)),x.style.caretColor="transparent",void(L===null?I.appendChild(T):I.insertBefore(T,L))}}T!==null&&pd(T,C,x)})(t,o,l)}finally{m!==null&&m.observe(o,sm),Je=p,Ye=d}}h!==null&&function(C,x,S,T,A){const z=Array.from(C._listeners.mutation),O=z.length;for(let B=0;B<O;B++){const[L,I]=z[B];for(const P of I){const G=x.get(P);G!==void 0&&L(G,{dirtyLeaves:T,prevEditorState:A,updateTags:S})}}}(t,h,_,g,i),H(l)||l===null||s!==null&&s.is(l)||t.dispatchCommand(pf,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,za("decorator",t,!0,w)),function(C,x,S){const T=Am(x),A=Am(S);T!==A&&za("textcontent",C,!0,A)}(t,e||i,n),za("update",t,!0,{dirtyElements:v,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:y,prevEditorState:e||i,tags:_}),function(C,x){if(C._deferred=[],x.length!==0){const S=C._updating;C._updating=!0;try{for(let T=0;T<x.length;T++)x[T]()}finally{C._updating=S}}}(t,b),function(C){const x=C._updates;if(x.length!==0){const S=x.shift();if(S){const[T,A]=S;As(C,T,A)}}}(t)}function za(t,e,n,...o){const r=e._updating;e._updating=n;try{const i=Array.from(e._listeners[t]);for(let s=0;s<i.length;s++)i[s].apply(null,o)}finally{e._updating=r}}function mm(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const r=n.shift();if(r){const[i,s]=r,l=t._pendingEditorState;let c;s!==void 0&&(c=s.onUpdate,s.skipTransforms&&(o=!0),s.discrete&&(l===null&&Z(191),l._flushSync=!0),c&&t._deferred.push(c),pm(t,s.tag)),l==null?As(t,i,s):i()}}return o}function As(t,e,n){const o=t._updateTags;let r,i=!1,s=!1;n!==void 0&&(r=n.onUpdate,pm(t,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),r&&t._deferred.push(r);const l=t._editorState;let c=t._pendingEditorState,d=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=_m(c||l),d=!0),c._flushSync=s;const u=Ye,p=ht,f=Je,m=t._updating;Ye=c,ht=!1,t._updating=!0,Je=t;const h=t._headless||t.getRootElement()===null;Qc(null);try{d&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(_,b){const k=_.getEditorState()._selection,w=rn(Ht(_));return H(k)||k==null?Wc(k,w,_,b):k.clone()}(t,n&&n.event||null));const v=t._compositionKey;e(),i=mm(t,i),function(_,b){const k=b.getEditorState()._selection,w=_._selection;if(H(w)){const C=w.anchor,x=w.focus;let S;if(C.type==="text"&&(S=C.getNode(),S.selectionTransform(k,w)),x.type==="text"){const T=x.getNode();S!==T&&T.selectionTransform(k,w)}}}(c,t),t._dirtyType!==0&&(i?function(_,b){const k=b._dirtyLeaves,w=_._nodeMap;for(const C of k){const x=w.get(C);X(x)&&x.isAttached()&&x.isSimpleText()&&!x.isUnmergeable()&&rf(x)}}(c,t):function(_,b){const k=b._dirtyLeaves,w=b._dirtyElements,C=_._nodeMap,x=uo(),S=new Map;let T=k,A=T.size,z=w,O=z.size;for(;A>0||O>0;){if(A>0){b._dirtyLeaves=new Set;for(const B of T){const L=C.get(B);X(L)&&L.isAttached()&&L.isSimpleText()&&!L.isUnmergeable()&&rf(L),L!==void 0&&um(L,x)&&dm(b,L,S),k.add(B)}if(T=b._dirtyLeaves,A=T.size,A>0){Ts++;continue}}b._dirtyLeaves=new Set,b._dirtyElements=new Map,z.delete("root")&&z.set("root",!0);for(const B of z){const L=B[0],I=B[1];if(w.set(L,I),!I)continue;const P=C.get(L);P!==void 0&&um(P,x)&&dm(b,P,S)}T=b._dirtyLeaves,A=T.size,z=b._dirtyElements,O=z.size,Ts++}b._dirtyLeaves=k,b._dirtyElements=w}(c,t),mm(t),function(_,b,k,w){const C=_._nodeMap,x=b._nodeMap,S=[];for(const[T]of w){const A=x.get(T);A!==void 0&&(A.isAttached()||(V(A)&&H1(A,T,C,x,S,w),C.has(T)||w.delete(T),S.push(T)))}for(const T of S)x.delete(T);for(const T of k){const A=x.get(T);A===void 0||A.isAttached()||(C.has(T)||k.delete(T),x.delete(T))}}(l,c,t._dirtyLeaves,t._dirtyElements)),v!==t._compositionKey&&(c._flushSync=!0);const y=c._selection;if(H(y)){const _=c._nodeMap,b=y.anchor.key,k=y.focus.key;_.get(b)!==void 0&&_.get(k)!==void 0||Z(19)}else At(y)&&y._nodes.size===0&&(c._selection=null)}catch(v){return v instanceof Error&&t._onError(v),t._pendingEditorState=l,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void Pn(t)}finally{Ye=u,ht=p,Je=f,t._updating=m,Ts=0}t._dirtyType!==0||t._deferred.length>0||function(v,y){const _=y.getEditorState()._selection,b=v._selection;if(b!==null){if(b.dirty||!b.is(_))return!0}else if(_!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,Pn(t)):d&&u6(()=>{Pn(t)}):(c._flushSync=!1,d&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Nt(t,e,n){Je===t&&n===void 0?e():As(t,e,n)}class qa{constructor(e,n,o){j(this,"element");j(this,"before");j(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new qa(this.element,e,this.after)}withAfter(e){return new qa(this.element,this.before,e)}withElement(e){return this.element===e?this:new qa(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&Z(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&Z(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&Z(224),this.element.replaceChild(e,n),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const n=e==="decorator"&&(Ta||Er||Sa);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const n=this.element,o=e.nodeName==="IMG"?e.nextSibling:null;o&&n.removeChild(o),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const n=this.getManagedLineBreak();if(n){if(e===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const o=this.element,r=this.before,i=document.createElement("br");if(o.insertBefore(i,r),e){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",o.insertBefore(s,i),o.__lexicalLineBreak=s}else o.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let n=this.after;n!==null;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,o,r){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,r))]}const i=hm(n,o);i.push(r);const s=hm(n,this.element);let l=e.getIndexWithinParent();for(let c=0;c<s.length;c++){const d=i[c],u=s[c];if(d===void 0||d<u)break;if(d>u){l+=1;break}}return[e.getParentOrThrow(),l]}}function hm(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let r=0;for(let i=o.previousSibling;i!==null;i=i.previousSibling)r++;n.push(r)}return o!==t&&Z(225),n.reverse()}class Dt extends tn{constructor(n){super(n);j(this,"__first");j(this,"__last");j(this,"__size");j(this,"__format");j(this,"__style");j(this,"__indent");j(this,"__dir");j(this,"__textFormat");j(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(n){super.afterCloneFrom(n),this.__key===n.__key&&(this.__first=n.__first,this.__last=n.__last,this.__size=n.__size),this.__indent=n.__indent,this.__format=n.__format,this.__style=n.__style,this.__dir=n.__dir,this.__textFormat=n.__textFormat,this.__textStyle=n.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const n=this.getFormat();return f9[n]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o),o=o.getNextSibling();return n}getChildrenKeys(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o.__key),o=o.getNextSibling();return n}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const n=Me()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),o=this.getParentOrThrow().getLastChild();return o!==null&&o.is(n)}getAllTextNodes(){const n=[];let o=this.getFirstChild();for(;o!==null;){if(X(o)&&n.push(o),V(o)){const r=o.getAllTextNodes();n.push(...r)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;V(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;V(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),r=o.length;if(n>=r){const s=o[r-1];return V(s)&&s.getLastDescendant()||s||null}const i=o[n];return V(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:He(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&Z(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:He(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&Z(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let r,i;if(n<o/2){for(r=this.getFirstChild(),i=0;r!==null&&i<=n;){if(i===n)return r;r=r.getNextSibling(),i++}return null}for(r=this.getLastChild(),i=o-1;r!==null&&i>=n;){if(i===n)return r;r=r.getPreviousSibling(),i--}return null}getTextContent(){let n="";const o=this.getChildren(),r=o.length;for(let i=0;i<r;i++){const s=o[i];n+=s.getTextContent(),V(s)&&i!==r-1&&!s.isInline()&&(n+=io)}return n}getTextContentSize(){let n=0;const o=this.getChildren(),r=o.length;for(let i=0;i<r;i++){const s=o[i];n+=s.getTextContentSize(),V(s)&&i!==r-1&&!s.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const o=j1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=dt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return Bs(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){Xe();const r=te();let i=n,s=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const d=this.getFirstChild();if(X(d)||V(d))return d.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const d=this.getLastChild();if(X(d)||V(d))return d.select()}}i===void 0&&(i=l),s===void 0&&(s=l);const c=this.__key;return H(r)?(r.anchor.set(c,i,"element"),r.focus.set(c,s,"element"),r.dirty=!0,r):tm(c,i,c,s,"element","element")}selectStart(){const n=this.getFirstDescendant();return n?n.selectStart():this.select()}selectEnd(){const n=this.getLastDescendant();return n?n.selectEnd():this.select()}clear(){const n=this.getWritable();return this.getChildren().forEach(o=>o.remove()),n}append(...n){return this.splice(this.getChildrenSize(),0,n)}setDirection(n){const o=this.getWritable();return o.__dir=n,o}setFormat(n){return this.getWritable().__format=n!==""?j1[n]:0,this}setStyle(n){return this.getWritable().__style=n||"",this}setTextFormat(n){const o=this.getWritable();return o.__textFormat=n,o}setTextStyle(n){const o=this.getWritable();return o.__textStyle=n,o}setIndent(n){return this.getWritable().__indent=n,this}splice(n,o,r){_s(this)&&Z(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();n+o<=i||Z(226,String(n),String(o),String(i));const l=s.__key,c=[],d=[],u=this.getChildAtIndex(n+o);let p=null,f=i-o+r.length;if(n!==0)if(n===i)p=this.getLastChild();else{const h=this.getChildAtIndex(n);h!==null&&(p=h.getPreviousSibling())}if(o>0){let h=p===null?this.getFirstChild():p.getNextSibling();for(let g=0;g<o;g++){h===null&&Z(100);const v=h.getNextSibling(),y=h.__key;zo(h.getWritable()),d.push(y),h=v}}let m=p;for(const h of r){m!==null&&h.is(m)&&(p=m=m.getPreviousSibling());const g=h.getWritable();g.__parent===l&&f--,zo(g);const v=h.__key;if(m===null)s.__first=v,g.__prev=null;else{const y=m.getWritable();y.__next=v,g.__prev=y.__key}h.__key===l&&Z(76),g.__parent=l,c.push(v),m=h}if(n+o===i)m!==null&&(m.getWritable().__next=null,s.__last=m.__key);else if(u!==null){const h=u.getWritable();if(m!==null){const g=m.getWritable();h.__prev=m.__key,g.__next=u.__key}else h.__prev=null}if(s.__size=f,d.length){const h=te();if(H(h)){const g=new Set(d),v=new Set(c),{anchor:y,focus:_}=h;gm(y,g,v)&&Ss(y,y.getNode(),this,p,u),gm(_,g,v)&&Ss(_,_.getNode(),this,p,u),f!==0||this.canBeEmpty()||ut(this)||this.remove()}}return s}getDOMSlot(n){return new qa(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(je(o)){const r=this.getIndent();r>0&&(o.style.paddingInlineStart=40*r+"px");const i=this.getDirection();i&&(o.dir=i)}return{element:o}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},o=this.getTextFormat(),r=this.getTextStyle();return o!==0&&(n.textFormat=o),r!==""&&(n.textStyle=r),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,o){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,o,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,o){const r=this.getDOMSlot(n);let i=r.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const l=o.getElementByKey(s.getKey());l!==null&&(i==null?(r.insertChild(l),i=l):i!==l&&r.replaceChild(l,i),i=i.nextSibling)}}}function V(t){return t instanceof Dt}function gm(t,e,n){let o=t.getNode();for(;o;){const r=o.__key;if(e.has(r)&&!n.has(r))return!0;o=o.getParent()}return!1}class bm extends tn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ve(t){return t instanceof bm}class ja extends Dt{constructor(){super("root");j(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new ja}getTopLevelElementOrThrow(){Z(51)}getTextContent(){const n=this.__cachedText;return!Fa()&&Me()._dirtyType!==0||n===null?super.getTextContent():n}remove(){Z(52)}replace(n){Z(53)}insertBefore(n){Z(54)}insertAfter(n){Z(55)}updateDOM(n,o){return!1}splice(n,o,r){for(const i of r)V(i)||ve(i)||Z(282);return super.splice(n,o,r)}static importJSON(n){return $e().updateFromJSON(n)}collapseAtStart(){return!0}}function qe(t){return t instanceof ja}function _m(t){return new Ns(new Map(t._nodeMap))}function Yc(){return new Ns(new Map([["root",new ja]]))}function ym(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&Z(130,n.name),V(t)){const o=e.children;Array.isArray(o)||Z(59,n.name);const r=t.getChildren();for(let i=0;i<r.length;i++){const s=ym(r[i]);o.push(s)}}return e}class Ns{constructor(e,n){j(this,"_nodeMap");j(this,"_selection");j(this,"_flushSync");j(this,"_readOnly");this._nodeMap=e,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,n){return fm(n&&n.editor||null,this,e)}clone(e){const n=new Ns(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return fm(null,this,()=>({root:ym($e())}))}}class Jc extends Dt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class Ua extends Dt{static getType(){return"paragraph"}static clone(e){return new Ua(e.__key)}createDOM(e){const n=document.createElement("p"),o=Ir(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:i6,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(je(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return Be().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=Be();o.setTextFormat(e.format),o.setTextStyle(e.style);const r=this.getDirection();return o.setDirection(r),o.setFormat(this.getFormatType()),o.setStyle(this.getStyle()),this.insertAfter(o,n),o}collapseAtStart(){const e=this.getChildren();if(e.length===0||X(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function i6(t){const e=Be();return t.style&&(e.setFormat(t.style.textAlign),hd(t,e)),{node:e}}function Be(){return on(new Ua)}function Ha(t){return t instanceof Ua}const ye=0,Wa=1,s6=4;function vm(t,e,n,o){const r=t._keyToDOMMap;r.clear(),t._editorState=Yc(),t._pendingEditorState=o,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const i=t._observer;i!==null&&(i.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",r.set("root",n))}function l6(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:r}=Ps(o),i=o.transform;if(!n.has(i)){n.add(i);const s=o.transform();s&&e.add(s)}if(r){const s=r.$transform;s&&e.add(s),o=r.extends}else{const s=Object.getPrototypeOf(o);o=s.prototype instanceof tn&&s!==tn?s:void 0}}return e}function c6(t){const e=t||{},n=r6(),o=e.theme||{},r=t===void 0?n:e.parentEditor||null,i=e.disableEvents||!1,s=Yc(),l=e.namespace||(r!==null?r._config.namespace:Bm()),c=e.editorState,d=[ja,lo,Pa,Va,Ua,Jc,...e.nodes||[]],{onError:u,html:p}=e,f=e.editable===void 0||e.editable;let m;if(t===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let g=0;g<d.length;g++){let v=d[g],y=null,_=null;if(typeof v!="function"){const w=v;v=w.replace,y=w.with,_=w.withKlass||null}Ps(v);const b=v.getType(),k=l6(v);m.set(b,{exportDOM:p&&p.export?p.export.get(v):void 0,klass:v,replace:y,replaceWithKlass:_,sharedNodeState:w9(d[g]),transforms:k})}}const h=new Vo(s,r,m,{disableEvents:i,namespace:l,theme:o},u||console.error,function(g,v){const y=new Map,_=new Set,b=k=>{Object.keys(k).forEach(w=>{let C=y.get(w);C===void 0&&(C=[],y.set(w,C)),C.push(k[w])})};return g.forEach(k=>{const w=k.klass.importDOM;if(w==null||_.has(w))return;_.add(w);const C=w.call(k.klass);C!==null&&b(C)}),v&&b(v),y}(m,p?p.import:void 0),f,t);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),h}class Vo{constructor(e,n,o,r,i,s,l,c){j(this,"_headless");j(this,"_parentEditor");j(this,"_rootElement");j(this,"_editorState");j(this,"_pendingEditorState");j(this,"_compositionKey");j(this,"_deferred");j(this,"_keyToDOMMap");j(this,"_updates");j(this,"_updating");j(this,"_listeners");j(this,"_commands");j(this,"_nodes");j(this,"_decorators");j(this,"_pendingDecorators");j(this,"_config");j(this,"_dirtyType");j(this,"_cloneNotNeeded");j(this,"_dirtyLeaves");j(this,"_dirtyElements");j(this,"_normalizedNodes");j(this,"_updateTags");j(this,"_observer");j(this,"_key");j(this,"_onError");j(this,"_htmlConversions");j(this,"_window");j(this,"_editable");j(this,"_blockCursorElement");j(this,"_createEditorArgs");this._createEditorArgs=c,this._parentEditor=n,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=o,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Bm(),this._onError=i,this._htmlConversions=s,this._editable=l,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){const n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){const n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){const n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){const n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,o){o===void 0&&Z(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const i=r.get(e);i===void 0&&Z(36,String(e));const s=i[o];return s.add(n),()=>{s.delete(n),i.every(l=>l.size===0)&&r.delete(e)}}registerMutationListener(e,n,o){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation;let s=i.get(n);s===void 0&&(s=new Set,i.set(n,s)),s.add(r);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,r),()=>{s.delete(r),s.size===0&&i.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&Z(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,r=qm(o).get(n.getType());if(!r)return;const i=new Map;for(const s of r.keys())i.set(s,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:o,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,n){const o=this.getRegisteredNode(e);return o.transforms.add(n),o}registerNodeTransform(e,n){const o=this.registerNodeTransformToKlass(e,n),r=[o],i=o.replaceWithKlass;if(i!=null){const s=this.registerNodeTransformToKlass(i,n);r.push(s)}return function(s,l){const c=qm(s.getEditorState()),d=[];for(const u of l){const p=c.get(u);p&&d.push(p)}d.length!==0&&s.update(()=>{for(const u of d)for(const p of u.keys()){const f=He(p);f&&f.markDirty()}},s._pendingEditorState===null?{tag:Ra}:void 0)}(this,r.map(s=>s.klass.getType())),()=>{r.forEach(s=>s.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return re(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const n=this._rootElement;if(e!==n){const o=Ir(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,vm(this,n,e,r),n!==null&&(this._config.disableEvents||z9(n),o!=null&&n.classList.remove(...o)),e!==null){const i=cd(e),s=e.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,G1(this),this._updateTags.add(Ra),Pn(this),this._config.disableEvents||function(l,c){const d=l.ownerDocument;$c.set(l,d);const u=hs.get(d)??0;u<1&&d.addEventListener("selectionchange",If),hs.set(d,u+1),l.__lexicalEditor=c;const p=Of(l);for(let f=0;f<Mc.length;f++){const[m,h]=Mc[f],g=typeof h=="function"?v=>{Pf(v)||(Rf(v),(c.isEditable()||m==="click")&&h(v,c))}:v=>{if(Pf(v))return;Rf(v);const y=c.isEditable();switch(m){case"cut":return y&&re(c,Bc,v);case"copy":return re(c,ps,v);case"paste":return y&&re(c,Tc,v);case"dragstart":return y&&re(c,Ef,v);case"dragover":return y&&re(c,Sf,v);case"dragend":return y&&re(c,O9,v);case"focus":return y&&re(c,P9,v);case"blur":return y&&re(c,V9,v);case"drop":return y&&re(c,xf,v)}};l.addEventListener(m,g),p.push(()=>{l.removeEventListener(m,g)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Ra),Pn(this);za("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&Z(38);let o=e;o._readOnly&&(o=_m(e),o._selection=e._selection?e._selection.clone():null),Z1(this);const r=this._pendingEditorState,i=this._updateTags,s=n!==void 0?n.tag:null;r===null||r.isEmpty()||(s!=null&&i.add(s),Pn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||Pn(this)}parseEditorState(e,n){return function(o,r,i){const s=Yc(),l=Ye,c=ht,d=Je,u=r._dirtyElements,p=r._dirtyLeaves,f=r._cloneNotNeeded,m=r._dirtyType;r._dirtyElements=new Map,r._dirtyLeaves=new Set,r._cloneNotNeeded=new Set,r._dirtyType=0,Ye=s,ht=!1,Je=r,Qc(null);try{const h=r._nodes;Kc(o.root,h),i&&i(),s._readOnly=!0}catch(h){h instanceof Error&&r._onError(h)}finally{r._dirtyElements=u,r._dirtyLeaves=p,r._cloneNotNeeded=f,r._dirtyType=m,Ye=l,ht=c,Je=d}return s}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Pn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,r,i){o._updating?o._updates.push([r,i]):As(o,r,i)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Nt(this,()=>{const r=te(),i=$e();r!==null?r.dirty||st(r.clone()):i.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),h6("focus"),g6(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=rn(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,za("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}j(Vo,"version"),Vo.version="0.38.1+prod.esm";let Xc=null;function Qc(t){Xc=t}let d6=1;function Cm(t,e){const n=ed(t,e);return n===void 0&&Z(30,e),n}function ed(t,e){return t._nodes.get(e)}const u6=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function wm(t){return ve($r(t))}function td(t){const e=document.activeElement;if(!je(e))return!1;const n=e.nodeName;return ve($r(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&Ds(e)==null)}function Za(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!td(e)&&km(e)===t}catch{return!1}}function nd(t){return t instanceof Vo}function km(t){let e=t;for(;e!=null;){const n=Ds(e);if(nd(n))return n;e=Ga(e)}return null}function Ds(t){return t?t.__lexicalEditor:null}function Fo(t){return ws(t)||t.isToken()}function Vn(t){return Fo(t)||t.isSegmented()}function Fn(t){return Rr(t)&&t.nodeType===3}function xm(t){return Rr(t)&&t.nodeType===9}function Mr(t){let e=t;for(;e!=null;){if(Fn(e))return e;e=e.firstChild}return null}function Bs(t,e,n){const o=dt[e];if(n!==null&&(t&o)===(n&o))return t;let r=t^o;return e==="subscript"?r&=~dt.superscript:e==="superscript"?r&=~dt.subscript:e==="lowercase"?(r&=~dt.uppercase,r&=~dt.capitalize):e==="uppercase"?(r&=~dt.lowercase,r&=~dt.capitalize):e==="capitalize"&&(r&=~dt.lowercase,r&=~dt.uppercase),r}function Em(t){return X(t)||so(t)||ve(t)}function p6(t,e){const n=function(){const s=Xc;return Xc=null,s}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);Xe(),lm();const o=Me(),r=co(),i=""+d6++;r._nodeMap.set(i,t),V(t)?o._dirtyElements.set(i,!0):o._dirtyLeaves.add(i),o._cloneNotNeeded.add(i),o._dirtyType=1,t.__key=i}function zo(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),o=e.getWritable(),r=t.getPreviousSibling(),i=t.getNextSibling(),s=i!==null?i.__key:null,l=r!==null?r.__key:null,c=r!==null?r.getWritable():null,d=i!==null?i.getWritable():null;r===null&&(o.__first=s),i===null&&(o.__last=l),c!==null&&(c.__next=s),d!==null&&(d.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,o.__size--}}function Ls(t){lm(),_s(t)&&Z(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=co(),r=Me(),i=o._nodeMap,s=r._dirtyElements;n!==null&&function(c,d,u){let p=c;for(;p!==null;){if(u.has(p))return;const f=d.get(p);if(f===void 0)break;u.set(p,!1),p=f.__parent}}(n,i,s);const l=e.__key;r._dirtyType=1,V(t)?s.set(l,!0):r._dirtyLeaves.add(l)}function tt(t){Xe();const e=Me(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=He(n);o!==null&&o.getWritable()}if(t!==null){const o=He(t);o!==null&&o.getWritable()}}}function uo(){return Fa()?null:Me()._compositionKey}function He(t,e){const n=(e||co())._nodeMap.get(t);return n===void 0?null:n}function Sm(t,e){const n=Ms(t,Me());return n!==void 0?He(n,e):null}function Ms(t,e){return t[`__lexicalKey_${e._key}`]}function $r(t,e){let n=t;for(;n!=null;){const o=Sm(n,e);if(o!==null)return o;n=Ga(n)}return null}function Tm(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function Am(t){return t.read(()=>$e().getTextContent())}function $e(){return Nm(co())}function Nm(t){return t._nodeMap.get("root")}function st(t){Xe();const e=co();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Or(t){const e=Me(),n=function(o,r){let i=o;for(;i!=null;){const s=Ms(i,r);if(s!==void 0)return s;i=Ga(i)}return null}(t,e);return n===null?t===e.getRootElement()?He("root"):null:He(n)}function Dm(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function od(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function Bm(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Lm(t){return Fn(t)?t.nodeValue:null}function rd(t,e,n){const o=rn(Ht(e));if(o===null)return;const r=o.anchorNode;let{anchorOffset:i,focusOffset:s}=o;if(r!==null){let l=Lm(r);const c=$r(r);if(l!==null&&X(c)){if(l===rs&&n){const d=n.length;l=n,i=d,s=d}l!==null&&ad(c,l,i,s,t)}}}function ad(t,e,n,o,r){let i=t;if(i.isAttached()&&(r||!i.isDirty())){const s=i.isComposing();let l=e;(s||r)&&e[e.length-1]===rs&&(l=e.slice(0,-1));const c=i.getTextContent();if(r||l!==c){if(l===""){if(tt(null),Sa||Er||Ta)i.remove();else{const g=Me();setTimeout(()=>{g.update(()=>{i.isAttached()&&i.remove()})},20)}return}const d=i.getParent(),u=Lr(),p=i.getTextContentSize(),f=uo(),m=i.getKey();if(i.isToken()||f!==null&&m===f&&!s||H(u)&&(d!==null&&!d.canInsertTextBefore()&&u.anchor.offset===0||u.anchor.key===t.__key&&u.anchor.offset===0&&!i.canInsertTextBefore()&&!s||u.focus.key===t.__key&&u.focus.offset===p&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const h=te();if(!H(h)||n===null||o===null)return void Mm(i,l,h);if(h.setTextNodeRange(i,n,i,o),i.isSegmented()){const g=Re(i.getTextContent());i.replace(g),i=g}Mm(i,l,h)}}}function Mm(t,e,n){if(t.setTextContent(e),H(n)){const o=t.getKey();for(const r of["anchor","focus"]){const i=n[r];i.type==="text"&&i.key===o&&(i.offset=fo(t,i.offset,"clamp"))}}}function $s(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function f6(t,e){return $s(t,e,"altKey")&&$s(t,e,"ctrlKey")&&$s(t,e,"shiftKey")&&$s(t,e,"metaKey")}function Te(t,e,n){return f6(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const zn={ctrlKey:!Qt,metaKey:Qt},$m={altKey:Qt,ctrlKey:!Qt};function Om(t){return t.key==="Backspace"}function Im(t){return Te(t,"a",zn)}function m6(t){const e=$e();if(H(t)){const n=t.anchor,o=t.focus,r=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(r.getKey(),0,"element"),o.set(r.getKey(),r.getChildrenSize(),"element"),as(t),t}{const n=e.select(0,e.getChildrenSize());return st(as(n)),n}}function Ir(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const r=t[e];if(typeof r=="string"){const i=z1(r);return n[e]=i,i}return r}function id(t,e,n,o,r){if(n.size===0)return;const i=o.__type,s=o.__key,l=e.get(i);l===void 0&&Z(33,i);const c=l.klass;let d=t.get(c);d===void 0&&(d=new Map,t.set(c,d));const u=d.get(s),p=u==="destroyed"&&r==="created";(u===void 0||p)&&d.set(s,p?"updated":r)}function Rm(t,e,n){const o=t.getParent();let r=n,i=t;return o!==null&&(e&&n===0?(r=i.getIndexWithinParent(),i=o):e||n!==i.getChildrenSize()||(r=i.getIndexWithinParent()+1,i=o)),i.getChildAtIndex(e?r-1:r)}function sd(t,e){const n=t.offset;if(t.type==="element")return Rm(t.getNode(),e,n);{const o=t.getNode();if(e&&n===0||!e&&n===o.getTextContentSize()){const r=e?o.getPreviousSibling():o.getNextSibling();return r===null?Rm(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):r}}return null}function Pm(t){const e=Ht(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function re(t,e,n){return function(o,r,i){const s=od(o);for(let l=4;l>=0;l--)for(let c=0;c<s.length;c++){const d=s[c],u=d._commands.get(r);if(u!==void 0){const p=u[l];if(p!==void 0){const f=Array.from(p),m=f.length;let h=!1;if(Nt(d,()=>{for(let g=0;g<m;g++)if(f[g](i,o))return void(h=!0)}),h)return h}}}return!1}(t,e,n)}function Os(t){return!qe(t)&&!t.isLastChild()&&!t.isInline()}function qo(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&Z(75,e),n}function Ga(t){const e=t.assignedSlot||t.parentElement;return fd(e)?e.host:e}function Vm(t){return xm(t)?t:je(t)?t.ownerDocument:null}function h6(t){Xe(),Me()._updateTags.add(t)}function g6(t){Xe(),Me()._deferred.push(t)}function ld(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function cd(t){const e=Vm(t);return e?e.defaultView:null}function Ht(t){const e=t._window;return e===null&&Z(78),e}function b6(t){let e=t.getParentOrThrow();for(;e!==null;){if(ut(e))return e;e=e.getParentOrThrow()}return e}function ut(t){return qe(t)||V(t)&&t.isShadowRoot()}function on(t){const e=Me(),n=t.getType(),o=ed(e,n);o===void 0&&Z(200,t.constructor.name,n);const{replace:r,replaceWithKlass:i}=o;if(r!==null){const s=r(t),l=s.constructor;return i!==null?s instanceof i||Z(201,i.name,i.getType(),l.name,l.getType(),t.constructor.name,n):s instanceof t.constructor&&l!==t.constructor||Z(202,l.name,l.getType(),t.constructor.name,n),s.__key===t.__key&&Z(203,t.constructor.name,n,l.name,l.getType()),s}return t}function dd(t,e){!qe(t.getParent())||V(e)||ve(e)||Z(99)}function _6(t){const e=He(t);return e===null&&Z(63,t),e}function ud(t){return(ve(t)||V(t)&&!t.canBeEmpty())&&!t.isInline()}function pd(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function rn(t){return Xt?(t||window).getSelection():null}function y6(t){const e=cd(t);return e?e.getSelection():null}function Fm(t){return je(t)&&t.tagName==="A"}function je(t){return Rr(t)&&t.nodeType===1}function Rr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function fd(t){return Rr(t)&&t.nodeType===11}function md(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return t.nodeName.match(e)!==null}function Is(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return t.nodeName.match(e)!==null}function Wt(t){if(ve(t)&&!t.isInline())return!0;if(!V(t)||ut(t))return!1;const e=t.getFirstChild(),n=e===null||so(e)||X(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function Rs(){return Me()}const zm=new WeakMap,v6=new Map;function qm(t){if(!t._readOnly&&t.isEmpty())return v6;t._readOnly||Z(192);let e=zm.get(t);return e||(e=function(n){const o=new Map;for(const[r,i]of n._nodeMap){const s=i.__type;let l=o.get(s);l||(l=new Map,o.set(s,l)),l.set(r,i)}return o}(t),zm.set(t,e)),e}function jm(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function C6(t){return(e=jm(t))[Ff]=!0,e;var e}function hd(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function w6(t){return t.__lexicalUnmanaged===!0}function Ka(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==tn[e]}function Ps(t){const e=U1 in t.prototype?t.prototype[U1]():void 0,n=function(s){if(!(s===tn||s.prototype instanceof tn)){let l="<unknown>",c="<unknown>";try{l=s.getType()}catch{}try{Vo.version&&(c=JSON.parse(Vo.version))}catch{}Z(290,s.name,l,c)}return s===bm||s===Dt||s===tn}(t),o=!n&&Ka(t,"getType")?t.getType():void 0;let r,i=o;if(e)if(o)r=e[o];else for(const[s,l]of Object.entries(e))i=s,r=l;if(!n&&i&&(Ka(t,"getType")||(t.getType=()=>i),Ka(t,"clone")||(t.clone=s=>(Qc(s),new t)),Ka(t,"importJSON")||(t.importJSON=r&&r.$importJSON||(s=>new t().updateFromJSON(s))),!Ka(t,"importDOM")&&r)){const{importDOM:s}=r;s&&(t.importDOM=()=>s)}return{ownNodeConfig:r,ownNodeType:i}}function k6(t){const e=Rs();return Xe(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const Zt=(t,e)=>{let n=t;for(;n!=null&&!qe(n);){if(e(n))return n;n=n.getParent()}return null},x6={next:"previous",previous:"next"};class gd{constructor(e){j(this,"origin");this.origin=e}[Symbol.iterator](){return Hm({hasNext:Vr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return nt(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return nt(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){const o=this.getNodeAtCaret();return e.is(this.origin)||e.is(o)||(o===null?this.insert(e):o.replace(e,n)),this}splice(e,n,o="next"){const r=o===this.direction?n:Array.from(n).reverse();let i=this;const s=this.getParentAtCaret(),l=new Map;for(let c=i.getAdjacentCaret();c!==null&&l.size<e;c=c.getAdjacentCaret()){const d=c.origin.getWritable();l.set(d.getKey(),d)}for(const c of r){if(l.size>0){const d=i.getNodeAtCaret();if(d){if(l.delete(d.getKey()),l.delete(c.getKey()),!(d.is(c)||i.origin.is(c))){const u=c.getParent();u&&u.is(s)&&c.remove(),d.replace(c)}}else d===null&&Z(263,Array.from(l).join(" "))}else i.insert(c);i=nt(c,this.direction)}for(const c of l.values())c.remove();return this}}class Ya extends gd{constructor(){super(...arguments);j(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:an(n,this.direction)}getParentCaret(n="root"){return nt(bd(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Pr(this.direction);return nt(this.getNodeAtCaret(),n)||an(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Ya&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const E6={root:qe,shadowRoot:ut};function Pr(t){return x6[t]}function bd(t,e="root"){return E6[e](t)?null:t}class jo extends gd{constructor(){super(...arguments);j(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:nt(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return V(this.origin)?an(this.origin,this.direction):null}getParentCaret(n="root"){return nt(bd(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Pr(this.direction);return nt(this.getNodeAtCaret(),n)||an(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof jo&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof jo||n instanceof Uo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Uo extends gd{constructor(n,o){super(n);j(this,"type","text");j(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Ho(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return nt(bd(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Ho(this.origin,Pr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Uo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof jo||n instanceof Uo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return nt(this.origin,this.direction)}}function po(t){return t instanceof Uo}function Vr(t){return t instanceof jo}function wn(t){return t instanceof Ya}const S6={next:class extends Uo{constructor(){super(...arguments);j(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Uo{constructor(){super(...arguments);j(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},T6={next:class extends jo{constructor(){super(...arguments);j(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends jo{constructor(){super(...arguments);j(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},A6={next:class extends Ya{constructor(){super(...arguments);j(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Ya{constructor(){super(...arguments);j(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function nt(t,e){return t?new T6[e](t):null}function Ho(t,e,n){return t?new S6[e](t,fo(t,n)):null}function fo(t,e,n="error"){const o=t.getTextContentSize();let r=e==="next"?o:e==="previous"?0:e;return(r<0||r>o)&&(n!=="clamp"&&P1(284,String(e),String(o),t.getKey()),r=r<0?0:o),r}function Um(t,e){return new D6(t,e)}function an(t,e){return V(t)?new A6[e](t):null}function N6(t){return t&&t.getChildCaret()||t}function _d(t){return t&&N6(t.getAdjacentCaret())}class yd{constructor(e,n,o){j(this,"type","node-caret-range");j(this,"direction");j(this,"anchor");j(this,"focus");this.anchor=e,this.focus=n,this.direction=o}getLatest(){const e=this.anchor.getLatest(),n=this.focus.getLatest();return e===this.anchor&&n===this.focus?this:new yd(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=r=>{const i=this[r].getLatest();return po(i)?function(s,l){const{direction:c,origin:d}=s,u=fo(d,l==="focus"?Pr(c):c);return Um(s,u-s.offset)}(i,r):null},n=e("anchor"),o=e("focus");if(n&&o){const{caret:r}=n,{caret:i}=o;if(r.isSameNodeCaret(i))return[Um(r,i.offset-r.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=po(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),r=po(o),i=s=>s.isSameNodeCaret(o)?null:_d(s)||s.getParentCaret(e);return Hm({hasNext:s=>s!==null&&!(r&&o.isSameNodeCaret(s)),initial:n.isSameNodeCaret(o)?null:i(n),map:s=>s,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class D6{constructor(e,n){j(this,"type","slice");j(this,"caret");j(this,"distance");this.caret=e,this.distance=n}getSliceIndices(){const{distance:e,caret:{offset:n}}=this,o=n+e;return o<n?[o,n]:[n,o]}getTextContent(){const[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:n}}=this,[o,r]=this.getSliceIndices(),i=e.getTextContent();return Ho(e.setTextContent(i.slice(0,o)+i.slice(r)),n,o)}}function vd(t){return mo(t,nt($e(),t.direction))}function B6(t){return mo(t,t)}function mo(t,e){return t.direction!==e.direction&&Z(265),new yd(t,e,t.direction)}function Hm(t){const{initial:e,hasNext:n,step:o,map:r}=t;let i=e;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const s={done:!1,value:r(i)};return i=o(i),s}}}function Wm(t,e){const n=Fs(t.origin,e.origin);switch(n===null&&Z(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",r=e.type==="text";return o&&r?function(i,s){return Math.sign(i-s)}(t.offset,e.offset):t.type===e.type?0:o?-1:r?1:t.type==="child"?-1:1}case"ancestor":return t.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return Zm(n)}}function Zm(t){const{a:e,b:n}=t,o=e.__key,r=n.__key;let i=e,s=n;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===r)return-1;if(s.__key===o)return 1}return i===null?1:-1}function Vs(t,e){return e.is(t)}function Gm(t){return V(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Fs(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,r]=Gm(t);o;r=o,o=o.getParent())n.set(o,r);for(let[o,r]=Gm(e);o;r=o,o=o.getParent()){const i=n.get(o);if(i!==void 0)return i===null?(Vs(t,o)||Z(276),{commonAncestor:o,type:"ancestor"}):r===null?(Vs(e,o)||Z(277),{commonAncestor:o,type:"descendant"}):((V(i)||Vs(t,i))&&(V(r)||Vs(e,r))&&o.is(i.getParent())&&o.is(r.getParent())||Z(278),{a:i,b:r,commonAncestor:o,type:"branch"})}return null}function qn(t,e){const{type:n,key:o,offset:r}=t,i=_6(t.key);return n==="text"?(X(i)||Z(266,i.getType(),o),Ho(i,e,r)):(V(i)||Z(267,i.getType(),o),$6(i,t.offset,e))}function Wo(t,e){const{origin:n,direction:o}=e,r=o==="next";po(e)?t.set(n.getKey(),e.offset,"text"):Vr(e)?X(n)?t.set(n.getKey(),fo(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(r?1:0),"element"):(wn(e)&&V(n)||Z(268),t.set(n.getKey(),r?0:n.getChildrenSize(),"element"))}function L6(t){const e=te(),n=H(e)?e:xs();return zs(n,t),st(n),n}function zs(t,e){Wo(t.anchor,e.anchor),Wo(t.focus,e.focus)}function Km(t){const{anchor:e,focus:n}=t,o=qn(e,"next"),r=qn(n,"next"),i=Wm(o,r)<=0?"next":"previous";return mo(Fr(o,i),Fr(r,i))}function Cd(t){const{direction:e,origin:n}=t,o=nt(n,Pr(e)).getNodeAtCaret();return o?nt(o,e):an(n.getParentOrThrow(),e)}function Ym(t,e="root"){const n=[t];for(let o=wn(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(Cd(o));return n}function wd(t){return!!t&&t.origin.isAttached()}function M6(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const i=Xm(t,o),s=Ym(i.anchor,n),l=Ym(i.focus.getFlipped(),n),c=new Set,d=[];for(const h of i.iterNodeCarets(n))if(wn(h))c.add(h.origin.getKey());else if(Vr(h)){const{origin:g}=h;V(g)&&!c.has(g.getKey())||d.push(g)}for(const h of d)h.remove();for(const h of i.getTextSlices()){if(!h)continue;const{origin:g}=h.caret,v=g.getTextContentSize(),y=Cd(nt(g,o)),_=g.getMode();if(Math.abs(h.distance)===v&&r==="removeEmptySlices"||_==="token"&&h.distance!==0)y.remove();else if(h.distance!==0){r="removeEmptySlices";let b=h.removeTextSlice();const k=h.caret.origin;if(_==="segmented"){const w=b.origin,C=Re(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());y.replaceOrInsert(C),b=Ho(C,o,b.offset)}k.is(s[0].origin)&&(s[0]=b),k.is(l[0].origin)&&(l[0]=b.getFlipped())}}let u,p;for(const h of s)if(wd(h)){u=Gt(h);break}for(const h of l)if(wd(h)){p=Gt(h);break}const f=function(h,g,v){if(!h||!g)return null;const y=h.getParentAtCaret(),_=g.getParentAtCaret();if(!y||!_)return null;const b=y.getParents().reverse();b.push(y);const k=_.getParents().reverse();k.push(_);const w=Math.min(b.length,k.length);let C;for(C=0;C<w&&b[C]===k[C];C++);const x=(A,z)=>{let O;for(let B=C;B<A.length;B++){const L=A[B];if(ut(L))return;!O&&z(L)&&(O=L)}return O},S=x(b,Wt),T=S&&x(k,A=>v.has(A.getKey())&&Wt(A));return S&&T?[S,T]:null}(u,p,c);if(f){const[h,g]=f;an(h,"previous").splice(0,g.getChildren()),g.remove()}const m=[u,p,...s,...l].find(wd);if(m)return B6(Fr(Gt(m),t.direction));Z(269,JSON.stringify(s.map(h=>h.origin.__key)))}function Gt(t){const e=function(r){let i=r;for(;wn(i);){const s=_d(i);if(!wn(s))break;i=s}return i}(t.getLatest()),{direction:n}=e;if(X(e.origin))return po(e)?e:Ho(e.origin,n,n);const o=e.getAdjacentCaret();return Vr(o)&&X(o.origin)?Ho(o.origin,n,Pr(n)):e}function Jm(t){return po(t)&&t.offset!==fo(t.origin,t.direction)}function Fr(t,e){return t.direction===e?t:t.getFlipped()}function Xm(t,e){return t.direction===e?t:mo(Fr(t.focus,e),Fr(t.anchor,e))}function $6(t,e,n){let o=an(t,"next");for(let r=0;r<e;r++){const i=o.getAdjacentCaret();if(i===null)break;o=i}return Fr(o,n)}const kd=new Map;function Qm(t){const e={};if(!t)return e;const n=t.split(";");for(const o of n)if(o!==""){const[r,i]=o.split(/:([^]+)/);r&&i&&(e[r.trim()]=i.trim())}return e}function eh(t){let e=kd.get(t);return e===void 0&&(e=Qm(t),kd.set(t,e)),e}function th(t){const e=Rs().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function nh(t){return th(qe(t)?t:t.getParentOrThrow())}function oh(t){const e=nh(t);return e!==null&&e.direction==="rtl"}function rh(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Vn(e)&&o!==null){const[r,i]=o,s=t.isBackward(),l=r.getNode(),c=i.getNode(),d=e.is(l),u=e.is(c);if(d||u){const[p,f]=Uc(t),m=l.is(c),h=e.is(s?c:l),g=e.is(s?l:c);let v,y=0;m?(y=p>f?f:p,v=p>f?p:f):h?(y=s?f:p,v=void 0):g&&(y=0,v=s?p:f);const _=e.__text.slice(y,v);_!==e.__text&&(n==="clone"&&(e=C6(e)),e.__text=_)}}return e}function O6(t){const e=t.getStyle(),n=Qm(e);kd.set(e,n)}function I6(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function xd(t,e,n=I6){if(t===null)return;const o=t.getStartEndPoints(),r=new Map;let i=null;if(o){const[s,l]=o;i=xs(),i.anchor.set(s.key,s.offset,s.type),i.focus.set(l.key,l.offset,l.type);const c=Zt(s.getNode(),Wt),d=Zt(l.getNode(),Wt);V(c)&&r.set(c.getKey(),c),V(d)&&r.set(d.getKey(),d)}for(const s of t.getNodes())if(V(s)&&Wt(s))r.set(s.getKey(),s);else if(o===null){const l=Zt(s,Wt);V(l)&&r.set(l.getKey(),l)}for(const[s,l]of r){const c=e();n(l,c),l.replace(c,!0),i&&(s===i.anchor.key&&i.anchor.set(c.getKey(),i.anchor.offset,i.anchor.type),s===i.focus.key&&i.focus.set(c.getKey(),i.focus.offset,i.focus.type))}i&&t.is(te())&&st(i)}function ah(t){const e=ih(t);return e!==null&&e.writingMode==="vertical-rl"}function ih(t){const e=t.anchor.getNode();return V(e)?th(e):nh(e)}function sh(t,e){let n=ah(t)?!e:e;lh(t)&&(n=!n);const o=qn(t.focus,n?"previous":"next");if(Jm(o))return!1;for(const r of vd(o)){if(wn(r))return!r.origin.isInline();if(!V(r.origin)){if(ve(r.origin))return!0;break}}return!1}function R6(t,e,n,o){t.modify(e?"extend":"move",n,o)}function lh(t){const e=ih(t);return e!==null&&e.direction==="rtl"}function ch(t,e,n){const o=lh(t);let r;r=ah(t)||o?!n:n,R6(t,e,r,"character")}function P6(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Ed=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,V6=Ed&&"documentMode"in document?document.documentMode:null;!(!Ed||!("InputEvent"in window)||V6)&&"getTargetRanges"in new window.InputEvent("input");function dh(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}function Ja(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const F6=Ed;function jn(t,...e){const n=dh(...e);n.length>0&&t.classList.add(...n)}function Sd(t,...e){const n=dh(...e);n.length>0&&t.classList.remove(...n)}function z6(t){return t?t.getAdjacentCaret():null}function q6(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function j6(t){const e=Zt(t,n=>V(n)&&!n.isInline());return V(e)||P6(4,t.__key),e}function Zo(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function ho(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Td(t){let e=1,n=t.getParent();for(;n!=null;){if(we(n)){const o=n.getParent();if(de(o)){e++,n=o.getParent();continue}ho(40)}return e}return e}function Ad(t){let e=t.getParent();de(e)||ho(40);let n=e;for(;n!==null;)n=n.getParent(),de(n)&&(e=n);return e}function uh(t){let e=[];const n=t.getChildren().filter(we);for(let o=0;o<n.length;o++){const r=n[o],i=r.getFirstChild();de(i)?e=e.concat(uh(i)):e.push(r)}return e}function kn(t){return we(t)&&de(t.getFirstChild())}function ph(t){return Bt().append(t)}function fh(t,e){return we(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function mh(t){const e=te();if(e!==null){let n=e.getNodes();if(H(e)){const r=e.getStartEndPoints();r===null&&ho(143);const[i]=r,s=i.getNode(),l=s.getParent();if(ut(s)){const c=s.getFirstChild();if(c)n=c.selectStart().getNodes();else{const d=Be();s.append(d),n=d.select().getNodes()}}else if(fh(s,n)){const c=gt(t);if(ut(l)){s.replace(c);const d=Bt();V(s)&&(d.setFormat(s.getFormatType()),d.setIndent(s.getIndent())),c.append(d)}else if(we(s)){const d=s.getParentOrThrow();Go(c,d.getChildren()),d.replace(c)}return}}const o=new Set;for(let r=0;r<n.length;r++){const i=n[r];if(V(i)&&i.isEmpty()&&!we(i)&&!o.has(i.getKey())){hh(i,t);continue}let s=Em(i)?i.getParent():we(i)&&i.isEmpty()?i:null;for(;s!=null;){const l=s.getKey();if(de(s)){if(!o.has(l)){const c=gt(t);Go(c,s.getChildren()),s.replace(c),o.add(l)}break}{const c=s.getParent();if(ut(c)&&!o.has(l)){o.add(l),hh(s,t);break}s=c}}}}}function Go(t,e){t.splice(t.getChildrenSize(),0,e)}function hh(t,e){if(de(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=Bt();let i;if(Go(r,t.getChildren()),de(n)&&e===n.getListType())n.append(r),de(o)&&e===o.getListType()&&(Go(n,o.getChildren()),o.remove()),i=n;else if(de(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(r),i=o;else{const s=gt(e);s.append(r),t.replace(s),i=s}return r.setFormat(t.getFormatType()),r.setIndent(t.getIndent()),t.remove(),i}function Nd(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&kn(n)&&kn(o)&&(Nd(n.getFirstChild(),o.getFirstChild()),o.remove());const r=e.getChildren();r.length>0&&t.append(...r),e.remove()}function U6(){const t=te();if(H(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(fh(o,n))e.add(Ad(o));else for(let r=0;r<n.length;r++){const i=n[r];if(Em(i)){const s=q6(i,go);s!=null&&e.add(Ad(s))}}for(const r of e){let i=r;const s=uh(r);for(const l of s){const c=Be().setTextStyle(t.style).setTextFormat(t.format);Go(c,l.getChildren()),i.insertAfter(c),i=c,l.__key===t.anchor.key&&Wo(t.anchor,Gt(an(c,"next"))),l.__key===t.focus.key&&Wo(t.focus,Gt(an(c,"next"))),l.remove()}r.remove()}}}function gh(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())we(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),de(o.getFirstChild())||n++)}function H6(t){const e=new Set;if(kn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),r=t.getPreviousSibling();if(kn(o)&&kn(r)){const i=r.getFirstChild();if(de(i)){i.append(t);const s=o.getFirstChild();de(s)&&(Go(i,s.getChildren()),o.remove(),e.add(o.getKey()))}}else if(kn(o)){const i=o.getFirstChild();if(de(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(t)}}else if(kn(r)){const i=r.getFirstChild();de(i)&&i.append(t)}else if(de(n)){const i=Bt().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),s=gt(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());i.append(s),s.append(t),r?r.insertAfter(i):o?o.insertBefore(i):n.append(i)}}function W6(t){if(kn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(de(n?n.getParent():void 0)&&we(n)&&de(e)){const o=e?e.getFirstChild():void 0,r=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(r))n.insertAfter(t),e.isEmpty()&&n.remove();else{const i=e.getListType(),s=Bt(),l=gt(i);s.append(l),t.getPreviousSiblings().forEach(u=>l.append(u));const c=Bt(),d=gt(i);c.append(d),Go(d,t.getNextSiblings()),n.insertBefore(s),n.insertAfter(c),n.replace(t)}}}function Z6(){const t=te();if(!H(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!we(e)||e.getChildrenSize()!==0)return!1;const n=Ad(e),o=e.getParent();de(o)||ho(40);const r=o.getParent();let i;if(ut(r))i=Be(),n.insertAfter(i);else{if(!we(r))return!1;i=Bt(),r.insertAfter(i)}i.setTextStyle(t.style).setTextFormat(t.format).select();const s=e.getNextSiblings();if(s.length>0){const l=gt(o.getListType());if(we(i)){const c=Bt();c.append(l),i.insertAfter(c)}else i.insertAfter(l);l.append(...s)}return function(l){let c=l;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const d=c.getParent();if(d==null||!we(d)&&!de(d))break;c=d}c.remove()}(e),!0}function qs(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}let go=class extends Dt{constructor(n=1,o=void 0,r){super(r);j(this,"__value");j(this,"__checked");this.__value=n===void 0?1:n,this.__checked=o}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const o=n.getParent();de(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Dt,importDOM:{li:()=>({conversion:G6,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const o=document.createElement("li");return this.updateListItemDOM(null,o,n),o}updateListItemDOM(n,o,r){(function(l,c,d){const u=c.getParent();!de(u)||u.getListType()!=="check"||de(c.getFirstChild())?(l.removeAttribute("role"),l.removeAttribute("tabIndex"),l.removeAttribute("aria-checked")):(l.setAttribute("role","checkbox"),l.setAttribute("tabIndex","-1"),d&&c.__checked===d.__checked||l.setAttribute("aria-checked",c.getChecked()?"true":"false"))})(o,this,n),o.value=this.__value,function(l,c,d){const u=[],p=[],f=c.list,m=f?f.listitem:void 0;let h;if(f&&f.nested&&(h=f.nested.listitem),m!==void 0&&u.push(...qs(m)),f){const g=d.getParent(),v=de(g)&&g.getListType()==="check",y=d.getChecked();v&&!y||p.push(f.listitemUnchecked),v&&y||p.push(f.listitemChecked),v&&u.push(y?f.listitemChecked:f.listitemUnchecked)}if(h!==void 0){const g=qs(h);d.getChildren().some(v=>de(v))?u.push(...g):p.push(...g)}p.length>0&&Sd(l,...p),u.length>0&&jn(l,...u)}(o,r.theme,this);const i=n?n.__style:"",s=this.__style;i!==s&&(s===""?o.removeAttribute("style"):o.style.cssText=s),function(l,c,d){const u=eh(c.__textStyle);for(const p in u)l.style.setProperty(`--listitem-marker-${p}`,u[p]);if(d)for(const p in eh(d.__textStyle))p in u||l.style.removeProperty(`--listitem-marker-${p}`)}(o,this,n)}updateDOM(n,o,r){const i=o;return this.updateListItemDOM(n,i,r),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const o=this.createDOM(n._config),r=this.getFormatType();r&&(o.style.textAlign=r);const i=this.getDirection();return i&&(o.dir=i),{element:o}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...n){for(let o=0;o<n.length;o++){const r=n[o];if(V(r)&&this.canMergeWith(r)){const i=r.getChildren();this.append(...i),r.remove()}else super.append(r)}return this}replace(n,o){if(we(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!de(r))return n;if(r.__first===this.getKey())r.insertBefore(n);else if(r.__last===this.getKey())r.insertAfter(n);else{const i=gt(r.getListType());let s=this.getNextSibling();for(;s;){const l=s;s=s.getNextSibling(),i.append(l)}r.insertAfter(n),n.insertAfter(i)}return o&&(V(n)||ho(139),this.getChildren().forEach(i=>{n.append(i)})),this.remove(),r.getChildrenSize()===0&&r.remove(),n}insertAfter(n,o=!0){const r=this.getParentOrThrow();if(de(r)||ho(39),we(n))return super.insertAfter(n,o);const i=this.getNextSiblings();if(r.insertAfter(n,o),i.length!==0){const s=gt(r.getListType());i.forEach(l=>s.append(l)),n.insertAfter(s,o)}return n}remove(n){const o=this.getPreviousSibling(),r=this.getNextSibling();super.remove(n),o&&r&&kn(o)&&kn(r)&&(Nd(o.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(n,o=!0){const r=Bt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,o),r}collapseAtStart(n){const o=Be();this.getChildren().forEach(l=>o.append(l));const r=this.getParentOrThrow(),i=r.getParentOrThrow(),s=we(i);if(r.getChildrenSize()===1)if(s)r.remove(),i.select();else{r.insertBefore(o),r.remove();const l=n.anchor,c=n.focus,d=o.getKey();l.type==="element"&&l.getNode().is(this)&&l.set(d,l.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(d,c.offset,"element")}else r.insertBefore(o),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const o=this.getWritable();return o.__value=n,o}getChecked(){const n=this.getLatest();let o;const r=this.getParent();return de(r)&&(o=r.getListType()),o==="check"?!!n.__checked:void 0}setChecked(n){const o=this.getWritable();return o.__checked=n,o}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let o=n.getParentOrThrow(),r=0;for(;we(o);)o=o.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(n){typeof n!="number"&&ho(117),(n=Math.floor(n))>=0||ho(199);let o=this.getIndent();for(;o!==n;)o<n?(H6(this),o++):(W6(this),o--);return this}canInsertAfter(n){return we(n)}canReplaceWith(n){return we(n)}canMergeWith(n){return we(n)||Ha(n)}extractWithChild(n,o){if(!H(o))return!1;const r=o.anchor.getNode(),i=o.focus.getNode();return this.isParentOf(r)&&this.isParentOf(i)&&this.getTextContent().length===o.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return gt("bullet")}canMergeWhenEmpty(){return!0}};function G6(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return bh(n)}if(t.classList.contains("joplin-checkbox")){for(const n of t.children)if(n.classList.contains("checkbox-wrapper")&&n.children.length>0&&n.children[0].tagName==="INPUT")return bh(n.children[0])}const e=t.getAttribute("aria-checked");return{node:Bt(e==="true"||e!=="false"&&void 0)}}function bh(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:Bt(t.hasAttribute("checked"))}}function Bt(t){return on(new go(void 0,t))}function we(t){return t instanceof go}let Ko=class extends Dt{constructor(n="number",o=1,r){super(r);j(this,"__tag");j(this,"__start");j(this,"__listType");const i=Y6[n]||n;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=o}$config(){return this.config("list",{$transform:n=>{(function(o){const r=o.getNextSibling();de(r)&&o.getListType()===r.getListType()&&Nd(o,r)})(n),gh(n)},extends:Dt,importDOM:{ol:()=>({conversion:yh,priority:0}),ul:()=>({conversion:yh,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const o=this.getWritable();return o.__listType=n,o.__tag=n==="number"?"ol":"ul",o}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const o=this.getWritable();return o.__start=n,o}createDOM(n,o){const r=this.__tag,i=document.createElement(r);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,_h(i,n.theme,this),i}updateDOM(n,o,r){return n.__tag!==this.__tag||n.__listType!==this.__listType||(_h(o,r.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const o=this.createDOM(n._config,n);return je(o)&&(this.__start!==1&&o.setAttribute("start",String(this.__start)),this.__listType==="check"&&o.setAttribute("__lexicalListType","check")),{element:o}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,o,r){let i=r;for(let s=0;s<r.length;s++){const l=r[s];we(l)||(i===r&&(i=[...r]),i[s]=Bt().append(!V(l)||de(l)||l.isInline()?l:Re(l.getTextContent())))}return super.splice(n,o,i)}extractWithChild(n){return we(n)}};function _h(t,e,n){const o=[],r=[],i=e.list;if(i!==void 0){const s=i[`${n.__tag}Depth`]||[],l=Td(n)-1,c=l%s.length,d=s[c],u=i[n.__tag];let p;const f=i.nested,m=i.checklist;if(f!==void 0&&f.list&&(p=f.list),u!==void 0&&o.push(u),m!==void 0&&n.__listType==="check"&&o.push(m),d!==void 0){o.push(...qs(d));for(let h=0;h<s.length;h++)h!==c&&r.push(n.__tag+h)}if(p!==void 0){const h=qs(p);l>1?o.push(...h):r.push(...h)}}r.length>0&&Sd(t,...r),o.length>0&&jn(t,...o)}function K6(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(we(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(i=>{de(i)&&e.push(ph(i))})}else e.push(ph(o))}return e}function yh(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=gt("number",t.start):e==="ul"&&(n=function(o){if(o.getAttribute("__lexicallisttype")==="check"||o.classList.contains("contains-task-list")||o.getAttribute("data-is-checklist")==="1")return!0;for(const r of o.childNodes)if(je(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?gt("check"):gt("bullet")),{after:K6,node:n}}const Y6={ol:"number",ul:"bullet"};function gt(t="number",e=1){return on(new Ko(t,e))}function de(t){return t instanceof Ko}const J6=le("UPDATE_LIST_START_COMMAND"),vh=le("INSERT_UNORDERED_LIST_COMMAND"),Ch=le("INSERT_ORDERED_LIST_COMMAND"),X6=le("REMOVE_LIST_COMMAND");function Q6(t){return Ja(t.registerCommand(Ch,()=>(mh("number"),!0),Wa),t.registerCommand(J6,e=>{const{listNodeKey:n,newStart:o}=e,r=He(n);return!!de(r)&&(r.getListType()==="number"&&(r.setStart(o),gh(r)),!0)},Wa),t.registerCommand(vh,()=>(mh("bullet"),!0),Wa),t.registerCommand(X6,()=>(U6(),!0),Wa),t.registerCommand(Ba,()=>Z6(),Wa),t.registerNodeTransform(go,e=>{const n=e.getFirstChild();if(n){if(X(n)){const o=n.getStyle(),r=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const o=te();H(o)&&(o.style!==e.getTextStyle()||o.format!==e.getTextFormat())&&o.isCollapsed()&&e.is(o.anchor.getNode())&&e.setTextStyle(o.style).setTextFormat(o.format)}}),t.registerNodeTransform(lo,e=>{const n=e.getParent();if(we(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function ex(t){const e=n=>{const o=n.getParent();if(de(n.getFirstChild())||!de(o))return;const r=Zt(n,i=>we(i)&&de(i.getParent())&&we(i.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(we(r)){const i=r.getPreviousSibling();if(we(i)){const s=function(c){let d=c,u=d.getFirstChild();for(;de(u);){const p=u.getLastChild();if(!we(p))break;d=p,u=d.getFirstChild()}return d}(i),l=s.getParent();if(de(l)){const c=Td(l);c+1<Td(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(Ko,n=>{const o=[n];for(;o.length>0;){const r=o.shift();if(de(r)){for(const i of r.getChildren())if(we(i)){e(i);const s=i.getFirstChild();de(s)&&o.push(s)}}}})}function tx(t,e){const n=xm(e)?e.body.childNodes:e.childNodes;let o=[];const r=[];for(const i of n)if(!kh.has(i.nodeName)){const s=xh(i,t,r,!1);s!==null&&(o=o.concat(s))}return function(i){for(const s of i)s.getNextSibling()instanceof Jc&&s.insertAfter(nn());for(const s of i){const l=s.getChildren();for(const c of l)s.insertBefore(c);s.remove()}}(r),o}function nx(t,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),o=$e().getChildren();for(let r=0;r<o.length;r++)wh(t,o[r],n,e);return n.innerHTML}function wh(t,e,n,o=null){let r=o===null||e.isSelected(o);const i=V(e)&&e.excludeFromCopy("html");let s=e;o!==null&&X(e)&&(s=rh(o,e,"clone"));const l=V(s)?s.getChildren():[],c=ed(t,s.getType());let d;d=c&&c.exportDOM!==void 0?c.exportDOM(t,s):s.exportDOM(t);const{element:u,after:p}=d;if(!u)return!1;const f=document.createDocumentFragment();for(let m=0;m<l.length;m++){const h=l[m],g=wh(t,h,f,o);!r&&V(e)&&g&&e.extractWithChild(h,o,"html")&&(r=!0)}if(r&&!i){if((je(u)||fd(u))&&u.append(f),n.append(u),p){const m=p.call(s,u);m&&(fd(u)?u.replaceChildren(m):u.replaceWith(m))}}else n.append(f);return r}const kh=new Set(["STYLE","SCRIPT"]);function xh(t,e,n,o,r=new Map,i){let s=[];if(kh.has(t.nodeName))return s;let l=null;const c=function(h,g){const{nodeName:v}=h,y=g._htmlConversions.get(v.toLowerCase());let _=null;if(y!==void 0)for(const b of y){const k=b(h);k!==null&&(_===null||(_.priority||0)<=(k.priority||0))&&(_=k)}return _!==null?_.conversion:null}(t,e),d=c?c(t):null;let u=null;if(d!==null){u=d.after;const h=d.node;if(l=Array.isArray(h)?h[h.length-1]:h,l!==null){for(const[,g]of r)if(l=g(l,i),!l)break;l&&s.push(...Array.isArray(h)?h:[l])}d.forChild!=null&&r.set(t.nodeName,d.forChild)}const p=t.childNodes;let f=[];const m=(l==null||!ut(l))&&(l!=null&&Hc(l)||o);for(let h=0;h<p.length;h++)f.push(...xh(p[h],e,n,m,new Map(r),l));return u!=null&&(f=u(f)),Is(t)&&(f=ox(t,f,m?()=>{const h=new Jc;return n.push(h),h}:Be)),l==null?f.length>0?s=s.concat(f):Is(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:md(h.nextSibling)&&md(h.previousSibling)}(t)&&(s=s.concat(nn())):V(l)&&l.append(...f),s}function ox(t,e,n){const o=t.style.textAlign,r=[];let i=[];for(let s=0;s<e.length;s++){const l=e[s];if(Hc(l))o&&!l.getFormat()&&l.setFormat(o),r.push(l);else if(i.push(l),s===e.length-1||s<e.length-1&&Hc(e[s+1])){const c=n();c.setFormat(o),c.append(...i),r.push(c),i=[]}}return r}function js(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function rx(t,e=te()){return e==null&&js(166),H(e)&&e.isCollapsed()||e.getNodes().length===0?"":nx(t,e)}function ax(t,e=te()){return e==null&&js(166),H(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(ix(t,e))}function Eh(t,e,n){const o=t.getData("application/x-lexical-editor");if(o)try{const l=JSON.parse(o);if(l.namespace===n._config.namespace&&Array.isArray(l.nodes))return Sh(n,sx(l.nodes),e)}catch(l){console.error(l)}const r=t.getData("text/html"),i=t.getData("text/plain");if(r&&i!==r)try{const l=new DOMParser().parseFromString(function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:d=>d}).createHTML(c):c}(r),"text/html");return Sh(n,tx(n,l),e)}catch(l){console.error(l)}const s=i||t.getData("text/uri-list");if(s!=null)if(H(e)){const l=s.split(/(\r?\n|\t)/);l[l.length-1]===""&&l.pop();for(let c=0;c<l.length;c++){const d=te();if(H(d)){const u=l[c];u===`
30
+ `?o.push(nn()):s===" "?o.push(Br()):o.push(Re(s))}this.insertNodes(o)}insertText(e){const n=this.anchor,o=this.focus,r=this.format,i=this.style;let s=n,l=o;!this.isCollapsed()&&o.isBefore(n)&&(s=o,l=n),s.type==="element"&&function(v,_,y,b){const k=v.getNode(),w=k.getChildAtIndex(v.offset),C=Re();if(C.setFormat(y),C.setStyle(b),Ha(w))w.splice(0,0,[C]);else{const x=qe(k)?Be().append(C):C;w===null?k.append(x):w.insertBefore(x)}v.is(_)&&_.set(C.__key,0,"text"),v.set(C.__key,0,"text")}(s,l,r,i),l.type==="element"&&Wo(l,Gt(qn(l,"next")));const c=s.offset;let d=l.offset;const u=this.getNodes(),p=u.length;let f=u[0];X(f)||Z(26);const m=f.getTextContent().length,h=f.getParentOrThrow();let g=u[p-1];if(p===1&&l.type==="element"&&(d=m,l.set(s.key,d,"text")),this.isCollapsed()&&c===m&&(Vn(f)||!f.canInsertTextAfter()||!h.canInsertTextAfter()&&f.getNextSibling()===null)){let v=f.getNextSibling();if(X(v)&&v.canInsertTextBefore()&&!Vn(v)||(v=Re(),v.setFormat(r),v.setStyle(i),h.canInsertTextAfter()?f.insertAfter(v):h.insertAfter(v)),v.select(0,0),f=v,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(Vn(f)||!f.canInsertTextBefore()||!h.canInsertTextBefore()&&f.getPreviousSibling()===null)){let v=f.getPreviousSibling();if(X(v)&&!Vn(v)||(v=Re(),v.setFormat(r),h.canInsertTextBefore()?f.insertBefore(v):h.insertBefore(v)),v.select(),f=v,e!=="")return void this.insertText(e)}else if(f.isSegmented()&&c!==m){const v=Re(f.getTextContent());v.setFormat(r),f.replace(v),f=v}else if(!this.isCollapsed()&&e!==""){const v=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||V(v)&&(!v.canInsertTextBefore()||!v.canInsertTextAfter()))return this.insertText(""),Qf(this.anchor,this.focus,null),void this.insertText(e)}if(p===1){if(Fo(f)){const b=Re(e);return b.select(),void f.replace(b)}const v=f.getFormat(),_=f.getStyle();if(c!==d||v===r&&_===i){if(ws(f)){const b=Re(e);return b.setFormat(r),b.setStyle(i),b.select(),void f.replace(b)}}else{if(f.getTextContent()!==""){const b=Re(e);if(b.setFormat(r),b.setStyle(i),b.select(),c===0)f.insertBefore(b,!1);else{const[k]=f.splitText(c);k.insertAfter(b,!1)}return void(b.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}f.setFormat(r),f.setStyle(i)}const y=d-c;f=f.spliceText(c,y,e,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=v,this.style=_))}else{const v=new Set([...f.getParentKeys(),...g.getParentKeys()]),_=V(f)?f:f.getParentOrThrow();let y=V(g)?g:g.getParentOrThrow(),b=g;if(!_.is(y)&&y.isInline())do b=y,y=y.getParentOrThrow();while(y.isInline());if(l.type==="text"&&(d!==0||g.getTextContent()==="")||l.type==="element"&&g.getIndexWithinParent()<d)if(X(g)&&!Fo(g)&&d!==g.getTextContentSize()){if(g.isSegmented()){const S=Re(g.getTextContent());g.replace(S),g=S}qe(l.getNode())||l.type!=="text"||(g=g.spliceText(0,d,"")),v.add(g.__key)}else{const S=g.getParentOrThrow();S.canBeEmpty()||S.getChildrenSize()!==1?g.remove():S.remove()}else v.add(g.__key);const k=y.getChildren(),w=new Set(u),C=_.is(y),x=_.isInline()&&f.getNextSibling()===null?_:f;for(let S=k.length-1;S>=0;S--){const T=k[S];if(T.is(f)||V(T)&&T.isParentOf(f))break;T.isAttached()&&(!w.has(T)||T.is(b)?C||x.insertAfter(T,!1):T.remove())}if(!C){let S=y,T=null;for(;S!==null;){const A=S.getChildren(),z=A.length;(z===0||A[z-1].is(T))&&(v.delete(S.__key),T=S),S=S.getParent()}}if(Fo(f))if(c===m)f.select();else{const S=Re(e);S.select(),f.replace(S)}else f=f.spliceText(c,m-c,e,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let S=1;S<p;S++){const T=u[S],A=T.__key;v.has(A)||T.remove()}}}removeText(){const e=te()===this;zs(this,M6(Km(this))),e&&te()!==this&&st(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void tt(null);const o=this.getNodes(),r=[];for(const k of o)X(k)&&r.push(k);const i=k=>{o.forEach(w=>{if(V(w)){const C=w.getFormatFlags(e,k);w.setTextFormat(C)}})},s=r.length;if(s===0)return this.toggleFormat(e),tt(null),void i(n);const l=this.anchor,c=this.focus,d=this.isBackward(),u=d?c:l,p=d?l:c;let f=0,m=r[0],h=u.type==="element"?0:u.offset;if(u.type==="text"&&h===m.getTextContentSize()&&(f=1,m=r[1],h=0),m==null)return;const g=m.getFormatFlags(e,n);i(g);const v=s-1;let _=r[v];const y=p.type==="text"?p.offset:_.getTextContentSize();if(m.is(_)){if(h===y)return;if(Vn(m)||h===0&&y===m.getTextContentSize())m.setFormat(g);else{const k=m.splitText(h,y),w=h===0?k[0]:k[1];w.setFormat(g),u.type==="text"&&u.set(w.__key,0,"text"),p.type==="text"&&p.set(w.__key,y-h,"text")}return void(this.format=g)}h===0||Vn(m)||([,m]=m.splitText(h),h=0),m.setFormat(g);const b=_.getFormatFlags(e,g);y>0&&(y===_.getTextContentSize()||Vn(_)||([_]=_.splitText(y)),_.setFormat(b));for(let k=f+1;k<v;k++){const w=r[k],C=w.getFormatFlags(e,b);w.setFormat(C)}u.type==="text"&&u.set(m.__key,h,"text"),p.type==="text"&&p.set(_.__key,y,"text"),this.format=g|b}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=te();return H(h)||Z(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=Zt(n,Wt),r=e[e.length-1];if(V(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Zc(this);o.splice(h,0,e),r.selectEnd()}return}if(!e.some(h=>(V(h)||ve(h))&&!h.isInline())){V(o)||Z(211,n.constructor.name,n.getType());const h=Zc(this);return o.splice(h,0,e),void r.selectEnd()}const i=function(h){const g=Be();let v=null;for(let _=0;_<h.length;_++){const y=h[_],b=so(y);if(b||ve(y)&&y.isInline()||V(y)&&y.isInline()||X(y)||y.isParentRequired()){if(v===null&&(v=y.createParentElementNode(),g.append(v),b))continue;v!==null&&v.append(y)}else g.append(y),v=null}return g}(e),s=i.getLastDescendant(),l=i.getChildren(),c=!V(o)||!o.isEmpty()?this.insertParagraph():null,d=l[l.length-1];let u=l[0];var p;V(p=u)&&Wt(p)&&!p.isEmpty()&&V(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(V(o)||Z(211,n.constructor.name,n.getType()),o.append(...u.getChildren()),u=l[1]),u&&(o===null&&Z(212,n.constructor.name,n.getType()),function(h,g){const v=g.getParentOrThrow().getLastChild();let _=g;const y=[g];for(;_!==v;)_.getNextSibling()||Z(140),_=_.getNextSibling(),y.push(_);let b=h;for(const k of y)b=b.insertAfter(k)}(o,u));const f=Zt(s,Wt);c&&V(f)&&(c.canMergeWhenEmpty()||Wt(d))&&(f.append(...c.getChildren()),c.remove()),V(o)&&o.isEmpty()&&o.remove(),s.selectEnd();const m=V(o)?o.getLastChild():null;so(m)&&f!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Be();return $e().splice(this.anchor.offset,0,[s]),s.select(),s}const e=Zc(this),n=Zt(this.anchor.getNode(),Wt);V(n)||Z(213);const o=n.getChildAtIndex(e),r=o?[o,...o.getNextSiblings()]:[],i=n.insertNewAfter(this,!1);return i?(i.append(...r),i.selectStart(),i):null}insertLineBreak(e){const n=nn();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),r=n.getIndexWithinParent();o.select(r,r)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],r=e[n-1];const[i,s]=Uc(this),l=this.isBackward(),[c,d]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[u,p]=l?[s,i]:[i,s];if(n===0)return[];if(n===1){if(X(o)&&!this.isCollapsed()){const f=o.splitText(u,p),m=u===0?f[0]:f[1];return m?(c.set(m.getKey(),0,"text"),d.set(m.getKey(),m.getTextContentSize(),"text"),[m]):[]}return[o]}if(X(o)&&(u===o.getTextContentSize()?e.shift():u!==0&&([,o]=o.splitText(u),e[0]=o,c.set(o.getKey(),0,"text"))),X(r)){const f=r.getTextContent().length;p===0?e.pop():p!==f&&([r]=r.splitText(p),e[e.length-1]=r,d.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,n,o){if(im(this,e,n,o))return;const r=e==="move",i=Me(),s=rn(Ht(i));if(!s)return;const l=i._blockCursorElement,c=i._rootElement,d=this.focus.getNode();if(c===null||l===null||!V(d)||d.isInline()||d.canBeEmpty()||pd(l,i,c),this.dirty){let u=qo(i,this.anchor.key),p=qo(i,this.focus.key);this.anchor.type==="text"&&(u=Mr(u)),this.focus.type==="text"&&(p=Mr(p)),u&&p&&am(s,u,this.anchor.offset,p,this.focus.offset)}if(function(u,p,f,m){u.modify(p,f,m)}(s,e,n?"backward":"forward",o),s.rangeCount>0){const u=s.getRangeAt(0),p=this.anchor.getNode(),f=qe(p)?p:b6(p);if(this.applyDOMRange(u),this.dirty=!0,!r){const m=this.getNodes(),h=[];let g=!1;for(let v=0;v<m.length;v++){const _=m[v];ld(_,f)?h.push(_):g=!0}if(g&&h.length>0)if(n){const v=h[0];V(v)?v.selectStart():v.getParentOrThrow().selectStart()}else{const v=h[h.length-1];V(v)?v.selectEnd():v.getParentOrThrow().selectEnd()}s.anchorNode===u.startContainer&&s.anchorOffset===u.startOffset||function(v){const _=v.focus,y=v.anchor,b=y.key,k=y.offset,w=y.type;y.set(_.key,_.offset,_.type,!0),_.set(b,k,w,!0)}(this)}}o==="lineboundary"&&im(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&V(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const r=n.getParent(),i=n.getNextSibling()||(r===null?null:r.getNextSibling());if(V(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const o=this.anchor;let r=o.getNode();if(this.forwardDeletion(o,r,e))return;const i=vd(qn(o,e?"previous":"next"));if(i.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const c of i.iterNodeCarets("shadowRoot"))if(wn(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(V(i.anchor.origin)&&i.anchor.origin.isEmpty()){const d=Gt(c);zs(this,mo(d,d)),i.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:c,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Vr(c)){if(V(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(i.anchor.origin))break}else l={block:c.origin,type:"merge-next-block"};continue}if(ve(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&V(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const d=nm();d.add(c.origin.getKey()),st(d)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:d}=l;return zs(this,mo(!c.origin.isEmpty()&&d.isEmpty()?Cd(nt(d,c.direction)):i.anchor,c)),this.removeText()}}const s=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&o.offset===0&&Kf(this,o.getNode()))return}else{const l=s.type==="text"?s.getNode():null;if(r=o.type==="text"?o.getNode():null,l!==null&&l.isSegmented()){const c=s.offset,d=l.getTextContentSize();if(l.is(r)||e&&c!==d||!e&&c!==0)return void Yf(l,e,c)}else if(r!==null&&r.isSegmented()){const c=o.offset,d=r.getTextContentSize();if(r.is(l)||e&&c!==0||!e&&c!==d)return void Yf(r,e,c)}(function(c,d){const u=c.anchor,p=c.focus,f=u.getNode(),m=p.getNode();if(f===m&&u.type==="text"&&p.type==="text"){const h=u.offset,g=p.offset,v=h<g,_=v?h:g,y=v?g:h,b=y-1;_!==b&&function(k){return!(Dm(k)||e6(k))}(f.getTextContent().slice(_,y))&&(d?p.set(p.key,b,p.type):u.set(u.key,b,u.type))}})(this,e)}}if(this.removeText(),e&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const o=this.anchor.getNode();o.isEmpty()&&qe(o.getParent())&&o.getPreviousSibling()===null&&Kf(this,o)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const n=this.anchor,o=n.getNode();if(this.forwardDeletion(n,o,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function At(t){return t instanceof ks}function Gf(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Uc(t){const e=t.getStartEndPoints();if(e===null)return[0,0];const[n,o]=e;return n.type==="element"&&o.type==="element"&&n.key===o.key&&n.offset===o.offset?[0,0]:[Gf(n),Gf(o)]}function Kf(t,e){for(let n=e;n;n=n.getParent()){if(V(n)){if(n.collapseAtStart(t))return!0;if(ut(n))break}if(n.getPreviousSibling())break}return!1}const e6=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function Yf(t,e,n){const o=t,r=o.getTextContent().split(/(?=\s)/g),i=r.length;let s=0,l=0;for(let d=0;d<i;d++){const u=d===i-1;if(l=s,s+=r[d].length,e&&s===n||s>n||u){r.splice(d,1),u&&(l=void 0);break}}const c=r.join("").trim();c===""?o.remove():(o.setTextContent(c),o.select(l,l))}function Jf(t,e,n,o){let r,i=e;if(je(t)){let s=!1;const l=t.childNodes,c=l.length,d=o._blockCursorElement;i===c&&(s=!0,i=c-1);let u=l[i],p=!1;if(u===d)u=l[i+1],p=!0;else if(d!==null){const f=d.parentNode;t===f&&e>Array.prototype.indexOf.call(f.children,d)&&i--}if(r=Or(u),X(r))i=fo(r,s?"next":"previous");else{let f=Or(t);if(f===null)return null;if(V(f)){const m=o.getElementByKey(f.getKey());m===null&&Z(214),[f,i]=f.getDOMSlot(m).resolveChildIndex(f,m,t,e),V(f)||Z(215),s&&i>=f.getChildrenSize()&&(i=Math.max(0,f.getChildrenSize()-1));let g=f.getChildAtIndex(i);if(V(g)&&function(v,_,y){const b=v.getParent();return y===null||b===null||!b.canBeEmpty()||b!==y.getNode()}(g,0,n)){const v=s?g.getLastDescendant():g.getFirstDescendant();v===null?f=g:(g=v,f=V(g)?g:g.getParentOrThrow()),i=0}X(g)?(r=g,f=null,i=fo(g,s?"next":"previous")):g!==f&&s&&!p&&(V(f)||Z(216),i=Math.min(f.getChildrenSize(),i+1))}else{const m=f.getIndexWithinParent();i=e===0&&ve(f)&&Or(t)===f?m:m+1,f=f.getParentOrThrow()}if(V(f))return Cn(f.__key,i,"element")}}else r=Or(t);return X(r)?Cn(r.__key,fo(r,i,"clamp"),"text"):null}function Xf(t,e,n){const o=t.offset,r=t.getNode();if(o===0){const i=r.getPreviousSibling(),s=r.getParent();if(e){if((n||!e)&&i===null&&V(s)&&s.isInline()){const l=s.getPreviousSibling();X(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else V(i)&&!n&&i.isInline()?t.set(i.__key,i.getChildrenSize(),"element"):X(i)&&t.set(i.__key,i.getTextContent().length,"text")}else if(o===r.getTextContent().length){const i=r.getNextSibling(),s=r.getParent();if(e&&V(i)&&i.isInline())t.set(i.__key,0,"element");else if((n||e)&&i===null&&V(s)&&s.isInline()&&!s.canInsertTextAfter()){const l=s.getNextSibling();X(l)&&t.set(l.__key,0,"text")}}}function Qf(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),r=t.is(e);Xf(t,o,r),Xf(e,!o,r),r&&e.set(t.key,t.offset,t.type);const i=Me();if(i.isComposing()&&i._compositionKey!==t.key&&H(n)){const s=n.anchor,l=n.focus;t.set(s.key,s.offset,s.type,!0),e.set(l.key,l.offset,l.type,!0)}}}function em(t,e,n,o,r,i){if(t===null||n===null||!Za(r,t,n))return null;const s=Jf(t,e,H(i)?i.anchor:null,r);if(s===null)return null;const l=Jf(n,o,H(i)?i.focus:null,r);if(l===null)return null;if(s.type==="element"&&l.type==="element"){const c=Or(t),d=Or(n);if(ve(c)&&ve(d))return null}return Qf(s,l,i),[s,l]}function Hc(t){return V(t)&&!t.isInline()}function tm(t,e,n,o,r,i){const s=co(),l=new Po(Cn(t,e,r),Cn(n,o,i),0,"");return l.dirty=!0,s._selection=l,l}function xs(){const t=Cn("root",0,"element"),e=Cn("root",0,"element");return new Po(t,e,0,"")}function nm(){return new ks(new Set)}function Wc(t,e,n,o){const r=n._window;if(r===null)return null;const i=o||r.event,s=i?i.type:void 0,l=s==="selectionchange",c=!hc&&(l||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let d,u,p,f;if(H(t)&&!c)return t.clone();if(e===null)return null;if(d=e.anchorNode,u=e.focusNode,p=e.anchorOffset,f=e.focusOffset,(l||s===void 0)&&H(t)&&!Za(n,d,u))return t.clone();const m=em(d,p,u,f,n,t);if(m===null)return null;const[h,g]=m;return new Po(h,g,H(t)?t.format:0,H(t)?t.style:"")}function te(){return co()._selection}function Lr(){return Me()._editorState._selection}function Es(t,e,n,o=1){const r=t.anchor,i=t.focus,s=r.getNode(),l=i.getNode();if(!e.is(s)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const d=r.offset;if(n<=d&&o>0||n<d&&o<0){const u=Math.max(0,d+o);r.set(c,u,"element"),i.set(c,u,"element"),om(t)}}else{const d=t.isBackward(),u=d?i:r,p=u.getNode(),f=d?r:i,m=f.getNode();if(e.is(p)){const h=u.offset;(n<=h&&o>0||n<h&&o<0)&&u.set(c,Math.max(0,h+o),"element")}if(e.is(m)){const h=f.offset;(n<=h&&o>0||n<h&&o<0)&&f.set(c,Math.max(0,h+o),"element")}}om(t)}function om(t){const e=t.anchor,n=e.offset,o=t.focus,r=o.offset,i=e.getNode(),s=o.getNode();if(t.isCollapsed()){if(!V(i))return;const l=i.getChildrenSize(),c=n>=l,d=c?i.getChildAtIndex(l-1):i.getChildAtIndex(n);if(X(d)){let u=0;c&&(u=d.getTextContentSize()),e.set(d.__key,u,"text"),o.set(d.__key,u,"text")}return}if(V(i)){const l=i.getChildrenSize(),c=n>=l,d=c?i.getChildAtIndex(l-1):i.getChildAtIndex(n);if(X(d)){let u=0;c&&(u=d.getTextContentSize()),e.set(d.__key,u,"text")}}if(V(s)){const l=s.getChildrenSize(),c=r>=l,d=c?s.getChildAtIndex(l-1):s.getChildAtIndex(r);if(X(d)){let u=0;c&&(u=d.getTextContentSize()),o.set(d.__key,u,"text")}}}function Ss(t,e,n,o,r){let i=null,s=0,l=null;o!==null?(i=o.__key,X(o)?(s=o.getTextContentSize(),l="text"):V(o)&&(s=o.getChildrenSize(),l="element")):r!==null&&(i=r.__key,X(r)?l="text":V(r)&&(l="element")),i!==null&&l!==null?t.set(i,s,l):(s=e.getIndexWithinParent(),s===-1&&(s=n.getChildrenSize()),t.set(n.__key,s,"element"))}function rm(t,e,n,o,r){t.type==="text"?t.set(n,t.offset+(e?0:r),"text"):t.offset>o.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function am(t,e,n,o,r){try{t.setBaseAndExtent(e,n,o,r)}catch{}}function t6(t,e,n,o,r,i,s){const l=o.anchorNode,c=o.focusNode,d=o.anchorOffset,u=o.focusOffset,p=document.activeElement;if(r.has(zf)&&p!==i||p!==null&&td(p))return;if(!H(e))return void(t!==null&&Za(n,l,c)&&o.removeAllRanges());const f=e.anchor,m=e.focus,h=f.key,g=m.key,v=qo(n,h),_=qo(n,g),y=f.offset,b=m.offset,k=e.format,w=e.style,C=e.isCollapsed();let x=v,S=_,T=!1;if(f.type==="text"){x=Mr(v);const I=f.getNode();T=I.getFormat()!==k||I.getStyle()!==w}else H(t)&&t.anchor.type==="text"&&(T=!0);var A,z,O,B,L;if(m.type==="text"&&(S=Mr(_)),x!==null&&S!==null&&(C&&(t===null||T||H(t)&&(t.format!==k||t.style!==w))&&(A=k,z=w,O=y,B=h,L=performance.now(),Nf=[A,z,O,B,L]),d!==y||u!==b||l!==x||c!==S||o.type==="Range"&&C||(p!==null&&i.contains(p)||r.has(W9)||i.focus({preventScroll:!0}),f.type==="element"))){if(am(o,x,y,S,b),!r.has(U9)&&e.isCollapsed()&&i!==null&&i===document.activeElement){const I=H(e)&&e.anchor.type==="element"?x.childNodes[y]||null:o.rangeCount>0?o.getRangeAt(0):null;if(I!==null){let P;if(I instanceof Text){const G=document.createRange();G.selectNode(I),P=G.getBoundingClientRect()}else P=I.getBoundingClientRect();(function(G,R,D){const K=Vm(D),F=cd(K);if(K===null||F===null)return;let{top:U,bottom:ce}=R,ee=0,ae=0,q=D;for(;q!==null;){const ne=q===K.body;if(ne)ee=0,ae=Ht(G).innerHeight;else{const Y=q.getBoundingClientRect();ee=Y.top,ae=Y.bottom}let $=0;if(U<ee?$=-(ee-U):ce>ae&&($=ce-ae),$!==0)if(ne)F.scrollBy(0,$);else{const Y=q.scrollTop;q.scrollTop+=$;const be=q.scrollTop-Y;U-=be,ce-=be}if(ne)break;q=Ga(q)}})(n,P,i)}}Oc=!0}}function n6(t){let e=te()||Lr();e===null&&(e=$e().selectEnd()),e.insertNodes(t)}function Zc(t){let e=t;t.isCollapsed()||e.removeText();const n=te();H(n)&&(e=n),H(e)||Z(161);const o=e.anchor;let r=o.getNode(),i=o.offset;for(;!Wt(r);){const s=r;if([r,i]=o6(r,i),s.is(r))break}return i}function o6(t,e){const n=t.getParent();if(!n){const r=Be();return $e().append(r),r.select(),[$e(),0]}if(X(t)){const r=t.splitText(e);if(r.length===0)return[n,t.getIndexWithinParent()];const i=e===0?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!V(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const r=new Po(Cn(t.__key,e,"element"),Cn(t.__key,e,"element"),0,""),i=t.insertNewAfter(r);i&&i.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function im(t,e,n,o,r="decorators-and-blocks"){if(e==="move"&&o==="character"&&!t.isCollapsed()){const[u,p]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return p.set(u.key,u.offset,u.type),!0}const i=qn(t.focus,n?"previous":"next"),s=o==="lineboundary",l=e==="move";let c=i,d=r==="decorators-and-blocks";if(!Jm(c)){for(const u of c){d=!1;const{origin:p}=u;if(!ve(p)||p.isIsolated()||(c=u,!s||!p.isInline()))break}if(d)for(const u of vd(i).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(wn(u))u.origin.isInline()||(c=u);else{if(V(u.origin))continue;ve(u.origin)&&!u.origin.isInline()&&(c=u)}break}}if(c===i)return!1;if(l&&!s&&ve(c.origin)&&c.origin.isKeyboardSelectable()){const u=nm();return u.add(c.origin.getKey()),st(u),!0}return c=Gt(c),l&&Wo(t.anchor,c),Wo(t.focus,c),d||!s}let Ye=null,Je=null,ht=!1,Gc=!1,Ts=0;const sm={characterData:!0,childList:!0,subtree:!0};function Fa(){return ht||Ye!==null&&Ye._readOnly}function Xe(){ht&&Z(13)}function lm(){Ts>99&&Z(14)}function co(){return Ye===null&&Z(195,cm()),Ye}function Me(){return Je===null&&Z(196,cm()),Je}function cm(){let t=0;const e=new Set,n=Vo.version;if(typeof window<"u")for(const r of document.querySelectorAll("[contenteditable]")){const i=Ds(r);if(nd(i))t++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===n&&(s+=" (separately built, likely a bundler configuration issue)"),e.add(s)}}let o=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(o+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),o}function r6(){return Je}function dm(t,e,n){const o=e.__type,r=Cm(t,o);let i=n.get(o);i===void 0&&(i=Array.from(r.transforms),n.set(o,i));const s=i.length;for(let l=0;l<s&&(i[l](e),e.isAttached());l++);}function um(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function pm(t,e){if(!e)return;const n=t._updateTags;let o=e;Array.isArray(e)||(o=[e]);for(const r of o)n.add(r)}function a6(t){return Kc(t,Me()._nodes)}function Kc(t,e){const n=t.type,o=e.get(n);o===void 0&&Z(17,n);const r=o.klass;t.type!==r.getType()&&Z(18,r.name);const i=r.importJSON(t),s=t.children;if(V(i)&&Array.isArray(s))for(let l=0;l<s.length;l++){const c=Kc(s[l],e);i.append(c)}return i}function fm(t,e,n){const o=Ye,r=ht,i=Je;Ye=e,ht=!0,Je=t;try{return n()}finally{Ye=o,ht=r,Je=i}}function Pn(t,e){const n=t._pendingEditorState,o=t._rootElement,r=t._headless||o===null;if(n===null)return;const i=t._editorState,s=i._selection,l=n._selection,c=t._dirtyType!==0,d=Ye,u=ht,p=Je,f=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!r&&c&&m!==null){Je=t,Ye=n,ht=!1,t._updating=!0;try{const C=t._dirtyType,x=t._dirtyElements,S=t._dirtyLeaves;m.disconnect(),h=T9(i,n,t,C,x,S)}catch(C){if(C instanceof Error&&t._onError(C),Gc)throw C;return vm(t,null,o,n),G1(t),t._dirtyType=2,Gc=!0,Pn(t,i),void(Gc=!1)}finally{m.observe(o,sm),t._updating=f,Ye=d,ht=u,Je=p}}n._readOnly||(n._readOnly=!0);const g=t._dirtyLeaves,v=t._dirtyElements,_=t._normalizedNodes,y=t._updateTags,b=t._deferred;c&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(C,x){const S=C._decorators;let T=C._pendingDecorators||S;const A=x._nodeMap;let z;for(z in T)A.has(z)||(T===S&&(T=Tm(C)),delete T[z])}(t,n);const k=r?null:rn(Ht(t));if(t._editable&&k!==null&&(c||l===null||l.dirty||!l.is(s))&&o!==null&&!y.has(H9)){Je=t,Ye=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const C=t._blockCursorElement;C!==null&&pd(C,t,o),t6(s,l,t,k,y,o)}(function(C,x,S){let T=C._blockCursorElement;if(H(S)&&S.isCollapsed()&&S.anchor.type==="element"&&x.contains(document.activeElement)){const A=S.anchor,z=A.getNode(),O=A.offset;let B=!1,L=null;if(O===z.getChildrenSize())ud(z.getChildAtIndex(O-1))&&(B=!0);else{const I=z.getChildAtIndex(O);if(I!==null&&ud(I)){const P=I.getPreviousSibling();(P===null||ud(P))&&(B=!0,L=C.getElementByKey(I.__key))}}if(B){const I=C.getElementByKey(z.__key);return T===null&&(C._blockCursorElement=T=function(P){const G=P.theme,R=document.createElement("div");R.contentEditable="false",R.setAttribute("data-lexical-cursor","true");let D=G.blockCursor;if(D!==void 0){if(typeof D=="string"){const K=z1(D);D=G.blockCursor=K}D!==void 0&&R.classList.add(...D)}return R}(C._config)),x.style.caretColor="transparent",void(L===null?I.appendChild(T):I.insertBefore(T,L))}}T!==null&&pd(T,C,x)})(t,o,l)}finally{m!==null&&m.observe(o,sm),Je=p,Ye=d}}h!==null&&function(C,x,S,T,A){const z=Array.from(C._listeners.mutation),O=z.length;for(let B=0;B<O;B++){const[L,I]=z[B];for(const P of I){const G=x.get(P);G!==void 0&&L(G,{dirtyLeaves:T,prevEditorState:A,updateTags:S})}}}(t,h,y,g,i),H(l)||l===null||s!==null&&s.is(l)||t.dispatchCommand(pf,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,za("decorator",t,!0,w)),function(C,x,S){const T=Am(x),A=Am(S);T!==A&&za("textcontent",C,!0,A)}(t,e||i,n),za("update",t,!0,{dirtyElements:v,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:_,prevEditorState:e||i,tags:y}),function(C,x){if(C._deferred=[],x.length!==0){const S=C._updating;C._updating=!0;try{for(let T=0;T<x.length;T++)x[T]()}finally{C._updating=S}}}(t,b),function(C){const x=C._updates;if(x.length!==0){const S=x.shift();if(S){const[T,A]=S;As(C,T,A)}}}(t)}function za(t,e,n,...o){const r=e._updating;e._updating=n;try{const i=Array.from(e._listeners[t]);for(let s=0;s<i.length;s++)i[s].apply(null,o)}finally{e._updating=r}}function mm(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const r=n.shift();if(r){const[i,s]=r,l=t._pendingEditorState;let c;s!==void 0&&(c=s.onUpdate,s.skipTransforms&&(o=!0),s.discrete&&(l===null&&Z(191),l._flushSync=!0),c&&t._deferred.push(c),pm(t,s.tag)),l==null?As(t,i,s):i()}}return o}function As(t,e,n){const o=t._updateTags;let r,i=!1,s=!1;n!==void 0&&(r=n.onUpdate,pm(t,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),r&&t._deferred.push(r);const l=t._editorState;let c=t._pendingEditorState,d=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=ym(c||l),d=!0),c._flushSync=s;const u=Ye,p=ht,f=Je,m=t._updating;Ye=c,ht=!1,t._updating=!0,Je=t;const h=t._headless||t.getRootElement()===null;Qc(null);try{d&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(y,b){const k=y.getEditorState()._selection,w=rn(Ht(y));return H(k)||k==null?Wc(k,w,y,b):k.clone()}(t,n&&n.event||null));const v=t._compositionKey;e(),i=mm(t,i),function(y,b){const k=b.getEditorState()._selection,w=y._selection;if(H(w)){const C=w.anchor,x=w.focus;let S;if(C.type==="text"&&(S=C.getNode(),S.selectionTransform(k,w)),x.type==="text"){const T=x.getNode();S!==T&&T.selectionTransform(k,w)}}}(c,t),t._dirtyType!==0&&(i?function(y,b){const k=b._dirtyLeaves,w=y._nodeMap;for(const C of k){const x=w.get(C);X(x)&&x.isAttached()&&x.isSimpleText()&&!x.isUnmergeable()&&rf(x)}}(c,t):function(y,b){const k=b._dirtyLeaves,w=b._dirtyElements,C=y._nodeMap,x=uo(),S=new Map;let T=k,A=T.size,z=w,O=z.size;for(;A>0||O>0;){if(A>0){b._dirtyLeaves=new Set;for(const B of T){const L=C.get(B);X(L)&&L.isAttached()&&L.isSimpleText()&&!L.isUnmergeable()&&rf(L),L!==void 0&&um(L,x)&&dm(b,L,S),k.add(B)}if(T=b._dirtyLeaves,A=T.size,A>0){Ts++;continue}}b._dirtyLeaves=new Set,b._dirtyElements=new Map,z.delete("root")&&z.set("root",!0);for(const B of z){const L=B[0],I=B[1];if(w.set(L,I),!I)continue;const P=C.get(L);P!==void 0&&um(P,x)&&dm(b,P,S)}T=b._dirtyLeaves,A=T.size,z=b._dirtyElements,O=z.size,Ts++}b._dirtyLeaves=k,b._dirtyElements=w}(c,t),mm(t),function(y,b,k,w){const C=y._nodeMap,x=b._nodeMap,S=[];for(const[T]of w){const A=x.get(T);A!==void 0&&(A.isAttached()||(V(A)&&H1(A,T,C,x,S,w),C.has(T)||w.delete(T),S.push(T)))}for(const T of S)x.delete(T);for(const T of k){const A=x.get(T);A===void 0||A.isAttached()||(C.has(T)||k.delete(T),x.delete(T))}}(l,c,t._dirtyLeaves,t._dirtyElements)),v!==t._compositionKey&&(c._flushSync=!0);const _=c._selection;if(H(_)){const y=c._nodeMap,b=_.anchor.key,k=_.focus.key;y.get(b)!==void 0&&y.get(k)!==void 0||Z(19)}else At(_)&&_._nodes.size===0&&(c._selection=null)}catch(v){return v instanceof Error&&t._onError(v),t._pendingEditorState=l,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void Pn(t)}finally{Ye=u,ht=p,Je=f,t._updating=m,Ts=0}t._dirtyType!==0||t._deferred.length>0||function(v,_){const y=_.getEditorState()._selection,b=v._selection;if(b!==null){if(b.dirty||!b.is(y))return!0}else if(y!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,Pn(t)):d&&u6(()=>{Pn(t)}):(c._flushSync=!1,d&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Nt(t,e,n){Je===t&&n===void 0?e():As(t,e,n)}class qa{constructor(e,n,o){j(this,"element");j(this,"before");j(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new qa(this.element,e,this.after)}withAfter(e){return new qa(this.element,this.before,e)}withElement(e){return this.element===e?this:new qa(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&Z(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&Z(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&Z(224),this.element.replaceChild(e,n),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const n=e==="decorator"&&(Ta||Er||Sa);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const n=this.element,o=e.nodeName==="IMG"?e.nextSibling:null;o&&n.removeChild(o),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const n=this.getManagedLineBreak();if(n){if(e===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const o=this.element,r=this.before,i=document.createElement("br");if(o.insertBefore(i,r),e){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",o.insertBefore(s,i),o.__lexicalLineBreak=s}else o.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let n=this.after;n!==null;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,o,r){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,r))]}const i=hm(n,o);i.push(r);const s=hm(n,this.element);let l=e.getIndexWithinParent();for(let c=0;c<s.length;c++){const d=i[c],u=s[c];if(d===void 0||d<u)break;if(d>u){l+=1;break}}return[e.getParentOrThrow(),l]}}function hm(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let r=0;for(let i=o.previousSibling;i!==null;i=i.previousSibling)r++;n.push(r)}return o!==t&&Z(225),n.reverse()}class Dt extends tn{constructor(n){super(n);j(this,"__first");j(this,"__last");j(this,"__size");j(this,"__format");j(this,"__style");j(this,"__indent");j(this,"__dir");j(this,"__textFormat");j(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(n){super.afterCloneFrom(n),this.__key===n.__key&&(this.__first=n.__first,this.__last=n.__last,this.__size=n.__size),this.__indent=n.__indent,this.__format=n.__format,this.__style=n.__style,this.__dir=n.__dir,this.__textFormat=n.__textFormat,this.__textStyle=n.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const n=this.getFormat();return f9[n]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o),o=o.getNextSibling();return n}getChildrenKeys(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o.__key),o=o.getNextSibling();return n}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const n=Me()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),o=this.getParentOrThrow().getLastChild();return o!==null&&o.is(n)}getAllTextNodes(){const n=[];let o=this.getFirstChild();for(;o!==null;){if(X(o)&&n.push(o),V(o)){const r=o.getAllTextNodes();n.push(...r)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;V(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;V(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),r=o.length;if(n>=r){const s=o[r-1];return V(s)&&s.getLastDescendant()||s||null}const i=o[n];return V(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:He(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&Z(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:He(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&Z(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let r,i;if(n<o/2){for(r=this.getFirstChild(),i=0;r!==null&&i<=n;){if(i===n)return r;r=r.getNextSibling(),i++}return null}for(r=this.getLastChild(),i=o-1;r!==null&&i>=n;){if(i===n)return r;r=r.getPreviousSibling(),i--}return null}getTextContent(){let n="";const o=this.getChildren(),r=o.length;for(let i=0;i<r;i++){const s=o[i];n+=s.getTextContent(),V(s)&&i!==r-1&&!s.isInline()&&(n+=io)}return n}getTextContentSize(){let n=0;const o=this.getChildren(),r=o.length;for(let i=0;i<r;i++){const s=o[i];n+=s.getTextContentSize(),V(s)&&i!==r-1&&!s.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const o=j1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=dt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return Bs(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){Xe();const r=te();let i=n,s=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const d=this.getFirstChild();if(X(d)||V(d))return d.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const d=this.getLastChild();if(X(d)||V(d))return d.select()}}i===void 0&&(i=l),s===void 0&&(s=l);const c=this.__key;return H(r)?(r.anchor.set(c,i,"element"),r.focus.set(c,s,"element"),r.dirty=!0,r):tm(c,i,c,s,"element","element")}selectStart(){const n=this.getFirstDescendant();return n?n.selectStart():this.select()}selectEnd(){const n=this.getLastDescendant();return n?n.selectEnd():this.select()}clear(){const n=this.getWritable();return this.getChildren().forEach(o=>o.remove()),n}append(...n){return this.splice(this.getChildrenSize(),0,n)}setDirection(n){const o=this.getWritable();return o.__dir=n,o}setFormat(n){return this.getWritable().__format=n!==""?j1[n]:0,this}setStyle(n){return this.getWritable().__style=n||"",this}setTextFormat(n){const o=this.getWritable();return o.__textFormat=n,o}setTextStyle(n){const o=this.getWritable();return o.__textStyle=n,o}setIndent(n){return this.getWritable().__indent=n,this}splice(n,o,r){ys(this)&&Z(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();n+o<=i||Z(226,String(n),String(o),String(i));const l=s.__key,c=[],d=[],u=this.getChildAtIndex(n+o);let p=null,f=i-o+r.length;if(n!==0)if(n===i)p=this.getLastChild();else{const h=this.getChildAtIndex(n);h!==null&&(p=h.getPreviousSibling())}if(o>0){let h=p===null?this.getFirstChild():p.getNextSibling();for(let g=0;g<o;g++){h===null&&Z(100);const v=h.getNextSibling(),_=h.__key;zo(h.getWritable()),d.push(_),h=v}}let m=p;for(const h of r){m!==null&&h.is(m)&&(p=m=m.getPreviousSibling());const g=h.getWritable();g.__parent===l&&f--,zo(g);const v=h.__key;if(m===null)s.__first=v,g.__prev=null;else{const _=m.getWritable();_.__next=v,g.__prev=_.__key}h.__key===l&&Z(76),g.__parent=l,c.push(v),m=h}if(n+o===i)m!==null&&(m.getWritable().__next=null,s.__last=m.__key);else if(u!==null){const h=u.getWritable();if(m!==null){const g=m.getWritable();h.__prev=m.__key,g.__next=u.__key}else h.__prev=null}if(s.__size=f,d.length){const h=te();if(H(h)){const g=new Set(d),v=new Set(c),{anchor:_,focus:y}=h;gm(_,g,v)&&Ss(_,_.getNode(),this,p,u),gm(y,g,v)&&Ss(y,y.getNode(),this,p,u),f!==0||this.canBeEmpty()||ut(this)||this.remove()}}return s}getDOMSlot(n){return new qa(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(je(o)){const r=this.getIndent();r>0&&(o.style.paddingInlineStart=40*r+"px");const i=this.getDirection();i&&(o.dir=i)}return{element:o}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},o=this.getTextFormat(),r=this.getTextStyle();return o!==0&&(n.textFormat=o),r!==""&&(n.textStyle=r),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,o){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,o,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,o){const r=this.getDOMSlot(n);let i=r.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const l=o.getElementByKey(s.getKey());l!==null&&(i==null?(r.insertChild(l),i=l):i!==l&&r.replaceChild(l,i),i=i.nextSibling)}}}function V(t){return t instanceof Dt}function gm(t,e,n){let o=t.getNode();for(;o;){const r=o.__key;if(e.has(r)&&!n.has(r))return!0;o=o.getParent()}return!1}class bm extends tn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ve(t){return t instanceof bm}class ja extends Dt{constructor(){super("root");j(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new ja}getTopLevelElementOrThrow(){Z(51)}getTextContent(){const n=this.__cachedText;return!Fa()&&Me()._dirtyType!==0||n===null?super.getTextContent():n}remove(){Z(52)}replace(n){Z(53)}insertBefore(n){Z(54)}insertAfter(n){Z(55)}updateDOM(n,o){return!1}splice(n,o,r){for(const i of r)V(i)||ve(i)||Z(282);return super.splice(n,o,r)}static importJSON(n){return $e().updateFromJSON(n)}collapseAtStart(){return!0}}function qe(t){return t instanceof ja}function ym(t){return new Ns(new Map(t._nodeMap))}function Yc(){return new Ns(new Map([["root",new ja]]))}function _m(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&Z(130,n.name),V(t)){const o=e.children;Array.isArray(o)||Z(59,n.name);const r=t.getChildren();for(let i=0;i<r.length;i++){const s=_m(r[i]);o.push(s)}}return e}class Ns{constructor(e,n){j(this,"_nodeMap");j(this,"_selection");j(this,"_flushSync");j(this,"_readOnly");this._nodeMap=e,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,n){return fm(n&&n.editor||null,this,e)}clone(e){const n=new Ns(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return fm(null,this,()=>({root:_m($e())}))}}class Jc extends Dt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class Ua extends Dt{static getType(){return"paragraph"}static clone(e){return new Ua(e.__key)}createDOM(e){const n=document.createElement("p"),o=Ir(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:i6,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(je(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return Be().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=Be();o.setTextFormat(e.format),o.setTextStyle(e.style);const r=this.getDirection();return o.setDirection(r),o.setFormat(this.getFormatType()),o.setStyle(this.getStyle()),this.insertAfter(o,n),o}collapseAtStart(){const e=this.getChildren();if(e.length===0||X(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function i6(t){const e=Be();return t.style&&(e.setFormat(t.style.textAlign),hd(t,e)),{node:e}}function Be(){return on(new Ua)}function Ha(t){return t instanceof Ua}const _e=0,Wa=1,s6=4;function vm(t,e,n,o){const r=t._keyToDOMMap;r.clear(),t._editorState=Yc(),t._pendingEditorState=o,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const i=t._observer;i!==null&&(i.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",r.set("root",n))}function l6(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:r}=Ps(o),i=o.transform;if(!n.has(i)){n.add(i);const s=o.transform();s&&e.add(s)}if(r){const s=r.$transform;s&&e.add(s),o=r.extends}else{const s=Object.getPrototypeOf(o);o=s.prototype instanceof tn&&s!==tn?s:void 0}}return e}function c6(t){const e=t||{},n=r6(),o=e.theme||{},r=t===void 0?n:e.parentEditor||null,i=e.disableEvents||!1,s=Yc(),l=e.namespace||(r!==null?r._config.namespace:Bm()),c=e.editorState,d=[ja,lo,Pa,Va,Ua,Jc,...e.nodes||[]],{onError:u,html:p}=e,f=e.editable===void 0||e.editable;let m;if(t===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let g=0;g<d.length;g++){let v=d[g],_=null,y=null;if(typeof v!="function"){const w=v;v=w.replace,_=w.with,y=w.withKlass||null}Ps(v);const b=v.getType(),k=l6(v);m.set(b,{exportDOM:p&&p.export?p.export.get(v):void 0,klass:v,replace:_,replaceWithKlass:y,sharedNodeState:w9(d[g]),transforms:k})}}const h=new Vo(s,r,m,{disableEvents:i,namespace:l,theme:o},u||console.error,function(g,v){const _=new Map,y=new Set,b=k=>{Object.keys(k).forEach(w=>{let C=_.get(w);C===void 0&&(C=[],_.set(w,C)),C.push(k[w])})};return g.forEach(k=>{const w=k.klass.importDOM;if(w==null||y.has(w))return;y.add(w);const C=w.call(k.klass);C!==null&&b(C)}),v&&b(v),_}(m,p?p.import:void 0),f,t);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),h}class Vo{constructor(e,n,o,r,i,s,l,c){j(this,"_headless");j(this,"_parentEditor");j(this,"_rootElement");j(this,"_editorState");j(this,"_pendingEditorState");j(this,"_compositionKey");j(this,"_deferred");j(this,"_keyToDOMMap");j(this,"_updates");j(this,"_updating");j(this,"_listeners");j(this,"_commands");j(this,"_nodes");j(this,"_decorators");j(this,"_pendingDecorators");j(this,"_config");j(this,"_dirtyType");j(this,"_cloneNotNeeded");j(this,"_dirtyLeaves");j(this,"_dirtyElements");j(this,"_normalizedNodes");j(this,"_updateTags");j(this,"_observer");j(this,"_key");j(this,"_onError");j(this,"_htmlConversions");j(this,"_window");j(this,"_editable");j(this,"_blockCursorElement");j(this,"_createEditorArgs");this._createEditorArgs=c,this._parentEditor=n,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=o,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Bm(),this._onError=i,this._htmlConversions=s,this._editable=l,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){const n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){const n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){const n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){const n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,o){o===void 0&&Z(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const i=r.get(e);i===void 0&&Z(36,String(e));const s=i[o];return s.add(n),()=>{s.delete(n),i.every(l=>l.size===0)&&r.delete(e)}}registerMutationListener(e,n,o){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation;let s=i.get(n);s===void 0&&(s=new Set,i.set(n,s)),s.add(r);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,r),()=>{s.delete(r),s.size===0&&i.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&Z(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,r=qm(o).get(n.getType());if(!r)return;const i=new Map;for(const s of r.keys())i.set(s,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:o,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,n){const o=this.getRegisteredNode(e);return o.transforms.add(n),o}registerNodeTransform(e,n){const o=this.registerNodeTransformToKlass(e,n),r=[o],i=o.replaceWithKlass;if(i!=null){const s=this.registerNodeTransformToKlass(i,n);r.push(s)}return function(s,l){const c=qm(s.getEditorState()),d=[];for(const u of l){const p=c.get(u);p&&d.push(p)}d.length!==0&&s.update(()=>{for(const u of d)for(const p of u.keys()){const f=He(p);f&&f.markDirty()}},s._pendingEditorState===null?{tag:Ra}:void 0)}(this,r.map(s=>s.klass.getType())),()=>{r.forEach(s=>s.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return re(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const n=this._rootElement;if(e!==n){const o=Ir(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,vm(this,n,e,r),n!==null&&(this._config.disableEvents||z9(n),o!=null&&n.classList.remove(...o)),e!==null){const i=cd(e),s=e.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,G1(this),this._updateTags.add(Ra),Pn(this),this._config.disableEvents||function(l,c){const d=l.ownerDocument;$c.set(l,d);const u=hs.get(d)??0;u<1&&d.addEventListener("selectionchange",If),hs.set(d,u+1),l.__lexicalEditor=c;const p=Of(l);for(let f=0;f<Mc.length;f++){const[m,h]=Mc[f],g=typeof h=="function"?v=>{Pf(v)||(Rf(v),(c.isEditable()||m==="click")&&h(v,c))}:v=>{if(Pf(v))return;Rf(v);const _=c.isEditable();switch(m){case"cut":return _&&re(c,Bc,v);case"copy":return re(c,ps,v);case"paste":return _&&re(c,Tc,v);case"dragstart":return _&&re(c,Ef,v);case"dragover":return _&&re(c,Sf,v);case"dragend":return _&&re(c,O9,v);case"focus":return _&&re(c,P9,v);case"blur":return _&&re(c,V9,v);case"drop":return _&&re(c,xf,v)}};l.addEventListener(m,g),p.push(()=>{l.removeEventListener(m,g)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Ra),Pn(this);za("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&Z(38);let o=e;o._readOnly&&(o=ym(e),o._selection=e._selection?e._selection.clone():null),Z1(this);const r=this._pendingEditorState,i=this._updateTags,s=n!==void 0?n.tag:null;r===null||r.isEmpty()||(s!=null&&i.add(s),Pn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||Pn(this)}parseEditorState(e,n){return function(o,r,i){const s=Yc(),l=Ye,c=ht,d=Je,u=r._dirtyElements,p=r._dirtyLeaves,f=r._cloneNotNeeded,m=r._dirtyType;r._dirtyElements=new Map,r._dirtyLeaves=new Set,r._cloneNotNeeded=new Set,r._dirtyType=0,Ye=s,ht=!1,Je=r,Qc(null);try{const h=r._nodes;Kc(o.root,h),i&&i(),s._readOnly=!0}catch(h){h instanceof Error&&r._onError(h)}finally{r._dirtyElements=u,r._dirtyLeaves=p,r._cloneNotNeeded=f,r._dirtyType=m,Ye=l,ht=c,Je=d}return s}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Pn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,r,i){o._updating?o._updates.push([r,i]):As(o,r,i)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Nt(this,()=>{const r=te(),i=$e();r!==null?r.dirty||st(r.clone()):i.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),h6("focus"),g6(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=rn(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,za("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}j(Vo,"version"),Vo.version="0.38.1+prod.esm";let Xc=null;function Qc(t){Xc=t}let d6=1;function Cm(t,e){const n=ed(t,e);return n===void 0&&Z(30,e),n}function ed(t,e){return t._nodes.get(e)}const u6=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function wm(t){return ve($r(t))}function td(t){const e=document.activeElement;if(!je(e))return!1;const n=e.nodeName;return ve($r(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&Ds(e)==null)}function Za(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!td(e)&&km(e)===t}catch{return!1}}function nd(t){return t instanceof Vo}function km(t){let e=t;for(;e!=null;){const n=Ds(e);if(nd(n))return n;e=Ga(e)}return null}function Ds(t){return t?t.__lexicalEditor:null}function Fo(t){return ws(t)||t.isToken()}function Vn(t){return Fo(t)||t.isSegmented()}function Fn(t){return Rr(t)&&t.nodeType===3}function xm(t){return Rr(t)&&t.nodeType===9}function Mr(t){let e=t;for(;e!=null;){if(Fn(e))return e;e=e.firstChild}return null}function Bs(t,e,n){const o=dt[e];if(n!==null&&(t&o)===(n&o))return t;let r=t^o;return e==="subscript"?r&=~dt.superscript:e==="superscript"?r&=~dt.subscript:e==="lowercase"?(r&=~dt.uppercase,r&=~dt.capitalize):e==="uppercase"?(r&=~dt.lowercase,r&=~dt.capitalize):e==="capitalize"&&(r&=~dt.lowercase,r&=~dt.uppercase),r}function Em(t){return X(t)||so(t)||ve(t)}function p6(t,e){const n=function(){const s=Xc;return Xc=null,s}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);Xe(),lm();const o=Me(),r=co(),i=""+d6++;r._nodeMap.set(i,t),V(t)?o._dirtyElements.set(i,!0):o._dirtyLeaves.add(i),o._cloneNotNeeded.add(i),o._dirtyType=1,t.__key=i}function zo(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),o=e.getWritable(),r=t.getPreviousSibling(),i=t.getNextSibling(),s=i!==null?i.__key:null,l=r!==null?r.__key:null,c=r!==null?r.getWritable():null,d=i!==null?i.getWritable():null;r===null&&(o.__first=s),i===null&&(o.__last=l),c!==null&&(c.__next=s),d!==null&&(d.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,o.__size--}}function Ls(t){lm(),ys(t)&&Z(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=co(),r=Me(),i=o._nodeMap,s=r._dirtyElements;n!==null&&function(c,d,u){let p=c;for(;p!==null;){if(u.has(p))return;const f=d.get(p);if(f===void 0)break;u.set(p,!1),p=f.__parent}}(n,i,s);const l=e.__key;r._dirtyType=1,V(t)?s.set(l,!0):r._dirtyLeaves.add(l)}function tt(t){Xe();const e=Me(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=He(n);o!==null&&o.getWritable()}if(t!==null){const o=He(t);o!==null&&o.getWritable()}}}function uo(){return Fa()?null:Me()._compositionKey}function He(t,e){const n=(e||co())._nodeMap.get(t);return n===void 0?null:n}function Sm(t,e){const n=Ms(t,Me());return n!==void 0?He(n,e):null}function Ms(t,e){return t[`__lexicalKey_${e._key}`]}function $r(t,e){let n=t;for(;n!=null;){const o=Sm(n,e);if(o!==null)return o;n=Ga(n)}return null}function Tm(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function Am(t){return t.read(()=>$e().getTextContent())}function $e(){return Nm(co())}function Nm(t){return t._nodeMap.get("root")}function st(t){Xe();const e=co();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Or(t){const e=Me(),n=function(o,r){let i=o;for(;i!=null;){const s=Ms(i,r);if(s!==void 0)return s;i=Ga(i)}return null}(t,e);return n===null?t===e.getRootElement()?He("root"):null:He(n)}function Dm(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function od(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function Bm(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Lm(t){return Fn(t)?t.nodeValue:null}function rd(t,e,n){const o=rn(Ht(e));if(o===null)return;const r=o.anchorNode;let{anchorOffset:i,focusOffset:s}=o;if(r!==null){let l=Lm(r);const c=$r(r);if(l!==null&&X(c)){if(l===rs&&n){const d=n.length;l=n,i=d,s=d}l!==null&&ad(c,l,i,s,t)}}}function ad(t,e,n,o,r){let i=t;if(i.isAttached()&&(r||!i.isDirty())){const s=i.isComposing();let l=e;(s||r)&&e[e.length-1]===rs&&(l=e.slice(0,-1));const c=i.getTextContent();if(r||l!==c){if(l===""){if(tt(null),Sa||Er||Ta)i.remove();else{const g=Me();setTimeout(()=>{g.update(()=>{i.isAttached()&&i.remove()})},20)}return}const d=i.getParent(),u=Lr(),p=i.getTextContentSize(),f=uo(),m=i.getKey();if(i.isToken()||f!==null&&m===f&&!s||H(u)&&(d!==null&&!d.canInsertTextBefore()&&u.anchor.offset===0||u.anchor.key===t.__key&&u.anchor.offset===0&&!i.canInsertTextBefore()&&!s||u.focus.key===t.__key&&u.focus.offset===p&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const h=te();if(!H(h)||n===null||o===null)return void Mm(i,l,h);if(h.setTextNodeRange(i,n,i,o),i.isSegmented()){const g=Re(i.getTextContent());i.replace(g),i=g}Mm(i,l,h)}}}function Mm(t,e,n){if(t.setTextContent(e),H(n)){const o=t.getKey();for(const r of["anchor","focus"]){const i=n[r];i.type==="text"&&i.key===o&&(i.offset=fo(t,i.offset,"clamp"))}}}function $s(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function f6(t,e){return $s(t,e,"altKey")&&$s(t,e,"ctrlKey")&&$s(t,e,"shiftKey")&&$s(t,e,"metaKey")}function Te(t,e,n){return f6(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const zn={ctrlKey:!Qt,metaKey:Qt},$m={altKey:Qt,ctrlKey:!Qt};function Om(t){return t.key==="Backspace"}function Im(t){return Te(t,"a",zn)}function m6(t){const e=$e();if(H(t)){const n=t.anchor,o=t.focus,r=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(r.getKey(),0,"element"),o.set(r.getKey(),r.getChildrenSize(),"element"),as(t),t}{const n=e.select(0,e.getChildrenSize());return st(as(n)),n}}function Ir(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const r=t[e];if(typeof r=="string"){const i=z1(r);return n[e]=i,i}return r}function id(t,e,n,o,r){if(n.size===0)return;const i=o.__type,s=o.__key,l=e.get(i);l===void 0&&Z(33,i);const c=l.klass;let d=t.get(c);d===void 0&&(d=new Map,t.set(c,d));const u=d.get(s),p=u==="destroyed"&&r==="created";(u===void 0||p)&&d.set(s,p?"updated":r)}function Rm(t,e,n){const o=t.getParent();let r=n,i=t;return o!==null&&(e&&n===0?(r=i.getIndexWithinParent(),i=o):e||n!==i.getChildrenSize()||(r=i.getIndexWithinParent()+1,i=o)),i.getChildAtIndex(e?r-1:r)}function sd(t,e){const n=t.offset;if(t.type==="element")return Rm(t.getNode(),e,n);{const o=t.getNode();if(e&&n===0||!e&&n===o.getTextContentSize()){const r=e?o.getPreviousSibling():o.getNextSibling();return r===null?Rm(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):r}}return null}function Pm(t){const e=Ht(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function re(t,e,n){return function(o,r,i){const s=od(o);for(let l=4;l>=0;l--)for(let c=0;c<s.length;c++){const d=s[c],u=d._commands.get(r);if(u!==void 0){const p=u[l];if(p!==void 0){const f=Array.from(p),m=f.length;let h=!1;if(Nt(d,()=>{for(let g=0;g<m;g++)if(f[g](i,o))return void(h=!0)}),h)return h}}}return!1}(t,e,n)}function Os(t){return!qe(t)&&!t.isLastChild()&&!t.isInline()}function qo(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&Z(75,e),n}function Ga(t){const e=t.assignedSlot||t.parentElement;return fd(e)?e.host:e}function Vm(t){return xm(t)?t:je(t)?t.ownerDocument:null}function h6(t){Xe(),Me()._updateTags.add(t)}function g6(t){Xe(),Me()._deferred.push(t)}function ld(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function cd(t){const e=Vm(t);return e?e.defaultView:null}function Ht(t){const e=t._window;return e===null&&Z(78),e}function b6(t){let e=t.getParentOrThrow();for(;e!==null;){if(ut(e))return e;e=e.getParentOrThrow()}return e}function ut(t){return qe(t)||V(t)&&t.isShadowRoot()}function on(t){const e=Me(),n=t.getType(),o=ed(e,n);o===void 0&&Z(200,t.constructor.name,n);const{replace:r,replaceWithKlass:i}=o;if(r!==null){const s=r(t),l=s.constructor;return i!==null?s instanceof i||Z(201,i.name,i.getType(),l.name,l.getType(),t.constructor.name,n):s instanceof t.constructor&&l!==t.constructor||Z(202,l.name,l.getType(),t.constructor.name,n),s.__key===t.__key&&Z(203,t.constructor.name,n,l.name,l.getType()),s}return t}function dd(t,e){!qe(t.getParent())||V(e)||ve(e)||Z(99)}function y6(t){const e=He(t);return e===null&&Z(63,t),e}function ud(t){return(ve(t)||V(t)&&!t.canBeEmpty())&&!t.isInline()}function pd(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function rn(t){return Xt?(t||window).getSelection():null}function _6(t){const e=cd(t);return e?e.getSelection():null}function Fm(t){return je(t)&&t.tagName==="A"}function je(t){return Rr(t)&&t.nodeType===1}function Rr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function fd(t){return Rr(t)&&t.nodeType===11}function md(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return t.nodeName.match(e)!==null}function Is(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return t.nodeName.match(e)!==null}function Wt(t){if(ve(t)&&!t.isInline())return!0;if(!V(t)||ut(t))return!1;const e=t.getFirstChild(),n=e===null||so(e)||X(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function Rs(){return Me()}const zm=new WeakMap,v6=new Map;function qm(t){if(!t._readOnly&&t.isEmpty())return v6;t._readOnly||Z(192);let e=zm.get(t);return e||(e=function(n){const o=new Map;for(const[r,i]of n._nodeMap){const s=i.__type;let l=o.get(s);l||(l=new Map,o.set(s,l)),l.set(r,i)}return o}(t),zm.set(t,e)),e}function jm(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function C6(t){return(e=jm(t))[Ff]=!0,e;var e}function hd(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function w6(t){return t.__lexicalUnmanaged===!0}function Ka(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==tn[e]}function Ps(t){const e=U1 in t.prototype?t.prototype[U1]():void 0,n=function(s){if(!(s===tn||s.prototype instanceof tn)){let l="<unknown>",c="<unknown>";try{l=s.getType()}catch{}try{Vo.version&&(c=JSON.parse(Vo.version))}catch{}Z(290,s.name,l,c)}return s===bm||s===Dt||s===tn}(t),o=!n&&Ka(t,"getType")?t.getType():void 0;let r,i=o;if(e)if(o)r=e[o];else for(const[s,l]of Object.entries(e))i=s,r=l;if(!n&&i&&(Ka(t,"getType")||(t.getType=()=>i),Ka(t,"clone")||(t.clone=s=>(Qc(s),new t)),Ka(t,"importJSON")||(t.importJSON=r&&r.$importJSON||(s=>new t().updateFromJSON(s))),!Ka(t,"importDOM")&&r)){const{importDOM:s}=r;s&&(t.importDOM=()=>s)}return{ownNodeConfig:r,ownNodeType:i}}function k6(t){const e=Rs();return Xe(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const Zt=(t,e)=>{let n=t;for(;n!=null&&!qe(n);){if(e(n))return n;n=n.getParent()}return null},x6={next:"previous",previous:"next"};class gd{constructor(e){j(this,"origin");this.origin=e}[Symbol.iterator](){return Hm({hasNext:Vr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return nt(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return nt(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){const o=this.getNodeAtCaret();return e.is(this.origin)||e.is(o)||(o===null?this.insert(e):o.replace(e,n)),this}splice(e,n,o="next"){const r=o===this.direction?n:Array.from(n).reverse();let i=this;const s=this.getParentAtCaret(),l=new Map;for(let c=i.getAdjacentCaret();c!==null&&l.size<e;c=c.getAdjacentCaret()){const d=c.origin.getWritable();l.set(d.getKey(),d)}for(const c of r){if(l.size>0){const d=i.getNodeAtCaret();if(d){if(l.delete(d.getKey()),l.delete(c.getKey()),!(d.is(c)||i.origin.is(c))){const u=c.getParent();u&&u.is(s)&&c.remove(),d.replace(c)}}else d===null&&Z(263,Array.from(l).join(" "))}else i.insert(c);i=nt(c,this.direction)}for(const c of l.values())c.remove();return this}}class Ya extends gd{constructor(){super(...arguments);j(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:an(n,this.direction)}getParentCaret(n="root"){return nt(bd(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Pr(this.direction);return nt(this.getNodeAtCaret(),n)||an(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Ya&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const E6={root:qe,shadowRoot:ut};function Pr(t){return x6[t]}function bd(t,e="root"){return E6[e](t)?null:t}class jo extends gd{constructor(){super(...arguments);j(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:nt(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return V(this.origin)?an(this.origin,this.direction):null}getParentCaret(n="root"){return nt(bd(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Pr(this.direction);return nt(this.getNodeAtCaret(),n)||an(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof jo&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof jo||n instanceof Uo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Uo extends gd{constructor(n,o){super(n);j(this,"type","text");j(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Ho(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return nt(bd(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Ho(this.origin,Pr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Uo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof jo||n instanceof Uo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return nt(this.origin,this.direction)}}function po(t){return t instanceof Uo}function Vr(t){return t instanceof jo}function wn(t){return t instanceof Ya}const S6={next:class extends Uo{constructor(){super(...arguments);j(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Uo{constructor(){super(...arguments);j(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},T6={next:class extends jo{constructor(){super(...arguments);j(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends jo{constructor(){super(...arguments);j(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},A6={next:class extends Ya{constructor(){super(...arguments);j(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Ya{constructor(){super(...arguments);j(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function nt(t,e){return t?new T6[e](t):null}function Ho(t,e,n){return t?new S6[e](t,fo(t,n)):null}function fo(t,e,n="error"){const o=t.getTextContentSize();let r=e==="next"?o:e==="previous"?0:e;return(r<0||r>o)&&(n!=="clamp"&&P1(284,String(e),String(o),t.getKey()),r=r<0?0:o),r}function Um(t,e){return new D6(t,e)}function an(t,e){return V(t)?new A6[e](t):null}function N6(t){return t&&t.getChildCaret()||t}function yd(t){return t&&N6(t.getAdjacentCaret())}class _d{constructor(e,n,o){j(this,"type","node-caret-range");j(this,"direction");j(this,"anchor");j(this,"focus");this.anchor=e,this.focus=n,this.direction=o}getLatest(){const e=this.anchor.getLatest(),n=this.focus.getLatest();return e===this.anchor&&n===this.focus?this:new _d(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=r=>{const i=this[r].getLatest();return po(i)?function(s,l){const{direction:c,origin:d}=s,u=fo(d,l==="focus"?Pr(c):c);return Um(s,u-s.offset)}(i,r):null},n=e("anchor"),o=e("focus");if(n&&o){const{caret:r}=n,{caret:i}=o;if(r.isSameNodeCaret(i))return[Um(r,i.offset-r.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=po(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),r=po(o),i=s=>s.isSameNodeCaret(o)?null:yd(s)||s.getParentCaret(e);return Hm({hasNext:s=>s!==null&&!(r&&o.isSameNodeCaret(s)),initial:n.isSameNodeCaret(o)?null:i(n),map:s=>s,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class D6{constructor(e,n){j(this,"type","slice");j(this,"caret");j(this,"distance");this.caret=e,this.distance=n}getSliceIndices(){const{distance:e,caret:{offset:n}}=this,o=n+e;return o<n?[o,n]:[n,o]}getTextContent(){const[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:n}}=this,[o,r]=this.getSliceIndices(),i=e.getTextContent();return Ho(e.setTextContent(i.slice(0,o)+i.slice(r)),n,o)}}function vd(t){return mo(t,nt($e(),t.direction))}function B6(t){return mo(t,t)}function mo(t,e){return t.direction!==e.direction&&Z(265),new _d(t,e,t.direction)}function Hm(t){const{initial:e,hasNext:n,step:o,map:r}=t;let i=e;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const s={done:!1,value:r(i)};return i=o(i),s}}}function Wm(t,e){const n=Fs(t.origin,e.origin);switch(n===null&&Z(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",r=e.type==="text";return o&&r?function(i,s){return Math.sign(i-s)}(t.offset,e.offset):t.type===e.type?0:o?-1:r?1:t.type==="child"?-1:1}case"ancestor":return t.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return Zm(n)}}function Zm(t){const{a:e,b:n}=t,o=e.__key,r=n.__key;let i=e,s=n;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===r)return-1;if(s.__key===o)return 1}return i===null?1:-1}function Vs(t,e){return e.is(t)}function Gm(t){return V(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Fs(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,r]=Gm(t);o;r=o,o=o.getParent())n.set(o,r);for(let[o,r]=Gm(e);o;r=o,o=o.getParent()){const i=n.get(o);if(i!==void 0)return i===null?(Vs(t,o)||Z(276),{commonAncestor:o,type:"ancestor"}):r===null?(Vs(e,o)||Z(277),{commonAncestor:o,type:"descendant"}):((V(i)||Vs(t,i))&&(V(r)||Vs(e,r))&&o.is(i.getParent())&&o.is(r.getParent())||Z(278),{a:i,b:r,commonAncestor:o,type:"branch"})}return null}function qn(t,e){const{type:n,key:o,offset:r}=t,i=y6(t.key);return n==="text"?(X(i)||Z(266,i.getType(),o),Ho(i,e,r)):(V(i)||Z(267,i.getType(),o),$6(i,t.offset,e))}function Wo(t,e){const{origin:n,direction:o}=e,r=o==="next";po(e)?t.set(n.getKey(),e.offset,"text"):Vr(e)?X(n)?t.set(n.getKey(),fo(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(r?1:0),"element"):(wn(e)&&V(n)||Z(268),t.set(n.getKey(),r?0:n.getChildrenSize(),"element"))}function L6(t){const e=te(),n=H(e)?e:xs();return zs(n,t),st(n),n}function zs(t,e){Wo(t.anchor,e.anchor),Wo(t.focus,e.focus)}function Km(t){const{anchor:e,focus:n}=t,o=qn(e,"next"),r=qn(n,"next"),i=Wm(o,r)<=0?"next":"previous";return mo(Fr(o,i),Fr(r,i))}function Cd(t){const{direction:e,origin:n}=t,o=nt(n,Pr(e)).getNodeAtCaret();return o?nt(o,e):an(n.getParentOrThrow(),e)}function Ym(t,e="root"){const n=[t];for(let o=wn(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(Cd(o));return n}function wd(t){return!!t&&t.origin.isAttached()}function M6(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const i=Xm(t,o),s=Ym(i.anchor,n),l=Ym(i.focus.getFlipped(),n),c=new Set,d=[];for(const h of i.iterNodeCarets(n))if(wn(h))c.add(h.origin.getKey());else if(Vr(h)){const{origin:g}=h;V(g)&&!c.has(g.getKey())||d.push(g)}for(const h of d)h.remove();for(const h of i.getTextSlices()){if(!h)continue;const{origin:g}=h.caret,v=g.getTextContentSize(),_=Cd(nt(g,o)),y=g.getMode();if(Math.abs(h.distance)===v&&r==="removeEmptySlices"||y==="token"&&h.distance!==0)_.remove();else if(h.distance!==0){r="removeEmptySlices";let b=h.removeTextSlice();const k=h.caret.origin;if(y==="segmented"){const w=b.origin,C=Re(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());_.replaceOrInsert(C),b=Ho(C,o,b.offset)}k.is(s[0].origin)&&(s[0]=b),k.is(l[0].origin)&&(l[0]=b.getFlipped())}}let u,p;for(const h of s)if(wd(h)){u=Gt(h);break}for(const h of l)if(wd(h)){p=Gt(h);break}const f=function(h,g,v){if(!h||!g)return null;const _=h.getParentAtCaret(),y=g.getParentAtCaret();if(!_||!y)return null;const b=_.getParents().reverse();b.push(_);const k=y.getParents().reverse();k.push(y);const w=Math.min(b.length,k.length);let C;for(C=0;C<w&&b[C]===k[C];C++);const x=(A,z)=>{let O;for(let B=C;B<A.length;B++){const L=A[B];if(ut(L))return;!O&&z(L)&&(O=L)}return O},S=x(b,Wt),T=S&&x(k,A=>v.has(A.getKey())&&Wt(A));return S&&T?[S,T]:null}(u,p,c);if(f){const[h,g]=f;an(h,"previous").splice(0,g.getChildren()),g.remove()}const m=[u,p,...s,...l].find(wd);if(m)return B6(Fr(Gt(m),t.direction));Z(269,JSON.stringify(s.map(h=>h.origin.__key)))}function Gt(t){const e=function(r){let i=r;for(;wn(i);){const s=yd(i);if(!wn(s))break;i=s}return i}(t.getLatest()),{direction:n}=e;if(X(e.origin))return po(e)?e:Ho(e.origin,n,n);const o=e.getAdjacentCaret();return Vr(o)&&X(o.origin)?Ho(o.origin,n,Pr(n)):e}function Jm(t){return po(t)&&t.offset!==fo(t.origin,t.direction)}function Fr(t,e){return t.direction===e?t:t.getFlipped()}function Xm(t,e){return t.direction===e?t:mo(Fr(t.focus,e),Fr(t.anchor,e))}function $6(t,e,n){let o=an(t,"next");for(let r=0;r<e;r++){const i=o.getAdjacentCaret();if(i===null)break;o=i}return Fr(o,n)}const kd=new Map;function Qm(t){const e={};if(!t)return e;const n=t.split(";");for(const o of n)if(o!==""){const[r,i]=o.split(/:([^]+)/);r&&i&&(e[r.trim()]=i.trim())}return e}function eh(t){let e=kd.get(t);return e===void 0&&(e=Qm(t),kd.set(t,e)),e}function th(t){const e=Rs().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function nh(t){return th(qe(t)?t:t.getParentOrThrow())}function oh(t){const e=nh(t);return e!==null&&e.direction==="rtl"}function rh(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Vn(e)&&o!==null){const[r,i]=o,s=t.isBackward(),l=r.getNode(),c=i.getNode(),d=e.is(l),u=e.is(c);if(d||u){const[p,f]=Uc(t),m=l.is(c),h=e.is(s?c:l),g=e.is(s?l:c);let v,_=0;m?(_=p>f?f:p,v=p>f?p:f):h?(_=s?f:p,v=void 0):g&&(_=0,v=s?p:f);const y=e.__text.slice(_,v);y!==e.__text&&(n==="clone"&&(e=C6(e)),e.__text=y)}}return e}function O6(t){const e=t.getStyle(),n=Qm(e);kd.set(e,n)}function I6(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function xd(t,e,n=I6){if(t===null)return;const o=t.getStartEndPoints(),r=new Map;let i=null;if(o){const[s,l]=o;i=xs(),i.anchor.set(s.key,s.offset,s.type),i.focus.set(l.key,l.offset,l.type);const c=Zt(s.getNode(),Wt),d=Zt(l.getNode(),Wt);V(c)&&r.set(c.getKey(),c),V(d)&&r.set(d.getKey(),d)}for(const s of t.getNodes())if(V(s)&&Wt(s))r.set(s.getKey(),s);else if(o===null){const l=Zt(s,Wt);V(l)&&r.set(l.getKey(),l)}for(const[s,l]of r){const c=e();n(l,c),l.replace(c,!0),i&&(s===i.anchor.key&&i.anchor.set(c.getKey(),i.anchor.offset,i.anchor.type),s===i.focus.key&&i.focus.set(c.getKey(),i.focus.offset,i.focus.type))}i&&t.is(te())&&st(i)}function ah(t){const e=ih(t);return e!==null&&e.writingMode==="vertical-rl"}function ih(t){const e=t.anchor.getNode();return V(e)?th(e):nh(e)}function sh(t,e){let n=ah(t)?!e:e;lh(t)&&(n=!n);const o=qn(t.focus,n?"previous":"next");if(Jm(o))return!1;for(const r of vd(o)){if(wn(r))return!r.origin.isInline();if(!V(r.origin)){if(ve(r.origin))return!0;break}}return!1}function R6(t,e,n,o){t.modify(e?"extend":"move",n,o)}function lh(t){const e=ih(t);return e!==null&&e.direction==="rtl"}function ch(t,e,n){const o=lh(t);let r;r=ah(t)||o?!n:n,R6(t,e,r,"character")}function P6(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Ed=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,V6=Ed&&"documentMode"in document?document.documentMode:null;!(!Ed||!("InputEvent"in window)||V6)&&"getTargetRanges"in new window.InputEvent("input");function dh(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}function Ja(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const F6=Ed;function jn(t,...e){const n=dh(...e);n.length>0&&t.classList.add(...n)}function Sd(t,...e){const n=dh(...e);n.length>0&&t.classList.remove(...n)}function z6(t){return t?t.getAdjacentCaret():null}function q6(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function j6(t){const e=Zt(t,n=>V(n)&&!n.isInline());return V(e)||P6(4,t.__key),e}function Zo(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function ho(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Td(t){let e=1,n=t.getParent();for(;n!=null;){if(we(n)){const o=n.getParent();if(de(o)){e++,n=o.getParent();continue}ho(40)}return e}return e}function Ad(t){let e=t.getParent();de(e)||ho(40);let n=e;for(;n!==null;)n=n.getParent(),de(n)&&(e=n);return e}function uh(t){let e=[];const n=t.getChildren().filter(we);for(let o=0;o<n.length;o++){const r=n[o],i=r.getFirstChild();de(i)?e=e.concat(uh(i)):e.push(r)}return e}function kn(t){return we(t)&&de(t.getFirstChild())}function ph(t){return Bt().append(t)}function fh(t,e){return we(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function mh(t){const e=te();if(e!==null){let n=e.getNodes();if(H(e)){const r=e.getStartEndPoints();r===null&&ho(143);const[i]=r,s=i.getNode(),l=s.getParent();if(ut(s)){const c=s.getFirstChild();if(c)n=c.selectStart().getNodes();else{const d=Be();s.append(d),n=d.select().getNodes()}}else if(fh(s,n)){const c=gt(t);if(ut(l)){s.replace(c);const d=Bt();V(s)&&(d.setFormat(s.getFormatType()),d.setIndent(s.getIndent())),c.append(d)}else if(we(s)){const d=s.getParentOrThrow();Go(c,d.getChildren()),d.replace(c)}return}}const o=new Set;for(let r=0;r<n.length;r++){const i=n[r];if(V(i)&&i.isEmpty()&&!we(i)&&!o.has(i.getKey())){hh(i,t);continue}let s=Em(i)?i.getParent():we(i)&&i.isEmpty()?i:null;for(;s!=null;){const l=s.getKey();if(de(s)){if(!o.has(l)){const c=gt(t);Go(c,s.getChildren()),s.replace(c),o.add(l)}break}{const c=s.getParent();if(ut(c)&&!o.has(l)){o.add(l),hh(s,t);break}s=c}}}}}function Go(t,e){t.splice(t.getChildrenSize(),0,e)}function hh(t,e){if(de(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=Bt();let i;if(Go(r,t.getChildren()),de(n)&&e===n.getListType())n.append(r),de(o)&&e===o.getListType()&&(Go(n,o.getChildren()),o.remove()),i=n;else if(de(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(r),i=o;else{const s=gt(e);s.append(r),t.replace(s),i=s}return r.setFormat(t.getFormatType()),r.setIndent(t.getIndent()),t.remove(),i}function Nd(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&kn(n)&&kn(o)&&(Nd(n.getFirstChild(),o.getFirstChild()),o.remove());const r=e.getChildren();r.length>0&&t.append(...r),e.remove()}function U6(){const t=te();if(H(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(fh(o,n))e.add(Ad(o));else for(let r=0;r<n.length;r++){const i=n[r];if(Em(i)){const s=q6(i,go);s!=null&&e.add(Ad(s))}}for(const r of e){let i=r;const s=uh(r);for(const l of s){const c=Be().setTextStyle(t.style).setTextFormat(t.format);Go(c,l.getChildren()),i.insertAfter(c),i=c,l.__key===t.anchor.key&&Wo(t.anchor,Gt(an(c,"next"))),l.__key===t.focus.key&&Wo(t.focus,Gt(an(c,"next"))),l.remove()}r.remove()}}}function gh(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())we(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),de(o.getFirstChild())||n++)}function H6(t){const e=new Set;if(kn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),r=t.getPreviousSibling();if(kn(o)&&kn(r)){const i=r.getFirstChild();if(de(i)){i.append(t);const s=o.getFirstChild();de(s)&&(Go(i,s.getChildren()),o.remove(),e.add(o.getKey()))}}else if(kn(o)){const i=o.getFirstChild();if(de(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(t)}}else if(kn(r)){const i=r.getFirstChild();de(i)&&i.append(t)}else if(de(n)){const i=Bt().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),s=gt(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());i.append(s),s.append(t),r?r.insertAfter(i):o?o.insertBefore(i):n.append(i)}}function W6(t){if(kn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(de(n?n.getParent():void 0)&&we(n)&&de(e)){const o=e?e.getFirstChild():void 0,r=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(r))n.insertAfter(t),e.isEmpty()&&n.remove();else{const i=e.getListType(),s=Bt(),l=gt(i);s.append(l),t.getPreviousSiblings().forEach(u=>l.append(u));const c=Bt(),d=gt(i);c.append(d),Go(d,t.getNextSiblings()),n.insertBefore(s),n.insertAfter(c),n.replace(t)}}}function Z6(){const t=te();if(!H(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!we(e)||e.getChildrenSize()!==0)return!1;const n=Ad(e),o=e.getParent();de(o)||ho(40);const r=o.getParent();let i;if(ut(r))i=Be(),n.insertAfter(i);else{if(!we(r))return!1;i=Bt(),r.insertAfter(i)}i.setTextStyle(t.style).setTextFormat(t.format).select();const s=e.getNextSiblings();if(s.length>0){const l=gt(o.getListType());if(we(i)){const c=Bt();c.append(l),i.insertAfter(c)}else i.insertAfter(l);l.append(...s)}return function(l){let c=l;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const d=c.getParent();if(d==null||!we(d)&&!de(d))break;c=d}c.remove()}(e),!0}function qs(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}let go=class extends Dt{constructor(n=1,o=void 0,r){super(r);j(this,"__value");j(this,"__checked");this.__value=n===void 0?1:n,this.__checked=o}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const o=n.getParent();de(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Dt,importDOM:{li:()=>({conversion:G6,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const o=document.createElement("li");return this.updateListItemDOM(null,o,n),o}updateListItemDOM(n,o,r){(function(l,c,d){const u=c.getParent();!de(u)||u.getListType()!=="check"||de(c.getFirstChild())?(l.removeAttribute("role"),l.removeAttribute("tabIndex"),l.removeAttribute("aria-checked")):(l.setAttribute("role","checkbox"),l.setAttribute("tabIndex","-1"),d&&c.__checked===d.__checked||l.setAttribute("aria-checked",c.getChecked()?"true":"false"))})(o,this,n),o.value=this.__value,function(l,c,d){const u=[],p=[],f=c.list,m=f?f.listitem:void 0;let h;if(f&&f.nested&&(h=f.nested.listitem),m!==void 0&&u.push(...qs(m)),f){const g=d.getParent(),v=de(g)&&g.getListType()==="check",_=d.getChecked();v&&!_||p.push(f.listitemUnchecked),v&&_||p.push(f.listitemChecked),v&&u.push(_?f.listitemChecked:f.listitemUnchecked)}if(h!==void 0){const g=qs(h);d.getChildren().some(v=>de(v))?u.push(...g):p.push(...g)}p.length>0&&Sd(l,...p),u.length>0&&jn(l,...u)}(o,r.theme,this);const i=n?n.__style:"",s=this.__style;i!==s&&(s===""?o.removeAttribute("style"):o.style.cssText=s),function(l,c,d){const u=eh(c.__textStyle);for(const p in u)l.style.setProperty(`--listitem-marker-${p}`,u[p]);if(d)for(const p in eh(d.__textStyle))p in u||l.style.removeProperty(`--listitem-marker-${p}`)}(o,this,n)}updateDOM(n,o,r){const i=o;return this.updateListItemDOM(n,i,r),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const o=this.createDOM(n._config),r=this.getFormatType();r&&(o.style.textAlign=r);const i=this.getDirection();return i&&(o.dir=i),{element:o}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...n){for(let o=0;o<n.length;o++){const r=n[o];if(V(r)&&this.canMergeWith(r)){const i=r.getChildren();this.append(...i),r.remove()}else super.append(r)}return this}replace(n,o){if(we(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!de(r))return n;if(r.__first===this.getKey())r.insertBefore(n);else if(r.__last===this.getKey())r.insertAfter(n);else{const i=gt(r.getListType());let s=this.getNextSibling();for(;s;){const l=s;s=s.getNextSibling(),i.append(l)}r.insertAfter(n),n.insertAfter(i)}return o&&(V(n)||ho(139),this.getChildren().forEach(i=>{n.append(i)})),this.remove(),r.getChildrenSize()===0&&r.remove(),n}insertAfter(n,o=!0){const r=this.getParentOrThrow();if(de(r)||ho(39),we(n))return super.insertAfter(n,o);const i=this.getNextSiblings();if(r.insertAfter(n,o),i.length!==0){const s=gt(r.getListType());i.forEach(l=>s.append(l)),n.insertAfter(s,o)}return n}remove(n){const o=this.getPreviousSibling(),r=this.getNextSibling();super.remove(n),o&&r&&kn(o)&&kn(r)&&(Nd(o.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(n,o=!0){const r=Bt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,o),r}collapseAtStart(n){const o=Be();this.getChildren().forEach(l=>o.append(l));const r=this.getParentOrThrow(),i=r.getParentOrThrow(),s=we(i);if(r.getChildrenSize()===1)if(s)r.remove(),i.select();else{r.insertBefore(o),r.remove();const l=n.anchor,c=n.focus,d=o.getKey();l.type==="element"&&l.getNode().is(this)&&l.set(d,l.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(d,c.offset,"element")}else r.insertBefore(o),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const o=this.getWritable();return o.__value=n,o}getChecked(){const n=this.getLatest();let o;const r=this.getParent();return de(r)&&(o=r.getListType()),o==="check"?!!n.__checked:void 0}setChecked(n){const o=this.getWritable();return o.__checked=n,o}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let o=n.getParentOrThrow(),r=0;for(;we(o);)o=o.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(n){typeof n!="number"&&ho(117),(n=Math.floor(n))>=0||ho(199);let o=this.getIndent();for(;o!==n;)o<n?(H6(this),o++):(W6(this),o--);return this}canInsertAfter(n){return we(n)}canReplaceWith(n){return we(n)}canMergeWith(n){return we(n)||Ha(n)}extractWithChild(n,o){if(!H(o))return!1;const r=o.anchor.getNode(),i=o.focus.getNode();return this.isParentOf(r)&&this.isParentOf(i)&&this.getTextContent().length===o.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return gt("bullet")}canMergeWhenEmpty(){return!0}};function G6(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return bh(n)}if(t.classList.contains("joplin-checkbox")){for(const n of t.children)if(n.classList.contains("checkbox-wrapper")&&n.children.length>0&&n.children[0].tagName==="INPUT")return bh(n.children[0])}const e=t.getAttribute("aria-checked");return{node:Bt(e==="true"||e!=="false"&&void 0)}}function bh(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:Bt(t.hasAttribute("checked"))}}function Bt(t){return on(new go(void 0,t))}function we(t){return t instanceof go}let Ko=class extends Dt{constructor(n="number",o=1,r){super(r);j(this,"__tag");j(this,"__start");j(this,"__listType");const i=Y6[n]||n;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=o}$config(){return this.config("list",{$transform:n=>{(function(o){const r=o.getNextSibling();de(r)&&o.getListType()===r.getListType()&&Nd(o,r)})(n),gh(n)},extends:Dt,importDOM:{ol:()=>({conversion:_h,priority:0}),ul:()=>({conversion:_h,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const o=this.getWritable();return o.__listType=n,o.__tag=n==="number"?"ol":"ul",o}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const o=this.getWritable();return o.__start=n,o}createDOM(n,o){const r=this.__tag,i=document.createElement(r);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,yh(i,n.theme,this),i}updateDOM(n,o,r){return n.__tag!==this.__tag||n.__listType!==this.__listType||(yh(o,r.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const o=this.createDOM(n._config,n);return je(o)&&(this.__start!==1&&o.setAttribute("start",String(this.__start)),this.__listType==="check"&&o.setAttribute("__lexicalListType","check")),{element:o}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,o,r){let i=r;for(let s=0;s<r.length;s++){const l=r[s];we(l)||(i===r&&(i=[...r]),i[s]=Bt().append(!V(l)||de(l)||l.isInline()?l:Re(l.getTextContent())))}return super.splice(n,o,i)}extractWithChild(n){return we(n)}};function yh(t,e,n){const o=[],r=[],i=e.list;if(i!==void 0){const s=i[`${n.__tag}Depth`]||[],l=Td(n)-1,c=l%s.length,d=s[c],u=i[n.__tag];let p;const f=i.nested,m=i.checklist;if(f!==void 0&&f.list&&(p=f.list),u!==void 0&&o.push(u),m!==void 0&&n.__listType==="check"&&o.push(m),d!==void 0){o.push(...qs(d));for(let h=0;h<s.length;h++)h!==c&&r.push(n.__tag+h)}if(p!==void 0){const h=qs(p);l>1?o.push(...h):r.push(...h)}}r.length>0&&Sd(t,...r),o.length>0&&jn(t,...o)}function K6(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(we(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(i=>{de(i)&&e.push(ph(i))})}else e.push(ph(o))}return e}function _h(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=gt("number",t.start):e==="ul"&&(n=function(o){if(o.getAttribute("__lexicallisttype")==="check"||o.classList.contains("contains-task-list")||o.getAttribute("data-is-checklist")==="1")return!0;for(const r of o.childNodes)if(je(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?gt("check"):gt("bullet")),{after:K6,node:n}}const Y6={ol:"number",ul:"bullet"};function gt(t="number",e=1){return on(new Ko(t,e))}function de(t){return t instanceof Ko}const J6=le("UPDATE_LIST_START_COMMAND"),vh=le("INSERT_UNORDERED_LIST_COMMAND"),Ch=le("INSERT_ORDERED_LIST_COMMAND"),X6=le("REMOVE_LIST_COMMAND");function Q6(t){return Ja(t.registerCommand(Ch,()=>(mh("number"),!0),Wa),t.registerCommand(J6,e=>{const{listNodeKey:n,newStart:o}=e,r=He(n);return!!de(r)&&(r.getListType()==="number"&&(r.setStart(o),gh(r)),!0)},Wa),t.registerCommand(vh,()=>(mh("bullet"),!0),Wa),t.registerCommand(X6,()=>(U6(),!0),Wa),t.registerCommand(Ba,()=>Z6(),Wa),t.registerNodeTransform(go,e=>{const n=e.getFirstChild();if(n){if(X(n)){const o=n.getStyle(),r=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const o=te();H(o)&&(o.style!==e.getTextStyle()||o.format!==e.getTextFormat())&&o.isCollapsed()&&e.is(o.anchor.getNode())&&e.setTextStyle(o.style).setTextFormat(o.format)}}),t.registerNodeTransform(lo,e=>{const n=e.getParent();if(we(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function ex(t){const e=n=>{const o=n.getParent();if(de(n.getFirstChild())||!de(o))return;const r=Zt(n,i=>we(i)&&de(i.getParent())&&we(i.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(we(r)){const i=r.getPreviousSibling();if(we(i)){const s=function(c){let d=c,u=d.getFirstChild();for(;de(u);){const p=u.getLastChild();if(!we(p))break;d=p,u=d.getFirstChild()}return d}(i),l=s.getParent();if(de(l)){const c=Td(l);c+1<Td(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(Ko,n=>{const o=[n];for(;o.length>0;){const r=o.shift();if(de(r)){for(const i of r.getChildren())if(we(i)){e(i);const s=i.getFirstChild();de(s)&&o.push(s)}}}})}function tx(t,e){const n=xm(e)?e.body.childNodes:e.childNodes;let o=[];const r=[];for(const i of n)if(!kh.has(i.nodeName)){const s=xh(i,t,r,!1);s!==null&&(o=o.concat(s))}return function(i){for(const s of i)s.getNextSibling()instanceof Jc&&s.insertAfter(nn());for(const s of i){const l=s.getChildren();for(const c of l)s.insertBefore(c);s.remove()}}(r),o}function nx(t,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),o=$e().getChildren();for(let r=0;r<o.length;r++)wh(t,o[r],n,e);return n.innerHTML}function wh(t,e,n,o=null){let r=o===null||e.isSelected(o);const i=V(e)&&e.excludeFromCopy("html");let s=e;o!==null&&X(e)&&(s=rh(o,e,"clone"));const l=V(s)?s.getChildren():[],c=ed(t,s.getType());let d;d=c&&c.exportDOM!==void 0?c.exportDOM(t,s):s.exportDOM(t);const{element:u,after:p}=d;if(!u)return!1;const f=document.createDocumentFragment();for(let m=0;m<l.length;m++){const h=l[m],g=wh(t,h,f,o);!r&&V(e)&&g&&e.extractWithChild(h,o,"html")&&(r=!0)}if(r&&!i){if((je(u)||fd(u))&&u.append(f),n.append(u),p){const m=p.call(s,u);m&&(fd(u)?u.replaceChildren(m):u.replaceWith(m))}}else n.append(f);return r}const kh=new Set(["STYLE","SCRIPT"]);function xh(t,e,n,o,r=new Map,i){let s=[];if(kh.has(t.nodeName))return s;let l=null;const c=function(h,g){const{nodeName:v}=h,_=g._htmlConversions.get(v.toLowerCase());let y=null;if(_!==void 0)for(const b of _){const k=b(h);k!==null&&(y===null||(y.priority||0)<=(k.priority||0))&&(y=k)}return y!==null?y.conversion:null}(t,e),d=c?c(t):null;let u=null;if(d!==null){u=d.after;const h=d.node;if(l=Array.isArray(h)?h[h.length-1]:h,l!==null){for(const[,g]of r)if(l=g(l,i),!l)break;l&&s.push(...Array.isArray(h)?h:[l])}d.forChild!=null&&r.set(t.nodeName,d.forChild)}const p=t.childNodes;let f=[];const m=(l==null||!ut(l))&&(l!=null&&Hc(l)||o);for(let h=0;h<p.length;h++)f.push(...xh(p[h],e,n,m,new Map(r),l));return u!=null&&(f=u(f)),Is(t)&&(f=ox(t,f,m?()=>{const h=new Jc;return n.push(h),h}:Be)),l==null?f.length>0?s=s.concat(f):Is(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:md(h.nextSibling)&&md(h.previousSibling)}(t)&&(s=s.concat(nn())):V(l)&&l.append(...f),s}function ox(t,e,n){const o=t.style.textAlign,r=[];let i=[];for(let s=0;s<e.length;s++){const l=e[s];if(Hc(l))o&&!l.getFormat()&&l.setFormat(o),r.push(l);else if(i.push(l),s===e.length-1||s<e.length-1&&Hc(e[s+1])){const c=n();c.setFormat(o),c.append(...i),r.push(c),i=[]}}return r}function js(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function rx(t,e=te()){return e==null&&js(166),H(e)&&e.isCollapsed()||e.getNodes().length===0?"":nx(t,e)}function ax(t,e=te()){return e==null&&js(166),H(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(ix(t,e))}function Eh(t,e,n){const o=t.getData("application/x-lexical-editor");if(o)try{const l=JSON.parse(o);if(l.namespace===n._config.namespace&&Array.isArray(l.nodes))return Sh(n,sx(l.nodes),e)}catch(l){console.error(l)}const r=t.getData("text/html"),i=t.getData("text/plain");if(r&&i!==r)try{const l=new DOMParser().parseFromString(function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:d=>d}).createHTML(c):c}(r),"text/html");return Sh(n,tx(n,l),e)}catch(l){console.error(l)}const s=i||t.getData("text/uri-list");if(s!=null)if(H(e)){const l=s.split(/(\r?\n|\t)/);l[l.length-1]===""&&l.pop();for(let c=0;c<l.length;c++){const d=te();if(H(d)){const u=l[c];u===`
31
31
  `||u===`\r
32
- `?d.insertParagraph():u===" "?d.insertNodes([Br()]):d.insertText(u)}}}else e.insertRawText(s)}function Sh(t,e,n){t.dispatchCommand(A9,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(H(o)&&o.isCollapsed()){const r=o.anchor;let i=null;const s=qn(r,"previous");if(s)if(po(s))i=s.origin;else{const l=mo(s,an($e(),"next").getFlipped());for(const c of l){if(X(c.origin)){i=c.origin;break}if(V(c.origin)&&!c.origin.isInline())break}}if(i&&X(i)){const l=i.getFormat(),c=i.getStyle();o.format===l&&o.style===c||(o.format=l,o.style=c,o.dirty=!0)}}}(n))}function Th(t,e,n,o=[]){let r=e===null||n.isSelected(e);const i=V(n)&&n.excludeFromCopy("html");let s=n;e!==null&&X(s)&&(s=rh(e,s,"clone"));const l=V(s)?s.getChildren():[],c=function(d){const u=d.exportJSON(),p=d.constructor;if(u.type!==p.getType()&&js(58,p.name),V(d)){const f=u.children;Array.isArray(f)||js(59,p.name)}return u}(s);X(s)&&s.getTextContentSize()===0&&(r=!1);for(let d=0;d<l.length;d++){const u=l[d],p=Th(t,e,u,c.children);!r&&V(n)&&p&&n.extractWithChild(u,e,"clone")&&(r=!0)}if(r&&!i)o.push(c);else if(Array.isArray(c.children))for(let d=0;d<c.children.length;d++){const u=c.children[d];o.push(u)}return r}function ix(t,e){const n=[],o=$e().getChildren();for(let r=0;r<o.length;r++)Th(t,e,o[r],n);return{namespace:t._config.namespace,nodes:n}}function sx(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],r=a6(o);X(r)&&O6(r),e.push(r)}return e}let zr=null;async function Ah(t,e,n){if(zr!==null)return!1;if(e!==null)return new Promise((d,u)=>{t.update(()=>{d(Nh(t,e,n))})});const o=t.getRootElement(),r=t._window||window,i=r.document,s=rn(r);if(o===null||s===null)return!1;const l=i.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(i.createTextNode("#")),o.append(l);const c=new Range;return c.setStart(l,0),c.setEnd(l,1),s.removeAllRanges(),s.addRange(c),new Promise((d,u)=>{const p=t.registerCommand(ps,f=>(Zo(f,ClipboardEvent)&&(p(),zr!==null&&(r.clearTimeout(zr),zr=null),d(Nh(t,f,n))),!0),s6);zr=r.setTimeout(()=>{p(),zr=null,d(!1)},50),i.execCommand("copy"),l.remove()})}function Nh(t,e,n){if(n===void 0){const r=rn(t._window),i=te();if(!i||i.isCollapsed()||!r)return!1;const s=r.anchorNode,l=r.focusNode;if(s!==null&&l!==null&&!Za(t,s,l))return!1;n=lx(i)}e.preventDefault();const o=e.clipboardData;return o!==null&&(cx(o,n),!0)}const Dh=[["text/html",rx],["application/x-lexical-editor",ax]];function lx(t=te()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=Rs();for(const[o,r]of Dh){const i=r(n,t);i!==null&&(e[o]=i)}}return e}function cx(t,e){for(const[n]of Dh)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function dx(t){const e=window.location.origin,n=o=>{if(o.origin!==e)return;const r=t.getRootElement();if(document.activeElement!==r)return;const i=o.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const l=s.payload;if(l&&l.functionId==="makeChanges"){const c=l.args;if(c){const[d,u,p,f,m]=c;t.update(()=>{const h=te();if(H(h)){const g=h.anchor;let v=g.getNode(),y=0,_=0;if(X(v)&&d>=0&&u>=0&&(y=d,_=d+u,h.setTextNodeRange(v,y,v,_)),y===_&&p===""||(h.insertRawText(p),v=g.getNode()),X(v)){y=f,_=f+m;const b=v.getTextContentSize();y=y>b?b:y,_=_>b?b:_,h.setTextNodeRange(v,y,v,_)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function Bh(t,e){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(t,e);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(t,e);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const Yo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,ux=Yo&&"documentMode"in document?document.documentMode:null,px=Yo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),fx=!(!Yo||!("InputEvent"in window)||ux)&&"getTargetRanges"in new window.InputEvent("input"),mx=Yo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Lh=Yo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,hx=Yo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),gx=Yo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&px&&!hx,Mh=le("DRAG_DROP_PASTE_FILE");let Dd=class Pg extends Dt{static getType(){return"quote"}static clone(e){return new Pg(e.__key)}createDOM(e){const n=document.createElement("blockquote");return jn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:bx,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(je(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o);const r=this.getDirection();r&&(n.dir=r)}return{element:n}}static importJSON(e){return Bd().updateFromJSON(e)}insertNewAfter(e,n){const o=Be(),r=this.getDirection();return o.setDirection(r),this.insertAfter(o,n),o}collapseAtStart(){const e=Be();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Bd(){return on(new Dd)}function Ld(t){return t instanceof Dd}let Us=class Vg extends Dt{constructor(n,o){super(o);j(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new Vg(n.__tag,n.__key)}getTag(){return this.__tag}setTag(n){const o=this.getWritable();return this.__tag=n,o}createDOM(n){const o=this.__tag,r=document.createElement(o),i=n.theme.heading;if(i!==void 0){const s=i[o];jn(r,s)}return r}updateDOM(n,o,r){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:qr,priority:0}),h2:n=>({conversion:qr,priority:0}),h3:n=>({conversion:qr,priority:0}),h4:n=>({conversion:qr,priority:0}),h5:n=>({conversion:qr,priority:0}),h6:n=>({conversion:qr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&$h(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>$h(n)?{conversion:o=>({node:Jo("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(je(o)){this.isEmpty()&&o.append(document.createElement("br"));const r=this.getFormatType();r&&(o.style.textAlign=r);const i=this.getDirection();i&&(o.dir=i)}return{element:o}}static importJSON(n){return Jo(n.tag).updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTag(n.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(n,o=!0){const r=n?n.anchor.offset:0,i=this.getLastDescendant(),s=!i||n&&n.anchor.key===i.getKey()&&r===i.getTextContentSize()||!n?Be():Jo(this.getTag()),l=this.getDirection();if(s.setDirection(l),this.insertAfter(s,o),r===0&&!this.isEmpty()&&n){const c=Be();c.select(),this.replace(c,!0)}return s}collapseAtStart(){const n=this.isEmpty()?Be():Jo(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function $h(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function qr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Jo(e),t.style!==null&&(hd(t,n),n.setFormat(t.style.textAlign))),{node:n}}function bx(t){const e=Bd();return t.style!==null&&(e.setFormat(t.style.textAlign),hd(t,e)),{node:e}}function Jo(t="h1"){return on(new Us(t))}function Oh(t){return t instanceof Us}function Hs(t){let e=null;if(Zo(t,DragEvent)?e=t.dataTransfer:Zo(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),r=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),r]}function Ih(t){const e=te();if(!H(e))return!1;const n=new Set,o=e.getNodes();for(let r=0;r<o.length;r++){const i=o[r],s=i.getKey();if(n.has(s))continue;const l=Zt(i,d=>V(d)&&!d.isInline());if(l===null)continue;const c=l.getKey();l.canIndent()&&!n.has(c)&&(n.add(c),t(l))}return n.size>0}function Rh(t){const e=$r(t);return ve(e)}function Md(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function _x(t){return Ja(t.registerCommand(ff,e=>{const n=te();return!!At(n)&&(n.clear(),!0)},ye),t.registerCommand(Io,e=>{const n=te();return H(n)?(n.deleteCharacter(e),!0):!!At(n)&&(n.deleteNodes(),!0)},ye),t.registerCommand(La,e=>{const n=te();return!!H(n)&&(n.deleteWord(e),!0)},ye),t.registerCommand(Ma,e=>{const n=te();return!!H(n)&&(n.deleteLine(e),!0)},ye),t.registerCommand(Ar,e=>{const n=te();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)Eh(o,n,t);else if(H(n)){const r=e.data;return r&&n.insertText(r),!0}}return!0},ye),t.registerCommand(Ac,()=>{const e=te();return!!H(e)&&(e.removeText(),!0)},ye),t.registerCommand(Ut,e=>{const n=te();return!!H(n)&&(n.formatText(e),!0)},ye),t.registerCommand($9,e=>{const n=te();if(!H(n)&&!At(n))return!1;const o=n.getNodes();for(const r of o){const i=Zt(r,s=>V(s)&&!s.isInline());i!==null&&i.setFormat(e)}return!0},ye),t.registerCommand(Tr,e=>{const n=te();return!!H(n)&&(n.insertLineBreak(e),!0)},ye),t.registerCommand(Ba,()=>{const e=te();return!!H(e)&&(e.insertParagraph(),!0)},ye),t.registerCommand(L9,()=>(n6([Br()]),!0),ye),t.registerCommand(M9,()=>Ih(e=>{const n=e.getIndent();e.setIndent(n+1)}),ye),t.registerCommand(kf,()=>Ih(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),ye),t.registerCommand(gf,e=>{const n=te();if(At(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(H(n)){const o=sd(n.focus,!0);if(!e.shiftKey&&ve(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},ye),t.registerCommand(bf,e=>{const n=te();if(At(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(H(n)){if(function(r){const i=r.focus;return i.key==="root"&&i.offset===$e().getChildrenSize()}(n))return e.preventDefault(),!0;const o=sd(n.focus,!1);if(!e.shiftKey&&ve(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},ye),t.registerCommand(hf,e=>{const n=te();if(At(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),oh(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!H(n))return!1;if(sh(n,!0)){const o=e.shiftKey;return e.preventDefault(),ch(n,o,!0),!0}return!1},ye),t.registerCommand(mf,e=>{const n=te();if(At(n)){const r=n.getNodes();if(r.length>0)return e.preventDefault(),oh(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!H(n))return!1;const o=e.shiftKey;return!!sh(n,!1)&&(e.preventDefault(),ch(n,o,!1),!0)},ye),t.registerCommand(yf,e=>{if(Rh(e.target))return!1;const n=te();if(H(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:r}=o;if(r.offset!==0)return!1;const i=r.getNode();if(qe(i))return!1;const s=j6(i);return s.getIndent()>0&&(s.is(i)||i.is(s.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(kf,void 0);if(Lh&&navigator.language==="ko-KR")return!1}else if(!At(n))return!1;return e.preventDefault(),t.dispatchCommand(Io,!0)},ye),t.registerCommand(Cf,e=>{if(Rh(e.target))return!1;const n=te();return!(!H(n)&&!At(n))&&(e.preventDefault(),t.dispatchCommand(Io,!1))},ye),t.registerCommand(us,e=>{const n=te();if(!H(n))return!1;if(Md(n),e!==null){if((Lh||mx||gx)&&fx)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(Tr,!1)}return t.dispatchCommand(Ba,void 0)},ye),t.registerCommand(vf,()=>{const e=te();return!!H(e)&&(t.blur(),!0)},ye),t.registerCommand(xf,e=>{const[,n]=Hs(e);if(n.length>0){const r=Bh(e.clientX,e.clientY);if(r!==null){const{offset:i,node:s}=r,l=$r(s);if(l!==null){const c=xs();if(X(l))c.anchor.set(l.getKey(),i,"text"),c.focus.set(l.getKey(),i,"text");else{const u=l.getParentOrThrow().getKey(),p=l.getIndexWithinParent()+1;c.anchor.set(u,p,"element"),c.focus.set(u,p,"element")}const d=as(c);st(d)}t.dispatchCommand(Mh,n)}return e.preventDefault(),!0}const o=te();return!!H(o)},ye),t.registerCommand(Ef,e=>{const[n]=Hs(e),o=te();return!(n&&!H(o))},ye),t.registerCommand(Sf,e=>{const[n]=Hs(e),o=te();if(n&&!H(o))return!1;const r=Bh(e.clientX,e.clientY);if(r!==null){const i=$r(r.node);ve(i)&&e.preventDefault()}return!0},ye),t.registerCommand(Lc,()=>(m6(),!0),ye),t.registerCommand(ps,e=>(Ah(t,Zo(e,ClipboardEvent)?e:null),!0),ye),t.registerCommand(Bc,e=>(async function(n,o){await Ah(o,Zo(n,ClipboardEvent)?n:null),o.update(()=>{const r=te();H(r)?r.removeText():At(r)&&r.getNodes().forEach(i=>i.remove())})}(e,t),!0),ye),t.registerCommand(Tc,e=>{const[,n,o]=Hs(e);return n.length>0&&!o?(t.dispatchCommand(Mh,n),!0):Rr(e.target)&&td(e.target)?!1:te()!==null&&(function(r,i){r.preventDefault(),i.update(()=>{const s=te(),l=Zo(r,InputEvent)||Zo(r,KeyboardEvent)?null:r.clipboardData;l!=null&&s!==null&&Eh(l,s,i)},{tag:j9})}(e,t),!0)},ye),t.registerCommand(_f,e=>{const n=te();return H(n)&&Md(n),!1},ye),t.registerCommand(wf,e=>{const n=te();return H(n)&&Md(n),!1},ye))}var yx={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
32
+ `?d.insertParagraph():u===" "?d.insertNodes([Br()]):d.insertText(u)}}}else e.insertRawText(s)}function Sh(t,e,n){t.dispatchCommand(A9,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(H(o)&&o.isCollapsed()){const r=o.anchor;let i=null;const s=qn(r,"previous");if(s)if(po(s))i=s.origin;else{const l=mo(s,an($e(),"next").getFlipped());for(const c of l){if(X(c.origin)){i=c.origin;break}if(V(c.origin)&&!c.origin.isInline())break}}if(i&&X(i)){const l=i.getFormat(),c=i.getStyle();o.format===l&&o.style===c||(o.format=l,o.style=c,o.dirty=!0)}}}(n))}function Th(t,e,n,o=[]){let r=e===null||n.isSelected(e);const i=V(n)&&n.excludeFromCopy("html");let s=n;e!==null&&X(s)&&(s=rh(e,s,"clone"));const l=V(s)?s.getChildren():[],c=function(d){const u=d.exportJSON(),p=d.constructor;if(u.type!==p.getType()&&js(58,p.name),V(d)){const f=u.children;Array.isArray(f)||js(59,p.name)}return u}(s);X(s)&&s.getTextContentSize()===0&&(r=!1);for(let d=0;d<l.length;d++){const u=l[d],p=Th(t,e,u,c.children);!r&&V(n)&&p&&n.extractWithChild(u,e,"clone")&&(r=!0)}if(r&&!i)o.push(c);else if(Array.isArray(c.children))for(let d=0;d<c.children.length;d++){const u=c.children[d];o.push(u)}return r}function ix(t,e){const n=[],o=$e().getChildren();for(let r=0;r<o.length;r++)Th(t,e,o[r],n);return{namespace:t._config.namespace,nodes:n}}function sx(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],r=a6(o);X(r)&&O6(r),e.push(r)}return e}let zr=null;async function Ah(t,e,n){if(zr!==null)return!1;if(e!==null)return new Promise((d,u)=>{t.update(()=>{d(Nh(t,e,n))})});const o=t.getRootElement(),r=t._window||window,i=r.document,s=rn(r);if(o===null||s===null)return!1;const l=i.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(i.createTextNode("#")),o.append(l);const c=new Range;return c.setStart(l,0),c.setEnd(l,1),s.removeAllRanges(),s.addRange(c),new Promise((d,u)=>{const p=t.registerCommand(ps,f=>(Zo(f,ClipboardEvent)&&(p(),zr!==null&&(r.clearTimeout(zr),zr=null),d(Nh(t,f,n))),!0),s6);zr=r.setTimeout(()=>{p(),zr=null,d(!1)},50),i.execCommand("copy"),l.remove()})}function Nh(t,e,n){if(n===void 0){const r=rn(t._window),i=te();if(!i||i.isCollapsed()||!r)return!1;const s=r.anchorNode,l=r.focusNode;if(s!==null&&l!==null&&!Za(t,s,l))return!1;n=lx(i)}e.preventDefault();const o=e.clipboardData;return o!==null&&(cx(o,n),!0)}const Dh=[["text/html",rx],["application/x-lexical-editor",ax]];function lx(t=te()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=Rs();for(const[o,r]of Dh){const i=r(n,t);i!==null&&(e[o]=i)}}return e}function cx(t,e){for(const[n]of Dh)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function dx(t){const e=window.location.origin,n=o=>{if(o.origin!==e)return;const r=t.getRootElement();if(document.activeElement!==r)return;const i=o.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const l=s.payload;if(l&&l.functionId==="makeChanges"){const c=l.args;if(c){const[d,u,p,f,m]=c;t.update(()=>{const h=te();if(H(h)){const g=h.anchor;let v=g.getNode(),_=0,y=0;if(X(v)&&d>=0&&u>=0&&(_=d,y=d+u,h.setTextNodeRange(v,_,v,y)),_===y&&p===""||(h.insertRawText(p),v=g.getNode()),X(v)){_=f,y=f+m;const b=v.getTextContentSize();_=_>b?b:_,y=y>b?b:y,h.setTextNodeRange(v,_,v,y)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function Bh(t,e){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(t,e);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(t,e);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const Yo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,ux=Yo&&"documentMode"in document?document.documentMode:null,px=Yo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),fx=!(!Yo||!("InputEvent"in window)||ux)&&"getTargetRanges"in new window.InputEvent("input"),mx=Yo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Lh=Yo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,hx=Yo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),gx=Yo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&px&&!hx,Mh=le("DRAG_DROP_PASTE_FILE");let Dd=class Pg extends Dt{static getType(){return"quote"}static clone(e){return new Pg(e.__key)}createDOM(e){const n=document.createElement("blockquote");return jn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:bx,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(je(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o);const r=this.getDirection();r&&(n.dir=r)}return{element:n}}static importJSON(e){return Bd().updateFromJSON(e)}insertNewAfter(e,n){const o=Be(),r=this.getDirection();return o.setDirection(r),this.insertAfter(o,n),o}collapseAtStart(){const e=Be();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Bd(){return on(new Dd)}function Ld(t){return t instanceof Dd}let Us=class Vg extends Dt{constructor(n,o){super(o);j(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new Vg(n.__tag,n.__key)}getTag(){return this.__tag}setTag(n){const o=this.getWritable();return this.__tag=n,o}createDOM(n){const o=this.__tag,r=document.createElement(o),i=n.theme.heading;if(i!==void 0){const s=i[o];jn(r,s)}return r}updateDOM(n,o,r){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:qr,priority:0}),h2:n=>({conversion:qr,priority:0}),h3:n=>({conversion:qr,priority:0}),h4:n=>({conversion:qr,priority:0}),h5:n=>({conversion:qr,priority:0}),h6:n=>({conversion:qr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&$h(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>$h(n)?{conversion:o=>({node:Jo("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(je(o)){this.isEmpty()&&o.append(document.createElement("br"));const r=this.getFormatType();r&&(o.style.textAlign=r);const i=this.getDirection();i&&(o.dir=i)}return{element:o}}static importJSON(n){return Jo(n.tag).updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTag(n.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(n,o=!0){const r=n?n.anchor.offset:0,i=this.getLastDescendant(),s=!i||n&&n.anchor.key===i.getKey()&&r===i.getTextContentSize()||!n?Be():Jo(this.getTag()),l=this.getDirection();if(s.setDirection(l),this.insertAfter(s,o),r===0&&!this.isEmpty()&&n){const c=Be();c.select(),this.replace(c,!0)}return s}collapseAtStart(){const n=this.isEmpty()?Be():Jo(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function $h(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function qr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Jo(e),t.style!==null&&(hd(t,n),n.setFormat(t.style.textAlign))),{node:n}}function bx(t){const e=Bd();return t.style!==null&&(e.setFormat(t.style.textAlign),hd(t,e)),{node:e}}function Jo(t="h1"){return on(new Us(t))}function Oh(t){return t instanceof Us}function Hs(t){let e=null;if(Zo(t,DragEvent)?e=t.dataTransfer:Zo(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),r=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),r]}function Ih(t){const e=te();if(!H(e))return!1;const n=new Set,o=e.getNodes();for(let r=0;r<o.length;r++){const i=o[r],s=i.getKey();if(n.has(s))continue;const l=Zt(i,d=>V(d)&&!d.isInline());if(l===null)continue;const c=l.getKey();l.canIndent()&&!n.has(c)&&(n.add(c),t(l))}return n.size>0}function Rh(t){const e=$r(t);return ve(e)}function Md(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function yx(t){return Ja(t.registerCommand(ff,e=>{const n=te();return!!At(n)&&(n.clear(),!0)},_e),t.registerCommand(Io,e=>{const n=te();return H(n)?(n.deleteCharacter(e),!0):!!At(n)&&(n.deleteNodes(),!0)},_e),t.registerCommand(La,e=>{const n=te();return!!H(n)&&(n.deleteWord(e),!0)},_e),t.registerCommand(Ma,e=>{const n=te();return!!H(n)&&(n.deleteLine(e),!0)},_e),t.registerCommand(Ar,e=>{const n=te();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)Eh(o,n,t);else if(H(n)){const r=e.data;return r&&n.insertText(r),!0}}return!0},_e),t.registerCommand(Ac,()=>{const e=te();return!!H(e)&&(e.removeText(),!0)},_e),t.registerCommand(Ut,e=>{const n=te();return!!H(n)&&(n.formatText(e),!0)},_e),t.registerCommand($9,e=>{const n=te();if(!H(n)&&!At(n))return!1;const o=n.getNodes();for(const r of o){const i=Zt(r,s=>V(s)&&!s.isInline());i!==null&&i.setFormat(e)}return!0},_e),t.registerCommand(Tr,e=>{const n=te();return!!H(n)&&(n.insertLineBreak(e),!0)},_e),t.registerCommand(Ba,()=>{const e=te();return!!H(e)&&(e.insertParagraph(),!0)},_e),t.registerCommand(L9,()=>(n6([Br()]),!0),_e),t.registerCommand(M9,()=>Ih(e=>{const n=e.getIndent();e.setIndent(n+1)}),_e),t.registerCommand(kf,()=>Ih(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),_e),t.registerCommand(gf,e=>{const n=te();if(At(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(H(n)){const o=sd(n.focus,!0);if(!e.shiftKey&&ve(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},_e),t.registerCommand(bf,e=>{const n=te();if(At(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(H(n)){if(function(r){const i=r.focus;return i.key==="root"&&i.offset===$e().getChildrenSize()}(n))return e.preventDefault(),!0;const o=sd(n.focus,!1);if(!e.shiftKey&&ve(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},_e),t.registerCommand(hf,e=>{const n=te();if(At(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),oh(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!H(n))return!1;if(sh(n,!0)){const o=e.shiftKey;return e.preventDefault(),ch(n,o,!0),!0}return!1},_e),t.registerCommand(mf,e=>{const n=te();if(At(n)){const r=n.getNodes();if(r.length>0)return e.preventDefault(),oh(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!H(n))return!1;const o=e.shiftKey;return!!sh(n,!1)&&(e.preventDefault(),ch(n,o,!1),!0)},_e),t.registerCommand(_f,e=>{if(Rh(e.target))return!1;const n=te();if(H(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:r}=o;if(r.offset!==0)return!1;const i=r.getNode();if(qe(i))return!1;const s=j6(i);return s.getIndent()>0&&(s.is(i)||i.is(s.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(kf,void 0);if(Lh&&navigator.language==="ko-KR")return!1}else if(!At(n))return!1;return e.preventDefault(),t.dispatchCommand(Io,!0)},_e),t.registerCommand(Cf,e=>{if(Rh(e.target))return!1;const n=te();return!(!H(n)&&!At(n))&&(e.preventDefault(),t.dispatchCommand(Io,!1))},_e),t.registerCommand(us,e=>{const n=te();if(!H(n))return!1;if(Md(n),e!==null){if((Lh||mx||gx)&&fx)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(Tr,!1)}return t.dispatchCommand(Ba,void 0)},_e),t.registerCommand(vf,()=>{const e=te();return!!H(e)&&(t.blur(),!0)},_e),t.registerCommand(xf,e=>{const[,n]=Hs(e);if(n.length>0){const r=Bh(e.clientX,e.clientY);if(r!==null){const{offset:i,node:s}=r,l=$r(s);if(l!==null){const c=xs();if(X(l))c.anchor.set(l.getKey(),i,"text"),c.focus.set(l.getKey(),i,"text");else{const u=l.getParentOrThrow().getKey(),p=l.getIndexWithinParent()+1;c.anchor.set(u,p,"element"),c.focus.set(u,p,"element")}const d=as(c);st(d)}t.dispatchCommand(Mh,n)}return e.preventDefault(),!0}const o=te();return!!H(o)},_e),t.registerCommand(Ef,e=>{const[n]=Hs(e),o=te();return!(n&&!H(o))},_e),t.registerCommand(Sf,e=>{const[n]=Hs(e),o=te();if(n&&!H(o))return!1;const r=Bh(e.clientX,e.clientY);if(r!==null){const i=$r(r.node);ve(i)&&e.preventDefault()}return!0},_e),t.registerCommand(Lc,()=>(m6(),!0),_e),t.registerCommand(ps,e=>(Ah(t,Zo(e,ClipboardEvent)?e:null),!0),_e),t.registerCommand(Bc,e=>(async function(n,o){await Ah(o,Zo(n,ClipboardEvent)?n:null),o.update(()=>{const r=te();H(r)?r.removeText():At(r)&&r.getNodes().forEach(i=>i.remove())})}(e,t),!0),_e),t.registerCommand(Tc,e=>{const[,n,o]=Hs(e);return n.length>0&&!o?(t.dispatchCommand(Mh,n),!0):Rr(e.target)&&td(e.target)?!1:te()!==null&&(function(r,i){r.preventDefault(),i.update(()=>{const s=te(),l=Zo(r,InputEvent)||Zo(r,KeyboardEvent)?null:r.clipboardData;l!=null&&s!==null&&Eh(l,s,i)},{tag:j9})}(e,t),!0)},_e),t.registerCommand(yf,e=>{const n=te();return H(n)&&Md(n),!1},_e),t.registerCommand(wf,e=>{const n=te();return H(n)&&Md(n),!1},_e))}var _x={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
33
33
  * Prism: Lightweight, robust, elegant syntax highlighting
34
34
  *
35
35
  * @license MIT <https://opensource.org/licenses/MIT>
36
36
  * @author Lea Verou <https://lea.verou.me>
37
37
  * @namespace
38
38
  * @public
39
- */var n=function(o){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},l={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:function _(b){return b instanceof c?new c(b.type,_(b.content),b.alias):Array.isArray(b)?b.map(_):b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(_){return Object.prototype.toString.call(_).slice(8,-1)},objId:function(_){return _.__id||Object.defineProperty(_,"__id",{value:++i}),_.__id},clone:function _(b,k){k=k||{};var w,C;switch(l.util.type(b)){case"Object":if(C=l.util.objId(b),k[C])return k[C];w={},k[C]=w;for(var x in b)b.hasOwnProperty(x)&&(w[x]=_(b[x],k));return w;case"Array":return C=l.util.objId(b),k[C]?k[C]:(w=[],k[C]=w,b.forEach(function(S,T){w[T]=_(S,k)}),w);default:return b}},getLanguage:function(_){for(;_;){var b=r.exec(_.className);if(b)return b[1].toLowerCase();_=_.parentElement}return"none"},setLanguage:function(_,b){_.className=_.className.replace(RegExp(r,"gi"),""),_.classList.add("language-"+b)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT"&&1<2)return document.currentScript;try{throw new Error}catch(w){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(_){var b=document.getElementsByTagName("script");for(var k in b)if(b[k].src==_)return b[k]}return null}},isActive:function(_,b,k){for(var w="no-"+b;_;){var C=_.classList;if(C.contains(b))return!0;if(C.contains(w))return!1;_=_.parentElement}return!!k}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(_,b){var k=l.util.clone(l.languages[_]);for(var w in b)k[w]=b[w];return k},insertBefore:function(_,b,k,w){w=w||l.languages;var C=w[_],x={};for(var S in C)if(C.hasOwnProperty(S)){if(S==b)for(var T in k)k.hasOwnProperty(T)&&(x[T]=k[T]);k.hasOwnProperty(S)||(x[S]=C[S])}var A=w[_];return w[_]=x,l.languages.DFS(l.languages,function(z,O){O===A&&z!=_&&(this[z]=x)}),x},DFS:function _(b,k,w,C){C=C||{};var x=l.util.objId;for(var S in b)if(b.hasOwnProperty(S)){k.call(b,S,b[S],w||S);var T=b[S],A=l.util.type(T);A==="Object"&&!C[x(T)]?(C[x(T)]=!0,_(T,k,null,C)):A==="Array"&&!C[x(T)]&&(C[x(T)]=!0,_(T,k,S,C))}}},plugins:{},highlightAll:function(_,b){l.highlightAllUnder(document,_,b)},highlightAllUnder:function(_,b,k){var w={callback:k,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),l.hooks.run("before-all-elements-highlight",w);for(var C=0,x;x=w.elements[C++];)l.highlightElement(x,b===!0,w.callback)},highlightElement:function(_,b,k){var w=l.util.getLanguage(_),C=l.languages[w];l.util.setLanguage(_,w);var x=_.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(x,w);var S=_.textContent,T={element:_,language:w,grammar:C,code:S};function A(O){T.highlightedCode=O,l.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,l.hooks.run("after-highlight",T),l.hooks.run("complete",T),k&&k.call(T.element)}if(l.hooks.run("before-sanity-check",T),x=T.element.parentElement,x&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!T.code){l.hooks.run("complete",T),k&&k.call(T.element);return}if(l.hooks.run("before-highlight",T),!T.grammar){A(l.util.encode(T.code));return}if(b&&o.Worker){var z=new Worker(l.filename);z.onmessage=function(O){A(O.data)},z.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else A(l.highlight(T.code,T.grammar,T.language))},highlight:function(_,b,k){var w={code:_,grammar:b,language:k};if(l.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=l.tokenize(w.code,w.grammar),l.hooks.run("after-tokenize",w),c.stringify(l.util.encode(w.tokens),w.language)},tokenize:function(_,b){var k=b.rest;if(k){for(var w in k)b[w]=k[w];delete b.rest}var C=new p;return f(C,C.head,_),u(_,C,b,C.head,0),h(C)},hooks:{all:{},add:function(_,b){var k=l.hooks.all;k[_]=k[_]||[],k[_].push(b)},run:function(_,b){var k=l.hooks.all[_];if(!(!k||!k.length))for(var w=0,C;C=k[w++];)C(b)}},Token:c};o.Prism=l;function c(_,b,k,w){this.type=_,this.content=b,this.alias=k,this.length=(w||"").length|0}c.stringify=function _(b,k){if(typeof b=="string")return b;if(Array.isArray(b)){var w="";return b.forEach(function(A){w+=_(A,k)}),w}var C={type:b.type,content:_(b.content,k),tag:"span",classes:["token",b.type],attributes:{},language:k},x=b.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(C.classes,x):C.classes.push(x)),l.hooks.run("wrap",C);var S="";for(var T in C.attributes)S+=" "+T+'="'+(C.attributes[T]||"").replace(/"/g,"&quot;")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+S+">"+C.content+"</"+C.tag+">"};function d(_,b,k,w){_.lastIndex=b;var C=_.exec(k);if(C&&w&&C[1]){var x=C[1].length;C.index+=x,C[0]=C[0].slice(x)}return C}function u(_,b,k,w,C,x){for(var S in k)if(!(!k.hasOwnProperty(S)||!k[S])){var T=k[S];T=Array.isArray(T)?T:[T];for(var A=0;A<T.length;++A){if(x&&x.cause==S+","+A)return;var z=T[A],O=z.inside,B=!!z.lookbehind,L=!!z.greedy,I=z.alias;if(L&&!z.pattern.global){var P=z.pattern.toString().match(/[imsuy]*$/)[0];z.pattern=RegExp(z.pattern.source,P+"g")}for(var G=z.pattern||z,R=w.next,D=C;R!==b.tail&&!(x&&D>=x.reach);D+=R.value.length,R=R.next){var K=R.value;if(b.length>_.length)return;if(!(K instanceof c)){var F=1,U;if(L){if(U=d(G,D,_,B),!U||U.index>=_.length)break;var q=U.index,ce=U.index+U[0].length,ee=D;for(ee+=R.value.length;q>=ee;)R=R.next,ee+=R.value.length;if(ee-=R.value.length,D=ee,R.value instanceof c)continue;for(var ae=R;ae!==b.tail&&(ee<ce||typeof ae.value=="string");ae=ae.next)F++,ee+=ae.value.length;F--,K=_.slice(D,ee),U.index-=D}else if(U=d(G,0,K,B),!U)continue;var q=U.index,ne=U[0],$=K.slice(0,q),Y=K.slice(q+ne.length),be=D+K.length;x&&be>x.reach&&(x.reach=be);var Ze=R.prev;$&&(Ze=f(b,Ze,$),D+=$.length),m(b,Ze,F);var pe=new c(S,O?l.tokenize(ne,O):ne,I,ne);if(R=f(b,Ze,pe),Y&&f(b,R,Y),F>1){var Ce={cause:S+","+A,reach:be};u(_,b,k,R.prev,D,Ce),x&&Ce.reach>x.reach&&(x.reach=Ce.reach)}}}}}}function p(){var _={value:null,prev:null,next:null},b={value:null,prev:_,next:null};_.next=b,this.head=_,this.tail=b,this.length=0}function f(_,b,k){var w=b.next,C={value:k,prev:b,next:w};return b.next=C,w.prev=C,_.length++,C}function m(_,b,k){for(var w=b.next,C=0;C<k&&w!==_.tail;C++)w=w.next;b.next=w,w.prev=b,_.length-=C}function h(_){for(var b=[],k=_.head.next;k!==_.tail;)b.push(k.value),k=k.next;return b}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(_){var b=JSON.parse(_.data),k=b.language,w=b.code,C=b.immediateClose;o.postMessage(l.highlight(w,l.languages[k],k)),C&&o.close()},!1)),l;var g=l.util.currentScript();g&&(l.filename=g.src,g.hasAttribute("data-manual")&&(l.manual=!0));function v(){l.manual||l.highlightAll()}if(!l.manual){var y=document.readyState;y==="loading"||y==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return l}(e);t.exports&&(t.exports=n),typeof mt<"u"&&(mt.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(r,i){var s={};s["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[i]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};l["language-"+i]={pattern:/[\s\S]+/,inside:n.languages[i]};var c={};c[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(o,r){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+o+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:n.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(o){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;o.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},o.languages.css.atrule.inside.rest=o.languages.css;var i=o.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var o="Loading…",r=function(g,v){return"✖ Error "+g+" while fetching file: "+v},i="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",c="loading",d="loaded",u="failed",p="pre[data-src]:not(["+l+'="'+d+'"]):not(['+l+'="'+c+'"])';function f(g,v,y){var _=new XMLHttpRequest;_.open("GET",g,!0),_.onreadystatechange=function(){_.readyState==4&&(_.status<400&&_.responseText?v(_.responseText):_.status>=400?y(r(_.status,_.statusText)):y(i))},_.send(null)}function m(g){var v=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(v){var y=Number(v[1]),_=v[2],b=v[3];return _?b?[y,Number(b)]:[y,void 0]:[y,y]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+p}),n.hooks.add("before-sanity-check",function(g){var v=g.element;if(v.matches(p)){g.code="",v.setAttribute(l,c);var y=v.appendChild(document.createElement("CODE"));y.textContent=o;var _=v.getAttribute("data-src"),b=g.language;if(b==="none"){var k=(/\.(\w+)$/.exec(_)||[,"none"])[1];b=s[k]||k}n.util.setLanguage(y,b),n.util.setLanguage(v,b);var w=n.plugins.autoloader;w&&w.loadLanguages(b),f(_,function(C){v.setAttribute(l,d);var x=m(v.getAttribute("data-range"));if(x){var S=C.split(/\r\n?|\n/g),T=x[0],A=x[1]==null?S.length:x[1];T<0&&(T+=S.length),T=Math.max(0,Math.min(T-1,S.length)),A<0&&(A+=S.length),A=Math.max(0,Math.min(A,S.length)),C=S.slice(T,A).join(`
40
- `),v.hasAttribute("data-start")||v.setAttribute("data-start",String(T+1))}y.textContent=C,n.highlightElement(y)},function(C){v.setAttribute(l,u),y.textContent=C})}}),n.plugins.fileHighlight={highlight:function(v){for(var y=(v||document).querySelectorAll(p),_=0,b;b=y[_++];)n.highlightElement(b)}};var h=!1;n.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),h=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(yx),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};r["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(u){return u=u.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+i+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+i+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(u){["url","bold","italic","strike","code-snippet"].forEach(function(p){u!==p&&(t.languages.markdown[u].inside.content.inside[p]=t.languages.markdown[p])})}),t.hooks.add("after-tokenize",function(u){if(u.language!=="markdown"&&u.language!=="md")return;function p(f){if(!(!f||typeof f=="string"))for(var m=0,h=f.length;m<h;m++){var g=f[m];if(g.type!=="code"){p(g.content);continue}var v=g.content[1],y=g.content[3];if(v&&y&&v.type==="code-language"&&y.type==="code-block"&&typeof v.content=="string"){var _=v.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");_=(/[a-z][\w-]*/i.exec(_)||[""])[0].toLowerCase();var b="language-"+_;y.alias?typeof y.alias=="string"?y.alias=[y.alias,b]:y.alias.push(b):y.alias=[b]}}}p(u.tokens)}),t.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var p="",f=0,m=u.classes.length;f<m;f++){var h=u.classes[f],g=/language-(.+)/.exec(h);if(g){p=g[1];break}}var v=t.languages[p];if(v)u.content=t.highlight(d(u.content),v,p);else if(p&&p!=="none"&&t.plugins.autoloader){var y="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);u.attributes.id=y,t.plugins.autoloader.loadLanguages(p,function(){var _=document.getElementById(y);_&&(_.innerHTML=t.highlight(_.textContent,t.languages[p],p))})}}});var s=RegExp(t.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function d(u){var p=u.replace(s,"");return p=p.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(f,m){if(m=m.toLowerCase(),m[0]==="#"){var h;return m[1]==="x"?h=parseInt(m.slice(2),16):h=Number(m.slice(1)),c(h)}else{var g=l[m];return g||f}}),p}t.languages.md=t.languages.markdown}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}}(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism);function Ph(t,e){for(const n of t.childNodes){if(je(n)&&n.tagName===e)return!0;Ph(n,e)}return!1}const Xa="data-language",Qa="data-highlight-language",Ws="data-theme";let Zs=class Fg extends Dt{constructor(n,o){super(o);j(this,"__language");j(this,"__theme");j(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new Fg(n.__language,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__language=n.__language,this.__theme=n.__theme,this.__isSyntaxHighlightSupported=n.__isSyntaxHighlightSupported}createDOM(n){const o=document.createElement("code");jn(o,n.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(Xa,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(Qa,r));const i=this.getTheme();i&&o.setAttribute(Ws,i);const s=this.getStyle();return s&&o.setAttribute("style",s),o}updateDOM(n,o,r){const i=this.__language,s=n.__language;i?i!==s&&o.setAttribute(Xa,i):s&&o.removeAttribute(Xa);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&s?l&&i?i!==s&&o.setAttribute(Qa,i):o.removeAttribute(Qa):l&&i&&o.setAttribute(Qa,i);const c=this.__theme,d=n.__theme;c?c!==d&&o.setAttribute(Ws,c):d&&o.removeAttribute(Ws);const u=this.__style,p=n.__style;return u?u!==p&&o.setAttribute("style",u):p&&o.removeAttribute("style"),!1}exportDOM(n){const o=document.createElement("pre");jn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(Xa,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(Qa,r));const i=this.getTheme();i&&o.setAttribute(Ws,i);const s=this.getStyle();return s&&o.setAttribute("style",s),{element:o}}static importDOM(){return{code:n=>n.textContent!=null&&(/\r?\n/.test(n.textContent)||Ph(n,"BR"))?{conversion:Vh,priority:1}:null,div:()=>({conversion:vx,priority:1}),pre:()=>({conversion:Vh,priority:0}),table:n=>$d(n)?{conversion:Cx,priority:3}:null,td:n=>{const o=n,r=o.closest("table");return o.classList.contains("js-file-line")||r&&$d(r)?{conversion:Fh,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&$d(o)?{conversion:Fh,priority:3}:null}}}static importJSON(n){return xn().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setLanguage(n.language).setTheme(n.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(n,o=!0){const r=this.getChildren(),i=r.length;if(i>=2&&r[i-1].getTextContent()===`
39
+ */var n=function(o){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},l={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:function y(b){return b instanceof c?new c(b.type,y(b.content),b.alias):Array.isArray(b)?b.map(y):b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++i}),y.__id},clone:function y(b,k){k=k||{};var w,C;switch(l.util.type(b)){case"Object":if(C=l.util.objId(b),k[C])return k[C];w={},k[C]=w;for(var x in b)b.hasOwnProperty(x)&&(w[x]=y(b[x],k));return w;case"Array":return C=l.util.objId(b),k[C]?k[C]:(w=[],k[C]=w,b.forEach(function(S,T){w[T]=y(S,k)}),w);default:return b}},getLanguage:function(y){for(;y;){var b=r.exec(y.className);if(b)return b[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,b){y.className=y.className.replace(RegExp(r,"gi"),""),y.classList.add("language-"+b)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT"&&1<2)return document.currentScript;try{throw new Error}catch(w){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(y){var b=document.getElementsByTagName("script");for(var k in b)if(b[k].src==y)return b[k]}return null}},isActive:function(y,b,k){for(var w="no-"+b;y;){var C=y.classList;if(C.contains(b))return!0;if(C.contains(w))return!1;y=y.parentElement}return!!k}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(y,b){var k=l.util.clone(l.languages[y]);for(var w in b)k[w]=b[w];return k},insertBefore:function(y,b,k,w){w=w||l.languages;var C=w[y],x={};for(var S in C)if(C.hasOwnProperty(S)){if(S==b)for(var T in k)k.hasOwnProperty(T)&&(x[T]=k[T]);k.hasOwnProperty(S)||(x[S]=C[S])}var A=w[y];return w[y]=x,l.languages.DFS(l.languages,function(z,O){O===A&&z!=y&&(this[z]=x)}),x},DFS:function y(b,k,w,C){C=C||{};var x=l.util.objId;for(var S in b)if(b.hasOwnProperty(S)){k.call(b,S,b[S],w||S);var T=b[S],A=l.util.type(T);A==="Object"&&!C[x(T)]?(C[x(T)]=!0,y(T,k,null,C)):A==="Array"&&!C[x(T)]&&(C[x(T)]=!0,y(T,k,S,C))}}},plugins:{},highlightAll:function(y,b){l.highlightAllUnder(document,y,b)},highlightAllUnder:function(y,b,k){var w={callback:k,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),l.hooks.run("before-all-elements-highlight",w);for(var C=0,x;x=w.elements[C++];)l.highlightElement(x,b===!0,w.callback)},highlightElement:function(y,b,k){var w=l.util.getLanguage(y),C=l.languages[w];l.util.setLanguage(y,w);var x=y.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(x,w);var S=y.textContent,T={element:y,language:w,grammar:C,code:S};function A(O){T.highlightedCode=O,l.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,l.hooks.run("after-highlight",T),l.hooks.run("complete",T),k&&k.call(T.element)}if(l.hooks.run("before-sanity-check",T),x=T.element.parentElement,x&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!T.code){l.hooks.run("complete",T),k&&k.call(T.element);return}if(l.hooks.run("before-highlight",T),!T.grammar){A(l.util.encode(T.code));return}if(b&&o.Worker){var z=new Worker(l.filename);z.onmessage=function(O){A(O.data)},z.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else A(l.highlight(T.code,T.grammar,T.language))},highlight:function(y,b,k){var w={code:y,grammar:b,language:k};if(l.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=l.tokenize(w.code,w.grammar),l.hooks.run("after-tokenize",w),c.stringify(l.util.encode(w.tokens),w.language)},tokenize:function(y,b){var k=b.rest;if(k){for(var w in k)b[w]=k[w];delete b.rest}var C=new p;return f(C,C.head,y),u(y,C,b,C.head,0),h(C)},hooks:{all:{},add:function(y,b){var k=l.hooks.all;k[y]=k[y]||[],k[y].push(b)},run:function(y,b){var k=l.hooks.all[y];if(!(!k||!k.length))for(var w=0,C;C=k[w++];)C(b)}},Token:c};o.Prism=l;function c(y,b,k,w){this.type=y,this.content=b,this.alias=k,this.length=(w||"").length|0}c.stringify=function y(b,k){if(typeof b=="string")return b;if(Array.isArray(b)){var w="";return b.forEach(function(A){w+=y(A,k)}),w}var C={type:b.type,content:y(b.content,k),tag:"span",classes:["token",b.type],attributes:{},language:k},x=b.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(C.classes,x):C.classes.push(x)),l.hooks.run("wrap",C);var S="";for(var T in C.attributes)S+=" "+T+'="'+(C.attributes[T]||"").replace(/"/g,"&quot;")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+S+">"+C.content+"</"+C.tag+">"};function d(y,b,k,w){y.lastIndex=b;var C=y.exec(k);if(C&&w&&C[1]){var x=C[1].length;C.index+=x,C[0]=C[0].slice(x)}return C}function u(y,b,k,w,C,x){for(var S in k)if(!(!k.hasOwnProperty(S)||!k[S])){var T=k[S];T=Array.isArray(T)?T:[T];for(var A=0;A<T.length;++A){if(x&&x.cause==S+","+A)return;var z=T[A],O=z.inside,B=!!z.lookbehind,L=!!z.greedy,I=z.alias;if(L&&!z.pattern.global){var P=z.pattern.toString().match(/[imsuy]*$/)[0];z.pattern=RegExp(z.pattern.source,P+"g")}for(var G=z.pattern||z,R=w.next,D=C;R!==b.tail&&!(x&&D>=x.reach);D+=R.value.length,R=R.next){var K=R.value;if(b.length>y.length)return;if(!(K instanceof c)){var F=1,U;if(L){if(U=d(G,D,y,B),!U||U.index>=y.length)break;var q=U.index,ce=U.index+U[0].length,ee=D;for(ee+=R.value.length;q>=ee;)R=R.next,ee+=R.value.length;if(ee-=R.value.length,D=ee,R.value instanceof c)continue;for(var ae=R;ae!==b.tail&&(ee<ce||typeof ae.value=="string");ae=ae.next)F++,ee+=ae.value.length;F--,K=y.slice(D,ee),U.index-=D}else if(U=d(G,0,K,B),!U)continue;var q=U.index,ne=U[0],$=K.slice(0,q),Y=K.slice(q+ne.length),be=D+K.length;x&&be>x.reach&&(x.reach=be);var Ze=R.prev;$&&(Ze=f(b,Ze,$),D+=$.length),m(b,Ze,F);var pe=new c(S,O?l.tokenize(ne,O):ne,I,ne);if(R=f(b,Ze,pe),Y&&f(b,R,Y),F>1){var Ce={cause:S+","+A,reach:be};u(y,b,k,R.prev,D,Ce),x&&Ce.reach>x.reach&&(x.reach=Ce.reach)}}}}}}function p(){var y={value:null,prev:null,next:null},b={value:null,prev:y,next:null};y.next=b,this.head=y,this.tail=b,this.length=0}function f(y,b,k){var w=b.next,C={value:k,prev:b,next:w};return b.next=C,w.prev=C,y.length++,C}function m(y,b,k){for(var w=b.next,C=0;C<k&&w!==y.tail;C++)w=w.next;b.next=w,w.prev=b,y.length-=C}function h(y){for(var b=[],k=y.head.next;k!==y.tail;)b.push(k.value),k=k.next;return b}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(y){var b=JSON.parse(y.data),k=b.language,w=b.code,C=b.immediateClose;o.postMessage(l.highlight(w,l.languages[k],k)),C&&o.close()},!1)),l;var g=l.util.currentScript();g&&(l.filename=g.src,g.hasAttribute("data-manual")&&(l.manual=!0));function v(){l.manual||l.highlightAll()}if(!l.manual){var _=document.readyState;_==="loading"||_==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return l}(e);t.exports&&(t.exports=n),typeof mt<"u"&&(mt.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(r,i){var s={};s["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[i]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};l["language-"+i]={pattern:/[\s\S]+/,inside:n.languages[i]};var c={};c[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(o,r){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+o+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:n.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(o){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;o.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},o.languages.css.atrule.inside.rest=o.languages.css;var i=o.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var o="Loading…",r=function(g,v){return"✖ Error "+g+" while fetching file: "+v},i="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",c="loading",d="loaded",u="failed",p="pre[data-src]:not(["+l+'="'+d+'"]):not(['+l+'="'+c+'"])';function f(g,v,_){var y=new XMLHttpRequest;y.open("GET",g,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?v(y.responseText):y.status>=400?_(r(y.status,y.statusText)):_(i))},y.send(null)}function m(g){var v=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(v){var _=Number(v[1]),y=v[2],b=v[3];return y?b?[_,Number(b)]:[_,void 0]:[_,_]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+p}),n.hooks.add("before-sanity-check",function(g){var v=g.element;if(v.matches(p)){g.code="",v.setAttribute(l,c);var _=v.appendChild(document.createElement("CODE"));_.textContent=o;var y=v.getAttribute("data-src"),b=g.language;if(b==="none"){var k=(/\.(\w+)$/.exec(y)||[,"none"])[1];b=s[k]||k}n.util.setLanguage(_,b),n.util.setLanguage(v,b);var w=n.plugins.autoloader;w&&w.loadLanguages(b),f(y,function(C){v.setAttribute(l,d);var x=m(v.getAttribute("data-range"));if(x){var S=C.split(/\r\n?|\n/g),T=x[0],A=x[1]==null?S.length:x[1];T<0&&(T+=S.length),T=Math.max(0,Math.min(T-1,S.length)),A<0&&(A+=S.length),A=Math.max(0,Math.min(A,S.length)),C=S.slice(T,A).join(`
40
+ `),v.hasAttribute("data-start")||v.setAttribute("data-start",String(T+1))}_.textContent=C,n.highlightElement(_)},function(C){v.setAttribute(l,u),_.textContent=C})}}),n.plugins.fileHighlight={highlight:function(v){for(var _=(v||document).querySelectorAll(p),y=0,b;b=_[y++];)n.highlightElement(b)}};var h=!1;n.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),h=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(_x),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};r["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(u){return u=u.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+i+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+i+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(u){["url","bold","italic","strike","code-snippet"].forEach(function(p){u!==p&&(t.languages.markdown[u].inside.content.inside[p]=t.languages.markdown[p])})}),t.hooks.add("after-tokenize",function(u){if(u.language!=="markdown"&&u.language!=="md")return;function p(f){if(!(!f||typeof f=="string"))for(var m=0,h=f.length;m<h;m++){var g=f[m];if(g.type!=="code"){p(g.content);continue}var v=g.content[1],_=g.content[3];if(v&&_&&v.type==="code-language"&&_.type==="code-block"&&typeof v.content=="string"){var y=v.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase();var b="language-"+y;_.alias?typeof _.alias=="string"?_.alias=[_.alias,b]:_.alias.push(b):_.alias=[b]}}}p(u.tokens)}),t.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var p="",f=0,m=u.classes.length;f<m;f++){var h=u.classes[f],g=/language-(.+)/.exec(h);if(g){p=g[1];break}}var v=t.languages[p];if(v)u.content=t.highlight(d(u.content),v,p);else if(p&&p!=="none"&&t.plugins.autoloader){var _="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);u.attributes.id=_,t.plugins.autoloader.loadLanguages(p,function(){var y=document.getElementById(_);y&&(y.innerHTML=t.highlight(y.textContent,t.languages[p],p))})}}});var s=RegExp(t.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function d(u){var p=u.replace(s,"");return p=p.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(f,m){if(m=m.toLowerCase(),m[0]==="#"){var h;return m[1]==="x"?h=parseInt(m.slice(2),16):h=Number(m.slice(1)),c(h)}else{var g=l[m];return g||f}}),p}t.languages.md=t.languages.markdown}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}}(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism);function Ph(t,e){for(const n of t.childNodes){if(je(n)&&n.tagName===e)return!0;Ph(n,e)}return!1}const Xa="data-language",Qa="data-highlight-language",Ws="data-theme";let Zs=class Fg extends Dt{constructor(n,o){super(o);j(this,"__language");j(this,"__theme");j(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new Fg(n.__language,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__language=n.__language,this.__theme=n.__theme,this.__isSyntaxHighlightSupported=n.__isSyntaxHighlightSupported}createDOM(n){const o=document.createElement("code");jn(o,n.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(Xa,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(Qa,r));const i=this.getTheme();i&&o.setAttribute(Ws,i);const s=this.getStyle();return s&&o.setAttribute("style",s),o}updateDOM(n,o,r){const i=this.__language,s=n.__language;i?i!==s&&o.setAttribute(Xa,i):s&&o.removeAttribute(Xa);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&s?l&&i?i!==s&&o.setAttribute(Qa,i):o.removeAttribute(Qa):l&&i&&o.setAttribute(Qa,i);const c=this.__theme,d=n.__theme;c?c!==d&&o.setAttribute(Ws,c):d&&o.removeAttribute(Ws);const u=this.__style,p=n.__style;return u?u!==p&&o.setAttribute("style",u):p&&o.removeAttribute("style"),!1}exportDOM(n){const o=document.createElement("pre");jn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(Xa,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(Qa,r));const i=this.getTheme();i&&o.setAttribute(Ws,i);const s=this.getStyle();return s&&o.setAttribute("style",s),{element:o}}static importDOM(){return{code:n=>n.textContent!=null&&(/\r?\n/.test(n.textContent)||Ph(n,"BR"))?{conversion:Vh,priority:1}:null,div:()=>({conversion:vx,priority:1}),pre:()=>({conversion:Vh,priority:0}),table:n=>$d(n)?{conversion:Cx,priority:3}:null,td:n=>{const o=n,r=o.closest("table");return o.classList.contains("js-file-line")||r&&$d(r)?{conversion:Fh,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&$d(o)?{conversion:Fh,priority:3}:null}}}static importJSON(n){return xn().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setLanguage(n.language).setTheme(n.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(n,o=!0){const r=this.getChildren(),i=r.length;if(i>=2&&r[i-1].getTextContent()===`
41
41
  `&&r[i-2].getTextContent()===`
42
- `&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===i){r[i-1].remove(),r[i-2].remove();const d=Be();return this.insertAfter(d,o),d}const{anchor:s,focus:l}=n,c=(s.isBefore(l)?s:l).getNode();if(X(c)){let d=kx(c);const u=[];for(;;)if(ws(d))u.push(Br()),d=d.getNextSibling();else{if(!Uh(d))break;{let y=0;const _=d.getTextContent(),b=d.getTextContentSize();for(;y<b&&_[y]===" ";)y++;if(y!==0&&u.push(jh(" ".repeat(y))),y!==b)break;d=d.getNextSibling()}}const p=c.splitText(s.offset)[0],f=s.offset===0?0:1,m=p.getIndexWithinParent()+f,h=c.getParentOrThrow(),g=[nn(),...u];h.splice(m,0,g);const v=u[u.length-1];v?v.select():s.offset===0?p.selectPrevious():p.getNextSibling().selectNext(0,0)}if(Gs(c)){const{offset:d}=n.anchor;c.splice(d,0,[nn()]),c.select(d+1,d+1)}return null}canIndent(){return!1}collapseAtStart(){const n=Be();return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}setLanguage(n){const o=this.getWritable();return o.__language=n||void 0,o}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(n){const o=this.getWritable();return o.__isSyntaxHighlightSupported=n,o}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(n){const o=this.getWritable();return o.__theme=n||void 0,o}getTheme(){return this.getLatest().__theme}};function xn(t,e){return k6(Zs).setLanguage(t).setTheme(e)}function Gs(t){return t instanceof Zs}function Vh(t){return{node:xn(t.getAttribute(Xa))}}function vx(t){const e=t,n=zh(e);return n||function(o){let r=o.parentElement;for(;r!==null;){if(zh(r))return!0;r=r.parentElement}return!1}(e)?{node:n?xn():null}:{node:null}}function Cx(){return{node:xn()}}function Fh(){return{node:null}}function zh(t){return t.style.fontFamily.match("monospace")!==null}function $d(t){return t.classList.contains("js-file-line-container")}let qh=class zg extends lo{constructor(n="",o,r){super(n,r);j(this,"__highlightType");this.__highlightType=o}static getType(){return"code-highlight"}static clone(n){return new zg(n.__text,n.__highlightType||void 0,n.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(n){const o=this.getWritable();return o.__highlightType=n||void 0,o}canHaveFormat(){return!1}createDOM(n){const o=super.createDOM(n),r=Od(n.theme,this.__highlightType);return jn(o,r),o}updateDOM(n,o,r){const i=super.updateDOM(n,o,r),s=Od(r.theme,n.__highlightType),l=Od(r.theme,this.__highlightType);return s!==l&&(s&&Sd(o,s),l&&jn(o,l)),i}static importJSON(n){return jh().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setHighlightType(n.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(n){return this}isParentRequired(){return!0}createParentElementNode(){return xn()}};function Od(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function jh(t="",e){return on(new qh(t,e))}function Uh(t){return t instanceof qh}function wx(t,e){let n=t;for(let o=nt(t,e);o&&(Uh(o.origin)||ws(o.origin));o=z6(o))n=o.origin;return n}function kx(t){return wx(t,"previous")}(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach(function(n){var o=e[n],r=[];/^\w+$/.test(n)||r.push(/\w+/.exec(n)[0]),n==="diff"&&r.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+o+`].*(?:\r
42
+ `&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===i){r[i-1].remove(),r[i-2].remove();const d=Be();return this.insertAfter(d,o),d}const{anchor:s,focus:l}=n,c=(s.isBefore(l)?s:l).getNode();if(X(c)){let d=kx(c);const u=[];for(;;)if(ws(d))u.push(Br()),d=d.getNextSibling();else{if(!Uh(d))break;{let _=0;const y=d.getTextContent(),b=d.getTextContentSize();for(;_<b&&y[_]===" ";)_++;if(_!==0&&u.push(jh(" ".repeat(_))),_!==b)break;d=d.getNextSibling()}}const p=c.splitText(s.offset)[0],f=s.offset===0?0:1,m=p.getIndexWithinParent()+f,h=c.getParentOrThrow(),g=[nn(),...u];h.splice(m,0,g);const v=u[u.length-1];v?v.select():s.offset===0?p.selectPrevious():p.getNextSibling().selectNext(0,0)}if(Gs(c)){const{offset:d}=n.anchor;c.splice(d,0,[nn()]),c.select(d+1,d+1)}return null}canIndent(){return!1}collapseAtStart(){const n=Be();return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}setLanguage(n){const o=this.getWritable();return o.__language=n||void 0,o}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(n){const o=this.getWritable();return o.__isSyntaxHighlightSupported=n,o}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(n){const o=this.getWritable();return o.__theme=n||void 0,o}getTheme(){return this.getLatest().__theme}};function xn(t,e){return k6(Zs).setLanguage(t).setTheme(e)}function Gs(t){return t instanceof Zs}function Vh(t){return{node:xn(t.getAttribute(Xa))}}function vx(t){const e=t,n=zh(e);return n||function(o){let r=o.parentElement;for(;r!==null;){if(zh(r))return!0;r=r.parentElement}return!1}(e)?{node:n?xn():null}:{node:null}}function Cx(){return{node:xn()}}function Fh(){return{node:null}}function zh(t){return t.style.fontFamily.match("monospace")!==null}function $d(t){return t.classList.contains("js-file-line-container")}let qh=class zg extends lo{constructor(n="",o,r){super(n,r);j(this,"__highlightType");this.__highlightType=o}static getType(){return"code-highlight"}static clone(n){return new zg(n.__text,n.__highlightType||void 0,n.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(n){const o=this.getWritable();return o.__highlightType=n||void 0,o}canHaveFormat(){return!1}createDOM(n){const o=super.createDOM(n),r=Od(n.theme,this.__highlightType);return jn(o,r),o}updateDOM(n,o,r){const i=super.updateDOM(n,o,r),s=Od(r.theme,n.__highlightType),l=Od(r.theme,this.__highlightType);return s!==l&&(s&&Sd(o,s),l&&jn(o,l)),i}static importJSON(n){return jh().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setHighlightType(n.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(n){return this}isParentRequired(){return!0}createParentElementNode(){return xn()}};function Od(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function jh(t="",e){return on(new qh(t,e))}function Uh(t){return t instanceof qh}function wx(t,e){let n=t;for(let o=nt(t,e);o&&(Uh(o.origin)||ws(o.origin));o=z6(o))n=o.origin;return n}function kx(t){return wx(t,"previous")}(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach(function(n){var o=e[n],r=[];/^\w+$/.test(n)||r.push(/\w+/.exec(n)[0]),n==="diff"&&r.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+o+`].*(?:\r
43
43
  ?|
44
44
  |(?![\\s\\S])))+`,"m"),alias:r,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})})(Prism);const xx=new Set(["http:","https:","mailto:","sms:","tel:"]);class jr extends Dt{constructor(n="",o={},r){super(r);j(this,"__url");j(this,"__target");j(this,"__rel");j(this,"__title");const{target:i=null,rel:s=null,title:l=null}=o;this.__url=n,this.__target=i,this.__rel=s,this.__title=l}static getType(){return"link"}static clone(n){return new jr(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const o=document.createElement("a");return this.updateLinkDOM(null,o,n),jn(o,n.theme.link),o}updateLinkDOM(n,o,r){if(Fm(o)){n&&n.__url===this.__url||(o.href=this.sanitizeUrl(this.__url));for(const i of["target","rel","title"]){const s=`__${i}`,l=this[s];n&&n[s]===l||(l?o[i]=l:o.removeAttribute(i))}}}updateDOM(n,o,r){return this.updateLinkDOM(n,o,r),!1}static importDOM(){return{a:n=>({conversion:Ex,priority:1})}}static importJSON(n){return Ks().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=Wh(n);try{const o=new URL(Wh(n));if(!xx.has(o.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const o=this.getWritable();return o.__url=n,o}getTarget(){return this.getLatest().__target}setTarget(n){const o=this.getWritable();return o.__target=n,o}getRel(){return this.getLatest().__rel}setRel(n){const o=this.getWritable();return o.__rel=n,o}getTitle(){return this.getLatest().__title}setTitle(n){const o=this.getWritable();return o.__title=n,o}insertNewAfter(n,o=!0){const r=Ks(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,o),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,o,r){if(!H(o))return!1;const i=o.anchor.getNode(),s=o.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&o.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function Ex(t){let e=null;if(Fm(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=Ks(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function Ks(t="",e){return on(new jr(t,e))}function Sx(t){return t instanceof jr}class Ys extends jr{constructor(n="",o={},r){super(n,o,r);j(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new Ys(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const o=this.getWritable();return o.__isUnlinked=n,o}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,o,r){return super.updateDOM(n,o,r)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return Hh().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,o=!0){const r=this.getParentOrThrow().insertNewAfter(n,o);if(V(r)){const i=Hh(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return r.append(i),i}return null}}function Hh(t="",e){return on(new Ys(t,e))}function Tx(t){return t instanceof Ys}const Ax=/^\+?[0-9\s()-]{5,}$/;function Wh(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:Ax.test(t)?`tel:${t}`:`https://${t}`}function Id(t,e){const n={};for(const o of t){const r=e(o);r&&(n[r]?n[r].push(o):n[r]=[o])}return n}function Rd(t){const e=Id(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const Js=/[!-/:-@[-`{-~\s]/,Nx=/^\s{0,3}$/;function Pd(t){if(!Ha(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&X(e)&&Nx.test(e.getTextContent())}function Dx(t,e,n,o){for(const r of e){if(!r.export)continue;const i=r.export(t,s=>Xs(s,n,o));if(i!=null)return i}return V(t)?Xs(t,n,o):ve(t)?t.getTextContent():null}function Xs(t,e,n,o,r){const i=[],s=t.getChildren();o||(o=[]),r||(r=[]);e:for(const l of s){for(const c of n){if(!c.export)continue;const d=c.export(l,u=>Xs(u,e,n,o,[...r,...o]),(u,p)=>Zh(u,p,e,o,r));if(d!=null){i.push(d);continue e}}so(l)?i.push(`
45
- `):X(l)?i.push(Zh(l,l.getTextContent(),e,o,r)):V(l)?i.push(Xs(l,e,n,o,r)):ve(l)&&i.push(l.getTextContent())}return i.join("")}function Zh(t,e,n,o,r){let i=t.getFormat()===0?e:function(f){return f.replace(/^\s+|\s+$/g,m=>[...m].map(h=>"&#"+h.codePointAt(0)+";").join(""))}(e);t.hasFormat("code")||(i=i.replace(/([*_`~\\])/g,"\\$1"));let s="",l="",c="";const d=Gh(t,!0),u=Gh(t,!1),p=new Set;for(const f of n){const m=f.format[0],h=f.tag;Qs(t,m)&&!p.has(m)&&(p.add(m),Qs(d,m)&&o.find(g=>g.tag===h)||(o.push({format:m,tag:h}),s+=h))}for(let f=0;f<o.length;f++){const m=Qs(t,o[f].format),h=Qs(u,o[f].format);if(m&&h)continue;const g=[...o];for(;g.length>f;){const v=g.pop();r&&v&&r.find(y=>y.tag===v.tag)||(v&&typeof v.tag=="string"&&(m?h||(c+=v.tag):l+=v.tag),o.pop())}break}return i=s+i+c,l+i}function Gh(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();if(!n){const o=t.getParentOrThrow();o.isInline()&&(n=e?o.getPreviousSibling():o.getNextSibling())}for(;n;){if(V(n)){if(!n.isInline())break;const o=e?n.getLastDescendant():n.getFirstDescendant();if(X(o))return o;n=e?n.getPreviousSibling():n.getNextSibling()}if(X(n))return n;if(!V(n))return null}return null}function Qs(t,e){return X(t)&&t.hasFormat(e)}function Bx(t,e){const n=function(r,i){const s=r.match(i.openTagsRegExp);if(s==null)return null;for(const l of s){const c=l.replace(/^\s/,""),d=i.fullMatchRegExpByTag[c];if(d==null)continue;const u=r.match(d),p=i.transformersByTag[c];if(u!=null&&p!=null){if(p.intraword!==!1)return u;const{index:f=0}=u,m=r[f-1],h=r[f+u[0].length];if((!m||Js.test(m))&&(!h||Js.test(h)))return u}}return null}(t.getTextContent(),e);if(!n)return null;const o=n.index||0;return{endIndex:o+n[0].length,match:n,startIndex:o,transformer:e.transformersByTag[n[1]]}}function Xo(t){return X(t)&&!t.hasFormat("code")}function Qo(t,e,n){let o=Bx(t,e),r=function(s,l){const c=s;let d,u,p,f;for(const m of l){if(!m.replace||!m.importRegExp)continue;const h=c.getTextContent().match(m.importRegExp);if(!h)continue;const g=h.index||0,v=m.getEndIndex?m.getEndIndex(c,h):g+h[0].length;v!==!1&&(d===void 0||u===void 0||g<d&&(v>u||v<=d))&&(d=g,u=v,p=m,f=h)}return d===void 0||u===void 0||p===void 0||f===void 0?null:{endIndex:u,match:f,startIndex:d,transformer:p}}(t,n);if(o&&r&&(o.startIndex<=r.startIndex&&o.endIndex>=r.endIndex||r.startIndex>o.endIndex?r=null:o=null),o){const s=function(l,c,d,u,p){const f=l.getTextContent();let m,h,g;if(p[0]===f?m=l:c===0?[m,h]=l.splitText(d):[g,m,h]=l.splitText(c,d),m.setTextContent(p[2]),u)for(const v of u.format)m.hasFormat(v)||m.toggleFormat(v);return{nodeAfter:h,nodeBefore:g,transformedNode:m}}(t,o.startIndex,o.endIndex,o.transformer,o.match);Xo(s.nodeAfter)&&Qo(s.nodeAfter,e,n),Xo(s.nodeBefore)&&Qo(s.nodeBefore,e,n),Xo(s.transformedNode)&&Qo(s.transformedNode,e,n)}else if(r){const s=function(l,c,d,u,p){let f,m,h;return c===0?[f,m]=l.splitText(d):[h,f,m]=l.splitText(c,d),u.replace?{nodeAfter:m,nodeBefore:h,transformedNode:u.replace(f,p)||void 0}:null}(t,r.startIndex,r.endIndex,r.transformer,r.match);if(!s)return;Xo(s.nodeAfter)&&Qo(s.nodeAfter,e,n),Xo(s.nodeBefore)&&Qo(s.nodeBefore,e,n),Xo(s.transformedNode)&&Qo(s.transformedNode,e,n)}const i=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(s,l)=>String.fromCodePoint(l));t.setTextContent(i)}function Lx(t,e=!1){const n=Rd(t),o=function(r){const i={},s={},l=[],c="(?<![\\\\])";for(const d of r){const{tag:u}=d;i[u]=d;const p=u.replace(/(\*|\^|\+)/g,"\\$1");l.push(p),u.length===1?s[u]=new RegExp(`(?<![\\\\${p}])(${p})((\\\\${p})?.*?[^${p}\\s](\\\\${p})?)((?<!\\\\)|(?<=\\\\\\\\))(${p})(?![\\\\${p}])`):s[u]=new RegExp(`(?<!\\\\)(${p})((\\\\${p})?.*?[^\\s](\\\\${p})?)((?<!\\\\)|(?<=\\\\\\\\))(${p})(?!\\\\)`)}return{fullMatchRegExpByTag:s,openTagsRegExp:new RegExp(`${c}(${l.join("|")})`,"g"),transformersByTag:i}}(n.textFormat);return(r,i)=>{const s=r.split(`
46
- `),l=s.length,c=i||$e();c.clear();for(let u=0;u<l;u++){const p=s[u],[f,m]=Mx(s,u,n.multilineElement,c);f?u=m:$x(p,c,n.element,o,n.textMatch,e)}const d=c.getChildren();for(const u of d)!e&&Pd(u)&&c.getChildrenSize()>1&&u.remove();te()!==null&&c.selectStart()}}function Mx(t,e,n,o){for(const r of n){const{handleImportAfterStartMatch:i,regExpEnd:s,regExpStart:l,replace:c}=r,d=t[e].match(l);if(!d)continue;if(i){const h=i({lines:t,rootNode:o,startLineIndex:e,startMatch:d,transformer:r});if(h===null)continue;if(h)return h}const u=typeof s=="object"&&"regExp"in s?s.regExp:s,p=s&&typeof s=="object"&&"optional"in s?s.optional:!s;let f=e;const m=t.length;for(;f<m;){const h=u?t[f].match(u):null;if(!h&&(!p||p&&f<m-1)){f++;continue}if(h&&e===f&&h.index===d.index){f++;continue}const g=[];if(h&&e===f)g.push(t[e].slice(d[0].length,-h[0].length));else for(let v=e;v<=f;v++)if(v===e){const y=t[v].slice(d[0].length);g.push(y)}else if(v===f&&h){const y=t[v].slice(0,-h[0].length);g.push(y)}else g.push(t[v]);if(c(o,null,d,h,g,!0)!==!1)return[!0,f];break}}return[!1,e]}function $x(t,e,n,o,r,i){const s=Re(t),l=Be();l.append(s),e.append(l);for(const{regExp:c,replace:d}of n){const u=t.match(c);if(u&&(s.setTextContent(t.slice(u[0].length)),d(l,[s],u,!0)!==!1))break}if(Qo(s,o,r),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!i&&(Ha(c)||Ld(c)||de(c))){let d=c;if(de(c)){const u=c.getLastDescendant();d=u==null?null:Zt(u,we)}d!=null&&d.getTextContentSize()>0&&(d.splice(d.getChildrenSize(),0,[nn(),...l.getChildren()]),l.remove())}}}function Ox(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Kh=/^(\s*)(\d{1,})\.\s/,Yh=/^(\s*)[-*+]\s/,Ix=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,Vd=/^(#{1,6})\s/,Jh=/^>\s/,Xh=/^[ \t]*```([\w-]+)?/,Fd=/[ \t]*```$/,Rx=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,Px=/^(?:\|)(.+)(?:\|)\s?$/,Vx=/^(\| ?:?-*:? ?)+\|\s?$/,Qh=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,eg=/^<\/[a-z_][\w-]*\s*>/i,tg=t=>new RegExp(`(?:${t.source})$`,t.flags),ei=C9("mdListMarker",{parse:t=>typeof t=="string"&&/^[-*+]$/.test(t)?t:"-"}),ng=t=>(e,n,o,r)=>{const i=t(o);i.append(...n),e.replace(i),r||i.select(0,0)},og=t=>(e,n,o,r)=>{const i=e.getPreviousSibling(),s=e.getNextSibling(),l=Bt(t==="check"?o[3]==="x":void 0),c=o[0].trim()[0],d=t!=="bullet"&&t!=="check"||c!==ei.parse(c)?void 0:c;if(de(s)&&s.getListType()===t){d&&_c(s,ei,d);const p=s.getFirstChild();p!==null?p.insertBefore(l):s.append(l),e.remove()}else if(de(i)&&i.getListType()===t)d&&_c(i,ei,d),i.append(l),e.remove();else{const p=gt(t,t==="number"?Number(o[2]):void 0);d&&_c(p,ei,d),p.append(l),e.replace(p)}l.append(...n),r||l.select(0,0);const u=function(p){const f=p.match(/\t/g),m=p.match(/ /g);let h=0;return f&&(h+=f.length),m&&(h+=Math.floor(m.length/4)),h}(o[1]);u&&l.setIndent(u)},zd=(t,e,n)=>{const o=[],r=t.getChildren();let i=0;for(const s of r)if(we(s)){if(s.getChildrenSize()===1){const p=s.getFirstChild();if(de(p)){o.push(zd(p,e,n+1));continue}}const l=" ".repeat(4*n),c=t.getListType(),d=K1(t,ei),u=c==="number"?`${t.getStart()+i}. `:c==="check"?`${d} [${s.getChecked()?"x":" "}] `:d+" ";o.push(l+u+e(s)),i++}return o.join(`
45
+ `):X(l)?i.push(Zh(l,l.getTextContent(),e,o,r)):V(l)?i.push(Xs(l,e,n,o,r)):ve(l)&&i.push(l.getTextContent())}return i.join("")}function Zh(t,e,n,o,r){let i=t.getFormat()===0?e:function(f){return f.replace(/^\s+|\s+$/g,m=>[...m].map(h=>"&#"+h.codePointAt(0)+";").join(""))}(e);t.hasFormat("code")||(i=i.replace(/([*_`~\\])/g,"\\$1"));let s="",l="",c="";const d=Gh(t,!0),u=Gh(t,!1),p=new Set;for(const f of n){const m=f.format[0],h=f.tag;Qs(t,m)&&!p.has(m)&&(p.add(m),Qs(d,m)&&o.find(g=>g.tag===h)||(o.push({format:m,tag:h}),s+=h))}for(let f=0;f<o.length;f++){const m=Qs(t,o[f].format),h=Qs(u,o[f].format);if(m&&h)continue;const g=[...o];for(;g.length>f;){const v=g.pop();r&&v&&r.find(_=>_.tag===v.tag)||(v&&typeof v.tag=="string"&&(m?h||(c+=v.tag):l+=v.tag),o.pop())}break}return i=s+i+c,l+i}function Gh(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();if(!n){const o=t.getParentOrThrow();o.isInline()&&(n=e?o.getPreviousSibling():o.getNextSibling())}for(;n;){if(V(n)){if(!n.isInline())break;const o=e?n.getLastDescendant():n.getFirstDescendant();if(X(o))return o;n=e?n.getPreviousSibling():n.getNextSibling()}if(X(n))return n;if(!V(n))return null}return null}function Qs(t,e){return X(t)&&t.hasFormat(e)}function Bx(t,e){const n=function(r,i){const s=r.match(i.openTagsRegExp);if(s==null)return null;for(const l of s){const c=l.replace(/^\s/,""),d=i.fullMatchRegExpByTag[c];if(d==null)continue;const u=r.match(d),p=i.transformersByTag[c];if(u!=null&&p!=null){if(p.intraword!==!1)return u;const{index:f=0}=u,m=r[f-1],h=r[f+u[0].length];if((!m||Js.test(m))&&(!h||Js.test(h)))return u}}return null}(t.getTextContent(),e);if(!n)return null;const o=n.index||0;return{endIndex:o+n[0].length,match:n,startIndex:o,transformer:e.transformersByTag[n[1]]}}function Xo(t){return X(t)&&!t.hasFormat("code")}function Qo(t,e,n){let o=Bx(t,e),r=function(s,l){const c=s;let d,u,p,f;for(const m of l){if(!m.replace||!m.importRegExp)continue;const h=c.getTextContent().match(m.importRegExp);if(!h)continue;const g=h.index||0,v=m.getEndIndex?m.getEndIndex(c,h):g+h[0].length;v!==!1&&(d===void 0||u===void 0||g<d&&(v>u||v<=d))&&(d=g,u=v,p=m,f=h)}return d===void 0||u===void 0||p===void 0||f===void 0?null:{endIndex:u,match:f,startIndex:d,transformer:p}}(t,n);if(o&&r&&(o.startIndex<=r.startIndex&&o.endIndex>=r.endIndex||r.startIndex>o.endIndex?r=null:o=null),o){const s=function(l,c,d,u,p){const f=l.getTextContent();let m,h,g;if(p[0]===f?m=l:c===0?[m,h]=l.splitText(d):[g,m,h]=l.splitText(c,d),m.setTextContent(p[2]),u)for(const v of u.format)m.hasFormat(v)||m.toggleFormat(v);return{nodeAfter:h,nodeBefore:g,transformedNode:m}}(t,o.startIndex,o.endIndex,o.transformer,o.match);Xo(s.nodeAfter)&&Qo(s.nodeAfter,e,n),Xo(s.nodeBefore)&&Qo(s.nodeBefore,e,n),Xo(s.transformedNode)&&Qo(s.transformedNode,e,n)}else if(r){const s=function(l,c,d,u,p){let f,m,h;return c===0?[f,m]=l.splitText(d):[h,f,m]=l.splitText(c,d),u.replace?{nodeAfter:m,nodeBefore:h,transformedNode:u.replace(f,p)||void 0}:null}(t,r.startIndex,r.endIndex,r.transformer,r.match);if(!s)return;Xo(s.nodeAfter)&&Qo(s.nodeAfter,e,n),Xo(s.nodeBefore)&&Qo(s.nodeBefore,e,n),Xo(s.transformedNode)&&Qo(s.transformedNode,e,n)}const i=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(s,l)=>String.fromCodePoint(l));t.setTextContent(i)}function Lx(t,e=!1){const n=Rd(t),o=function(r){const i={},s={},l=[],c="(?<![\\\\])";for(const d of r){const{tag:u}=d;i[u]=d;const p=u.replace(/(\*|\^|\+)/g,"\\$1");l.push(p),u.length===1?s[u]=new RegExp(`(?<![\\\\${p}])(${p})((\\\\${p})?.*?[^${p}\\s](\\\\${p})?)((?<!\\\\)|(?<=\\\\\\\\))(${p})(?![\\\\${p}])`):s[u]=new RegExp(`(?<!\\\\)(${p})((\\\\${p})?.*?[^\\s](\\\\${p})?)((?<!\\\\)|(?<=\\\\\\\\))(${p})(?!\\\\)`)}return{fullMatchRegExpByTag:s,openTagsRegExp:new RegExp(`${c}(${l.join("|")})`,"g"),transformersByTag:i}}(n.textFormat);return(r,i)=>{const s=r.split(`
46
+ `),l=s.length,c=i||$e();c.clear();for(let u=0;u<l;u++){const p=s[u],[f,m]=Mx(s,u,n.multilineElement,c);f?u=m:$x(p,c,n.element,o,n.textMatch,e)}const d=c.getChildren();for(const u of d)!e&&Pd(u)&&c.getChildrenSize()>1&&u.remove();te()!==null&&c.selectStart()}}function Mx(t,e,n,o){for(const r of n){const{handleImportAfterStartMatch:i,regExpEnd:s,regExpStart:l,replace:c}=r,d=t[e].match(l);if(!d)continue;if(i){const h=i({lines:t,rootNode:o,startLineIndex:e,startMatch:d,transformer:r});if(h===null)continue;if(h)return h}const u=typeof s=="object"&&"regExp"in s?s.regExp:s,p=s&&typeof s=="object"&&"optional"in s?s.optional:!s;let f=e;const m=t.length;for(;f<m;){const h=u?t[f].match(u):null;if(!h&&(!p||p&&f<m-1)){f++;continue}if(h&&e===f&&h.index===d.index){f++;continue}const g=[];if(h&&e===f)g.push(t[e].slice(d[0].length,-h[0].length));else for(let v=e;v<=f;v++)if(v===e){const _=t[v].slice(d[0].length);g.push(_)}else if(v===f&&h){const _=t[v].slice(0,-h[0].length);g.push(_)}else g.push(t[v]);if(c(o,null,d,h,g,!0)!==!1)return[!0,f];break}}return[!1,e]}function $x(t,e,n,o,r,i){const s=Re(t),l=Be();l.append(s),e.append(l);for(const{regExp:c,replace:d}of n){const u=t.match(c);if(u&&(s.setTextContent(t.slice(u[0].length)),d(l,[s],u,!0)!==!1))break}if(Qo(s,o,r),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!i&&(Ha(c)||Ld(c)||de(c))){let d=c;if(de(c)){const u=c.getLastDescendant();d=u==null?null:Zt(u,we)}d!=null&&d.getTextContentSize()>0&&(d.splice(d.getChildrenSize(),0,[nn(),...l.getChildren()]),l.remove())}}}function Ox(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Kh=/^(\s*)(\d{1,})\.\s/,Yh=/^(\s*)[-*+]\s/,Ix=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,Vd=/^(#{1,6})\s/,Jh=/^>\s/,Xh=/^[ \t]*```([\w-]+)?/,Fd=/[ \t]*```$/,Rx=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,Px=/^(?:\|)(.+)(?:\|)\s?$/,Vx=/^(\| ?:?-*:? ?)+\|\s?$/,Qh=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,eg=/^<\/[a-z_][\w-]*\s*>/i,tg=t=>new RegExp(`(?:${t.source})$`,t.flags),ei=C9("mdListMarker",{parse:t=>typeof t=="string"&&/^[-*+]$/.test(t)?t:"-"}),ng=t=>(e,n,o,r)=>{const i=t(o);i.append(...n),e.replace(i),r||i.select(0,0)},og=t=>(e,n,o,r)=>{const i=e.getPreviousSibling(),s=e.getNextSibling(),l=Bt(t==="check"?o[3]==="x":void 0),c=o[0].trim()[0],d=t!=="bullet"&&t!=="check"||c!==ei.parse(c)?void 0:c;if(de(s)&&s.getListType()===t){d&&yc(s,ei,d);const p=s.getFirstChild();p!==null?p.insertBefore(l):s.append(l),e.remove()}else if(de(i)&&i.getListType()===t)d&&yc(i,ei,d),i.append(l),e.remove();else{const p=gt(t,t==="number"?Number(o[2]):void 0);d&&yc(p,ei,d),p.append(l),e.replace(p)}l.append(...n),r||l.select(0,0);const u=function(p){const f=p.match(/\t/g),m=p.match(/ /g);let h=0;return f&&(h+=f.length),m&&(h+=Math.floor(m.length/4)),h}(o[1]);u&&l.setIndent(u)},zd=(t,e,n)=>{const o=[],r=t.getChildren();let i=0;for(const s of r)if(we(s)){if(s.getChildrenSize()===1){const p=s.getFirstChild();if(de(p)){o.push(zd(p,e,n+1));continue}}const l=" ".repeat(4*n),c=t.getListType(),d=K1(t,ei),u=c==="number"?`${t.getStart()+i}. `:c==="check"?`${d} [${s.getChecked()?"x":" "}] `:d+" ";o.push(l+u+e(s)),i++}return o.join(`
47
47
  `)},rg={dependencies:[Us],export:(t,e)=>{if(!Oh(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:Vd,replace:ng(t=>{const e="h"+t[1].length;return Jo(e)}),type:"element"},Fx={dependencies:[Dd],export:(t,e)=>{if(!Ld(t))return null;const n=e(t).split(`
48
48
  `),o=[];for(const r of n)o.push("> "+r);return o.join(`
49
49
  `)},regExp:Jh,replace:(t,e,n,o)=>{if(o){const i=t.getPreviousSibling();if(Ld(i))return i.splice(i.getChildrenSize(),0,[nn(),...e]),void t.remove()}const r=Bd();r.append(...e),t.replace(r),o||r.select(0,0)},type:"element"},ag={dependencies:[Zs],export:t=>{if(!Gs(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
50
50
  `+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:Fd},regExpStart:Xh,replace:(t,e,n,o,r,i)=>{let s,l;if(!e&&r){if(r.length===1)o?(s=xn(),l=n[1]+r[0]):(s=xn(n[1]),l=r[0].startsWith(" ")?r[0].slice(1):r[0]);else{if(s=xn(n[1]),r[0].trim().length===0)for(;r.length>0&&!r[0].length;)r.shift();else r[0]=r[0].startsWith(" ")?r[0].slice(1):r[0];for(;r.length>0&&!r[r.length-1].length;)r.pop();l=r.join(`
51
- `)}const c=Re(l);s.append(c),t.append(s)}else e&&ng(c=>xn(c?c[1]:void 0))(t,e,n,i)},type:"multiline-element"},ig={dependencies:[Ko,go],export:(t,e)=>de(t)?zd(t,e,0):null,regExp:Yh,replace:og("bullet"),type:"element"},sg={dependencies:[Ko,go],export:(t,e)=>de(t)?zd(t,e,0):null,regExp:Kh,replace:og("number"),type:"element"},lg={format:["code"],tag:"`",type:"text-format"},zx={format:["highlight"],tag:"==",type:"text-format"},cg={format:["bold","italic"],tag:"***",type:"text-format"},qx={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},dg={format:["bold"],tag:"**",type:"text-format"},jx={format:["bold"],intraword:!1,tag:"__",type:"text-format"},ug={format:["strikethrough"],tag:"~~",type:"text-format"},pg={format:["italic"],tag:"*",type:"text-format"},Ux={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Hx={dependencies:[jr],export:(t,e,n)=>{if(!Sx(t)||Tx(t))return null;const o=t.getTitle(),r=e(t);return o?`[${r}](${t.getURL()} "${o}")`:`[${r}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{const[,n,o,r]=e,i=Ks(o,{title:r}),s=n.split("[").length-1,l=n.split("]").length-1;let c=n,d="";if(s<l)return;if(s>l){const p=n.split("[");d="["+p[0],c=p.slice(1).join("[")}const u=Re(c);return u.setFormat(t.getFormat()),i.append(u),t.replace(i),d&&i.insertBefore(Re(d)),u},trigger:")",type:"text-match"},Wx=[rg,Fx,ig,sg],Zx=[ag],Gx=[lg,cg,qx,dg,jx,zx,pg,Ux,ug],Kx=[Hx],qd=[...Wx,...Zx,...Gx,...Kx];function fg(t,e,n){const o=n.length;for(let r=e;r>=o;r--){const i=r-o;if(mg(t,i,n,0,o)&&t[i+o]!==" ")return i}return-1}function mg(t,e,n,o,r){for(let i=0;i<r;i++)if(t[e+i]!==n[o+i])return!1;return!0}function Yx(t,e=qd){const n=Rd(e),o=Id(n.textFormat,({tag:s})=>s[s.length-1]),r=Id(n.textMatch,({trigger:s})=>s);for(const s of e){const l=s.type;if(l==="element"||l==="text-match"||l==="multiline-element"){const c=s.dependencies;for(const d of c)t.hasNode(d)||Ox(173,d.getType())}}const i=(s,l,c)=>{(function(d,u,p,f){const m=d.getParent();if(!ut(m)||d.getFirstChild()!==u)return!1;const h=u.getTextContent();if(h[p-1]!==" ")return!1;for(const{regExp:g,replace:v}of f){const y=h.match(g);if(y&&y[0].length===(y[0].endsWith(" ")?p:p-1)){const _=u.getNextSiblings(),[b,k]=u.splitText(p);if(v(d,k?[k,..._]:_,y,!1)!==!1)return b.remove(),!0}}return!1})(s,l,c,n.element)||function(d,u,p,f){const m=d.getParent();if(!ut(m)||d.getFirstChild()!==u)return!1;const h=u.getTextContent();if(h[p-1]!==" ")return!1;for(const{regExpStart:g,replace:v,regExpEnd:y}of f){if(y&&!("optional"in y)||y&&"optional"in y&&!y.optional)continue;const _=h.match(g);if(_&&_[0].length===(_[0].endsWith(" ")?p:p-1)){const b=u.getNextSiblings(),[k,w]=u.splitText(p);if(v(d,w?[w,...b]:b,_,null,null,!1)!==!1)return k.remove(),!0}}return!1}(s,l,c,n.multilineElement)||function(d,u,p){let f=d.getTextContent();const m=p[f[u-1]];if(m==null)return!1;u<f.length&&(f=f.slice(0,u));for(const h of m){if(!h.replace||!h.regExp)continue;const g=f.match(h.regExp);if(g===null)continue;const v=g.index||0,y=v+g[0].length;let _;return v===0?[_]=d.splitText(y):[,_]=d.splitText(v,y),_.selectNext(0,0),h.replace(_,g),!0}return!1}(l,c,r)||function(d,u,p){const f=d.getTextContent(),m=u-1,h=f[m],g=p[h];if(!g)return!1;for(const v of g){const{tag:y}=v,_=y.length,b=m-_+1;if(_>1&&!mg(f,b,y,0,_)||f[b-1]===" ")continue;const k=f[m+1];if(v.intraword===!1&&k&&!Js.test(k))continue;const w=d;let C=w,x=fg(f,b,y),S=C;for(;x<0&&(S=S.getPreviousSibling())&&!so(S);)if(X(S)){if(S.hasFormat("code"))continue;const G=S.getTextContent();C=S,x=fg(G,G.length,y)}if(x<0||C===w&&x+_===b)continue;const T=C.getTextContent();if(x>0&&T[x-1]===h)continue;const A=T[x-1];if(v.intraword===!1&&A&&!Js.test(A))continue;const z=w.getTextContent(),O=z.slice(0,b)+z.slice(m+1);w.setTextContent(O);const B=C===w?O:T;C.setTextContent(B.slice(0,x)+B.slice(x+_));const L=te(),I=xs();st(I);const P=m-_*(C===w?2:1)+1;I.anchor.set(C.__key,x,"text"),I.focus.set(w.__key,P,"text");for(const G of v.format)I.hasFormat(G)||I.formatText(G);I.anchor.set(I.focus.key,I.focus.offset,I.focus.type);for(const G of v.format)I.hasFormat(G)&&I.toggleFormat(G);return H(L)&&(I.format=L.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:s,dirtyLeaves:l,editorState:c,prevEditorState:d})=>{if(s.has(zf)||s.has(ys)||t.isComposing())return;const u=c.read(te),p=d.read(te);if(!H(p)||!H(u)||!u.isCollapsed()||u.is(p))return;const f=u.anchor.key,m=u.anchor.offset,h=c._nodeMap.get(f);!X(h)||!l.has(f)||m!==1&&m>p.anchor.offset+1||t.update(()=>{if(!Xo(h))return;const g=h.getParent();g===null||Gs(g)||i(g,h,u.anchor.offset)})})}function Jx(t,e=qd,n,o=!1,r=!1){const i=o?t:function(s,l=!1){const c=s.split(`
51
+ `)}const c=Re(l);s.append(c),t.append(s)}else e&&ng(c=>xn(c?c[1]:void 0))(t,e,n,i)},type:"multiline-element"},ig={dependencies:[Ko,go],export:(t,e)=>de(t)?zd(t,e,0):null,regExp:Yh,replace:og("bullet"),type:"element"},sg={dependencies:[Ko,go],export:(t,e)=>de(t)?zd(t,e,0):null,regExp:Kh,replace:og("number"),type:"element"},lg={format:["code"],tag:"`",type:"text-format"},zx={format:["highlight"],tag:"==",type:"text-format"},cg={format:["bold","italic"],tag:"***",type:"text-format"},qx={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},dg={format:["bold"],tag:"**",type:"text-format"},jx={format:["bold"],intraword:!1,tag:"__",type:"text-format"},ug={format:["strikethrough"],tag:"~~",type:"text-format"},pg={format:["italic"],tag:"*",type:"text-format"},Ux={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Hx={dependencies:[jr],export:(t,e,n)=>{if(!Sx(t)||Tx(t))return null;const o=t.getTitle(),r=e(t);return o?`[${r}](${t.getURL()} "${o}")`:`[${r}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{const[,n,o,r]=e,i=Ks(o,{title:r}),s=n.split("[").length-1,l=n.split("]").length-1;let c=n,d="";if(s<l)return;if(s>l){const p=n.split("[");d="["+p[0],c=p.slice(1).join("[")}const u=Re(c);return u.setFormat(t.getFormat()),i.append(u),t.replace(i),d&&i.insertBefore(Re(d)),u},trigger:")",type:"text-match"},Wx=[rg,Fx,ig,sg],Zx=[ag],Gx=[lg,cg,qx,dg,jx,zx,pg,Ux,ug],Kx=[Hx],qd=[...Wx,...Zx,...Gx,...Kx];function fg(t,e,n){const o=n.length;for(let r=e;r>=o;r--){const i=r-o;if(mg(t,i,n,0,o)&&t[i+o]!==" ")return i}return-1}function mg(t,e,n,o,r){for(let i=0;i<r;i++)if(t[e+i]!==n[o+i])return!1;return!0}function Yx(t,e=qd){const n=Rd(e),o=Id(n.textFormat,({tag:s})=>s[s.length-1]),r=Id(n.textMatch,({trigger:s})=>s);for(const s of e){const l=s.type;if(l==="element"||l==="text-match"||l==="multiline-element"){const c=s.dependencies;for(const d of c)t.hasNode(d)||Ox(173,d.getType())}}const i=(s,l,c)=>{(function(d,u,p,f){const m=d.getParent();if(!ut(m)||d.getFirstChild()!==u)return!1;const h=u.getTextContent();if(h[p-1]!==" ")return!1;for(const{regExp:g,replace:v}of f){const _=h.match(g);if(_&&_[0].length===(_[0].endsWith(" ")?p:p-1)){const y=u.getNextSiblings(),[b,k]=u.splitText(p);if(v(d,k?[k,...y]:y,_,!1)!==!1)return b.remove(),!0}}return!1})(s,l,c,n.element)||function(d,u,p,f){const m=d.getParent();if(!ut(m)||d.getFirstChild()!==u)return!1;const h=u.getTextContent();if(h[p-1]!==" ")return!1;for(const{regExpStart:g,replace:v,regExpEnd:_}of f){if(_&&!("optional"in _)||_&&"optional"in _&&!_.optional)continue;const y=h.match(g);if(y&&y[0].length===(y[0].endsWith(" ")?p:p-1)){const b=u.getNextSiblings(),[k,w]=u.splitText(p);if(v(d,w?[w,...b]:b,y,null,null,!1)!==!1)return k.remove(),!0}}return!1}(s,l,c,n.multilineElement)||function(d,u,p){let f=d.getTextContent();const m=p[f[u-1]];if(m==null)return!1;u<f.length&&(f=f.slice(0,u));for(const h of m){if(!h.replace||!h.regExp)continue;const g=f.match(h.regExp);if(g===null)continue;const v=g.index||0,_=v+g[0].length;let y;return v===0?[y]=d.splitText(_):[,y]=d.splitText(v,_),y.selectNext(0,0),h.replace(y,g),!0}return!1}(l,c,r)||function(d,u,p){const f=d.getTextContent(),m=u-1,h=f[m],g=p[h];if(!g)return!1;for(const v of g){const{tag:_}=v,y=_.length,b=m-y+1;if(y>1&&!mg(f,b,_,0,y)||f[b-1]===" ")continue;const k=f[m+1];if(v.intraword===!1&&k&&!Js.test(k))continue;const w=d;let C=w,x=fg(f,b,_),S=C;for(;x<0&&(S=S.getPreviousSibling())&&!so(S);)if(X(S)){if(S.hasFormat("code"))continue;const G=S.getTextContent();C=S,x=fg(G,G.length,_)}if(x<0||C===w&&x+y===b)continue;const T=C.getTextContent();if(x>0&&T[x-1]===h)continue;const A=T[x-1];if(v.intraword===!1&&A&&!Js.test(A))continue;const z=w.getTextContent(),O=z.slice(0,b)+z.slice(m+1);w.setTextContent(O);const B=C===w?O:T;C.setTextContent(B.slice(0,x)+B.slice(x+y));const L=te(),I=xs();st(I);const P=m-y*(C===w?2:1)+1;I.anchor.set(C.__key,x,"text"),I.focus.set(w.__key,P,"text");for(const G of v.format)I.hasFormat(G)||I.formatText(G);I.anchor.set(I.focus.key,I.focus.offset,I.focus.type);for(const G of v.format)I.hasFormat(G)&&I.toggleFormat(G);return H(L)&&(I.format=L.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:s,dirtyLeaves:l,editorState:c,prevEditorState:d})=>{if(s.has(zf)||s.has(_s)||t.isComposing())return;const u=c.read(te),p=d.read(te);if(!H(p)||!H(u)||!u.isCollapsed()||u.is(p))return;const f=u.anchor.key,m=u.anchor.offset,h=c._nodeMap.get(f);!X(h)||!l.has(f)||m!==1&&m>p.anchor.offset+1||t.update(()=>{if(!Xo(h))return;const g=h.getParent();g===null||Gs(g)||i(g,h,u.anchor.offset)})})}function Jx(t,e=qd,n,o=!1,r=!1){const i=o?t:function(s,l=!1){const c=s.split(`
52
52
  `);let d=!1;const u=[];for(let p=0;p<c.length;p++){const f=c[p].trimEnd(),m=u[u.length-1];Rx.test(f)?u.push(f):Xh.test(f)||Fd.test(f)?(d=!d,u.push(f)):d||f===""||m===""||!m||Vd.test(m)||Vd.test(f)||Jh.test(f)||Kh.test(f)||Yh.test(f)||Ix.test(f)||Px.test(f)||Vx.test(f)||!l||Qh.test(f)||eg.test(f)||tg(eg).test(m)||tg(Qh).test(m)||Fd.test(m)?u.push(f):u[u.length-1]=m+" "+f.trimStart()}return u.join(`
53
53
  `)}(t,r);return Lx(e,o)(i,n)}function Xx(t=qd,e,n=!1){return function(r,i=!1){const s=Rd(r),l=[...s.multilineElement,...s.element],c=!i,d=s.textFormat.filter(u=>u.format.length===1).sort((u,p)=>Number(u.format.includes("code"))-Number(p.format.includes("code")));return u=>{const p=[],f=(u||$e()).getChildren();for(let m=0;m<f.length;m++){const h=f[m],g=Dx(h,l,d,s.textMatch);g!=null&&p.push(c&&m>0&&!Pd(h)&&!Pd(f[m-1])?`
54
54
  `.concat(g):g)}return p.join(`
55
- `)}}(t,n)(e)}var Qx=process.env.NODE_ENV==="production",jd="Invariant failed";function eE(t,e){if(!t){if(Qx)throw new Error(jd);var n=typeof e=="function"?e():e,o=n?"".concat(jd,": ").concat(n):jd;throw new Error(o)}}const hg=Symbol("LexicalEditor"),tE=(()=>{const t=a.defineComponent({name:"LexicalComposer",props:{initialConfig:{required:!0}},emits:["error"],setup(e,n){let{emit:o,expose:r}=n;const i=o;r();const s=e,l={tag:Ra},{theme:c,namespace:d,nodes:u,onError:p,editorState:f,html:m}=s.initialConfig,h=c6({editable:s.initialConfig.editable,html:m,namespace:d,nodes:u,theme:c,onError(v){i("error",v,h),p==null||p(v,h)}});g(h,f);function g(v,y){if(y!==null){if(y===void 0)v.update(()=>{const _=$e();if(_.isEmpty()){const b=Be();_.append(b);const k=F6?document.activeElement:null;(te()!==null||k!==null&&k===v.getRootElement())&&b.select()}},l);else if(y!==null)switch(typeof y){case"string":{const _=v.parseEditorState(y);v.setEditorState(_,l);break}case"object":v.setEditorState(y,l);break;case"function":v.update(()=>{$e().isEmpty()&&y(v)},l);break}}}return a.provide(hg,h),a.onMounted(()=>{const v=s.initialConfig.editable;h.setEditable(v!==void 0?v:!0)}),(v,y)=>a.renderSlot(v.$slots,"default")}});return t.__vue_vine=!0,t})();function Ur(){const t=a.inject(hg,null);return t||eE(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function nE(t,e){if(t==null)return{};var n=oE(t,e),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)o=i[r],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function oE(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,i;for(i=0;i<o.length;i++)r=o[i],e.indexOf(r)>=0||(n[r]=t[r]);return n}const rE=(()=>{const t=["aria-activedescendant","aria-autocomplete","aria-controls","aria-describedby","aria-expanded","aria-label","aria-labelledby","aria-multiline","aria-owns","aria-readonly","aria-required","autocapitalize","contenteditable","role","spellcheck","tabindex"],e=a.defineComponent({name:"ContentEditableElement",props:{editor:{required:!0},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean},onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{}},setup(n,o){let{expose:r}=o;r();const i=n,s=a.useTemplateRef("root"),l=a.ref(i.editor.isEditable()),c=a.computed(()=>nE(i,["editor"]));a.onMounted(()=>{function u(f){f&&f.ownerDocument&&f.ownerDocument.defaultView?i.editor.setRootElement(f):i.editor.setRootElement(null)}u(s.value),l.value=i.editor.isEditable();const p=i.editor.registerEditableListener(f=>{l.value=f});a.onUnmounted(p)});const d=a.computed(()=>{var u;return(u=i.role)!=null?u:"textbox"});return(u,p)=>(a.openBlock(),a.createElementBlock("div",a.mergeProps({ref_key:"root",ref:s},c.value,{"aria-activedescendant":l.value?u.ariaActiveDescendant:void 0,"aria-autocomplete":l.value?u.ariaAutoComplete:"none","aria-controls":l.value?u.ariaControls:void 0,"aria-describedby":u.ariaDescribedBy,"aria-expanded":l.value&&d.value==="combobox"?!!u.ariaExpanded:void 0,"aria-label":u.ariaLabel,"aria-labelledby":u.ariaLabelledBy,"aria-multiline":u.ariaMultiline,"aria-owns":l.value?u.ariaOwns:void 0,"aria-readonly":l.value?void 0:!0,"aria-required":u.ariaRequired,autocapitalize:u.autocapitalize,contenteditable:l.value,role:l.value?d.value:void 0,spellcheck:u.spellcheck||!0,tabindex:u.tabindex}),null,16,t))}});return e.__vue_vine=!0,e})();function aE(){return $e().getTextContent()}function iE(t,e=!0){if(t)return!1;let n=aE();return e&&(n=n.trim()),n===""}function sE(t){if(!iE(t,!1))return!1;const e=$e().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const r=e[o];if(ve(r))return!1;if(V(r)){if(!Ha(r)||r.__indent!==0)return!1;const i=r.getChildren(),s=i.length;for(let l=0;l<s;l++){const c=i[o];if(!X(c))return!1}}}return!0}function gg(t){return()=>sE(t)}function lE(t){return t.getEditorState().read(gg(t.isComposing()))}function bg(t){const e=t.getEditorState().read(gg(t.isComposing())),n=a.ref(e);function o(){const r=lE(t);n.value=r}return a.onMounted(()=>{const r=Ja(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));a.onUnmounted(()=>{r()})}),a.readonly(n)}function cE(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dE(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){cE(t,r,n[r])})}return t}function uE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function pE(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):uE(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const fE=(()=>{const t={key:0,"aria-hidden":"true"},e=a.defineComponent({name:"ContentEditable",props:{onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean}},setup(n,o){let{expose:r}=o;r();const i=Ur(),s=a.ref(!1),l=bg(i);return a.onMounted(()=>{s.value=i.isEditable();const c=i.registerEditableListener(d=>{s.value=d});a.onUnmounted(c)}),(c,d)=>{var u,p;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(rE),a.mergeProps({editor:a.unref(i)},pE(dE({},c.$props),{role:(u=c.role)!=null?u:"textbox",spellcheck:(p=c.spellcheck)!=null?p:!0})),null,16,["editor"]),a.unref(l)?(a.openBlock(),a.createElementBlock("div",t,[a.renderSlot(c.$slots,"placeholder")])):a.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function mE(t,e,n,o,r){if(t===null||n.size===0&&o.size===0&&!r)return 0;const i=e._selection,s=t._selection;if(r)return 1;if(!(H(i)&&H(s)&&s.isCollapsed()&&i.isCollapsed()))return 0;const l=function(y,_,b){const k=y._nodeMap,w=[];for(const C of _){const x=k.get(C);x!==void 0&&w.push(x)}for(const[C,x]of b){if(!x)continue;const S=k.get(C);S===void 0||qe(S)||w.push(S)}return w}(e,n,o);if(l.length===0)return 0;if(l.length>1){const y=e._nodeMap,_=y.get(i.anchor.key),b=y.get(s.anchor.key);return _&&b&&!t._nodeMap.has(_.__key)&&X(_)&&_.__text.length===1&&i.anchor.offset===1?2:0}const c=l[0],d=t._nodeMap.get(c.__key);if(!X(d)||!X(c)||d.__mode!==c.__mode)return 0;const u=d.__text,p=c.__text;if(u===p)return 0;const f=i.anchor,m=s.anchor;if(f.key!==m.key||f.type!=="text")return 0;const h=f.offset,g=m.offset,v=p.length-u.length;return v===1&&g===h-1?2:v===-1&&g===h+1?3:v===-1&&g===h?4:0}function hE(t,e){let n=Date.now(),o=0;return(r,i,s,l,c,d)=>{const u=Date.now();if(d.has(ys))return o=0,n=u,2;const p=mE(r,i,l,c,t.isComposing()),f=(()=>{const m=s===null||s.editor===t,h=d.has(q9);if(!h&&m&&d.has(Ra))return 0;if(r===null)return 1;const g=i._selection;if(!(l.size>0||c.size>0))return g!==null?0:2;const v=typeof e=="number"?e:e.peek();return h===!1&&p!==0&&p===o&&u<n+v&&m||l.size===1&&function(y,_,b){const k=_._nodeMap.get(y),w=b._nodeMap.get(y),C=_._selection,x=b._selection;return!(H(C)&&H(x)&&C.anchor.type==="element"&&C.focus.type==="element"&&x.anchor.type==="text"&&x.focus.type==="text"||!X(k)||!X(w)||k.__parent!==w.__parent)&&JSON.stringify(_.read(()=>k.exportJSON()))===JSON.stringify(b.read(()=>w.exportJSON()))}(Array.from(l)[0],r,i)?0:1})();return n=u,o=p,f}}function _g(t){t.undoStack=[],t.redoStack=[],t.current=null}function gE(t,e,n){const o=hE(t,n);return Ja(t.registerCommand(Nc,()=>(function(i,s){const l=s.redoStack,c=s.undoStack;if(c.length!==0){const d=s.current,u=c.pop();d!==null&&(l.push(d),i.dispatchCommand(fs,!0)),c.length===0&&i.dispatchCommand(ms,!1),s.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:ys})}}(t,e),!0),ye),t.registerCommand(Dc,()=>(function(i,s){const l=s.redoStack,c=s.undoStack;if(l.length!==0){const d=s.current;d!==null&&(c.push(d),i.dispatchCommand(ms,!0));const u=l.pop();l.length===0&&i.dispatchCommand(fs,!1),s.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:ys})}}(t,e),!0),ye),t.registerCommand(I9,()=>(_g(e),!1),ye),t.registerCommand(R9,()=>(_g(e),t.dispatchCommand(fs,!1),t.dispatchCommand(ms,!1),!0),ye),t.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:l,dirtyElements:c,tags:d})=>{const u=e.current,p=e.redoStack,f=e.undoStack,m=u===null?null:u.editorState;if(u!==null&&i===m)return;const h=o(s,i,u,l,c,d);if(h===1)p.length!==0&&(e.redoStack=[],t.dispatchCommand(fs,!1)),u!==null&&(f.push({...u}),t.dispatchCommand(ms,!0));else if(h===2)return;e.current={editor:t,editorState:i}}))}function bE(){return{current:null,redoStack:[],undoStack:[]}}function _E(t,e,n){const o=a.computed(()=>a.toValue(e)||bE());a.watchEffect(r=>{const i=gE(a.toValue(t),o.value,a.toValue(n)||1e3);r(i)})}const yE=(()=>{const t=a.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,i=Ur();return _E(i,()=>r.externalHistoryState,()=>r.delay),(s,l)=>null}});return t.__vue_vine=!0,t})();function vE(t){a.onMounted(()=>{const e=Q6(t);a.onUnmounted(()=>{e()})})}const CE=(()=>{const t=a.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const r=e,i=Ur();return a.watchEffect(s=>{if(!i.hasNodes([Ko,go]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!r.hasStrictIndent)return;const l=ex(i);s(l)}),vE(i),(s,l)=>null}});return t.__vue_vine=!0,t})();function wE(t){const e=a.shallowRef(t.getDecorators());return a.onMounted(()=>{const n=t.registerDecoratorListener(o=>{e.value=o});a.onUnmounted(()=>{n()})}),a.computed(()=>{const n=[],o=Object.keys(a.unref(e));for(let r=0;r<o.length;r++){const i=o[r],s=e.value[i],l=t.getElementByKey(i);l!==null&&n.push(a.h(a.Teleport,{to:l},s))}return n})}const kE=a.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Ur(),e=wE(t);return()=>e.value}});function xE(t){a.onMounted(()=>{const e=Ja(_x(t),dx(t));a.onUnmounted(e)})}const EE=(()=>{const t=a.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Ur(),i=bg(r);return xE(r),(s,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.unref(i)?a.renderSlot(s.$slots,"placeholder",{key:0}):a.createCommentVNode("",!0),a.renderSlot(s.$slots,"contentEditable"),a.createVNode(a.unref(kE))],64))}});return t.__vue_vine=!0,t})(),Ud=[rg,ag,ig,sg,cg,dg,pg,ug,lg],SE={class:"ao-lexical-editor__placeholder"},yg=a.defineComponent({__name:"AoLexicalEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter text..."},variant:{default:"default"}},emits:["ready","keydown"],setup(t,{expose:e,emit:n}){const o=t,r=n,i=a.shallowRef(null),s=a.ref("paragraph"),l=a.computed(()=>({"ao-lexical-editor--compact":o.variant==="compact"})),c={namespace:"AoLexicalEditor",nodes:[Ko,go,Us,Zs],theme:{paragraph:"ao-lexical-editor__paragraph",heading:{h1:"ao-lexical-editor__heading-h1",h2:"ao-lexical-editor__heading-h2",h3:"ao-lexical-editor__heading-h3"},code:"ao-lexical-editor__code-block",text:{bold:"ao-lexical-editor__text-bold",italic:"ao-lexical-editor__text-italic",strikethrough:"ao-lexical-editor__text-strikethrough",code:"ao-lexical-editor__inline-code"},list:{ul:"ao-lexical-editor__list-ul",ol:"ao-lexical-editor__list-ol",listitem:"ao-lexical-editor__list-item"}},editorState:()=>{Jx(o.initialMarkdown||"",Ud)},onError(C){console.error("Lexical error:",C)}},d=a.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:C=>!0,blockStyleChange:C=>!0},setup(C,{emit:x}){const S=Ur();let T=null,A=null;const z=()=>{S.getEditorState().read(()=>{const O=te();if(!H(O))return;const B=O.anchor.getNode(),L=B.getKey()==="root"?B:B.getTopLevelElementOrThrow();if(Oh(L)){const I=L.getTag();if(I==="h1"||I==="h2"||I==="h3"){x("blockStyleChange",I);return}}if(Gs(L)){x("blockStyleChange","code");return}x("blockStyleChange","paragraph")})};return a.onMounted(()=>{x("ready",S),z(),A=Yx(S,Ud),T=S.registerUpdateListener(()=>{z()})}),a.onUnmounted(()=>{A==null||A(),T==null||T()}),()=>null}});function u(C){i.value=C,r("ready",C)}function p(C){r("keydown",C)}function f(){var C;(C=i.value)==null||C.dispatchCommand(Ut,"bold")}function m(){var C;(C=i.value)==null||C.dispatchCommand(Ut,"italic")}function h(){var C;(C=i.value)==null||C.dispatchCommand(Ut,"strikethrough")}function g(){var C;(C=i.value)==null||C.dispatchCommand(Ut,"code")}function v(){var C;(C=i.value)==null||C.dispatchCommand(vh,void 0)}function y(){var C;(C=i.value)==null||C.dispatchCommand(Ch,void 0)}function _(C){const x=i.value;x&&(x.focus(()=>{x.update(()=>{const S=te();if(H(S)){if(C==="paragraph"){xd(S,()=>Be());return}if(C==="code"){xd(S,()=>xn());return}xd(S,()=>Jo(C))}})}),s.value=C)}function b(){const C=i.value;return C?C.getEditorState().read(()=>Xx(Ud)):""}function k(){const C=i.value;C&&C.update(()=>{const x=$e();x.clear(),x.append(Be())})}function w(){var C;(C=i.value)==null||C.focus()}return e({toggleBold:f,toggleItalic:m,toggleStrikethrough:h,toggleInlineCode:g,insertBulletList:v,insertNumberedList:y,setBlockStyle:_,getMarkdown:b,clear:k,focus:w,blockStyle:s}),(C,x)=>(a.openBlock(),a.createBlock(a.unref(tE),{"initial-config":c},{default:a.withCtx(()=>[a.renderSlot(C.$slots,"toolbar"),a.createElementVNode("div",{class:a.normalizeClass(["ao-lexical-editor",l.value])},[a.createVNode(a.unref(EE),null,{contentEditable:a.withCtx(()=>[a.createVNode(a.unref(fE),{class:"ao-lexical-editor__content",onKeydown:p},{placeholder:a.withCtx(()=>[a.createElementVNode("div",SE,a.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),a.createVNode(a.unref(yE)),a.createVNode(a.unref(CE)),a.createVNode(a.unref(d),{onReady:u,onBlockStyleChange:x[0]||(x[0]=S=>s.value=S)})]),_:3}))}}),ihe="";function TE(t,e){const n=a.ref(""),o=a.ref(!1),r=a.ref({top:0,left:0}),i=a.ref(0),s=a.computed(()=>e.value.filter(h=>h.firstName||h.lastName).map(h=>({id:h.id,name:Vu(h)}))),l=a.computed(()=>s.value.filter(h=>h.name.toLowerCase().includes(n.value.toLowerCase())));function c(){o.value=!1,n.value="",i.value=0}function d(){const h=te();if(!H(h)||!h.isCollapsed()){c();return}const g=h.anchor.getNode();if(!X(g)){c();return}const y=g.getTextContent().slice(0,h.anchor.offset).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!y){c();return}n.value=y[1],o.value=!0,i.value>=l.value.length&&(i.value=0)}function u(){const h=t.value;if(!h||!o.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const v=g.getRangeAt(0),y=v.getClientRects().item(0)??v.getBoundingClientRect(),_=h.getRootElement();if(!_)return;const b=_.getBoundingClientRect();r.value={top:y.bottom-b.top+4,left:y.left-b.left}}function p(h){const g=t.value;g&&(g.update(()=>{const v=te();if(!H(v)||!v.isCollapsed())return;const y=v.anchor.getNode();if(!X(y))return;const _=y.getTextContent(),b=v.anchor.offset,w=_.slice(0,b).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!w)return;const C=b-w[0].length,x=`@${h} `,S=_.slice(0,C)+x+_.slice(b);y.setTextContent(S);const T=C+x.length;v.anchor.set(y.getKey(),T,"text"),v.focus.set(y.getKey(),T,"text")}),c(),g.focus())}function f(h){if(!o.value)return!1;switch(h.key){case"ArrowDown":return h.preventDefault(),l.value.length>0&&(i.value=(i.value+1)%l.value.length),!0;case"ArrowUp":return h.preventDefault(),l.value.length>0&&(i.value=(i.value-1+l.value.length)%l.value.length),!0;case"Enter":{if(l.value.length===0)return!1;h.preventDefault();const g=l.value[i.value];return g&&p(g.name),!0}case"Escape":return h.preventDefault(),c(),!0;default:return!1}}function m(){const h=t.value;if(h)return h.registerUpdateListener(({editorState:g})=>{g.read(()=>{d()}),o.value&&requestAnimationFrame(()=>{u()})})}return{mentionQuery:n,showMentionList:o,mentionListPosition:r,filteredUsers:l,selectedIndex:i,selectUserMention:p,handleKeydown:f,closeMentionList:c,setupMentionTracking:m}}const AE={key:0,class:"ao-comment-editor__toolbar"},NE=["onClick"],vg=a.defineComponent({__name:"AoCommentEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Add a comment..."},mentionableUsers:{default:()=>[]},showSubmitButton:{type:Boolean,default:!0},toolbarVisibility:{default:"focus"}},emits:["submit","cancel","focus","blur"],setup(t,{expose:e,emit:n}){const o=t,r=n,i=a.ref(null),s=a.shallowRef(null),l=a.ref(!1),c=a.toRef(o,"mentionableUsers"),{showMentionList:d,mentionListPosition:u,filteredUsers:p,selectedIndex:f,selectUserMention:m,handleKeydown:h,closeMentionList:g,setupMentionTracking:v}=TE(s,c);let y,_;const b=a.computed(()=>o.toolbarVisibility==="always"||l.value);a.onUnmounted(()=>{y==null||y(),_!==void 0&&window.clearTimeout(_)});function k(O){s.value=O,y==null||y(),y=v()}function w(){_!==void 0&&(window.clearTimeout(_),_=void 0),l.value||(l.value=!0,r("focus"))}function C(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{var L;_=void 0;const O=(L=s.value)==null?void 0:L.getRootElement(),B=document.activeElement;O&&B instanceof Node&&O.contains(B)||l.value&&(l.value=!1,r("blur"))},100)}function x(O){if(!h(O)){if(O.key==="Enter"&&(O.ctrlKey||O.metaKey)){O.preventDefault(),S();return}if(O.key==="Escape"){if(d.value){g();return}O.preventDefault(),T()}}}function S(){const O=i.value;if(!O)return;const B=O.getMarkdown();B.trim()&&r("submit",B)}function T(){g(),r("cancel")}function A(){var O;(O=i.value)==null||O.clear(),g()}function z(){var O;(O=i.value)==null||O.focus()}return e({submit:S,cancel:T,reset:A,focus:z}),(O,B)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[b.value?(a.openBlock(),a.createElementBlock("div",AE,[a.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:B[0]||(B[0]=a.withModifiers(()=>{},["prevent"])),onClick:B[1]||(B[1]=L=>{var I;return(I=i.value)==null?void 0:I.toggleBold()})},[...B[14]||(B[14]=[a.createElementVNode("strong",null,"B",-1)])],32),a.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:B[2]||(B[2]=a.withModifiers(()=>{},["prevent"])),onClick:B[3]||(B[3]=L=>{var I;return(I=i.value)==null?void 0:I.toggleItalic()})},[...B[15]||(B[15]=[a.createElementVNode("em",null,"I",-1)])],32),a.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:B[4]||(B[4]=a.withModifiers(()=>{},["prevent"])),onClick:B[5]||(B[5]=L=>{var I;return(I=i.value)==null?void 0:I.toggleStrikethrough()})},[...B[16]||(B[16]=[a.createElementVNode("s",null,"S",-1)])],32),a.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:B[6]||(B[6]=a.withModifiers(()=>{},["prevent"])),onClick:B[7]||(B[7]=L=>{var I;return(I=i.value)==null?void 0:I.toggleInlineCode()})},[...B[17]||(B[17]=[a.createElementVNode("span",null,"</>",-1)])],32),B[18]||(B[18]=a.createElementVNode("span",{class:"ao-comment-editor__toolbar-divider"},null,-1)),a.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bullet list",onMousedown:B[8]||(B[8]=a.withModifiers(()=>{},["prevent"])),onClick:B[9]||(B[9]=L=>{var I;return(I=i.value)==null?void 0:I.insertBulletList()})}," • ",32),a.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:B[10]||(B[10]=a.withModifiers(()=>{},["prevent"])),onClick:B[11]||(B[11]=L=>{var I;return(I=i.value)==null?void 0:I.insertNumberedList()})}," 1. ",32)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:w,onFocusout:C},[a.createVNode(yg,{ref_key:"lexicalEditorRef",ref:i,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,variant:"compact",onReady:k,onKeydown:x},null,8,["initial-markdown","placeholder"]),a.unref(d)&&a.unref(p).length>0?(a.openBlock(),a.createElementBlock("ul",{key:0,class:"ao-comment-editor__mention-list",style:a.normalizeStyle({top:a.unref(u).top+"px",left:a.unref(u).left+"px"})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(p),(L,I)=>(a.openBlock(),a.createElementBlock("li",{key:L.id,class:a.normalizeClass({"ao-comment-editor__mention-item--selected":I===a.unref(f)}),onMousedown:B[12]||(B[12]=a.withModifiers(()=>{},["prevent"])),onClick:P=>a.unref(m)(L.name)}," @"+a.toDisplayString(L.name),43,NE))),128))],4)):a.createCommentVNode("",!0),t.showSubmitButton?(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",class:"ao-comment-editor__submit",title:"Send comment",onMousedown:B[13]||(B[13]=a.withModifiers(()=>{},["prevent"])),onClick:S},[a.createVNode(Ee,{name:"SendRounded"})],32)):a.createCommentVNode("",!0)],32)],2))}}),she="",DE={class:"ao-comment"},BE={class:"ao-comment__created-at"},LE={class:"ao-comment__body"},ME={class:"ao-comment__content-wrapper"},$E={key:0,class:"ao-comment__footer"},OE=a.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>{const h=n.user;return h?`${h.firstName??""}${h.firstName?" ":""}${h.lastName??""}`:null}),i=a.ref(!1),s=a.ref(n.content),l=a.ref(null),c=a.computed(()=>{const h=n.editedAt&&ra(n.editedAt),g=ra(n.createdAt),v=new Date,y=h??g;return y&&Ev(y,v)});a.watch(()=>n.content,h=>{i.value||(s.value=h)});function d(){s.value=n.content,i.value=!0,a.nextTick(()=>{var h;(h=l.value)==null||h.focus()})}function u(h){o("edit",h),i.value=!1}function p(){var h;(h=l.value)==null||h.submit()}function f(){i.value=!1,s.value=n.content}function m(){o("remove")}return(h,g)=>{var v;return a.openBlock(),a.createElementBlock("li",DE,[a.createElementVNode("span",BE,a.toDisplayString(c.value),1),r.value?(a.openBlock(),a.createBlock(An,{key:0,"avatar-url":(v=t.user)==null?void 0:v.avatarUrl,"user-name":r.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):a.createCommentVNode("",!0),a.createElementVNode("div",LE,[a.createElementVNode("div",ME,[i.value?(a.openBlock(),a.createBlock(vg,{key:1,ref_key:"commentEditorRef",ref:l,"initial-markdown":s.value,"mentionable-users":t.mentionableUsers,"show-submit-button":!1,"toolbar-visibility":"always",onSubmit:u,onCancel:f},null,8,["initial-markdown","mentionable-users"])):(a.openBlock(),a.createBlock(R1,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(a.openBlock(),a.createElementBlock("div",$E,[i.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(he,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:f}),a.createVNode(he,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:p})],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(he,{label:h.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:d},null,8,["label"]),a.createVNode(he,{label:h.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"])],64))])):a.createCommentVNode("",!0)])])}}}),lhe="",IE={class:"ao-comments__new"},RE={key:0,class:"ao-comments__list"},PE=a.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>[...n.comments].sort((p,f)=>gy(ra(p.createdAt),ra(f.createdAt)))),i=p=>n.users.find(f=>f.id===p),s=a.ref(null);a.nextTick(()=>{s.value&&(s.value.scrollTop=s.value.scrollHeight)});const l=a.ref(null);function c(p){var m;if(!p.trim())return;const f=Fu(p,n.users);o("createComment",{authorId:n.userId,message:p,mentionedUserIds:f}),(m=l.value)==null||m.reset()}function d(p,f){const m=Fu(f,n.users);o("updateComment",{id:p,message:f,mentionedUserIds:m})}function u(p){o("removeComment",{id:p})}return(p,f)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"commentsContainer",ref:s,class:"ao-comments"},[a.createElementVNode("div",IE,[a.createVNode(vg,{ref_key:"newCommentEditorRef",ref:l,"initial-markdown":t.newComment,"mentionable-users":t.users,placeholder:p.$t("activity.comment.label"),onSubmit:c},null,8,["initial-markdown","mentionable-users","placeholder"])]),r.value.length>0?(a.openBlock(),a.createElementBlock("ul",RE,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,m=>(a.openBlock(),a.createBlock(OE,{key:m.id,user:i(m.author.id),content:m.message,"created-at":m.createdAt,"edited-at":m.updatedAt,"is-editable":m.author.id===t.userId,"mentionable-users":t.users,class:"ao-comment",onEdit:h=>d(m.id,h),onRemove:()=>u(m.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):a.createCommentVNode("",!0)],512))}}),che="",Cg=a.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("update:modelValue",!n.modelValue)};return(i,s)=>(a.openBlock(),a.createBlock(he,{color:t.modelValue?t.color:a.unref(fl).NEUTRAL,"icon-position":"start",onClick:s[0]||(s[0]=()=>r())},null,8,["color"]))}}),VE=a.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:t=>["underline"].includes(t)}},emits:["update:modelValue"],methods:{selectTab(t){this.$emit("update:modelValue",t)}}}),dhe="",FE=["onClick"],zE={class:"tab-button__label"},qE={key:0,class:"tab-button__badge"};function jE(t,e,n,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":t.variant==="underline"}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.tabs,s=>(a.openBlock(),a.createElementBlock("button",{key:s.value,class:a.normalizeClass(["tab-button",{"tab-button--active":s.value===t.modelValue,"tab-button--underline":t.variant==="underline"}]),type:"button",onClick:l=>t.selectTab(s.value)},[a.createElementVNode("span",zE,a.toDisplayString(s.label),1),s.count!==void 0&&s.count>0?(a.openBlock(),a.createElementBlock("span",qE,a.toDisplayString(s.count),1)):a.createCommentVNode("",!0)],10,FE))),128))],2)}const ti=oe(VE,[["render",jE],["__scopeId","data-v-3d268d7b"]]),UE={class:"ao-rich-text-editor"},HE={class:"ao-rich-text-editor__toolbar"},WE=["value"],ZE={class:"ao-rich-text-editor__actions"},GE=a.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel"],setup(t,{emit:e}){const n=e,o=a.ref(null);function r(l){var d;const c=l.target;(d=o.value)==null||d.setBlockStyle(c.value)}function i(){const l=o.value;l&&n("save",l.getMarkdown())}function s(){n("cancel")}return(l,c)=>(a.openBlock(),a.createElementBlock("div",UE,[a.createVNode(yg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder},{toolbar:a.withCtx(()=>{var d;return[a.createElementVNode("div",HE,[a.createElementVNode("select",{class:"ao-rich-text-editor__select",title:"Text style",value:(d=o.value)==null?void 0:d.blockStyle,onChange:r},[...c[12]||(c[12]=[a.createElementVNode("option",{value:"paragraph"},"Paragraph",-1),a.createElementVNode("option",{value:"h1"},"Heading 1",-1),a.createElementVNode("option",{value:"h2"},"Heading 2",-1),a.createElementVNode("option",{value:"h3"},"Heading 3",-1),a.createElementVNode("option",{value:"code"},"Code block",-1)])],40,WE),c[17]||(c[17]=a.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),a.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bold",onMousedown:c[0]||(c[0]=a.withModifiers(()=>{},["prevent"])),onClick:c[1]||(c[1]=u=>{var p;return(p=o.value)==null?void 0:p.toggleBold()})},[...c[13]||(c[13]=[a.createElementVNode("strong",null,"B",-1)])],32),a.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:c[2]||(c[2]=a.withModifiers(()=>{},["prevent"])),onClick:c[3]||(c[3]=u=>{var p;return(p=o.value)==null?void 0:p.toggleItalic()})},[...c[14]||(c[14]=[a.createElementVNode("em",null,"I",-1)])],32),a.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:c[4]||(c[4]=a.withModifiers(()=>{},["prevent"])),onClick:c[5]||(c[5]=u=>{var p;return(p=o.value)==null?void 0:p.toggleStrikethrough()})},[...c[15]||(c[15]=[a.createElementVNode("s",null,"S",-1)])],32),a.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Inline code",onMousedown:c[6]||(c[6]=a.withModifiers(()=>{},["prevent"])),onClick:c[7]||(c[7]=u=>{var p;return(p=o.value)==null?void 0:p.toggleInlineCode()})},[...c[16]||(c[16]=[a.createElementVNode("span",null,"</>",-1)])],32),c[18]||(c[18]=a.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),a.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bullet list",onMousedown:c[8]||(c[8]=a.withModifiers(()=>{},["prevent"])),onClick:c[9]||(c[9]=u=>{var p;return(p=o.value)==null?void 0:p.insertBulletList()})}," • ",32),a.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:c[10]||(c[10]=a.withModifiers(()=>{},["prevent"])),onClick:c[11]||(c[11]=u=>{var p;return(p=o.value)==null?void 0:p.insertNumberedList()})}," 1. ",32)])]}),_:1},8,["initial-markdown","placeholder"]),a.createElementVNode("div",ZE,[a.createVNode(he,{variant:"ghost",color:"neutral",label:"Cancel",onClick:s}),a.createVNode(he,{variant:"solid",color:"primary",label:"Save",onClick:i})])]))}}),uhe="",KE={class:"ao-activity-details"},YE={class:"ao-activity-details__main"},JE={class:"ao-activity-details__header"},XE={key:1,class:"ao-activity__category"},QE={class:"ao-feed__activity-details__header"},eS={key:0,class:"ao-field ao-feed__activity-details__project"},tS={class:"ao-field__label"},nS={key:1,class:"ao-field ao-feed__activity-details__project"},oS={class:"ao-field__label"},rS={class:"ao-activity-details__content"},aS={class:"ao-activity-details__tab-content"},iS={class:"ao-fieldset"},sS={class:"ao-field__row"},lS={class:"ao-activity-details__tab-content"},cS={class:"ao-fieldset"},dS={class:"ao-fieldset__body"},uS={class:"ao-activity-details__tab-content"},pS={key:0,class:"ao-fieldset"},fS={class:"ao-activity-details__aside"},mS={class:"ao-activity-details__close-button"},hS={key:0,class:"ao-activity-details__aside-section"},gS={class:"ao-field"},bS={class:"ao-field__label"},_S={class:"ao-activity-details__aside-section"},yS={class:"ao-field ao-field--multiselect"},vS={class:"assignee-inline"},CS={class:"ao-field__label"},wS={class:"ao-activity-details__aside-section"},kS={key:0,class:"ao-field__row"},xS={class:"ao-field"},ES={class:"ao-field__label"},SS=["readonly"],TS={class:"ao-activity-details__aside-section"},AS={class:"ao-field__row"},NS={class:"ao-field ao-field--inline"},DS={class:"ao-field__label"},BS=["readonly"],LS={class:"ao-field__row"},MS={class:"ao-field ao-field--inline"},$S={class:"ao-field__label"},OS={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},IS={class:"ao-activity-details__aside-section"},RS={class:"ao-fieldset ao-activity-details__aside-section"},PS={class:"ao-fieldset__title"},VS={class:"ao-fieldset__body"},FS={class:"ao-field__row"},zS={class:"ao-field ao-field--multiselect"},qS={class:"ao-field__label"},jS={class:"ao-field__row"},US={class:"ao-field ao-field--multiselect"},HS={class:"ao-field__label"},Hd=a.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{},breadcrumbs:{},milestoneId:{},templateActivities:{},templateMilestones:{},isTemplate:{type:Boolean},users:{},userId:{},isTaskCheckable:{},statuses:{},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(t,{emit:e}){const n=t,o=e,{t:r}=Mn(),i=a.ref("description"),s=a.computed(()=>{var $,Y;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:(($=n.activity.tasks)==null?void 0:$.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((Y=n.activity.comments)==null?void 0:Y.length)??0}]}),l=a.computed(()=>{var $;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===(($=n.activity.assignee)==null?void 0:$.id):!1}),c=a.ref(!1),d=$=>{o("update:activity",{id:n.activity.id,name:$})},u=a.computed(()=>n.activity.description??""),p=()=>{l.value&&(c.value=!0)},f=$=>{o("update:activity",{id:n.activity.id,description:$}),c.value=!1},m=()=>{c.value=!1};a.watch(()=>n.activity.id,()=>{c.value=!1});const h=a.computed({get(){return n.activity.estimation??0},set($){o("update:activity",{id:n.activity.id,estimation:$})}}),g=a.computed({get(){var Y;const $=(Y=n.timeTrackingData)==null?void 0:Y[n.activity.id];return($==null?void 0:$.timeSpent)??0},set(){}}),v=a.computed(()=>{var Y;return((Y=n.activity.project)==null?void 0:Y.estimationUnit)==="days"?"d":"h"}),y=a.computed(()=>{var Y;const $=(Y=n.activity.project)==null?void 0:Y.estimationUnit;return Ei(g.value,$)}),_=a.computed({get(){return n.activity.important??!1},set($){o("update:activity",{id:n.activity.id,important:$})}});a.computed({get(){return n.activity.private??!1},set($){o("update:activity",{id:n.activity.id,private:$})}});const b=a.computed({get(){return n.activity.deadline},set($){o("update:activity",{id:n.activity.id,deadline:$})}});a.computed(()=>{var $;return($=n.activityTypes)==null?void 0:$.map(Y=>({label:Y.name,value:Y.id}))}),a.computed({get(){var $;return($=n.activity.type)==null?void 0:$.id},set($){o("update:activity",{id:n.activity.id,typeId:$})}});const k=a.computed(()=>n.templateActivities.filter($=>$.id!==n.activity.id).map($=>({label:$.name,value:$.id}))),w=a.computed({get(){var $;return($=n.activity.dependingOn)==null?void 0:$.map(Y=>Y.id)},set($){$&&o("update:activity",{id:n.activity.id,dependingOn:$})}}),C=a.computed(()=>k.value.map($=>{var Y;return{...$,disabled:(Y=n.activity.blocking)==null?void 0:Y.some(be=>be.id===$.value)}})),x=a.computed({get(){var $;return($=n.activity.blocking)==null?void 0:$.map(Y=>Y.id)},set($){$&&o("update:activity",{id:n.activity.id,blocking:$})}}),S=a.computed(()=>k.value.map($=>{var Y;return{...$,disabled:(Y=n.activity.dependingOn)==null?void 0:Y.some(be=>be.id===$.value)}})),T=$=>{o("addSubtask",$)},A=$=>{o("updateSubtask",$)},z=$=>{o("deleteSubtask",$)};function O(){n.userId?I.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function B($){I.value=[$]}const L=a.computed(()=>{var Y;const $=new Map;return(Y=n.users)==null||Y.forEach(be=>{$.has(be.id)||$.set(be.id,be)}),Array.from($.values()).map(be=>({label:`${be.firstName} ${be.lastName}`,value:be.id,avatar:be.avatarUrl}))}),I=a.computed({get(){var $,Y;return($=n.activity.assignee)!=null&&$.id?[(Y=n.activity.assignee)==null?void 0:Y.id]:[]},set($){o("update:activity",{id:n.activity.id,assigneeId:$[0]??null})}}),P=$=>{o("addFiles",{activityId:n.activity.id,files:$})},G=$=>{o("removeFile",{activityId:n.activity.id,file:$})},R=a.computed(()=>n.projects.map($=>({value:$.id,label:$.name}))),D=a.computed(()=>{var Y,be,Ze;const $=(Ze=(be=(Y=n.activity)==null?void 0:Y.project)==null?void 0:be.phases)==null?void 0:Ze.reduce((pe,Ce)=>[...pe,...Ce.milestones],[]);return $==null?void 0:$.map(pe=>({value:pe.id,label:pe.name}))}),K=$=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:$})},F=$=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:$})},U=a.computed(()=>{var $;return($=n.statuses)==null?void 0:$.map(Y=>({value:Y.id,label:Y.name}))}),ce=$=>{o("update:activity",{id:n.activity.id,statusId:$})},ee=$=>{o("addComment",{...$,activityId:n.activity.id})},ae=$=>{o("updateComment",$)},q=$=>{o("removeComment",$)};a.computed(()=>{var $,Y;return(($=n.activity.createdBy)==null?void 0:$.firstName)&&((Y=n.activity.createdBy)==null?void 0:Y.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`});function ne(){const $=window.location.origin,Y=n.activity.slug,be=`${$}/activity-feed/slug/${Y}`;navigator.clipboard.writeText(be).then(()=>{console.log(`Link copied to clipboard: ${be}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return($,Y)=>(a.openBlock(),a.createBlock(Ti,{onClose:Y[8]||(Y[8]=be=>$.$emit("close"))},{default:a.withCtx(()=>{var be,Ze,pe;return[a.createElementVNode("div",KE,[a.createElementVNode("div",YE,[a.createElementVNode("div",JE,[t.activity.slug?(a.openBlock(),a.createBlock(Xr,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:ne},null,8,["label"])):a.createCommentVNode("",!0),t.breadcrumbs?(a.openBlock(),a.createElementBlock("div",XE,a.toDisplayString(t.breadcrumbs),1)):a.createCommentVNode("",!0),a.createVNode(ot,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":d},null,8,["title","is-editable"]),a.createElementVNode("div",QE,[R.value?(a.openBlock(),a.createElementBlock("label",eS,[a.createElementVNode("span",tS,a.toDisplayString($.$t("activity.project.label")),1),a.createVNode(Et,{options:R.value,value:(be=t.activity.project)==null?void 0:be.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:K},null,8,["options","value","disabled","caret"])])):a.createCommentVNode("",!0),D.value?(a.openBlock(),a.createElementBlock("label",nS,[a.createElementVNode("span",oS,a.toDisplayString($.$t("activity.milestone.label")),1),a.createVNode(Et,{options:D.value,value:(Ze=t.activity.milestone)==null?void 0:Ze.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:F},null,8,["options","value","disabled","caret"])])):a.createCommentVNode("",!0)]),a.renderSlot($.$slots,"header")]),a.createElementVNode("div",rS,[a.createVNode(ti,{modelValue:i.value,"onUpdate:modelValue":Y[0]||(Y[0]=Ce=>i.value=Ce),tabs:s.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),a.withDirectives(a.createElementVNode("div",aS,[a.createElementVNode("fieldset",iS,[a.createElementVNode("div",sS,[a.createVNode(Nw,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&t.isTemplate!==!0&&!!t.userId,onAdd:P,onRemove:G},{default:a.withCtx(()=>[c.value?(a.openBlock(),a.createBlock(GE,{key:1,"initial-markdown":u.value,onSave:f,onCancel:m},null,8,["initial-markdown"])):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":l.value}]),onClick:p},[a.createVNode(R1,{content:u.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[a.vShow,i.value==="description"]]),a.withDirectives(a.createElementVNode("div",lS,[a.createElementVNode("fieldset",cS,[a.createElementVNode("div",dS,[a.createVNode(_w,{class:"ao-activity-details__tasks ao-field__row",tasks:t.activity.tasks||[],"activity-id":t.activity.id,users:t.users,"is-checkable":t.isTaskCheckable,"is-editable":l.value,"is-template":t.isTemplate,onAdd:T,onUpdate:A,onDelete:z},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[a.vShow,i.value==="checklist"]]),a.withDirectives(a.createElementVNode("div",uS,[t.isTemplate!==!0&&t.userId?(a.openBlock(),a.createElementBlock("div",pS,[a.createVNode(PE,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:ee,onUpdateComment:ae,onRemoveComment:q},null,8,["comments","users","user-id"])])):a.createCommentVNode("",!0)],512),[[a.vShow,i.value==="comments"]])])]),a.createElementVNode("div",fS,[a.createElementVNode("div",mS,[a.createVNode(Ee,{name:"CloseRounded",onClick:Y[1]||(Y[1]=Ce=>$.$emit("close"))})]),U.value?(a.openBlock(),a.createElementBlock("div",hS,[a.createElementVNode("label",gS,[a.createElementVNode("span",bS,a.toDisplayString($.$t("activity.status.label")),1),a.createVNode(Et,{class:"ao-activity-details__multiselect",options:U.value,value:(pe=t.activity.status)==null?void 0:pe.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:ce},null,8,["options","value","disabled","caret"])])])):a.createCommentVNode("",!0),a.createElementVNode("div",_S,[a.createElementVNode("div",yS,[a.createElementVNode("div",vS,[a.createElementVNode("span",CS,a.toDisplayString($.$t("activity.assignee.label")),1),a.createVNode(he,{label:$.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:O},null,8,["label"])]),a.createVNode(Et,{modelValue:I.value,"onUpdate:modelValue":Y[2]||(Y[2]=Ce=>I.value=Ce),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:L.value,"close-on-select":!0,searchable:!0,placeholder:$.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:B},{tag:a.withCtx(({option:Ce,handleTagRemove:xe})=>[a.createVNode(An,{"user-name":Ce.label,"avatar-url":Ce.avatar,"is-closable":!0,onClose:bt=>xe(Ce,bt)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),a.createElementVNode("div",wS,[t.isTemplate!==!0&&t.userId?(a.openBlock(),a.createElementBlock("div",kS,[a.createElementVNode("label",xS,[a.createElementVNode("span",ES,a.toDisplayString($.$t("activity.deadline.label")),1),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":Y[3]||(Y[3]=Ce=>b.value=Ce),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,SS),[[a.vModelText,b.value,void 0,{lazy:!0}]])])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",TS,[a.createElementVNode("div",AS,[a.createElementVNode("label",NS,[a.createElementVNode("span",DS,a.toDisplayString($.$t("activity.estimation.label"))+" ("+a.toDisplayString(v.value)+")",1),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":Y[4]||(Y[4]=Ce=>h.value=Ce),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,BS),[[a.vModelText,h.value,void 0,{lazy:!0,number:!0}]])])]),a.createElementVNode("div",LS,[a.createElementVNode("label",MS,[a.createElementVNode("span",$S,a.toDisplayString($.$t("activity.timeSpent.label"))+" ("+a.toDisplayString(v.value)+")",1),a.createElementVNode("span",OS,a.toDisplayString(y.value),1)])])]),a.createElementVNode("div",IS,[a.createVNode(Cg,{modelValue:_.value,"onUpdate:modelValue":Y[5]||(Y[5]=Ce=>_.value=Ce),modelModifiers:{lazy:!0},label:$.$t("activity.important.label"),disabled:!l.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),a.createElementVNode("fieldset",RS,[a.createElementVNode("div",PS,[a.createVNode(Ee,{name:"FlowsheetOutlineRounded"}),a.createVNode(ot,{level:4,title:$.$t("activity.dependencies.title")},null,8,["title"])]),a.createElementVNode("div",VS,[a.createElementVNode("div",FS,[a.createElementVNode("label",zS,[a.createElementVNode("span",qS,a.toDisplayString($.$t("activity.dependingOn.label")),1),a.createVNode(Et,{modelValue:w.value,"onUpdate:modelValue":Y[6]||(Y[6]=Ce=>w.value=Ce),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:C.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),a.createElementVNode("div",jS,[a.createElementVNode("label",US,[a.createElementVNode("span",HS,a.toDisplayString($.$t("activity.blocking.label")),1),a.createVNode(Et,{modelValue:x.value,"onUpdate:modelValue":Y[7]||(Y[7]=Ce=>x.value=Ce),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:S.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),a.renderSlot($.$slots,"default",{activity:t.activity})])])]}),_:3}))}}),phe="",WS=a.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(t,{emit:e}){const n=t,o=e,r=a.toRef(n.rule.itemType||Le.ACTIVITIES),i=a.computed({get(){return r.value},set(_){r.value=_,o("update:rule",{...n.rule,itemType:_,subItemId:void 0})}}),s=a.computed(()=>Object.values(Le)),l=a.computed({get(){return n.rule.subItemId},set(_){o("update:rule",{...n.rule,subItemId:_,itemType:n.rule.itemType||i.value})}}),c=a.computed(()=>{var b;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(b={[Le.ACTIVITIES]:n.templateActivities,[Le.MILESTONES]:n.templateMilestones,[Le.PHASES]:n.templatePhases}[r.value])==null?void 0:b.map(k=>({value:k.id,label:k.name}))}),d=a.toRef(n.rule.comparator),u=a.computed({get(){return d.value},set(_){o("update:rule",{...n.rule,comparator:_})}}),p=a.computed(()=>Object.values(uu)),f=a.toRef(n.rule.trigger),m=a.computed({get(){return f.value},set(_){o("update:rule",{...n.rule,trigger:_})}}),h=a.computed(()=>Object.values(pu)),g=a.computed({get(){return n.rule.duration},set(_){o("update:rule",{...n.rule,duration:_})}}),v=a.computed({get(){return n.rule.durationUnit},set(_){o("update:rule",{...n.rule,durationUnit:_})}}),y=a.computed(()=>Object.values(fu));return(_,b)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:a.withCtx(()=>[a.createVNode(a.unref(no),{modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=k=>i.value=k),options:s.value},null,8,["modelValue","options"]),a.createVNode(a.unref(no),{modelValue:l.value,"onUpdate:modelValue":b[1]||(b[1]=k=>l.value=k),options:c.value},null,8,["modelValue","options"]),a.createVNode(a.unref(no),{modelValue:m.value,"onUpdate:modelValue":b[2]||(b[2]=k=>m.value=k),options:h.value},null,8,["modelValue","options"]),a.createVNode(a.unref(no),{modelValue:u.value,"onUpdate:modelValue":b[3]||(b[3]=k=>u.value=k),options:p.value},null,8,["modelValue","options"]),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":b[4]||(b[4]=k=>g.value=k),type:"number",min:"0"},null,512),[[a.vModelText,g.value,void 0,{number:!0}]]),a.createVNode(a.unref(no),{modelValue:v.value,"onUpdate:modelValue":b[5]||(b[5]=k=>v.value=k),options:y.value},null,8,["modelValue","options"]),a.createVNode(he,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:b[6]||(b[6]=k=>_.$emit("close"))})]),_:1}))}}),fhe="",ZS={class:"ao-template-rules__body"},GS={class:"ao-template-rules__list"},KS=a.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(t,{emit:e}){const n=e,o=()=>{n("addRule")},r=i=>{n("removeRule",i)};return(i,s)=>(a.openBlock(),a.createBlock(Ti,null,{header:a.withCtx(()=>[a.createVNode(ot,{title:i.$t("template.rules.title"),level:2},null,8,["title"])]),default:a.withCtx(()=>[a.createElementVNode("div",ZS,[a.createElementVNode("ul",GS,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.rules,l=>(a.openBlock(),a.createBlock(WS,{key:l.id,rule:l,"template-phases":t.templatePhases,"template-milestones":t.templateMilestones,"template-activities":t.templateActivities,class:"ao-template-rule",onClose:()=>r(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),a.createVNode(Yn,{label:i.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}}),mhe="";function er(t,e,n){const o=t.length,r=t.at(-1),i=r?rt.LexoRank.parse(r.rank).genNext():rt.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:i.format()}}const YS={key:0,class:"ao-template-details"},JS={class:"ao-template-details__body"},XS={class:"ao-template-details__cols"},QS={class:"ao-template-details__col"},eT={class:"ao-list__footer"},tT={class:"ao-template-details__col"},nT={class:"ao-template-details__col"},wg=a.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e,i=a.computed(()=>{var R;return(R=o.templates)==null?void 0:R.find(D=>D.id===o.templateId)}),s=a.ref(!1);a.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>s.value=!1),a.watch(()=>{var R;return(R=i.value)==null?void 0:R.phases},(R,D)=>{s.value&&$n(R,D)});const l=a.computed(()=>{var R,D;return(D=(R=i==null?void 0:i.value)==null?void 0:R.phases)==null?void 0:D.find(K=>K.id===o.phaseId)});a.watch(()=>{var R;return(R=l.value)==null?void 0:R.milestones},(R,D)=>{s.value&&$n(R,D)});const c=a.computed(()=>{var R,D;return(D=(R=l.value)==null?void 0:R.milestones)==null?void 0:D.find(K=>K.id===o.milestoneId)});a.watch(()=>{var R;return(R=c.value)==null?void 0:R.activities},(R,D)=>{s.value&&$n(R,D)});const d=a.computed(()=>{var R,D;return((D=(R=i.value)==null?void 0:R.phases)==null?void 0:D.reduce((K,F)=>{const U=F.milestones||[];return[...K,...U]},[]))||[]}),u=a.computed(()=>{var R,D;return((D=(R=i.value)==null?void 0:R.phases)==null?void 0:D.reduce((K,F)=>{const ce=(F.milestones||[]).reduce((ee,ae)=>ae.activities?[...ee,...ae.activities]:ee,[]);return[...K,...ce]},[]))||[]}),p=a.computed(()=>{var R,D;return(D=(R=c.value)==null?void 0:R.activities)==null?void 0:D.find(K=>K.id===o.activityId)}),f=a.computed(()=>{var R;return((R=i.value)==null?void 0:R.name)||o.templateId}),m=()=>{if(!i.value)return;const{name:R,rank:D}=er(i.value.phases,"phase",n);s.value=!0,r("addItem",{type:Le.PHASES,templateId:o.templateId,item:{name:R,rank:D}})},h=R=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:Le.TEMPLATES,data:{name:R}})},g=R=>{r("removeItem",{itemType:Le.PHASES,templateId:o.templateId,data:{id:R}})},v=(R,D)=>{r("updateItem",{templateId:o.templateId,id:R,itemType:Le.PHASES,data:{name:D}})},y=R=>{r("updateItem",R)},_=R=>{if(!l.value)return;const{name:D,rank:K}=er(l.value.milestones,"milestone",n);s.value=!0,r("addItem",{type:Le.MILESTONES,templateId:o.templateId,phaseId:R.phaseId,item:{name:D,rank:K,phaseId:R.phaseId}})},b=R=>{r("removeItem",{itemType:Le.MILESTONES,templateId:o.templateId,phaseId:R.phaseId,data:{id:R.id}})},k=R=>{const{id:D,...K}=R;r("updateItem",{itemType:Le.MILESTONES,id:D,templateId:o.templateId,data:K})},w=R=>{const{milestoneId:D}=R;if(!c.value)return;const{name:K,rank:F}=er(c.value.activities,"activity",n);s.value=!0,r("addItem",{type:Le.ACTIVITIES,milestoneId:D,templateId:o.templateId,item:{name:K,rank:F,milestoneId:D}})},C=R=>{var D,K;r("removeItem",{itemType:Le.ACTIVITIES,templateId:o.templateId,phaseId:(D=l.value)==null?void 0:D.id,milestoneId:(K=c.value)==null?void 0:K.id,data:{id:R.id}})},x=R=>{const{id:D,...K}=R;r("updateItem",{itemType:Le.ACTIVITIES,id:D,templateId:o.templateId,data:K})},S=a.ref(!1),T=()=>{S.value=!S.value},A=()=>{r("addRule",{templateId:o.templateId})},z=R=>{r("removeRule",{id:R,templateId:o.templateId})},O=R=>{var D;if(R.moved){const K=ua(R,((D=i.value)==null?void 0:D.phases)??[]);r("updateItem",{itemType:Le.PHASES,id:R.moved.element.id,templateId:o.templateId,data:{rank:K}})}},B=R=>{!l.value||!c.value||!p.value||r("addItem",{type:Le.TASKS,activityId:R.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:R})},L=R=>{!l.value||!c.value||!p.value||r("updateItem",{itemType:Le.TASKS,id:R.id,templateId:o.templateId,data:R})},I=R=>{!l.value||!c.value||!p.value||r("removeItem",{itemType:Le.TASKS,activityId:p.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:R})},P=R=>{r("addFiles",R)},G=R=>{r("removeFile",R)};return(R,D)=>{var K,F,U,ce,ee,ae;return i.value?(a.openBlock(),a.createElementBlock("div",YS,[a.createVNode(pa,{"can-go-back":!0,onGoBack:D[1]||(D[1]=q=>R.$router.push({name:a.unref(nr).TEMPLATES_LIST}))},{primary:a.withCtx(()=>[a.createVNode(ot,{title:f.value,level:2,"is-editable":!0,"onUpdate:title":D[0]||(D[0]=q=>{h(q)})},null,8,["title"])]),_:1}),a.createElementVNode("div",JS,[a.createElementVNode("ol",XS,[a.createElementVNode("li",QS,[a.createVNode(a.unref(Gn),{"model-value":i.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:O},{header:a.withCtx(()=>[a.createVNode(ot,{title:R.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:a.withCtx(({element:q})=>{var ne;return[a.createVNode(I5,{id:q.id,name:q.name,milestones:q.milestones,"is-active":((ne=l.value)==null?void 0:ne.id)===q.id,"is-draggable":!0,onClick:$=>R.$router.push({params:{templateId:t.templateId,phaseId:q.id}}),"onUpdate:title":$=>{v(q.id,$)},onRemove:()=>g(q.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:a.withCtx(()=>[a.createElementVNode("div",eT,[a.createVNode(Yn,{"icon-name":"AddBoxOutlineRounded",label:R.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),a.createElementVNode("li",tT,[l.value?(a.openBlock(),a.createBlock(V5,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(K=c.value)==null?void 0:K.id,onAddMilestone:_,onUpdateMilestone:k,onUpdatePhase:y,onRemoveMilestone:b},null,8,["template-id","phase","milestone-id"])):a.createCommentVNode("",!0)]),a.createElementVNode("li",nT,[l.value&&c.value?(a.openBlock(),a.createBlock(q5,{key:0,"template-id":t.templateId,"phase-id":(F=l.value)==null?void 0:F.id,milestone:c.value,"activity-id":(U=p.value)==null?void 0:U.id,onAddActivity:w,onUpdateActivity:x,onRemoveActivity:C},null,8,["template-id","phase-id","milestone","activity-id"])):a.createCommentVNode("",!0)])])]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[p.value?(a.openBlock(),a.createBlock(Hd,{key:0,activity:p.value,"activity-types":t.activityTypes,breadcrumbs:`${i.value.name} / ${(ce=l.value)==null?void 0:ce.name} / ${(ee=c.value)==null?void 0:ee.name}`,"milestone-id":(ae=c.value)==null?void 0:ae.id,"template-activities":u.value,"template-milestones":d.value,"is-template":!0,"is-editable":!0,users:t.users,"onUpdate:activity":D[2]||(D[2]=q=>{p.value&&x(q)}),"attachment-enabled":!1,onClose:R.$router.back,onAddSubtask:B,onUpdateSubtask:L,onDeleteSubtask:I,onAddFiles:P,onRemoveFile:G},{default:a.withCtx(q=>[a.renderSlot(R.$slots,"activityDetailsBody",a.normalizeProps(a.guardReactiveProps(q)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):a.createCommentVNode("",!0)])),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[S.value?(a.openBlock(),a.createBlock(KS,{key:0,"template-id":i.value.id,rules:i.value.rules||[],"template-phases":i.value.phases,"template-milestones":d.value,"template-activities":u.value,onClose:T,onAddRule:A,onRemoveRule:z},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):a.createCommentVNode("",!0)]))])):a.createCommentVNode("",!0)}}}),hhe="",oT={class:"ao-card__content"},rT={key:0,class:"ao-card__header"},aT={class:"ao-card__body"},iT={key:1,class:"ao-card__footer"},el=a.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(t){return(e,n)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.tagName),{class:a.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable}]),style:a.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:a.withCtx(()=>[t.withLeftBorder?(a.openBlock(),a.createElementBlock("div",{key:0,class:"ao-card__left-border",style:a.normalizeStyle({backgroundColor:t.color})},null,4)):a.createCommentVNode("",!0),a.createElementVNode("div",oT,[e.$slots.header?(a.openBlock(),a.createElementBlock("header",rT,[a.renderSlot(e.$slots,"header")])):a.createCommentVNode("",!0),a.createElementVNode("div",aT,[a.renderSlot(e.$slots,"default")]),e.$slots.footer?(a.openBlock(),a.createElementBlock("footer",iT,[a.renderSlot(e.$slots,"footer")])):a.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}}),ghe="",tl=a.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(t){const e=t,n=a.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-progress",t.status?`ao-progress--${t.status}`:""]),role:"meter"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,i=>(a.openBlock(),a.createElementBlock("div",{key:i,class:a.normalizeClass(["ao-progress__progress"]),style:a.normalizeStyle({width:`${i*100}%`,"--ao-progress-color":t.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}}),bhe="";/*!
55
+ `)}}(t,n)(e)}var Qx=process.env.NODE_ENV==="production",jd="Invariant failed";function eE(t,e){if(!t){if(Qx)throw new Error(jd);var n=typeof e=="function"?e():e,o=n?"".concat(jd,": ").concat(n):jd;throw new Error(o)}}const hg=Symbol("LexicalEditor"),tE=(()=>{const t=a.defineComponent({name:"LexicalComposer",props:{initialConfig:{required:!0}},emits:["error"],setup(e,n){let{emit:o,expose:r}=n;const i=o;r();const s=e,l={tag:Ra},{theme:c,namespace:d,nodes:u,onError:p,editorState:f,html:m}=s.initialConfig,h=c6({editable:s.initialConfig.editable,html:m,namespace:d,nodes:u,theme:c,onError(v){i("error",v,h),p==null||p(v,h)}});g(h,f);function g(v,_){if(_!==null){if(_===void 0)v.update(()=>{const y=$e();if(y.isEmpty()){const b=Be();y.append(b);const k=F6?document.activeElement:null;(te()!==null||k!==null&&k===v.getRootElement())&&b.select()}},l);else if(_!==null)switch(typeof _){case"string":{const y=v.parseEditorState(_);v.setEditorState(y,l);break}case"object":v.setEditorState(_,l);break;case"function":v.update(()=>{$e().isEmpty()&&_(v)},l);break}}}return a.provide(hg,h),a.onMounted(()=>{const v=s.initialConfig.editable;h.setEditable(v!==void 0?v:!0)}),(v,_)=>a.renderSlot(v.$slots,"default")}});return t.__vue_vine=!0,t})();function Ur(){const t=a.inject(hg,null);return t||eE(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function nE(t,e){if(t==null)return{};var n=oE(t,e),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)o=i[r],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function oE(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,i;for(i=0;i<o.length;i++)r=o[i],e.indexOf(r)>=0||(n[r]=t[r]);return n}const rE=(()=>{const t=["aria-activedescendant","aria-autocomplete","aria-controls","aria-describedby","aria-expanded","aria-label","aria-labelledby","aria-multiline","aria-owns","aria-readonly","aria-required","autocapitalize","contenteditable","role","spellcheck","tabindex"],e=a.defineComponent({name:"ContentEditableElement",props:{editor:{required:!0},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean},onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{}},setup(n,o){let{expose:r}=o;r();const i=n,s=a.useTemplateRef("root"),l=a.ref(i.editor.isEditable()),c=a.computed(()=>nE(i,["editor"]));a.onMounted(()=>{function u(f){f&&f.ownerDocument&&f.ownerDocument.defaultView?i.editor.setRootElement(f):i.editor.setRootElement(null)}u(s.value),l.value=i.editor.isEditable();const p=i.editor.registerEditableListener(f=>{l.value=f});a.onUnmounted(p)});const d=a.computed(()=>{var u;return(u=i.role)!=null?u:"textbox"});return(u,p)=>(a.openBlock(),a.createElementBlock("div",a.mergeProps({ref_key:"root",ref:s},c.value,{"aria-activedescendant":l.value?u.ariaActiveDescendant:void 0,"aria-autocomplete":l.value?u.ariaAutoComplete:"none","aria-controls":l.value?u.ariaControls:void 0,"aria-describedby":u.ariaDescribedBy,"aria-expanded":l.value&&d.value==="combobox"?!!u.ariaExpanded:void 0,"aria-label":u.ariaLabel,"aria-labelledby":u.ariaLabelledBy,"aria-multiline":u.ariaMultiline,"aria-owns":l.value?u.ariaOwns:void 0,"aria-readonly":l.value?void 0:!0,"aria-required":u.ariaRequired,autocapitalize:u.autocapitalize,contenteditable:l.value,role:l.value?d.value:void 0,spellcheck:u.spellcheck||!0,tabindex:u.tabindex}),null,16,t))}});return e.__vue_vine=!0,e})();function aE(){return $e().getTextContent()}function iE(t,e=!0){if(t)return!1;let n=aE();return e&&(n=n.trim()),n===""}function sE(t){if(!iE(t,!1))return!1;const e=$e().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const r=e[o];if(ve(r))return!1;if(V(r)){if(!Ha(r)||r.__indent!==0)return!1;const i=r.getChildren(),s=i.length;for(let l=0;l<s;l++){const c=i[o];if(!X(c))return!1}}}return!0}function gg(t){return()=>sE(t)}function lE(t){return t.getEditorState().read(gg(t.isComposing()))}function bg(t){const e=t.getEditorState().read(gg(t.isComposing())),n=a.ref(e);function o(){const r=lE(t);n.value=r}return a.onMounted(()=>{const r=Ja(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));a.onUnmounted(()=>{r()})}),a.readonly(n)}function cE(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dE(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){cE(t,r,n[r])})}return t}function uE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function pE(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):uE(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const fE=(()=>{const t={key:0,"aria-hidden":"true"},e=a.defineComponent({name:"ContentEditable",props:{onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean}},setup(n,o){let{expose:r}=o;r();const i=Ur(),s=a.ref(!1),l=bg(i);return a.onMounted(()=>{s.value=i.isEditable();const c=i.registerEditableListener(d=>{s.value=d});a.onUnmounted(c)}),(c,d)=>{var u,p;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(rE),a.mergeProps({editor:a.unref(i)},pE(dE({},c.$props),{role:(u=c.role)!=null?u:"textbox",spellcheck:(p=c.spellcheck)!=null?p:!0})),null,16,["editor"]),a.unref(l)?(a.openBlock(),a.createElementBlock("div",t,[a.renderSlot(c.$slots,"placeholder")])):a.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function mE(t,e,n,o,r){if(t===null||n.size===0&&o.size===0&&!r)return 0;const i=e._selection,s=t._selection;if(r)return 1;if(!(H(i)&&H(s)&&s.isCollapsed()&&i.isCollapsed()))return 0;const l=function(_,y,b){const k=_._nodeMap,w=[];for(const C of y){const x=k.get(C);x!==void 0&&w.push(x)}for(const[C,x]of b){if(!x)continue;const S=k.get(C);S===void 0||qe(S)||w.push(S)}return w}(e,n,o);if(l.length===0)return 0;if(l.length>1){const _=e._nodeMap,y=_.get(i.anchor.key),b=_.get(s.anchor.key);return y&&b&&!t._nodeMap.has(y.__key)&&X(y)&&y.__text.length===1&&i.anchor.offset===1?2:0}const c=l[0],d=t._nodeMap.get(c.__key);if(!X(d)||!X(c)||d.__mode!==c.__mode)return 0;const u=d.__text,p=c.__text;if(u===p)return 0;const f=i.anchor,m=s.anchor;if(f.key!==m.key||f.type!=="text")return 0;const h=f.offset,g=m.offset,v=p.length-u.length;return v===1&&g===h-1?2:v===-1&&g===h+1?3:v===-1&&g===h?4:0}function hE(t,e){let n=Date.now(),o=0;return(r,i,s,l,c,d)=>{const u=Date.now();if(d.has(_s))return o=0,n=u,2;const p=mE(r,i,l,c,t.isComposing()),f=(()=>{const m=s===null||s.editor===t,h=d.has(q9);if(!h&&m&&d.has(Ra))return 0;if(r===null)return 1;const g=i._selection;if(!(l.size>0||c.size>0))return g!==null?0:2;const v=typeof e=="number"?e:e.peek();return h===!1&&p!==0&&p===o&&u<n+v&&m||l.size===1&&function(_,y,b){const k=y._nodeMap.get(_),w=b._nodeMap.get(_),C=y._selection,x=b._selection;return!(H(C)&&H(x)&&C.anchor.type==="element"&&C.focus.type==="element"&&x.anchor.type==="text"&&x.focus.type==="text"||!X(k)||!X(w)||k.__parent!==w.__parent)&&JSON.stringify(y.read(()=>k.exportJSON()))===JSON.stringify(b.read(()=>w.exportJSON()))}(Array.from(l)[0],r,i)?0:1})();return n=u,o=p,f}}function yg(t){t.undoStack=[],t.redoStack=[],t.current=null}function gE(t,e,n){const o=hE(t,n);return Ja(t.registerCommand(Nc,()=>(function(i,s){const l=s.redoStack,c=s.undoStack;if(c.length!==0){const d=s.current,u=c.pop();d!==null&&(l.push(d),i.dispatchCommand(fs,!0)),c.length===0&&i.dispatchCommand(ms,!1),s.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:_s})}}(t,e),!0),_e),t.registerCommand(Dc,()=>(function(i,s){const l=s.redoStack,c=s.undoStack;if(l.length!==0){const d=s.current;d!==null&&(c.push(d),i.dispatchCommand(ms,!0));const u=l.pop();l.length===0&&i.dispatchCommand(fs,!1),s.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:_s})}}(t,e),!0),_e),t.registerCommand(I9,()=>(yg(e),!1),_e),t.registerCommand(R9,()=>(yg(e),t.dispatchCommand(fs,!1),t.dispatchCommand(ms,!1),!0),_e),t.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:l,dirtyElements:c,tags:d})=>{const u=e.current,p=e.redoStack,f=e.undoStack,m=u===null?null:u.editorState;if(u!==null&&i===m)return;const h=o(s,i,u,l,c,d);if(h===1)p.length!==0&&(e.redoStack=[],t.dispatchCommand(fs,!1)),u!==null&&(f.push({...u}),t.dispatchCommand(ms,!0));else if(h===2)return;e.current={editor:t,editorState:i}}))}function bE(){return{current:null,redoStack:[],undoStack:[]}}function yE(t,e,n){const o=a.computed(()=>a.toValue(e)||bE());a.watchEffect(r=>{const i=gE(a.toValue(t),o.value,a.toValue(n)||1e3);r(i)})}const _E=(()=>{const t=a.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,i=Ur();return yE(i,()=>r.externalHistoryState,()=>r.delay),(s,l)=>null}});return t.__vue_vine=!0,t})();function vE(t){a.onMounted(()=>{const e=Q6(t);a.onUnmounted(()=>{e()})})}const CE=(()=>{const t=a.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const r=e,i=Ur();return a.watchEffect(s=>{if(!i.hasNodes([Ko,go]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!r.hasStrictIndent)return;const l=ex(i);s(l)}),vE(i),(s,l)=>null}});return t.__vue_vine=!0,t})();function wE(t){const e=a.shallowRef(t.getDecorators());return a.onMounted(()=>{const n=t.registerDecoratorListener(o=>{e.value=o});a.onUnmounted(()=>{n()})}),a.computed(()=>{const n=[],o=Object.keys(a.unref(e));for(let r=0;r<o.length;r++){const i=o[r],s=e.value[i],l=t.getElementByKey(i);l!==null&&n.push(a.h(a.Teleport,{to:l},s))}return n})}const kE=a.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Ur(),e=wE(t);return()=>e.value}});function xE(t){a.onMounted(()=>{const e=Ja(yx(t),dx(t));a.onUnmounted(e)})}const EE=(()=>{const t=a.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Ur(),i=bg(r);return xE(r),(s,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.unref(i)?a.renderSlot(s.$slots,"placeholder",{key:0}):a.createCommentVNode("",!0),a.renderSlot(s.$slots,"contentEditable"),a.createVNode(a.unref(kE))],64))}});return t.__vue_vine=!0,t})(),Ud=[rg,ag,ig,sg,cg,dg,pg,ug,lg],SE={class:"ao-lexical-editor__placeholder"},_g=a.defineComponent({__name:"AoLexicalEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter text..."},variant:{default:"default"}},emits:["ready","keydown"],setup(t,{expose:e,emit:n}){const o=t,r=n,i=a.shallowRef(null),s=a.ref("paragraph"),l=a.computed(()=>({"ao-lexical-editor--compact":o.variant==="compact"})),c={namespace:"AoLexicalEditor",nodes:[Ko,go,Us,Zs],theme:{paragraph:"ao-lexical-editor__paragraph",heading:{h1:"ao-lexical-editor__heading-h1",h2:"ao-lexical-editor__heading-h2",h3:"ao-lexical-editor__heading-h3"},code:"ao-lexical-editor__code-block",text:{bold:"ao-lexical-editor__text-bold",italic:"ao-lexical-editor__text-italic",strikethrough:"ao-lexical-editor__text-strikethrough",code:"ao-lexical-editor__inline-code"},list:{ul:"ao-lexical-editor__list-ul",ol:"ao-lexical-editor__list-ol",listitem:"ao-lexical-editor__list-item"}},editorState:()=>{Jx(o.initialMarkdown||"",Ud)},onError(C){console.error("Lexical error:",C)}},d=a.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:C=>!0,blockStyleChange:C=>!0},setup(C,{emit:x}){const S=Ur();let T=null,A=null;const z=()=>{S.getEditorState().read(()=>{const O=te();if(!H(O))return;const B=O.anchor.getNode(),L=B.getKey()==="root"?B:B.getTopLevelElementOrThrow();if(Oh(L)){const I=L.getTag();if(I==="h1"||I==="h2"||I==="h3"){x("blockStyleChange",I);return}}if(Gs(L)){x("blockStyleChange","code");return}x("blockStyleChange","paragraph")})};return a.onMounted(()=>{x("ready",S),z(),A=Yx(S,Ud),T=S.registerUpdateListener(()=>{z()})}),a.onUnmounted(()=>{A==null||A(),T==null||T()}),()=>null}});function u(C){i.value=C,r("ready",C)}function p(C){r("keydown",C)}function f(){var C;(C=i.value)==null||C.dispatchCommand(Ut,"bold")}function m(){var C;(C=i.value)==null||C.dispatchCommand(Ut,"italic")}function h(){var C;(C=i.value)==null||C.dispatchCommand(Ut,"strikethrough")}function g(){var C;(C=i.value)==null||C.dispatchCommand(Ut,"code")}function v(){var C;(C=i.value)==null||C.dispatchCommand(vh,void 0)}function _(){var C;(C=i.value)==null||C.dispatchCommand(Ch,void 0)}function y(C){const x=i.value;x&&(x.update(()=>{const S=te();if(H(S)){if(S.isCollapsed()||S.focus.set(S.anchor.key,S.anchor.offset,S.anchor.type),C==="paragraph"){xd(S,()=>Be());return}if(C==="code"){xd(S,()=>xn());return}xd(S,()=>Jo(C))}}),x.focus(),s.value=C)}function b(){const C=i.value;return C?C.getEditorState().read(()=>Xx(Ud)):""}function k(){const C=i.value;C&&C.update(()=>{const x=$e();x.clear(),x.append(Be())})}function w(){var C;(C=i.value)==null||C.focus()}return e({toggleBold:f,toggleItalic:m,toggleStrikethrough:h,toggleInlineCode:g,insertBulletList:v,insertNumberedList:_,setBlockStyle:y,getMarkdown:b,clear:k,focus:w,blockStyle:s}),(C,x)=>(a.openBlock(),a.createBlock(a.unref(tE),{"initial-config":c},{default:a.withCtx(()=>[a.renderSlot(C.$slots,"toolbar"),a.createElementVNode("div",{class:a.normalizeClass(["ao-lexical-editor",l.value])},[a.createVNode(a.unref(EE),null,{contentEditable:a.withCtx(()=>[a.createVNode(a.unref(fE),{class:"ao-lexical-editor__content",onKeydown:p},{placeholder:a.withCtx(()=>[a.createElementVNode("div",SE,a.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),a.createVNode(a.unref(_E)),a.createVNode(a.unref(CE)),a.createVNode(a.unref(d),{onReady:u,onBlockStyleChange:x[0]||(x[0]=S=>s.value=S)})]),_:3}))}}),ihe="";function TE(t,e){const n=a.ref(""),o=a.ref(!1),r=a.ref({top:0,left:0}),i=a.ref(0),s=a.computed(()=>e.value.filter(h=>h.firstName||h.lastName).map(h=>({id:h.id,name:Vu(h)}))),l=a.computed(()=>s.value.filter(h=>h.name.toLowerCase().includes(n.value.toLowerCase())));function c(){o.value=!1,n.value="",i.value=0}function d(){const h=te();if(!H(h)||!h.isCollapsed()){c();return}const g=h.anchor.getNode();if(!X(g)){c();return}const _=g.getTextContent().slice(0,h.anchor.offset).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!_){c();return}n.value=_[1],o.value=!0,i.value>=l.value.length&&(i.value=0)}function u(){const h=t.value;if(!h||!o.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const v=g.getRangeAt(0),_=v.getClientRects().item(0)??v.getBoundingClientRect(),y=h.getRootElement();if(!y)return;const b=y.getBoundingClientRect();r.value={top:_.bottom-b.top+4,left:_.left-b.left}}function p(h){const g=t.value;g&&(g.update(()=>{const v=te();if(!H(v)||!v.isCollapsed())return;const _=v.anchor.getNode();if(!X(_))return;const y=_.getTextContent(),b=v.anchor.offset,w=y.slice(0,b).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!w)return;const C=b-w[0].length,x=`@${h} `,S=y.slice(0,C)+x+y.slice(b);_.setTextContent(S);const T=C+x.length;v.anchor.set(_.getKey(),T,"text"),v.focus.set(_.getKey(),T,"text")}),c(),g.focus())}function f(h){if(!o.value)return!1;switch(h.key){case"ArrowDown":return h.preventDefault(),l.value.length>0&&(i.value=(i.value+1)%l.value.length),!0;case"ArrowUp":return h.preventDefault(),l.value.length>0&&(i.value=(i.value-1+l.value.length)%l.value.length),!0;case"Enter":{if(l.value.length===0)return!1;h.preventDefault();const g=l.value[i.value];return g&&p(g.name),!0}case"Escape":return h.preventDefault(),c(),!0;default:return!1}}function m(){const h=t.value;if(h)return h.registerUpdateListener(({editorState:g})=>{g.read(()=>{d()}),o.value&&requestAnimationFrame(()=>{u()})})}return{mentionQuery:n,showMentionList:o,mentionListPosition:r,filteredUsers:l,selectedIndex:i,selectUserMention:p,handleKeydown:f,closeMentionList:c,setupMentionTracking:m}}const AE={key:0,class:"ao-comment-editor__toolbar"},NE=["onClick"],vg=a.defineComponent({__name:"AoCommentEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Add a comment..."},mentionableUsers:{default:()=>[]},showSubmitButton:{type:Boolean,default:!0},toolbarVisibility:{default:"focus"}},emits:["submit","cancel","focus","blur"],setup(t,{expose:e,emit:n}){const o=t,r=n,i=a.ref(null),s=a.shallowRef(null),l=a.ref(!1),c=a.toRef(o,"mentionableUsers"),{showMentionList:d,mentionListPosition:u,filteredUsers:p,selectedIndex:f,selectUserMention:m,handleKeydown:h,closeMentionList:g,setupMentionTracking:v}=TE(s,c);let _,y;const b=a.computed(()=>o.toolbarVisibility==="always"||l.value);a.onUnmounted(()=>{_==null||_(),y!==void 0&&window.clearTimeout(y)});function k(O){s.value=O,_==null||_(),_=v()}function w(){y!==void 0&&(window.clearTimeout(y),y=void 0),l.value||(l.value=!0,r("focus"))}function C(){y!==void 0&&window.clearTimeout(y),y=window.setTimeout(()=>{var L;y=void 0;const O=(L=s.value)==null?void 0:L.getRootElement(),B=document.activeElement;O&&B instanceof Node&&O.contains(B)||l.value&&(l.value=!1,r("blur"))},100)}function x(O){if(!h(O)){if(O.key==="Enter"&&(O.ctrlKey||O.metaKey)){O.preventDefault(),S();return}if(O.key==="Escape"){if(d.value){g();return}O.preventDefault(),T()}}}function S(){const O=i.value;if(!O)return;const B=O.getMarkdown();B.trim()&&r("submit",B)}function T(){g(),r("cancel")}function A(){var O;(O=i.value)==null||O.clear(),g()}function z(){var O;(O=i.value)==null||O.focus()}return e({submit:S,cancel:T,reset:A,focus:z}),(O,B)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[b.value?(a.openBlock(),a.createElementBlock("div",AE,[a.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:B[0]||(B[0]=a.withModifiers(()=>{},["prevent"])),onClick:B[1]||(B[1]=L=>{var I;return(I=i.value)==null?void 0:I.toggleBold()})},[...B[14]||(B[14]=[a.createElementVNode("strong",null,"B",-1)])],32),a.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:B[2]||(B[2]=a.withModifiers(()=>{},["prevent"])),onClick:B[3]||(B[3]=L=>{var I;return(I=i.value)==null?void 0:I.toggleItalic()})},[...B[15]||(B[15]=[a.createElementVNode("em",null,"I",-1)])],32),a.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:B[4]||(B[4]=a.withModifiers(()=>{},["prevent"])),onClick:B[5]||(B[5]=L=>{var I;return(I=i.value)==null?void 0:I.toggleStrikethrough()})},[...B[16]||(B[16]=[a.createElementVNode("s",null,"S",-1)])],32),a.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:B[6]||(B[6]=a.withModifiers(()=>{},["prevent"])),onClick:B[7]||(B[7]=L=>{var I;return(I=i.value)==null?void 0:I.toggleInlineCode()})},[...B[17]||(B[17]=[a.createElementVNode("span",null,"</>",-1)])],32),B[18]||(B[18]=a.createElementVNode("span",{class:"ao-comment-editor__toolbar-divider"},null,-1)),a.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bullet list",onMousedown:B[8]||(B[8]=a.withModifiers(()=>{},["prevent"])),onClick:B[9]||(B[9]=L=>{var I;return(I=i.value)==null?void 0:I.insertBulletList()})}," • ",32),a.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:B[10]||(B[10]=a.withModifiers(()=>{},["prevent"])),onClick:B[11]||(B[11]=L=>{var I;return(I=i.value)==null?void 0:I.insertNumberedList()})}," 1. ",32)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:w,onFocusout:C},[a.createVNode(_g,{ref_key:"lexicalEditorRef",ref:i,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,variant:"compact",onReady:k,onKeydown:x},null,8,["initial-markdown","placeholder"]),a.unref(d)&&a.unref(p).length>0?(a.openBlock(),a.createElementBlock("ul",{key:0,class:"ao-comment-editor__mention-list",style:a.normalizeStyle({top:a.unref(u).top+"px",left:a.unref(u).left+"px"})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(p),(L,I)=>(a.openBlock(),a.createElementBlock("li",{key:L.id,class:a.normalizeClass({"ao-comment-editor__mention-item--selected":I===a.unref(f)}),onMousedown:B[12]||(B[12]=a.withModifiers(()=>{},["prevent"])),onClick:P=>a.unref(m)(L.name)}," @"+a.toDisplayString(L.name),43,NE))),128))],4)):a.createCommentVNode("",!0),t.showSubmitButton?(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",class:"ao-comment-editor__submit",title:"Send comment",onMousedown:B[13]||(B[13]=a.withModifiers(()=>{},["prevent"])),onClick:S},[a.createVNode(Ee,{name:"SendRounded"})],32)):a.createCommentVNode("",!0)],32)],2))}}),she="",DE={class:"ao-comment"},BE={class:"ao-comment__created-at"},LE={class:"ao-comment__body"},ME={class:"ao-comment__content-wrapper"},$E={key:0,class:"ao-comment__footer"},OE=a.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>{const h=n.user;return h?`${h.firstName??""}${h.firstName?" ":""}${h.lastName??""}`:null}),i=a.ref(!1),s=a.ref(n.content),l=a.ref(null),c=a.computed(()=>{const h=n.editedAt&&ra(n.editedAt),g=ra(n.createdAt),v=new Date,_=h??g;return _&&Ev(_,v)});a.watch(()=>n.content,h=>{i.value||(s.value=h)});function d(){s.value=n.content,i.value=!0,a.nextTick(()=>{var h;(h=l.value)==null||h.focus()})}function u(h){o("edit",h),i.value=!1}function p(){var h;(h=l.value)==null||h.submit()}function f(){i.value=!1,s.value=n.content}function m(){o("remove")}return(h,g)=>{var v;return a.openBlock(),a.createElementBlock("li",DE,[a.createElementVNode("span",BE,a.toDisplayString(c.value),1),r.value?(a.openBlock(),a.createBlock(An,{key:0,"avatar-url":(v=t.user)==null?void 0:v.avatarUrl,"user-name":r.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):a.createCommentVNode("",!0),a.createElementVNode("div",LE,[a.createElementVNode("div",ME,[i.value?(a.openBlock(),a.createBlock(vg,{key:1,ref_key:"commentEditorRef",ref:l,"initial-markdown":s.value,"mentionable-users":t.mentionableUsers,"show-submit-button":!1,"toolbar-visibility":"always",onSubmit:u,onCancel:f},null,8,["initial-markdown","mentionable-users"])):(a.openBlock(),a.createBlock(R1,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(a.openBlock(),a.createElementBlock("div",$E,[i.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(he,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:f}),a.createVNode(he,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:p})],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(he,{label:h.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:d},null,8,["label"]),a.createVNode(he,{label:h.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"])],64))])):a.createCommentVNode("",!0)])])}}}),lhe="",IE={class:"ao-comments__new"},RE={key:0,class:"ao-comments__list"},PE=a.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>[...n.comments].sort((p,f)=>g_(ra(p.createdAt),ra(f.createdAt)))),i=p=>n.users.find(f=>f.id===p),s=a.ref(null);a.nextTick(()=>{s.value&&(s.value.scrollTop=s.value.scrollHeight)});const l=a.ref(null);function c(p){var m;if(!p.trim())return;const f=Fu(p,n.users);o("createComment",{authorId:n.userId,message:p,mentionedUserIds:f}),(m=l.value)==null||m.reset()}function d(p,f){const m=Fu(f,n.users);o("updateComment",{id:p,message:f,mentionedUserIds:m})}function u(p){o("removeComment",{id:p})}return(p,f)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"commentsContainer",ref:s,class:"ao-comments"},[a.createElementVNode("div",IE,[a.createVNode(vg,{ref_key:"newCommentEditorRef",ref:l,"initial-markdown":t.newComment,"mentionable-users":t.users,placeholder:p.$t("activity.comment.label"),onSubmit:c},null,8,["initial-markdown","mentionable-users","placeholder"])]),r.value.length>0?(a.openBlock(),a.createElementBlock("ul",RE,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,m=>(a.openBlock(),a.createBlock(OE,{key:m.id,user:i(m.author.id),content:m.message,"created-at":m.createdAt,"edited-at":m.updatedAt,"is-editable":m.author.id===t.userId,"mentionable-users":t.users,class:"ao-comment",onEdit:h=>d(m.id,h),onRemove:()=>u(m.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):a.createCommentVNode("",!0)],512))}}),che="",Cg=a.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("update:modelValue",!n.modelValue)};return(i,s)=>(a.openBlock(),a.createBlock(he,{color:t.modelValue?t.color:a.unref(fl).NEUTRAL,"icon-position":"start",onClick:s[0]||(s[0]=()=>r())},null,8,["color"]))}}),VE=a.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:t=>["underline"].includes(t)}},emits:["update:modelValue"],methods:{selectTab(t){this.$emit("update:modelValue",t)}}}),dhe="",FE=["onClick"],zE={class:"tab-button__label"},qE={key:0,class:"tab-button__badge"};function jE(t,e,n,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":t.variant==="underline"}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.tabs,s=>(a.openBlock(),a.createElementBlock("button",{key:s.value,class:a.normalizeClass(["tab-button",{"tab-button--active":s.value===t.modelValue,"tab-button--underline":t.variant==="underline"}]),type:"button",onClick:l=>t.selectTab(s.value)},[a.createElementVNode("span",zE,a.toDisplayString(s.label),1),s.count!==void 0&&s.count>0?(a.openBlock(),a.createElementBlock("span",qE,a.toDisplayString(s.count),1)):a.createCommentVNode("",!0)],10,FE))),128))],2)}const ti=oe(VE,[["render",jE],["__scopeId","data-v-3d268d7b"]]),UE={class:"ao-rich-text-editor"},HE={class:"ao-rich-text-editor__toolbar"},WE=["value"],ZE={class:"ao-rich-text-editor__actions"},GE=a.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel"],setup(t,{emit:e}){const n=e,o=a.ref(null);function r(l){var d;const c=l.target;(d=o.value)==null||d.setBlockStyle(c.value)}function i(){const l=o.value;l&&n("save",l.getMarkdown())}function s(){n("cancel")}return(l,c)=>(a.openBlock(),a.createElementBlock("div",UE,[a.createVNode(_g,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder},{toolbar:a.withCtx(()=>{var d;return[a.createElementVNode("div",HE,[a.createElementVNode("select",{class:"ao-rich-text-editor__select",title:"Text style",value:(d=o.value)==null?void 0:d.blockStyle,onChange:r},[...c[12]||(c[12]=[a.createElementVNode("option",{value:"paragraph"},"Paragraph",-1),a.createElementVNode("option",{value:"h1"},"Heading 1",-1),a.createElementVNode("option",{value:"h2"},"Heading 2",-1),a.createElementVNode("option",{value:"h3"},"Heading 3",-1),a.createElementVNode("option",{value:"code"},"Code block",-1)])],40,WE),c[17]||(c[17]=a.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),a.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bold",onMousedown:c[0]||(c[0]=a.withModifiers(()=>{},["prevent"])),onClick:c[1]||(c[1]=u=>{var p;return(p=o.value)==null?void 0:p.toggleBold()})},[...c[13]||(c[13]=[a.createElementVNode("strong",null,"B",-1)])],32),a.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:c[2]||(c[2]=a.withModifiers(()=>{},["prevent"])),onClick:c[3]||(c[3]=u=>{var p;return(p=o.value)==null?void 0:p.toggleItalic()})},[...c[14]||(c[14]=[a.createElementVNode("em",null,"I",-1)])],32),a.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:c[4]||(c[4]=a.withModifiers(()=>{},["prevent"])),onClick:c[5]||(c[5]=u=>{var p;return(p=o.value)==null?void 0:p.toggleStrikethrough()})},[...c[15]||(c[15]=[a.createElementVNode("s",null,"S",-1)])],32),a.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Inline code",onMousedown:c[6]||(c[6]=a.withModifiers(()=>{},["prevent"])),onClick:c[7]||(c[7]=u=>{var p;return(p=o.value)==null?void 0:p.toggleInlineCode()})},[...c[16]||(c[16]=[a.createElementVNode("span",null,"</>",-1)])],32),c[18]||(c[18]=a.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),a.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bullet list",onMousedown:c[8]||(c[8]=a.withModifiers(()=>{},["prevent"])),onClick:c[9]||(c[9]=u=>{var p;return(p=o.value)==null?void 0:p.insertBulletList()})}," • ",32),a.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:c[10]||(c[10]=a.withModifiers(()=>{},["prevent"])),onClick:c[11]||(c[11]=u=>{var p;return(p=o.value)==null?void 0:p.insertNumberedList()})}," 1. ",32)])]}),_:1},8,["initial-markdown","placeholder"]),a.createElementVNode("div",ZE,[a.createVNode(he,{variant:"ghost",color:"neutral",label:"Cancel",onClick:s}),a.createVNode(he,{variant:"solid",color:"primary",label:"Save",onClick:i})])]))}}),uhe="",KE={class:"ao-activity-details"},YE={class:"ao-activity-details__main"},JE={class:"ao-activity-details__header"},XE={key:1,class:"ao-activity__category"},QE={class:"ao-feed__activity-details__header"},eS={key:0,class:"ao-field ao-feed__activity-details__project"},tS={class:"ao-field__label"},nS={key:1,class:"ao-field ao-feed__activity-details__project"},oS={class:"ao-field__label"},rS={class:"ao-activity-details__content"},aS={class:"ao-activity-details__tab-content"},iS={class:"ao-fieldset"},sS={class:"ao-field__row"},lS={class:"ao-activity-details__tab-content"},cS={class:"ao-fieldset"},dS={class:"ao-fieldset__body"},uS={class:"ao-activity-details__tab-content"},pS={key:0,class:"ao-fieldset"},fS={class:"ao-activity-details__aside"},mS={class:"ao-activity-details__close-button"},hS={key:0,class:"ao-activity-details__aside-section"},gS={class:"ao-field"},bS={class:"ao-field__label"},yS={class:"ao-activity-details__aside-section"},_S={class:"ao-field ao-field--multiselect"},vS={class:"assignee-inline"},CS={class:"ao-field__label"},wS={class:"ao-activity-details__aside-section"},kS={key:0,class:"ao-field__row"},xS={class:"ao-field"},ES={class:"ao-field__label"},SS=["readonly"],TS={class:"ao-activity-details__aside-section"},AS={class:"ao-field__row"},NS={class:"ao-field ao-field--inline"},DS={class:"ao-field__label"},BS=["readonly"],LS={class:"ao-field__row"},MS={class:"ao-field ao-field--inline"},$S={class:"ao-field__label"},OS={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},IS={class:"ao-activity-details__aside-section"},RS={class:"ao-fieldset ao-activity-details__aside-section"},PS={class:"ao-fieldset__title"},VS={class:"ao-fieldset__body"},FS={class:"ao-field__row"},zS={class:"ao-field ao-field--multiselect"},qS={class:"ao-field__label"},jS={class:"ao-field__row"},US={class:"ao-field ao-field--multiselect"},HS={class:"ao-field__label"},Hd=a.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{},breadcrumbs:{},milestoneId:{},templateActivities:{},templateMilestones:{},isTemplate:{type:Boolean},users:{},userId:{},isTaskCheckable:{},statuses:{},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(t,{emit:e}){const n=t,o=e,{t:r}=Mn(),i=a.ref("description"),s=a.computed(()=>{var $,Y;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:(($=n.activity.tasks)==null?void 0:$.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((Y=n.activity.comments)==null?void 0:Y.length)??0}]}),l=a.computed(()=>{var $;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===(($=n.activity.assignee)==null?void 0:$.id):!1}),c=a.ref(!1),d=$=>{o("update:activity",{id:n.activity.id,name:$})},u=a.computed(()=>n.activity.description??""),p=()=>{l.value&&(c.value=!0)},f=$=>{o("update:activity",{id:n.activity.id,description:$}),c.value=!1},m=()=>{c.value=!1};a.watch(()=>n.activity.id,()=>{c.value=!1});const h=a.computed({get(){return n.activity.estimation??0},set($){o("update:activity",{id:n.activity.id,estimation:$})}}),g=a.computed({get(){var Y;const $=(Y=n.timeTrackingData)==null?void 0:Y[n.activity.id];return($==null?void 0:$.timeSpent)??0},set(){}}),v=a.computed(()=>{var Y;return((Y=n.activity.project)==null?void 0:Y.estimationUnit)==="days"?"d":"h"}),_=a.computed(()=>{var Y;const $=(Y=n.activity.project)==null?void 0:Y.estimationUnit;return Ei(g.value,$)}),y=a.computed({get(){return n.activity.important??!1},set($){o("update:activity",{id:n.activity.id,important:$})}});a.computed({get(){return n.activity.private??!1},set($){o("update:activity",{id:n.activity.id,private:$})}});const b=a.computed({get(){return n.activity.deadline},set($){o("update:activity",{id:n.activity.id,deadline:$})}});a.computed(()=>{var $;return($=n.activityTypes)==null?void 0:$.map(Y=>({label:Y.name,value:Y.id}))}),a.computed({get(){var $;return($=n.activity.type)==null?void 0:$.id},set($){o("update:activity",{id:n.activity.id,typeId:$})}});const k=a.computed(()=>n.templateActivities.filter($=>$.id!==n.activity.id).map($=>({label:$.name,value:$.id}))),w=a.computed({get(){var $;return($=n.activity.dependingOn)==null?void 0:$.map(Y=>Y.id)},set($){$&&o("update:activity",{id:n.activity.id,dependingOn:$})}}),C=a.computed(()=>k.value.map($=>{var Y;return{...$,disabled:(Y=n.activity.blocking)==null?void 0:Y.some(be=>be.id===$.value)}})),x=a.computed({get(){var $;return($=n.activity.blocking)==null?void 0:$.map(Y=>Y.id)},set($){$&&o("update:activity",{id:n.activity.id,blocking:$})}}),S=a.computed(()=>k.value.map($=>{var Y;return{...$,disabled:(Y=n.activity.dependingOn)==null?void 0:Y.some(be=>be.id===$.value)}})),T=$=>{o("addSubtask",$)},A=$=>{o("updateSubtask",$)},z=$=>{o("deleteSubtask",$)};function O(){n.userId?I.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function B($){I.value=[$]}const L=a.computed(()=>{var Y;const $=new Map;return(Y=n.users)==null||Y.forEach(be=>{$.has(be.id)||$.set(be.id,be)}),Array.from($.values()).map(be=>({label:`${be.firstName} ${be.lastName}`,value:be.id,avatar:be.avatarUrl}))}),I=a.computed({get(){var $,Y;return($=n.activity.assignee)!=null&&$.id?[(Y=n.activity.assignee)==null?void 0:Y.id]:[]},set($){o("update:activity",{id:n.activity.id,assigneeId:$[0]??null})}}),P=$=>{o("addFiles",{activityId:n.activity.id,files:$})},G=$=>{o("removeFile",{activityId:n.activity.id,file:$})},R=a.computed(()=>n.projects.map($=>({value:$.id,label:$.name}))),D=a.computed(()=>{var Y,be,Ze;const $=(Ze=(be=(Y=n.activity)==null?void 0:Y.project)==null?void 0:be.phases)==null?void 0:Ze.reduce((pe,Ce)=>[...pe,...Ce.milestones],[]);return $==null?void 0:$.map(pe=>({value:pe.id,label:pe.name}))}),K=$=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:$})},F=$=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:$})},U=a.computed(()=>{var $;return($=n.statuses)==null?void 0:$.map(Y=>({value:Y.id,label:Y.name}))}),ce=$=>{o("update:activity",{id:n.activity.id,statusId:$})},ee=$=>{o("addComment",{...$,activityId:n.activity.id})},ae=$=>{o("updateComment",$)},q=$=>{o("removeComment",$)};a.computed(()=>{var $,Y;return(($=n.activity.createdBy)==null?void 0:$.firstName)&&((Y=n.activity.createdBy)==null?void 0:Y.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`});function ne(){const $=window.location.origin,Y=n.activity.slug,be=`${$}/activity-feed/slug/${Y}`;navigator.clipboard.writeText(be).then(()=>{console.log(`Link copied to clipboard: ${be}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return($,Y)=>(a.openBlock(),a.createBlock(Ti,{onClose:Y[8]||(Y[8]=be=>$.$emit("close"))},{default:a.withCtx(()=>{var be,Ze,pe;return[a.createElementVNode("div",KE,[a.createElementVNode("div",YE,[a.createElementVNode("div",JE,[t.activity.slug?(a.openBlock(),a.createBlock(Xr,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:ne},null,8,["label"])):a.createCommentVNode("",!0),t.breadcrumbs?(a.openBlock(),a.createElementBlock("div",XE,a.toDisplayString(t.breadcrumbs),1)):a.createCommentVNode("",!0),a.createVNode(ot,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":d},null,8,["title","is-editable"]),a.createElementVNode("div",QE,[R.value?(a.openBlock(),a.createElementBlock("label",eS,[a.createElementVNode("span",tS,a.toDisplayString($.$t("activity.project.label")),1),a.createVNode(Et,{options:R.value,value:(be=t.activity.project)==null?void 0:be.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:K},null,8,["options","value","disabled","caret"])])):a.createCommentVNode("",!0),D.value?(a.openBlock(),a.createElementBlock("label",nS,[a.createElementVNode("span",oS,a.toDisplayString($.$t("activity.milestone.label")),1),a.createVNode(Et,{options:D.value,value:(Ze=t.activity.milestone)==null?void 0:Ze.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:F},null,8,["options","value","disabled","caret"])])):a.createCommentVNode("",!0)]),a.renderSlot($.$slots,"header")]),a.createElementVNode("div",rS,[a.createVNode(ti,{modelValue:i.value,"onUpdate:modelValue":Y[0]||(Y[0]=Ce=>i.value=Ce),tabs:s.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),a.withDirectives(a.createElementVNode("div",aS,[a.createElementVNode("fieldset",iS,[a.createElementVNode("div",sS,[a.createVNode(Nw,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&t.isTemplate!==!0&&!!t.userId,onAdd:P,onRemove:G},{default:a.withCtx(()=>[c.value?(a.openBlock(),a.createBlock(GE,{key:1,"initial-markdown":u.value,onSave:f,onCancel:m},null,8,["initial-markdown"])):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":l.value}]),onClick:p},[a.createVNode(R1,{content:u.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[a.vShow,i.value==="description"]]),a.withDirectives(a.createElementVNode("div",lS,[a.createElementVNode("fieldset",cS,[a.createElementVNode("div",dS,[a.createVNode(yw,{class:"ao-activity-details__tasks ao-field__row",tasks:t.activity.tasks||[],"activity-id":t.activity.id,users:t.users,"is-checkable":t.isTaskCheckable,"is-editable":l.value,"is-template":t.isTemplate,onAdd:T,onUpdate:A,onDelete:z},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[a.vShow,i.value==="checklist"]]),a.withDirectives(a.createElementVNode("div",uS,[t.isTemplate!==!0&&t.userId?(a.openBlock(),a.createElementBlock("div",pS,[a.createVNode(PE,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:ee,onUpdateComment:ae,onRemoveComment:q},null,8,["comments","users","user-id"])])):a.createCommentVNode("",!0)],512),[[a.vShow,i.value==="comments"]])])]),a.createElementVNode("div",fS,[a.createElementVNode("div",mS,[a.createVNode(Ee,{name:"CloseRounded",onClick:Y[1]||(Y[1]=Ce=>$.$emit("close"))})]),U.value?(a.openBlock(),a.createElementBlock("div",hS,[a.createElementVNode("label",gS,[a.createElementVNode("span",bS,a.toDisplayString($.$t("activity.status.label")),1),a.createVNode(Et,{class:"ao-activity-details__multiselect",options:U.value,value:(pe=t.activity.status)==null?void 0:pe.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:ce},null,8,["options","value","disabled","caret"])])])):a.createCommentVNode("",!0),a.createElementVNode("div",yS,[a.createElementVNode("div",_S,[a.createElementVNode("div",vS,[a.createElementVNode("span",CS,a.toDisplayString($.$t("activity.assignee.label")),1),a.createVNode(he,{label:$.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:O},null,8,["label"])]),a.createVNode(Et,{modelValue:I.value,"onUpdate:modelValue":Y[2]||(Y[2]=Ce=>I.value=Ce),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:L.value,"close-on-select":!0,searchable:!0,placeholder:$.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:B},{tag:a.withCtx(({option:Ce,handleTagRemove:xe})=>[a.createVNode(An,{"user-name":Ce.label,"avatar-url":Ce.avatar,"is-closable":!0,onClose:bt=>xe(Ce,bt)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),a.createElementVNode("div",wS,[t.isTemplate!==!0&&t.userId?(a.openBlock(),a.createElementBlock("div",kS,[a.createElementVNode("label",xS,[a.createElementVNode("span",ES,a.toDisplayString($.$t("activity.deadline.label")),1),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":Y[3]||(Y[3]=Ce=>b.value=Ce),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,SS),[[a.vModelText,b.value,void 0,{lazy:!0}]])])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",TS,[a.createElementVNode("div",AS,[a.createElementVNode("label",NS,[a.createElementVNode("span",DS,a.toDisplayString($.$t("activity.estimation.label"))+" ("+a.toDisplayString(v.value)+")",1),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":Y[4]||(Y[4]=Ce=>h.value=Ce),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,BS),[[a.vModelText,h.value,void 0,{lazy:!0,number:!0}]])])]),a.createElementVNode("div",LS,[a.createElementVNode("label",MS,[a.createElementVNode("span",$S,a.toDisplayString($.$t("activity.timeSpent.label"))+" ("+a.toDisplayString(v.value)+")",1),a.createElementVNode("span",OS,a.toDisplayString(_.value),1)])])]),a.createElementVNode("div",IS,[a.createVNode(Cg,{modelValue:y.value,"onUpdate:modelValue":Y[5]||(Y[5]=Ce=>y.value=Ce),modelModifiers:{lazy:!0},label:$.$t("activity.important.label"),disabled:!l.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),a.createElementVNode("fieldset",RS,[a.createElementVNode("div",PS,[a.createVNode(Ee,{name:"FlowsheetOutlineRounded"}),a.createVNode(ot,{level:4,title:$.$t("activity.dependencies.title")},null,8,["title"])]),a.createElementVNode("div",VS,[a.createElementVNode("div",FS,[a.createElementVNode("label",zS,[a.createElementVNode("span",qS,a.toDisplayString($.$t("activity.dependingOn.label")),1),a.createVNode(Et,{modelValue:w.value,"onUpdate:modelValue":Y[6]||(Y[6]=Ce=>w.value=Ce),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:C.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),a.createElementVNode("div",jS,[a.createElementVNode("label",US,[a.createElementVNode("span",HS,a.toDisplayString($.$t("activity.blocking.label")),1),a.createVNode(Et,{modelValue:x.value,"onUpdate:modelValue":Y[7]||(Y[7]=Ce=>x.value=Ce),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:S.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),a.renderSlot($.$slots,"default",{activity:t.activity})])])]}),_:3}))}}),phe="",WS=a.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(t,{emit:e}){const n=t,o=e,r=a.toRef(n.rule.itemType||Le.ACTIVITIES),i=a.computed({get(){return r.value},set(y){r.value=y,o("update:rule",{...n.rule,itemType:y,subItemId:void 0})}}),s=a.computed(()=>Object.values(Le)),l=a.computed({get(){return n.rule.subItemId},set(y){o("update:rule",{...n.rule,subItemId:y,itemType:n.rule.itemType||i.value})}}),c=a.computed(()=>{var b;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(b={[Le.ACTIVITIES]:n.templateActivities,[Le.MILESTONES]:n.templateMilestones,[Le.PHASES]:n.templatePhases}[r.value])==null?void 0:b.map(k=>({value:k.id,label:k.name}))}),d=a.toRef(n.rule.comparator),u=a.computed({get(){return d.value},set(y){o("update:rule",{...n.rule,comparator:y})}}),p=a.computed(()=>Object.values(uu)),f=a.toRef(n.rule.trigger),m=a.computed({get(){return f.value},set(y){o("update:rule",{...n.rule,trigger:y})}}),h=a.computed(()=>Object.values(pu)),g=a.computed({get(){return n.rule.duration},set(y){o("update:rule",{...n.rule,duration:y})}}),v=a.computed({get(){return n.rule.durationUnit},set(y){o("update:rule",{...n.rule,durationUnit:y})}}),_=a.computed(()=>Object.values(fu));return(y,b)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:a.withCtx(()=>[a.createVNode(a.unref(no),{modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=k=>i.value=k),options:s.value},null,8,["modelValue","options"]),a.createVNode(a.unref(no),{modelValue:l.value,"onUpdate:modelValue":b[1]||(b[1]=k=>l.value=k),options:c.value},null,8,["modelValue","options"]),a.createVNode(a.unref(no),{modelValue:m.value,"onUpdate:modelValue":b[2]||(b[2]=k=>m.value=k),options:h.value},null,8,["modelValue","options"]),a.createVNode(a.unref(no),{modelValue:u.value,"onUpdate:modelValue":b[3]||(b[3]=k=>u.value=k),options:p.value},null,8,["modelValue","options"]),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":b[4]||(b[4]=k=>g.value=k),type:"number",min:"0"},null,512),[[a.vModelText,g.value,void 0,{number:!0}]]),a.createVNode(a.unref(no),{modelValue:v.value,"onUpdate:modelValue":b[5]||(b[5]=k=>v.value=k),options:_.value},null,8,["modelValue","options"]),a.createVNode(he,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:b[6]||(b[6]=k=>y.$emit("close"))})]),_:1}))}}),fhe="",ZS={class:"ao-template-rules__body"},GS={class:"ao-template-rules__list"},KS=a.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(t,{emit:e}){const n=e,o=()=>{n("addRule")},r=i=>{n("removeRule",i)};return(i,s)=>(a.openBlock(),a.createBlock(Ti,null,{header:a.withCtx(()=>[a.createVNode(ot,{title:i.$t("template.rules.title"),level:2},null,8,["title"])]),default:a.withCtx(()=>[a.createElementVNode("div",ZS,[a.createElementVNode("ul",GS,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.rules,l=>(a.openBlock(),a.createBlock(WS,{key:l.id,rule:l,"template-phases":t.templatePhases,"template-milestones":t.templateMilestones,"template-activities":t.templateActivities,class:"ao-template-rule",onClose:()=>r(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),a.createVNode(Yn,{label:i.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}}),mhe="";function er(t,e,n){const o=t.length,r=t.at(-1),i=r?rt.LexoRank.parse(r.rank).genNext():rt.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:i.format()}}const YS={key:0,class:"ao-template-details"},JS={class:"ao-template-details__body"},XS={class:"ao-template-details__cols"},QS={class:"ao-template-details__col"},eT={class:"ao-list__footer"},tT={class:"ao-template-details__col"},nT={class:"ao-template-details__col"},wg=a.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e,i=a.computed(()=>{var R;return(R=o.templates)==null?void 0:R.find(D=>D.id===o.templateId)}),s=a.ref(!1);a.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>s.value=!1),a.watch(()=>{var R;return(R=i.value)==null?void 0:R.phases},(R,D)=>{s.value&&$n(R,D)});const l=a.computed(()=>{var R,D;return(D=(R=i==null?void 0:i.value)==null?void 0:R.phases)==null?void 0:D.find(K=>K.id===o.phaseId)});a.watch(()=>{var R;return(R=l.value)==null?void 0:R.milestones},(R,D)=>{s.value&&$n(R,D)});const c=a.computed(()=>{var R,D;return(D=(R=l.value)==null?void 0:R.milestones)==null?void 0:D.find(K=>K.id===o.milestoneId)});a.watch(()=>{var R;return(R=c.value)==null?void 0:R.activities},(R,D)=>{s.value&&$n(R,D)});const d=a.computed(()=>{var R,D;return((D=(R=i.value)==null?void 0:R.phases)==null?void 0:D.reduce((K,F)=>{const U=F.milestones||[];return[...K,...U]},[]))||[]}),u=a.computed(()=>{var R,D;return((D=(R=i.value)==null?void 0:R.phases)==null?void 0:D.reduce((K,F)=>{const ce=(F.milestones||[]).reduce((ee,ae)=>ae.activities?[...ee,...ae.activities]:ee,[]);return[...K,...ce]},[]))||[]}),p=a.computed(()=>{var R,D;return(D=(R=c.value)==null?void 0:R.activities)==null?void 0:D.find(K=>K.id===o.activityId)}),f=a.computed(()=>{var R;return((R=i.value)==null?void 0:R.name)||o.templateId}),m=()=>{if(!i.value)return;const{name:R,rank:D}=er(i.value.phases,"phase",n);s.value=!0,r("addItem",{type:Le.PHASES,templateId:o.templateId,item:{name:R,rank:D}})},h=R=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:Le.TEMPLATES,data:{name:R}})},g=R=>{r("removeItem",{itemType:Le.PHASES,templateId:o.templateId,data:{id:R}})},v=(R,D)=>{r("updateItem",{templateId:o.templateId,id:R,itemType:Le.PHASES,data:{name:D}})},_=R=>{r("updateItem",R)},y=R=>{if(!l.value)return;const{name:D,rank:K}=er(l.value.milestones,"milestone",n);s.value=!0,r("addItem",{type:Le.MILESTONES,templateId:o.templateId,phaseId:R.phaseId,item:{name:D,rank:K,phaseId:R.phaseId}})},b=R=>{r("removeItem",{itemType:Le.MILESTONES,templateId:o.templateId,phaseId:R.phaseId,data:{id:R.id}})},k=R=>{const{id:D,...K}=R;r("updateItem",{itemType:Le.MILESTONES,id:D,templateId:o.templateId,data:K})},w=R=>{const{milestoneId:D}=R;if(!c.value)return;const{name:K,rank:F}=er(c.value.activities,"activity",n);s.value=!0,r("addItem",{type:Le.ACTIVITIES,milestoneId:D,templateId:o.templateId,item:{name:K,rank:F,milestoneId:D}})},C=R=>{var D,K;r("removeItem",{itemType:Le.ACTIVITIES,templateId:o.templateId,phaseId:(D=l.value)==null?void 0:D.id,milestoneId:(K=c.value)==null?void 0:K.id,data:{id:R.id}})},x=R=>{const{id:D,...K}=R;r("updateItem",{itemType:Le.ACTIVITIES,id:D,templateId:o.templateId,data:K})},S=a.ref(!1),T=()=>{S.value=!S.value},A=()=>{r("addRule",{templateId:o.templateId})},z=R=>{r("removeRule",{id:R,templateId:o.templateId})},O=R=>{var D;if(R.moved){const K=ua(R,((D=i.value)==null?void 0:D.phases)??[]);r("updateItem",{itemType:Le.PHASES,id:R.moved.element.id,templateId:o.templateId,data:{rank:K}})}},B=R=>{!l.value||!c.value||!p.value||r("addItem",{type:Le.TASKS,activityId:R.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:R})},L=R=>{!l.value||!c.value||!p.value||r("updateItem",{itemType:Le.TASKS,id:R.id,templateId:o.templateId,data:R})},I=R=>{!l.value||!c.value||!p.value||r("removeItem",{itemType:Le.TASKS,activityId:p.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:R})},P=R=>{r("addFiles",R)},G=R=>{r("removeFile",R)};return(R,D)=>{var K,F,U,ce,ee,ae;return i.value?(a.openBlock(),a.createElementBlock("div",YS,[a.createVNode(pa,{"can-go-back":!0,onGoBack:D[1]||(D[1]=q=>R.$router.push({name:a.unref(nr).TEMPLATES_LIST}))},{primary:a.withCtx(()=>[a.createVNode(ot,{title:f.value,level:2,"is-editable":!0,"onUpdate:title":D[0]||(D[0]=q=>{h(q)})},null,8,["title"])]),_:1}),a.createElementVNode("div",JS,[a.createElementVNode("ol",XS,[a.createElementVNode("li",QS,[a.createVNode(a.unref(Gn),{"model-value":i.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:O},{header:a.withCtx(()=>[a.createVNode(ot,{title:R.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:a.withCtx(({element:q})=>{var ne;return[a.createVNode(I5,{id:q.id,name:q.name,milestones:q.milestones,"is-active":((ne=l.value)==null?void 0:ne.id)===q.id,"is-draggable":!0,onClick:$=>R.$router.push({params:{templateId:t.templateId,phaseId:q.id}}),"onUpdate:title":$=>{v(q.id,$)},onRemove:()=>g(q.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:a.withCtx(()=>[a.createElementVNode("div",eT,[a.createVNode(Yn,{"icon-name":"AddBoxOutlineRounded",label:R.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),a.createElementVNode("li",tT,[l.value?(a.openBlock(),a.createBlock(V5,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(K=c.value)==null?void 0:K.id,onAddMilestone:y,onUpdateMilestone:k,onUpdatePhase:_,onRemoveMilestone:b},null,8,["template-id","phase","milestone-id"])):a.createCommentVNode("",!0)]),a.createElementVNode("li",nT,[l.value&&c.value?(a.openBlock(),a.createBlock(q5,{key:0,"template-id":t.templateId,"phase-id":(F=l.value)==null?void 0:F.id,milestone:c.value,"activity-id":(U=p.value)==null?void 0:U.id,onAddActivity:w,onUpdateActivity:x,onRemoveActivity:C},null,8,["template-id","phase-id","milestone","activity-id"])):a.createCommentVNode("",!0)])])]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[p.value?(a.openBlock(),a.createBlock(Hd,{key:0,activity:p.value,"activity-types":t.activityTypes,breadcrumbs:`${i.value.name} / ${(ce=l.value)==null?void 0:ce.name} / ${(ee=c.value)==null?void 0:ee.name}`,"milestone-id":(ae=c.value)==null?void 0:ae.id,"template-activities":u.value,"template-milestones":d.value,"is-template":!0,"is-editable":!0,users:t.users,"onUpdate:activity":D[2]||(D[2]=q=>{p.value&&x(q)}),"attachment-enabled":!1,onClose:R.$router.back,onAddSubtask:B,onUpdateSubtask:L,onDeleteSubtask:I,onAddFiles:P,onRemoveFile:G},{default:a.withCtx(q=>[a.renderSlot(R.$slots,"activityDetailsBody",a.normalizeProps(a.guardReactiveProps(q)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):a.createCommentVNode("",!0)])),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[S.value?(a.openBlock(),a.createBlock(KS,{key:0,"template-id":i.value.id,rules:i.value.rules||[],"template-phases":i.value.phases,"template-milestones":d.value,"template-activities":u.value,onClose:T,onAddRule:A,onRemoveRule:z},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):a.createCommentVNode("",!0)]))])):a.createCommentVNode("",!0)}}}),hhe="",oT={class:"ao-card__content"},rT={key:0,class:"ao-card__header"},aT={class:"ao-card__body"},iT={key:1,class:"ao-card__footer"},el=a.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(t){return(e,n)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.tagName),{class:a.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable}]),style:a.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:a.withCtx(()=>[t.withLeftBorder?(a.openBlock(),a.createElementBlock("div",{key:0,class:"ao-card__left-border",style:a.normalizeStyle({backgroundColor:t.color})},null,4)):a.createCommentVNode("",!0),a.createElementVNode("div",oT,[e.$slots.header?(a.openBlock(),a.createElementBlock("header",rT,[a.renderSlot(e.$slots,"header")])):a.createCommentVNode("",!0),a.createElementVNode("div",aT,[a.renderSlot(e.$slots,"default")]),e.$slots.footer?(a.openBlock(),a.createElementBlock("footer",iT,[a.renderSlot(e.$slots,"footer")])):a.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}}),ghe="",tl=a.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(t){const e=t,n=a.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-progress",t.status?`ao-progress--${t.status}`:""]),role:"meter"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,i=>(a.openBlock(),a.createElementBlock("div",{key:i,class:a.normalizeClass(["ao-progress__progress"]),style:a.normalizeStyle({width:`${i*100}%`,"--ao-progress-color":t.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}}),bhe="";/*!
56
56
  * vue-color-kit v1.0.6
57
57
  * (c) 2023
58
58
  * @license MIT
59
- */function tr(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=lT(t):/rgb/.test(t)?e=kg(t):typeof t=="string"?e=kg(`rgba(${t})`):Object.prototype.toString.call(t)==="[object Object]"&&(e=t);const{r:n,g:o,b:r,a:i}=e,{h:s,s:l,v:c}=cT(e);return{r:n,g:o,b:r,a:i===void 0?1:i,h:s,s:l,v:c}}function Wd(t){const e=document.createElement("canvas"),n=e.getContext("2d"),o=t*2;return e.width=o,e.height=o,n.fillStyle="#ffffff",n.fillRect(0,0,o,o),n.fillStyle="#ccd5db",n.fillRect(0,0,t,t),n.fillRect(t,t,t,t),e}function Zd(t,e,n,o,r,i){const s=t==="l",l=e.createLinearGradient(0,0,s?n:0,s?0:o);l.addColorStop(.01,r),l.addColorStop(.99,i),e.fillStyle=l,e.fillRect(0,0,n,o)}function sT({r:t,g:e,b:n},o){const r=s=>("0"+Number(s).toString(16)).slice(-2),i=`#${r(t)}${r(e)}${r(n)}`;return o?i.toUpperCase():i}function lT(t){t=t.slice(1);const e=n=>parseInt(n,16)||0;return{r:e(t.slice(0,2)),g:e(t.slice(2,4)),b:e(t.slice(4,6))}}function kg(t){return typeof t=="string"?(t=(/rgba?\((.*?)\)/.exec(t)||["","0,0,0,1"])[1].split(","),{r:Number(t[0])||0,g:Number(t[1])||0,b:Number(t[2])||0,a:Number(t[3]?t[3]:1)}):t}function cT({r:t,g:e,b:n}){t=t/255,e=e/255,n=n/255;const o=Math.max(t,e,n),r=Math.min(t,e,n),i=o-r;let s=0;o===r?s=0:o===t?e>=n?s=60*(e-n)/i:s=60*(e-n)/i+360:o===e?s=60*(n-t)/i+120:o===n&&(s=60*(t-e)/i+240),s=Math.floor(s);let l=parseFloat((o===0?0:1-r/o).toFixed(2)),c=parseFloat(o.toFixed(2));return{h:s,s:l,v:c}}var Gd=a.defineComponent({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasSaturation,e=this.size,n=t.getContext("2d");t.width=e,t.height=e,n.fillStyle=this.color,n.fillRect(0,0,e,e),Zd("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Zd("p",n,e,e,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(t){const{top:e,left:n}=this.$el.getBoundingClientRect(),o=t.target.getContext("2d"),r=s=>{let l=s.clientX-n,c=s.clientY-e;l<0&&(l=0),c<0&&(c=0),l>this.size&&(l=this.size),c>this.size&&(c=this.size),this.slideSaturationStyle={left:l-5+"px",top:c-5+"px"};const d=o.getImageData(Math.min(l,this.size-1),Math.min(c,this.size-1),1,1),[u,p,f]=d.data;this.$emit("selectSaturation",{r:u,g:p,b:f})};r(t);const i=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",i)}}});const dT={ref:"canvasSaturation"};function uT(t,e,n,o,r,i){return a.openBlock(),a.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=a.withModifiers((...s)=>t.selectSaturation&&t.selectSaturation(...s),["prevent","stop"]))},[a.createVNode("canvas",dT,null,512),a.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}Gd.render=uT,Gd.__file="src/color/Saturation.vue";var Kd=a.defineComponent({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasHue,e=this.width,n=this.height,o=t.getContext("2d");t.width=e,t.height=n;const r=o.createLinearGradient(0,0,0,n);r.addColorStop(0,"#FF0000"),r.addColorStop(.17*1,"#FF00FF"),r.addColorStop(.17*2,"#0000FF"),r.addColorStop(.17*3,"#00FFFF"),r.addColorStop(.17*4,"#00FF00"),r.addColorStop(.17*5,"#FFFF00"),r.addColorStop(1,"#FF0000"),o.fillStyle=r,o.fillRect(0,0,e,n)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(t){const{top:e}=this.$el.getBoundingClientRect(),n=t.target.getContext("2d"),o=i=>{let s=i.clientY-e;s<0&&(s=0),s>this.height&&(s=this.height),this.slideHueStyle={top:s-2+"px"};const l=n.getImageData(0,Math.min(s,this.height-1),1,1),[c,d,u]=l.data;this.$emit("selectHue",{r:c,g:d,b:u})};o(t);const r=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)}}});const pT={ref:"canvasHue"};function fT(t,e,n,o,r,i){return a.openBlock(),a.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=a.withModifiers((...s)=>t.selectHue&&t.selectHue(...s),["prevent","stop"]))},[a.createVNode("canvas",pT,null,512),a.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}Kd.render=fT,Kd.__file="src/color/Hue.vue";var Yd=a.defineComponent({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasAlpha,e=this.width,n=this.height,o=this.alphaSize,r=Wd(o),i=t.getContext("2d");t.width=e,t.height=n,i.fillStyle=i.createPattern(r,"repeat"),i.fillRect(0,0,e,n),Zd("p",i,e,n,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(t){const{top:e}=this.$el.getBoundingClientRect(),n=r=>{let i=r.clientY-e;i<0&&(i=0),i>this.height&&(i=this.height);let s=parseFloat((i/this.height).toFixed(2));this.$emit("selectAlpha",s)};n(t);const o=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)}}});const mT={ref:"canvasAlpha"};function hT(t,e,n,o,r,i){return a.openBlock(),a.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=a.withModifiers((...s)=>t.selectAlpha&&t.selectAlpha(...s),["prevent","stop"]))},[a.createVNode("canvas",mT,null,512),a.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}Yd.render=hT,Yd.__file="src/color/Alpha.vue";var Jd=a.defineComponent({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const t=this.$el,e=this.width,n=this.height,o=this.alphaSize,r=Wd(o),i=t.getContext("2d");t.width=e,t.height=n,i.fillStyle=i.createPattern(r,"repeat"),i.fillRect(0,0,e,n),i.fillStyle=this.color,i.fillRect(0,0,e,n)}}});function gT(t,e,n,o,r,i){return a.openBlock(),a.createBlock("canvas")}Jd.render=gT,Jd.__file="src/color/Preview.vue";var Xd=a.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(t){this.isSucking=!1,this.suckColor(t)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(t){t.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(t){const{clientX:e,clientY:n}=t,{top:o,left:r,width:i,height:s}=this.suckerCanvas.getBoundingClientRect(),l=e-r,c=n-o,u=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,i-1),Math.min(c,s-1),1,1);let[p,f,m,h]=u.data;h=parseFloat((h/255).toFixed(2));const g=this.suckerPreview.style;Object.assign(g,{position:"absolute",left:e+20+"px",top:n-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${p}, ${f}, ${m}, ${h})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&n>=this.suckerArea[1]&&e<=this.suckerArea[2]&&n<=this.suckerArea[3]?g.display="":g.display="none"},suckColor(t){t&&t.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),t.addEventListener("click",e=>{const{clientX:n,clientY:o}=e,{top:r,left:i,width:s,height:l}=t.getBoundingClientRect(),c=n-i,d=o-r,p=t.getContext("2d").getImageData(Math.min(c,s-1),Math.min(d,l-1),1,1);let[f,m,h,g]=p.data;g=parseFloat((g/255).toFixed(2)),this.$emit("selectSucker",{r:f,g:m,b:h,a:g})}))}}});const bT=a.createVNode("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),_T={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},yT=a.createVNode("g",{fill:"none","fill-rule":"evenodd"},[a.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[a.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),a.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[a.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function vT(t,e,n,o,r,i){return a.openBlock(),a.createBlock("div",null,[t.isSucking?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock("svg",{key:0,class:[{active:t.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:e[1]||(e[1]=(...s)=>t.openSucker&&t.openSucker(...s))},[bT],2)),t.isSucking?(a.openBlock(),a.createBlock("svg",_T,[yT])):a.createCommentVNode("v-if",!0)])}Xd.render=vT,Xd.__file="src/color/Sucker.vue";var Qd=a.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(t,{emit:e}){return{modelColor:a.computed({get(){return t.color||""},set(i){e("inputColor",i)}}),handleFocus:i=>{e("inputFocus",i)},handleBlur:i=>{e("inputBlur",i)}}}});const CT={class:"color-type"},wT={class:"name"};function kT(t,e,n,o,r,i){return a.openBlock(),a.createBlock("div",CT,[a.createVNode("span",wT,a.toDisplayString(t.name),1),a.withDirectives(a.createVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>t.modelColor=s),class:"value",onFocus:e[2]||(e[2]=(...s)=>t.handleFocus&&t.handleFocus(...s)),onBlur:e[3]||(e[3]=(...s)=>t.handleBlur&&t.handleBlur(...s))},null,544),[[a.vModelText,t.modelColor]])])}Qd.render=kT,Qd.__file="src/color/Box.vue";var eu=a.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(t,{emit:e}){const n=a.ref(),o=a.ref([]),r=a.ref();t.colorsHistoryKey&&localStorage&&(o.value=JSON.parse(localStorage.getItem(t.colorsHistoryKey))||[]),r.value=Wd(4).toDataURL(),a.onUnmounted(()=>{i(n.value)});function i(l){if(!l)return;const c=o.value||[],d=c.indexOf(l);d>=0&&c.splice(d,1),c.length>=8&&(c.length=7),c.unshift(l),o.value=c||[],localStorage&&t.colorsHistoryKey&&localStorage.setItem(t.colorsHistoryKey,JSON.stringify(c))}function s(l){e("selectColor",l)}return{setColorsHistory:i,colorsHistory:o,color:n,imgAlphaBase64:r,selectColor:s}}});const xT={class:"colors"},ET={key:0,class:"colors history"};function ST(t,e,n,o,r,i){return a.openBlock(),a.createBlock("div",null,[a.createVNode("ul",xT,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(t.colorsDefault,s=>(a.openBlock(),a.createBlock("li",{key:s,class:"item",onClick:l=>t.selectColor(s)},[a.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),a.createVNode("div",{style:{background:s},class:"color"},null,4)],8,["onClick"]))),128))]),t.colorsHistory.length?(a.openBlock(),a.createBlock("ul",ET,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(t.colorsHistory,s=>(a.openBlock(),a.createBlock("li",{key:s,class:"item",onClick:l=>t.selectColor(s)},[a.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),a.createVNode("div",{style:{background:s},class:"color"},null,4)],8,["onClick"]))),128))])):a.createCommentVNode("v-if",!0)])}eu.render=ST,eu.__file="src/color/Colors.vue";var Hr=a.defineComponent({components:{Saturation:Gd,Hue:Kd,Alpha:Yd,Preview:Jd,Sucker:Xd,Box:Qd,Colors:eu},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return sT(this.rgba,!0)}},created(){Object.assign(this,tr(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(t){const{r:e,g:n,b:o,h:r,s:i,v:s}=tr(t);Object.assign(this,{r:e,g:n,b:o,h:r,s:i,v:s}),this.setText()},handleFocus(t){this.$emit("inputFocus",t)},handleBlur(t){this.$emit("inputBlur",t)},selectHue(t){const{r:e,g:n,b:o,h:r,s:i,v:s}=tr(t);Object.assign(this,{r:e,g:n,b:o,h:r,s:i,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(t){this.a=t,this.setText()},inputHex(t){const{r:e,g:n,b:o,a:r,h:i,s,v:l}=tr(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:i,s,v:l}),this.modelHex=t,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(t){const{r:e,g:n,b:o,a:r,h:i,s,v:l}=tr(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:i,s,v:l}),this.modelHex=this.hexString,this.modelRgba=t,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(t){this.$emit("openSucker",t)},selectSucker(t){const{r:e,g:n,b:o,a:r,h:i,s,v:l}=tr(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:i,s,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(t){const{r:e,g:n,b:o,a:r,h:i,s,v:l}=tr(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:i,s,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const TT={class:"color-set"};function AT(t,e,n,o,r,i){const s=a.resolveComponent("Saturation"),l=a.resolveComponent("Hue"),c=a.resolveComponent("Alpha"),d=a.resolveComponent("Preview"),u=a.resolveComponent("Sucker"),p=a.resolveComponent("Box"),f=a.resolveComponent("Colors");return a.openBlock(),a.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[a.createVNode("div",TT,[a.createVNode(s,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),a.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),a.createVNode(c,{ref:"alpha",color:t.rgbString,rgba:t.rgba,width:t.hueWidth,height:t.hueHeight,onSelectAlpha:t.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),a.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[a.createVNode(d,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock(u,{key:0,"sucker-canvas":t.suckerCanvas,"sucker-area":t.suckerArea,onOpenSucker:t.openSucker,onSelectSucker:t.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),a.createVNode(p,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),a.createVNode(p,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),a.createVNode(f,{color:t.rgbaString,"colors-default":t.colorsDefault,"colors-history-key":t.colorsHistoryKey,onSelectColor:t.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),a.createCommentVNode(" custom options "),a.renderSlot(t.$slots,"default")],6)}Hr.render=AT,Hr.__file="src/color/ColorPicker.vue",Hr.install=t=>{t.component(Hr.name,Hr)};const _he="",NT={class:"color-picker-wrapper"},nl=a.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(t,{emit:e}){const n=t,o=e,r=a.ref(!1),i=a.ref(null),s=a.ref(null),l=a.ref(0),c=a.ref(0),d=async h=>{s.value=h,r.value=!0,await a.nextTick();const g=h.getBoundingClientRect(),v=i.value,y=(v==null?void 0:v.offsetHeight)||300,_=window.innerHeight-g.bottom,b=g.top,k=_<y&&b>y;console.log("pickerHeight = "+y),l.value=k?g.top-y-8:g.bottom+8,c.value=g.left,setTimeout(()=>{window.addEventListener("click",p)},0)},u=a.computed(()=>({position:"fixed",top:`${l.value}px`,left:`${c.value}px`,zIndex:1e3})),p=h=>{const g=h.target;i.value&&!i.value.contains(g)&&(r.value=!1,o("update:color",f.value),window.removeEventListener("click",p))};a.onBeforeUnmount(()=>{window.removeEventListener("click",p)}),a.watch(()=>n.color,h=>{r.value||(f.value=h)});const f=a.ref(n.color),m=h=>{const{r:g,g:v,b:y,a:_}=h.rgba;f.value=`rgba(${g}, ${v}, ${y}, ${_})`};return(h,g)=>(a.openBlock(),a.createElementBlock("div",NT,[a.renderSlot(h.$slots,"clickable",{openPicker:d,bgColor:t.color}),r.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:i,class:"color-picker",style:a.normalizeStyle(u.value)},[a.createVNode(a.unref(Hr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:m},null,8,["color"])],4)):a.createCommentVNode("",!0)]))}}),yhe="",DT={class:"ao-card-project-phase__header"},BT={class:"ao-card-project-item__title-line"},LT={key:0,class:"ao-card-project-item-phase__estimation"},MT={class:"ao-card-project-phase__footer"},$T={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},OT={class:"ao-card-project-phase__subitem"},IT={class:"ao-card-project-phase__subitem"},RT={key:0,class:"ao-card-project-phase__secondary"},PT={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},VT=a.defineComponent({__name:"AoCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","unarchivePhase","updatePhase"],setup(t,{emit:e}){const n=t,o=e,r=g=>{o("update:title",g)},i=a.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((v,y)=>{var _;return v+((_=y.activities)==null?void 0:_.reduce((b,k)=>b+(k.estimation||0),0))},0))||0}),s=a.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,v)=>{var y;return g+(((y=v.activities)==null?void 0:y.reduce((_,b)=>{var w;const k=(w=n.timeTrackingData)==null?void 0:w[b.id];return _+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=a.computed(()=>n.estimationUnit==="days"?"d":"h"),c=a.computed(()=>Ei(s.value,n.estimationUnit)),d=a.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),u=a.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(v=>v.status===Qr.done).length}),p=a.computed(()=>(u.value||0)/(d.value||1)),f=a.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=a.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,v)=>{const y=g.target;y.closest("button")||y.closest("input")||y.closest(".ao-title")||v(y)};return(g,v)=>(a.openBlock(),a.createBlock(nl,{color:m.value,"onUpdate:color":v[2]||(v[2]=y=>m.value=y)},{clickable:a.withCtx(({openPicker:y,bgColor:_})=>[a.createVNode(el,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:_,withLeftBorder:!0,onClick:b=>h(b,y)},a.createSlots({default:a.withCtx(()=>[a.createElementVNode("div",BT,[a.createVNode(ot,{id:t.id,class:"ao-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),i.value||s.value?(a.openBlock(),a.createElementBlock("span",LT," ("+a.toDisplayString(c.value)+"/"+a.toDisplayString(i.value)+a.toDisplayString(l.value)+")",1)):a.createCommentVNode("",!0)])]),footer:a.withCtx(()=>[a.createElementVNode("div",MT,[d.value?(a.openBlock(),a.createElementBlock("div",$T,[a.createElementVNode("div",OT,[a.createVNode(Ee,{name:"MountainFlagOutlineRounded",size:"sm"}),a.createElementVNode("span",IT,a.toDisplayString(u.value)+" / "+a.toDisplayString(d.value),1)]),a.createVNode(tl,{percentages:p.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(a.openBlock(),a.createElementBlock("div",RT,[a.renderSlot(g.$slots,"secondary")])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["ao-card-project-phase__footer-row",f.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":v[1]||(v[1]=b=>f.value=b),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[a.vModelText,f.value,void 0,{lazy:!0}]]):a.createCommentVNode("",!0),a.createElementVNode("span",PT,a.toDisplayString(a.unref(Si)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:a.withCtx(()=>[a.createElementVNode("div",DT,[a.createVNode(he,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:v[0]||(v[0]=a.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}}),vhe="",FT=a.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("span",{class:"aoBadge",style:a.normalizeStyle({backgroundColor:t.color})},null,4))}}),Che="",zT={class:"ao-card-project-milestone__default"},qT={class:"ao-title-with-badge-wrapper"},jT={class:"ao-card-project-item__title-line"},UT={key:0,class:"ao-card-project-item-milestone__estimation"},HT={key:0,class:"ao-card-project-milestone__archive"},WT={class:"ao-card-project-milestone__activities"},ZT={class:"ao-card-project-milestone__activities-row"},GT={class:"ao-card-project-milestone__subitem"},KT={class:"ao-card-project-milestone__subitem"},YT={key:1,class:"ao-card-project-milestone__secondary"},JT={class:"ao-card-project-milestone__footer"},XT={key:1,class:"ao-field ao-card-project-milestone__deadline"},QT={class:"ao-field__label"},eA={key:2,class:"ao-card-project-milestone__assignee"},tA=a.defineComponent({__name:"AoCardProjectItemMilestone",props:{id:{},name:{},color:{},phaseColor:{},activities:{},closedStatus:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},isSelected:{type:Boolean},assignee:{},important:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["updateMilestone","archiveMilestone","unarchiveMilestone"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>{var f;return((f=n.activities)==null?void 0:f.reduce((m,h)=>m+(h.estimation||0),0))||0}),i=a.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((f,m)=>{var g;const h=(g=n.timeTrackingData)==null?void 0:g[m.id];return f+((h==null?void 0:h.timeSpent)||0)},0)),s=a.computed(()=>n.estimationUnit==="days"?"d":"h"),l=a.computed(()=>Ei(i.value,n.estimationUnit));a.computed(()=>{const f=i.value/60;return f%1===0?f.toString():f.toFixed(2)});const c=a.computed(()=>{var f;return(f=n.activities)==null?void 0:f.length}),d=a.computed(()=>{var f;return(f=n.activities)==null?void 0:f.filter(m=>_l(m,n.closedStatus)).length}),u=a.computed(()=>(d.value||0)/(c.value||1)),p=f=>{o("updateMilestone",{id:n.id,name:f})};return(f,m)=>(a.openBlock(),a.createBlock(el,{class:a.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!t.readonly,"tag-name":"li","is-selected":t.isSelected,color:t.phaseColor},{default:a.withCtx(()=>[a.createElementVNode("div",zT,[a.createElementVNode("div",qT,[a.createVNode(FT,{color:t.color||""},null,8,["color"]),a.createElementVNode("div",jT,[a.createVNode(ot,{id:t.id,title:t.name||"",level:5,"is-editable":!t.readonly&&t.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":p},null,8,["id","title","is-editable"]),r.value||i.value?(a.openBlock(),a.createElementBlock("span",UT," ("+a.toDisplayString(l.value)+"/"+a.toDisplayString(r.value)+a.toDisplayString(s.value)+")",1)):a.createCommentVNode("",!0)])]),!t.readonly&&t.isEditable?(a.openBlock(),a.createElementBlock("div",HT,[a.createVNode(he,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?f.$t("archive"):f.$t("unarchive"),onClick:m[0]||(m[0]=a.withModifiers(()=>t.active?f.$emit("archiveMilestone",{id:t.id}):f.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",WT,[a.createElementVNode("div",ZT,[c.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",GT,[a.createVNode(Ee,{name:"SelectCheckBox",size:"sm"}),a.createElementVNode("span",KT,a.toDisplayString(d.value)+" / "+a.toDisplayString(c.value),1)]),a.createVNode(tl,{percentages:u.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):a.createCommentVNode("",!0),f.$slots.secondary?(a.openBlock(),a.createElementBlock("div",YT,[a.renderSlot(f.$slots,"secondary")])):a.createCommentVNode("",!0)])])]),footer:a.withCtx(()=>[a.createElementVNode("div",JT,[t.important?(a.openBlock(),a.createBlock(Ee,{key:0,name:"FlagRounded",class:a.normalizeClass(t.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):a.createCommentVNode("",!0),t.deadline?(a.openBlock(),a.createElementBlock("label",XT,[a.createElementVNode("span",QT,a.toDisplayString(a.unref(Si)(t.deadline)),1)])):a.createCommentVNode("",!0),t.assignee?(a.openBlock(),a.createElementBlock("div",eA,[a.createVNode(An,{"user-name":a.unref(Pu)(t.assignee),"avatar-url":t.assignee.avatarUrl,color:t.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):a.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}}),whe="",nA={class:"ao-mapping-card-project-phase__header"},oA={class:"ao-card-project-item__title-line"},rA={key:0,class:"ao-card-project-item-phase__estimation"},aA={class:"ao-mapping-card-project-phase__footer"},iA={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},sA={class:"ao-mapping-card-project-phase__subitem"},lA={class:"ao-mapping-card-project-phase__subitem"},cA={key:0,class:"ao-mapping-card-project-phase__secondary"},dA={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},uA=a.defineComponent({__name:"AoCondensedCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","updatePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e,r=g=>{o("update:title",g)},i=a.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((v,y)=>{var _;return v+((_=y.activities)==null?void 0:_.reduce((b,k)=>b+(k.estimation||0),0))},0))||0}),s=a.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,v)=>{var y;return g+(((y=v.activities)==null?void 0:y.reduce((_,b)=>{var w;const k=(w=n.timeTrackingData)==null?void 0:w[b.id];return _+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=a.computed(()=>n.estimationUnit==="days"?"d":"h"),c=a.computed(()=>Ei(s.value,n.estimationUnit)),d=a.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),u=a.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(v=>v.status===Qr.done).length}),p=a.computed(()=>(u.value||0)/(d.value||1)),f=a.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=a.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,v)=>{const y=g.target;y.closest("button")||y.closest("input")||y.closest(".ao-title")||v()};return(g,v)=>(a.openBlock(),a.createBlock(nl,{color:m.value,"onUpdate:color":v[2]||(v[2]=y=>m.value=y)},{clickable:a.withCtx(({openPicker:y,bgColor:_})=>[a.createVNode(el,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:_,withLeftBorder:!0,onClick:b=>h(b,y)},a.createSlots({default:a.withCtx(()=>[a.createElementVNode("div",oA,[a.createVNode(ot,{id:t.id,class:"ao-mapping-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),i.value||s.value?(a.openBlock(),a.createElementBlock("span",rA," ("+a.toDisplayString(c.value)+"/"+a.toDisplayString(i.value)+a.toDisplayString(l.value)+")",1)):a.createCommentVNode("",!0)])]),footer:a.withCtx(()=>[a.createElementVNode("div",aA,[d.value?(a.openBlock(),a.createElementBlock("div",iA,[a.createElementVNode("div",sA,[a.createVNode(Ee,{name:"MountainFlagOutlineRounded",size:"sm"}),a.createElementVNode("span",lA,a.toDisplayString(u.value)+" / "+a.toDisplayString(d.value),1)]),a.createVNode(tl,{percentages:p.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),g.$slots.secondary?(a.openBlock(),a.createElementBlock("div",cA,[a.renderSlot(g.$slots,"secondary")])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["ao-mapping-card-project-phase__footer-row",f.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":v[1]||(v[1]=b=>f.value=b),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[a.vModelText,f.value,void 0,{lazy:!0}]]):a.createCommentVNode("",!0),a.createElementVNode("span",dA,a.toDisplayString(a.unref(Si)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:a.withCtx(()=>[a.createElementVNode("div",nA,[a.createVNode(he,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:v[0]||(v[0]=a.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}}),khe="",pA={class:"ao-project-phase"},fA={key:0,class:"ao-project-phase__drag ao-card__drag"},mA={key:1,class:"ao-project-phase__col-phase"},hA={key:2,class:"ao-mapping-project-phase__col-phase"},gA={key:0,class:"ao-project-phase__col-milestones"},bA={class:"ao-project-phase__milestones-list-footer"},_A=a.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e;a.watch(()=>o.phase.milestones,(b,k)=>{$n(b,k)});const i=b=>{r("updatePhase",{id:o.phase.id,name:b})},s=b=>{r("updatePhase",{id:o.phase.id,deadline:b})},l=b=>{r("updatePhase",b)},c=a.computed(()=>o.phase.milestones.map(b=>e5(b,o.closedStatus))),d=b=>{const{name:k,rank:w}=er(c.value??[],"milestone",n);r("addMilestone",{name:k,rank:w,phaseId:b})},u=b=>{r("updateMilestone",b)},p=b=>{r("archiveMilestone",b)},f=b=>{r("unarchiveMilestone",b)},m=b=>{r("archivePhase",b)},h=b=>{r("unarchivePhase",b)},g=b=>{"added"in b?r("updateMilestone",{id:b.added.element.id,phaseId:o.phase.id,rank:cr(c.value,b.added.newIndex)}):"removed"in b||"moved"in b&&r("updateMilestone",{id:b.moved.element.id,rank:cr(c.value,b.moved.newIndex)})},v=ft.useRoute(),y=a.computed(()=>v.path.includes("/mapping")),_=a.computed(()=>{var b;return o.phase.id!==((b=v.params)==null?void 0:b.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:n5(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(b,k)=>(a.openBlock(),a.createElementBlock("li",pA,[a.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:a.normalizeStyle(_.value)},[t.isEditable?(a.openBlock(),a.createElementBlock("div",fA,[a.createVNode(Ee,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):a.createCommentVNode("",!0),y.value?(a.openBlock(),a.createElementBlock("div",hA,[a.createVNode(uA,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"estimation-unit":t.estimationUnit,"onUpdate:deadline":s,"onUpdate:title":i,onArchivePhase:m,onUnarchivePhase:h,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(a.openBlock(),a.createElementBlock("div",mA,[a.createVNode(VT,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,"onUpdate:deadline":s,"onUpdate:title":i,onArchivePhase:m,onUnarchivePhase:h,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),y.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",gA,[a.createElementVNode("div",{class:"ao-project-phase__milestones",style:a.normalizeStyle(_.value)},[a.createVNode(a.unref(Gn),a.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},b.$attrs,{onChange:g}),{item:a.withCtx(({element:w})=>{var C;return[a.createVNode(tA,{id:w.id,name:w.name,color:w.color,"phase-color":t.phase.color,activities:w.activities,deadline:w.deadline,active:w.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":w.id===((C=b.$route.params)==null?void 0:C.milestoneId),assignee:w.assignee,important:w.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:a.normalizeClass(["ao-project-phase__milestone"]),onClick:x=>!t.readonly&&b.$router.push({name:a.unref(We).milestone,params:{phaseId:t.phase.id,milestoneId:w.id}}),onUpdateMilestone:u,onArchiveMilestone:p,onUnarchiveMilestone:f},null,8,["id","name","color","phase-color","activities","deadline","active","is-editable","is-draggable","closed-status","is-selected","assignee","important","readonly","time-tracking-data","estimation-unit","onClick"])]}),_:1},16,["list","disabled"]),a.createElementVNode("div",bA,[t.isEditable?(a.openBlock(),a.createBlock(Yn,{key:0,label:b.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:k[0]||(k[0]=()=>d(t.phase.id))},null,8,["label"])):a.createCommentVNode("",!0)])],4)]))]))}}),xhe="",yA={class:"ao-project__phases"},vA={key:0,class:"ao-project-phase__phases-list-footer"},CA={class:"ao-project-phase__col-phase"},tu=a.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e;a.watch(()=>n.phases,(m,h)=>{$n(m,h)});const r=m=>{o("addMilestone",m)},i=m=>{o("updateMilestone",m)},s=m=>{o("archiveMilestone",m)},l=m=>{o("unarchiveMilestone",m)},c=m=>{o("archivePhase",m)},d=m=>{o("unarchivePhase",m)},u=m=>{if(m.moved){const h=ua(m,n.phases??[]);o("updatePhase",{id:m.moved.element.id,rank:h})}},p=m=>{o("updatePhase",m)},f=m=>{o("addPhase",m)};return(m,h)=>(a.openBlock(),a.createElementBlock("div",yA,[a.createVNode(a.unref(Gn),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:u},{item:a.withCtx(({element:g})=>[a.createVNode(_A,{phase:g,"is-editable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,users:t.users,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,onAddMilestone:r,onUpdateMilestone:i,onArchiveMilestone:s,onUnarchiveMilestone:l,onUpdatePhase:p,onArchivePhase:c,onUnarchivePhase:d},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),t.isEditable?(a.openBlock(),a.createElementBlock("div",vA,[h[0]||(h[0]=a.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),a.createElementVNode("div",CA,[a.createVNode(Yn,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:f},null,8,["label"])]),h[1]||(h[1]=a.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):a.createCommentVNode("",!0)]))}}),Ehe="",wA={class:"ao-add-template-modal__form-body"},kA={class:"field__row"},xA={class:"ao-add-template-modal__form-footer"},xg=a.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>n.templates.map(c=>({value:c.id,label:c.name}))),i=a.ref(null),s=c=>{i.value=c},l=()=>{i.value&&o("apply",i.value,n.projectId)};return(c,d)=>(a.openBlock(),a.createBlock(Ti,{size:"sm"},{header:a.withCtx(()=>[a.createVNode(ot,{title:c.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:a.withCtx(()=>[a.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:a.withModifiers(l,["prevent"])},[a.createElementVNode("p",null,a.toDisplayString(c.$t("project.template.apply.notice")),1),a.createElementVNode("div",wA,[a.createElementVNode("div",kA,[a.createVNode(Et,{value:i.value,options:r.value,detached:!0,onChange:s},null,8,["value","options"])])]),a.createElementVNode("footer",xA,[a.createVNode(he,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}}),She="",EA={class:"ao-save-template-modal__form-body"},SA={class:"field__row"},TA={class:"ao-field ao-field--inline"},AA={class:"ao-field__label"},NA={class:"ao-save-template-modal__phases"},DA={class:"ao-field__label"},BA={class:"ao-save-template-modal__phases-list"},LA=["value"],MA={class:"ao-save-template-modal__form-footer"},Eg=a.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(t,{emit:e}){const n=t,o=e,r=a.ref(""),i=a.ref([]);a.onMounted(()=>{i.value=n.phases.map(l=>l.id)});const s=()=>{r.value&&o("save",r.value,i.value)};return(l,c)=>(a.openBlock(),a.createBlock(Ti,{size:"sm"},{header:a.withCtx(()=>[a.createVNode(ot,{title:l.$t("project.template.save.title"),level:3},null,8,["title"])]),default:a.withCtx(()=>[a.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:a.withModifiers(s,["prevent"])},[a.createElementVNode("div",EA,[a.createElementVNode("div",SA,[a.createElementVNode("label",TA,[a.createElementVNode("span",AA,a.toDisplayString(l.$t("project.template.name.label"))+": ",1),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=d=>r.value=d),type:"text"},null,512),[[a.vModelText,r.value]])])]),a.createElementVNode("div",NA,[a.createElementVNode("div",DA,a.toDisplayString(l.$t("project.template.phases.label")),1),a.createElementVNode("div",BA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.phases,d=>(a.openBlock(),a.createElementBlock("label",{class:"ao-field ao-field--checkbox",key:d.id},[a.withDirectives(a.createElementVNode("input",{type:"checkbox",value:d.id,"onUpdate:modelValue":c[1]||(c[1]=u=>i.value=u)},null,8,LA),[[a.vModelCheckbox,i.value]]),a.createElementVNode("span",null,a.toDisplayString(d.name),1)]))),128))])])]),a.createElementVNode("footer",MA,[a.createVNode(he,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:s},null,8,["label"])])],32)]),_:1}))}}),The="",$A={class:"ao-project"},OA={class:"ao-project__body"},IA=a.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e,i=a.computed(()=>o.phases.flatMap(D=>D.milestones)),s=()=>{const{name:D,rank:K}=er(o.phases,"phase",n);r("addPhase",{name:D,rank:K,projectId:o.project.id})},l=D=>{r("updatePhase",D)},c=D=>{r("archivePhase",D)},d=D=>{r("unarchivePhase",D)},u=D=>{r("copyPhaseToTemplate",D)},p=D=>{r("addMilestone",D)},f=D=>{r("updateMilestone",D)},m=D=>{r("archiveMilestone",D)},h=D=>{r("unarchiveMilestone",D)},g=D=>{r("addActivity",D)},v=D=>{r("update:activity",D)},y=D=>{r("archiveActivity",D)},_=D=>{r("unarchiveActivity",D)},b=D=>{r("addSubtask",D)},k=D=>{r("updateSubtask",D)},w=D=>{r("deleteSubtask",D)},C=a.computed(()=>i.value.flatMap(D=>D.activities)),x=D=>{r("addFiles",D)},S=D=>{r("removeFile",D)},T=D=>{r("addComment",D)},A=D=>{r("updateComment",D)},z=D=>{r("removeComment",D)},O=a.ref(!1),B=a.ref(!1),L=(D,K)=>{r("applyTemplate",{templateId:D,projectId:K}),O.value=!1},I=(D,K)=>{var ce;const F=(ce=o.templates)==null?void 0:ce.at(-1),U=F?rt.LexoRank.parse(F.rank).genNext():rt.LexoRank.middle();r("saveTemplate",{templateName:D,rank:U.format(),phaseIds:K}),B.value=!1},P=ft.useRouter(),G=a.ref("overview"),R=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return a.watch(G,D=>{D==="feed"?(P.push({name:We.feed}),console.log("Navigating to feed...")):D==="overview"?(P.push({name:We.project}),console.log("Navigating to feed...")):D==="mapping"&&(P.push({name:We.mapping}),console.log("Navigating to feed..."))}),(D,K)=>{var U;const F=a.resolveComponent("RouterView");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.mergeProps({class:"ao-project-overview"},D.$attrs),[a.createElementVNode("div",$A,[a.createVNode(pa,null,{primary:a.withCtx(()=>[a.createVNode(ti,{tabs:R,modelValue:G.value,"onUpdate:modelValue":K[0]||(K[0]=ce=>G.value=ce)},null,8,["modelValue"]),a.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:D.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:K[1]||(K[1]=ce=>D.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:a.withCtx(()=>[t.isEditable===!0?(a.openBlock(),a.createBlock(he,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:D.$t("project.template.save.label"),onClick:K[2]||(K[2]=ce=>B.value=!0)},null,8,["label"])):a.createCommentVNode("",!0),t.isEditable===!0?(a.openBlock(),a.createBlock(he,{key:1,class:"ao-project-overview__add-template",color:"primary",label:D.$t("project.template.apply.label"),onClick:K[3]||(K[3]=ce=>O.value=!0)},null,8,["label"])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",OA,[a.createVNode(tu,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(U=t.project)==null?void 0:U.estimationUnit,onAddMilestone:p,onUpdateMilestone:f,onArchiveMilestone:m,onUnarchiveMilestone:h,onAddPhase:s,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:d,onCopyPhaseToTemplate:u},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),a.createVNode(F,{class:"ao-project__sidebar",phases:t.phases,"project-id":t.project.id,"project-name":t.project.name,users:t.users,"is-editable":t.isEditable===!0,"closed-status":t.closedStatus,"time-tracking-data":t.timeTrackingData,onClose:K[4]||(K[4]=ce=>D.$router.push({name:a.unref(We).project})),onUpdateMilestone:f,onAddActivity:g,onUpdateActivity:v,onArchiveActivity:y,onUnarchiveActivity:_},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[a.createVNode(F,{name:"modal",activities:C.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,phases:t.phases,project:t.project,users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,"time-tracking-data":t.timeTrackingData,"onUpdate:activity":v,onAddSubtask:b,onUpdateSubtask:k,onDeleteSubtask:w,onAddFiles:x,onRemoveFile:S,onAddComment:T,onUpdateComment:A,onRemoveComment:z},{default:a.withCtx(({Component:ce})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(ce),null,{default:a.withCtx(ee=>[a.renderSlot(D.$slots,"activityDetailsBody",a.normalizeProps(a.guardReactiveProps(ee)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data"])]))],16),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[B.value?(a.openBlock(),a.createBlock(Eg,{key:0,phases:t.phases,onClose:K[5]||(K[5]=ce=>B.value=!1),onSave:I},null,8,["phases"])):a.createCommentVNode("",!0),O.value?(a.openBlock(),a.createBlock(xg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:K[6]||(K[6]=ce=>O.value=!1),onApply:L},null,8,["project-id","templates"])):a.createCommentVNode("",!0)]))],64)}}}),Ahe="",RA={class:"ao-card-feed__header"},PA={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},VA={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},FA={class:"ao-card-feed__body"},zA={key:0,class:"ao-card-feed__breadcrumbs"},qA={class:a.normalizeClass(["ao-card-feed__title-group"])},jA={class:"ao-card-feed__title-line"},UA={key:0,class:"ao-card-feed__slug"},HA={key:1,class:"ao-card-feed__deadline"},WA={class:"ao-card-feed__footer"},ZA={class:"ao-card-feed__footer-row"},GA={class:"ao-assignees"},KA={key:0,class:"ao-assignee"},YA={key:0,class:"ao-card-feed__subitems"},JA={key:0,class:"ao-card-feed__subitem"},XA={class:"ao-card-feed__subitem"},QA={key:1,class:"ao-card-feed__subitem"},eN={class:"ao-card-feed__subitem"},tN={class:"ao-card-feed__timer-wrapper"},nN={class:"ao-card-feed__footer-row"},oN={key:0,class:"ao-card-feed__progress-wrapper"},rN={class:"ao-card-feed__subitem"},aN={class:"ao-card-feed__subitem"},nu=a.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{type:Boolean},assignee:{},slug:{},comments:{},attachments:{},tasks:{},isEditable:{type:Boolean},isPrivate:{type:Boolean},isClosed:{type:Boolean},tagType:{}},emits:["removeAssignee","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>n.tagType==="milestone"?n.milestoneName:n.projectName),i=a.computed(()=>n.tagType==="milestone"?n.milestoneColor:n.projectColor),s=g=>{o("updateActivity",{id:n.id,name:g})},l=a.computed(()=>n.tagType==="milestone"&&n.phaseName?`${n.phaseName}`:n.phaseName&&n.milestoneName?`${n.phaseName} / ${n.milestoneName}`:""),c=a.computed(()=>n.assignee?[n.assignee]:[]),d=a.computed(()=>Si(n.deadline)),u=g=>{o("removeAssignee",g)},p=()=>{o("startTimer",{activityId:n.id,name:n.name,project:n.projectName,projectId:n.projectId,slug:n.slug})},f=a.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.length}),m=a.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(v=>v.isDone).length}),h=a.computed(()=>(m.value||0)/(f.value||1));return(g,v)=>(a.openBlock(),a.createBlock(el,{class:a.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0},{header:a.withCtx(()=>[a.createElementVNode("div",RA,[r.value?(a.openBlock(),a.createBlock(Xr,{key:0,label:r.value,class:"ao-card-feed__project",variant:"solid",color:t.projectColor?void 0:"primary","raw-color":i.value},null,8,["label","color","raw-color"])):a.createCommentVNode("",!0),t.isPrivate||t.important||t.isClosed?(a.openBlock(),a.createElementBlock("div",PA,[t.isPrivate?(a.openBlock(),a.createBlock(Ee,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):a.createCommentVNode("",!0),t.important?(a.openBlock(),a.createBlock(Ee,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):a.createCommentVNode("",!0),t.isClosed?(a.openBlock(),a.createBlock(Ee,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),g.$slots.secondary?(a.openBlock(),a.createElementBlock("div",VA,[a.renderSlot(g.$slots,"secondary")])):a.createCommentVNode("",!0)])]),default:a.withCtx(()=>[a.createElementVNode("div",FA,[l.value?(a.openBlock(),a.createElementBlock("span",zA,a.toDisplayString(l.value),1)):a.createCommentVNode("",!0),a.createElementVNode("div",qA,[a.createElementVNode("div",jA,[t.slug?(a.openBlock(),a.createElementBlock("span",UA,a.toDisplayString(t.slug)+": ",1)):a.createCommentVNode("",!0),a.createVNode(ot,{id:t.id,title:t.name,level:5,"is-editable":t.isEditable,"onUpdate:title":s,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),t.deadline?(a.openBlock(),a.createElementBlock("span",HA,a.toDisplayString(d.value),1)):a.createCommentVNode("",!0)])]),footer:a.withCtx(()=>[a.createElementVNode("div",WA,[a.createElementVNode("div",ZA,[a.createElementVNode("ul",GA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,y=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:y.id},[y?(a.openBlock(),a.createElementBlock("li",KA,[a.createVNode(An,{"user-name":a.unref(Pu)(y),"avatar-url":y.avatarUrl,"is-closable":!0,onClose:()=>u(y.id)},null,8,["user-name","avatar-url","onClose"])])):a.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(a.openBlock(),a.createElementBlock("ul",YA,[t.comments?(a.openBlock(),a.createElementBlock("li",JA,[a.createVNode(Ee,{name:"ChatOutline",size:"sm"}),a.createElementVNode("span",XA,a.toDisplayString(t.comments),1)])):a.createCommentVNode("",!0),t.attachments?(a.openBlock(),a.createElementBlock("li",QA,[a.createVNode(Ee,{name:"AttachFileRounded",size:"sm"}),a.createElementVNode("span",eN,a.toDisplayString(t.attachments),1)])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",tN,[a.createVNode(Ee,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:a.withModifiers(p,["stop"])})])]),a.createElementVNode("div",nN,[t.tasks&&t.tasks.length?(a.openBlock(),a.createElementBlock("div",oN,[a.createElementVNode("div",rN,[a.createVNode(Ee,{name:"SelectCheckBox",size:"sm"}),a.createElementVNode("span",aN,a.toDisplayString(m.value)+" / "+a.toDisplayString(f.value),1)]),a.createVNode(tl,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):a.createCommentVNode("",!0)])])]),_:3},8,["class"]))}}),Nhe="",iN={class:"ao-project-milestone"},sN={class:"ao-project-milestone__header"},lN={class:"ao-project-milestone__header_line"},cN={class:"ao-project-milestone__header_line"},dN={class:"ao-project-milestone__title"},uN={key:0,class:"ao-fieldset ao-milestone__fieldset"},pN={class:"ao-field__row ao-milestone__field-row"},fN={class:"ao-field ao-field--inline"},mN={class:"ao-field__row ao-milestone__field-row"},hN={class:"ao-field ao-milestone__field-multiselect"},gN=["onClick"],bN={class:"ao-project-milestone__body"},_N={key:0,class:"ao-project-milestone__footer"},Sg=a.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e,i=w=>{var C;r("startTimer",w),(C=window.parent)==null||C.postMessage({type:"startTimer",data:w},"*")},s=a.computed(()=>{var w;return(w=o.phases)==null?void 0:w.find(C=>C.id===o.phaseId)}),l=a.computed(()=>{var w;return(w=o.phases)==null?void 0:w.flatMap(C=>C.milestones)}),c=a.computed(()=>{var w;return(w=l.value)==null?void 0:w.find(C=>C.id===o.milestoneId)}),d=a.computed(()=>{var w;return(w=c.value)==null?void 0:w.activities});a.watch(d,(w,C)=>{$n(w,C)});const u=w=>{r("close",w)},p=()=>{const{name:w,rank:C}=er(d.value??[],"activity",n);r("addActivity",{milestoneId:o.milestoneId,name:w,rank:C,projectId:o.projectId})},f=w=>{r("updateActivity",w)},m=w=>{d.value&&"moved"in w&&r("updateActivity",{id:w.moved.element.id,rank:cr(d.value,w.moved.newIndex)})},h=a.computed({get:()=>{var w;return(w=c.value)==null?void 0:w.color},set:w=>{c.value&&r("updateMilestone",{id:c.value.id,color:w})}}),g=a.computed({get:()=>{var w;return((w=c==null?void 0:c.value)==null?void 0:w.deadline)??""},set:w=>{c.value&&r("updateMilestone",{id:c.value.id,deadline:w!=null&&w.length?w:null})}}),v=w=>o.closedStatus?_l(w,o.closedStatus):!1,y=a.computed(()=>{var w;return((w=o.users)==null?void 0:w.map(C=>({label:`${C.firstName} ${C.lastName}`,value:C.id,avatar:C.avatarUrl})))||[]}),_=a.computed({get(){var w,C;return(C=(w=c.value)==null?void 0:w.assignee)!=null&&C.id?[c.value.assignee.id]:[]},set(w){r("updateMilestone",{id:o.milestoneId,assigneeId:w[0]??null})}}),b=a.computed({get(){var w;return((w=c.value)==null?void 0:w.important)??!1},set(w){r("updateMilestone",{id:o.milestoneId,important:w})}}),k=(w,C)=>{const x=w.currentTarget;x instanceof HTMLElement&&C(x)};return(w,C)=>{var x;return a.openBlock(),a.createElementBlock("div",iN,[a.createElementVNode("header",sN,[a.createElementVNode("div",lN,[a.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:u})]),a.createElementVNode("div",cN,[a.createElementVNode("div",dN,[a.createVNode(ot,{title:((x=c.value)==null?void 0:x.name)||t.milestoneId,level:5},null,8,["title"]),a.createVNode(Cg,{modelValue:b.value,"onUpdate:modelValue":C[0]||(C[0]=S=>b.value=S),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:w.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(a.openBlock(),a.createElementBlock("div",uN,[a.createElementVNode("div",pN,[a.createElementVNode("label",fN,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":C[1]||(C[1]=S=>g.value=S),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[a.vModelText,g.value,void 0,{lazy:!0}]])])]),a.createElementVNode("div",mN,[a.createElementVNode("label",hN,[a.createVNode(Et,{modelValue:_.value,"onUpdate:modelValue":C[2]||(C[2]=S=>_.value=S),options:y.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:w.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:a.withCtx(({option:S,handleTagRemove:T})=>[a.createVNode(An,{"user-name":S.label,"avatar-url":S.avatar,"is-closable":!0,onClose:A=>T(S,A)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),a.createVNode(nl,{color:h.value,"onUpdate:color":C[3]||(C[3]=S=>h.value=S)},{clickable:a.withCtx(({openPicker:S,bgColor:T})=>[a.createElementVNode("button",{style:a.normalizeStyle({background:T}),class:"color-button",onClick:A=>k(A,S)},null,12,gN)]),_:1},8,["color"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",bN,[a.createVNode(a.unref(Gn),a.mergeProps({class:"ao-project-milestone__activities",list:d.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},w.$attrs,{onChange:m}),{item:a.withCtx(({element:S})=>{var T,A,z,O,B;return[a.createVNode(nu,{id:S.id,name:S.name||S.id,"project-id":t.projectId,"phase-name":(T=s.value)==null?void 0:T.name,"milestone-name":(A=c.value)==null?void 0:A.name,"milestone-color":(z=c.value)==null?void 0:z.color,deadline:S.deadline,important:S.important,users:t.users,assignee:S.assignee,slug:S.slug,comments:(O=S.comments)==null?void 0:O.length,attachments:(B=S.attachments)==null?void 0:B.length,tasks:S.tasks,"is-editable":t.isEditable,"is-private":S.private,"is-closed":v(S),onClick:L=>w.$router.push({name:a.unref(We).activity,params:{milestoneId:t.milestoneId,activityId:S.id}}),onUpdateActivity:f,onRemoveAssignee:()=>f({id:S.id,assigneeId:null}),onStartTimer:i},a.createSlots({_:2},[t.isEditable?{name:"secondary",fn:a.withCtx(()=>[t.isEditable&&S.active?(a.openBlock(),a.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:w.$t("archive"),onClick:a.withModifiers(()=>w.$emit("archiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0),t.isEditable&&!S.active?(a.openBlock(),a.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:w.$t("feed.activity.unarchive"),onClick:a.withModifiers(()=>w.$emit("unarchiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(a.openBlock(),a.createElementBlock("div",_N,[a.createVNode(Yn,{"icon-name":"Add",label:w.$t("project.activity.add"),onClick:p},null,8,["label"])])):a.createCommentVNode("",!0)])])}}}),Dhe="",yN=a.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>{var y;return(y=n.phases)==null?void 0:y.find(_=>_.id===n.phaseId)}),i=a.computed(()=>{var y;return(y=n.phases)==null?void 0:y.flatMap(_=>_.milestones)}),s=a.computed(()=>{var y;return(y=i.value)==null?void 0:y.find(_=>_.id===n.milestoneId)}),l=a.computed(()=>{var y;return(y=n.activities)==null?void 0:y.find(_=>_.id===n.activityId)}),c=y=>{o("update:activity",y)},d=y=>{o("addSubtask",y)},u=y=>{o("updateSubtask",y)},p=y=>{o("deleteSubtask",y)},f=y=>{o("addFiles",y)},m=y=>{o("removeFile",y)},h=y=>{o("addComment",y)},g=y=>{o("updateComment",y)},v=y=>{o("removeComment",y)};return(y,_)=>{var b,k;return l.value?(a.openBlock(),a.createBlock(Hd,{key:0,activity:l.value,"activity-types":t.activityTypes,"milestone-id":t.milestoneId,"template-activities":t.activities,"is-template":!1,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:`${(b=r.value)==null?void 0:b.name} / ${(k=s.value)==null?void 0:k.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,onClose:y.$router.back,"onUpdate:activity":c,onAddSubtask:d,onUpdateSubtask:u,onDeleteSubtask:p,onAddFiles:f,onRemoveFile:m,onAddComment:h,onUpdateComment:g,onRemoveComment:v},{default:a.withCtx(w=>[a.renderSlot(y.$slots,"default",a.normalizeProps(a.guardReactiveProps(w)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","onClose"])):a.createCommentVNode("",!0)}}}),vN={class:"ao-col-header"},CN=a.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("header",vN,[a.createVNode(ot,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(a.openBlock(),a.createBlock(Xr,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):a.createCommentVNode("",!0)]))}}),Bhe="";function wN(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function ol(t){return typeof t=="function"?t():a.unref(t)}const kN=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xN=t=>t!=null,ni=()=>{};function EN(t,e){function n(...o){return new Promise((r,i)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(r).catch(i)})}return n}function SN(t,e={}){let n,o,r=ni;const i=l=>{clearTimeout(l),r(),r=ni};return l=>{const c=ol(t),d=ol(e.maxWait);return n&&i(n),c<=0||d!==void 0&&d<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,p)=>{r=e.rejectOnCancel?p:u,d&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},d)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},c)})}}function TN(t,e=200,n={}){return EN(SN(e,n),t)}function ou(t){var e;const n=ol(t);return(e=n==null?void 0:n.$el)!=null?e:n}const AN=kN?window:void 0;function NN(){const t=a.ref(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function DN(t){const e=NN();return a.computed(()=>(e.value,!!t()))}function BN(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=AN,immediate:l=!0}=n,c=DN(()=>s&&"IntersectionObserver"in s),d=a.computed(()=>{const h=ol(t);return(Array.isArray(h)?h:[h]).map(ou).filter(xN)});let u=ni;const p=a.ref(l),f=c.value?a.watch(()=>[d.value,ou(o),p.value],([h,g])=>{if(u(),!p.value||!h.length)return;const v=new IntersectionObserver(e,{root:ou(g),rootMargin:r,threshold:i});h.forEach(y=>y&&v.observe(y)),u=()=>{v.disconnect(),u=ni}},{immediate:l,flush:"post"}):ni,m=()=>{u(),f(),p.value=!1};return wN(m),{isSupported:c,isActive:p,pause(){u(),p.value=!1},resume(){p.value=!0},stop:m}}const LN={class:a.normalizeClass(["ao-list-kanban"])},MN={class:"ao-list-kanban__header"},$N={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},ON={key:1,class:"ao-list-kanban__end"},IN={key:0,class:"ao-list-kanban__no-more"},RN={key:1,class:"ao-list-kanban__divider"},PN={key:1,class:"ao-list-kanban__footer"},VN=a.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{}},emits:["add","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,r=a.ref(!1),i=a.ref(null);BN(i,([{isIntersecting:p}])=>{r.value=p}),a.watch(r,p=>{p&&n.hasMore&&!n.isLoading&&o("loadMore")});const s=p=>{var f;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((f=p.assignee)==null?void 0:f.id):!1},l=p=>{o("selectActivity",p)},c=p=>{o("updateActivity",p)},d=p=>{"added"in p?o("updateActivity",{id:p.added.element.id,statusId:n.status.id,rank:cr(n.list,p.added.newIndex)}):"removed"in p||"moved"in p&&o("updateActivity",{id:p.moved.element.id,rank:cr(n.list,p.moved.newIndex)})},u=a.ref(!1);return(p,f)=>(a.openBlock(),a.createElementBlock("div",LN,[t.title||p.$slots.header?a.renderSlot(p.$slots,"header",{},()=>{var m;return[a.createElementVNode("div",MN,[t.title?(a.openBlock(),a.createBlock(CN,{key:0,title:t.title,level:3,items:(m=t.list)==null?void 0:m.length},null,8,["title","items"])):a.createCommentVNode("",!0)])]},void 0,0):a.createCommentVNode("",!0),a.createVNode(a.unref(Gn),a.mergeProps({class:["ao-list-kanban__list",u.value?"ao-list-kanban__transition":void 0],list:t.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},p.$attrs,{draggable:".ao-list-draggable",disabled:!t.isEditable,onChange:d,onStart:f[1]||(f[1]=m=>u.value=!0),onEnd:f[2]||(f[2]=m=>u.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:a.withCtx(({element:m})=>{var h,g,v,y,_,b,k,w,C,x;return[a.createVNode(nu,{class:a.normalizeClass(s(m)?"ao-list-draggable":""),id:m.id,name:m.name,"project-name":(h=m.project)==null?void 0:h.name,"project-id":(g=m.project)==null?void 0:g.id,"project-color":(v=m.project)==null?void 0:v.color,"phase-name":(_=(y=m.milestone)==null?void 0:y.phase)==null?void 0:_.name,"milestone-name":(b=m.milestone)==null?void 0:b.name,"milestone-color":(k=m.milestone)==null?void 0:k.color,deadline:m.deadline,rules:((w=m.rules)==null?void 0:w.length)||0,tasks:m.tasks,description:m.description,important:m.important,type:m.type,comments:(C=m.comments)==null?void 0:C.length,attachments:(x=m.attachments)==null?void 0:x.length,users:t.users,assignee:m.assignee,slug:m.slug,"is-editable":s(m),"is-private":m.private,"tag-type":t.tagType,onUpdateActivity:[S=>s(m)&&c(S),()=>s(m)&&c],onClick:()=>l(m.id),onRemoveAssignee:()=>s(m)&&c({id:m.id,assigneeId:null}),onStartTimer:f[0]||(f[0]=S=>p.$emit("startTimer",S))},{secondary:a.withCtx(()=>[s(m)&&m.active?(a.openBlock(),a.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.$t("feed.activity.archive"),onClick:a.withModifiers(()=>p.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0),s(m)&&!m.active?(a.openBlock(),a.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.$t("feed.activity.unarchive"),onClick:a.withModifiers(()=>p.$emit("unarchiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0)]),_:2},1032,["class","id","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:a.withCtx(()=>[t.isLoading?(a.openBlock(),a.createElementBlock("div",$N,[a.createVNode(Ee,{name:"Loading"})])):t.hasMore?(a.openBlock(),a.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:i,class:"ao-list-kanban__end"},null,512)):(a.openBlock(),a.createElementBlock("div",ON,[t.noMoreLabel?(a.openBlock(),a.createElementBlock("span",IN,a.toDisplayString(t.noMoreLabel),1)):t.isEditable?(a.openBlock(),a.createElementBlock("span",RN)):a.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),p.$slots.footer||t.footerLabel?(a.openBlock(),a.createElementBlock("div",PN,[a.renderSlot(p.$slots,"footer",{},()=>[t.isEditable?(a.openBlock(),a.createBlock(Yn,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:f[3]||(f[3]=m=>p.$emit("add"))},null,8,["label"])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)]))}}),Lhe="",FN={class:"ao-field ao-search-field"},zN=["value","placeholder"],qN=a.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(t,{emit:e}){const n=t,o=e,r=async l=>{const d=l.target.value;o("update:modelValue",d,l)},i=TN(r,n.delay),s=l=>{o("clear",l)};return(l,c)=>(a.openBlock(),a.createElementBlock("div",FN,[a.createElementVNode("input",{value:t.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:t.placeholder,onInput:c[0]||(c[0]=(...d)=>a.unref(i)&&a.unref(i)(...d)),onKeypress:a.withKeys(r,["enter"])},null,40,zN),a.createVNode(Ee,{name:"SearchRounded",class:a.normalizeClass(`ao-search-field__icon ao-search-field__action ${t.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),a.createVNode(he,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:a.normalizeClass(`ao-search-field__button ao-search-field__action ${t.modelValue?"ao-search-field__action--visible":""}`),onClick:s},null,8,["class"])]))}}),Mhe="",jN={class:"ao-feed"},UN={class:"ao-feed__filters"},HN={class:"ao-feed__body"},Tg=a.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},project:{},projects:{},filters:{},activityTypes:{},users:{},userId:{},initialActivityId:{},initialActivitySlug:{},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e;function i(F,U){r("toast",F,U)}const s=a.toRef(o,"activities"),l=async(F,U)=>{await r("selectActivity",F,U)},c=a.ref({}),d=a.ref(!1),u=a.ref(!1),p=a.computed(()=>o.project?"milestone":"project");a.watch([()=>o.statuses,()=>o.activities,()=>o.initialActivityId,()=>o.initialActivitySlug],async([F,U,ce,ee],[ae,q])=>{c.value=Object.fromEntries(F.map(ne=>[ne.id,U.filter($=>{var Y;return((Y=$.status)==null?void 0:Y.id)===ne.id})])),ce&&!d.value?(l(ce,null),d.value=!0):ee&&!d.value&&(l(null,ee),d.value=!0),u.value&&$n(U,q)},{immediate:!0});const f=a.computed(()=>{var F;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((F=o.selectedActivity.milestone.phase)==null?void 0:F.name)??""} / ${o.selectedActivity.milestone.name??""}`}),m=F=>{var q,ne;const U=(q=o.activities)==null?void 0:q.at(-1),ce=U?rt.LexoRank.parse(U.rank).genNext():rt.LexoRank.middle(),ee=((ne=o.activities)==null?void 0:ne.length)??0,ae={name:n("activity.defaultName",{idx:ee+1}),rank:ce.format(),statusId:F.id};o.filters.assigneeId.length>0&&(ae.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(ae.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(ae.typeId=o.filters.typeId[0]),u.value=!0,r("addActivity",ae)},h=(F,U)=>{u.value=!1,r("update:filters",{...o.filters,[F]:U})},g=a.computed(()=>o.project?[o.project]:o.projects??[]),v=a.computed(()=>g.value.map(F=>({value:F.id,label:F.name}))),y=a.computed(()=>{var F;return(F=o.activityTypes)==null?void 0:F.map(U=>({value:U.id,label:U.name}))}),_=a.computed(()=>o.users.map(F=>({value:F.id,label:`${F.firstName} ${F.lastName}`,avatar:F.avatarUrl}))),b=F=>{o.selectedActivity&&r("update:activity",F)},k=F=>{r("update:activity",F)},w=F=>{r("archiveActivity",F)},C=F=>{r("unarchiveActivity",F)},x=F=>{var U;r("startTimer",F),(U=window.parent)==null||U.postMessage({type:"startTimer",data:F},"*")},S=F=>{u.value=!1,r("update:searchText",F)},T=F=>{u.value=!1,r("clear:searchText",F)},A=F=>{o.selectedActivity&&r("addSubtask",F)},z=F=>{o.selectedActivity&&r("updateSubtask",F)},O=F=>{o.selectedActivity&&r("deleteSubtask",F)},B=F=>{r("addFiles",F)},L=F=>{r("removeFile",F)},I=F=>{o.selectedActivity&&r("addComment",{...F,activityId:o.selectedActivity.id})},P=F=>{const{id:U}=o.selectedActivity||{};U&&r("updateComment",F)},G=F=>{const{id:U}=o.selectedActivity||{};U&&r("removeComment",F)},R=ft.useRouter(),D=a.ref("feed"),K=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return a.watch(D,F=>{F==="feed"?(R.push({name:We.feed}),console.log("Navigating to feed...")):F==="overview"?(R.push({name:We.project}),console.log("Navigating to feed...")):F==="mapping"&&(R.push({name:We.mapping}),console.log("Navigating to feed..."))}),(F,U)=>{var ce;return a.openBlock(),a.createElementBlock("div",jN,[a.createVNode(pa,null,{primary:a.withCtx(()=>[a.createElementVNode("div",UN,[a.createVNode(ti,{tabs:K,modelValue:D.value,"onUpdate:modelValue":U[0]||(U[0]=ee=>D.value=ee)},null,8,["modelValue"]),a.createVNode(qN,{"model-value":t.searchText,placeholder:F.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":S,onClear:T},null,8,["model-value","placeholder"]),o.project?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Et,{key:0,"model-value":t.filters[a.unref(ko).project],mode:"tags",options:v.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:F.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":U[1]||(U[1]=ee=>h(a.unref(ko).project,ee))},null,8,["model-value","options","placeholder"])),y.value?(a.openBlock(),a.createBlock(Et,{key:1,"model-value":t.filters[a.unref(ko).type],mode:"tags",options:y.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:F.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":U[2]||(U[2]=ee=>h(a.unref(ko).type,ee))},null,8,["model-value","options","placeholder"])):a.createCommentVNode("",!0),_.value.length?(a.openBlock(),a.createBlock(Et,{key:2,"model-value":t.filters[a.unref(ko).assignee],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:F.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":U[3]||(U[3]=ee=>h(a.unref(ko).assignee,ee))},{tag:a.withCtx(({option:ee,handleTagRemove:ae})=>[a.createVNode(An,{"user-name":ee.label,"avatar-url":ee.avatar,"is-closable":!0,onClose:q=>ae(ee,q)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):a.createCommentVNode("",!0)]),a.createVNode(he,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:U[4]||(U[4]=ee=>F.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),a.createVNode(he,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:U[5]||(U[5]=ee=>F.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),a.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:U[6]||(U[6]=ee=>F.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),a.createElementVNode("div",HN,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.statuses,ee=>(a.openBlock(),a.createBlock(VN,{key:ee.id,status:ee,list:c.value[ee.id],title:ee.name,"footer-label":F.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,tagType:p.value,onAdd:()=>m(ee),onSelectActivity:l,onArchiveActivity:w,onUnarchiveActivity:C,onUpdateActivity:k,onStartTimer:x},null,8,["status","list","title","footer-label","users","user-id","is-editable","tagType","onAdd"]))),128))]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[t.selectedActivity?(a.openBlock(),a.createBlock(Hd,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"milestone-id":(ce=t.selectedActivity.milestone)==null?void 0:ce.id,"template-activities":s.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:f.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:g.value,"time-tracking-data":t.timeTrackingData,onClose:U[7]||(U[7]=()=>l(null,null)),"onUpdate:activity":b,onAddSubtask:A,onUpdateSubtask:z,onDeleteSubtask:O,onAddFiles:B,onRemoveFile:L,onAddComment:I,onUpdateComment:P,onRemoveComment:G,onToast:i},{default:a.withCtx(ee=>[a.renderSlot(F.$slots,"activityDetailsBody",a.normalizeProps(a.guardReactiveProps(ee)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data"])):a.createCommentVNode("",!0)]))])}}}),$he="",WN={class:"ao-project-mapping"},ZN={class:"ao-project-mapping-mapping__body"},GN={class:"ao-project-mapping-mapping__phases"},KN={key:0,class:"ao-project-mapping-mapping__image-wrapper"},YN=["src","alt"],JN=a.defineComponent({__name:"AoMapping",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","copyPhaseToTemplate","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e,i=()=>{const{name:y,rank:_}=er(o.phases,"phase",n);r("addPhase",{name:y,rank:_,projectId:o.project.id})},s=y=>{r("updatePhase",y)},l=y=>{r("archivePhase",y)},c=y=>{r("unarchivePhase",y)},d=y=>{r("copyPhaseToTemplate",y)},u=a.ref(!1),p=a.ref(!1),f=(y,_)=>{r("applyTemplate",{templateId:y,projectId:_}),u.value=!1},m=(y,_)=>{var w;const b=(w=o.templates)==null?void 0:w.at(-1),k=b?rt.LexoRank.parse(b.rank).genNext():rt.LexoRank.middle();r("saveTemplate",{templateName:y,rank:k.format(),phaseIds:_}),p.value=!1},h=ft.useRouter(),g=a.ref("mapping"),v=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return a.watch(g,y=>{y==="feed"?(h.push({name:We.feed}),console.log("Navigating to feed...")):y==="overview"?(h.push({name:We.project}),console.log("Navigating to feed...")):y==="mapping"&&(h.push({name:We.mapping}),console.log("Navigating to feed..."))}),(y,_)=>{var b;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.mergeProps({class:"ao-project-mapping-overview"},y.$attrs),[a.createElementVNode("div",WN,[a.createVNode(pa,null,{primary:a.withCtx(()=>[a.createVNode(ti,{modelValue:g.value,"onUpdate:modelValue":_[0]||(_[0]=k=>g.value=k),tabs:v},null,8,["modelValue"]),a.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:y.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:_[1]||(_[1]=k=>y.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:a.withCtx(()=>[t.isEditable===!0?(a.openBlock(),a.createBlock(he,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:y.$t("project.template.save.label"),onClick:_[2]||(_[2]=k=>p.value=!0)},null,8,["label"])):a.createCommentVNode("",!0),t.isEditable===!0?(a.openBlock(),a.createBlock(he,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:y.$t("project.template.apply.label"),onClick:_[3]||(_[3]=k=>u.value=!0)},null,8,["label"])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",ZN,[a.createElementVNode("div",GN,[a.createVNode(tu,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(b=t.project)==null?void 0:b.estimationUnit,onAddPhase:i,onUpdatePhase:s,onArchivePhase:l,onUnarchivePhase:c,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(a.openBlock(),a.createElementBlock("div",KN,[a.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:a.unref(n)("architectureImage.alt")},null,8,YN)])):a.createCommentVNode("",!0)])])],16),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[p.value?(a.openBlock(),a.createBlock(Eg,{key:0,phases:t.phases,onClose:_[4]||(_[4]=k=>p.value=!1),onSave:m},null,8,["phases"])):a.createCommentVNode("",!0),u.value?(a.openBlock(),a.createBlock(xg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:_[5]||(_[5]=k=>u.value=!1),onApply:f},null,8,["project-id","templates"])):a.createCommentVNode("",!0)]))],64)}}}),Ohe="",nr={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},XN=(t,e={})=>[{path:t,name:nr.TEMPLATES,redirect:{name:nr.TEMPLATES_LIST},...e,children:[{path:"",name:nr.TEMPLATES_LIST,component:Ag},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:nr.TEMPLATE_DETAILS,component:wg,props:!0}]}],We={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},QN=(t,e={})=>[{path:t,...e,redirect:{name:We.project},children:[{path:"",name:We.project,component:IA,props:!0,children:[{path:":phaseId/:milestoneId",name:We.milestone,component:Sg,props:!0},{path:":phaseId/:milestoneId/:activityId",name:We.activity,props:{default:!0,modal:!0},components:{default:Sg,modal:yN}}]},{path:"feed",name:We.feed,component:Tg,props:!0},{path:"mapping",name:We.mapping,component:JN,props:!0}]}],eD={class:"ao-templates"},Ag=a.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e;a.watch(()=>o.templates,(d,u)=>{$n(d,u)});const i=()=>{var m,h;const d=(m=o.templates)==null?void 0:m.at(-1),u=d?rt.LexoRank.parse(d.rank).genNext():rt.LexoRank.middle(),p=((h=o.templates)==null?void 0:h.length)??0,f={name:n("template.defaultName.template",{idx:p+1}),rank:u.format()};r("addTemplate",f)},s=(d,u)=>{r("updateItem",{itemType:Le.TEMPLATES,id:d,templateId:d,data:{name:u}})},l=(d,u)=>{r("removeItem",{itemType:Le.TEMPLATES,templateId:d,data:{id:d,...u?{name:u}:{}}})},c=d=>{if(d.moved){const u=ua(d,o.templates??[]);r("updateItem",{itemType:Le.TEMPLATES,id:d.moved.element.id,templateId:d.moved.element.id,data:{rank:u}})}};return(d,u)=>(a.openBlock(),a.createElementBlock("div",eD,[a.createVNode(pa,null,{secondary:a.withCtx(()=>[a.createVNode(he,{label:d.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:i},null,8,["label"])]),_:1}),a.createVNode(a.unref(Gn),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:a.withCtx(({element:p})=>{var f;return[a.createVNode(S5,{id:p.id,title:p.name,phases:p.phases,milestones:(f=p.phases)!=null&&f.length?a.unref(Yv)(p.phases):0,activities:p.phases?a.unref(Jv)(p.phases):0,"updated-at":p.updatedAt,"updated-by":p.updatedBy,onUpdateTitle:m=>s(p.id,m),onClick:m=>d.$router.push({name:a.unref(nr).TEMPLATE_DETAILS,params:{templateId:p.id}}),onDeleteItem:u[0]||(u[0]=(m,h)=>l(m,h))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}}),Ihe="",tD={class:"ao-field__label"},Ng=a.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("label",{class:a.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[a.createElementVNode("span",tD,a.toDisplayString(t.label),1),a.renderSlot(e.$slots,"default")],2))}}),nD=["type","value","disabled","readonly"],oD=a.defineComponent({__name:"AoInputField",props:{label:{default:""},type:{default:"text"},modelValue:{default:""},modelModifiers:{default:()=>({})},isDisabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>n.modelModifiers.lazy?"change":"input"),i=s=>{n.modelModifiers.number&&(s=Number(s)),o("update:modelValue",s)};return(s,l)=>(a.openBlock(),a.createBlock(Ng,{label:t.label},{default:a.withCtx(()=>[a.createElementVNode("input",a.mergeProps({class:"ao-field__input",type:t.type,value:t.modelValue,disabled:t.isDisabled,readonly:t.isReadonly},{[a.toHandlerKey(r.value)]:l[0]||(l[0]=c=>i(c.target.value))}),null,16,nD)]),_:1},8,["label"]))}}),rD={class:"ao-field"},aD={class:"ao-field__label"},iD=["checked","disabled"],sD=a.defineComponent({__name:"AoCheckboxField",props:{label:{default:""},modelValue:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("label",rD,[a.createElementVNode("span",aD,a.toDisplayString(t.label),1),a.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:n[0]||(n[0]=o=>{var r;return e.$emit("update:modelValue",((r=o.target)==null?void 0:r.checked)??!1)})},null,40,iD)]))}});fe.AoAvatar=An,fe.AoCardFeed=nu,fe.AoCheckboxField=sD,fe.AoColorPicker=nl,fe.AoFeed=Tg,fe.AoField=Ng,fe.AoInputField=oD,fe.AoMultiselect=Et,fe.AoProjectPhases=tu,fe.AoTabBar=ti,fe.AoTemplateDetails=wg,fe.AoTemplates=qg,fe.AoTemplatesList=Ag,fe.EstimationUnit=hu,fe.TemplateItemTypeEnum=mu,fe.activityFeedStatus=dy,fe.durationTypes=cy,fe.feedFilterTypes=ko,fe.getProjectOverviewRoutes=QN,fe.getTemplateRoutes=XN,fe.listUpdateTypes=uy,fe.milestoneStatus=Qr,fe.projectOverviewRoutes=We,fe.ruleComparators=uu,fe.ruleDurationUnits=fu,fe.ruleTriggerTypes=pu,fe.templateItemType=Le,fe.templateRouteNames=nr,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});
59
+ */function tr(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=lT(t):/rgb/.test(t)?e=kg(t):typeof t=="string"?e=kg(`rgba(${t})`):Object.prototype.toString.call(t)==="[object Object]"&&(e=t);const{r:n,g:o,b:r,a:i}=e,{h:s,s:l,v:c}=cT(e);return{r:n,g:o,b:r,a:i===void 0?1:i,h:s,s:l,v:c}}function Wd(t){const e=document.createElement("canvas"),n=e.getContext("2d"),o=t*2;return e.width=o,e.height=o,n.fillStyle="#ffffff",n.fillRect(0,0,o,o),n.fillStyle="#ccd5db",n.fillRect(0,0,t,t),n.fillRect(t,t,t,t),e}function Zd(t,e,n,o,r,i){const s=t==="l",l=e.createLinearGradient(0,0,s?n:0,s?0:o);l.addColorStop(.01,r),l.addColorStop(.99,i),e.fillStyle=l,e.fillRect(0,0,n,o)}function sT({r:t,g:e,b:n},o){const r=s=>("0"+Number(s).toString(16)).slice(-2),i=`#${r(t)}${r(e)}${r(n)}`;return o?i.toUpperCase():i}function lT(t){t=t.slice(1);const e=n=>parseInt(n,16)||0;return{r:e(t.slice(0,2)),g:e(t.slice(2,4)),b:e(t.slice(4,6))}}function kg(t){return typeof t=="string"?(t=(/rgba?\((.*?)\)/.exec(t)||["","0,0,0,1"])[1].split(","),{r:Number(t[0])||0,g:Number(t[1])||0,b:Number(t[2])||0,a:Number(t[3]?t[3]:1)}):t}function cT({r:t,g:e,b:n}){t=t/255,e=e/255,n=n/255;const o=Math.max(t,e,n),r=Math.min(t,e,n),i=o-r;let s=0;o===r?s=0:o===t?e>=n?s=60*(e-n)/i:s=60*(e-n)/i+360:o===e?s=60*(n-t)/i+120:o===n&&(s=60*(t-e)/i+240),s=Math.floor(s);let l=parseFloat((o===0?0:1-r/o).toFixed(2)),c=parseFloat(o.toFixed(2));return{h:s,s:l,v:c}}var Gd=a.defineComponent({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasSaturation,e=this.size,n=t.getContext("2d");t.width=e,t.height=e,n.fillStyle=this.color,n.fillRect(0,0,e,e),Zd("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Zd("p",n,e,e,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(t){const{top:e,left:n}=this.$el.getBoundingClientRect(),o=t.target.getContext("2d"),r=s=>{let l=s.clientX-n,c=s.clientY-e;l<0&&(l=0),c<0&&(c=0),l>this.size&&(l=this.size),c>this.size&&(c=this.size),this.slideSaturationStyle={left:l-5+"px",top:c-5+"px"};const d=o.getImageData(Math.min(l,this.size-1),Math.min(c,this.size-1),1,1),[u,p,f]=d.data;this.$emit("selectSaturation",{r:u,g:p,b:f})};r(t);const i=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",i)}}});const dT={ref:"canvasSaturation"};function uT(t,e,n,o,r,i){return a.openBlock(),a.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=a.withModifiers((...s)=>t.selectSaturation&&t.selectSaturation(...s),["prevent","stop"]))},[a.createVNode("canvas",dT,null,512),a.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}Gd.render=uT,Gd.__file="src/color/Saturation.vue";var Kd=a.defineComponent({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasHue,e=this.width,n=this.height,o=t.getContext("2d");t.width=e,t.height=n;const r=o.createLinearGradient(0,0,0,n);r.addColorStop(0,"#FF0000"),r.addColorStop(.17*1,"#FF00FF"),r.addColorStop(.17*2,"#0000FF"),r.addColorStop(.17*3,"#00FFFF"),r.addColorStop(.17*4,"#00FF00"),r.addColorStop(.17*5,"#FFFF00"),r.addColorStop(1,"#FF0000"),o.fillStyle=r,o.fillRect(0,0,e,n)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(t){const{top:e}=this.$el.getBoundingClientRect(),n=t.target.getContext("2d"),o=i=>{let s=i.clientY-e;s<0&&(s=0),s>this.height&&(s=this.height),this.slideHueStyle={top:s-2+"px"};const l=n.getImageData(0,Math.min(s,this.height-1),1,1),[c,d,u]=l.data;this.$emit("selectHue",{r:c,g:d,b:u})};o(t);const r=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)}}});const pT={ref:"canvasHue"};function fT(t,e,n,o,r,i){return a.openBlock(),a.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=a.withModifiers((...s)=>t.selectHue&&t.selectHue(...s),["prevent","stop"]))},[a.createVNode("canvas",pT,null,512),a.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}Kd.render=fT,Kd.__file="src/color/Hue.vue";var Yd=a.defineComponent({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasAlpha,e=this.width,n=this.height,o=this.alphaSize,r=Wd(o),i=t.getContext("2d");t.width=e,t.height=n,i.fillStyle=i.createPattern(r,"repeat"),i.fillRect(0,0,e,n),Zd("p",i,e,n,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(t){const{top:e}=this.$el.getBoundingClientRect(),n=r=>{let i=r.clientY-e;i<0&&(i=0),i>this.height&&(i=this.height);let s=parseFloat((i/this.height).toFixed(2));this.$emit("selectAlpha",s)};n(t);const o=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)}}});const mT={ref:"canvasAlpha"};function hT(t,e,n,o,r,i){return a.openBlock(),a.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=a.withModifiers((...s)=>t.selectAlpha&&t.selectAlpha(...s),["prevent","stop"]))},[a.createVNode("canvas",mT,null,512),a.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}Yd.render=hT,Yd.__file="src/color/Alpha.vue";var Jd=a.defineComponent({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const t=this.$el,e=this.width,n=this.height,o=this.alphaSize,r=Wd(o),i=t.getContext("2d");t.width=e,t.height=n,i.fillStyle=i.createPattern(r,"repeat"),i.fillRect(0,0,e,n),i.fillStyle=this.color,i.fillRect(0,0,e,n)}}});function gT(t,e,n,o,r,i){return a.openBlock(),a.createBlock("canvas")}Jd.render=gT,Jd.__file="src/color/Preview.vue";var Xd=a.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(t){this.isSucking=!1,this.suckColor(t)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(t){t.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(t){const{clientX:e,clientY:n}=t,{top:o,left:r,width:i,height:s}=this.suckerCanvas.getBoundingClientRect(),l=e-r,c=n-o,u=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,i-1),Math.min(c,s-1),1,1);let[p,f,m,h]=u.data;h=parseFloat((h/255).toFixed(2));const g=this.suckerPreview.style;Object.assign(g,{position:"absolute",left:e+20+"px",top:n-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${p}, ${f}, ${m}, ${h})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&n>=this.suckerArea[1]&&e<=this.suckerArea[2]&&n<=this.suckerArea[3]?g.display="":g.display="none"},suckColor(t){t&&t.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),t.addEventListener("click",e=>{const{clientX:n,clientY:o}=e,{top:r,left:i,width:s,height:l}=t.getBoundingClientRect(),c=n-i,d=o-r,p=t.getContext("2d").getImageData(Math.min(c,s-1),Math.min(d,l-1),1,1);let[f,m,h,g]=p.data;g=parseFloat((g/255).toFixed(2)),this.$emit("selectSucker",{r:f,g:m,b:h,a:g})}))}}});const bT=a.createVNode("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),yT={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},_T=a.createVNode("g",{fill:"none","fill-rule":"evenodd"},[a.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[a.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),a.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[a.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function vT(t,e,n,o,r,i){return a.openBlock(),a.createBlock("div",null,[t.isSucking?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock("svg",{key:0,class:[{active:t.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:e[1]||(e[1]=(...s)=>t.openSucker&&t.openSucker(...s))},[bT],2)),t.isSucking?(a.openBlock(),a.createBlock("svg",yT,[_T])):a.createCommentVNode("v-if",!0)])}Xd.render=vT,Xd.__file="src/color/Sucker.vue";var Qd=a.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(t,{emit:e}){return{modelColor:a.computed({get(){return t.color||""},set(i){e("inputColor",i)}}),handleFocus:i=>{e("inputFocus",i)},handleBlur:i=>{e("inputBlur",i)}}}});const CT={class:"color-type"},wT={class:"name"};function kT(t,e,n,o,r,i){return a.openBlock(),a.createBlock("div",CT,[a.createVNode("span",wT,a.toDisplayString(t.name),1),a.withDirectives(a.createVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>t.modelColor=s),class:"value",onFocus:e[2]||(e[2]=(...s)=>t.handleFocus&&t.handleFocus(...s)),onBlur:e[3]||(e[3]=(...s)=>t.handleBlur&&t.handleBlur(...s))},null,544),[[a.vModelText,t.modelColor]])])}Qd.render=kT,Qd.__file="src/color/Box.vue";var eu=a.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(t,{emit:e}){const n=a.ref(),o=a.ref([]),r=a.ref();t.colorsHistoryKey&&localStorage&&(o.value=JSON.parse(localStorage.getItem(t.colorsHistoryKey))||[]),r.value=Wd(4).toDataURL(),a.onUnmounted(()=>{i(n.value)});function i(l){if(!l)return;const c=o.value||[],d=c.indexOf(l);d>=0&&c.splice(d,1),c.length>=8&&(c.length=7),c.unshift(l),o.value=c||[],localStorage&&t.colorsHistoryKey&&localStorage.setItem(t.colorsHistoryKey,JSON.stringify(c))}function s(l){e("selectColor",l)}return{setColorsHistory:i,colorsHistory:o,color:n,imgAlphaBase64:r,selectColor:s}}});const xT={class:"colors"},ET={key:0,class:"colors history"};function ST(t,e,n,o,r,i){return a.openBlock(),a.createBlock("div",null,[a.createVNode("ul",xT,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(t.colorsDefault,s=>(a.openBlock(),a.createBlock("li",{key:s,class:"item",onClick:l=>t.selectColor(s)},[a.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),a.createVNode("div",{style:{background:s},class:"color"},null,4)],8,["onClick"]))),128))]),t.colorsHistory.length?(a.openBlock(),a.createBlock("ul",ET,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(t.colorsHistory,s=>(a.openBlock(),a.createBlock("li",{key:s,class:"item",onClick:l=>t.selectColor(s)},[a.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),a.createVNode("div",{style:{background:s},class:"color"},null,4)],8,["onClick"]))),128))])):a.createCommentVNode("v-if",!0)])}eu.render=ST,eu.__file="src/color/Colors.vue";var Hr=a.defineComponent({components:{Saturation:Gd,Hue:Kd,Alpha:Yd,Preview:Jd,Sucker:Xd,Box:Qd,Colors:eu},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return sT(this.rgba,!0)}},created(){Object.assign(this,tr(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(t){const{r:e,g:n,b:o,h:r,s:i,v:s}=tr(t);Object.assign(this,{r:e,g:n,b:o,h:r,s:i,v:s}),this.setText()},handleFocus(t){this.$emit("inputFocus",t)},handleBlur(t){this.$emit("inputBlur",t)},selectHue(t){const{r:e,g:n,b:o,h:r,s:i,v:s}=tr(t);Object.assign(this,{r:e,g:n,b:o,h:r,s:i,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(t){this.a=t,this.setText()},inputHex(t){const{r:e,g:n,b:o,a:r,h:i,s,v:l}=tr(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:i,s,v:l}),this.modelHex=t,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(t){const{r:e,g:n,b:o,a:r,h:i,s,v:l}=tr(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:i,s,v:l}),this.modelHex=this.hexString,this.modelRgba=t,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(t){this.$emit("openSucker",t)},selectSucker(t){const{r:e,g:n,b:o,a:r,h:i,s,v:l}=tr(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:i,s,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(t){const{r:e,g:n,b:o,a:r,h:i,s,v:l}=tr(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:i,s,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const TT={class:"color-set"};function AT(t,e,n,o,r,i){const s=a.resolveComponent("Saturation"),l=a.resolveComponent("Hue"),c=a.resolveComponent("Alpha"),d=a.resolveComponent("Preview"),u=a.resolveComponent("Sucker"),p=a.resolveComponent("Box"),f=a.resolveComponent("Colors");return a.openBlock(),a.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[a.createVNode("div",TT,[a.createVNode(s,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),a.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),a.createVNode(c,{ref:"alpha",color:t.rgbString,rgba:t.rgba,width:t.hueWidth,height:t.hueHeight,onSelectAlpha:t.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),a.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[a.createVNode(d,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock(u,{key:0,"sucker-canvas":t.suckerCanvas,"sucker-area":t.suckerArea,onOpenSucker:t.openSucker,onSelectSucker:t.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),a.createVNode(p,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),a.createVNode(p,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),a.createVNode(f,{color:t.rgbaString,"colors-default":t.colorsDefault,"colors-history-key":t.colorsHistoryKey,onSelectColor:t.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),a.createCommentVNode(" custom options "),a.renderSlot(t.$slots,"default")],6)}Hr.render=AT,Hr.__file="src/color/ColorPicker.vue",Hr.install=t=>{t.component(Hr.name,Hr)};const yhe="",NT={class:"color-picker-wrapper"},nl=a.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(t,{emit:e}){const n=t,o=e,r=a.ref(!1),i=a.ref(null),s=a.ref(null),l=a.ref(0),c=a.ref(0),d=async h=>{s.value=h,r.value=!0,await a.nextTick();const g=h.getBoundingClientRect(),v=i.value,_=(v==null?void 0:v.offsetHeight)||300,y=window.innerHeight-g.bottom,b=g.top,k=y<_&&b>_;console.log("pickerHeight = "+_),l.value=k?g.top-_-8:g.bottom+8,c.value=g.left,setTimeout(()=>{window.addEventListener("click",p)},0)},u=a.computed(()=>({position:"fixed",top:`${l.value}px`,left:`${c.value}px`,zIndex:1e3})),p=h=>{const g=h.target;i.value&&!i.value.contains(g)&&(r.value=!1,o("update:color",f.value),window.removeEventListener("click",p))};a.onBeforeUnmount(()=>{window.removeEventListener("click",p)}),a.watch(()=>n.color,h=>{r.value||(f.value=h)});const f=a.ref(n.color),m=h=>{const{r:g,g:v,b:_,a:y}=h.rgba;f.value=`rgba(${g}, ${v}, ${_}, ${y})`};return(h,g)=>(a.openBlock(),a.createElementBlock("div",NT,[a.renderSlot(h.$slots,"clickable",{openPicker:d,bgColor:t.color}),r.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:i,class:"color-picker",style:a.normalizeStyle(u.value)},[a.createVNode(a.unref(Hr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:m},null,8,["color"])],4)):a.createCommentVNode("",!0)]))}}),_he="",DT={class:"ao-card-project-phase__header"},BT={class:"ao-card-project-item__title-line"},LT={key:0,class:"ao-card-project-item-phase__estimation"},MT={class:"ao-card-project-phase__footer"},$T={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},OT={class:"ao-card-project-phase__subitem"},IT={class:"ao-card-project-phase__subitem"},RT={key:0,class:"ao-card-project-phase__secondary"},PT={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},VT=a.defineComponent({__name:"AoCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","unarchivePhase","updatePhase"],setup(t,{emit:e}){const n=t,o=e,r=g=>{o("update:title",g)},i=a.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((v,_)=>{var y;return v+((y=_.activities)==null?void 0:y.reduce((b,k)=>b+(k.estimation||0),0))},0))||0}),s=a.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,v)=>{var _;return g+(((_=v.activities)==null?void 0:_.reduce((y,b)=>{var w;const k=(w=n.timeTrackingData)==null?void 0:w[b.id];return y+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=a.computed(()=>n.estimationUnit==="days"?"d":"h"),c=a.computed(()=>Ei(s.value,n.estimationUnit)),d=a.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),u=a.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(v=>v.status===Qr.done).length}),p=a.computed(()=>(u.value||0)/(d.value||1)),f=a.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=a.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,v)=>{const _=g.target;_.closest("button")||_.closest("input")||_.closest(".ao-title")||v(_)};return(g,v)=>(a.openBlock(),a.createBlock(nl,{color:m.value,"onUpdate:color":v[2]||(v[2]=_=>m.value=_)},{clickable:a.withCtx(({openPicker:_,bgColor:y})=>[a.createVNode(el,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:y,withLeftBorder:!0,onClick:b=>h(b,_)},a.createSlots({default:a.withCtx(()=>[a.createElementVNode("div",BT,[a.createVNode(ot,{id:t.id,class:"ao-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),i.value||s.value?(a.openBlock(),a.createElementBlock("span",LT," ("+a.toDisplayString(c.value)+"/"+a.toDisplayString(i.value)+a.toDisplayString(l.value)+")",1)):a.createCommentVNode("",!0)])]),footer:a.withCtx(()=>[a.createElementVNode("div",MT,[d.value?(a.openBlock(),a.createElementBlock("div",$T,[a.createElementVNode("div",OT,[a.createVNode(Ee,{name:"MountainFlagOutlineRounded",size:"sm"}),a.createElementVNode("span",IT,a.toDisplayString(u.value)+" / "+a.toDisplayString(d.value),1)]),a.createVNode(tl,{percentages:p.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(a.openBlock(),a.createElementBlock("div",RT,[a.renderSlot(g.$slots,"secondary")])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["ao-card-project-phase__footer-row",f.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":v[1]||(v[1]=b=>f.value=b),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[a.vModelText,f.value,void 0,{lazy:!0}]]):a.createCommentVNode("",!0),a.createElementVNode("span",PT,a.toDisplayString(a.unref(Si)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:a.withCtx(()=>[a.createElementVNode("div",DT,[a.createVNode(he,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:v[0]||(v[0]=a.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}}),vhe="",FT=a.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("span",{class:"aoBadge",style:a.normalizeStyle({backgroundColor:t.color})},null,4))}}),Che="",zT={class:"ao-card-project-milestone__default"},qT={class:"ao-title-with-badge-wrapper"},jT={class:"ao-card-project-item__title-line"},UT={key:0,class:"ao-card-project-item-milestone__estimation"},HT={key:0,class:"ao-card-project-milestone__archive"},WT={class:"ao-card-project-milestone__activities"},ZT={class:"ao-card-project-milestone__activities-row"},GT={class:"ao-card-project-milestone__subitem"},KT={class:"ao-card-project-milestone__subitem"},YT={key:1,class:"ao-card-project-milestone__secondary"},JT={class:"ao-card-project-milestone__footer"},XT={key:1,class:"ao-field ao-card-project-milestone__deadline"},QT={class:"ao-field__label"},eA={key:2,class:"ao-card-project-milestone__assignee"},tA=a.defineComponent({__name:"AoCardProjectItemMilestone",props:{id:{},name:{},color:{},phaseColor:{},activities:{},closedStatus:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},isSelected:{type:Boolean},assignee:{},important:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["updateMilestone","archiveMilestone","unarchiveMilestone"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>{var f;return((f=n.activities)==null?void 0:f.reduce((m,h)=>m+(h.estimation||0),0))||0}),i=a.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((f,m)=>{var g;const h=(g=n.timeTrackingData)==null?void 0:g[m.id];return f+((h==null?void 0:h.timeSpent)||0)},0)),s=a.computed(()=>n.estimationUnit==="days"?"d":"h"),l=a.computed(()=>Ei(i.value,n.estimationUnit));a.computed(()=>{const f=i.value/60;return f%1===0?f.toString():f.toFixed(2)});const c=a.computed(()=>{var f;return(f=n.activities)==null?void 0:f.length}),d=a.computed(()=>{var f;return(f=n.activities)==null?void 0:f.filter(m=>yl(m,n.closedStatus)).length}),u=a.computed(()=>(d.value||0)/(c.value||1)),p=f=>{o("updateMilestone",{id:n.id,name:f})};return(f,m)=>(a.openBlock(),a.createBlock(el,{class:a.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!t.readonly,"tag-name":"li","is-selected":t.isSelected,color:t.phaseColor},{default:a.withCtx(()=>[a.createElementVNode("div",zT,[a.createElementVNode("div",qT,[a.createVNode(FT,{color:t.color||""},null,8,["color"]),a.createElementVNode("div",jT,[a.createVNode(ot,{id:t.id,title:t.name||"",level:5,"is-editable":!t.readonly&&t.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":p},null,8,["id","title","is-editable"]),r.value||i.value?(a.openBlock(),a.createElementBlock("span",UT," ("+a.toDisplayString(l.value)+"/"+a.toDisplayString(r.value)+a.toDisplayString(s.value)+")",1)):a.createCommentVNode("",!0)])]),!t.readonly&&t.isEditable?(a.openBlock(),a.createElementBlock("div",HT,[a.createVNode(he,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?f.$t("archive"):f.$t("unarchive"),onClick:m[0]||(m[0]=a.withModifiers(()=>t.active?f.$emit("archiveMilestone",{id:t.id}):f.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",WT,[a.createElementVNode("div",ZT,[c.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",GT,[a.createVNode(Ee,{name:"SelectCheckBox",size:"sm"}),a.createElementVNode("span",KT,a.toDisplayString(d.value)+" / "+a.toDisplayString(c.value),1)]),a.createVNode(tl,{percentages:u.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):a.createCommentVNode("",!0),f.$slots.secondary?(a.openBlock(),a.createElementBlock("div",YT,[a.renderSlot(f.$slots,"secondary")])):a.createCommentVNode("",!0)])])]),footer:a.withCtx(()=>[a.createElementVNode("div",JT,[t.important?(a.openBlock(),a.createBlock(Ee,{key:0,name:"FlagRounded",class:a.normalizeClass(t.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):a.createCommentVNode("",!0),t.deadline?(a.openBlock(),a.createElementBlock("label",XT,[a.createElementVNode("span",QT,a.toDisplayString(a.unref(Si)(t.deadline)),1)])):a.createCommentVNode("",!0),t.assignee?(a.openBlock(),a.createElementBlock("div",eA,[a.createVNode(An,{"user-name":a.unref(Pu)(t.assignee),"avatar-url":t.assignee.avatarUrl,color:t.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):a.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}}),whe="",nA={class:"ao-mapping-card-project-phase__header"},oA={class:"ao-card-project-item__title-line"},rA={key:0,class:"ao-card-project-item-phase__estimation"},aA={class:"ao-mapping-card-project-phase__footer"},iA={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},sA={class:"ao-mapping-card-project-phase__subitem"},lA={class:"ao-mapping-card-project-phase__subitem"},cA={key:0,class:"ao-mapping-card-project-phase__secondary"},dA={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},uA=a.defineComponent({__name:"AoCondensedCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","updatePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e,r=g=>{o("update:title",g)},i=a.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((v,_)=>{var y;return v+((y=_.activities)==null?void 0:y.reduce((b,k)=>b+(k.estimation||0),0))},0))||0}),s=a.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,v)=>{var _;return g+(((_=v.activities)==null?void 0:_.reduce((y,b)=>{var w;const k=(w=n.timeTrackingData)==null?void 0:w[b.id];return y+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=a.computed(()=>n.estimationUnit==="days"?"d":"h"),c=a.computed(()=>Ei(s.value,n.estimationUnit)),d=a.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),u=a.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(v=>v.status===Qr.done).length}),p=a.computed(()=>(u.value||0)/(d.value||1)),f=a.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=a.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,v)=>{const _=g.target;_.closest("button")||_.closest("input")||_.closest(".ao-title")||v()};return(g,v)=>(a.openBlock(),a.createBlock(nl,{color:m.value,"onUpdate:color":v[2]||(v[2]=_=>m.value=_)},{clickable:a.withCtx(({openPicker:_,bgColor:y})=>[a.createVNode(el,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:y,withLeftBorder:!0,onClick:b=>h(b,_)},a.createSlots({default:a.withCtx(()=>[a.createElementVNode("div",oA,[a.createVNode(ot,{id:t.id,class:"ao-mapping-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),i.value||s.value?(a.openBlock(),a.createElementBlock("span",rA," ("+a.toDisplayString(c.value)+"/"+a.toDisplayString(i.value)+a.toDisplayString(l.value)+")",1)):a.createCommentVNode("",!0)])]),footer:a.withCtx(()=>[a.createElementVNode("div",aA,[d.value?(a.openBlock(),a.createElementBlock("div",iA,[a.createElementVNode("div",sA,[a.createVNode(Ee,{name:"MountainFlagOutlineRounded",size:"sm"}),a.createElementVNode("span",lA,a.toDisplayString(u.value)+" / "+a.toDisplayString(d.value),1)]),a.createVNode(tl,{percentages:p.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),g.$slots.secondary?(a.openBlock(),a.createElementBlock("div",cA,[a.renderSlot(g.$slots,"secondary")])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["ao-mapping-card-project-phase__footer-row",f.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":v[1]||(v[1]=b=>f.value=b),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[a.vModelText,f.value,void 0,{lazy:!0}]]):a.createCommentVNode("",!0),a.createElementVNode("span",dA,a.toDisplayString(a.unref(Si)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:a.withCtx(()=>[a.createElementVNode("div",nA,[a.createVNode(he,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:v[0]||(v[0]=a.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}}),khe="",pA={class:"ao-project-phase"},fA={key:0,class:"ao-project-phase__drag ao-card__drag"},mA={key:1,class:"ao-project-phase__col-phase"},hA={key:2,class:"ao-mapping-project-phase__col-phase"},gA={key:0,class:"ao-project-phase__col-milestones"},bA={class:"ao-project-phase__milestones-list-footer"},yA=a.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e;a.watch(()=>o.phase.milestones,(b,k)=>{$n(b,k)});const i=b=>{r("updatePhase",{id:o.phase.id,name:b})},s=b=>{r("updatePhase",{id:o.phase.id,deadline:b})},l=b=>{r("updatePhase",b)},c=a.computed(()=>o.phase.milestones.map(b=>e5(b,o.closedStatus))),d=b=>{const{name:k,rank:w}=er(c.value??[],"milestone",n);r("addMilestone",{name:k,rank:w,phaseId:b})},u=b=>{r("updateMilestone",b)},p=b=>{r("archiveMilestone",b)},f=b=>{r("unarchiveMilestone",b)},m=b=>{r("archivePhase",b)},h=b=>{r("unarchivePhase",b)},g=b=>{"added"in b?r("updateMilestone",{id:b.added.element.id,phaseId:o.phase.id,rank:cr(c.value,b.added.newIndex)}):"removed"in b||"moved"in b&&r("updateMilestone",{id:b.moved.element.id,rank:cr(c.value,b.moved.newIndex)})},v=ft.useRoute(),_=a.computed(()=>v.path.includes("/mapping")),y=a.computed(()=>{var b;return o.phase.id!==((b=v.params)==null?void 0:b.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:n5(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(b,k)=>(a.openBlock(),a.createElementBlock("li",pA,[a.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:a.normalizeStyle(y.value)},[t.isEditable?(a.openBlock(),a.createElementBlock("div",fA,[a.createVNode(Ee,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):a.createCommentVNode("",!0),_.value?(a.openBlock(),a.createElementBlock("div",hA,[a.createVNode(uA,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"estimation-unit":t.estimationUnit,"onUpdate:deadline":s,"onUpdate:title":i,onArchivePhase:m,onUnarchivePhase:h,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(a.openBlock(),a.createElementBlock("div",mA,[a.createVNode(VT,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,"onUpdate:deadline":s,"onUpdate:title":i,onArchivePhase:m,onUnarchivePhase:h,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),_.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",gA,[a.createElementVNode("div",{class:"ao-project-phase__milestones",style:a.normalizeStyle(y.value)},[a.createVNode(a.unref(Gn),a.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},b.$attrs,{onChange:g}),{item:a.withCtx(({element:w})=>{var C;return[a.createVNode(tA,{id:w.id,name:w.name,color:w.color,"phase-color":t.phase.color,activities:w.activities,deadline:w.deadline,active:w.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":w.id===((C=b.$route.params)==null?void 0:C.milestoneId),assignee:w.assignee,important:w.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:a.normalizeClass(["ao-project-phase__milestone"]),onClick:x=>!t.readonly&&b.$router.push({name:a.unref(We).milestone,params:{phaseId:t.phase.id,milestoneId:w.id}}),onUpdateMilestone:u,onArchiveMilestone:p,onUnarchiveMilestone:f},null,8,["id","name","color","phase-color","activities","deadline","active","is-editable","is-draggable","closed-status","is-selected","assignee","important","readonly","time-tracking-data","estimation-unit","onClick"])]}),_:1},16,["list","disabled"]),a.createElementVNode("div",bA,[t.isEditable?(a.openBlock(),a.createBlock(Yn,{key:0,label:b.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:k[0]||(k[0]=()=>d(t.phase.id))},null,8,["label"])):a.createCommentVNode("",!0)])],4)]))]))}}),xhe="",_A={class:"ao-project__phases"},vA={key:0,class:"ao-project-phase__phases-list-footer"},CA={class:"ao-project-phase__col-phase"},tu=a.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e;a.watch(()=>n.phases,(m,h)=>{$n(m,h)});const r=m=>{o("addMilestone",m)},i=m=>{o("updateMilestone",m)},s=m=>{o("archiveMilestone",m)},l=m=>{o("unarchiveMilestone",m)},c=m=>{o("archivePhase",m)},d=m=>{o("unarchivePhase",m)},u=m=>{if(m.moved){const h=ua(m,n.phases??[]);o("updatePhase",{id:m.moved.element.id,rank:h})}},p=m=>{o("updatePhase",m)},f=m=>{o("addPhase",m)};return(m,h)=>(a.openBlock(),a.createElementBlock("div",_A,[a.createVNode(a.unref(Gn),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:u},{item:a.withCtx(({element:g})=>[a.createVNode(yA,{phase:g,"is-editable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,users:t.users,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,onAddMilestone:r,onUpdateMilestone:i,onArchiveMilestone:s,onUnarchiveMilestone:l,onUpdatePhase:p,onArchivePhase:c,onUnarchivePhase:d},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),t.isEditable?(a.openBlock(),a.createElementBlock("div",vA,[h[0]||(h[0]=a.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),a.createElementVNode("div",CA,[a.createVNode(Yn,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:f},null,8,["label"])]),h[1]||(h[1]=a.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):a.createCommentVNode("",!0)]))}}),Ehe="",wA={class:"ao-add-template-modal__form-body"},kA={class:"field__row"},xA={class:"ao-add-template-modal__form-footer"},xg=a.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>n.templates.map(c=>({value:c.id,label:c.name}))),i=a.ref(null),s=c=>{i.value=c},l=()=>{i.value&&o("apply",i.value,n.projectId)};return(c,d)=>(a.openBlock(),a.createBlock(Ti,{size:"sm"},{header:a.withCtx(()=>[a.createVNode(ot,{title:c.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:a.withCtx(()=>[a.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:a.withModifiers(l,["prevent"])},[a.createElementVNode("p",null,a.toDisplayString(c.$t("project.template.apply.notice")),1),a.createElementVNode("div",wA,[a.createElementVNode("div",kA,[a.createVNode(Et,{value:i.value,options:r.value,detached:!0,onChange:s},null,8,["value","options"])])]),a.createElementVNode("footer",xA,[a.createVNode(he,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}}),She="",EA={class:"ao-save-template-modal__form-body"},SA={class:"field__row"},TA={class:"ao-field ao-field--inline"},AA={class:"ao-field__label"},NA={class:"ao-save-template-modal__phases"},DA={class:"ao-field__label"},BA={class:"ao-save-template-modal__phases-list"},LA=["value"],MA={class:"ao-save-template-modal__form-footer"},Eg=a.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(t,{emit:e}){const n=t,o=e,r=a.ref(""),i=a.ref([]);a.onMounted(()=>{i.value=n.phases.map(l=>l.id)});const s=()=>{r.value&&o("save",r.value,i.value)};return(l,c)=>(a.openBlock(),a.createBlock(Ti,{size:"sm"},{header:a.withCtx(()=>[a.createVNode(ot,{title:l.$t("project.template.save.title"),level:3},null,8,["title"])]),default:a.withCtx(()=>[a.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:a.withModifiers(s,["prevent"])},[a.createElementVNode("div",EA,[a.createElementVNode("div",SA,[a.createElementVNode("label",TA,[a.createElementVNode("span",AA,a.toDisplayString(l.$t("project.template.name.label"))+": ",1),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=d=>r.value=d),type:"text"},null,512),[[a.vModelText,r.value]])])]),a.createElementVNode("div",NA,[a.createElementVNode("div",DA,a.toDisplayString(l.$t("project.template.phases.label")),1),a.createElementVNode("div",BA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.phases,d=>(a.openBlock(),a.createElementBlock("label",{class:"ao-field ao-field--checkbox",key:d.id},[a.withDirectives(a.createElementVNode("input",{type:"checkbox",value:d.id,"onUpdate:modelValue":c[1]||(c[1]=u=>i.value=u)},null,8,LA),[[a.vModelCheckbox,i.value]]),a.createElementVNode("span",null,a.toDisplayString(d.name),1)]))),128))])])]),a.createElementVNode("footer",MA,[a.createVNode(he,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:s},null,8,["label"])])],32)]),_:1}))}}),The="",$A={class:"ao-project"},OA={class:"ao-project__body"},IA=a.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e,i=a.computed(()=>o.phases.flatMap(D=>D.milestones)),s=()=>{const{name:D,rank:K}=er(o.phases,"phase",n);r("addPhase",{name:D,rank:K,projectId:o.project.id})},l=D=>{r("updatePhase",D)},c=D=>{r("archivePhase",D)},d=D=>{r("unarchivePhase",D)},u=D=>{r("copyPhaseToTemplate",D)},p=D=>{r("addMilestone",D)},f=D=>{r("updateMilestone",D)},m=D=>{r("archiveMilestone",D)},h=D=>{r("unarchiveMilestone",D)},g=D=>{r("addActivity",D)},v=D=>{r("update:activity",D)},_=D=>{r("archiveActivity",D)},y=D=>{r("unarchiveActivity",D)},b=D=>{r("addSubtask",D)},k=D=>{r("updateSubtask",D)},w=D=>{r("deleteSubtask",D)},C=a.computed(()=>i.value.flatMap(D=>D.activities)),x=D=>{r("addFiles",D)},S=D=>{r("removeFile",D)},T=D=>{r("addComment",D)},A=D=>{r("updateComment",D)},z=D=>{r("removeComment",D)},O=a.ref(!1),B=a.ref(!1),L=(D,K)=>{r("applyTemplate",{templateId:D,projectId:K}),O.value=!1},I=(D,K)=>{var ce;const F=(ce=o.templates)==null?void 0:ce.at(-1),U=F?rt.LexoRank.parse(F.rank).genNext():rt.LexoRank.middle();r("saveTemplate",{templateName:D,rank:U.format(),phaseIds:K}),B.value=!1},P=ft.useRouter(),G=a.ref("overview"),R=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return a.watch(G,D=>{D==="feed"?(P.push({name:We.feed}),console.log("Navigating to feed...")):D==="overview"?(P.push({name:We.project}),console.log("Navigating to feed...")):D==="mapping"&&(P.push({name:We.mapping}),console.log("Navigating to feed..."))}),(D,K)=>{var U;const F=a.resolveComponent("RouterView");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.mergeProps({class:"ao-project-overview"},D.$attrs),[a.createElementVNode("div",$A,[a.createVNode(pa,null,{primary:a.withCtx(()=>[a.createVNode(ti,{tabs:R,modelValue:G.value,"onUpdate:modelValue":K[0]||(K[0]=ce=>G.value=ce)},null,8,["modelValue"]),a.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:D.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:K[1]||(K[1]=ce=>D.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:a.withCtx(()=>[t.isEditable===!0?(a.openBlock(),a.createBlock(he,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:D.$t("project.template.save.label"),onClick:K[2]||(K[2]=ce=>B.value=!0)},null,8,["label"])):a.createCommentVNode("",!0),t.isEditable===!0?(a.openBlock(),a.createBlock(he,{key:1,class:"ao-project-overview__add-template",color:"primary",label:D.$t("project.template.apply.label"),onClick:K[3]||(K[3]=ce=>O.value=!0)},null,8,["label"])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",OA,[a.createVNode(tu,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(U=t.project)==null?void 0:U.estimationUnit,onAddMilestone:p,onUpdateMilestone:f,onArchiveMilestone:m,onUnarchiveMilestone:h,onAddPhase:s,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:d,onCopyPhaseToTemplate:u},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),a.createVNode(F,{class:"ao-project__sidebar",phases:t.phases,"project-id":t.project.id,"project-name":t.project.name,users:t.users,"is-editable":t.isEditable===!0,"closed-status":t.closedStatus,"time-tracking-data":t.timeTrackingData,onClose:K[4]||(K[4]=ce=>D.$router.push({name:a.unref(We).project})),onUpdateMilestone:f,onAddActivity:g,onUpdateActivity:v,onArchiveActivity:_,onUnarchiveActivity:y},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[a.createVNode(F,{name:"modal",activities:C.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,phases:t.phases,project:t.project,users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,"time-tracking-data":t.timeTrackingData,"onUpdate:activity":v,onAddSubtask:b,onUpdateSubtask:k,onDeleteSubtask:w,onAddFiles:x,onRemoveFile:S,onAddComment:T,onUpdateComment:A,onRemoveComment:z},{default:a.withCtx(({Component:ce})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(ce),null,{default:a.withCtx(ee=>[a.renderSlot(D.$slots,"activityDetailsBody",a.normalizeProps(a.guardReactiveProps(ee)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data"])]))],16),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[B.value?(a.openBlock(),a.createBlock(Eg,{key:0,phases:t.phases,onClose:K[5]||(K[5]=ce=>B.value=!1),onSave:I},null,8,["phases"])):a.createCommentVNode("",!0),O.value?(a.openBlock(),a.createBlock(xg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:K[6]||(K[6]=ce=>O.value=!1),onApply:L},null,8,["project-id","templates"])):a.createCommentVNode("",!0)]))],64)}}}),Ahe="",RA={class:"ao-card-feed__header"},PA={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},VA={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},FA={class:"ao-card-feed__body"},zA={key:0,class:"ao-card-feed__breadcrumbs"},qA={class:a.normalizeClass(["ao-card-feed__title-group"])},jA={class:"ao-card-feed__title-line"},UA={key:0,class:"ao-card-feed__slug"},HA={key:1,class:"ao-card-feed__deadline"},WA={class:"ao-card-feed__footer"},ZA={class:"ao-card-feed__footer-row"},GA={class:"ao-assignees"},KA={key:0,class:"ao-assignee"},YA={key:0,class:"ao-card-feed__subitems"},JA={key:0,class:"ao-card-feed__subitem"},XA={class:"ao-card-feed__subitem"},QA={key:1,class:"ao-card-feed__subitem"},eN={class:"ao-card-feed__subitem"},tN={class:"ao-card-feed__timer-wrapper"},nN={class:"ao-card-feed__footer-row"},oN={key:0,class:"ao-card-feed__progress-wrapper"},rN={class:"ao-card-feed__subitem"},aN={class:"ao-card-feed__subitem"},nu=a.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{type:Boolean},assignee:{},slug:{},comments:{},attachments:{},tasks:{},isEditable:{type:Boolean},isPrivate:{type:Boolean},isClosed:{type:Boolean},tagType:{}},emits:["removeAssignee","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>n.tagType==="milestone"?n.milestoneName:n.projectName),i=a.computed(()=>n.tagType==="milestone"?n.milestoneColor:n.projectColor),s=g=>{o("updateActivity",{id:n.id,name:g})},l=a.computed(()=>n.tagType==="milestone"&&n.phaseName?`${n.phaseName}`:n.phaseName&&n.milestoneName?`${n.phaseName} / ${n.milestoneName}`:""),c=a.computed(()=>n.assignee?[n.assignee]:[]),d=a.computed(()=>Si(n.deadline)),u=g=>{o("removeAssignee",g)},p=()=>{o("startTimer",{activityId:n.id,name:n.name,project:n.projectName,projectId:n.projectId,slug:n.slug})},f=a.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.length}),m=a.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(v=>v.isDone).length}),h=a.computed(()=>(m.value||0)/(f.value||1));return(g,v)=>(a.openBlock(),a.createBlock(el,{class:a.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0},{header:a.withCtx(()=>[a.createElementVNode("div",RA,[r.value?(a.openBlock(),a.createBlock(Xr,{key:0,label:r.value,class:"ao-card-feed__project",variant:"solid",color:t.projectColor?void 0:"primary","raw-color":i.value},null,8,["label","color","raw-color"])):a.createCommentVNode("",!0),t.isPrivate||t.important||t.isClosed?(a.openBlock(),a.createElementBlock("div",PA,[t.isPrivate?(a.openBlock(),a.createBlock(Ee,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):a.createCommentVNode("",!0),t.important?(a.openBlock(),a.createBlock(Ee,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):a.createCommentVNode("",!0),t.isClosed?(a.openBlock(),a.createBlock(Ee,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),g.$slots.secondary?(a.openBlock(),a.createElementBlock("div",VA,[a.renderSlot(g.$slots,"secondary")])):a.createCommentVNode("",!0)])]),default:a.withCtx(()=>[a.createElementVNode("div",FA,[l.value?(a.openBlock(),a.createElementBlock("span",zA,a.toDisplayString(l.value),1)):a.createCommentVNode("",!0),a.createElementVNode("div",qA,[a.createElementVNode("div",jA,[t.slug?(a.openBlock(),a.createElementBlock("span",UA,a.toDisplayString(t.slug)+": ",1)):a.createCommentVNode("",!0),a.createVNode(ot,{id:t.id,title:t.name,level:5,"is-editable":t.isEditable,"onUpdate:title":s,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),t.deadline?(a.openBlock(),a.createElementBlock("span",HA,a.toDisplayString(d.value),1)):a.createCommentVNode("",!0)])]),footer:a.withCtx(()=>[a.createElementVNode("div",WA,[a.createElementVNode("div",ZA,[a.createElementVNode("ul",GA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,_=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:_.id},[_?(a.openBlock(),a.createElementBlock("li",KA,[a.createVNode(An,{"user-name":a.unref(Pu)(_),"avatar-url":_.avatarUrl,"is-closable":!0,onClose:()=>u(_.id)},null,8,["user-name","avatar-url","onClose"])])):a.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(a.openBlock(),a.createElementBlock("ul",YA,[t.comments?(a.openBlock(),a.createElementBlock("li",JA,[a.createVNode(Ee,{name:"ChatOutline",size:"sm"}),a.createElementVNode("span",XA,a.toDisplayString(t.comments),1)])):a.createCommentVNode("",!0),t.attachments?(a.openBlock(),a.createElementBlock("li",QA,[a.createVNode(Ee,{name:"AttachFileRounded",size:"sm"}),a.createElementVNode("span",eN,a.toDisplayString(t.attachments),1)])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",tN,[a.createVNode(Ee,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:a.withModifiers(p,["stop"])})])]),a.createElementVNode("div",nN,[t.tasks&&t.tasks.length?(a.openBlock(),a.createElementBlock("div",oN,[a.createElementVNode("div",rN,[a.createVNode(Ee,{name:"SelectCheckBox",size:"sm"}),a.createElementVNode("span",aN,a.toDisplayString(m.value)+" / "+a.toDisplayString(f.value),1)]),a.createVNode(tl,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):a.createCommentVNode("",!0)])])]),_:3},8,["class"]))}}),Nhe="",iN={class:"ao-project-milestone"},sN={class:"ao-project-milestone__header"},lN={class:"ao-project-milestone__header_line"},cN={class:"ao-project-milestone__header_line"},dN={class:"ao-project-milestone__title"},uN={key:0,class:"ao-fieldset ao-milestone__fieldset"},pN={class:"ao-field__row ao-milestone__field-row"},fN={class:"ao-field ao-field--inline"},mN={class:"ao-field__row ao-milestone__field-row"},hN={class:"ao-field ao-milestone__field-multiselect"},gN=["onClick"],bN={class:"ao-project-milestone__body"},yN={key:0,class:"ao-project-milestone__footer"},Sg=a.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e,i=w=>{var C;r("startTimer",w),(C=window.parent)==null||C.postMessage({type:"startTimer",data:w},"*")},s=a.computed(()=>{var w;return(w=o.phases)==null?void 0:w.find(C=>C.id===o.phaseId)}),l=a.computed(()=>{var w;return(w=o.phases)==null?void 0:w.flatMap(C=>C.milestones)}),c=a.computed(()=>{var w;return(w=l.value)==null?void 0:w.find(C=>C.id===o.milestoneId)}),d=a.computed(()=>{var w;return(w=c.value)==null?void 0:w.activities});a.watch(d,(w,C)=>{$n(w,C)});const u=w=>{r("close",w)},p=()=>{const{name:w,rank:C}=er(d.value??[],"activity",n);r("addActivity",{milestoneId:o.milestoneId,name:w,rank:C,projectId:o.projectId})},f=w=>{r("updateActivity",w)},m=w=>{d.value&&"moved"in w&&r("updateActivity",{id:w.moved.element.id,rank:cr(d.value,w.moved.newIndex)})},h=a.computed({get:()=>{var w;return(w=c.value)==null?void 0:w.color},set:w=>{c.value&&r("updateMilestone",{id:c.value.id,color:w})}}),g=a.computed({get:()=>{var w;return((w=c==null?void 0:c.value)==null?void 0:w.deadline)??""},set:w=>{c.value&&r("updateMilestone",{id:c.value.id,deadline:w!=null&&w.length?w:null})}}),v=w=>o.closedStatus?yl(w,o.closedStatus):!1,_=a.computed(()=>{var w;return((w=o.users)==null?void 0:w.map(C=>({label:`${C.firstName} ${C.lastName}`,value:C.id,avatar:C.avatarUrl})))||[]}),y=a.computed({get(){var w,C;return(C=(w=c.value)==null?void 0:w.assignee)!=null&&C.id?[c.value.assignee.id]:[]},set(w){r("updateMilestone",{id:o.milestoneId,assigneeId:w[0]??null})}}),b=a.computed({get(){var w;return((w=c.value)==null?void 0:w.important)??!1},set(w){r("updateMilestone",{id:o.milestoneId,important:w})}}),k=(w,C)=>{const x=w.currentTarget;x instanceof HTMLElement&&C(x)};return(w,C)=>{var x;return a.openBlock(),a.createElementBlock("div",iN,[a.createElementVNode("header",sN,[a.createElementVNode("div",lN,[a.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:u})]),a.createElementVNode("div",cN,[a.createElementVNode("div",dN,[a.createVNode(ot,{title:((x=c.value)==null?void 0:x.name)||t.milestoneId,level:5},null,8,["title"]),a.createVNode(Cg,{modelValue:b.value,"onUpdate:modelValue":C[0]||(C[0]=S=>b.value=S),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:w.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(a.openBlock(),a.createElementBlock("div",uN,[a.createElementVNode("div",pN,[a.createElementVNode("label",fN,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":C[1]||(C[1]=S=>g.value=S),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[a.vModelText,g.value,void 0,{lazy:!0}]])])]),a.createElementVNode("div",mN,[a.createElementVNode("label",hN,[a.createVNode(Et,{modelValue:y.value,"onUpdate:modelValue":C[2]||(C[2]=S=>y.value=S),options:_.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:w.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:a.withCtx(({option:S,handleTagRemove:T})=>[a.createVNode(An,{"user-name":S.label,"avatar-url":S.avatar,"is-closable":!0,onClose:A=>T(S,A)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),a.createVNode(nl,{color:h.value,"onUpdate:color":C[3]||(C[3]=S=>h.value=S)},{clickable:a.withCtx(({openPicker:S,bgColor:T})=>[a.createElementVNode("button",{style:a.normalizeStyle({background:T}),class:"color-button",onClick:A=>k(A,S)},null,12,gN)]),_:1},8,["color"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",bN,[a.createVNode(a.unref(Gn),a.mergeProps({class:"ao-project-milestone__activities",list:d.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},w.$attrs,{onChange:m}),{item:a.withCtx(({element:S})=>{var T,A,z,O,B;return[a.createVNode(nu,{id:S.id,name:S.name||S.id,"project-id":t.projectId,"phase-name":(T=s.value)==null?void 0:T.name,"milestone-name":(A=c.value)==null?void 0:A.name,"milestone-color":(z=c.value)==null?void 0:z.color,deadline:S.deadline,important:S.important,users:t.users,assignee:S.assignee,slug:S.slug,comments:(O=S.comments)==null?void 0:O.length,attachments:(B=S.attachments)==null?void 0:B.length,tasks:S.tasks,"is-editable":t.isEditable,"is-private":S.private,"is-closed":v(S),onClick:L=>w.$router.push({name:a.unref(We).activity,params:{milestoneId:t.milestoneId,activityId:S.id}}),onUpdateActivity:f,onRemoveAssignee:()=>f({id:S.id,assigneeId:null}),onStartTimer:i},a.createSlots({_:2},[t.isEditable?{name:"secondary",fn:a.withCtx(()=>[t.isEditable&&S.active?(a.openBlock(),a.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:w.$t("archive"),onClick:a.withModifiers(()=>w.$emit("archiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0),t.isEditable&&!S.active?(a.openBlock(),a.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:w.$t("feed.activity.unarchive"),onClick:a.withModifiers(()=>w.$emit("unarchiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(a.openBlock(),a.createElementBlock("div",yN,[a.createVNode(Yn,{"icon-name":"Add",label:w.$t("project.activity.add"),onClick:p},null,8,["label"])])):a.createCommentVNode("",!0)])])}}}),Dhe="",_N=a.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>{var _;return(_=n.phases)==null?void 0:_.find(y=>y.id===n.phaseId)}),i=a.computed(()=>{var _;return(_=n.phases)==null?void 0:_.flatMap(y=>y.milestones)}),s=a.computed(()=>{var _;return(_=i.value)==null?void 0:_.find(y=>y.id===n.milestoneId)}),l=a.computed(()=>{var _;return(_=n.activities)==null?void 0:_.find(y=>y.id===n.activityId)}),c=_=>{o("update:activity",_)},d=_=>{o("addSubtask",_)},u=_=>{o("updateSubtask",_)},p=_=>{o("deleteSubtask",_)},f=_=>{o("addFiles",_)},m=_=>{o("removeFile",_)},h=_=>{o("addComment",_)},g=_=>{o("updateComment",_)},v=_=>{o("removeComment",_)};return(_,y)=>{var b,k;return l.value?(a.openBlock(),a.createBlock(Hd,{key:0,activity:l.value,"activity-types":t.activityTypes,"milestone-id":t.milestoneId,"template-activities":t.activities,"is-template":!1,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:`${(b=r.value)==null?void 0:b.name} / ${(k=s.value)==null?void 0:k.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,onClose:_.$router.back,"onUpdate:activity":c,onAddSubtask:d,onUpdateSubtask:u,onDeleteSubtask:p,onAddFiles:f,onRemoveFile:m,onAddComment:h,onUpdateComment:g,onRemoveComment:v},{default:a.withCtx(w=>[a.renderSlot(_.$slots,"default",a.normalizeProps(a.guardReactiveProps(w)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","onClose"])):a.createCommentVNode("",!0)}}}),vN={class:"ao-col-header"},CN=a.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("header",vN,[a.createVNode(ot,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(a.openBlock(),a.createBlock(Xr,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):a.createCommentVNode("",!0)]))}}),Bhe="";function wN(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function ol(t){return typeof t=="function"?t():a.unref(t)}const kN=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xN=t=>t!=null,ni=()=>{};function EN(t,e){function n(...o){return new Promise((r,i)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(r).catch(i)})}return n}function SN(t,e={}){let n,o,r=ni;const i=l=>{clearTimeout(l),r(),r=ni};return l=>{const c=ol(t),d=ol(e.maxWait);return n&&i(n),c<=0||d!==void 0&&d<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,p)=>{r=e.rejectOnCancel?p:u,d&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},d)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},c)})}}function TN(t,e=200,n={}){return EN(SN(e,n),t)}function ou(t){var e;const n=ol(t);return(e=n==null?void 0:n.$el)!=null?e:n}const AN=kN?window:void 0;function NN(){const t=a.ref(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function DN(t){const e=NN();return a.computed(()=>(e.value,!!t()))}function BN(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=AN,immediate:l=!0}=n,c=DN(()=>s&&"IntersectionObserver"in s),d=a.computed(()=>{const h=ol(t);return(Array.isArray(h)?h:[h]).map(ou).filter(xN)});let u=ni;const p=a.ref(l),f=c.value?a.watch(()=>[d.value,ou(o),p.value],([h,g])=>{if(u(),!p.value||!h.length)return;const v=new IntersectionObserver(e,{root:ou(g),rootMargin:r,threshold:i});h.forEach(_=>_&&v.observe(_)),u=()=>{v.disconnect(),u=ni}},{immediate:l,flush:"post"}):ni,m=()=>{u(),f(),p.value=!1};return wN(m),{isSupported:c,isActive:p,pause(){u(),p.value=!1},resume(){p.value=!0},stop:m}}const LN={class:a.normalizeClass(["ao-list-kanban"])},MN={class:"ao-list-kanban__header"},$N={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},ON={key:1,class:"ao-list-kanban__end"},IN={key:0,class:"ao-list-kanban__no-more"},RN={key:1,class:"ao-list-kanban__divider"},PN={key:1,class:"ao-list-kanban__footer"},VN=a.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{}},emits:["add","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,r=a.ref(!1),i=a.ref(null);BN(i,([{isIntersecting:p}])=>{r.value=p}),a.watch(r,p=>{p&&n.hasMore&&!n.isLoading&&o("loadMore")});const s=p=>{var f;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((f=p.assignee)==null?void 0:f.id):!1},l=p=>{o("selectActivity",p)},c=p=>{o("updateActivity",p)},d=p=>{"added"in p?o("updateActivity",{id:p.added.element.id,statusId:n.status.id,rank:cr(n.list,p.added.newIndex)}):"removed"in p||"moved"in p&&o("updateActivity",{id:p.moved.element.id,rank:cr(n.list,p.moved.newIndex)})},u=a.ref(!1);return(p,f)=>(a.openBlock(),a.createElementBlock("div",LN,[t.title||p.$slots.header?a.renderSlot(p.$slots,"header",{},()=>{var m;return[a.createElementVNode("div",MN,[t.title?(a.openBlock(),a.createBlock(CN,{key:0,title:t.title,level:3,items:(m=t.list)==null?void 0:m.length},null,8,["title","items"])):a.createCommentVNode("",!0)])]},void 0,0):a.createCommentVNode("",!0),a.createVNode(a.unref(Gn),a.mergeProps({class:["ao-list-kanban__list",u.value?"ao-list-kanban__transition":void 0],list:t.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},p.$attrs,{draggable:".ao-list-draggable",disabled:!t.isEditable,onChange:d,onStart:f[1]||(f[1]=m=>u.value=!0),onEnd:f[2]||(f[2]=m=>u.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:a.withCtx(({element:m})=>{var h,g,v,_,y,b,k,w,C,x;return[a.createVNode(nu,{class:a.normalizeClass(s(m)?"ao-list-draggable":""),id:m.id,name:m.name,"project-name":(h=m.project)==null?void 0:h.name,"project-id":(g=m.project)==null?void 0:g.id,"project-color":(v=m.project)==null?void 0:v.color,"phase-name":(y=(_=m.milestone)==null?void 0:_.phase)==null?void 0:y.name,"milestone-name":(b=m.milestone)==null?void 0:b.name,"milestone-color":(k=m.milestone)==null?void 0:k.color,deadline:m.deadline,rules:((w=m.rules)==null?void 0:w.length)||0,tasks:m.tasks,description:m.description,important:m.important,type:m.type,comments:(C=m.comments)==null?void 0:C.length,attachments:(x=m.attachments)==null?void 0:x.length,users:t.users,assignee:m.assignee,slug:m.slug,"is-editable":s(m),"is-private":m.private,"tag-type":t.tagType,onUpdateActivity:[S=>s(m)&&c(S),()=>s(m)&&c],onClick:()=>l(m.id),onRemoveAssignee:()=>s(m)&&c({id:m.id,assigneeId:null}),onStartTimer:f[0]||(f[0]=S=>p.$emit("startTimer",S))},{secondary:a.withCtx(()=>[s(m)&&m.active?(a.openBlock(),a.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.$t("feed.activity.archive"),onClick:a.withModifiers(()=>p.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0),s(m)&&!m.active?(a.openBlock(),a.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.$t("feed.activity.unarchive"),onClick:a.withModifiers(()=>p.$emit("unarchiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0)]),_:2},1032,["class","id","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:a.withCtx(()=>[t.isLoading?(a.openBlock(),a.createElementBlock("div",$N,[a.createVNode(Ee,{name:"Loading"})])):t.hasMore?(a.openBlock(),a.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:i,class:"ao-list-kanban__end"},null,512)):(a.openBlock(),a.createElementBlock("div",ON,[t.noMoreLabel?(a.openBlock(),a.createElementBlock("span",IN,a.toDisplayString(t.noMoreLabel),1)):t.isEditable?(a.openBlock(),a.createElementBlock("span",RN)):a.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),p.$slots.footer||t.footerLabel?(a.openBlock(),a.createElementBlock("div",PN,[a.renderSlot(p.$slots,"footer",{},()=>[t.isEditable?(a.openBlock(),a.createBlock(Yn,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:f[3]||(f[3]=m=>p.$emit("add"))},null,8,["label"])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)]))}}),Lhe="",FN={class:"ao-field ao-search-field"},zN=["value","placeholder"],qN=a.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(t,{emit:e}){const n=t,o=e,r=async l=>{const d=l.target.value;o("update:modelValue",d,l)},i=TN(r,n.delay),s=l=>{o("clear",l)};return(l,c)=>(a.openBlock(),a.createElementBlock("div",FN,[a.createElementVNode("input",{value:t.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:t.placeholder,onInput:c[0]||(c[0]=(...d)=>a.unref(i)&&a.unref(i)(...d)),onKeypress:a.withKeys(r,["enter"])},null,40,zN),a.createVNode(Ee,{name:"SearchRounded",class:a.normalizeClass(`ao-search-field__icon ao-search-field__action ${t.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),a.createVNode(he,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:a.normalizeClass(`ao-search-field__button ao-search-field__action ${t.modelValue?"ao-search-field__action--visible":""}`),onClick:s},null,8,["class"])]))}}),Mhe="",jN={class:"ao-feed"},UN={class:"ao-feed__filters"},HN={class:"ao-feed__body"},Tg=a.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},project:{},projects:{},filters:{},activityTypes:{},users:{},userId:{},initialActivityId:{},initialActivitySlug:{},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e;function i(F,U){r("toast",F,U)}const s=a.toRef(o,"activities"),l=async(F,U)=>{await r("selectActivity",F,U)},c=a.ref({}),d=a.ref(!1),u=a.ref(!1),p=a.computed(()=>o.project?"milestone":"project");a.watch([()=>o.statuses,()=>o.activities,()=>o.initialActivityId,()=>o.initialActivitySlug],async([F,U,ce,ee],[ae,q])=>{c.value=Object.fromEntries(F.map(ne=>[ne.id,U.filter($=>{var Y;return((Y=$.status)==null?void 0:Y.id)===ne.id})])),ce&&!d.value?(l(ce,null),d.value=!0):ee&&!d.value&&(l(null,ee),d.value=!0),u.value&&$n(U,q)},{immediate:!0});const f=a.computed(()=>{var F;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((F=o.selectedActivity.milestone.phase)==null?void 0:F.name)??""} / ${o.selectedActivity.milestone.name??""}`}),m=F=>{var q,ne;const U=(q=o.activities)==null?void 0:q.at(-1),ce=U?rt.LexoRank.parse(U.rank).genNext():rt.LexoRank.middle(),ee=((ne=o.activities)==null?void 0:ne.length)??0,ae={name:n("activity.defaultName",{idx:ee+1}),rank:ce.format(),statusId:F.id};o.filters.assigneeId.length>0&&(ae.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(ae.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(ae.typeId=o.filters.typeId[0]),u.value=!0,r("addActivity",ae)},h=(F,U)=>{u.value=!1,r("update:filters",{...o.filters,[F]:U})},g=a.computed(()=>o.project?[o.project]:o.projects??[]),v=a.computed(()=>g.value.map(F=>({value:F.id,label:F.name}))),_=a.computed(()=>{var F;return(F=o.activityTypes)==null?void 0:F.map(U=>({value:U.id,label:U.name}))}),y=a.computed(()=>o.users.map(F=>({value:F.id,label:`${F.firstName} ${F.lastName}`,avatar:F.avatarUrl}))),b=F=>{o.selectedActivity&&r("update:activity",F)},k=F=>{r("update:activity",F)},w=F=>{r("archiveActivity",F)},C=F=>{r("unarchiveActivity",F)},x=F=>{var U;r("startTimer",F),(U=window.parent)==null||U.postMessage({type:"startTimer",data:F},"*")},S=F=>{u.value=!1,r("update:searchText",F)},T=F=>{u.value=!1,r("clear:searchText",F)},A=F=>{o.selectedActivity&&r("addSubtask",F)},z=F=>{o.selectedActivity&&r("updateSubtask",F)},O=F=>{o.selectedActivity&&r("deleteSubtask",F)},B=F=>{r("addFiles",F)},L=F=>{r("removeFile",F)},I=F=>{o.selectedActivity&&r("addComment",{...F,activityId:o.selectedActivity.id})},P=F=>{const{id:U}=o.selectedActivity||{};U&&r("updateComment",F)},G=F=>{const{id:U}=o.selectedActivity||{};U&&r("removeComment",F)},R=ft.useRouter(),D=a.ref("feed"),K=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return a.watch(D,F=>{F==="feed"?(R.push({name:We.feed}),console.log("Navigating to feed...")):F==="overview"?(R.push({name:We.project}),console.log("Navigating to feed...")):F==="mapping"&&(R.push({name:We.mapping}),console.log("Navigating to feed..."))}),(F,U)=>{var ce;return a.openBlock(),a.createElementBlock("div",jN,[a.createVNode(pa,null,{primary:a.withCtx(()=>[a.createElementVNode("div",UN,[a.createVNode(ti,{tabs:K,modelValue:D.value,"onUpdate:modelValue":U[0]||(U[0]=ee=>D.value=ee)},null,8,["modelValue"]),a.createVNode(qN,{"model-value":t.searchText,placeholder:F.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":S,onClear:T},null,8,["model-value","placeholder"]),o.project?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Et,{key:0,"model-value":t.filters[a.unref(ko).project],mode:"tags",options:v.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:F.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":U[1]||(U[1]=ee=>h(a.unref(ko).project,ee))},null,8,["model-value","options","placeholder"])),_.value?(a.openBlock(),a.createBlock(Et,{key:1,"model-value":t.filters[a.unref(ko).type],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:F.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":U[2]||(U[2]=ee=>h(a.unref(ko).type,ee))},null,8,["model-value","options","placeholder"])):a.createCommentVNode("",!0),y.value.length?(a.openBlock(),a.createBlock(Et,{key:2,"model-value":t.filters[a.unref(ko).assignee],mode:"tags",options:y.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:F.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":U[3]||(U[3]=ee=>h(a.unref(ko).assignee,ee))},{tag:a.withCtx(({option:ee,handleTagRemove:ae})=>[a.createVNode(An,{"user-name":ee.label,"avatar-url":ee.avatar,"is-closable":!0,onClose:q=>ae(ee,q)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):a.createCommentVNode("",!0)]),a.createVNode(he,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:U[4]||(U[4]=ee=>F.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),a.createVNode(he,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:U[5]||(U[5]=ee=>F.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),a.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:U[6]||(U[6]=ee=>F.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),a.createElementVNode("div",HN,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.statuses,ee=>(a.openBlock(),a.createBlock(VN,{key:ee.id,status:ee,list:c.value[ee.id],title:ee.name,"footer-label":F.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,tagType:p.value,onAdd:()=>m(ee),onSelectActivity:l,onArchiveActivity:w,onUnarchiveActivity:C,onUpdateActivity:k,onStartTimer:x},null,8,["status","list","title","footer-label","users","user-id","is-editable","tagType","onAdd"]))),128))]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[t.selectedActivity?(a.openBlock(),a.createBlock(Hd,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"milestone-id":(ce=t.selectedActivity.milestone)==null?void 0:ce.id,"template-activities":s.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:f.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:g.value,"time-tracking-data":t.timeTrackingData,onClose:U[7]||(U[7]=()=>l(null,null)),"onUpdate:activity":b,onAddSubtask:A,onUpdateSubtask:z,onDeleteSubtask:O,onAddFiles:B,onRemoveFile:L,onAddComment:I,onUpdateComment:P,onRemoveComment:G,onToast:i},{default:a.withCtx(ee=>[a.renderSlot(F.$slots,"activityDetailsBody",a.normalizeProps(a.guardReactiveProps(ee)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data"])):a.createCommentVNode("",!0)]))])}}}),$he="",WN={class:"ao-project-mapping"},ZN={class:"ao-project-mapping-mapping__body"},GN={class:"ao-project-mapping-mapping__phases"},KN={key:0,class:"ao-project-mapping-mapping__image-wrapper"},YN=["src","alt"],JN=a.defineComponent({__name:"AoMapping",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","copyPhaseToTemplate","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e,i=()=>{const{name:_,rank:y}=er(o.phases,"phase",n);r("addPhase",{name:_,rank:y,projectId:o.project.id})},s=_=>{r("updatePhase",_)},l=_=>{r("archivePhase",_)},c=_=>{r("unarchivePhase",_)},d=_=>{r("copyPhaseToTemplate",_)},u=a.ref(!1),p=a.ref(!1),f=(_,y)=>{r("applyTemplate",{templateId:_,projectId:y}),u.value=!1},m=(_,y)=>{var w;const b=(w=o.templates)==null?void 0:w.at(-1),k=b?rt.LexoRank.parse(b.rank).genNext():rt.LexoRank.middle();r("saveTemplate",{templateName:_,rank:k.format(),phaseIds:y}),p.value=!1},h=ft.useRouter(),g=a.ref("mapping"),v=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return a.watch(g,_=>{_==="feed"?(h.push({name:We.feed}),console.log("Navigating to feed...")):_==="overview"?(h.push({name:We.project}),console.log("Navigating to feed...")):_==="mapping"&&(h.push({name:We.mapping}),console.log("Navigating to feed..."))}),(_,y)=>{var b;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.mergeProps({class:"ao-project-mapping-overview"},_.$attrs),[a.createElementVNode("div",WN,[a.createVNode(pa,null,{primary:a.withCtx(()=>[a.createVNode(ti,{modelValue:g.value,"onUpdate:modelValue":y[0]||(y[0]=k=>g.value=k),tabs:v},null,8,["modelValue"]),a.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:_.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:y[1]||(y[1]=k=>_.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:a.withCtx(()=>[t.isEditable===!0?(a.openBlock(),a.createBlock(he,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:_.$t("project.template.save.label"),onClick:y[2]||(y[2]=k=>p.value=!0)},null,8,["label"])):a.createCommentVNode("",!0),t.isEditable===!0?(a.openBlock(),a.createBlock(he,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:_.$t("project.template.apply.label"),onClick:y[3]||(y[3]=k=>u.value=!0)},null,8,["label"])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",ZN,[a.createElementVNode("div",GN,[a.createVNode(tu,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(b=t.project)==null?void 0:b.estimationUnit,onAddPhase:i,onUpdatePhase:s,onArchivePhase:l,onUnarchivePhase:c,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(a.openBlock(),a.createElementBlock("div",KN,[a.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:a.unref(n)("architectureImage.alt")},null,8,YN)])):a.createCommentVNode("",!0)])])],16),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[p.value?(a.openBlock(),a.createBlock(Eg,{key:0,phases:t.phases,onClose:y[4]||(y[4]=k=>p.value=!1),onSave:m},null,8,["phases"])):a.createCommentVNode("",!0),u.value?(a.openBlock(),a.createBlock(xg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:y[5]||(y[5]=k=>u.value=!1),onApply:f},null,8,["project-id","templates"])):a.createCommentVNode("",!0)]))],64)}}}),Ohe="",nr={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},XN=(t,e={})=>[{path:t,name:nr.TEMPLATES,redirect:{name:nr.TEMPLATES_LIST},...e,children:[{path:"",name:nr.TEMPLATES_LIST,component:Ag},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:nr.TEMPLATE_DETAILS,component:wg,props:!0}]}],We={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},QN=(t,e={})=>[{path:t,...e,redirect:{name:We.project},children:[{path:"",name:We.project,component:IA,props:!0,children:[{path:":phaseId/:milestoneId",name:We.milestone,component:Sg,props:!0},{path:":phaseId/:milestoneId/:activityId",name:We.activity,props:{default:!0,modal:!0},components:{default:Sg,modal:_N}}]},{path:"feed",name:We.feed,component:Tg,props:!0},{path:"mapping",name:We.mapping,component:JN,props:!0}]}],eD={class:"ao-templates"},Ag=a.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e;a.watch(()=>o.templates,(d,u)=>{$n(d,u)});const i=()=>{var m,h;const d=(m=o.templates)==null?void 0:m.at(-1),u=d?rt.LexoRank.parse(d.rank).genNext():rt.LexoRank.middle(),p=((h=o.templates)==null?void 0:h.length)??0,f={name:n("template.defaultName.template",{idx:p+1}),rank:u.format()};r("addTemplate",f)},s=(d,u)=>{r("updateItem",{itemType:Le.TEMPLATES,id:d,templateId:d,data:{name:u}})},l=(d,u)=>{r("removeItem",{itemType:Le.TEMPLATES,templateId:d,data:{id:d,...u?{name:u}:{}}})},c=d=>{if(d.moved){const u=ua(d,o.templates??[]);r("updateItem",{itemType:Le.TEMPLATES,id:d.moved.element.id,templateId:d.moved.element.id,data:{rank:u}})}};return(d,u)=>(a.openBlock(),a.createElementBlock("div",eD,[a.createVNode(pa,null,{secondary:a.withCtx(()=>[a.createVNode(he,{label:d.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:i},null,8,["label"])]),_:1}),a.createVNode(a.unref(Gn),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:a.withCtx(({element:p})=>{var f;return[a.createVNode(S5,{id:p.id,title:p.name,phases:p.phases,milestones:(f=p.phases)!=null&&f.length?a.unref(Yv)(p.phases):0,activities:p.phases?a.unref(Jv)(p.phases):0,"updated-at":p.updatedAt,"updated-by":p.updatedBy,onUpdateTitle:m=>s(p.id,m),onClick:m=>d.$router.push({name:a.unref(nr).TEMPLATE_DETAILS,params:{templateId:p.id}}),onDeleteItem:u[0]||(u[0]=(m,h)=>l(m,h))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}}),Ihe="",tD={class:"ao-field__label"},Ng=a.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("label",{class:a.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[a.createElementVNode("span",tD,a.toDisplayString(t.label),1),a.renderSlot(e.$slots,"default")],2))}}),nD=["type","value","disabled","readonly"],oD=a.defineComponent({__name:"AoInputField",props:{label:{default:""},type:{default:"text"},modelValue:{default:""},modelModifiers:{default:()=>({})},isDisabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,r=a.computed(()=>n.modelModifiers.lazy?"change":"input"),i=s=>{n.modelModifiers.number&&(s=Number(s)),o("update:modelValue",s)};return(s,l)=>(a.openBlock(),a.createBlock(Ng,{label:t.label},{default:a.withCtx(()=>[a.createElementVNode("input",a.mergeProps({class:"ao-field__input",type:t.type,value:t.modelValue,disabled:t.isDisabled,readonly:t.isReadonly},{[a.toHandlerKey(r.value)]:l[0]||(l[0]=c=>i(c.target.value))}),null,16,nD)]),_:1},8,["label"]))}}),rD={class:"ao-field"},aD={class:"ao-field__label"},iD=["checked","disabled"],sD=a.defineComponent({__name:"AoCheckboxField",props:{label:{default:""},modelValue:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("label",rD,[a.createElementVNode("span",aD,a.toDisplayString(t.label),1),a.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:n[0]||(n[0]=o=>{var r;return e.$emit("update:modelValue",((r=o.target)==null?void 0:r.checked)??!1)})},null,40,iD)]))}});fe.AoAvatar=An,fe.AoCardFeed=nu,fe.AoCheckboxField=sD,fe.AoColorPicker=nl,fe.AoFeed=Tg,fe.AoField=Ng,fe.AoInputField=oD,fe.AoMultiselect=Et,fe.AoProjectPhases=tu,fe.AoTabBar=ti,fe.AoTemplateDetails=wg,fe.AoTemplates=qg,fe.AoTemplatesList=Ag,fe.EstimationUnit=hu,fe.TemplateItemTypeEnum=mu,fe.activityFeedStatus=d_,fe.durationTypes=c_,fe.feedFilterTypes=ko,fe.getProjectOverviewRoutes=QN,fe.getTemplateRoutes=XN,fe.listUpdateTypes=u_,fe.milestoneStatus=Qr,fe.projectOverviewRoutes=We,fe.ruleComparators=uu,fe.ruleDurationUnits=fu,fe.ruleTriggerTypes=pu,fe.templateItemType=Le,fe.templateRouteNames=nr,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});