UNPKG

yj-imgpond

Version:

Image uploading one-stop solution.

9,562 lines 387 kB
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode(`@charset "UTF-8";*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.\\!mb-0{margin-bottom:0!important}.mr-5px{margin-right:5px}.mt-25px,[mt-25px=""]{margin-top:25px}[mb~="-8px"]{margin-bottom:-8px}.inline,[inline=""]{display:inline}.block,[display~=block]{display:block}.inline-block,[display~=inline-block]{display:inline-block}.hidden{display:none}[max-h~=full]{max-height:100%}[max-w~=full]{max-width:100%}.flex,[flex=""]{display:flex}.flex-col,[flex-col=""]{flex-direction:column}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.resize{resize:both}.items-center,[items-center=""]{align-items:center}[justify-end=""]{justify-content:flex-end}.justify-center,[justify-center=""]{justify-content:center}[justify-between=""]{justify-content:space-between}[gap-10px=""]{grid-gap:10px;gap:10px}.overflow-hidden{overflow:hidden}.px{padding-left:1rem;padding-right:1rem}.leading-initial,[font~=leading-initial]{line-height:initial}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.swal2-container{z-index:99999!important}/*!
* Cropper.js v1.6.0
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2023-08-26T08:14:25.104Z
*/.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{backface-visibility:hidden;display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{inset:0;position:absolute}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.33333%;left:0;top:33.33333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.33333%;top:0;width:33.33333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}:root{--animate-duration: 1s;--animate-delay: 1s;--animate-repeat: 1}.animate__animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}.animate__headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}[data-v-410ba3b7] .el-overlay-dialog{display:flex}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog{min-width:855px}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog:not(.is-fullscreen){margin:auto!important}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog:not(.is-fullscreen) .el-dialog__body{max-height:calc(100vh - 75px)}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__header{display:flex;justify-content:space-between;align-items:center}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__header>.el-dialog__headerbtn{display:none}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__header .el-icon-copy-document,[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__header .el-icon-full-screen{cursor:pointer}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__header .el-icon-copy-document:hover,[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__header .el-icon-full-screen:hover{color:#409eff}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__header .el-icon-close{cursor:pointer;font-size:20px;margin-left:15px}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__header .el-icon-close:hover{color:#ff7575}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body{max-height:calc(100vh - 45px);overflow-y:auto;padding:0;display:flex;flex-direction:column}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form-item:last-child{margin-bottom:0}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body ::-webkit-scrollbar{width:6px;height:6px}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body ::-webkit-scrollbar-thumb{border-radius:10px;background-color:silver}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form.readonly [disabled=disabled],[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form.readonly .is-disabled,[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form.readonly .is-disabled *,[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form.readonly .disabled{color:revert!important;cursor:revert!important}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form.readonly .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner,[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form.readonly .el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:#409eff;border-color:#409eff}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form.readonly .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:#fff;cursor:revert}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form.readonly .el-radio__input.is-disabled.is-checked .el-radio__inner{border-color:#409eff;background:#409EFF}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form.readonly .el-radio__input.is-disabled.is-checked .el-radio__inner:after{cursor:revert;background-color:#fff;border-color:revert}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form.readonly .el-slider__runway.disabled>.el-slider__button-wrapper{cursor:revert}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form.readonly .el-slider__runway.disabled>.el-slider__button-wrapper>.el-slider__button{cursor:revert;border-color:#409eff}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form.readonly .el-color-picker.is-disabled>.el-color-picker__mask{display:none}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__body .el-form.readonly .el-upload{cursor:revert}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__footer{position:absolute;bottom:0;right:0;backdrop-filter:blur(1px);z-index:1}[data-v-410ba3b7] .el-overlay-dialog>.el-dialog .el-dialog__footer .el-button.is-disabled.closing{cursor:revert}.ki-form-dialog.el-dialog__wrapper{display:flex}.ki-form-dialog.el-dialog__wrapper>.el-dialog{min-width:855px}.ki-form-dialog.el-dialog__wrapper>.el-dialog:not(.is-fullscreen){margin:auto!important}.ki-form-dialog.el-dialog__wrapper>.el-dialog:not(.is-fullscreen) .el-dialog__body{max-height:calc(100vh - 75px)}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__header{display:flex;justify-content:space-between;align-items:center}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__header>.el-dialog__headerbtn{display:none}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__header .el-icon-copy-document,.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__header .el-icon-full-screen{cursor:pointer}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__header .el-icon-copy-document:hover,.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__header .el-icon-full-screen:hover{color:#409eff}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__header .el-icon-close{cursor:pointer;font-size:20px;margin-left:15px}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__header .el-icon-close:hover{color:#ff7575}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body{max-height:calc(100vh - 45px);overflow-y:auto;padding:0;display:flex;flex-direction:column}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form-item:last-child{margin-bottom:0}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body ::-webkit-scrollbar{width:6px;height:6px}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body ::-webkit-scrollbar-thumb{border-radius:10px;background-color:silver}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form.readonly [disabled=disabled],.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form.readonly .is-disabled,.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form.readonly .is-disabled *,.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form.readonly .disabled{color:revert!important;cursor:revert!important}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form.readonly .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner,.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form.readonly .el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:#409eff;border-color:#409eff}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form.readonly .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:#fff;cursor:revert}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form.readonly .el-radio__input.is-disabled.is-checked .el-radio__inner{border-color:#409eff;background:#409EFF}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form.readonly .el-radio__input.is-disabled.is-checked .el-radio__inner:after{cursor:revert;background-color:#fff;border-color:revert}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form.readonly .el-slider__runway.disabled>.el-slider__button-wrapper{cursor:revert}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form.readonly .el-slider__runway.disabled>.el-slider__button-wrapper>.el-slider__button{cursor:revert;border-color:#409eff}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form.readonly .el-color-picker.is-disabled>.el-color-picker__mask{display:none}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__body .el-form.readonly .el-upload{cursor:revert}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__footer{position:absolute;bottom:0;right:0;backdrop-filter:blur(1px);z-index:1}.ki-form-dialog.el-dialog__wrapper>.el-dialog .el-dialog__footer .el-button.is-disabled.closing{cursor:revert}.ki-switch.inline-prompt .el-switch__label *{font-size:12px}.ki-switch.inline-prompt .el-switch__label--left,.ki-switch.inline-prompt .el-switch__label--right{position:absolute;z-index:1;margin:0}.ki-switch.inline-prompt .el-switch__label--left:not(.is-active),.ki-switch.inline-prompt .el-switch__label--right:not(.is-active){display:none}.ki-switch.inline-prompt .el-switch__label--left{left:23px;color:gray!important}.ki-switch.inline-prompt .el-switch__label--right{left:9px;color:#fff!important}.ki-switch.inline-prompt .el-switch__core{border-radius:12px!important}.ki-switch.inline-prompt .el-switch__core:after{top:1px}.ki-switch.inline-prompt:not(.is-checked) .el-switch__core:after{left:2px}.ki-switch.inline-prompt.is-checked .el-switch__core:after{background-color:#fff}[data-v-60329e8a] .flipX>.el-icon-sort{transform:rotate(90deg)}[data-v-60329e8a] .cropper-point{width:8px!important;height:8px!important;border-radius:50%}[data-v-60329e8a] .el-dialog__footer{width:100%}.rotateDegree.el-slider[data-v-60329e8a]{width:551px}.rotateDegree.el-slider[data-v-60329e8a] .el-slider__marks-text:last-child{width:36.406px}.resolution[data-v-60329e8a]{position:absolute;right:0;bottom:0;background-color:#0000004d;color:#fffc;padding:3px 6px;border-radius:5px 0 0;font-size:13px;user-select:none;pointer-events:none}.spill-text[data-v-60329e8a]{display:flex;align-items:center;font-size:14px;color:#666}.spill-text .text[data-v-60329e8a]{line-height:1;margin-right:4px}.quality.el-slider[data-v-60329e8a]{width:75px}[data-v-60329e8a] .el-form-item__label-wrap{margin-left:unset!important}.el-form-item[data-v-60329e8a]{margin-bottom:unset}[data-v-60329e8a] .cropper-hidden{display:none!important;max-height:100%!important}[data-v-cec51138] .el-dialog{min-width:750px}[data-v-cec51138] .el-upload-list--picture-card{font-size:0}[data-v-cec51138] .el-upload-list--picture-card .el-upload-list__item{user-select:none;transition:none!important}[data-v-cec51138] .el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-thumbnail{object-fit:contain}[data-v-cec51138] .el-upload--picture-card{position:relative;margin-bottom:8px}[data-v-cec51138] .el-upload--picture-card .el-upload__box{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}[data-v-cec51138] .el-upload--picture-card .el-upload__box i{color:#2196f3cc}[data-v-cec51138] .el-upload--picture-card .el-upload__box .el-upload__tip{margin-top:10px;width:100%;color:#2196f3cc;line-height:16px;transform-origin:top;transform:scale(.9)}.canSort[data-v-cec51138] .el-upload-list__item-actions{cursor:grab}.isFull[data-v-cec51138] .el-upload-list--picture-card>.el-upload-list__item:last-child{margin-right:0}.isFull[data-v-cec51138] .el-upload--picture-card{display:none}.ellipsis-1[data-v-cec51138]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.imgpond__cursor-grabbing,.imgpond__cursor-grabbing *,.imgpond__cursor-grabbing .canSort .el-upload-list__item-actions{cursor:grabbing!important}`)),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
var $g = Object.defineProperty, Cg = Object.defineProperties;
var Eg = Object.getOwnPropertyDescriptors;
var ol = Object.getOwnPropertySymbols;
var Ag = Object.prototype.hasOwnProperty, Sg = Object.prototype.propertyIsEnumerable;
var fi = Math.pow, il = (t, e, n) => e in t ? $g(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, bt = (t, e) => {
  for (var n in e || (e = {}))
    Ag.call(e, n) && il(t, n, e[n]);
  if (ol)
    for (var n of ol(e))
      Sg.call(e, n) && il(t, n, e[n]);
  return t;
}, er = (t, e) => Cg(t, Eg(e));
var An = (t, e, n) => new Promise((r, o) => {
  var i = (f) => {
    try {
      c(n.next(f));
    } catch (u) {
      o(u);
    }
  }, l = (f) => {
    try {
      c(n.throw(f));
    } catch (u) {
      o(u);
    }
  }, c = (f) => f.done ? r(f.value) : Promise.resolve(f.value).then(i, l);
  c((n = n.apply(t, e)).next());
});
import Ro, { getCurrentScope as Tg, onScopeDispose as Og, unref as jg, watch as Dg } from "vue";
Ro.util.warn;
var Pg = typeof global == "object" && global && global.Object === Object && global;
const Du = Pg;
var Bg = typeof self == "object" && self && self.Object === Object && self, kg = Du || Bg || Function("return this")();
const le = kg;
var Ig = le.Symbol;
const ee = Ig;
var Pu = Object.prototype, Mg = Pu.hasOwnProperty, Rg = Pu.toString, nr = ee ? ee.toStringTag : void 0;
function Lg(t) {
  var e = Mg.call(t, nr), n = t[nr];
  try {
    t[nr] = void 0;
    var r = !0;
  } catch (i) {
  }
  var o = Rg.call(t);
  return r && (e ? t[nr] = n : delete t[nr]), o;
}
var Fg = Object.prototype, Ng = Fg.toString;
function zg(t) {
  return Ng.call(t);
}
var Ug = "[object Null]", Wg = "[object Undefined]", al = ee ? ee.toStringTag : void 0;
function an(t) {
  return t == null ? t === void 0 ? Wg : Ug : al && al in Object(t) ? Lg(t) : zg(t);
}
function ne(t) {
  return t != null && typeof t == "object";
}
var Hg = "[object Symbol]";
function va(t) {
  return typeof t == "symbol" || ne(t) && an(t) == Hg;
}
function Vg(t, e) {
  for (var n = -1, r = t == null ? 0 : t.length, o = Array(r); ++n < r; )
    o[n] = e(t[n], n, t);
  return o;
}
var Xg = Array.isArray;
const zt = Xg;
var Yg = 1 / 0, sl = ee ? ee.prototype : void 0, ll = sl ? sl.toString : void 0;
function Bu(t) {
  if (typeof t == "string")
    return t;
  if (zt(t))
    return Vg(t, Bu) + "";
  if (va(t))
    return ll ? ll.call(t) : "";
  var e = t + "";
  return e == "0" && 1 / t == -Yg ? "-0" : e;
}
function ce(t) {
  var e = typeof t;
  return t != null && (e == "object" || e == "function");
}
function ba(t) {
  return t;
}
var qg = "[object AsyncFunction]", Gg = "[object Function]", Kg = "[object GeneratorFunction]", Zg = "[object Proxy]";
function wa(t) {
  if (!ce(t))
    return !1;
  var e = an(t);
  return e == Gg || e == Kg || e == qg || e == Zg;
}
var Jg = le["__core-js_shared__"];
const di = Jg;
var cl = function() {
  var t = /[^.]+$/.exec(di && di.keys && di.keys.IE_PROTO || "");
  return t ? "Symbol(src)_1." + t : "";
}();
function Qg(t) {
  return !!cl && cl in t;
}
var tm = Function.prototype, em = tm.toString;
function sn(t) {
  if (t != null) {
    try {
      return em.call(t);
    } catch (e) {
    }
    try {
      return t + "";
    } catch (e) {
    }
  }
  return "";
}
var nm = /[\\^$.*+?()[\]{}|]/g, rm = /^\[object .+?Constructor\]$/, om = Function.prototype, im = Object.prototype, am = om.toString, sm = im.hasOwnProperty, lm = RegExp(
  "^" + am.call(sm).replace(nm, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function cm(t) {
  if (!ce(t) || Qg(t))
    return !1;
  var e = wa(t) ? lm : rm;
  return e.test(sn(t));
}
function um(t, e) {
  return t == null ? void 0 : t[e];
}
function ln(t, e) {
  var n = um(t, e);
  return cm(n) ? n : void 0;
}
var fm = ln(le, "WeakMap");
const Ii = fm;
var ul = Object.create, dm = function() {
  function t() {
  }
  return function(e) {
    if (!ce(e))
      return {};
    if (ul)
      return ul(e);
    t.prototype = e;
    var n = new t();
    return t.prototype = void 0, n;
  };
}();
const hm = dm;
function pm(t, e, n) {
  switch (n.length) {
    case 0:
      return t.call(e);
    case 1:
      return t.call(e, n[0]);
    case 2:
      return t.call(e, n[0], n[1]);
    case 3:
      return t.call(e, n[0], n[1], n[2]);
  }
  return t.apply(e, n);
}
function ku(t, e) {
  var n = -1, r = t.length;
  for (e || (e = Array(r)); ++n < r; )
    e[n] = t[n];
  return e;
}
var gm = 800, mm = 16, vm = Date.now;
function bm(t) {
  var e = 0, n = 0;
  return function() {
    var r = vm(), o = mm - (r - n);
    if (n = r, o > 0) {
      if (++e >= gm)
        return arguments[0];
    } else
      e = 0;
    return t.apply(void 0, arguments);
  };
}
function wm(t) {
  return function() {
    return t;
  };
}
var ym = function() {
  try {
    var t = ln(Object, "defineProperty");
    return t({}, "", {}), t;
  } catch (e) {
  }
}();
const vo = ym;
var _m = vo ? function(t, e) {
  return vo(t, "toString", {
    configurable: !0,
    enumerable: !1,
    value: wm(e),
    writable: !0
  });
} : ba;
const xm = _m;
var $m = bm(xm);
const Cm = $m;
function Em(t, e) {
  for (var n = -1, r = t == null ? 0 : t.length; ++n < r && e(t[n], n, t) !== !1; )
    ;
  return t;
}
var Am = 9007199254740991, Sm = /^(?:0|[1-9]\d*)$/;
function ya(t, e) {
  var n = typeof t;
  return e = e != null ? e : Am, !!e && (n == "number" || n != "symbol" && Sm.test(t)) && t > -1 && t % 1 == 0 && t < e;
}
function Lo(t, e, n) {
  e == "__proto__" && vo ? vo(t, e, {
    configurable: !0,
    enumerable: !0,
    value: n,
    writable: !0
  }) : t[e] = n;
}
function Mr(t, e) {
  return t === e || t !== t && e !== e;
}
var Tm = Object.prototype, Om = Tm.hasOwnProperty;
function Iu(t, e, n) {
  var r = t[e];
  (!(Om.call(t, e) && Mr(r, n)) || n === void 0 && !(e in t)) && Lo(t, e, n);
}
function Xn(t, e, n, r) {
  var o = !n;
  n || (n = {});
  for (var i = -1, l = e.length; ++i < l; ) {
    var c = e[i], f = r ? r(n[c], t[c], c, n, t) : void 0;
    f === void 0 && (f = t[c]), o ? Lo(n, c, f) : Iu(n, c, f);
  }
  return n;
}
var fl = Math.max;
function jm(t, e, n) {
  return e = fl(e === void 0 ? t.length - 1 : e, 0), function() {
    for (var r = arguments, o = -1, i = fl(r.length - e, 0), l = Array(i); ++o < i; )
      l[o] = r[e + o];
    o = -1;
    for (var c = Array(e + 1); ++o < e; )
      c[o] = r[o];
    return c[e] = n(l), pm(t, this, c);
  };
}
function Dm(t, e) {
  return Cm(jm(t, e, ba), t + "");
}
var Pm = 9007199254740991;
function _a(t) {
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Pm;
}
function Fo(t) {
  return t != null && _a(t.length) && !wa(t);
}
function Bm(t, e, n) {
  if (!ce(n))
    return !1;
  var r = typeof e;
  return (r == "number" ? Fo(n) && ya(e, n.length) : r == "string" && e in n) ? Mr(n[e], t) : !1;
}
function Mu(t) {
  return Dm(function(e, n) {
    var r = -1, o = n.length, i = o > 1 ? n[o - 1] : void 0, l = o > 2 ? n[2] : void 0;
    for (i = t.length > 3 && typeof i == "function" ? (o--, i) : void 0, l && Bm(n[0], n[1], l) && (i = o < 3 ? void 0 : i, o = 1), e = Object(e); ++r < o; ) {
      var c = n[r];
      c && t(e, c, r, i);
    }
    return e;
  });
}
var km = Object.prototype;
function xa(t) {
  var e = t && t.constructor, n = typeof e == "function" && e.prototype || km;
  return t === n;
}
function Im(t, e) {
  for (var n = -1, r = Array(t); ++n < t; )
    r[n] = e(n);
  return r;
}
var Mm = "[object Arguments]";
function dl(t) {
  return ne(t) && an(t) == Mm;
}
var Ru = Object.prototype, Rm = Ru.hasOwnProperty, Lm = Ru.propertyIsEnumerable, Fm = dl(function() {
  return arguments;
}()) ? dl : function(t) {
  return ne(t) && Rm.call(t, "callee") && !Lm.call(t, "callee");
};
const bo = Fm;
function Nm() {
  return !1;
}
var Lu = typeof exports == "object" && exports && !exports.nodeType && exports, hl = Lu && typeof module == "object" && module && !module.nodeType && module, zm = hl && hl.exports === Lu, pl = zm ? le.Buffer : void 0, Um = pl ? pl.isBuffer : void 0, Wm = Um || Nm;
const Cr = Wm;
var Hm = "[object Arguments]", Vm = "[object Array]", Xm = "[object Boolean]", Ym = "[object Date]", qm = "[object Error]", Gm = "[object Function]", Km = "[object Map]", Zm = "[object Number]", Jm = "[object Object]", Qm = "[object RegExp]", tv = "[object Set]", ev = "[object String]", nv = "[object WeakMap]", rv = "[object ArrayBuffer]", ov = "[object DataView]", iv = "[object Float32Array]", av = "[object Float64Array]", sv = "[object Int8Array]", lv = "[object Int16Array]", cv = "[object Int32Array]", uv = "[object Uint8Array]", fv = "[object Uint8ClampedArray]", dv = "[object Uint16Array]", hv = "[object Uint32Array]", G = {};
G[iv] = G[av] = G[sv] = G[lv] = G[cv] = G[uv] = G[fv] = G[dv] = G[hv] = !0;
G[Hm] = G[Vm] = G[rv] = G[Xm] = G[ov] = G[Ym] = G[qm] = G[Gm] = G[Km] = G[Zm] = G[Jm] = G[Qm] = G[tv] = G[ev] = G[nv] = !1;
function pv(t) {
  return ne(t) && _a(t.length) && !!G[an(t)];
}
function $a(t) {
  return function(e) {
    return t(e);
  };
}
var Fu = typeof exports == "object" && exports && !exports.nodeType && exports, gr = Fu && typeof module == "object" && module && !module.nodeType && module, gv = gr && gr.exports === Fu, hi = gv && Du.process, mv = function() {
  try {
    var t = gr && gr.require && gr.require("util").types;
    return t || hi && hi.binding && hi.binding("util");
  } catch (e) {
  }
}();
const Un = mv;
var gl = Un && Un.isTypedArray, vv = gl ? $a(gl) : pv;
const Ca = vv;
var bv = Object.prototype, wv = bv.hasOwnProperty;
function Nu(t, e) {
  var n = zt(t), r = !n && bo(t), o = !n && !r && Cr(t), i = !n && !r && !o && Ca(t), l = n || r || o || i, c = l ? Im(t.length, String) : [], f = c.length;
  for (var u in t)
    (e || wv.call(t, u)) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
    (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
    o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
    i && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
    ya(u, f))) && c.push(u);
  return c;
}
function zu(t, e) {
  return function(n) {
    return t(e(n));
  };
}
var yv = zu(Object.keys, Object);
const _v = yv;
var xv = Object.prototype, $v = xv.hasOwnProperty;
function Cv(t) {
  if (!xa(t))
    return _v(t);
  var e = [];
  for (var n in Object(t))
    $v.call(t, n) && n != "constructor" && e.push(n);
  return e;
}
function Rr(t) {
  return Fo(t) ? Nu(t) : Cv(t);
}
function Ev(t) {
  var e = [];
  if (t != null)
    for (var n in Object(t))
      e.push(n);
  return e;
}
var Av = Object.prototype, Sv = Av.hasOwnProperty;
function Tv(t) {
  if (!ce(t))
    return Ev(t);
  var e = xa(t), n = [];
  for (var r in t)
    r == "constructor" && (e || !Sv.call(t, r)) || n.push(r);
  return n;
}
function Yn(t) {
  return Fo(t) ? Nu(t, !0) : Tv(t);
}
var Ov = Mu(function(t, e, n, r) {
  Xn(e, Yn(e), t, r);
});
const jv = Ov;
var Dv = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Pv = /^\w*$/;
function Ea(t, e) {
  if (zt(t))
    return !1;
  var n = typeof t;
  return n == "number" || n == "symbol" || n == "boolean" || t == null || va(t) ? !0 : Pv.test(t) || !Dv.test(t) || e != null && t in Object(e);
}
var Bv = ln(Object, "create");
const Er = Bv;
function kv() {
  this.__data__ = Er ? Er(null) : {}, this.size = 0;
}
function Iv(t) {
  var e = this.has(t) && delete this.__data__[t];
  return this.size -= e ? 1 : 0, e;
}
var Mv = "__lodash_hash_undefined__", Rv = Object.prototype, Lv = Rv.hasOwnProperty;
function Fv(t) {
  var e = this.__data__;
  if (Er) {
    var n = e[t];
    return n === Mv ? void 0 : n;
  }
  return Lv.call(e, t) ? e[t] : void 0;
}
var Nv = Object.prototype, zv = Nv.hasOwnProperty;
function Uv(t) {
  var e = this.__data__;
  return Er ? e[t] !== void 0 : zv.call(e, t);
}
var Wv = "__lodash_hash_undefined__";
function Hv(t, e) {
  var n = this.__data__;
  return this.size += this.has(t) ? 0 : 1, n[t] = Er && e === void 0 ? Wv : e, this;
}
function en(t) {
  var e = -1, n = t == null ? 0 : t.length;
  for (this.clear(); ++e < n; ) {
    var r = t[e];
    this.set(r[0], r[1]);
  }
}
en.prototype.clear = kv;
en.prototype.delete = Iv;
en.prototype.get = Fv;
en.prototype.has = Uv;
en.prototype.set = Hv;
function Vv() {
  this.__data__ = [], this.size = 0;
}
function No(t, e) {
  for (var n = t.length; n--; )
    if (Mr(t[n][0], e))
      return n;
  return -1;
}
var Xv = Array.prototype, Yv = Xv.splice;
function qv(t) {
  var e = this.__data__, n = No(e, t);
  if (n < 0)
    return !1;
  var r = e.length - 1;
  return n == r ? e.pop() : Yv.call(e, n, 1), --this.size, !0;
}
function Gv(t) {
  var e = this.__data__, n = No(e, t);
  return n < 0 ? void 0 : e[n][1];
}
function Kv(t) {
  return No(this.__data__, t) > -1;
}
function Zv(t, e) {
  var n = this.__data__, r = No(n, t);
  return r < 0 ? (++this.size, n.push([t, e])) : n[r][1] = e, this;
}
function be(t) {
  var e = -1, n = t == null ? 0 : t.length;
  for (this.clear(); ++e < n; ) {
    var r = t[e];
    this.set(r[0], r[1]);
  }
}
be.prototype.clear = Vv;
be.prototype.delete = qv;
be.prototype.get = Gv;
be.prototype.has = Kv;
be.prototype.set = Zv;
var Jv = ln(le, "Map");
const Ar = Jv;
function Qv() {
  this.size = 0, this.__data__ = {
    hash: new en(),
    map: new (Ar || be)(),
    string: new en()
  };
}
function tb(t) {
  var e = typeof t;
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
}
function zo(t, e) {
  var n = t.__data__;
  return tb(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
}
function eb(t) {
  var e = zo(this, t).delete(t);
  return this.size -= e ? 1 : 0, e;
}
function nb(t) {
  return zo(this, t).get(t);
}
function rb(t) {
  return zo(this, t).has(t);
}
function ob(t, e) {
  var n = zo(this, t), r = n.size;
  return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
}
function we(t) {
  var e = -1, n = t == null ? 0 : t.length;
  for (this.clear(); ++e < n; ) {
    var r = t[e];
    this.set(r[0], r[1]);
  }
}
we.prototype.clear = Qv;
we.prototype.delete = eb;
we.prototype.get = nb;
we.prototype.has = rb;
we.prototype.set = ob;
var ib = "Expected a function";
function Aa(t, e) {
  if (typeof t != "function" || e != null && typeof e != "function")
    throw new TypeError(ib);
  var n = function() {
    var r = arguments, o = e ? e.apply(this, r) : r[0], i = n.cache;
    if (i.has(o))
      return i.get(o);
    var l = t.apply(this, r);
    return n.cache = i.set(o, l) || i, l;
  };
  return n.cache = new (Aa.Cache || we)(), n;
}
Aa.Cache = we;
var ab = 500;
function sb(t) {
  var e = Aa(t, function(r) {
    return n.size === ab && n.clear(), r;
  }), n = e.cache;
  return e;
}
var lb = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, cb = /\\(\\)?/g, ub = sb(function(t) {
  var e = [];
  return t.charCodeAt(0) === 46 && e.push(""), t.replace(lb, function(n, r, o, i) {
    e.push(o ? i.replace(cb, "$1") : r || n);
  }), e;
});
const fb = ub;
function db(t) {
  return t == null ? "" : Bu(t);
}
function Uu(t, e) {
  return zt(t) ? t : Ea(t, e) ? [t] : fb(db(t));
}
var hb = 1 / 0;
function Uo(t) {
  if (typeof t == "string" || va(t))
    return t;
  var e = t + "";
  return e == "0" && 1 / t == -hb ? "-0" : e;
}
function Wu(t, e) {
  e = Uu(e, t);
  for (var n = 0, r = e.length; t != null && n < r; )
    t = t[Uo(e[n++])];
  return n && n == r ? t : void 0;
}
function pb(t, e, n) {
  var r = t == null ? void 0 : Wu(t, e);
  return r === void 0 ? n : r;
}
function Hu(t, e) {
  for (var n = -1, r = e.length, o = t.length; ++n < r; )
    t[o + n] = e[n];
  return t;
}
var gb = zu(Object.getPrototypeOf, Object);
const Sa = gb;
var mb = "[object Object]", vb = Function.prototype, bb = Object.prototype, Vu = vb.toString, wb = bb.hasOwnProperty, yb = Vu.call(Object);
function Xu(t) {
  if (!ne(t) || an(t) != mb)
    return !1;
  var e = Sa(t);
  if (e === null)
    return !0;
  var n = wb.call(e, "constructor") && e.constructor;
  return typeof n == "function" && n instanceof n && Vu.call(n) == yb;
}
function _b() {
  this.__data__ = new be(), this.size = 0;
}
function xb(t) {
  var e = this.__data__, n = e.delete(t);
  return this.size = e.size, n;
}
function $b(t) {
  return this.__data__.get(t);
}
function Cb(t) {
  return this.__data__.has(t);
}
var Eb = 200;
function Ab(t, e) {
  var n = this.__data__;
  if (n instanceof be) {
    var r = n.__data__;
    if (!Ar || r.length < Eb - 1)
      return r.push([t, e]), this.size = ++n.size, this;
    n = this.__data__ = new we(r);
  }
  return n.set(t, e), this.size = n.size, this;
}
function Xt(t) {
  var e = this.__data__ = new be(t);
  this.size = e.size;
}
Xt.prototype.clear = _b;
Xt.prototype.delete = xb;
Xt.prototype.get = $b;
Xt.prototype.has = Cb;
Xt.prototype.set = Ab;
function Sb(t, e) {
  return t && Xn(e, Rr(e), t);
}
function Tb(t, e) {
  return t && Xn(e, Yn(e), t);
}
var Yu = typeof exports == "object" && exports && !exports.nodeType && exports, ml = Yu && typeof module == "object" && module && !module.nodeType && module, Ob = ml && ml.exports === Yu, vl = Ob ? le.Buffer : void 0, bl = vl ? vl.allocUnsafe : void 0;
function qu(t, e) {
  if (e)
    return t.slice();
  var n = t.length, r = bl ? bl(n) : new t.constructor(n);
  return t.copy(r), r;
}
function jb(t, e) {
  for (var n = -1, r = t == null ? 0 : t.length, o = 0, i = []; ++n < r; ) {
    var l = t[n];
    e(l, n, t) && (i[o++] = l);
  }
  return i;
}
function Gu() {
  return [];
}
var Db = Object.prototype, Pb = Db.propertyIsEnumerable, wl = Object.getOwnPropertySymbols, Bb = wl ? function(t) {
  return t == null ? [] : (t = Object(t), jb(wl(t), function(e) {
    return Pb.call(t, e);
  }));
} : Gu;
const Ta = Bb;
function kb(t, e) {
  return Xn(t, Ta(t), e);
}
var Ib = Object.getOwnPropertySymbols, Mb = Ib ? function(t) {
  for (var e = []; t; )
    Hu(e, Ta(t)), t = Sa(t);
  return e;
} : Gu;
const Ku = Mb;
function Rb(t, e) {
  return Xn(t, Ku(t), e);
}
function Zu(t, e, n) {
  var r = e(t);
  return zt(t) ? r : Hu(r, n(t));
}
function Mi(t) {
  return Zu(t, Rr, Ta);
}
function Lb(t) {
  return Zu(t, Yn, Ku);
}
var Fb = ln(le, "DataView");
const Ri = Fb;
var Nb = ln(le, "Promise");
const Li = Nb;
var zb = ln(le, "Set");
const Fi = zb;
var yl = "[object Map]", Ub = "[object Object]", _l = "[object Promise]", xl = "[object Set]", $l = "[object WeakMap]", Cl = "[object DataView]", Wb = sn(Ri), Hb = sn(Ar), Vb = sn(Li), Xb = sn(Fi), Yb = sn(Ii), Ke = an;
(Ri && Ke(new Ri(new ArrayBuffer(1))) != Cl || Ar && Ke(new Ar()) != yl || Li && Ke(Li.resolve()) != _l || Fi && Ke(new Fi()) != xl || Ii && Ke(new Ii()) != $l) && (Ke = function(t) {
  var e = an(t), n = e == Ub ? t.constructor : void 0, r = n ? sn(n) : "";
  if (r)
    switch (r) {
      case Wb:
        return Cl;
      case Hb:
        return yl;
      case Vb:
        return _l;
      case Xb:
        return xl;
      case Yb:
        return $l;
    }
  return e;
});
const Sr = Ke;
var qb = Object.prototype, Gb = qb.hasOwnProperty;
function Kb(t) {
  var e = t.length, n = new t.constructor(e);
  return e && typeof t[0] == "string" && Gb.call(t, "index") && (n.index = t.index, n.input = t.input), n;
}
var Zb = le.Uint8Array;
const wo = Zb;
function Oa(t) {
  var e = new t.constructor(t.byteLength);
  return new wo(e).set(new wo(t)), e;
}
function Jb(t, e) {
  var n = e ? Oa(t.buffer) : t.buffer;
  return new t.constructor(n, t.byteOffset, t.byteLength);
}
var Qb = /\w*$/;
function tw(t) {
  var e = new t.constructor(t.source, Qb.exec(t));
  return e.lastIndex = t.lastIndex, e;
}
var El = ee ? ee.prototype : void 0, Al = El ? El.valueOf : void 0;
function ew(t) {
  return Al ? Object(Al.call(t)) : {};
}
function Ju(t, e) {
  var n = e ? Oa(t.buffer) : t.buffer;
  return new t.constructor(n, t.byteOffset, t.length);
}
var nw = "[object Boolean]", rw = "[object Date]", ow = "[object Map]", iw = "[object Number]", aw = "[object RegExp]", sw = "[object Set]", lw = "[object String]", cw = "[object Symbol]", uw = "[object ArrayBuffer]", fw = "[object DataView]", dw = "[object Float32Array]", hw = "[object Float64Array]", pw = "[object Int8Array]", gw = "[object Int16Array]", mw = "[object Int32Array]", vw = "[object Uint8Array]", bw = "[object Uint8ClampedArray]", ww = "[object Uint16Array]", yw = "[object Uint32Array]";
function _w(t, e, n) {
  var r = t.constructor;
  switch (e) {
    case uw:
      return Oa(t);
    case nw:
    case rw:
      return new r(+t);
    case fw:
      return Jb(t, n);
    case dw:
    case hw:
    case pw:
    case gw:
    case mw:
    case vw:
    case bw:
    case ww:
    case yw:
      return Ju(t, n);
    case ow:
      return new r();
    case iw:
    case lw:
      return new r(t);
    case aw:
      return tw(t);
    case sw:
      return new r();
    case cw:
      return ew(t);
  }
}
function Qu(t) {
  return typeof t.constructor == "function" && !xa(t) ? hm(Sa(t)) : {};
}
var xw = "[object Map]";
function $w(t) {
  return ne(t) && Sr(t) == xw;
}
var Sl = Un && Un.isMap, Cw = Sl ? $a(Sl) : $w;
const Ew = Cw;
var Aw = "[object Set]";
function Sw(t) {
  return ne(t) && Sr(t) == Aw;
}
var Tl = Un && Un.isSet, Tw = Tl ? $a(Tl) : Sw;
const Ow = Tw;
var jw = 1, Dw = 2, Pw = 4, tf = "[object Arguments]", Bw = "[object Array]", kw = "[object Boolean]", Iw = "[object Date]", Mw = "[object Error]", ef = "[object Function]", Rw = "[object GeneratorFunction]", Lw = "[object Map]", Fw = "[object Number]", nf = "[object Object]", Nw = "[object RegExp]", zw = "[object Set]", Uw = "[object String]", Ww = "[object Symbol]", Hw = "[object WeakMap]", Vw = "[object ArrayBuffer]", Xw = "[object DataView]", Yw = "[object Float32Array]", qw = "[object Float64Array]", Gw = "[object Int8Array]", Kw = "[object Int16Array]", Zw = "[object Int32Array]", Jw = "[object Uint8Array]", Qw = "[object Uint8ClampedArray]", ty = "[object Uint16Array]", ey = "[object Uint32Array]", H = {};
H[tf] = H[Bw] = H[Vw] = H[Xw] = H[kw] = H[Iw] = H[Yw] = H[qw] = H[Gw] = H[Kw] = H[Zw] = H[Lw] = H[Fw] = H[nf] = H[Nw] = H[zw] = H[Uw] = H[Ww] = H[Jw] = H[Qw] = H[ty] = H[ey] = !0;
H[Mw] = H[ef] = H[Hw] = !1;
function so(t, e, n, r, o, i) {
  var l, c = e & jw, f = e & Dw, u = e & Pw;
  if (n && (l = o ? n(t, r, o, i) : n(t)), l !== void 0)
    return l;
  if (!ce(t))
    return t;
  var p = zt(t);
  if (p) {
    if (l = Kb(t), !c)
      return ku(t, l);
  } else {
    var h = Sr(t), m = h == ef || h == Rw;
    if (Cr(t))
      return qu(t, c);
    if (h == nf || h == tf || m && !o) {
      if (l = f || m ? {} : Qu(t), !c)
        return f ? Rb(t, Tb(l, t)) : kb(t, Sb(l, t));
    } else {
      if (!H[h])
        return o ? t : {};
      l = _w(t, h, c);
    }
  }
  i || (i = new Xt());
  var b = i.get(t);
  if (b)
    return b;
  i.set(t, l), Ow(t) ? t.forEach(function(x) {
    l.add(so(x, e, n, x, t, i));
  }) : Ew(t) && t.forEach(function(x, $) {
    l.set($, so(x, e, n, $, t, i));
  });
  var v = u ? f ? Lb : Mi : f ? Yn : Rr, _ = p ? void 0 : v(t);
  return Em(_ || t, function(x, $) {
    _ && ($ = x, x = t[$]), Iu(l, $, so(x, e, n, $, t, i));
  }), l;
}
var ny = 1, ry = 4;
function oy(t) {
  return so(t, ny | ry);
}
var iy = "__lodash_hash_undefined__";
function ay(t) {
  return this.__data__.set(t, iy), this;
}
function sy(t) {
  return this.__data__.has(t);
}
function yo(t) {
  var e = -1, n = t == null ? 0 : t.length;
  for (this.__data__ = new we(); ++e < n; )
    this.add(t[e]);
}
yo.prototype.add = yo.prototype.push = ay;
yo.prototype.has = sy;
function ly(t, e) {
  for (var n = -1, r = t == null ? 0 : t.length; ++n < r; )
    if (e(t[n], n, t))
      return !0;
  return !1;
}
function cy(t, e) {
  return t.has(e);
}
var uy = 1, fy = 2;
function rf(t, e, n, r, o, i) {
  var l = n & uy, c = t.length, f = e.length;
  if (c != f && !(l && f > c))
    return !1;
  var u = i.get(t), p = i.get(e);
  if (u && p)
    return u == e && p == t;
  var h = -1, m = !0, b = n & fy ? new yo() : void 0;
  for (i.set(t, e), i.set(e, t); ++h < c; ) {
    var v = t[h], _ = e[h];
    if (r)
      var x = l ? r(_, v, h, e, t, i) : r(v, _, h, t, e, i);
    if (x !== void 0) {
      if (x)
        continue;
      m = !1;
      break;
    }
    if (b) {
      if (!ly(e, function($, E) {
        if (!cy(b, E) && (v === $ || o(v, $, n, r, i)))
          return b.push(E);
      })) {
        m = !1;
        break;
      }
    } else if (!(v === _ || o(v, _, n, r, i))) {
      m = !1;
      break;
    }
  }
  return i.delete(t), i.delete(e), m;
}
function dy(t) {
  var e = -1, n = Array(t.size);
  return t.forEach(function(r, o) {
    n[++e] = [o, r];
  }), n;
}
function hy(t) {
  var e = -1, n = Array(t.size);
  return t.forEach(function(r) {
    n[++e] = r;
  }), n;
}
var py = 1, gy = 2, my = "[object Boolean]", vy = "[object Date]", by = "[object Error]", wy = "[object Map]", yy = "[object Number]", _y = "[object RegExp]", xy = "[object Set]", $y = "[object String]", Cy = "[object Symbol]", Ey = "[object ArrayBuffer]", Ay = "[object DataView]", Ol = ee ? ee.prototype : void 0, pi = Ol ? Ol.valueOf : void 0;
function Sy(t, e, n, r, o, i, l) {
  switch (n) {
    case Ay:
      if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset)
        return !1;
      t = t.buffer, e = e.buffer;
    case Ey:
      return !(t.byteLength != e.byteLength || !i(new wo(t), new wo(e)));
    case my:
    case vy:
    case yy:
      return Mr(+t, +e);
    case by:
      return t.name == e.name && t.message == e.message;
    case _y:
    case $y:
      return t == e + "";
    case wy:
      var c = dy;
    case xy:
      var f = r & py;
      if (c || (c = hy), t.size != e.size && !f)
        return !1;
      var u = l.get(t);
      if (u)
        return u == e;
      r |= gy, l.set(t, e);
      var p = rf(c(t), c(e), r, o, i, l);
      return l.delete(t), p;
    case Cy:
      if (pi)
        return pi.call(t) == pi.call(e);
  }
  return !1;
}
var Ty = 1, Oy = Object.prototype, jy = Oy.hasOwnProperty;
function Dy(t, e, n, r, o, i) {
  var l = n & Ty, c = Mi(t), f = c.length, u = Mi(e), p = u.length;
  if (f != p && !l)
    return !1;
  for (var h = f; h--; ) {
    var m = c[h];
    if (!(l ? m in e : jy.call(e, m)))
      return !1;
  }
  var b = i.get(t), v = i.get(e);
  if (b && v)
    return b == e && v == t;
  var _ = !0;
  i.set(t, e), i.set(e, t);
  for (var x = l; ++h < f; ) {
    m = c[h];
    var $ = t[m], E = e[m];
    if (r)
      var O = l ? r(E, $, m, e, t, i) : r($, E, m, t, e, i);
    if (!(O === void 0 ? $ === E || o($, E, n, r, i) : O)) {
      _ = !1;
      break;
    }
    x || (x = m == "constructor");
  }
  if (_ && !x) {
    var k = t.constructor, D = e.constructor;
    k != D && "constructor" in t && "constructor" in e && !(typeof k == "function" && k instanceof k && typeof D == "function" && D instanceof D) && (_ = !1);
  }
  return i.delete(t), i.delete(e), _;
}
var Py = 1, jl = "[object Arguments]", Dl = "[object Array]", Kr = "[object Object]", By = Object.prototype, Pl = By.hasOwnProperty;
function ky(t, e, n, r, o, i) {
  var l = zt(t), c = zt(e), f = l ? Dl : Sr(t), u = c ? Dl : Sr(e);
  f = f == jl ? Kr : f, u = u == jl ? Kr : u;
  var p = f == Kr, h = u == Kr, m = f == u;
  if (m && Cr(t)) {
    if (!Cr(e))
      return !1;
    l = !0, p = !1;
  }
  if (m && !p)
    return i || (i = new Xt()), l || Ca(t) ? rf(t, e, n, r, o, i) : Sy(t, e, f, n, r, o, i);
  if (!(n & Py)) {
    var b = p && Pl.call(t, "__wrapped__"), v = h && Pl.call(e, "__wrapped__");
    if (b || v) {
      var _ = b ? t.value() : t, x = v ? e.value() : e;
      return i || (i = new Xt()), o(_, x, n, r, i);
    }
  }
  return m ? (i || (i = new Xt()), Dy(t, e, n, r, o, i)) : !1;
}
function ja(t, e, n, r, o) {
  return t === e ? !0 : t == null || e == null || !ne(t) && !ne(e) ? t !== t && e !== e : ky(t, e, n, r, ja, o);
}
var Iy = 1, My = 2;
function Ry(t, e, n, r) {
  var o = n.length, i = o, l = !r;
  if (t == null)
    return !i;
  for (t = Object(t); o--; ) {
    var c = n[o];
    if (l && c[2] ? c[1] !== t[c[0]] : !(c[0] in t))
      return !1;
  }
  for (; ++o < i; ) {
    c = n[o];
    var f = c[0], u = t[f], p = c[1];
    if (l && c[2]) {
      if (u === void 0 && !(f in t))
        return !1;
    } else {
      var h = new Xt();
      if (r)
        var m = r(u, p, f, t, e, h);
      if (!(m === void 0 ? ja(p, u, Iy | My, r, h) : m))
        return !1;
    }
  }
  return !0;
}
function of(t) {
  return t === t && !ce(t);
}
function Ly(t) {
  for (var e = Rr(t), n = e.length; n--; ) {
    var r = e[n], o = t[r];
    e[n] = [r, o, of(o)];
  }
  return e;
}
function af(t, e) {
  return function(n) {
    return n == null ? !1 : n[t] === e && (e !== void 0 || t in Object(n));
  };
}
function Fy(t) {
  var e = Ly(t);
  return e.length == 1 && e[0][2] ? af(e[0][0], e[0][1]) : function(n) {
    return n === t || Ry(n, t, e);
  };
}
function Ny(t, e) {
  return t != null && e in Object(t);
}
function zy(t, e, n) {
  e = Uu(e, t);
  for (var r = -1, o = e.length, i = !1; ++r < o; ) {
    var l = Uo(e[r]);
    if (!(i = t != null && n(t, l)))
      break;
    t = t[l];
  }
  return i || ++r != o ? i : (o = t == null ? 0 : t.length, !!o && _a(o) && ya(l, o) && (zt(t) || bo(t)));
}
function Uy(t, e) {
  return t != null && zy(t, e, Ny);
}
var Wy = 1, Hy = 2;
function Vy(t, e) {
  return Ea(t) && of(e) ? af(Uo(t), e) : function(n) {
    var r = pb(n, t);
    return r === void 0 && r === e ? Uy(n, t) : ja(e, r, Wy | Hy);
  };
}
function Xy(t) {
  return function(e) {
    return e == null ? void 0 : e[t];
  };
}
function Yy(t) {
  return function(e) {
    return Wu(e, t);
  };
}
function qy(t) {
  return Ea(t) ? Xy(Uo(t)) : Yy(t);
}
function Gy(t) {
  return typeof t == "function" ? t : t == null ? ba : typeof t == "object" ? zt(t) ? Vy(t[0], t[1]) : Fy(t) : qy(t);
}
function Ky(t) {
  return function(e, n, r) {
    for (var o = -1, i = Object(e), l = r(e), c = l.length; c--; ) {
      var f = l[t ? c : ++o];
      if (n(i[f], f, i) === !1)
        break;
    }
    return e;
  };
}
var Zy = Ky();
const sf = Zy;
function Jy(t, e) {
  return t && sf(t, e, Rr);
}
function Ni(t, e, n) {
  (n !== void 0 && !Mr(t[e], n) || n === void 0 && !(e in t)) && Lo(t, e, n);
}
function Qy(t) {
  return ne(t) && Fo(t);
}
function zi(t, e) {
  if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
    return t[e];
}
function t0(t) {
  return Xn(t, Yn(t));
}
function e0(t, e, n, r, o, i, l) {
  var c = zi(t, n), f = zi(e, n), u = l.get(f);
  if (u) {
    Ni(t, n, u);
    return;
  }
  var p = i ? i(c, f, n + "", t, e, l) : void 0, h = p === void 0;
  if (h) {
    var m = zt(f), b = !m && Cr(f), v = !m && !b && Ca(f);
    p = f, m || b || v ? zt(c) ? p = c : Qy(c) ? p = ku(c) : b ? (h = !1, p = qu(f, !0)) : v ? (h = !1, p = Ju(f, !0)) : p = [] : Xu(f) || bo(f) ? (p = c, bo(c) ? p = t0(c) : (!ce(c) || wa(c)) && (p = Qu(f))) : h = !1;
  }
  h && (l.set(f, p), o(p, f, r, i, l), l.delete(f)), Ni(t, n, p);
}
function lf(t, e, n, r, o) {
  t !== e && sf(e, function(i, l) {
    if (o || (o = new Xt()), ce(i))
      e0(t, e, l, n, lf, r, o);
    else {
      var c = r ? r(zi(t, l), i, l + "", t, e, o) : void 0;
      c === void 0 && (c = i), Ni(t, l, c);
    }
  }, Yn);
}
var n0 = Mu(function(t, e, n, r) {
  lf(t, e, n, r);
});
const r0 = n0;
function o0(t, e) {
  var n = {};
  return e = Gy(e), Jy(t, function(r, o, i) {
    Lo(n, e(r, o, i), r);
  }), n;
}
var _o = function() {
  return _o = Object.assign || function(t) {
    for (var e, n = 1, r = arguments.length; n < r; n++) {
      e = arguments[n];
      for (var o in e)
        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
    }
    return t;
  }, _o.apply(this, arguments);
};
function i0(t) {
  return t.toLowerCase();
}
var a0 = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], s0 = /[^A-Z0-9]+/gi;
function l0(t, e) {
  e === void 0 && (e = {});
  for (var n = e.splitRegexp, r = n === void 0 ? a0 : n, o = e.stripRegexp, i = o === void 0 ? s0 : o, l = e.transform, c = l === void 0 ? i0 : l, f = e.delimiter, u = f === void 0 ? " " : f, p = Bl(Bl(t, r, "$1\0$2"), i, "\0"), h = 0, m = p.length; p.charAt(h) === "\0"; )
    h++;
  for (; p.charAt(m - 1) === "\0"; )
    m--;
  return p.slice(h, m).split("\0").map(c).join(u);
}
function Bl(t, e, n) {
  return e instanceof RegExp ? t.replace(e, n) : e.reduce(function(r, o) {
    return r.replace(o, n);
  }, t);
}
function cf(t, e) {
  var n = t.charAt(0), r = t.substr(1).toLowerCase();
  return e > 0 && n >= "0" && n <= "9" ? "_" + n + r : "" + n.toUpperCase() + r;
}
function c0(t, e) {
  return e === void 0 && (e = {}), l0(t, _o({ delimiter: "", transform: cf }, e));
}
function u0(t, e) {
  return e === 0 ? t.toLowerCase() : cf(t, e);
}
function f0(t, e) {
  return e === void 0 && (e = {}), c0(t, _o({ transform: u0 }, e));
}
function d0(t, e) {
  const n = /* @__PURE__ */ Object.create(null), r = t.split(",");
  for (let o = 0; o < r.length; o++)
    n[r[o]] = !0;
  return e ? (o) => !!n[o.toLowerCase()] : (o) => !!n[o];
}
const h0 = /* @__PURE__ */ d0(
  "String,Number,Boolean,Function,Symbol,BigInt"
);
function p0(t) {
  const e = t && t.toString().match(/^\s*function (\w+)/);
  return e ? e[1] : t === null ? "null" : "";
}
function g0(t, e) {
  let n;
  const r = p0(e);
  if (h0(r)) {
    const o = typeof t;
    n = o === r.toLowerCase(), !n && o === "object" && (n = t instanceof e);
  } else
    r === "Object" ? n = ce(t) : r === "Array" ? n = Array.isArray(t) : r === "null" ? n = t === null : n = t instanceof e;
  return {
    valid: n,
    expectedType: r
  };
}
function m0({
  prop: t,
  type: e,
  validator: n
}) {
  if (![void 0, null].includes(t) && e) {
    let r = !1;
    const o = Array.isArray(e) ? e : [e], i = [];
    for (let l = 0; l < o.length && !r; l++) {
      const { valid: c, expectedType: f } = g0(t, o[l]);
      i.push(f || ""), r = c;
    }
    if (!r)
      throw new Error(`Invalid prop: type check failed, expecting [${i.join(", ")}], receiving: ${t}`);
  }
  if (n && !n(t))
    throw new Error(`Invalid prop: validator check failed, receiving: ${t}`);
}
function v0(t, {
  mergeObject: e,
  mergeFunction: n
}) {
  const r = [];
  for (let i = t.length - 1; i >= 0; i--)
    r.push(t[i]);
  const o = n ? (i, l) => typeof i == "function" && typeof l == "function" ? n(l, i) : void 0 : void 0;
  return e === "deep" ? r0(...r, o) : jv(...r, o);
}
function b0(t, {
  mergeFunction: e
}) {
  return t.reduce(e, () => {
  });
}
function wt(t, e = {}) {
  const {
    type: n,
    default: r,
    defaultIsDynamic: o = !1,
    required: i = !1,
    validator: l,
    camelizeObjectKeys: c = !1,
    mergeObjectApplyOnlyToDefault: f = !1,
    mergeFunctionApplyOnlyToDefault: u = !0
  } = e;
  let {
    mergeObject: p = "deep",
    mergeFunction: h = !1
  } = e;
  const m = [];
  let b, v = !1, _ = !1;
  const x = ($) => {
    if ($ !== void 0) {
      m0({ type: n, prop: $, validator: l });
      const E = Xu($), O = typeof $ == "function";
      return v = E, _ = O, E ? ($ = oy($), c ? o0($, (k, D) => f0(D, {
        stripRegexp: /-/g
        // Filter only short horizontal lines for kebab-case conversion to camelCase
      })) : $) : $;
    }
  };
  for (const $ of t)
    m.push(x($));
  if (!o)
    m.push(x(r));
  else if (typeof r != "function")
    throw new TypeError(`Invalid option: config.default should be Function when config.defaultIsDynamic enabled, receiving: ${r}`);
  v || (p = !1, _ || (h = !1));
  for (let $ = 0; $ < m.length; $++) {
    const E = m[$];
    if (E !== void 0) {
      $ === m.length - 1 ? b = E : p ? b = v0(f ? [E, r] : m, {
        mergeObject: p,
        mergeFunction: h
      }) : h ? b = b0(u ? [E, r] : m, {
        mergeFunction: h
      }) : b = E;
      break;
    }
  }
  if (i && [void 0, null].includes(b))
    throw new Error("Missing required prop");
  return o ? wt(
    t,
    er(bt({}, e), {
      default: r(b),
      defaultIsDynamic: !1
    })
  ) : b;
}
function w0(t, e = []) {
  const n = {
    props: {},
    attrs: {},
    listeners: {},
    hooks: {},
    slots: {}
  }, r = Array.isArray(e) ? e : Object.keys(e);
  for (const o in t)
    if (o.startsWith("@")) {
      const i = o.substring(1);
      i.startsWith("hook:") ? n.hooks[i] = t[o] : n.listeners[i] = t[o];
    } else if (o.startsWith("#")) {
      const i = o.substring(1);
      i && (n.slots[i] = t[o]);
    } else
      r.includes(o) ? n.props[o] = t[o] : n.attrs[o] = t[o];
  return n;
}
var Ae = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
function y0(t) {
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var uf = { exports: {} };
/*!
* sweetalert2 v11.7.26
* Released under the MIT License.
*/
(function(t, e) {
  (function(n, r) {
    t.exports = r();
  })(Ae, function() {
    const r = {}, o = () => {
      r.previousActiveElement instanceof HTMLElement ? (r.previousActiveElement.focus(), r.previousActiveElement = null) : document.body && document.body.focus();
    }, i = (a) => new Promise((s) => {
      if (!a)
        return s();
      const d = window.scrollX, g = window.scrollY;
      r.restoreFocusTimeout = setTimeout(() => {
        o(), s();
      }, 100), window.scrollTo(d, g);
    });
    var l = {
      promise: /* @__PURE__ */ new WeakMap(),
      innerParams: /* @__PURE__ */ new WeakMap(),
      domCache: /* @__PURE__ */ new WeakMap()
    };
    const c = "swal2-", u = ["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "default-outline", "footer", "icon", "icon-content", "image", "input", "file", "range", "select", "radio", "checkbox", "label", "textarea", "inputerror", "input-label", "validation-message", "progress-steps", "active-progress-step", "progress-step", "progress-step-line", "loader", "loading", "styled", "top", "top-start", "top-end", "top-left", "top-right", "center", "center-start", "center-end", "center-left", "center-right", "bottom", "bottom-start", "bottom-end", "bottom-left", "bottom-right", "grow-row", "grow-column", "grow-fullscreen", "rtl", "timer-progress-bar", "timer-progress-bar-container", "scrollbar-measure", "icon-success", "icon-warning", "icon-info", "icon-question", "icon-error"].reduce(
      (a, s) => (a[s] = c + s, a),
      /** @type {SwalClasses} */
      {}
    ), h = ["success", "warning", "info", "question", "error"].reduce(
      (a, s) => (a[s] = c + s, a),
      /** @type {SwalIcons} */
      {}
    ), m = "SweetAlert2:", b = (a) => a.charAt(0).toUpperCase() + a.slice(1), v = (a) => {
      console.warn("".concat(m, " ").concat(typeof a == "object" ? a.join(" ") : a));
    }, _ = (a) => {
      console.error("".concat(m, " ").concat(a));
    }, x = [], $ = (a) => {
      x.includes(a) || (x.push(a), v(a));
    }, E = (a, s) => {
      $('"'.concat(a, '" is deprecated and will be removed in the next major release. Please use "').concat(s, '" instead.'));
    }, O = (a) => typeof a == "function" ? a() : a, k = (a) => a && typeof a.toPromise == "function", D = (a) => k(a) ? a.toPromise() : Promise.resolve(a), y = (a) => a && Promise.resolve(a) === a, A = () => document.body.querySelector(".".concat(u.container)), j = (a) => {
      const s = A();
      return s ? s.querySelector(a) : null;
    }, S = (a) => j(".".concat(a)), I = () => S(u.popup), Y = () => S(u.icon), pt = () => S(u["icon-content"]), J = () => S(u.title), q = () => S(u["html-container"]), W = () => S(u.image), nt = () => S(u["progress-steps"]), mt = () => S(u["validation-message"]), rt = () => (
      /** @type {HTMLButtonElement} */
      j(".".concat(u.actions, " .").concat(u.confirm))
    ), St = () => (
      /** @type {HTMLButtonElement} */
      j(".".concat(u.actions, " .").concat(u.cancel))
    ), Pt = () => (
      /** @type {HTMLButtonElement} */
      j(".".concat(u.actions, " .").concat(u.deny))
    ), de = () => S(u["input-label"]), Bt = () => j(".".concat(u.loader)), Lt = () => S(u.actions), Me = () => S(u.footer), he = () => S(u["timer-progress-bar"]), Re = () => S(u.close), Zn = `
  a[href],
  area[href],
  input:not([disabled]),
  select:not([disabled]),
  textarea:not([disabled]),
  button:not([disabled]),
  iframe,
  object,
  embed,
  [tabindex="0"],
  [contenteditable],
  audio[controls],
  video[controls],
  summary
`, vn = () => {
      const a = I();
      if (!a)
        return [];
      const s = a.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'), d = Array.from(s).sort((T, L) => {
        const ft = parseInt(T.getAttribute("tabindex") || "0"), st = parseInt(L.getAttribute("tabindex") || "0");
        return ft > st ? 1 : ft < st ? -1 : 0;
      }), g = a.querySelectorAll(Zn), w = Array.from(g).filter((T) => T.getAttribute("tabindex") !== "-1");
      return [...new Set(d.concat(w))].filter((T) => kt(T));
    }, bn = () => Kt(document.body, u.shown) && !Kt(document.body, u["toast-shown"]) && !Kt(document.body, u["no-backdrop"]), Le = () => {
      const a = I();
      return a ? Kt(a, u.toast) : !1;
    }, Wr = () => {
      const a = I();
      return a ? a.hasAttribute("data-loading") : !1;
    }, _t = (a, s) => {
      if (a.textContent = "", s) {
        const g = new DOMParser().parseFromString(s, "text/html"), w = g.querySelector("head");
        w && Array.from(w.childNodes).forEach((L) => {
          a.appendChild(L);
        });
        const T = g.querySelector("body");
        T && Array.from(T.childNodes).forEach((L) => {
          L instanceof HTMLVideoElement || L instanceof HTMLAudioElement ? a.appendChild(L.cloneNode(!0)) : a.appendChild(L);
        });
      }
    }, Kt = (a, s) => {
      if (!s)
        return !1;
      const d = s.split(/\s+/);
      for (let g = 0; g < d.length; g++)
        if (!a.classList.contains(d[g]))
          return !1;
      return !0;
    }, Fe = (a, s) => {
      Array.from(a.classList).forEach((d) => {
        !Object.values(u).includes(d) && !Object.values(h).includes(d) && !Object.values(s.showClass || {}).includes(d) && a.classList.remove(d);
      });
    }, Et = (a, s, d) => {
      if (Fe(a, s), s.customClass && s.customClass[d]) {
        if (typeof s.customClass[d] != "string" && !s.customClass[d].forEach) {
          v("Invalid type of customClass.".concat(d, '! Expected string or iterable object, got "').concat(typeof s.customClass[d], '"'));
          return;
        }
        R(a, s.customClass[d]);
      }
    }, wn = (a, s) => {
      if (!s)
        return null;
      switch (s) {
        case "select":
        case "textarea":
        case "file":
          return a.querySelector(".".concat(u.popup, " > .").concat(u[s]));
        case "checkbox":
          return a.querySelector(".".concat(u.popup, " > .").concat(u.checkbox, " input"));
        case "radio":
          return a.querySelector(".".concat(u.popup, " > .").concat(u.radio, " input:checked")) || a.querySelector(".".concat(u.popup, " > .").concat(u.radio, " input:first-child"));
        case "range":
          return a.querySelector(".".concat(u.popup, " > .").concat(u.range, " input"));
        default:
          return a.querySelector(".".concat(u.popup, " > .").concat(u.input));
      }
    }, pe = (a) => {
      if (a.focus(), a.type !== "file") {
        const s = a.value;
        a.value = "", a.value = s;
      }
    }, yn = (a, s, d) => {
      !a || !s || (typeof s == "string" && (s = s.split(/\s+/).filter(Boolean)), s.forEach((g) => {
        Array.isArray(a) ? a.forEach((w) => {
          d ? w.classList.add(g) : w.classList.remove(g);
        }) : d ? a.classList.add(g) : a.classList.remove(g);
      }));
    }, R = (a, s) => {
      yn(a, s, !0);
    }, Zt = (a, s) => {
      yn(a, s, !1);
    }, Ce = (a, s) => {
      const d = Array.from(a.children);
      for (let g = 0; g < d.length; g++) {
        const w = d[g];
        if (w instanceof HTMLElement && Kt(w, s))
          return w;
      }
    }, Ne = (a, s, d) => {
      d === "".concat(parseInt(d)) && (d = parseInt(d)), d || parseInt(d) === 0 ? a.style[s] = typeof d == "number" ? "".concat(d, "px") : d : a.style.removeProperty(s);
    }, vt = function(a) {
      let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "flex";
      a && (a.style.display = s);
    }, xt = (a) => {
      a && (a.style.display = "none");
    }, ps = (a, s, d, g) => {
      const w = a.querySelector(s);
      w && (w.style[d] = g);
    }, Hr = function(a, s) {
      let d = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "flex";
      s ? vt(a, d) : xt(a);
    }, kt = (a) => !!(a && (a.offsetWidth || a.offsetHeight || a.getClientRects().length)), eh = () => !kt(rt()) && !kt(Pt()) && !kt(St()), gs = (a) => a.scrollHeight > a.clientHeight, ms = (a) => {
      const s = window.getComputedStyle(a), d = parseFloat(s.getPropertyValue("animation-duration") || "0"), g = parseFloat(s.getPropertyValue("transition-duration") || "0");
      return d > 0 || g > 0;
    }, ei = function(a) {
      let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
      const d = he();
      d && kt(d) && (s && (d.style.transition = "none", d.style.width = "100%"), setTimeout(() => {
        d.style.transition = "width ".concat(a / 1e3, "s linear"), d.style.width = "0%";
      }, 10));
    }, nh = () => {
      const a = he();
      if (!a)
        return;
      const s = parseInt(window.getComputedStyle(a).width);
      a.style.removeProperty("transition"), a.style.width = "100%";
      const d = parseInt(window.getComputedStyle(a).width), g = s / d * 100;
      a.style.width = "".concat(g, "%");
    }, vs = () => typeof window == "undefined" || typeof document == "undefined", rh = `
 <div aria-labelledby="`.concat(u.title, '" aria-describedby="').concat(u["html-container"], '" class="').concat(u.popup, `" tabindex="-1">
   <button type="button" class="`).concat(u.close, `"></button>
   <ul class="`).concat(u["progress-steps"], `"></ul>
   <div class="`).concat(u.icon, `"></div>
   <img class="`).concat(u.image, `" />
   <h2 class="`).concat(u.title, '" id="').concat(u.title, `"></h2>
   <div class="`).concat(u["html-container"], '" id="').concat(u["html-container"], `"></div>
   <input class="`).concat(u.input, '" id="').concat(u.input, `" />
   <input type="file" class="`).concat(u.file, `" />
   <div class="`).concat(u.range, `">
     <input type="range" />
     <output></output>
   </div>
   <select class="`).concat(u.select, '" id="').concat(u.select, `"></select>
   <div class="`).concat(u.radio, `"></div>
   <label class="`).concat(u.checkbox, `">
     <input type="checkbox" id="`).concat(u.checkbox, `" />
     <span class="`).concat(u.label, `"></span>
   </label>
   <textarea class="`).concat(u.textarea, '" id="').concat(u.textarea, `"></textarea>
   <div class="`).concat(u["validation-message"], '" id="').concat(u["validation-message"], `"></div>
   <div class="`).concat(u.actions, `">
     <div class="`).concat(u.loader, `"></div>
     <button type="button" class="`).concat(u.confirm, `"></button>
     <button type="button" class="`).concat(u.deny, `"></button>
     <button type="button" class="`).concat(u.cancel, `"></button>
   </div>
   <div class="`).concat(u.footer, `"></div>
   <div class="`).concat(u["timer-progress-bar-container"], `">
     <div class="`).concat(u["timer-progress-bar"], `"></div>
   </div>
 </div>
`).replace(/(^|\n)\s*/g, ""), oh = () => {
      const a = A();
      return a ? (a.remove(), Zt([document.documentElement, document.body], [u["no-backdrop"], u["toast-shown"], u["has-column"]]), !0) : !1;
    }, ze = () => {
      r.currentInstance.resetValidationMessage();
    }, ih = () => {
      const a = I(), s = Ce(a, u.input), d = Ce(a, u.file), g = a.querySelector(".".concat(u.range, " input")), w = a.querySelector(".".concat(u.range, " output")), T = Ce(a, u.select), L = a.querySelector(".".concat(u.checkbox, " input")), ft = Ce(a, u.textarea);
      s.oninput = ze, d.onchange = ze, T.onchange = ze, L.onchange = ze, ft.oninput = ze, g.oninput = () => {
        ze(), w.value = g.value;
      }, g.onchange = () => {
        ze(), w.value = g.value;
      };
    }, ah = (a) => typeof a == "string" ? document.querySelector(a) : a, sh = (a) => {
      const s = I();
      s.setAttribute("role", a.toast ? "alert" : "dialog"), s.setAttribute("aria-live", a.toast ? "polite" : "assertive"), a.toast || s.setAttribute("aria-modal", "true");
    }, lh = (a) => {
      window.getComputedStyle(a).direction === "rtl" && R(A(), u.rtl);
    }, ch = (a) => {
      const s = oh();
      if (vs()) {
        _("SweetAlert2 requires document to initialize");
        return;
      }
      const d = document.createElement("div");
      d.className = u.container, s && R(d, u["no-transition"]), _t(d, rh);
      const g = ah(a.target);
      g.appendChild(d), sh(a), lh(g), ih();
    }, ni = (a, s) => {
      a instanceof HTMLElement ? s.appendChild(a) : typeof a == "object" ? uh(a, s) : a && _t(s, a);
    }, uh = (a, s) => {
      a.jquery ? fh(s, a) : _t(s, a.toString());
    }, fh = (a, s) => {
      if (a.textContent = "", 0 in s)
        for (let d = 0; d in s; d++)
          a.appendChild(s[d].cloneNode(!0));
      else
        a.appendChild(s.cloneNode(!0));
    }, Ue = (() => {
      if (vs())
        return !1;
      const a = document.createElement("div");
      return typeof a.style.webkitAnimation != "undefined" ? "webkitAnimationEnd" : typeof a.style.animation != "undefined" ? "animationend" : !1;
    })(), dh = (a, s) => {
      const d = Lt(), g = Bt();
      !d || !g || (!s.showConfirmButton && !s.showDenyButton && !s.showCancelButton ? xt(d) : vt(d), Et(d, s, "actions"), hh(d, g, s), _t(g, s.loaderHtml || ""), Et(g, s, "loader"));
    };
    function hh(a, s, d) {
      const g = rt(), w = Pt(), T = St();
      !g || !w || !T || (ri(g, "confirm", d), ri(w, "deny", d), ri(T, "cancel", d), ph(g, w, T, d), d.reverseButtons && (d.toast ? (a.insertBefore(T, g), a.insertBefore(w, g)) : (a.insertBefore(T, s), a.insertBefore(w, s), a.insertBefore(g, s))));
    }
    function ph(a, s, d, g) {
      if (!g.buttonsStyling) {
        Zt([a, s, d], u.styled);
        return;
      }
      R([a, s, d], u.styled), g.confirmButtonColor && (a.style.backgroundColor = g.confirmButtonColor, R(a, u["default-outline"])), g.denyButtonColor && (s.style.backgroundColor = g.denyButtonColor, R(s, u["default-outline"])), g.cancelButtonColor && (d.style.backgroundColor = g.cancelButtonColor, R(d, u["default-outline"]));
    }
    function ri(a, s, d) {
      const g = (
        /** @type {'Confirm' | 'Deny' | 'Cancel'} */
        b(s)
      );
      Hr(a, d["show".concat(g, "Button")], "inline-block"), _t(a, d["".concat(s, "ButtonText")] || ""), a.setAttribute("aria-label", d["".concat(s, "ButtonAriaLabel")] || ""), a.className = u[s], Et(a, d, "".concat(s, "Button"));
    }
    const gh = (a, s) => {
      const d = Re();
      d && (_t(d, s.closeButtonHtml || ""), Et(d, s, "closeButton"), Hr(d, s.showCloseButton), d.setAttribute("aria-label", s.closeButtonAriaLabel || ""));
    }, mh = (a, s) => {
      const d = A();
      d && (vh(d, s.backdrop), bh(d, s.position), wh(d, s.grow), Et(d, s, "container"));
    };
    function vh(a, s) {
      typeof s == "string" ? a.style.background = s : s || R([document.documentElement, document.body], u["no-backdrop"]);
    }
    function bh(a, s) {
      s && (s in u ? R(a, u[s]) : (v('The "position" parameter is not valid, defaulting to "center"'), R(a, u.center)));
    }
    function wh(a, s) {
      s && R(a, u["grow-".concat(s)]);
    }
    const yh = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], _h = (a, s) => {
      const d = I();
      if (!d)
        return;
      const g = l.innerParams.get(a), w = !g || s.input !== g.input;
      yh.forEach((T) => {
        const L = Ce(d, u[T]);
        L && (Ch(T, s.inputAttributes), L.className = u[T], w && xt(L));
      }), s.input && (w && xh(s), Eh(s));
    }, xh = (a) => {
      if (!a.input)
        return;
      if (!Tt[a.input]) {
        _('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(a.input, '"'));
        return;
      }
      const s = bs(a.input), d = Tt[a.input](s, a);
      vt(s), a.inputAutoFocus && setTimeout(() => {
        pe(d);
      });
    }, $h = (a) => {
      for (let s = 0; s < a.attributes.length; s++) {
        const d = a.attributes[s].name;
        ["id", "type", "value", "style"].includes(d) || a.removeAttribute(d);
      }
    }, Ch = (a, s) => {
      const d = wn(I(), a);
      if (d) {
        $h(d);
        for (const g in s)
          d.setAttribute(g, s[g]);
      }
    }, Eh = (a) => {
      const s = bs(a.input);
      typeof a.customClass == "object" && R(s, a.customClass.input);
    }, oi = (a, s) => {
      (!a.placeholder || s.inputPlaceholder) && (a.placeholder = s.inputPlaceholder);
    }, Jn = (a, s, d) => {
      if (d.inputLabel) {
        const g = document.createElement("label"), w = u["input-label"];
        g.setAttribute("for", a.id), g.className = w, typeof d.customClass == "object" && R(g, d.customClass.inputLabel), g.innerText = d.inputLabel, s.insertAdjacentElement("beforebegin", g);
      }
    }, bs = (a) => Ce(I(), u[a] || u.input), Vr = (a, s) => {
      ["string", "number"].includes(typeof s) ? a.value = "".concat(s) : y(s) || v('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof s, '"'));
    }, Tt = {};
    Tt.text = Tt.email = Tt.password = Tt.number = Tt.tel = Tt.url = (a, s) => (Vr(a, s.inputValue), Jn(a, a, s), oi(a, s), a.type = s.input, a), Tt.file = (a, s) => (Jn(a, a, s), oi(a, s), a), Tt.range = (a, s) => {
      const d = a.querySelector("input"), g = a.querySelector("output");
      return Vr(d, s.inputValue), d.type = s.input, Vr(g, s.inputValue), Jn(d, a, s), a;
    }, Tt.select = (a, s) => {
      if (a.textContent = "", s.inputPlaceholder) {
        const d = document.createElement("option");
        _t(d, s.inputPlaceholder), d.value = "", d.disabled = !0, d.selected = !0, a.appendChild(d);
      }
      return Jn(a, a, s), a;
    }, Tt.radio = (a) => (a.textContent = "", a), Tt.checkbox = (a, s) => {
      const d = wn(I(), "checkbox");
      d.value = "1", d.checked = !!s.inputValue;
      const g = a.querySelector("span");
      return _t(g, s.inputPlaceholder), d;
    }, Tt.textarea = (a, s) => {
      Vr(a, s.inputValue), oi(a, s), Jn(a, a, s);
      const d = (g) => parseInt(window.getComputedStyle(g).marginLeft) + parseInt(window.getComputedStyle(g).marginRight);
      return setTimeout(() => {
        if ("MutationObserver" in window) {
          const g = parseInt(window.getComputedStyle(I()).width), w = () => {
            if (!document.body.contains(a))
              return;
            const T = a.offsetWidth + d(a);
            T > g ? I().style.width = "".concat(T, "px") : Ne(I(), "width", s.width);
          };
          new MutationObserver(w).observe(a, {
            attributes: !0,
            attributeFilter: ["style"]
          });
        }
      }), a;
    };
    const Ah = (a, s) => {
      const d = q();
      d && (Et(d, s, "htmlContainer"), s.html ? (ni(s.html, d), vt(d, "block")) : s.text ? (d.textContent = s.text, vt(d, "block")) : xt(d), _h(a, s));
    }, Sh = (a, s) => {
      const d = Me();
      d && (Hr(d, s.footer, "block"), s.footer && ni(s.footer, d), Et(d, s, "footer"));
    }, Th = (a, s) => {
      const d = l.innerParams.get(a), g = Y();
      if (g) {
        if (d && s.icon === d.icon) {
          ys(g, s), ws(g, s);
          return;
        }
        if (!s.icon && !s.iconHtml) {
          xt(g);
          return;
        }
        if (s.icon && Object.keys(h).indexOf(s.icon) === -1) {
          _('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(s.icon, '"')), xt(g);
          return;
        }
        vt(g), ys(g, s), ws(g, s), R(g, s.showClass && s.showClass.icon);
      }
    }, ws = (a, s) => {
      for (const [d, g] of Object.entries(h))
        s.icon !== d && Zt(a, g);
      R(a, s.icon && h[s.icon]), Ph(a, s), Oh(), Et(a, s, "icon");
    }, Oh = () => {
      const a = I();
      if (!a)
        return;
      const s = window.getComputedStyle(a).getPropertyValue("background-color"), d = a.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
      for (let g = 0; g < d.length; g++)
        d[g].style.backgroundColor = s;
    }, jh = `
  <div class="swal2-success-circular-line-left"></div>
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
  <div class="swal2-success-circular-line-right"></div>
`, Dh = `
  <span class="swal2-x-mark">
    <span class="swal2-x-mark-line-left"></span>
    <span class="swal2-x-mark-line-right"></span>
  </span>
`, ys = (a, s) => {
      if (!s.icon && !s.iconHtml)
        return;
      let d = a.innerHTML, g = "";
      s.iconHtml ? g = _s(s.iconHtml) : s.icon === "success" ? (g = jh, d = d.replace(/ style=".*?"/g, "")) : s.icon === "error" ? g = Dh : s.icon && (g = _s({
        question: "?",
        warning: "!",
        info: "i"
      }[s.icon])), d.trim() !== g.trim() && _t(a, g);
    }, Ph = (a, s) => {
      if (s.iconColor) {
        a.style.color = s.iconColor, a.style.borderColor = s.iconColor;
        for (const d of [".swal2-success-line-tip", ".swal2-success-line-long", ".swal2-x-mark-line-left", ".swal2-x-mark-line-right"])
          ps(a, d, "backgroundColor", s.iconColor);
        ps(a, ".swal2-success-ring", "borderColor", s.iconColor);
      }
    }, _s = (a) => '<div class="'.concat(u["icon-content"], '">').concat(a, "</div>"), Bh = (a, s) => {
      const d = W();
      if (d) {
        if (!s.imageUrl) {
          xt(d);
          return;
        }
        vt(d, ""), d.setAttribute("src", s.imageUrl), d.setAttribute("alt", s.imageAlt || ""), Ne(d, "width", s.imageWidth), Ne(d, "height", s.imageHeight), d.className = u.image, Et(d, s, "image");
      }
    }, kh = (a, s) => {
      const d = A(), g = I();
      if (!(!d || !g)) {
        if (s.toast) {
          Ne(d, "width", s.width), g.style.width = "100%";
          const w = Bt();
          w && g.insertBefore(w, Y());
        } else
          Ne(g, "width", s.width);
        Ne(g, "padding", s.padding), s.color && (g.style.color = s.color), s.background && (g.style.background = s.background), xt(mt()), Ih(g, s);
      }
    }, Ih = (a, s) => {
      const d = s.showClass || {};
      a.className = "".concat(u.popup, " ").concat(kt(a) ? d.popup : ""), s.toast ? (R([document.documentElement, document.body], u["toast-shown"]), R(a, u.toast)) : R(a, u.modal), Et(a, s, "popup"), typeof s.customClass == "string" && R(a, s.customClass), s.icon && R(a, u["icon-".concat(s.icon)]);
    }, Mh = (a, s) => {
      const d = nt();
      if (!d)
        return;
      const {
        progressSteps: g,
        currentProgressStep: w
      } = s;
      if (!g || g.length === 0 || w === void 0) {
        xt(d);
        return;
      }
      vt(d), d.textContent = "", w >= g.length && v("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), g.forEach((T, L) => {
        const ft = Rh(T);
        if (d.appendChild(ft), L === w && R(ft, u["active-progress-step"]), L !== g.length - 1) {
          const st = Lh(s);
          d.appendChild(st);
        }
      });
    }, Rh = (a) => {
      const s = document.createElement("li");
      return R(s, u["progress-step"]), _t(s, a), s;
    }, Lh = (a) => {
      const s = document.createElement("li");
      return R(s, u["progress-step-line"]), a.progressStepsDistance && Ne(s, "width", a.progressStepsDistance), s;
    }, Fh = (a, s) => {
      const d = J();
      d && (Hr(d, s.title || s.titleText, "block"), s.title && ni(s.title, d), s.titleText && (d.innerText = s.titleText), Et(d, s, "title"));
    }, xs = (a, s) => {
      kh(a, s), mh(a, s), Mh(a, s), Th(a, s), Bh(a, s), Fh(a, s), gh(a, s), Ah(a, s), dh(a, s), Sh(a, s);
      const d = I();
      typeof s.didRender == "function" && d && s.didRender(d);
    }, Nh = () => kt(I()), $s = () => {
      var a;
      return (a = rt()) === null || a === void 0 ? void 0 : a.click();
    }, zh = () => {
      var a;
      return (a = Pt()) === null || a === void 0 ? void 0 : a.click();
    }, Uh = () => {
      var a;
      return (a = St()) === null || a === void 0 ? void 0 : a.click();
    }, _n = Object.freeze({
      cancel: "cancel",
      backdrop: "backdrop",
      close: "close",
      esc: "esc",
      timer: "timer"
    }), Cs = (a) => {
      a.keydownTarget && a.keydownHandlerAdded && (a.keydownTarget.removeEventListener("keydown", a.keydownHandler, {
        capture: a.keydownListenerCapture
      }), a.keydownHandlerAdded = !1);
    }, Wh = (a, s, d, g) => {
      Cs(s), d.toast || (s.keydownHandler = (w) => Vh(a, w, g), s.keydownTarget = d.keydownListenerCapture ? window : I(), s.keydownListenerCapture = d.keydownListenerCapture, s.keydownTarget.addEventListener("keydown", s.keydownHandler, {
        capture: s.keydownListenerCapture
      }), s.keydownHandlerAdded = !0);
    }, ii = (a, s) => {
      const d = vn();
      if (d.length) {
        a = a + s, a === d.length ? a = 0 : a === -1 && (a = d.length - 1), d[a].focus();
        return;
      }
      I().focus();
    }, Es = ["ArrowRight", "ArrowDown"], Hh = ["ArrowLeft", "ArrowUp"], Vh = (a, s, d) => {
      const g = l.innerParams.get(a);
      g && (s.isComposing || s.keyCode === 229 || (g.stopKeydownPropagation && s.stopPropagation(), s.key === "Enter" ? Xh(a, s, g) : s.key === "Tab" ? Yh(s) : [...Es, ...Hh].includes(s.key) ? qh(s.key) : s.key === "Escape" && Gh(s, g, d)));
    }, Xh = (a, s, d) => {
      if (O(d.allowEnterKey) && s.target && a.getInput() && s.target instanceof HTMLElement && s.target.outerHTML === a.getInput().outerHTML) {
        if (["textarea", "file"].includes(d.input))
          return;
        $s(), s.preventDefault();
      }
    }, Yh = (a) => {
      const s = a.target, d = vn();
      let g = -1;
      for (let w = 0; w < d.length; w++)
        if (s === d[w]) {
          g = w;
          break;
        }
      a.shiftKey ? ii(g, -1) : ii(g, 1), a.stopPropagation(), a.preventDefault();
    }, qh = (a) => {
      const s = rt(), d = Pt(), g = St(), w = [s, d, g];
      if (document.activeElement instanceof HTMLElement && !w.includes(document.activeElement))
        return;
      const T = Es.includes(a) ? "nextElementSibling" : "previousElementSibling";
      let L = document.activeElement;
      for (let ft = 0; ft < Lt().children.length; ft++) {
        if (L = L[T], !L)
          return;
        if (L instanceof HTMLButtonElement && kt(L))
          break;
      }
      L instanceof HTMLButtonElement && L.focus();
    }, Gh = (a, s, d) => {
      O(s.allowEscapeKey) && (a.preventDefault(), d(_n.esc));
    };
    var Qn = {
      swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
      swalPromiseReject: /* @__PURE__ */ new WeakMap()
    };
    const Kh = () => {
      Array.from(document.body.children).forEach((s) => {
        s === A() || s.contains(A()) || (s.hasAttribute("aria-hidden") && s.setAttribute("data-previous-aria-hidden", s.getAttribute("aria-hidden") || ""), s.setAttribute("aria-hidden", "true"));
      });
    }, As = () => {
      Array.from(document.body.children).forEach((s) => {
        s.hasAttribute("data-previous-aria-hidden") ? (s.setAttribute("aria-hidden", s.getAttribute("data-previous-aria-hidden") || ""), s.removeAttribute("data-previous-aria-hidden")) : s.removeAttribute("aria-hidden");
      });
    }, Ss = typeof window != "undefined" && !!window.GestureEvent, Zh = () => {
      if (Ss && !Kt(document.body, u.iosfix)) {
        const a = document.body.scrollTop;
        document.body.style.top = "".concat(a * -1, "px"), R(document.body, u.iosfix), Jh();
      }
    }, Jh = () => {
      const a = A();
      if (!a)
        return;
      let s;
      a.ontouchstart = (d) => {
        s = Qh(d);
      }, a.ontouchmove = (d) => {
        s && (d.preventDefault(), d.stopPropagation());
      };
    }, Qh = (a) => {
      const s = a.target, d = A(), g = q();
      return !d || !g || tp(a) || ep(a) ? !1 : s === d || !gs(d) && s instanceof HTMLElement && s.tagName !== "INPUT" && // #1603
      s.tagName !== "TEXTAREA" && // #2266
      !(gs(g) && // #1944
      g.contains(s));
    }, tp = (a) => a.touches && a.touches.length && a.touches[0].touchType === "stylus", ep = (a) => a.touches && a.touches.length > 1, np = () => {
      if (Kt(document.body, u.iosfix)) {
        const a = parseInt(document.body.style.top, 10);
        Zt(document.body, u.iosfix), document.body.style.top = "", document.body.scrollTop = a * -1;
      }
    }, rp = () => {
      const a = document.createElement("div");
      a.className = u["scrollbar-measure"], document.body.appendChild(a);
      const s = a.getBoundingClientRect().width - a.clientWidth;
      return document.body.removeChild(a), s;
    };
    let xn = null;
    const op = (a) => {
      xn === null && (document.body.scrollHeight > window.innerHeight || a === "scroll") && (xn = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = "".concat(xn + rp(), "px"));
    }, ip = () => {
      xn !== null && (document.body.style.paddingRight = "".concat(xn, "px"), xn = null);
    };
    function Ts(a, s, d, g) {
      Le() ? js(a, g) : (i(d).then(() => js(a, g)), Cs(r)), Ss ? (s.setAttribute("style", "display:none !important"), s.removeAttribute("class"), s.innerHTML = "") : s.remove(), bn() && (ip(), np(), As()), ap();
    }
    function ap() {
      Zt([document.documentElement, document.body], [u.shown, u["height-auto"], u["no-backdrop"], u["toast-shown"]]);
    }
    function Ee(a) {
      a = lp(a);
      const s = Qn.swalPromiseResolve.get(this), d = sp(this);
      this.isAwaitingPromise ? a.isDismissed || (tr(this), s(a)) : d && s(a);
    }
    const sp = (a) => {
      const s = I();
      if (!s)
        return !1;
      const d = l.innerParams.get(a);
      if (!d || Kt(s, d.hideClass.popup))
        return !1;
      Zt(s, d.showClass.popup), R(s, d.hideClass.popup);
      const g = A();
      return Zt(g, d.showClass.backdrop), R(g, d.hideClass.backdrop), cp(a, s, d), !0;
    };
    function Os(a) {
      const s = Qn.swalPromiseReject.get(this);
      tr(this), s && s(a);
    }
    const tr = (a) => {
      a.isAwaitingPromise && (delete a.isAwaitingPromise, l.innerParams.get(a) || a._destroy());
    }, lp = (a) => typeof a == "undefined" ? {
      isConfirmed: !1,
      isDenied: !1,
      isDismissed: !0
    } : Object.assign({
      isConfirmed: !1,
      isDenied: !1,
      isDismissed: !1
    }, a), cp = (a, s, d) => {
      const g = A(), w = Ue && ms(s);
      typeof d.willClose == "function" && d.willClose(s), w ? up(a, s, g, d.returnFocus, d.didClose) : Ts(a, g, d.returnFocus, d.didClose);
    }, up = (a, s, d, g, w) => {
      Ue && (r.swalCloseEventFinishedCallback = Ts.bind(null, a, d, g, w), s.addEventListener(Ue, function(T) {
        T.target === s && (r.swalCloseEventFinishedCallback(), delete r.swalCloseEventFinishedCallback);
      }));
    }, js = (a, s) => {
      setTimeout(() => {
        typeof s == "function" && s.bind(a.params)(), a._destroy && a._destroy();
      });
    }, $n = (a) => {
      let s = I();
      if (s || new Gr(), s = I(), !s)
        return;
      const d = Bt();
      Le() ? xt(Y()) : fp(s, a), vt(d), s.setAttribute("data-loading", "true"), s.setAttribute("aria-busy", "true"), s.focus();
    }, fp = (a, s) => {
      const d = Lt(), g = Bt();
      !d || !g || (!s && kt(rt()) && (s = rt()), vt(d), s && (xt(s), g.setAttribute("data-button-to-replace", s.className), d.insertBefore(g, s)), R([a, d], u.loading));
    }, dp = (a, s) => {
      s.input === "select" || s.input === "radio" ? vp(a, s) : ["text", "email", "number", "tel", "textarea"].some((d) => d === s.input) && (k(s.inputValue) || y(s.inputValue)) && ($n(rt()), bp(a, s));
    }, hp = (a, s) => {
      const d = a.getInput();
      if (!d)
        return null;
      switch (s.input) {
        case "checkbox":
          return pp(d);
        case "radio":
          return gp(d);
        case "file":
          return mp(d);
        default:
          return s.inputAutoTrim ? d.value.trim() : d.value;
      }
    }, pp = (a) => a.checked ? 1 : 0, gp = (a) => a.checked ? a.value : null, mp = (a) => a.files && a.files.length ? a.getAttribute("multiple") !== null ? a.files : a.files[0] : null, vp = (a, s) => {
      const d = I();
      if (!d)
        return;
      const g = (w) => {
        s.input === "select" ? wp(d, Xr(w), s) : s.input === "radio" && yp(d, Xr(w), s);
      };
      k(s.inputOptions) || y(s.inputOptions) ? ($n(rt()), D(s.inputOptions).then((w) => {
        a.hideLoading(), g(w);
      })) : typeof s.inputOptions == "object" ? g(s.inputOptions) : _("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof s.inputOptions));
    }, bp = (a, s) => {
      const d = a.getInput();
      d && (xt(d), D(s.inputValue).then((g) => {
        d.value = s.input === "number" ? "".concat(parseFloat(g) || 0) : "".concat(g), vt(d), d.focus(), a.hideLoading();
      }).catch((g) => {
        _("Error in inputValue promise: ".concat(g)), d.value = "", vt(d), d.focus(), a.hideLoading();
      }));
    };
    function wp(a, s, d) {
      const g = Ce(a, u.select);
      if (!g)
        return;
      const w = (T, L, ft) => {
        const st = document.createElement("option");
        st.value = ft, _t(st, L), st.selected = Ds(ft, d.inputValue), T.appendChild(st);
      };
      s.forEach((T) => {
        const L = T[0], ft = T[1];
        if (Array.isArray(ft)) {
          const st = document.createElement("optgroup");
          st.label = L, st.disabled = !1, g.appendChild(st), ft.forEach((En) => w(st, En[1], En[0]));
        } else
          w(g, ft, L);
      }), g.focus();
    }
    function yp(a, s, d) {
      const g = Ce(a, u.radio);
      if (!g)
        return;
      s.forEach((T) => {
        const L = T[0], ft = T[1], st = document.createElement("input"), En = document.createElement("label");
        st.type = "radio", st.name = u.radio, st.value = L, Ds(L, d.inputValue) && (st.checked = !0);
        const ui = document.createElement("span");
        _t(ui, ft), ui.className = u.label, En.appendChild(st), En.appendChild(ui), g.appendChild(En);
      });
      const w = g.querySelectorAll("input");
      w.length && w[0].focus();
    }
    const Xr = (a) => {
      const s = [];
      return a instanceof Map ? a.forEach((d, g) => {
        let w = d;
        typeof w == "object" && (w = Xr(w)), s.push([g, w]);
      }) : Object.keys(a).forEach((d) => {
        let g = a[d];
        typeof g == "object" && (g = Xr(g)), s.push([d, g]);
      }), s;
    }, Ds = (a, s) => !!s && s.toString() === a.toString(), _p = (a) => {
      const s = l.innerParams.get(a);
      a.disableButtons(), s.input ? Ps(a, "confirm") : si(a, !0);
    }, xp = (a) => {
      const s = l.innerParams.get(a);
      a.disableButtons(), s.returnInputValueOnDeny ? Ps(a, "deny") : ai(a, !1);
    }, $p = (a, s) => {
      a.disableButtons(), s(_n.cancel);
    }, Ps = (a, s) => {
      const d = l.innerParams.get(a);
      if (!d.input) {
        _('The "input" parameter is needed to be set when using returnInputValueOn'.concat(b(s)));
        return;
      }
      const g = a.getInput(), w = hp(a, d);
      d.inputValidator ? Cp(a, w, s) : g && !g.checkValidity() ? (a.enableButtons(), a.showValidationMessage(d.validationMessage)) : s === "deny" ? ai(a, w) : si(a, w);
    }, Cp = (a, s, d) => {
      const g = l.innerParams.get(a);
      a.disableInput(), Promise.resolve().then(() => D(g.inputValidator(s, g.validationMessage))).then((T) => {
        a.enableButtons(), a.enableInput(), T ? a.showValidationMessage(T) : d === "deny" ? ai(a, s) : si(a, s);
      });
    }, ai = (a, s) => {
      const d = l.innerParams.get(a || void 0);
      d.showLoaderOnDeny && $n(Pt()), d.preDeny ? (a.isAwaitingPromise = !0, Promise.resolve().then(() => D(d.preDeny(s, d.validationMessage))).then((w) => {
        w === !1 ? (a.hideLoading(), tr(a)) : a.close({
          isDenied: !0,
          value: typeof w == "undefined" ? s : w
        });
      }).catch((w) => ks(a || void 0, w))) : a.close({
        isDenied: !0,
        value: s
      });
    }, Bs = (a, s) => {
      a.close({
        isConfirmed: !0,
        value: s
      });
    }, ks = (a, s) => {
      a.rejectPromise(s);
    }, si = (a, s) => {
      const d = l.innerParams.get(a || void 0);
      d.showLoaderOnConfirm && $n(), d.preConfirm ? (a.resetValidationMessage(), a.isAwaitingPromise = !0, Promise.resolve().then(() => D(d.preConfirm(s, d.validationMessage))).then((w) => {
        kt(mt()) || w === !1 ? (a.hideLoading(), tr(a)) : Bs(a, typeof w == "undefined" ? s : w);
      }).catch((w) => ks(a || void 0, w))) : Bs(a, s);
    };
    function Yr() {
      const a = l.innerParams.get(this);
      if (!a)
        return;
      const s = l.domCache.get(this);
      xt(s.loader), Le() ? a.icon && vt(Y()) : Ep(s), Zt([s.popup, s.actions], u.loading), s.popup.removeAttribute("aria-busy"), s.popup.removeAttribute("data-loading"), s.confirmButton.disabled = !1, s.denyButton.disabled = !1, s.cancelButton.disabled = !1;
    }
    const Ep = (a) => {
      const s = a.popup.getElementsByClassName(a.loader.getAttribute("data-button-to-replace"));
      s.length ? vt(s[0], "inline-block") : eh() && xt(a.actions);
    };
    function Is() {
      const a = l.innerParams.get(this), s = l.domCache.get(this);
      return s ? wn(s.popup, a.input) : null;
    }
    function Ms(a, s, d) {
      const g = l.domCache.get(a);
      s.forEach((w) => {
        g[w].disabled = d;
      });
    }
    function Rs(a, s) {
      const d = I();
      if (!(!d || !a))
        if (a.type === "radio") {
          const g = d.querySelectorAll('[name="'.concat(u.radio, '"]'));
          for (let w = 0; w < g.length; w++)
            g[w].disabled = s;
        } else
          a.disabled = s;
    }
    function Ls() {
      Ms(this, ["confirmButton", "denyButton", "cancelButton"], !1);
    }
    function Fs() {
      Ms(this, ["confirmButton", "denyButton", "cancelButton"], !0);
    }
    function Ns() {
      Rs(this.getInput(), !1);
    }
    function zs() {
      Rs(this.getInput(), !0);
    }
    function Us(a) {
      const s = l.domCache.get(this), d = l.innerParams.get(this);
      _t(s.validationMessage, a), s.validationMessage.className = u["validation-message"], d.customClass && d.customClass.validationMessage && R(s.validationMessage, d.customClass.validationMessage), vt(s.validationMessage);
      const g = this.getInput();
      g && (g.setAttribute("aria-invalid", !0), g.setAttribute("aria-describedby", u["validation-message"]), pe(g), R(g, u.inputerror));
    }
    function Ws() {
      const a = l.domCache.get(this);
      a.validationMessage && xt(a.validationMessage);
      const s = this.getInput();
      s && (s.removeAttribute("aria-invalid"), s.removeAttribute("aria-describedby"), Zt(s, u.inputerror));
    }
    const Cn = {
      title: "",
      titleText: "",
      text: "",
      html: "",
      footer: "",
      icon: void 0,
      iconColor: void 0,
      iconHtml: void 0,
      template: void 0,
      toast: !1,
      showClass: {
        popup: "swal2-show",
        backdrop: "swal2-backdrop-show",
        icon: "swal2-icon-show"
      },
      hideClass: {
        popup: "swal2-hide",
        backdrop: "swal2-backdrop-hide",
        icon: "swal2-icon-hide"
      },
      customClass: {},
      target: "body",
      color: void 0,
      backdrop: !0,
      heightAuto: !0,
      allowOutsideClick: !0,
      allowEscapeKey: !0,
      allowEnterKey: !0,
      stopKeydownPropagation: !0,
      keydownListenerCapture: !1,
      showConfirmButton: !0,
      showDenyButton: !1,
      showCancelButton: !1,
      preConfirm: void 0,
      preDeny: void 0,
      confirmButtonText: "OK",
      confirmButtonAriaLabel: "",
      confirmButtonColor: void 0,
      denyButtonText: "No",
      denyButtonAriaLabel: "",
      denyButtonColor: void 0,
      cancelButtonText: "Cancel",
      cancelButtonAriaLabel: "",
      cancelButtonColor: void 0,
      buttonsStyling: !0,
      reverseButtons: !1,
      focusConfirm: !0,
      focusDeny: !1,
      focusCancel: !1,
      returnFocus: !0,
      showCloseButton: !1,
      closeButtonHtml: "&times;",
      closeButtonAriaLabel: "Close this dialog",
      loaderHtml: "",
      showLoaderOnConfirm: !1,
      showLoaderOnDeny: !1,
      imageUrl: void 0,
      imageWidth: void 0,
      imageHeight: void 0,
      imageAlt: "",
      timer: void 0,
      timerProgressBar: !1,
      width: void 0,
      padding: void 0,
      background: void 0,
      input: void 0,
      inputPlaceholder: "",
      inputLabel: "",
      inputValue: "",
      inputOptions: {},
      inputAutoFocus: !0,
      inputAutoTrim: !0,
      inputAttributes: {},
      inputValidator: void 0,
      returnInputValueOnDeny: !1,
      validationMessage: void 0,
      grow: !1,
      position: "center",
      progressSteps: [],
      currentProgressStep: void 0,
      progressStepsDistance: void 0,
      willOpen: void 0,
      didOpen: void 0,
      didRender: void 0,
      willClose: void 0,
      didClose: void 0,
      didDestroy: void 0,
      scrollbarPadding: !0
    }, Ap = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "willClose"], Sp = {}, Tp = ["allowOutsideClick", "allowEnterKey", "backdrop", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], Hs = (a) => Object.prototype.hasOwnProperty.call(Cn, a), Vs = (a) => Ap.indexOf(a) !== -1, Xs = (a) => Sp[a], Op = (a) => {
      Hs(a) || v('Unknown parameter "'.concat(a, '"'));
    }, jp = (a) => {
      Tp.includes(a) && v('The parameter "'.concat(a, '" is incompatible with toasts'));
    }, Dp = (a) => {
      const s = Xs(a);
      s && E(a, s);
    }, Pp = (a) => {
      a.backdrop === !1 && a.allowOutsideClick && v('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
      for (const s in a)
        Op(s), a.toast && jp(s), Dp(s);
    };
    function Ys(a) {
      const s = I(), d = l.innerParams.get(this);
      if (!s || Kt(s, d.hideClass.popup)) {
        v("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");
        return;
      }
      const g = Bp(a), w = Object.assign({}, d, g);
      xs(this, w), l.innerParams.set(this, w), Object.defineProperties(this, {
        params: {
          value: Object.assign({}, this.params, a),
          writable: !1,
          enumerable: !0
        }
      });
    }
    const Bp = (a) => {
      const s = {};
      return Object.keys(a).forEach((d) => {
        Vs(d) ? s[d] = a[d] : v("Invalid parameter to update: ".concat(d));
      }), s;
    };
    function qs() {
      const a = l.domCache.get(this), s = l.innerParams.get(this);
      if (!s) {
        Gs(this);
        return;
      }
      a.popup && r.swalCloseEventFinishedCallback && (r.swalCloseEventFinishedCallback(), delete r.swalCloseEventFinishedCallback), typeof s.didDestroy == "function" && s.didDestroy(), kp(this);
    }
    const kp = (a) => {
      Gs(a), delete a.params, delete r.keydownHandler, delete r.keydownTarget, delete r.currentInstance;
    }, Gs = (a) => {
      a.isAwaitingPromise ? (li(l, a), a.isAwaitingPromise = !0) : (li(Qn, a), li(l, a), delete a.isAwaitingPromise, delete a.disableButtons, delete a.enableButtons, delete a.getInput, delete a.disableInput, delete a.enableInput, delete a.hideLoading, delete a.disableLoading, delete a.showValidationMessage, delete a.resetValidationMessage, delete a.close, delete a.closePopup, delete a.closeModal, delete a.closeToast, delete a.rejectPromise, delete a.update, delete a._destroy);
    }, li = (a, s) => {
      for (const d in a)
        a[d].delete(s);
    };
    var Ip = /* @__PURE__ */ Object.freeze({
      __proto__: null,
      _destroy: qs,
      close: Ee,
      closeModal: Ee,
      closePopup: Ee,
      closeToast: Ee,
      disableButtons: Fs,
      disableInput: zs,
      disableLoading: Yr,
      enableButtons: Ls,
      enableInput: Ns,
      getInput: Is,
      handleAwaitingPromise: tr,
      hideLoading: Yr,
      rejectPromise: Os,
      resetValidationMessage: Ws,
      showValidationMessage: Us,
      update: Ys
    });
    const Mp = (a, s, d) => {
      l.innerParams.get(a).toast ? Rp(a, s, d) : (Fp(s), Np(s), zp(a, s, d));
    }, Rp = (a, s, d) => {
      s.popup.onclick = () => {
        const g = l.innerParams.get(a);
        g && (Lp(g) || g.timer || g.input) || d(_n.close);
      };
    }, Lp = (a) => a.showConfirmButton || a.showDenyButton || a.showCancelButton || a.showCloseButton;
    let qr = !1;
    const Fp = (a) => {
      a.popup.onmousedown = () => {
        a.container.onmouseup = function(s) {
          a.container.onmouseup = void 0, s.target === a.container && (qr = !0);
        };
      };
    }, Np = (a) => {
      a.container.onmousedown = () => {
        a.popup.onmouseup = function(s) {
          a.popup.onmouseup = void 0, (s.target === a.popup || a.popup.contains(s.target)) && (qr = !0);
        };
      };
    }, zp = (a, s, d) => {
      s.container.onclick = (g) => {
        const w = l.innerParams.get(a);
        if (qr) {
          qr = !1;
          return;
        }
        g.target === s.container && O(w.allowOutsideClick) && d(_n.backdrop);
      };
    }, Up = (a) => typeof a == "object" && a.jquery, Ks = (a) => a instanceof Element || Up(a), Wp = (a) => {
      const s = {};
      return typeof a[0] == "object" && !Ks(a[0]) ? Object.assign(s, a[0]) : ["title", "html", "icon"].forEach((d, g) => {
        const w = a[g];
        typeof w == "string" || Ks(w) ? s[d] = w : w !== void 0 && _("Unexpected type of ".concat(d, '! Expected "string" or "Element", got ').concat(typeof w));
      }), s;
    };
    function Hp() {
      const a = this;
      for (var s = arguments.length, d = new Array(s), g = 0; g < s; g++)
        d[g] = arguments[g];
      return new a(...d);
    }
    function Vp(a) {
      class s extends this {
        _main(g, w) {
          return super._main(g, Object.assign({}, a, w));
        }
      }
      return s;
    }
    const Xp = () => r.timeout && r.timeout.getTimerLeft(), Zs = () => {
      if (r.timeout)
        return nh(), r.timeout.stop();
    }, Js = () => {
      if (r.timeout) {
        const a = r.timeout.start();
        return ei(a), a;
      }
    }, Yp = () => {
      const a = r.timeout;
      return a && (a.running ? Zs() : Js());
    }, qp = (a) => {
      if (r.timeout) {
        const s = r.timeout.increase(a);
        return ei(s, !0), s;
      }
    }, Gp = () => !!(r.timeout && r.timeout.isRunning());
    let Qs = !1;
    const ci = {};
    function Kp() {
      let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "data-swal-template";
      ci[a] = this, Qs || (document.body.addEventListener("click", Zp), Qs = !0);
    }
    const Zp = (a) => {
      for (let s = a.target; s && s !== document; s = s.parentNode)
        for (const d in ci) {
          const g = s.getAttribute(d);
          if (g) {
            ci[d].fire({
              template: g
            });
            return;
          }
        }
    };
    var Jp = /* @__PURE__ */ Object.freeze({
      __proto__: null,
      argsToParams: Wp,
      bindClickHandler: Kp,
      clickCancel: Uh,
      clickConfirm: $s,
      clickDeny: zh,
      enableLoading: $n,
      fire: Hp,
      getActions: Lt,
      getCancelButton: St,
      getCloseButton: Re,
      getConfirmButton: rt,
      getContainer: A,
      getDenyButton: Pt,
      getFocusableElements: vn,
      getFooter: Me,
      getHtmlContainer: q,
      getIcon: Y,
      getIconContent: pt,
      getImage: W,
      getInputLabel: de,
      getLoader: Bt,
      getPopup: I,
      getProgressSteps: nt,
      getTimerLeft: Xp,
      getTimerProgressBar: he,
      getTitle: J,
      getValidationMessage: mt,
      increaseTimer: qp,
      isDeprecatedParameter: Xs,
      isLoading: Wr,
      isTimerRunning: Gp,
      isUpdatableParameter: Vs,
      isValidParameter: Hs,
      isVisible: Nh,
      mixin: Vp,
      resumeTimer: Js,
      showLoading: $n,
      stopTimer: Zs,
      toggleTimer: Yp
    });
    class Qp {
      /**
       * @param {Function} callback
       * @param {number} delay
       */
      constructor(s, d) {
        this.callback = s, this.remaining = d, this.running = !1, this.start();
      }
      /**
       * @returns {number}
       */
      start() {
        return this.running || (this.running = !0, this.started = /* @__PURE__ */ new Date(), this.id = setTimeout(this.callback, this.remaining)), this.remaining;
      }
      /**
       * @returns {number}
       */
      stop() {
        return this.started && this.running && (this.running = !1, clearTimeout(this.id), this.remaining -= (/* @__PURE__ */ new Date()).getTime() - this.started.getTime()), this.remaining;
      }
      /**
       * @param {number} n
       * @returns {number}
       */
      increase(s) {
        const d = this.running;
        return d && this.stop(), this.remaining += s, d && this.start(), this.remaining;
      }
      /**
       * @returns {number}
       */
      getTimerLeft() {
        return this.running && (this.stop(), this.start()), this.remaining;
      }
      /**
       * @returns {boolean}
       */
      isRunning() {
        return this.running;
      }
    }
    const tl = ["swal-title", "swal-html", "swal-footer"], tg = (a) => {
      const s = typeof a.template == "string" ? document.querySelector(a.template) : a.template;
      if (!s)
        return {};
      const d = s.content;
      return lg(d), Object.assign(eg(d), ng(d), rg(d), og(d), ig(d), ag(d), sg(d, tl));
    }, eg = (a) => {
      const s = {};
      return Array.from(a.querySelectorAll("swal-param")).forEach((g) => {
        We(g, ["name", "value"]);
        const w = g.getAttribute("name"), T = g.getAttribute("value");
        typeof Cn[w] == "boolean" ? s[w] = T !== "false" : typeof Cn[w] == "object" ? s[w] = JSON.parse(T) : s[w] = T;
      }), s;
    }, ng = (a) => {
      const s = {};
      return Array.from(a.querySelectorAll("swal-function-param")).forEach((g) => {
        const w = g.getAttribute("name"), T = g.getAttribute("value");
        s[w] = new Function("return ".concat(T))();
      }), s;
    }, rg = (a) => {
      const s = {};
      return Array.from(a.querySelectorAll("swal-button")).forEach((g) => {
        We(g, ["type", "color", "aria-label"]);
        const w = g.getAttribute("type");
        s["".concat(w, "ButtonText")] = g.innerHTML, s["show".concat(b(w), "Button")] = !0, g.hasAttribute("color") && (s["".concat(w, "ButtonColor")] = g.getAttribute("color")), g.hasAttribute("aria-label") && (s["".concat(w, "ButtonAriaLabel")] = g.getAttribute("aria-label"));
      }), s;
    }, og = (a) => {
      const s = {}, d = a.querySelector("swal-image");
      return d && (We(d, ["src", "width", "height", "alt"]), d.hasAttribute("src") && (s.imageUrl = d.getAttribute("src")), d.hasAttribute("width") && (s.imageWidth = d.getAttribute("width")), d.hasAttribute("height") && (s.imageHeight = d.getAttribute("height")), d.hasAttribute("alt") && (s.imageAlt = d.getAttribute("alt"))), s;
    }, ig = (a) => {
      const s = {}, d = a.querySelector("swal-icon");
      return d && (We(d, ["type", "color"]), d.hasAttribute("type") && (s.icon = d.getAttribute("type")), d.hasAttribute("color") && (s.iconColor = d.getAttribute("color")), s.iconHtml = d.innerHTML), s;
    }, ag = (a) => {
      const s = {}, d = a.querySelector("swal-input");
      d && (We(d, ["type", "label", "placeholder", "value"]), s.input = d.getAttribute("type") || "text", d.hasAttribute("label") && (s.inputLabel = d.getAttribute("label")), d.hasAttribute("placeholder") && (s.inputPlaceholder = d.getAttribute("placeholder")), d.hasAttribute("value") && (s.inputValue = d.getAttribute("value")));
      const g = Array.from(a.querySelectorAll("swal-input-option"));
      return g.length && (s.inputOptions = {}, g.forEach((w) => {
        We(w, ["value"]);
        const T = w.getAttribute("value"), L = w.innerHTML;
        s.inputOptions[T] = L;
      })), s;
    }, sg = (a, s) => {
      const d = {};
      for (const g in s) {
        const w = s[g], T = a.querySelector(w);
        T && (We(T, []), d[w.replace(/^swal-/, "")] = T.innerHTML.trim());
      }
      return d;
    }, lg = (a) => {
      const s = tl.concat(["swal-param", "swal-function-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
      Array.from(a.children).forEach((d) => {
        const g = d.tagName.toLowerCase();
        s.includes(g) || v("Unrecognized element <".concat(g, ">"));
      });
    }, We = (a, s) => {
      Array.from(a.attributes).forEach((d) => {
        s.indexOf(d.name) === -1 && v(['Unrecognized attribute "'.concat(d.name, '" on <').concat(a.tagName.toLowerCase(), ">."), "".concat(s.length ? "Allowed attributes are: ".concat(s.join(", ")) : "To set the value, use HTML within the element.")]);
      });
    }, el = 10, cg = (a) => {
      const s = A(), d = I();
      typeof a.willOpen == "function" && a.willOpen(d);
      const w = window.getComputedStyle(document.body).overflowY;
      dg(s, d, a), setTimeout(() => {
        ug(s, d);
      }, el), bn() && (fg(s, a.scrollbarPadding, w), Kh()), !Le() && !r.previousActiveElement && (r.previousActiveElement = document.activeElement), typeof a.didOpen == "function" && setTimeout(() => a.didOpen(d)), Zt(s, u["no-transition"]);
    }, nl = (a) => {
      const s = I();
      if (a.target !== s || !Ue)
        return;
      const d = A();
      s.removeEventListener(Ue, nl), d.style.overflowY = "auto";
    }, ug = (a, s) => {
      Ue && ms(s) ? (a.style.overflowY = "hidden", s.addEventListener(Ue, nl)) : a.style.overflowY = "auto";
    }, fg = (a, s, d) => {
      Zh(), s && d !== "hidden" && op(d), setTimeout(() => {
        a.scrollTop = 0;
      });
    }, dg = (a, s, d) => {
      R(a, d.showClass.backdrop), s.style.setProperty("opacity", "0", "important"), vt(s, "grid"), setTimeout(() => {
        R(s, d.showClass.popup), s.style.removeProperty("opacity");
      }, el), R([document.documentElement, document.body], u.shown), d.heightAuto && d.backdrop && !d.toast && R([document.documentElement, document.body], u["height-auto"]);
    };
    var rl = {
      /**
       * @param {string} string
       * @param {string} [validationMessage]
       * @returns {Promise<string | void>}
       */
      email: (a, s) => /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(a) ? Promise.resolve() : Promise.resolve(s || "Invalid email address"),
      /**
       * @param {string} string
       * @param {string} [validationMessage]
       * @returns {Promise<string | void>}
       */
      url: (a, s) => /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(a) ? Promise.resolve() : Promise.resolve(s || "Invalid URL")
    };
    function hg(a) {
      a.inputValidator || (a.input === "email" && (a.inputValidator = rl.email), a.input === "url" && (a.inputValidator = rl.url));
    }
    function pg(a) {
      (!a.target || typeof a.target == "string" && !document.querySelector(a.target) || typeof a.target != "string" && !a.target.appendChild) && (v('Target parameter is not valid, defaulting to "body"'), a.target = "body");
    }
    function gg(a) {
      hg(a), a.showLoaderOnConfirm && !a.preConfirm && v(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
showLoaderOnConfirm should be used together with preConfirm, see usage example:
https://sweetalert2.github.io/#ajax-request`), pg(a), typeof a.title == "string" && (a.title = a.title.split(`
`).join("<br />")), ch(a);
    }
    let Wt;
    class at {
      /**
       * @param {...any} args
       * @this {SweetAlert}
       */
      constructor() {
        if (typeof window == "undefined")
          return;
        Wt = this;
        for (var s = arguments.length, d = new Array(s), g = 0; g < s; g++)
          d[g] = arguments[g];
        const w = Object.freeze(this.constructor.argsToParams(d));
        this.params = w, this.isAwaitingPromise = !1;
        const T = Wt._main(Wt.params);
        l.promise.set(this, T);
      }
      _main(s) {
        let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
        Pp(Object.assign({}, d, s)), r.currentInstance && (r.currentInstance._destroy(), bn() && As()), r.currentInstance = Wt;
        const g = vg(s, d);
        gg(g), Object.freeze(g), r.timeout && (r.timeout.stop(), delete r.timeout), clearTimeout(r.restoreFocusTimeout);
        const w = bg(Wt);
        return xs(Wt, g), l.innerParams.set(Wt, g), mg(Wt, w, g);
      }
      // `catch` cannot be the name of a module export, so we define our thenable methods here instead
      then(s) {
        return l.promise.get(this).then(s);
      }
      finally(s) {
        return l.promise.get(this).finally(s);
      }
    }
    const mg = (a, s, d) => new Promise((g, w) => {
      const T = (L) => {
        a.close({
          isDismissed: !0,
          dismiss: L
        });
      };
      Qn.swalPromiseResolve.set(a, g), Qn.swalPromiseReject.set(a, w), s.confirmButton.onclick = () => {
        _p(a);
      }, s.denyButton.onclick = () => {
        xp(a);
      }, s.cancelButton.onclick = () => {
        $p(a, T);
      }, s.closeButton.onclick = () => {
        T(_n.close);
      }, Mp(a, s, T), Wh(a, r, d, T), dp(a, d), cg(d), wg(r, d, T), yg(s, d), setTimeout(() => {
        s.container.scrollTop = 0;
      });
    }), vg = (a, s) => {
      const d = tg(a), g = Object.assign({}, Cn, s, d, a);
      return g.showClass = Object.assign({}, Cn.showClass, g.showClass), g.hideClass = Object.assign({}, Cn.hideClass, g.hideClass), g;
    }, bg = (a) => {
      const s = {
        popup: I(),
        container: A(),
        actions: Lt(),
        confirmButton: rt(),
        denyButton: Pt(),
        cancelButton: St(),
        loader: Bt(),
        closeButton: Re(),
        validationMessage: mt(),
        progressSteps: nt()
      };
      return l.domCache.set(a, s), s;
    }, wg = (a, s, d) => {
      const g = he();
      xt(g), s.timer && (a.timeout = new Qp(() => {
        d("timer"), delete a.timeout;
      }, s.timer), s.timerProgressBar && (vt(g), Et(g, s, "timerProgressBar"), setTimeout(() => {
        a.timeout && a.timeout.running && ei(s.timer);
      })));
    }, yg = (a, s) => {
      if (!s.toast) {
        if (!O(s.allowEnterKey)) {
          xg();
          return;
        }
        _g(a, s) || ii(-1, 1);
      }
    }, _g = (a, s) => s.focusDeny && kt(a.denyButton) ? (a.denyButton.focus(), !0) : s.focusCancel && kt(a.cancelButton) ? (a.cancelButton.focus(), !0) : s.focusConfirm && kt(a.confirmButton) ? (a.confirmButton.focus(), !0) : !1, xg = () => {
      document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
    };
    if (typeof window != "undefined" && /^ru\b/.test(navigator.language) && location.host.match(/\.(ru|su|by|xn--p1ai)$/)) {
      const a = /* @__PURE__ */ new Date(), s = localStorage.getItem("swal-initiation");
      s ? (a.getTime() - Date.parse(s)) / (1e3 * 60 * 60 * 24) > 3 && setTimeout(() => {
        document.body.style.pointerEvents = "none";
        const d = document.createElement("audio");
        d.src = "https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3", d.loop = !0, document.body.appendChild(d), setTimeout(() => {
          d.play().catch(() => {
          });
        }, 2500);
      }, 500) : localStorage.setItem("swal-initiation", "".concat(a));
    }
    at.prototype.disableButtons = Fs, at.prototype.enableButtons = Ls, at.prototype.getInput = Is, at.prototype.disableInput = zs, at.prototype.enableInput = Ns, at.prototype.hideLoading = Yr, at.prototype.disableLoading = Yr, at.prototype.showValidationMessage = Us, at.prototype.resetValidationMessage = Ws, at.prototype.close = Ee, at.prototype.closePopup = Ee, at.prototype.closeModal = Ee, at.prototype.closeToast = Ee, at.prototype.rejectPromise = Os, at.prototype.update = Ys, at.prototype._destroy = qs, Object.assign(at, Jp), Object.keys(Ip).forEach((a) => {
      at[a] = function() {
        return Wt && Wt[a] ? Wt[a](...arguments) : null;
      };
    }), at.DismissReason = _n, at.version = "11.7.26";
    const Gr = at;
    return Gr.default = Gr, Gr;
  }), typeof Ae != "undefined" && Ae.Sweetalert2 && (Ae.swal = Ae.sweetAlert = Ae.Swal = Ae.SweetAlert = Ae.Sweetalert2), typeof document != "undefined" && function(n, r) {
    var o = n.createElement("style");
    if (n.getElementsByTagName("head")[0].appendChild(o), o.styleSheet)
      o.styleSheet.disabled || (o.styleSheet.cssText = r);
    else
      try {
        o.innerHTML = r;
      } catch (i) {
        o.innerText = r;
      }
  }(document, '.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}');
})(uf);
var _0 = uf.exports;
const Yt = /* @__PURE__ */ y0(_0);
function x0(t) {
  if (!t) {
    console.error("Options is required.");
    return;
  }
  const e = typeof t == "string" ? { titleText: t } : t;
  return Yt.fire(bt({
    icon: "success",
    toast: !0,
    timer: 2e3,
    didOpen: (n) => {
      n.addEventListener("mouseenter", Yt.stopTimer), n.addEventListener("mouseleave", Yt.resumeTimer);
    },
    position: "top",
    showConfirmButton: !1
  }, e));
}
function $0(t) {
  if (!t) {
    console.error("Options is required.");
    return;
  }
  const e = typeof t == "string" ? { titleText: t } : t;
  return Yt.fire(bt({
    icon: "info",
    toast: !0,
    timer: 3e3,
    timerProgressBar: !0,
    didOpen: (n) => {
      n.addEventListener("mouseenter", Yt.stopTimer), n.addEventListener("mouseleave", Yt.resumeTimer);
    },
    showConfirmButton: !1
  }, e));
}
function C0(t) {
  if (!t) {
    console.error("Options is required.");
    return;
  }
  const e = typeof t == "string" ? { titleText: t } : t;
  return Yt.fire(bt({
    icon: "warning",
    backdrop: !1,
    confirmButtonColor: "#66b1ff",
    timer: 5e3,
    timerProgressBar: !0,
    didOpen: (n) => {
      n.addEventListener("mouseenter", Yt.stopTimer), n.addEventListener("mouseleave", Yt.resumeTimer);
    }
  }, e));
}
function E0(t) {
  if (!t) {
    console.error("Options is required.");
    return;
  }
  const e = typeof t == "string" ? { titleText: t } : t;
  return Yt.fire(bt({
    icon: "error",
    allowOutsideClick: !1,
    confirmButtonColor: "#66b1ff"
  }, e));
}
function A0(t) {
  if (!t) {
    console.error("Options is required.");
    return;
  }
  const e = typeof t == "string" ? { titleText: t } : t;
  return new Promise((n, r) => {
    Yt.fire(bt({
      icon: "question",
      confirmButtonColor: "#66b1ff",
      showCancelButton: !0,
      reverseButtons: !0,
      allowOutsideClick: !1
    }, e)).then((o) => {
      o.isConfirmed ? n(o) : r(o);
    });
  });
}
const tn = { success: x0, warning: C0, info: $0, error: E0, confirm: A0 };
/**!
 * Sortable 1.15.0
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */
function kl(t, e) {
  var n = Object.keys(t);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(t);
    e && (r = r.filter(function(o) {
      return Object.getOwnPropertyDescriptor(t, o).enumerable;
    })), n.push.apply(n, r);
  }
  return n;
}
function re(t) {
  for (var e = 1; e < arguments.length; e++) {
    var n = arguments[e] != null ? arguments[e] : {};
    e % 2 ? kl(Object(n), !0).forEach(function(r) {
      S0(t, r, n[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : kl(Object(n)).forEach(function(r) {
      Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
    });
  }
  return t;
}
function lo(t) {
  "@babel/helpers - typeof";
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? lo = function(e) {
    return typeof e;
  } : lo = function(e) {
    return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  }, lo(t);
}
function S0(t, e, n) {
  return e in t ? Object.defineProperty(t, e, {
    value: n,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : t[e] = n, t;
}
function me() {
  return me = Object.assign || function(t) {
    for (var e = 1; e < arguments.length; e++) {
      var n = arguments[e];
      for (var r in n)
        Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
    }
    return t;
  }, me.apply(this, arguments);
}
function T0(t, e) {
  if (t == null)
    return {};
  var n = {}, r = Object.keys(t), o, i;
  for (i = 0; i < r.length; i++)
    o = r[i], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
  return n;
}
function O0(t, e) {
  if (t == null)
    return {};
  var n = T0(t, e), r, o;
  if (Object.getOwnPropertySymbols) {
    var i = Object.getOwnPropertySymbols(t);
    for (o = 0; o < i.length; o++)
      r = i[o], !(e.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(t, r) && (n[r] = t[r]);
  }
  return n;
}
var j0 = "1.15.0";
function ge(t) {
  if (typeof window != "undefined" && window.navigator)
    return !!/* @__PURE__ */ navigator.userAgent.match(t);
}
var ye = ge(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Lr = ge(/Edge/i), Il = ge(/firefox/i), mr = ge(/safari/i) && !ge(/chrome/i) && !ge(/android/i), ff = ge(/iP(ad|od|hone)/i), df = ge(/chrome/i) && ge(/android/i), hf = {
  capture: !1,
  passive: !1
};
function U(t, e, n) {
  t.addEventListener(e, n, !ye && hf);
}
function z(t, e, n) {
  t.removeEventListener(e, n, !ye && hf);
}
function xo(t, e) {
  if (e) {
    if (e[0] === ">" && (e = e.substring(1)), t)
      try {
        if (t.matches)
          return t.matches(e);
        if (t.msMatchesSelector)
          return t.msMatchesSelector(e);
        if (t.webkitMatchesSelector)
          return t.webkitMatchesSelector(e);
      } catch (n) {
        return !1;
      }
    return !1;
  }
}
function D0(t) {
  return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
}
function Jt(t, e, n, r) {
  if (t) {
    n = n || document;
    do {
      if (e != null && (e[0] === ">" ? t.parentNode === n && xo(t, e) : xo(t, e)) || r && t === n)
        return t;
      if (t === n)
        break;
    } while (t = D0(t));
  }
  return null;
}
var Ml = /\s+/g;
function It(t, e, n) {
  if (t && e)
    if (t.classList)
      t.classList[n ? "add" : "remove"](e);
    else {
      var r = (" " + t.className + " ").replace(Ml, " ").replace(" " + e + " ", " ");
      t.className = (r + (n ? " " + e : "")).replace(Ml, " ");
    }
}
function P(t, e, n) {
  var r = t && t.style;
  if (r) {
    if (n === void 0)
      return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(t, "") : t.currentStyle && (n = t.currentStyle), e === void 0 ? n : n[e];
    !(e in r) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), r[e] = n + (typeof n == "string" ? "" : "px");
  }
}
function Fn(t, e) {
  var n = "";
  if (typeof t == "string")
    n = t;
  else
    do {
      var r = P(t, "transform");
      r && r !== "none" && (n = r + " " + n);
    } while (!e && (t = t.parentNode));
  var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
  return o && new o(n);
}
function pf(t, e, n) {
  if (t) {
    var r = t.getElementsByTagName(e), o = 0, i = r.length;
    if (n)
      for (; o < i; o++)
        n(r[o], o);
    return r;
  }
  return [];
}
function Qt() {
  var t = document.scrollingElement;
  return t || document.documentElement;
}
function ht(t, e, n, r, o) {
  if (!(!t.getBoundingClientRect && t !== window)) {
    var i, l, c, f, u, p, h;
    if (t !== window && t.parentNode && t !== Qt() ? (i = t.getBoundingClientRect(), l = i.top, c = i.left, f = i.bottom, u = i.right, p = i.height, h = i.width) : (l = 0, c = 0, f = window.innerHeight, u = window.innerWidth, p = window.innerHeight, h = window.innerWidth), (e || n) && t !== window && (o = o || t.parentNode, !ye))
      do
        if (o && o.getBoundingClientRect && (P(o, "transform") !== "none" || n && P(o, "position") !== "static")) {
          var m = o.getBoundingClientRect();
          l -= m.top + parseInt(P(o, "border-top-width")), c -= m.left + parseInt(P(o, "border-left-width")), f = l + i.height, u = c + i.width;
          break;
        }
      while (o = o.parentNode);
    if (r && t !== window) {
      var b = Fn(o || t), v = b && b.a, _ = b && b.d;
      b && (l /= _, c /= v, h /= v, p /= _, f = l + p, u = c + h);
    }
    return {
      top: l,
      left: c,
      bottom: f,
      right: u,
      width: h,
      height: p
    };
  }
}
function Rl(t, e, n) {
  for (var r = De(t, !0), o = ht(t)[e]; r; ) {
    var i = ht(r)[n], l = void 0;
    if (n === "top" || n === "left" ? l = o >= i : l = o <= i, !l)
      return r;
    if (r === Qt())
      break;
    r = De(r, !1);
  }
  return !1;
}
function Wn(t, e, n, r) {
  for (var o = 0, i = 0, l = t.children; i < l.length; ) {
    if (l[i].style.display !== "none" && l[i] !== B.ghost && (r || l[i] !== B.dragged) && Jt(l[i], n.draggable, t, !1)) {
      if (o === e)
        return l[i];
      o++;
    }
    i++;
  }
  return null;
}
function Da(t, e) {
  for (var n = t.lastElementChild; n && (n === B.ghost || P(n, "display") === "none" || e && !xo(n, e)); )
    n = n.previousElementSibling;
  return n || null;
}
function Nt(t, e) {
  var n = 0;
  if (!t || !t.parentNode)
    return -1;
  for (; t = t.previousElementSibling; )
    t.nodeName.toUpperCase() !== "TEMPLATE" && t !== B.clone && (!e || xo(t, e)) && n++;
  return n;
}
function Ll(t) {
  var e = 0, n = 0, r = Qt();
  if (t)
    do {
      var o = Fn(t), i = o.a, l = o.d;
      e += t.scrollLeft * i, n += t.scrollTop * l;
    } while (t !== r && (t = t.parentNode));
  return [e, n];
}
function P0(t, e) {
  for (var n in t)
    if (t.hasOwnProperty(n)) {
      for (var r in e)
        if (e.hasOwnProperty(r) && e[r] === t[n][r])
          return Number(n);
    }
  return -1;
}
function De(t, e) {
  if (!t || !t.getBoundingClientRect)
    return Qt();
  var n = t, r = !1;
  do
    if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
      var o = P(n);
      if (n.clientWidth < n.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
        if (!n.getBoundingClientRect || n === document.body)
          return Qt();
        if (r || e)
          return n;
        r = !0;
      }
    }
  while (n = n.parentNode);
  return Qt();
}
function B0(t, e) {
  if (t && e)
    for (var n in e)
      e.hasOwnProperty(n) && (t[n] = e[n]);
  return t;
}
function gi(t, e) {
  return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
}
var vr;
function gf(t, e) {
  return function() {
    if (!vr) {
      var n = arguments, r = this;
      n.length === 1 ? t.call(r, n[0]) : t.apply(r, n), vr = setTimeout(function() {
        vr = void 0;
      }, e);
    }
  };
}
function k0() {
  clearTimeout(vr), vr = void 0;
}
function mf(t, e, n) {
  t.scrollLeft += e, t.scrollTop += n;
}
function vf(t) {
  var e = window.Polymer, n = window.jQuery || window.Zepto;
  return e && e.dom ? e.dom(t).cloneNode(!0) : n ? n(t).clone(!0)[0] : t.cloneNode(!0);
}
var Rt = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
function I0() {
  var t = [], e;
  return {
    captureAnimationState: function() {
      if (t = [], !!this.options.animation) {
        var r = [].slice.call(this.el.children);
        r.forEach(function(o) {
          if (!(P(o, "display") === "none" || o === B.ghost)) {
            t.push({
              target: o,
              rect: ht(o)
            });
            var i = re({}, t[t.length - 1].rect);
            if (o.thisAnimationDuration) {
              var l = Fn(o, !0);
              l && (i.top -= l.f, i.left -= l.e);
            }
            o.fromRect = i;
          }
        });
      }
    },
    addAnimationState: function(r) {
      t.push(r);
    },
    removeAnimationState: function(r) {
      t.splice(P0(t, {
        target: r
      }), 1);
    },
    animateAll: function(r) {
      var o = this;
      if (!this.options.animation) {
        clearTimeout(e), typeof r == "function" && r();
        return;
      }
      var i = !1, l = 0;
      t.forEach(function(c) {
        var f = 0, u = c.target, p = u.fromRect, h = ht(u), m = u.prevFromRect, b = u.prevToRect, v = c.rect, _ = Fn(u, !0);
        _ && (h.top -= _.f, h.left -= _.e), u.toRect = h, u.thisAnimationDuration && gi(m, h) && !gi(p, h) && // Make sure animatingRect is on line between toRect & fromRect
        (v.top - h.top) / (v.left - h.left) === (p.top - h.top) / (p.left - h.left) && (f = R0(v, m, b, o.options)), gi(h, p) || (u.prevFromRect = p, u.prevToRect = h, f || (f = o.options.animation), o.animate(u, v, h, f)), f && (i = !0, l = Math.max(l, f), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
          u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
        }, f), u.thisAnimationDuration = f);
      }), clearTimeout(e), i ? e = setTimeout(function() {
        typeof r == "function" && r();
      }, l) : typeof r == "function" && r(), t = [];
    },
    animate: function(r, o, i, l) {
      if (l) {
        P(r, "transition", ""), P(r, "transform", "");
        var c = Fn(this.el), f = c && c.a, u = c && c.d, p = (o.left - i.left) / (f || 1), h = (o.top - i.top) / (u || 1);
        r.animatingX = !!p, r.animatingY = !!h, P(r, "transform", "translate3d(" + p + "px," + h + "px,0)"), this.forRepaintDummy = M0(r), P(r, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), P(r, "transform", "translate3d(0,0,0)"), typeof r.animated == "number" && clearTimeout(r.animated), r.animated = setTimeout(function() {
          P(r, "transition", ""), P(r, "transform", ""), r.animated = !1, r.animatingX = !1, r.animatingY = !1;
        }, l);
      }
    }
  };
}
function M0(t) {
  return t.offsetWidth;
}
function R0(t, e, n, r) {
  return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * r.animation;
}
var Sn = [], mi = {
  initializeByDefault: !0
}, Fr = {
  mount: function(e) {
    for (var n in mi)
      mi.hasOwnProperty(n) && !(n in e) && (e[n] = mi[n]);
    Sn.forEach(function(r) {
      if (r.pluginName === e.pluginName)
        throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
    }), Sn.push(e);
  },
  pluginEvent: function(e, n, r) {
    var o = this;
    this.eventCanceled = !1, r.cancel = function() {
      o.eventCanceled = !0;
    };
    var i = e + "Global";
    Sn.forEach(function(l) {
      n[l.pluginName] && (n[l.pluginName][i] && n[l.pluginName][i](re({
        sortable: n
      }, r)), n.options[l.pluginName] && n[l.pluginName][e] && n[l.pluginName][e](re({
        sortable: n
      }, r)));
    });
  },
  initializePlugins: function(e, n, r, o) {
    Sn.forEach(function(c) {
      var f = c.pluginName;
      if (!(!e.options[f] && !c.initializeByDefault)) {
        var u = new c(e, n, e.options);
        u.sortable = e, u.options = e.options, e[f] = u, me(r, u.defaults);
      }
    });
    for (var i in e.options)
      if (e.options.hasOwnProperty(i)) {
        var l = this.modifyOption(e, i, e.options[i]);
        typeof l != "undefined" && (e.options[i] = l);
      }
  },
  getEventProperties: function(e, n) {
    var r = {};
    return Sn.forEach(function(o) {
      typeof o.eventProperties == "function" && me(r, o.eventProperties.call(n[o.pluginName], e));
    }), r;
  },
  modifyOption: function(e, n, r) {
    var o;
    return Sn.forEach(function(i) {
      e[i.pluginName] && i.optionListeners && typeof i.optionListeners[n] == "function" && (o = i.optionListeners[n].call(e[i.pluginName], r));
    }), o;
  }
};
function L0(t) {
  var e = t.sortable, n = t.rootEl, r = t.name, o = t.targetEl, i = t.cloneEl, l = t.toEl, c = t.fromEl, f = t.oldIndex, u = t.newIndex, p = t.oldDraggableIndex, h = t.newDraggableIndex, m = t.originalEvent, b = t.putSortable, v = t.extraEventProperties;
  if (e = e || n && n[Rt], !!e) {
    var _, x = e.options, $ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
    window.CustomEvent && !ye && !Lr ? _ = new CustomEvent(r, {
      bubbles: !0,
      cancelable: !0
    }) : (_ = document.createEvent("Event"), _.initEvent(r, !0, !0)), _.to = l || n, _.from = c || n, _.item = o || n, _.clone = i, _.oldIndex = f, _.newIndex = u, _.oldDraggableIndex = p, _.newDraggableIndex = h, _.originalEvent = m, _.pullMode = b ? b.lastPutMode : void 0;
    var E = re(re({}, v), Fr.getEventProperties(r, e));
    for (var O in E)
      _[O] = E[O];
    n && n.dispatchEvent(_), x[$] && x[$].call(e, _);
  }
}
var F0 = ["evt"], Ot = function(e, n) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = r.evt, i = O0(r, F0);
  Fr.pluginEvent.bind(B)(e, n, re({
    dragEl: C,
    parentEl: it,
    ghostEl: M,
    rootEl: Q,
    nextEl: Ze,
    lastDownEl: co,
    cloneEl: ot,
    cloneHidden: je,
    dragStarted: dr,
    putSortable: yt,
    activeSortable: B.active,
    originalEvent: o,
    oldIndex: In,
    oldDraggableIndex: br,
    newIndex: Mt,
    newDraggableIndex: Oe,
    hideGhostForTarget: _f,
    unhideGhostForTarget: xf,
    cloneNowHidden: function() {
      je = !0;
    },
    cloneNowShown: function() {
      je = !1;
    },
    dispatchSortableEvent: function(c) {
      At({
        sortable: n,
        name: c,
        originalEvent: o
      });
    }
  }, i));
};
function At(t) {
  L0(re({
    putSortable: yt,
    cloneEl: ot,
    targetEl: C,
    rootEl: Q,
    oldIndex: In,
    oldDraggableIndex: br,
    newIndex: Mt,
    newDraggableIndex: Oe
  }, t));
}
var C, it, M, Q, Ze, co, ot, je, In, Mt, br, Oe, Zr, yt, kn = !1, $o = !1, Co = [], He, Ht, vi, bi, Fl, Nl, dr, Tn, wr, yr = !1, Jr = !1, uo, $t, wi = [], Ui = !1, Eo = [], Wo = typeof document != "undefined", Qr = ff, zl = Lr || ye ? "cssFloat" : "float", N0 = Wo && !df && !ff && "draggable" in document.createElement("div"), bf = function() {
  if (Wo) {
    if (ye)
      return !1;
    var t = document.createElement("x");
    return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
  }
}(), wf = function(e, n) {
  var r = P(e), o = parseInt(r.width) - parseInt(r.paddingLeft) - parseInt(r.paddingRight) - parseInt(r.borderLeftWidth) - parseInt(r.borderRightWidth), i = Wn(e, 0, n), l = Wn(e, 1, n), c = i && P(i), f = l && P(l), u = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + ht(i).width, p = f && parseInt(f.marginLeft) + parseInt(f.marginRight) + ht(l).width;
  if (r.display === "flex")
    return r.flexDirection === "column" || r.flexDirection === "column-reverse" ? "vertical" : "horizontal";
  if (r.display === "grid")
    return r.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
  if (i && c.float && c.float !== "none") {
    var h = c.float === "left" ? "left" : "right";
    return l && (f.clear === "both" || f.clear === h) ? "vertical" : "horizontal";
  }
  return i && (c.display === "block" || c.display === "flex" || c.display === "table" || c.display === "grid" || u >= o && r[zl] === "none" || l && r[zl] === "none" && u + p > o) ? "vertical" : "horizontal";
}, z0 = function(e, n, r) {
  var o = r ? e.left : e.top, i = r ? e.right : e.bottom, l = r ? e.width : e.height, c = r ? n.left : n.top, f = r ? n.right : n.bottom, u = r ? n.width : n.height;
  return o === c || i === f || o + l / 2 === c + u / 2;
}, U0 = function(e, n) {
  var r;
  return Co.some(function(o) {
    var i = o[Rt].options.emptyInsertThreshold;
    if (!(!i || Da(o))) {
      var l = ht(o), c = e >= l.left - i && e <= l.right + i, f = n >= l.top - i && n <= l.bottom + i;
      if (c && f)
        return r = o;
    }
  }), r;
}, yf = function(e) {
  function n(i, l) {
    return function(c, f, u, p) {
      var h = c.options.group.name && f.options.group.name && c.options.group.name === f.options.group.name;
      if (i == null && (l || h))
        return !0;
      if (i == null || i === !1)
        return !1;
      if (l && i === "clone")
        return i;
      if (typeof i == "function")
        return n(i(c, f, u, p), l)(c, f, u, p);
      var m = (l ? c : f).options.group.name;
      return i === !0 || typeof i == "string" && i === m || i.join && i.indexOf(m) > -1;
    };
  }
  var r = {}, o = e.group;
  (!o || lo(o) != "object") && (o = {
    name: o
  }), r.name = o.name, r.checkPull = n(o.pull, !0), r.checkPut = n(o.put), r.revertClone = o.revertClone, e.group = r;
}, _f = function() {
  !bf && M && P(M, "display", "none");
}, xf = function() {
  !bf && M && P(M, "display", "");
};
Wo && !df && document.addEventListener("click", function(t) {
  if ($o)
    return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), $o = !1, !1;
}, !0);
var Ve = function(e) {
  if (C) {
    e = e.touches ? e.touches[0] : e;
    var n = U0(e.clientX, e.clientY);
    if (n) {
      var r = {};
      for (var o in e)
        e.hasOwnProperty(o) && (r[o] = e[o]);
      r.target = r.rootEl = n, r.preventDefault = void 0, r.stopPropagation = void 0, n[Rt]._onDragOver(r);
    }
  }
}, W0 = function(e) {
  C && C.parentNode[Rt]._isOutsideThisEl(e.target);
};
function B(t, e) {
  if (!(t && t.nodeType && t.nodeType === 1))
    throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
  this.el = t, this.options = e = me({}, e), t[Rt] = this;
  var n = {
    group: null,
    sort: !0,
    disabled: !1,
    store: null,
    handle: null,
    draggable: /^[uo]l$/i.test(t.nodeName) ? ">li" : ">*",
    swapThreshold: 1,
    // percentage; 0 <= x <= 1
    invertSwap: !1,
    // invert always
    invertedSwapThreshold: null,
    // will be set to same as swapThreshold if default
    removeCloneOnHide: !0,
    direction: function() {
      return wf(t, this.options);
    },
    ghostClass: "sortable-ghost",
    chosenClass: "sortable-chosen",
    dragClass: "sortable-drag",
    ignore: "a, img",
    filter: null,
    preventOnFilter: !0,
    animation: 0,
    easing: null,
    setData: function(l, c) {
      l.setData("Text", c.textContent);
    },
    dropBubble: !1,
    dragoverBubble: !1,
    dataIdAttr: "data-id",
    delay: 0,
    delayOnTouchOnly: !1,
    touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
    forceFallback: !1,
    fallbackClass: "sortable-fallback",
    fallbackOnBody: !1,
    fallbackTolerance: 0,
    fallbackOffset: {
      x: 0,
      y: 0
    },
    supportPointer: B.supportPointer !== !1 && "PointerEvent" in window && !mr,
    emptyInsertThreshold: 5
  };
  Fr.initializePlugins(this, t, n);
  for (var r in n)
    !(r in e) && (e[r] = n[r]);
  yf(e);
  for (var o in this)
    o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
  this.nativeDraggable = e.forceFallback ? !1 : N0, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? U(t, "pointerdown", this._onTapStart) : (U(t, "mousedown", this._onTapStart), U(t, "touchstart", this._onTapStart)), this.nativeDraggable && (U(t, "dragover", this), U(t, "dragenter", this)), Co.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), me(this, I0());
}
B.prototype = /** @lends Sortable.prototype */
{
  constructor: B,
  _isOutsideThisEl: function(e) {
    !this.el.contains(e) && e !== this.el && (Tn = null);
  },
  _getDirection: function(e, n) {
    return typeof this.options.direction == "function" ? this.options.direction.call(this, e, n, C) : this.options.direction;
  },
  _onTapStart: function(e) {
    if (e.cancelable) {
      var n = this, r = this.el, o = this.options, i = o.preventOnFilter, l = e.type, c = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, f = (c || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || f, p = o.filter;
      if (Z0(r), !C && !(/mousedown|pointerdown/.test(l) && e.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && mr && f && f.tagName.toUpperCase() === "SELECT") && (f = Jt(f, o.draggable, r, !1), !(f && f.animated) && co !== f)) {
        if (In = Nt(f), br = Nt(f, o.draggable), typeof p == "function") {
          if (p.call(this, e, f, this)) {
            At({
              sortable: n,
              rootEl: u,
              name: "filter",
              targetEl: f,
              toEl: r,
              fromEl: r
            }), Ot("filter", n, {
              evt: e
            }), i && e.cancelable && e.preventDefault();
            return;
          }
        } else if (p && (p = p.split(",").some(function(h) {
          if (h = Jt(u, h.trim(), r, !1), h)
            return At({
              sortable: n,
              rootEl: h,
              name: "filter",
              targetEl: f,
              fromEl: r,
              toEl: r
            }), Ot("filter", n, {
              evt: e
            }), !0;
        }), p)) {
          i && e.cancelable && e.preventDefault();
          return;
        }
        o.handle && !Jt(u, o.handle, r, !1) || this._prepareDragStart(e, c, f);
      }
    }
  },
  _prepareDragStart: function(e, n, r) {
    var o = this, i = o.el, l = o.options, c = i.ownerDocument, f;
    if (r && !C && r.parentNode === i) {
      var u = ht(r);
      if (Q = i, C = r, it = C.parentNode, Ze = C.nextSibling, co = r, Zr = l.group, B.dragged = C, He = {
        target: C,
        clientX: (n || e).clientX,
        clientY: (n || e).clientY
      }, Fl = He.clientX - u.left, Nl = He.clientY - u.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, C.style["will-change"] = "all", f = function() {
        if (Ot("delayEnded", o, {
          evt: e
        }), B.eventCanceled) {
          o._onDrop();
          return;
        }
        o._disableDelayedDragEvents(), !Il && o.nativeDraggable && (C.draggable = !0), o._triggerDragStart(e, n), At({
          sortable: o,
          name: "choose",
          originalEvent: e
        }), It(C, l.chosenClass, !0);
      }, l.ignore.split(",").forEach(function(p) {
        pf(C, p.trim(), yi);
      }), U(c, "dragover", Ve), U(c, "mousemove", Ve), U(c, "touchmove", Ve), U(c, "mouseup", o._onDrop), U(c, "touchend", o._onDrop), U(c, "touchcancel", o._onDrop), Il && this.nativeDraggable && (this.options.touchStartThreshold = 4, C.draggable = !0), Ot("delayStart", this, {
        evt: e
      }), l.delay && (!l.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Lr || ye))) {
        if (B.eventCanceled) {
          this._onDrop();
          return;
        }
        U(c, "mouseup", o._disableDelayedDrag), U(c, "touchend", o._disableDelayedDrag), U(c, "touchcancel", o._disableDelayedDrag), U(c, "mousemove", o._delayedDragTouchMoveHandler), U(c, "touchmove", o._delayedDragTouchMoveHandler), l.supportPointer && U(c, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(f, l.delay);
      } else
        f();
    }
  },
  _delayedDragTouchMoveHandler: function(e) {
    var n = e.touches ? e.touches[0] : e;
    Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
  },
  _disableDelayedDrag: function() {
    C && yi(C), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
  },
  _disableDelayedDragEvents: function() {
    var e = this.el.ownerDocument;
    z(e, "mouseup", this._disableDelayedDrag), z(e, "touchend", this._disableDelayedDrag), z(e, "touchcancel", this._disableDelayedDrag), z(e, "mousemove", this._delayedDragTouchMoveHandler), z(e, "touchmove", this._delayedDragTouchMoveHandler), z(e, "pointermove", this._delayedDragTouchMoveHandler);
  },
  _triggerDragStart: function(e, n) {
    n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? U(document, "pointermove", this._onTouchMove) : n ? U(document, "touchmove", this._onTouchMove) : U(document, "mousemove", this._onTouchMove) : (U(C, "dragend", this), U(Q, "dragstart", this._onDragStart));
    try {
      document.selection ? fo(function() {
        document.selection.empty();
      }) : window.getSelection().removeAllRanges();
    } catch (r) {
    }
  },
  _dragStarted: function(e, n) {
    if (kn = !1, Q && C) {
      Ot("dragStarted", this, {
        evt: n
      }), this.nativeDraggable && U(document, "dragover", W0);
      var r = this.options;
      !e && It(C, r.dragClass, !1), It(C, r.ghostClass, !0), B.active = this, e && this._appendGhost(), At({
        sortable: this,
        name: "start",
        originalEvent: n
      });
    } else
      this._nulling();
  },
  _emulateDragOver: function() {
    if (Ht) {
      this._lastX = Ht.clientX, this._lastY = Ht.clientY, _f();
      for (var e = document.elementFromPoint(Ht.clientX, Ht.clientY), n = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Ht.clientX, Ht.clientY), e !== n); )
        n = e;
      if (C.parentNode[Rt]._isOutsideThisEl(e), n)
        do {
          if (n[Rt]) {
            var r = void 0;
            if (r = n[Rt]._onDragOver({
              clientX: Ht.clientX,
              clientY: Ht.clientY,
              target: e,
              rootEl: n
            }), r && !this.options.dragoverBubble)
              break;
          }
          e = n;
        } while (n = n.parentNode);
      xf();
    }
  },
  _onTouchMove: function(e) {
    if (He) {
      var n = this.options, r = n.fallbackTolerance, o = n.fallbackOffset, i = e.touches ? e.touches[0] : e, l = M && Fn(M, !0), c = M && l && l.a, f = M && l && l.d, u = Qr && $t && Ll($t), p = (i.clientX - He.clientX + o.x) / (c || 1) + (u ? u[0] - wi[0] : 0) / (c || 1), h = (i.clientY - He.clientY + o.y) / (f || 1) + (u ? u[1] - wi[1] : 0) / (f || 1);
      if (!B.active && !kn) {
        if (r && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < r)
          return;
        this._onDragStart(e, !0);
      }
      if (M) {
        l ? (l.e += p - (vi || 0), l.f += h - (bi || 0)) : l = {
          a: 1,
          b: 0,
          c: 0,
          d: 1,
          e: p,
          f: h
        };
        var m = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
        P(M, "webkitTransform", m), P(M, "mozTransform", m), P(M, "msTransform", m), P(M, "transform", m), vi = p, bi = h, Ht = i;
      }
      e.cancelable && e.preventDefault();
    }
  },
  _appendGhost: function() {
    if (!M) {
      var e = this.options.fallbackOnBody ? document.body : Q, n = ht(C, !0, Qr, !0, e), r = this.options;
      if (Qr) {
        for ($t = e; P($t, "position") === "static" && P($t, "transform") === "none" && $t !== document; )
          $t = $t.parentNode;
        $t !== document.body && $t !== document.documentElement ? ($t === document && ($t = Qt()), n.top += $t.scrollTop, n.left += $t.scrollLeft) : $t = Qt(), wi = Ll($t);
      }
      M = C.cloneNode(!0), It(M, r.ghostClass, !1), It(M, r.fallbackClass, !0), It(M, r.dragClass, !0), P(M, "transition", ""), P(M, "transform", ""), P(M, "box-sizing", "border-box"), P(M, "margin", 0), P(M, "top", n.top), P(M, "left", n.left), P(M, "width", n.width), P(M, "height", n.height), P(M, "opacity", "0.8"), P(M, "position", Qr ? "absolute" : "fixed"), P(M, "zIndex", "100000"), P(M, "pointerEvents", "none"), B.ghost = M, e.appendChild(M), P(M, "transform-origin", Fl / parseInt(M.style.width) * 100 + "% " + Nl / parseInt(M.style.height) * 100 + "%");
    }
  },
  _onDragStart: function(e, n) {
    var r = this, o = e.dataTransfer, i = r.options;
    if (Ot("dragStart", this, {
      evt: e
    }), B.eventCanceled) {
      this._onDrop();
      return;
    }
    Ot("setupClone", this), B.eventCanceled || (ot = vf(C), ot.removeAttribute("id"), ot.draggable = !1, ot.style["will-change"] = "", this._hideClone(), It(ot, this.options.chosenClass, !1), B.clone = ot), r.cloneId = fo(function() {
      Ot("clone", r), !B.eventCanceled && (r.options.removeCloneOnHide || Q.insertBefore(ot, C), r._hideClone(), At({
        sortable: r,
        name: "clone"
      }));
    }), !n && It(C, i.dragClass, !0), n ? ($o = !0, r._loopId = setInterval(r._emulateDragOver, 50)) : (z(document, "mouseup", r._onDrop), z(document, "touchend", r._onDrop), z(document, "touchcancel", r._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(r, o, C)), U(document, "drop", r), P(C, "transform", "translateZ(0)")), kn = !0, r._dragStartId = fo(r._dragStarted.bind(r, n, e)), U(document, "selectstart", r), dr = !0, mr && P(document.body, "user-select", "none");
  },
  // Returns true - if no further action is needed (either inserted or another condition)
  _onDragOver: function(e) {
    var n = this.el, r = e.target, o, i, l, c = this.options, f = c.group, u = B.active, p = Zr === f, h = c.sort, m = yt || u, b, v = this, _ = !1;
    if (Ui)
      return;
    function x(rt, St) {
      Ot(rt, v, re({
        evt: e,
        isOwner: p,
        axis: b ? "vertical" : "horizontal",
        revert: l,
        dragRect: o,
        targetRect: i,
        canSort: h,
        fromSortable: m,
        target: r,
        completed: E,
        onMove: function(de, Bt) {
          return to(Q, n, C, o, de, ht(de), e, Bt);
        },
        changed: O
      }, St));
    }
    function $() {
      x("dragOverAnimationCapture"), v.captureAnimationState(), v !== m && m.captureAnimationState();
    }
    function E(rt) {
      return x("dragOverCompleted", {
        insertion: rt
      }), rt && (p ? u._hideClone() : u._showClone(v), v !== m && (It(C, yt ? yt.options.ghostClass : u.options.ghostClass, !1), It(C, c.ghostClass, !0)), yt !== v && v !== B.active ? yt = v : v === B.active && yt && (yt = null), m === v && (v._ignoreWhileAnimating = r), v.animateAll(function() {
        x("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
      }), v !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (r === C && !C.animated || r === n && !r.animated) && (Tn = null), !c.dragoverBubble && !e.rootEl && r !== document && (C.parentNode[Rt]._isOutsideThisEl(e.target), !rt && Ve(e)), !c.dragoverBubble && e.stopPropagation && e.stopPropagation(), _ = !0;
    }
    function O() {
      Mt = Nt(C), Oe = Nt(C, c.draggable), At({
        sortable: v,
        name: "change",
        toEl: n,
        newIndex: Mt,
        newDraggableIndex: Oe,
        originalEvent: e
      });
    }
    if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), r = Jt(r, c.draggable, n, !0), x("dragOver"), B.eventCanceled)
      return _;
    if (C.contains(e.target) || r.animated && r.animatingX && r.animatingY || v._ignoreWhileAnimating === r)
      return E(!1);
    if ($o = !1, u && !c.disabled && (p ? h || (l = it !== Q) : yt === this || (this.lastPutMode = Zr.checkPull(this, u, C, e)) && f.checkPut(this, u, C, e))) {
      if (b = this._getDirection(e, r) === "vertical", o = ht(C), x("dragOverValid"), B.eventCanceled)
        return _;
      if (l)
        return it = Q, $(), this._hideClone(), x("revert"), B.eventCanceled || (Ze ? Q.insertBefore(C, Ze) : Q.appendChild(C)), E(!0);
      var k = Da(n, c.draggable);
      if (!k || Y0(e, b, this) && !k.animated) {
        if (k === C)
          return E(!1);
        if (k && n === e.target && (r = k), r && (i = ht(r)), to(Q, n, C, o, r, i, e, !!r) !== !1)
          return $(), k && k.nextSibling ? n.insertBefore(C, k.nextSibling) : n.appendChild(C), it = n, O(), E(!0);
      } else if (k && X0(e, b, this)) {
        var D = Wn(n, 0, c, !0);
        if (D === C)
          return E(!1);
        if (r = D, i = ht(r), to(Q, n, C, o, r, i, e, !1) !== !1)
          return $(), n.insertBefore(C, D), it = n, O(), E(!0);
      } else if (r.parentNode === n) {
        i = ht(r);
        var y = 0, A, j = C.parentNode !== n, S = !z0(C.animated && C.toRect || o, r.animated && r.toRect || i, b), I = b ? "top" : "left", Y = Rl(r, "top", "top") || Rl(C, "top", "top"), pt = Y ? Y.scrollTop : void 0;
        Tn !== r && (A = i[I], yr = !1, Jr = !S && c.invertSwap || j), y = q0(e, r, i, b, S ? 1 : c.swapThreshold, c.invertedSwapThreshold == null ? c.swapThreshold : c.invertedSwapThreshold, Jr, Tn === r);
        var J;
        if (y !== 0) {
          var q = Nt(C);
          do
            q -= y, J = it.children[q];
          while (J && (P(J, "display") === "none" || J === M));
        }
        if (y === 0 || J === r)
          return E(!1);
        Tn = r, wr = y;
        var W = r.nextElementSibling, nt = !1;
        nt = y === 1;
        var mt = to(Q, n, C, o, r, i, e, nt);
        if (mt !== !1)
          return (mt === 1 || mt === -1) && (nt = mt === 1), Ui = !0, setTimeout(V0, 30), $(), nt && !W ? n.appendChild(C) : r.parentNode.insertBefore(C, nt ? W : r), Y && mf(Y, 0, pt - Y.scrollTop), it = C.parentNode, A !== void 0 && !Jr && (uo = Math.abs(A - ht(r)[I])), O(), E(!0);
      }
      if (n.contains(C))
        return E(!1);
    }
    return !1;
  },
  _ignoreWhileAnimating: null,
  _offMoveEvents: function() {
    z(document, "mousemove", this._onTouchMove), z(document, "touchmove", this._onTouchMove), z(document, "pointermove", this._onTouchMove), z(document, "dragover", Ve), z(document, "mousemove", Ve), z(document, "touchmove", Ve);
  },
  _offUpEvents: function() {
    var e = this.el.ownerDocument;
    z(e, "mouseup", this._onDrop), z(e, "touchend", this._onDrop), z(e, "pointerup", this._onDrop), z(e, "touchcancel", this._onDrop), z(document, "selectstart", this);
  },
  _onDrop: function(e) {
    var n = this.el, r = this.options;
    if (Mt = Nt(C), Oe = Nt(C, r.draggable), Ot("drop", this, {
      evt: e
    }), it = C && C.parentNode, Mt = Nt(C), Oe = Nt(C, r.draggable), B.eventCanceled) {
      this._nulling();
      return;
    }
    kn = !1, Jr = !1, yr = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Wi(this.cloneId), Wi(this._dragStartId), this.nativeDraggable && (z(document, "drop", this), z(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), mr && P(document.body, "user-select", ""), P(C, "transform", ""), e && (dr && (e.cancelable && e.preventDefault(), !r.dropBubble && e.stopPropagation()), M && M.parentNode && M.parentNode.removeChild(M), (Q === it || yt && yt.lastPutMode !== "clone") && ot && ot.parentNode && ot.parentNode.removeChild(ot), C && (this.nativeDraggable && z(C, "dragend", this), yi(C), C.style["will-change"] = "", dr && !kn && It(C, yt ? yt.options.ghostClass : this.options.ghostClass, !1), It(C, this.options.chosenClass, !1), At({
      sortable: this,
      name: "unchoose",
      toEl: it,
      newIndex: null,
      newDraggableIndex: null,
      originalEvent: e
    }), Q !== it ? (Mt >= 0 && (At({
      rootEl: it,
      name: "add",
      toEl: it,
      fromEl: Q,
      originalEvent: e
    }), At({
      sortable: this,
      name: "remove",
      toEl: it,
      originalEvent: e
    }), At({
      rootEl: it,
      name: "sort",
      toEl: it,
      fromEl: Q,
      originalEvent: e
    }), At({
      sortable: this,
      name: "sort",
      toEl: it,
      originalEvent: e
    })), yt && yt.save()) : Mt !== In && Mt >= 0 && (At({
      sortable: this,
      name: "update",
      toEl: it,
      originalEvent: e
    }), At({
      sortable: this,
      name: "sort",
      toEl: it,
      originalEvent: e
    })), B.active && ((Mt == null || Mt === -1) && (Mt = In, Oe = br), At({
      sortable: this,
      name: "end",
      toEl: it,
      originalEvent: e
    }), this.save()))), this._nulling();
  },
  _nulling: function() {
    Ot("nulling", this), Q = C = it = M = Ze = ot = co = je = He = Ht = dr = Mt = Oe = In = br = Tn = wr = yt = Zr = B.dragged = B.ghost = B.clone = B.active = null, Eo.forEach(function(e) {
      e.checked = !0;
    }), Eo.length = vi = bi = 0;
  },
  handleEvent: function(e) {
    switch (e.type) {
      case "drop":
      case "dragend":
        this._onDrop(e);
        break;
      case "dragenter":
      case "dragover":
        C && (this._onDragOver(e), H0(e));
        break;
      case "selectstart":
        e.preventDefault();
        break;
    }
  },
  /**
   * Serializes the item into an array of string.
   * @returns {String[]}
   */
  toArray: function() {
    for (var e = [], n, r = this.el.children, o = 0, i = r.length, l = this.options; o < i; o++)
      n = r[o], Jt(n, l.draggable, this.el, !1) && e.push(n.getAttribute(l.dataIdAttr) || K0(n));
    return e;
  },
  /**
   * Sorts the elements according to the array.
   * @param  {String[]}  order  order of the items
   */
  sort: function(e, n) {
    var r = {}, o = this.el;
    this.toArray().forEach(function(i, l) {
      var c = o.children[l];
      Jt(c, this.options.draggable, o, !1) && (r[i] = c);
    }, this), n && this.captureAnimationState(), e.forEach(function(i) {
      r[i] && (o.removeChild(r[i]), o.appendChild(r[i]));
    }), n && this.animateAll();
  },
  /**
   * Save the current sorting
   */
  save: function() {
    var e = this.options.store;
    e && e.set && e.set(this);
  },
  /**
   * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
   * @param   {HTMLElement}  el
   * @param   {String}       [selector]  default: `options.draggable`
   * @returns {HTMLElement|null}
   */
  closest: function(e, n) {
    return Jt(e, n || this.options.draggable, this.el, !1);
  },
  /**
   * Set/get option
   * @param   {string} name
   * @param   {*}      [value]
   * @returns {*}
   */
  option: function(e, n) {
    var r = this.options;
    if (n === void 0)
      return r[e];
    var o = Fr.modifyOption(this, e, n);
    typeof o != "undefined" ? r[e] = o : r[e] = n, e === "group" && yf(r);
  },
  /**
   * Destroy
   */
  destroy: function() {
    Ot("destroy", this);
    var e = this.el;
    e[Rt] = null, z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart), z(e, "pointerdown", this._onTapStart), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) {
      n.removeAttribute("draggable");
    }), this._onDrop(), this._disableDelayedDragEvents(), Co.splice(Co.indexOf(this.el), 1), this.el = e = null;
  },
  _hideClone: function() {
    if (!je) {
      if (Ot("hideClone", this), B.eventCanceled)
        return;
      P(ot, "display", "none"), this.options.removeCloneOnHide && ot.parentNode && ot.parentNode.removeChild(ot), je = !0;
    }
  },
  _showClone: function(e) {
    if (e.lastPutMode !== "clone") {
      this._hideClone();
      return;
    }
    if (je) {
      if (Ot("showClone", this), B.eventCanceled)
        return;
      C.parentNode == Q && !this.options.group.revertClone ? Q.insertBefore(ot, C) : Ze ? Q.insertBefore(ot, Ze) : Q.appendChild(ot), this.options.group.revertClone && this.animate(C, ot), P(ot, "display", ""), je = !1;
    }
  }
};
function H0(t) {
  t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
}
function to(t, e, n, r, o, i, l, c) {
  var f, u = t[Rt], p = u.options.onMove, h;
  return window.CustomEvent && !ye && !Lr ? f = new CustomEvent("move", {
    bubbles: !0,
    cancelable: !0
  }) : (f = document.createEvent("Event"), f.initEvent("move", !0, !0)), f.to = e, f.from = t, f.dragged = n, f.draggedRect = r, f.related = o || e, f.relatedRect = i || ht(e), f.willInsertAfter = c, f.originalEvent = l, t.dispatchEvent(f), p && (h = p.call(u, f, l)), h;
}
function yi(t) {
  t.draggable = !1;
}
function V0() {
  Ui = !1;
}
function X0(t, e, n) {
  var r = ht(Wn(n.el, 0, n.options, !0)), o = 10;
  return e ? t.clientX < r.left - o || t.clientY < r.top && t.clientX < r.right : t.clientY < r.top - o || t.clientY < r.bottom && t.clientX < r.left;
}
function Y0(t, e, n) {
  var r = ht(Da(n.el, n.options.draggable)), o = 10;
  return e ? t.clientX > r.right + o || t.clientX <= r.right && t.clientY > r.bottom && t.clientX >= r.left : t.clientX > r.right && t.clientY > r.top || t.clientX <= r.right && t.clientY > r.bottom + o;
}
function q0(t, e, n, r, o, i, l, c) {
  var f = r ? t.clientY : t.clientX, u = r ? n.height : n.width, p = r ? n.top : n.left, h = r ? n.bottom : n.right, m = !1;
  if (!l) {
    if (c && uo < u * o) {
      if (!yr && (wr === 1 ? f > p + u * i / 2 : f < h - u * i / 2) && (yr = !0), yr)
        m = !0;
      else if (wr === 1 ? f < p + uo : f > h - uo)
        return -wr;
    } else if (f > p + u * (1 - o) / 2 && f < h - u * (1 - o) / 2)
      return G0(e);
  }
  return m = m || l, m && (f < p + u * i / 2 || f > h - u * i / 2) ? f > p + u / 2 ? 1 : -1 : 0;
}
function G0(t) {
  return Nt(C) < Nt(t) ? 1 : -1;
}
function K0(t) {
  for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, r = 0; n--; )
    r += e.charCodeAt(n);
  return r.toString(36);
}
function Z0(t) {
  Eo.length = 0;
  for (var e = t.getElementsByTagName("input"), n = e.length; n--; ) {
    var r = e[n];
    r.checked && Eo.push(r);
  }
}
function fo(t) {
  return setTimeout(t, 0);
}
function Wi(t) {
  return clearTimeout(t);
}
Wo && U(document, "touchmove", function(t) {
  (B.active || kn) && t.cancelable && t.preventDefault();
});
B.utils = {
  on: U,
  off: z,
  css: P,
  find: pf,
  is: function(e, n) {
    return !!Jt(e, n, e, !1);
  },
  extend: B0,
  throttle: gf,
  closest: Jt,
  toggleClass: It,
  clone: vf,
  index: Nt,
  nextTick: fo,
  cancelNextTick: Wi,
  detectDirection: wf,
  getChild: Wn
};
B.get = function(t) {
  return t[Rt];
};
B.mount = function() {
  for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
    e[n] = arguments[n];
  e[0].constructor === Array && (e = e[0]), e.forEach(function(r) {
    if (!r.prototype || !r.prototype.constructor)
      throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));
    r.utils && (B.utils = re(re({}, B.utils), r.utils)), Fr.mount(r);
  });
};
B.create = function(t, e) {
  return new B(t, e);
};
B.version = j0;
var ct = [], hr, Hi, Vi = !1, _i, xi, Ao, pr;
function J0() {
  function t() {
    this.defaults = {
      scroll: !0,
      forceAutoScrollFallback: !1,
      scrollSensitivity: 30,
      scrollSpeed: 10,
      bubbleScroll: !0
    };
    for (var e in this)
      e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
  }
  return t.prototype = {
    dragStarted: function(n) {
      var r = n.originalEvent;
      this.sortable.nativeDraggable ? U(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? U(document, "pointermove", this._handleFallbackAutoScroll) : r.touches ? U(document, "touchmove", this._handleFallbackAutoScroll) : U(document, "mousemove", this._handleFallbackAutoScroll);
    },
    dragOverCompleted: function(n) {
      var r = n.originalEvent;
      !this.options.dragOverBubble && !r.rootEl && this._handleAutoScroll(r);
    },
    drop: function() {
      this.sortable.nativeDraggable ? z(document, "dragover", this._handleAutoScroll) : (z(document, "pointermove", this._handleFallbackAutoScroll), z(document, "touchmove", this._handleFallbackAutoScroll), z(document, "mousemove", this._handleFallbackAutoScroll)), Ul(), ho(), k0();
    },
    nulling: function() {
      Ao = Hi = hr = Vi = pr = _i = xi = null, ct.length = 0;
    },
    _handleFallbackAutoScroll: function(n) {
      this._handleAutoScroll(n, !0);
    },
    _handleAutoScroll: function(n, r) {
      var o = this, i = (n.touches ? n.touches[0] : n).clientX, l = (n.touches ? n.touches[0] : n).clientY, c = document.elementFromPoint(i, l);
      if (Ao = n, r || this.options.forceAutoScrollFallback || Lr || ye || mr) {
        $i(n, this.options, c, r);
        var f = De(c, !0);
        Vi && (!pr || i !== _i || l !== xi) && (pr && Ul(), pr = setInterval(function() {
          var u = De(document.elementFromPoint(i, l), !0);
          u !== f && (f = u, ho()), $i(n, o.options, u, r);
        }, 10), _i = i, xi = l);
      } else {
        if (!this.options.bubbleScroll || De(c, !0) === Qt()) {
          ho();
          return;
        }
        $i(n, this.options, De(c, !1), !1);
      }
    }
  }, me(t, {
    pluginName: "scroll",
    initializeByDefault: !0
  });
}
function ho() {
  ct.forEach(function(t) {
    clearInterval(t.pid);
  }), ct = [];
}
function Ul() {
  clearInterval(pr);
}
var $i = gf(function(t, e, n, r) {
  if (e.scroll) {
    var o = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, l = e.scrollSensitivity, c = e.scrollSpeed, f = Qt(), u = !1, p;
    Hi !== n && (Hi = n, ho(), hr = e.scroll, p = e.scrollFn, hr === !0 && (hr = De(n, !0)));
    var h = 0, m = hr;
    do {
      var b = m, v = ht(b), _ = v.top, x = v.bottom, $ = v.left, E = v.right, O = v.width, k = v.height, D = void 0, y = void 0, A = b.scrollWidth, j = b.scrollHeight, S = P(b), I = b.scrollLeft, Y = b.scrollTop;
      b === f ? (D = O < A && (S.overflowX === "auto" || S.overflowX === "scroll" || S.overflowX === "visible"), y = k < j && (S.overflowY === "auto" || S.overflowY === "scroll" || S.overflowY === "visible")) : (D = O < A && (S.overflowX === "auto" || S.overflowX === "scroll"), y = k < j && (S.overflowY === "auto" || S.overflowY === "scroll"));
      var pt = D && (Math.abs(E - o) <= l && I + O < A) - (Math.abs($ - o) <= l && !!I), J = y && (Math.abs(x - i) <= l && Y + k < j) - (Math.abs(_ - i) <= l && !!Y);
      if (!ct[h])
        for (var q = 0; q <= h; q++)
          ct[q] || (ct[q] = {});
      (ct[h].vx != pt || ct[h].vy != J || ct[h].el !== b) && (ct[h].el = b, ct[h].vx = pt, ct[h].vy = J, clearInterval(ct[h].pid), (pt != 0 || J != 0) && (u = !0, ct[h].pid = setInterval(function() {
        r && this.layer === 0 && B.active._onTouchMove(Ao);
        var W = ct[this.layer].vy ? ct[this.layer].vy * c : 0, nt = ct[this.layer].vx ? ct[this.layer].vx * c : 0;
        typeof p == "function" && p.call(B.dragged.parentNode[Rt], nt, W, t, Ao, ct[this.layer].el) !== "continue" || mf(ct[this.layer].el, nt, W);
      }.bind({
        layer: h
      }), 24))), h++;
    } while (e.bubbleScroll && m !== f && (m = De(m, !1)));
    Vi = u;
  }
}, 30), $f = function(e) {
  var n = e.originalEvent, r = e.putSortable, o = e.dragEl, i = e.activeSortable, l = e.dispatchSortableEvent, c = e.hideGhostForTarget, f = e.unhideGhostForTarget;
  if (n) {
    var u = r || i;
    c();
    var p = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, h = document.elementFromPoint(p.clientX, p.clientY);
    f(), u && !u.el.contains(h) && (l("spill"), this.onSpill({
      dragEl: o,
      putSortable: r
    }));
  }
};
function Pa() {
}
Pa.prototype = {
  startIndex: null,
  dragStart: function(e) {
    var n = e.oldDraggableIndex;
    this.startIndex = n;
  },
  onSpill: function(e) {
    var n = e.dragEl, r = e.putSortable;
    this.sortable.captureAnimationState(), r && r.captureAnimationState();
    var o = Wn(this.sortable.el, this.startIndex, this.options);
    o ? this.sortable.el.insertBefore(n, o) : this.sortable.el.appendChild(n), this.sortable.animateAll(), r && r.animateAll();
  },
  drop: $f
};
me(Pa, {
  pluginName: "revertOnSpill"
});
function Ba() {
}
Ba.prototype = {
  onSpill: function(e) {
    var n = e.dragEl, r = e.putSortable, o = r || this.sortable;
    o.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), o.animateAll();
  },
  drop: $f
};
me(Ba, {
  pluginName: "removeOnSpill"
});
B.mount(new J0());
B.mount(Ba, Pa);
var Q0 = typeof global == "object" && global && global.Object === Object && global;
const Cf = Q0;
var t1 = typeof self == "object" && self && self.Object === Object && self, e1 = Cf || t1 || Function("return this")();
const Gt = e1;
var n1 = Gt.Symbol;
const oe = n1;
var Ef = Object.prototype, r1 = Ef.hasOwnProperty, o1 = Ef.toString, rr = oe ? oe.toStringTag : void 0;
function i1(t) {
  var e = r1.call(t, rr), n = t[rr];
  try {
    t[rr] = void 0;
    var r = !0;
  } catch (i) {
  }
  var o = o1.call(t);
  return r && (e ? t[rr] = n : delete t[rr]), o;
}
var a1 = Object.prototype, s1 = a1.toString;
function l1(t) {
  return s1.call(t);
}
var c1 = "[object Null]", u1 = "[object Undefined]", Wl = oe ? oe.toStringTag : void 0;
function cn(t) {
  return t == null ? t === void 0 ? u1 : c1 : Wl && Wl in Object(t) ? i1(t) : l1(t);
}
function un(t) {
  return t != null && typeof t == "object";
}
var f1 = "[object Symbol]";
function Ho(t) {
  return typeof t == "symbol" || un(t) && cn(t) == f1;
}
function d1(t, e) {
  for (var n = -1, r = t == null ? 0 : t.length, o = Array(r); ++n < r; )
    o[n] = e(t[n], n, t);
  return o;
}
var h1 = Array.isArray;
const fn = h1;
var p1 = 1 / 0, Hl = oe ? oe.prototype : void 0, Vl = Hl ? Hl.toString : void 0;
function Af(t) {
  if (typeof t == "string")
    return t;
  if (fn(t))
    return d1(t, Af) + "";
  if (Ho(t))
    return Vl ? Vl.call(t) : "";
  var e = t + "";
  return e == "0" && 1 / t == -p1 ? "-0" : e;
}
var g1 = /\s/;
function m1(t) {
  for (var e = t.length; e-- && g1.test(t.charAt(e)); )
    ;
  return e;
}
var v1 = /^\s+/;
function b1(t) {
  return t && t.slice(0, m1(t) + 1).replace(v1, "");
}
function ve(t) {
  var e = typeof t;
  return t != null && (e == "object" || e == "function");
}
var Xl = 0 / 0, w1 = /^[-+]0x[0-9a-f]+$/i, y1 = /^0b[01]+$/i, _1 = /^0o[0-7]+$/i, x1 = parseInt;
function Yl(t) {
  if (typeof t == "number")
    return t;
  if (Ho(t))
    return Xl;
  if (ve(t)) {
    var e = typeof t.valueOf == "function" ? t.valueOf() : t;
    t = ve(e) ? e + "" : e;
  }
  if (typeof t != "string")
    return t === 0 ? t : +t;
  t = b1(t);
  var n = y1.test(t);
  return n || _1.test(t) ? x1(t.slice(2), n ? 2 : 8) : w1.test(t) ? Xl : +t;
}
function $1(t) {
  return t;
}
var C1 = "[object AsyncFunction]", E1 = "[object Function]", A1 = "[object GeneratorFunction]", S1 = "[object Proxy]";
function Sf(t) {
  if (!ve(t))
    return !1;
  var e = cn(t);
  return e == E1 || e == A1 || e == C1 || e == S1;
}
var T1 = Gt["__core-js_shared__"];
const Ci = T1;
var ql = function() {
  var t = /[^.]+$/.exec(Ci && Ci.keys && Ci.keys.IE_PROTO || "");
  return t ? "Symbol(src)_1." + t : "";
}();
function O1(t) {
  return !!ql && ql in t;
}
var j1 = Function.prototype, D1 = j1.toString;
function dn(t) {
  if (t != null) {
    try {
      return D1.call(t);
    } catch (e) {
    }
    try {
      return t + "";
    } catch (e) {
    }
  }
  return "";
}
var P1 = /[\\^$.*+?()[\]{}|]/g, B1 = /^\[object .+?Constructor\]$/, k1 = Function.prototype, I1 = Object.prototype, M1 = k1.toString, R1 = I1.hasOwnProperty, L1 = RegExp(
  "^" + M1.call(R1).replace(P1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function F1(t) {
  if (!ve(t) || O1(t))
    return !1;
  var e = Sf(t) ? L1 : B1;
  return e.test(dn(t));
}
function N1(t, e) {
  return t == null ? void 0 : t[e];
}
function hn(t, e) {
  var n = N1(t, e);
  return F1(n) ? n : void 0;
}
var z1 = hn(Gt, "WeakMap");
const Xi = z1;
var Gl = Object.create, U1 = function() {
  function t() {
  }
  return function(e) {
    if (!ve(e))
      return {};
    if (Gl)
      return Gl(e);
    t.prototype = e;
    var n = new t();
    return t.prototype = void 0, n;
  };
}();
const W1 = U1;
function H1(t, e, n) {
  switch (n.length) {
    case 0:
      return t.call(e);
    case 1:
      return t.call(e, n[0]);
    case 2:
      return t.call(e, n[0], n[1]);
    case 3:
      return t.call(e, n[0], n[1], n[2]);
  }
  return t.apply(e, n);
}
function V1(t, e) {
  var n = -1, r = t.length;
  for (e || (e = Array(r)); ++n < r; )
    e[n] = t[n];
  return e;
}
var X1 = 800, Y1 = 16, q1 = Date.now;
function G1(t) {
  var e = 0, n = 0;
  return function() {
    var r = q1(), o = Y1 - (r - n);
    if (n = r, o > 0) {
      if (++e >= X1)
        return arguments[0];
    } else
      e = 0;
    return t.apply(void 0, arguments);
  };
}
function K1(t) {
  return function() {
    return t;
  };
}
var Z1 = function() {
  try {
    var t = hn(Object, "defineProperty");
    return t({}, "", {}), t;
  } catch (e) {
  }
}();
const So = Z1;
var J1 = So ? function(t, e) {
  return So(t, "toString", {
    configurable: !0,
    enumerable: !1,
    value: K1(e),
    writable: !0
  });
} : $1;
const Q1 = J1;
var t2 = G1(Q1);
const e2 = t2;
function n2(t, e) {
  for (var n = -1, r = t == null ? 0 : t.length; ++n < r && e(t[n], n, t) !== !1; )
    ;
  return t;
}
var r2 = 9007199254740991, o2 = /^(?:0|[1-9]\d*)$/;
function i2(t, e) {
  var n = typeof t;
  return e = e == null ? r2 : e, !!e && (n == "number" || n != "symbol" && o2.test(t)) && t > -1 && t % 1 == 0 && t < e;
}
function Tf(t, e, n) {
  e == "__proto__" && So ? So(t, e, {
    configurable: !0,
    enumerable: !0,
    value: n,
    writable: !0
  }) : t[e] = n;
}
function Of(t, e) {
  return t === e || t !== t && e !== e;
}
var a2 = Object.prototype, s2 = a2.hasOwnProperty;
function jf(t, e, n) {
  var r = t[e];
  (!(s2.call(t, e) && Of(r, n)) || n === void 0 && !(e in t)) && Tf(t, e, n);
}
function Vo(t, e, n, r) {
  var o = !n;
  n || (n = {});
  for (var i = -1, l = e.length; ++i < l; ) {
    var c = e[i], f = r ? r(n[c], t[c], c, n, t) : void 0;
    f === void 0 && (f = t[c]), o ? Tf(n, c, f) : jf(n, c, f);
  }
  return n;
}
var Kl = Math.max;
function l2(t, e, n) {
  return e = Kl(e === void 0 ? t.length - 1 : e, 0), function() {
    for (var r = arguments, o = -1, i = Kl(r.length - e, 0), l = Array(i); ++o < i; )
      l[o] = r[e + o];
    o = -1;
    for (var c = Array(e + 1); ++o < e; )
      c[o] = r[o];
    return c[e] = n(l), H1(t, this, c);
  };
}
var c2 = 9007199254740991;
function Df(t) {
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= c2;
}
function Pf(t) {
  return t != null && Df(t.length) && !Sf(t);
}
var u2 = Object.prototype;
function ka(t) {
  var e = t && t.constructor, n = typeof e == "function" && e.prototype || u2;
  return t === n;
}
function f2(t, e) {
  for (var n = -1, r = Array(t); ++n < t; )
    r[n] = e(n);
  return r;
}
var d2 = "[object Arguments]";
function Zl(t) {
  return un(t) && cn(t) == d2;
}
var Bf = Object.prototype, h2 = Bf.hasOwnProperty, p2 = Bf.propertyIsEnumerable, g2 = Zl(function() {
  return arguments;
}()) ? Zl : function(t) {
  return un(t) && h2.call(t, "callee") && !p2.call(t, "callee");
};
const kf = g2;
function m2() {
  return !1;
}
var If = typeof exports == "object" && exports && !exports.nodeType && exports, Jl = If && typeof module == "object" && module && !module.nodeType && module, v2 = Jl && Jl.exports === If, Ql = v2 ? Gt.Buffer : void 0, b2 = Ql ? Ql.isBuffer : void 0, w2 = b2 || m2;
const Mf = w2;
var y2 = "[object Arguments]", _2 = "[object Array]", x2 = "[object Boolean]", $2 = "[object Date]", C2 = "[object Error]", E2 = "[object Function]", A2 = "[object Map]", S2 = "[object Number]", T2 = "[object Object]", O2 = "[object RegExp]", j2 = "[object Set]", D2 = "[object String]", P2 = "[object WeakMap]", B2 = "[object ArrayBuffer]", k2 = "[object DataView]", I2 = "[object Float32Array]", M2 = "[object Float64Array]", R2 = "[object Int8Array]", L2 = "[object Int16Array]", F2 = "[object Int32Array]", N2 = "[object Uint8Array]", z2 = "[object Uint8ClampedArray]", U2 = "[object Uint16Array]", W2 = "[object Uint32Array]", K = {};
K[I2] = K[M2] = K[R2] = K[L2] = K[F2] = K[N2] = K[z2] = K[U2] = K[W2] = !0;
K[y2] = K[_2] = K[B2] = K[x2] = K[k2] = K[$2] = K[C2] = K[E2] = K[A2] = K[S2] = K[T2] = K[O2] = K[j2] = K[D2] = K[P2] = !1;
function H2(t) {
  return un(t) && Df(t.length) && !!K[cn(t)];
}
function Ia(t) {
  return function(e) {
    return t(e);
  };
}
var Rf = typeof exports == "object" && exports && !exports.nodeType && exports, _r = Rf && typeof module == "object" && module && !module.nodeType && module, V2 = _r && _r.exports === Rf, Ei = V2 && Cf.process, X2 = function() {
  try {
    var t = _r && _r.require && _r.require("util").types;
    return t || Ei && Ei.binding && Ei.binding("util");
  } catch (e) {
  }
}();
const Hn = X2;
var tc = Hn && Hn.isTypedArray, Y2 = tc ? Ia(tc) : H2;
const q2 = Y2;
var G2 = Object.prototype, K2 = G2.hasOwnProperty;
function Lf(t, e) {
  var n = fn(t), r = !n && kf(t), o = !n && !r && Mf(t), i = !n && !r && !o && q2(t), l = n || r || o || i, c = l ? f2(t.length, String) : [], f = c.length;
  for (var u in t)
    (e || K2.call(t, u)) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
    (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
    o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
    i && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
    i2(u, f))) && c.push(u);
  return c;
}
function Ff(t, e) {
  return function(n) {
    return t(e(n));
  };
}
var Z2 = Ff(Object.keys, Object);
const J2 = Z2;
var Q2 = Object.prototype, t_ = Q2.hasOwnProperty;
function e_(t) {
  if (!ka(t))
    return J2(t);
  var e = [];
  for (var n in Object(t))
    t_.call(t, n) && n != "constructor" && e.push(n);
  return e;
}
function Ma(t) {
  return Pf(t) ? Lf(t) : e_(t);
}
function n_(t) {
  var e = [];
  if (t != null)
    for (var n in Object(t))
      e.push(n);
  return e;
}
var r_ = Object.prototype, o_ = r_.hasOwnProperty;
function i_(t) {
  if (!ve(t))
    return n_(t);
  var e = ka(t), n = [];
  for (var r in t)
    r == "constructor" && (e || !o_.call(t, r)) || n.push(r);
  return n;
}
function Ra(t) {
  return Pf(t) ? Lf(t, !0) : i_(t);
}
var a_ = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, s_ = /^\w*$/;
function l_(t, e) {
  if (fn(t))
    return !1;
  var n = typeof t;
  return n == "number" || n == "symbol" || n == "boolean" || t == null || Ho(t) ? !0 : s_.test(t) || !a_.test(t) || e != null && t in Object(e);
}
var c_ = hn(Object, "create");
const Tr = c_;
function u_() {
  this.__data__ = Tr ? Tr(null) : {}, this.size = 0;
}
function f_(t) {
  var e = this.has(t) && delete this.__data__[t];
  return this.size -= e ? 1 : 0, e;
}
var d_ = "__lodash_hash_undefined__", h_ = Object.prototype, p_ = h_.hasOwnProperty;
function g_(t) {
  var e = this.__data__;
  if (Tr) {
    var n = e[t];
    return n === d_ ? void 0 : n;
  }
  return p_.call(e, t) ? e[t] : void 0;
}
var m_ = Object.prototype, v_ = m_.hasOwnProperty;
function b_(t) {
  var e = this.__data__;
  return Tr ? e[t] !== void 0 : v_.call(e, t);
}
var w_ = "__lodash_hash_undefined__";
function y_(t, e) {
  var n = this.__data__;
  return this.size += this.has(t) ? 0 : 1, n[t] = Tr && e === void 0 ? w_ : e, this;
}
function nn(t) {
  var e = -1, n = t == null ? 0 : t.length;
  for (this.clear(); ++e < n; ) {
    var r = t[e];
    this.set(r[0], r[1]);
  }
}
nn.prototype.clear = u_;
nn.prototype.delete = f_;
nn.prototype.get = g_;
nn.prototype.has = b_;
nn.prototype.set = y_;
function __() {
  this.__data__ = [], this.size = 0;
}
function Xo(t, e) {
  for (var n = t.length; n--; )
    if (Of(t[n][0], e))
      return n;
  return -1;
}
var x_ = Array.prototype, $_ = x_.splice;
function C_(t) {
  var e = this.__data__, n = Xo(e, t);
  if (n < 0)
    return !1;
  var r = e.length - 1;
  return n == r ? e.pop() : $_.call(e, n, 1), --this.size, !0;
}
function E_(t) {
  var e = this.__data__, n = Xo(e, t);
  return n < 0 ? void 0 : e[n][1];
}
function A_(t) {
  return Xo(this.__data__, t) > -1;
}
function S_(t, e) {
  var n = this.__data__, r = Xo(n, t);
  return r < 0 ? (++this.size, n.push([t, e])) : n[r][1] = e, this;
}
function _e(t) {
  var e = -1, n = t == null ? 0 : t.length;
  for (this.clear(); ++e < n; ) {
    var r = t[e];
    this.set(r[0], r[1]);
  }
}
_e.prototype.clear = __;
_e.prototype.delete = C_;
_e.prototype.get = E_;
_e.prototype.has = A_;
_e.prototype.set = S_;
var T_ = hn(Gt, "Map");
const Or = T_;
function O_() {
  this.size = 0, this.__data__ = {
    hash: new nn(),
    map: new (Or || _e)(),
    string: new nn()
  };
}
function j_(t) {
  var e = typeof t;
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
}
function Yo(t, e) {
  var n = t.__data__;
  return j_(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
}
function D_(t) {
  var e = Yo(this, t).delete(t);
  return this.size -= e ? 1 : 0, e;
}
function P_(t) {
  return Yo(this, t).get(t);
}
function B_(t) {
  return Yo(this, t).has(t);
}
function k_(t, e) {
  var n = Yo(this, t), r = n.size;
  return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
}
function Ie(t) {
  var e = -1, n = t == null ? 0 : t.length;
  for (this.clear(); ++e < n; ) {
    var r = t[e];
    this.set(r[0], r[1]);
  }
}
Ie.prototype.clear = O_;
Ie.prototype.delete = D_;
Ie.prototype.get = P_;
Ie.prototype.has = B_;
Ie.prototype.set = k_;
var I_ = "Expected a function";
function La(t, e) {
  if (typeof t != "function" || e != null && typeof e != "function")
    throw new TypeError(I_);
  var n = function() {
    var r = arguments, o = e ? e.apply(this, r) : r[0], i = n.cache;
    if (i.has(o))
      return i.get(o);
    var l = t.apply(this, r);
    return n.cache = i.set(o, l) || i, l;
  };
  return n.cache = new (La.Cache || Ie)(), n;
}
La.Cache = Ie;
var M_ = 500;
function R_(t) {
  var e = La(t, function(r) {
    return n.size === M_ && n.clear(), r;
  }), n = e.cache;
  return e;
}
var L_ = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, F_ = /\\(\\)?/g, N_ = R_(function(t) {
  var e = [];
  return t.charCodeAt(0) === 46 && e.push(""), t.replace(L_, function(n, r, o, i) {
    e.push(o ? i.replace(F_, "$1") : r || n);
  }), e;
});
const z_ = N_;
function U_(t) {
  return t == null ? "" : Af(t);
}
function W_(t, e) {
  return fn(t) ? t : l_(t, e) ? [t] : z_(U_(t));
}
var H_ = 1 / 0;
function V_(t) {
  if (typeof t == "string" || Ho(t))
    return t;
  var e = t + "";
  return e == "0" && 1 / t == -H_ ? "-0" : e;
}
function X_(t, e) {
  e = W_(e, t);
  for (var n = 0, r = e.length; t != null && n < r; )
    t = t[V_(e[n++])];
  return n && n == r ? t : void 0;
}
function Y_(t, e, n) {
  var r = t == null ? void 0 : X_(t, e);
  return r === void 0 ? n : r;
}
function q_(t, e) {
  for (var n = -1, r = e.length, o = Array(r), i = t == null; ++n < r; )
    o[n] = i ? void 0 : Y_(t, e[n]);
  return o;
}
function Fa(t, e) {
  for (var n = -1, r = e.length, o = t.length; ++n < r; )
    t[o + n] = e[n];
  return t;
}
var ec = oe ? oe.isConcatSpreadable : void 0;
function G_(t) {
  return fn(t) || kf(t) || !!(ec && t && t[ec]);
}
function Nf(t, e, n, r, o) {
  var i = -1, l = t.length;
  for (n || (n = G_), o || (o = []); ++i < l; ) {
    var c = t[i];
    e > 0 && n(c) ? e > 1 ? Nf(c, e - 1, n, r, o) : Fa(o, c) : r || (o[o.length] = c);
  }
  return o;
}
function K_(t) {
  var e = t == null ? 0 : t.length;
  return e ? Nf(t, 1) : [];
}
function Z_(t) {
  return e2(l2(t, void 0, K_), t + "");
}
var J_ = Z_(q_);
const zf = J_;
var Q_ = Ff(Object.getPrototypeOf, Object);
const Na = Q_;
var tx = "[object Object]", ex = Function.prototype, nx = Object.prototype, Uf = ex.toString, rx = nx.hasOwnProperty, ox = Uf.call(Object);
function Nr(t) {
  if (!un(t) || cn(t) != tx)
    return !1;
  var e = Na(t);
  if (e === null)
    return !0;
  var n = rx.call(e, "constructor") && e.constructor;
  return typeof n == "function" && n instanceof n && Uf.call(n) == ox;
}
function ix() {
  this.__data__ = new _e(), this.size = 0;
}
function ax(t) {
  var e = this.__data__, n = e.delete(t);
  return this.size = e.size, n;
}
function sx(t) {
  return this.__data__.get(t);
}
function lx(t) {
  return this.__data__.has(t);
}
var cx = 200;
function ux(t, e) {
  var n = this.__data__;
  if (n instanceof _e) {
    var r = n.__data__;
    if (!Or || r.length < cx - 1)
      return r.push([t, e]), this.size = ++n.size, this;
    n = this.__data__ = new Ie(r);
  }
  return n.set(t, e), this.size = n.size, this;
}
function qn(t) {
  var e = this.__data__ = new _e(t);
  this.size = e.size;
}
qn.prototype.clear = ix;
qn.prototype.delete = ax;
qn.prototype.get = sx;
qn.prototype.has = lx;
qn.prototype.set = ux;
function fx(t, e) {
  return t && Vo(e, Ma(e), t);
}
function dx(t, e) {
  return t && Vo(e, Ra(e), t);
}
var Wf = typeof exports == "object" && exports && !exports.nodeType && exports, nc = Wf && typeof module == "object" && module && !module.nodeType && module, hx = nc && nc.exports === Wf, rc = hx ? Gt.Buffer : void 0, oc = rc ? rc.allocUnsafe : void 0;
function px(t, e) {
  if (e)
    return t.slice();
  var n = t.length, r = oc ? oc(n) : new t.constructor(n);
  return t.copy(r), r;
}
function gx(t, e) {
  for (var n = -1, r = t == null ? 0 : t.length, o = 0, i = []; ++n < r; ) {
    var l = t[n];
    e(l, n, t) && (i[o++] = l);
  }
  return i;
}
function Hf() {
  return [];
}
var mx = Object.prototype, vx = mx.propertyIsEnumerable, ic = Object.getOwnPropertySymbols, bx = ic ? function(t) {
  return t == null ? [] : (t = Object(t), gx(ic(t), function(e) {
    return vx.call(t, e);
  }));
} : Hf;
const za = bx;
function wx(t, e) {
  return Vo(t, za(t), e);
}
var yx = Object.getOwnPropertySymbols, _x = yx ? function(t) {
  for (var e = []; t; )
    Fa(e, za(t)), t = Na(t);
  return e;
} : Hf;
const Vf = _x;
function xx(t, e) {
  return Vo(t, Vf(t), e);
}
function Xf(t, e, n) {
  var r = e(t);
  return fn(t) ? r : Fa(r, n(t));
}
function $x(t) {
  return Xf(t, Ma, za);
}
function Cx(t) {
  return Xf(t, Ra, Vf);
}
var Ex = hn(Gt, "DataView");
const Yi = Ex;
var Ax = hn(Gt, "Promise");
const qi = Ax;
var Sx = hn(Gt, "Set");
const Gi = Sx;
var ac = "[object Map]", Tx = "[object Object]", sc = "[object Promise]", lc = "[object Set]", cc = "[object WeakMap]", uc = "[object DataView]", Ox = dn(Yi), jx = dn(Or), Dx = dn(qi), Px = dn(Gi), Bx = dn(Xi), Je = cn;
(Yi && Je(new Yi(new ArrayBuffer(1))) != uc || Or && Je(new Or()) != ac || qi && Je(qi.resolve()) != sc || Gi && Je(new Gi()) != lc || Xi && Je(new Xi()) != cc) && (Je = function(t) {
  var e = cn(t), n = e == Tx ? t.constructor : void 0, r = n ? dn(n) : "";
  if (r)
    switch (r) {
      case Ox:
        return uc;
      case jx:
        return ac;
      case Dx:
        return sc;
      case Px:
        return lc;
      case Bx:
        return cc;
    }
  return e;
});
const Ua = Je;
var kx = Object.prototype, Ix = kx.hasOwnProperty;
function Mx(t) {
  var e = t.length, n = new t.constructor(e);
  return e && typeof t[0] == "string" && Ix.call(t, "index") && (n.index = t.index, n.input = t.input), n;
}
var Rx = Gt.Uint8Array;
const fc = Rx;
function Wa(t) {
  var e = new t.constructor(t.byteLength);
  return new fc(e).set(new fc(t)), e;
}
function Lx(t, e) {
  var n = e ? Wa(t.buffer) : t.buffer;
  return new t.constructor(n, t.byteOffset, t.byteLength);
}
var Fx = /\w*$/;
function Nx(t) {
  var e = new t.constructor(t.source, Fx.exec(t));
  return e.lastIndex = t.lastIndex, e;
}
var dc = oe ? oe.prototype : void 0, hc = dc ? dc.valueOf : void 0;
function zx(t) {
  return hc ? Object(hc.call(t)) : {};
}
function Ux(t, e) {
  var n = e ? Wa(t.buffer) : t.buffer;
  return new t.constructor(n, t.byteOffset, t.length);
}
var Wx = "[object Boolean]", Hx = "[object Date]", Vx = "[object Map]", Xx = "[object Number]", Yx = "[object RegExp]", qx = "[object Set]", Gx = "[object String]", Kx = "[object Symbol]", Zx = "[object ArrayBuffer]", Jx = "[object DataView]", Qx = "[object Float32Array]", t$ = "[object Float64Array]", e$ = "[object Int8Array]", n$ = "[object Int16Array]", r$ = "[object Int32Array]", o$ = "[object Uint8Array]", i$ = "[object Uint8ClampedArray]", a$ = "[object Uint16Array]", s$ = "[object Uint32Array]";
function l$(t, e, n) {
  var r = t.constructor;
  switch (e) {
    case Zx:
      return Wa(t);
    case Wx:
    case Hx:
      return new r(+t);
    case Jx:
      return Lx(t, n);
    case Qx:
    case t$:
    case e$:
    case n$:
    case r$:
    case o$:
    case i$:
    case a$:
    case s$:
      return Ux(t, n);
    case Vx:
      return new r();
    case Xx:
    case Gx:
      return new r(t);
    case Yx:
      return Nx(t);
    case qx:
      return new r();
    case Kx:
      return zx(t);
  }
}
function c$(t) {
  return typeof t.constructor == "function" && !ka(t) ? W1(Na(t)) : {};
}
var u$ = "[object Map]";
function f$(t) {
  return un(t) && Ua(t) == u$;
}
var pc = Hn && Hn.isMap, d$ = pc ? Ia(pc) : f$;
const h$ = d$;
var p$ = "[object Set]";
function g$(t) {
  return un(t) && Ua(t) == p$;
}
var gc = Hn && Hn.isSet, m$ = gc ? Ia(gc) : g$;
const v$ = m$;
var b$ = 1, w$ = 2, y$ = 4, Yf = "[object Arguments]", _$ = "[object Array]", x$ = "[object Boolean]", $$ = "[object Date]", C$ = "[object Error]", qf = "[object Function]", E$ = "[object GeneratorFunction]", A$ = "[object Map]", S$ = "[object Number]", Gf = "[object Object]", T$ = "[object RegExp]", O$ = "[object Set]", j$ = "[object String]", D$ = "[object Symbol]", P$ = "[object WeakMap]", B$ = "[object ArrayBuffer]", k$ = "[object DataView]", I$ = "[object Float32Array]", M$ = "[object Float64Array]", R$ = "[object Int8Array]", L$ = "[object Int16Array]", F$ = "[object Int32Array]", N$ = "[object Uint8Array]", z$ = "[object Uint8ClampedArray]", U$ = "[object Uint16Array]", W$ = "[object Uint32Array]", V = {};
V[Yf] = V[_$] = V[B$] = V[k$] = V[x$] = V[$$] = V[I$] = V[M$] = V[R$] = V[L$] = V[F$] = V[A$] = V[S$] = V[Gf] = V[T$] = V[O$] = V[j$] = V[D$] = V[N$] = V[z$] = V[U$] = V[W$] = !0;
V[C$] = V[qf] = V[P$] = !1;
function po(t, e, n, r, o, i) {
  var l, c = e & b$, f = e & w$, u = e & y$;
  if (n && (l = o ? n(t, r, o, i) : n(t)), l !== void 0)
    return l;
  if (!ve(t))
    return t;
  var p = fn(t);
  if (p) {
    if (l = Mx(t), !c)
      return V1(t, l);
  } else {
    var h = Ua(t), m = h == qf || h == E$;
    if (Mf(t))
      return px(t, c);
    if (h == Gf || h == Yf || m && !o) {
      if (l = f || m ? {} : c$(t), !c)
        return f ? xx(t, dx(l, t)) : wx(t, fx(l, t));
    } else {
      if (!V[h])
        return o ? t : {};
      l = l$(t, h, c);
    }
  }
  i || (i = new qn());
  var b = i.get(t);
  if (b)
    return b;
  i.set(t, l), v$(t) ? t.forEach(function(x) {
    l.add(po(x, e, n, x, t, i));
  }) : h$(t) && t.forEach(function(x, $) {
    l.set($, po(x, e, n, $, t, i));
  });
  var v = u ? f ? Cx : $x : f ? Ra : Ma, _ = p ? void 0 : v(t);
  return n2(_ || t, function(x, $) {
    _ && ($ = x, x = t[$]), jf(l, $, po(x, e, n, $, t, i));
  }), l;
}
var H$ = 1, V$ = 4;
function To(t) {
  return po(t, H$ | V$);
}
var X$ = function() {
  return Gt.Date.now();
};
const Ai = X$;
var Y$ = "Expected a function", q$ = Math.max, G$ = Math.min;
function K$(t, e, n) {
  var r, o, i, l, c, f, u = 0, p = !1, h = !1, m = !0;
  if (typeof t != "function")
    throw new TypeError(Y$);
  e = Yl(e) || 0, ve(n) && (p = !!n.leading, h = "maxWait" in n, i = h ? q$(Yl(n.maxWait) || 0, e) : i, m = "trailing" in n ? !!n.trailing : m);
  function b(y) {
    var A = r, j = o;
    return r = o = void 0, u = y, l = t.apply(j, A), l;
  }
  function v(y) {
    return u = y, c = setTimeout($, e), p ? b(y) : l;
  }
  function _(y) {
    var A = y - f, j = y - u, S = e - A;
    return h ? G$(S, i - j) : S;
  }
  function x(y) {
    var A = y - f, j = y - u;
    return f === void 0 || A >= e || A < 0 || h && j >= i;
  }
  function $() {
    var y = Ai();
    if (x(y))
      return E(y);
    c = setTimeout($, _(y));
  }
  function E(y) {
    return c = void 0, m && r ? b(y) : (r = o = void 0, l);
  }
  function O() {
    c !== void 0 && clearTimeout(c), u = 0, r = f = o = c = void 0;
  }
  function k() {
    return c === void 0 ? l : E(Ai());
  }
  function D() {
    var y = Ai(), A = x(y);
    if (r = arguments, o = this, f = y, A) {
      if (c === void 0)
        return v(f);
      if (h)
        return clearTimeout(c), c = setTimeout($, e), b(f);
    }
    return c === void 0 && (c = setTimeout($, e)), l;
  }
  return D.cancel = O, D.flush = k, D;
}
var Z$ = "Expected a function";
function mc(t, e, n) {
  var r = !0, o = !0;
  if (typeof t != "function")
    throw new TypeError(Z$);
  return ve(n) && (r = "leading" in n ? !!n.leading : r, o = "trailing" in n ? !!n.trailing : o), K$(t, e, {
    leading: r,
    maxWait: e,
    trailing: o
  });
}
function J$(t, e) {
  return t.then(function(n) {
    return [null, n];
  }).catch(function(n) {
    return e && Object.assign(n, e), [n, void 0];
  });
}
const Q$ = "ImgPond";
/*!
 * Cropper.js v1.6.0
 * https://fengyuanchen.github.io/cropperjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2023-08-26T08:14:27.943Z
 */
function vc(t, e) {
  var n = Object.keys(t);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(t);
    e && (r = r.filter(function(o) {
      return Object.getOwnPropertyDescriptor(t, o).enumerable;
    })), n.push.apply(n, r);
  }
  return n;
}
function Kf(t) {
  for (var e = 1; e < arguments.length; e++) {
    var n = arguments[e] != null ? arguments[e] : {};
    e % 2 ? vc(Object(n), !0).forEach(function(r) {
      nC(t, r, n[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : vc(Object(n)).forEach(function(r) {
      Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
    });
  }
  return t;
}
function Ki(t) {
  "@babel/helpers - typeof";
  return Ki = 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;
  }, Ki(t);
}
function tC(t, e) {
  if (!(t instanceof e))
    throw new TypeError("Cannot call a class as a function");
}
function bc(t, e) {
  for (var n = 0; n < e.length; n++) {
    var r = e[n];
    r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, Jf(r.key), r);
  }
}
function eC(t, e, n) {
  return e && bc(t.prototype, e), n && bc(t, n), Object.defineProperty(t, "prototype", {
    writable: !1
  }), t;
}
function nC(t, e, n) {
  return e = Jf(e), e in t ? Object.defineProperty(t, e, {
    value: n,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : t[e] = n, t;
}
function Zf(t) {
  return rC(t) || oC(t) || iC(t) || aC();
}
function rC(t) {
  if (Array.isArray(t))
    return Zi(t);
}
function oC(t) {
  if (typeof Symbol != "undefined" && t[Symbol.iterator] != null || t["@@iterator"] != null)
    return Array.from(t);
}
function iC(t, e) {
  if (t) {
    if (typeof t == "string")
      return Zi(t, e);
    var n = Object.prototype.toString.call(t).slice(8, -1);
    if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set")
      return Array.from(t);
    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
      return Zi(t, e);
  }
}
function Zi(t, e) {
  (e == null || e > t.length) && (e = t.length);
  for (var n = 0, r = new Array(e); n < e; n++)
    r[n] = t[n];
  return r;
}
function aC() {
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function sC(t, e) {
  if (typeof t != "object" || t === null)
    return t;
  var n = t[Symbol.toPrimitive];
  if (n !== void 0) {
    var r = n.call(t, e || "default");
    if (typeof r != "object")
      return r;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return (e === "string" ? String : Number)(t);
}
function Jf(t) {
  var e = sC(t, "string");
  return typeof e == "symbol" ? e : String(e);
}
var qo = typeof window != "undefined" && typeof window.document != "undefined", ie = qo ? window : {}, Ha = qo && ie.document.documentElement ? "ontouchstart" in ie.document.documentElement : !1, Va = qo ? "PointerEvent" in ie : !1, tt = "cropper", Xa = "all", Qf = "crop", td = "move", ed = "zoom", Xe = "e", Ye = "w", On = "s", Se = "n", or = "ne", ir = "nw", ar = "se", sr = "sw", Ji = "".concat(tt, "-crop"), wc = "".concat(tt, "-disabled"), Dt = "".concat(tt, "-hidden"), yc = "".concat(tt, "-hide"), lC = "".concat(tt, "-invisible"), Oo = "".concat(tt, "-modal"), Qi = "".concat(tt, "-move"), jr = "".concat(tt, "Action"), eo = "".concat(tt, "Preview"), Ya = "crop", nd = "move", rd = "none", ta = "crop", ea = "cropend", na = "cropmove", ra = "cropstart", _c = "dblclick", cC = Ha ? "touchstart" : "mousedown", uC = Ha ? "touchmove" : "mousemove", fC = Ha ? "touchend touchcancel" : "mouseup", xc = Va ? "pointerdown" : cC, $c = Va ? "pointermove" : uC, Cc = Va ? "pointerup pointercancel" : fC, Ec = "ready", Ac = "resize", Sc = "wheel", oa = "zoom", Tc = "image/jpeg", dC = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, hC = /^data:/, pC = /^data:image\/jpeg;base64,/, gC = /^img|canvas$/i, od = 200, id = 100, Oc = {
  // Define the view mode of the cropper
  viewMode: 0,
  // 0, 1, 2, 3
  // Define the dragging mode of the cropper
  dragMode: Ya,
  // 'crop', 'move' or 'none'
  // Define the initial aspect ratio of the crop box
  initialAspectRatio: NaN,
  // Define the aspect ratio of the crop box
  aspectRatio: NaN,
  // An object with the previous cropping result data
  data: null,
  // A selector for adding extra containers to preview
  preview: "",
  // Re-render the cropper when resize the window
  responsive: !0,
  // Restore the cropped area after resize the window
  restore: !0,
  // Check if the current image is a cross-origin image
  checkCrossOrigin: !0,
  // Check the current image's Exif Orientation information
  checkOrientation: !0,
  // Show the black modal
  modal: !0,
  // Show the dashed lines for guiding
  guides: !0,
  // Show the center indicator for guiding
  center: !0,
  // Show the white modal to highlight the crop box
  highlight: !0,
  // Show the grid background
  background: !0,
  // Enable to crop the image automatically when initialize
  autoCrop: !0,
  // Define the percentage of automatic cropping area when initializes
  autoCropArea: 0.8,
  // Enable to move the image
  movable: !0,
  // Enable to rotate the image
  rotatable: !0,
  // Enable to scale the image
  scalable: !0,
  // Enable to zoom the image
  zoomable: !0,
  // Enable to zoom the image by dragging touch
  zoomOnTouch: !0,
  // Enable to zoom the image by wheeling mouse
  zoomOnWheel: !0,
  // Define zoom ratio when zoom the image by wheeling mouse
  wheelZoomRatio: 0.1,
  // Enable to move the crop box
  cropBoxMovable: !0,
  // Enable to resize the crop box
  cropBoxResizable: !0,
  // Toggle drag mode between "crop" and "move" when click twice on the cropper
  toggleDragModeOnDblclick: !0,
  // Size limitation
  minCanvasWidth: 0,
  minCanvasHeight: 0,
  minCropBoxWidth: 0,
  minCropBoxHeight: 0,
  minContainerWidth: od,
  minContainerHeight: id,
  // Shortcuts of events
  ready: null,
  cropstart: null,
  cropmove: null,
  cropend: null,
  crop: null,
  zoom: null
}, mC = '<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>', vC = Number.isNaN || ie.isNaN;
function F(t) {
  return typeof t == "number" && !vC(t);
}
var jc = function(e) {
  return e > 0 && e < 1 / 0;
};
function Si(t) {
  return typeof t == "undefined";
}
function rn(t) {
  return Ki(t) === "object" && t !== null;
}
var bC = Object.prototype.hasOwnProperty;
function Mn(t) {
  if (!rn(t))
    return !1;
  try {
    var e = t.constructor, n = e.prototype;
    return e && n && bC.call(n, "isPrototypeOf");
  } catch (r) {
    return !1;
  }
}
function jt(t) {
  return typeof t == "function";
}
var wC = Array.prototype.slice;
function ad(t) {
  return Array.from ? Array.from(t) : wC.call(t);
}
function ut(t, e) {
  return t && jt(e) && (Array.isArray(t) || F(t.length) ? ad(t).forEach(function(n, r) {
    e.call(t, n, r, t);
  }) : rn(t) && Object.keys(t).forEach(function(n) {
    e.call(t, t[n], n, t);
  })), t;
}
var et = Object.assign || function(e) {
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
    r[o - 1] = arguments[o];
  return rn(e) && r.length > 0 && r.forEach(function(i) {
    rn(i) && Object.keys(i).forEach(function(l) {
      e[l] = i[l];
    });
  }), e;
}, yC = /\.\d*(?:0|9){12}\d*$/;
function Nn(t) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1e11;
  return yC.test(t) ? Math.round(t * e) / e : t;
}
var _C = /^width|height|left|top|marginLeft|marginTop$/;
function Pe(t, e) {
  var n = t.style;
  ut(e, function(r, o) {
    _C.test(o) && F(r) && (r = "".concat(r, "px")), n[o] = r;
  });
}
function xC(t, e) {
  return t.classList ? t.classList.contains(e) : t.className.indexOf(e) > -1;
}
function gt(t, e) {
  if (e) {
    if (F(t.length)) {
      ut(t, function(r) {
        gt(r, e);
      });
      return;
    }
    if (t.classList) {
      t.classList.add(e);
      return;
    }
    var n = t.className.trim();
    n ? n.indexOf(e) < 0 && (t.className = "".concat(n, " ").concat(e)) : t.className = e;
  }
}
function te(t, e) {
  if (e) {
    if (F(t.length)) {
      ut(t, function(n) {
        te(n, e);
      });
      return;
    }
    if (t.classList) {
      t.classList.remove(e);
      return;
    }
    t.className.indexOf(e) >= 0 && (t.className = t.className.replace(e, ""));
  }
}
function Rn(t, e, n) {
  if (e) {
    if (F(t.length)) {
      ut(t, function(r) {
        Rn(r, e, n);
      });
      return;
    }
    n ? gt(t, e) : te(t, e);
  }
}
var $C = /([a-z\d])([A-Z])/g;
function qa(t) {
  return t.replace($C, "$1-$2").toLowerCase();
}
function ia(t, e) {
  return rn(t[e]) ? t[e] : t.dataset ? t.dataset[e] : t.getAttribute("data-".concat(qa(e)));
}
function Dr(t, e, n) {
  rn(n) ? t[e] = n : t.dataset ? t.dataset[e] = n : t.setAttribute("data-".concat(qa(e)), n);
}
function CC(t, e) {
  if (rn(t[e]))
    try {
      delete t[e];
    } catch (n) {
      t[e] = void 0;
    }
  else if (t.dataset)
    try {
      delete t.dataset[e];
    } catch (n) {
      t.dataset[e] = void 0;
    }
  else
    t.removeAttribute("data-".concat(qa(e)));
}
var sd = /\s\s*/, ld = function() {
  var t = !1;
  if (qo) {
    var e = !1, n = function() {
    }, r = Object.defineProperty({}, "once", {
      get: function() {
        return t = !0, e;
      },
      /**
       * This setter can fix a `TypeError` in strict mode
       * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Getter_only}
       * @param {boolean} value - The value to set
       */
      set: function(i) {
        e = i;
      }
    });
    ie.addEventListener("test", n, r), ie.removeEventListener("test", n, r);
  }
  return t;
}();
function Vt(t, e, n) {
  var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, o = n;
  e.trim().split(sd).forEach(function(i) {
    if (!ld) {
      var l = t.listeners;
      l && l[i] && l[i][n] && (o = l[i][n], delete l[i][n], Object.keys(l[i]).length === 0 && delete l[i], Object.keys(l).length === 0 && delete t.listeners);
    }
    t.removeEventListener(i, o, r);
  });
}
function Ft(t, e, n) {
  var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, o = n;
  e.trim().split(sd).forEach(function(i) {
    if (r.once && !ld) {
      var l = t.listeners, c = l === void 0 ? {} : l;
      o = function() {
        delete c[i][n], t.removeEventListener(i, o, r);
        for (var u = arguments.length, p = new Array(u), h = 0; h < u; h++)
          p[h] = arguments[h];
        n.apply(t, p);
      }, c[i] || (c[i] = {}), c[i][n] && t.removeEventListener(i, c[i][n], r), c[i][n] = o, t.listeners = c;
    }
    t.addEventListener(i, o, r);
  });
}
function zn(t, e, n) {
  var r;
  return jt(Event) && jt(CustomEvent) ? r = new CustomEvent(e, {
    detail: n,
    bubbles: !0,
    cancelable: !0
  }) : (r = document.createEvent("CustomEvent"), r.initCustomEvent(e, !0, !0, n)), t.dispatchEvent(r);
}
function cd(t) {
  var e = t.getBoundingClientRect();
  return {
    left: e.left + (window.pageXOffset - document.documentElement.clientLeft),
    top: e.top + (window.pageYOffset - document.documentElement.clientTop)
  };
}
var Ti = ie.location, EC = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
function Dc(t) {
  var e = t.match(EC);
  return e !== null && (e[1] !== Ti.protocol || e[2] !== Ti.hostname || e[3] !== Ti.port);
}
function Pc(t) {
  var e = "timestamp=".concat((/* @__PURE__ */ new Date()).getTime());
  return t + (t.indexOf("?") === -1 ? "?" : "&") + e;
}
function xr(t) {
  var e = t.rotate, n = t.scaleX, r = t.scaleY, o = t.translateX, i = t.translateY, l = [];
  F(o) && o !== 0 && l.push("translateX(".concat(o, "px)")), F(i) && i !== 0 && l.push("translateY(".concat(i, "px)")), F(e) && e !== 0 && l.push("rotate(".concat(e, "deg)")), F(n) && n !== 1 && l.push("scaleX(".concat(n, ")")), F(r) && r !== 1 && l.push("scaleY(".concat(r, ")"));
  var c = l.length ? l.join(" ") : "none";
  return {
    WebkitTransform: c,
    msTransform: c,
    transform: c
  };
}
function AC(t) {
  var e = Kf({}, t), n = 0;
  return ut(t, function(r, o) {
    delete e[o], ut(e, function(i) {
      var l = Math.abs(r.startX - i.startX), c = Math.abs(r.startY - i.startY), f = Math.abs(r.endX - i.endX), u = Math.abs(r.endY - i.endY), p = Math.sqrt(l * l + c * c), h = Math.sqrt(f * f + u * u), m = (h - p) / p;
      Math.abs(m) > Math.abs(n) && (n = m);
    });
  }), n;
}
function no(t, e) {
  var n = t.pageX, r = t.pageY, o = {
    endX: n,
    endY: r
  };
  return e ? o : Kf({
    startX: n,
    startY: r
  }, o);
}
function SC(t) {
  var e = 0, n = 0, r = 0;
  return ut(t, function(o) {
    var i = o.startX, l = o.startY;
    e += i, n += l, r += 1;
  }), e /= r, n /= r, {
    pageX: e,
    pageY: n
  };
}
function Be(t) {
  var e = t.aspectRatio, n = t.height, r = t.width, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "contain", i = jc(r), l = jc(n);
  if (i && l) {
    var c = n * e;
    o === "contain" && c > r || o === "cover" && c < r ? n = r / e : r = n * e;
  } else
    i ? n = r / e : l && (r = n * e);
  return {
    width: r,
    height: n
  };
}
function TC(t) {
  var e = t.width, n = t.height, r = t.degree;
  if (r = Math.abs(r) % 180, r === 90)
    return {
      width: n,
      height: e
    };
  var o = r % 90 * Math.PI / 180, i = Math.sin(o), l = Math.cos(o), c = e * l + n * i, f = e * i + n * l;
  return r > 90 ? {
    width: f,
    height: c
  } : {
    width: c,
    height: f
  };
}
function OC(t, e, n, r) {
  var o = e.aspectRatio, i = e.naturalWidth, l = e.naturalHeight, c = e.rotate, f = c === void 0 ? 0 : c, u = e.scaleX, p = u === void 0 ? 1 : u, h = e.scaleY, m = h === void 0 ? 1 : h, b = n.aspectRatio, v = n.naturalWidth, _ = n.naturalHeight, x = r.fillColor, $ = x === void 0 ? "transparent" : x, E = r.imageSmoothingEnabled, O = E === void 0 ? !0 : E, k = r.imageSmoothingQuality, D = k === void 0 ? "low" : k, y = r.maxWidth, A = y === void 0 ? 1 / 0 : y, j = r.maxHeight, S = j === void 0 ? 1 / 0 : j, I = r.minWidth, Y = I === void 0 ? 0 : I, pt = r.minHeight, J = pt === void 0 ? 0 : pt, q = document.createElement("canvas"), W = q.getContext("2d"), nt = Be({
    aspectRatio: b,
    width: A,
    height: S
  }), mt = Be({
    aspectRatio: b,
    width: Y,
    height: J
  }, "cover"), rt = Math.min(nt.width, Math.max(mt.width, v)), St = Math.min(nt.height, Math.max(mt.height, _)), Pt = Be({
    aspectRatio: o,
    width: A,
    height: S
  }), de = Be({
    aspectRatio: o,
    width: Y,
    height: J
  }, "cover"), Bt = Math.min(Pt.width, Math.max(de.width, i)), Lt = Math.min(Pt.height, Math.max(de.height, l)), Me = [-Bt / 2, -Lt / 2, Bt, Lt];
  return q.width = Nn(rt), q.height = Nn(St), W.fillStyle = $, W.fillRect(0, 0, rt, St), W.save(), W.translate(rt / 2, St / 2), W.rotate(f * Math.PI / 180), W.scale(p, m), W.imageSmoothingEnabled = O, W.imageSmoothingQuality = D, W.drawImage.apply(W, [t].concat(Zf(Me.map(function(he) {
    return Math.floor(Nn(he));
  })))), W.restore(), q;
}
var ud = String.fromCharCode;
function jC(t, e, n) {
  var r = "";
  n += e;
  for (var o = e; o < n; o += 1)
    r += ud(t.getUint8(o));
  return r;
}
var DC = /^data:.*,/;
function PC(t) {
  var e = t.replace(DC, ""), n = atob(e), r = new ArrayBuffer(n.length), o = new Uint8Array(r);
  return ut(o, function(i, l) {
    o[l] = n.charCodeAt(l);
  }), r;
}
function BC(t, e) {
  for (var n = [], r = 8192, o = new Uint8Array(t); o.length > 0; )
    n.push(ud.apply(null, ad(o.subarray(0, r)))), o = o.subarray(r);
  return "data:".concat(e, ";base64,").concat(btoa(n.join("")));
}
function kC(t) {
  var e = new DataView(t), n;
  try {
    var r, o, i;
    if (e.getUint8(0) === 255 && e.getUint8(1) === 216)
      for (var l = e.byteLength, c = 2; c + 1 < l; ) {
        if (e.getUint8(c) === 255 && e.getUint8(c + 1) === 225) {
          o = c;
          break;
        }
        c += 1;
      }
    if (o) {
      var f = o + 4, u = o + 10;
      if (jC(e, f, 4) === "Exif") {
        var p = e.getUint16(u);
        if (r = p === 18761, (r || p === 19789) && e.getUint16(u + 2, r) === 42) {
          var h = e.getUint32(u + 4, r);
          h >= 8 && (i = u + h);
        }
      }
    }
    if (i) {
      var m = e.getUint16(i, r), b, v;
      for (v = 0; v < m; v += 1)
        if (b = i + v * 12 + 2, e.getUint16(b, r) === 274) {
          b += 8, n = e.getUint16(b, r), e.setUint16(b, 1, r);
          break;
        }
    }
  } catch (_) {
    n = 1;
  }
  return n;
}
function IC(t) {
  var e = 0, n = 1, r = 1;
  switch (t) {
    case 2:
      n = -1;
      break;
    case 3:
      e = -180;
      break;
    case 4:
      r = -1;
      break;
    case 5:
      e = 90, r = -1;
      break;
    case 6:
      e = 90;
      break;
    case 7:
      e = 90, n = -1;
      break;
    case 8:
      e = -90;
      break;
  }
  return {
    rotate: e,
    scaleX: n,
    scaleY: r
  };
}
var MC = {
  render: function() {
    this.initContainer(), this.initCanvas(), this.initCropBox(), this.renderCanvas(), this.cropped && this.renderCropBox();
  },
  initContainer: function() {
    var e = this.element, n = this.options, r = this.container, o = this.cropper, i = Number(n.minContainerWidth), l = Number(n.minContainerHeight);
    gt(o, Dt), te(e, Dt);
    var c = {
      width: Math.max(r.offsetWidth, i >= 0 ? i : od),
      height: Math.max(r.offsetHeight, l >= 0 ? l : id)
    };
    this.containerData = c, Pe(o, {
      width: c.width,
      height: c.height
    }), gt(e, Dt), te(o, Dt);
  },
  // Canvas (image wrapper)
  initCanvas: function() {
    var e = this.containerData, n = this.imageData, r = this.options.viewMode, o = Math.abs(n.rotate) % 180 === 90, i = o ? n.naturalHeight : n.naturalWidth, l = o ? n.naturalWidth : n.naturalHeight, c = i / l, f = e.width, u = e.height;
    e.height * c > e.width ? r === 3 ? f = e.height * c : u = e.width / c : r === 3 ? u = e.width / c : f = e.height * c;
    var p = {
      aspectRatio: c,
      naturalWidth: i,
      naturalHeight: l,
      width: f,
      height: u
    };
    this.canvasData = p, this.limited = r === 1 || r === 2, this.limitCanvas(!0, !0), p.width = Math.min(Math.max(p.width, p.minWidth), p.maxWidth), p.height = Math.min(Math.max(p.height, p.minHeight), p.maxHeight), p.left = (e.width - p.width) / 2, p.top = (e.height - p.height) / 2, p.oldLeft = p.left, p.oldTop = p.top, this.initialCanvasData = et({}, p);
  },
  limitCanvas: function(e, n) {
    var r = this.options, o = this.containerData, i = this.canvasData, l = this.cropBoxData, c = r.viewMode, f = i.aspectRatio, u = this.cropped && l;
    if (e) {
      var p = Number(r.minCanvasWidth) || 0, h = Number(r.minCanvasHeight) || 0;
      c > 1 ? (p = Math.max(p, o.width), h = Math.max(h, o.height), c === 3 && (h * f > p ? p = h * f : h = p / f)) : c > 0 && (p ? p = Math.max(p, u ? l.width : 0) : h ? h = Math.max(h, u ? l.height : 0) : u && (p = l.width, h = l.height, h * f > p ? p = h * f : h = p / f));
      var m = Be({
        aspectRatio: f,
        width: p,
        height: h
      });
      p = m.width, h = m.height, i.minWidth = p, i.minHeight = h, i.maxWidth = 1 / 0, i.maxHeight = 1 / 0;
    }
    if (n)
      if (c > (u ? 0 : 1)) {
        var b = o.width - i.width, v = o.height - i.height;
        i.minLeft = Math.min(0, b), i.minTop = Math.min(0, v), i.maxLeft = Math.max(0, b), i.maxTop = Math.max(0, v), u && this.limited && (i.minLeft = Math.min(l.left, l.left + (l.width - i.width)), i.minTop = Math.min(l.top, l.top + (l.height - i.height)), i.maxLeft = l.left, i.maxTop = l.top, c === 2 && (i.width >= o.width && (i.minLeft = Math.min(0, b), i.maxLeft = Math.max(0, b)), i.height >= o.height && (i.minTop = Math.min(0, v), i.maxTop = Math.max(0, v))));
      } else
        i.minLeft = -i.width, i.minTop = -i.height, i.maxLeft = o.width, i.maxTop = o.height;
  },
  renderCanvas: function(e, n) {
    var r = this.canvasData, o = this.imageData;
    if (n) {
      var i = TC({
        width: o.naturalWidth * Math.abs(o.scaleX || 1),
        height: o.naturalHeight * Math.abs(o.scaleY || 1),
        degree: o.rotate || 0
      }), l = i.width, c = i.height, f = r.width * (l / r.naturalWidth), u = r.height * (c / r.naturalHeight);
      r.left -= (f - r.width) / 2, r.top -= (u - r.height) / 2, r.width = f, r.height = u, r.aspectRatio = l / c, r.naturalWidth = l, r.naturalHeight = c, this.limitCanvas(!0, !1);
    }
    (r.width > r.maxWidth || r.width < r.minWidth) && (r.left = r.oldLeft), (r.height > r.maxHeight || r.height < r.minHeight) && (r.top = r.oldTop), r.width = Math.min(Math.max(r.width, r.minWidth), r.maxWidth), r.height = Math.min(Math.max(r.height, r.minHeight), r.maxHeight), this.limitCanvas(!1, !0), r.left = Math.min(Math.max(r.left, r.minLeft), r.maxLeft), r.top = Math.min(Math.max(r.top, r.minTop), r.maxTop), r.oldLeft = r.left, r.oldTop = r.top, Pe(this.canvas, et({
      width: r.width,
      height: r.height
    }, xr({
      translateX: r.left,
      translateY: r.top
    }))), this.renderImage(e), this.cropped && this.limited && this.limitCropBox(!0, !0);
  },
  renderImage: function(e) {
    var n = this.canvasData, r = this.imageData, o = r.naturalWidth * (n.width / n.naturalWidth), i = r.naturalHeight * (n.height / n.naturalHeight);
    et(r, {
      width: o,
      height: i,
      left: (n.width - o) / 2,
      top: (n.height - i) / 2
    }), Pe(this.image, et({
      width: r.width,
      height: r.height
    }, xr(et({
      translateX: r.left,
      translateY: r.top
    }, r)))), e && this.output();
  },
  initCropBox: function() {
    var e = this.options, n = this.canvasData, r = e.aspectRatio || e.initialAspectRatio, o = Number(e.autoCropArea) || 0.8, i = {
      width: n.width,
      height: n.height
    };
    r && (n.height * r > n.width ? i.height = i.width / r : i.width = i.height * r), this.cropBoxData = i, this.limitCropBox(!0, !0), i.width = Math.min(Math.max(i.width, i.minWidth), i.maxWidth), i.height = Math.min(Math.max(i.height, i.minHeight), i.maxHeight), i.width = Math.max(i.minWidth, i.width * o), i.height = Math.max(i.minHeight, i.height * o), i.left = n.left + (n.width - i.width) / 2, i.top = n.top + (n.height - i.height) / 2, i.oldLeft = i.left, i.oldTop = i.top, this.initialCropBoxData = et({}, i);
  },
  limitCropBox: function(e, n) {
    var r = this.options, o = this.containerData, i = this.canvasData, l = this.cropBoxData, c = this.limited, f = r.aspectRatio;
    if (e) {
      var u = Number(r.minCropBoxWidth) || 0, p = Number(r.minCropBoxHeight) || 0, h = c ? Math.min(o.width, i.width, i.width + i.left, o.width - i.left) : o.width, m = c ? Math.min(o.height, i.height, i.height + i.top, o.height - i.top) : o.height;
      u = Math.min(u, o.width), p = Math.min(p, o.height), f && (u && p ? p * f > u ? p = u / f : u = p * f : u ? p = u / f : p && (u = p * f), m * f > h ? m = h / f : h = m * f), l.minWidth = Math.min(u, h), l.minHeight = Math.min(p, m), l.maxWidth = h, l.maxHeight = m;
    }
    n && (c ? (l.minLeft = Math.max(0, i.left), l.minTop = Math.max(0, i.top), l.maxLeft = Math.min(o.width, i.left + i.width) - l.width, l.maxTop = Math.min(o.height, i.top + i.height) - l.height) : (l.minLeft = 0, l.minTop = 0, l.maxLeft = o.width - l.width, l.maxTop = o.height - l.height));
  },
  renderCropBox: function() {
    var e = this.options, n = this.containerData, r = this.cropBoxData;
    (r.width > r.maxWidth || r.width < r.minWidth) && (r.left = r.oldLeft), (r.height > r.maxHeight || r.height < r.minHeight) && (r.top = r.oldTop), r.width = Math.min(Math.max(r.width, r.minWidth), r.maxWidth), r.height = Math.min(Math.max(r.height, r.minHeight), r.maxHeight), this.limitCropBox(!1, !0), r.left = Math.min(Math.max(r.left, r.minLeft), r.maxLeft), r.top = Math.min(Math.max(r.top, r.minTop), r.maxTop), r.oldLeft = r.left, r.oldTop = r.top, e.movable && e.cropBoxMovable && Dr(this.face, jr, r.width >= n.width && r.height >= n.height ? td : Xa), Pe(this.cropBox, et({
      width: r.width,
      height: r.height
    }, xr({
      translateX: r.left,
      translateY: r.top
    }))), this.cropped && this.limited && this.limitCanvas(!0, !0), this.disabled || this.output();
  },
  output: function() {
    this.preview(), zn(this.element, ta, this.getData());
  }
}, RC = {
  initPreview: function() {
    var e = this.element, n = this.crossOrigin, r = this.options.preview, o = n ? this.crossOriginUrl : this.url, i = e.alt || "The image to preview", l = document.createElement("img");
    if (n && (l.crossOrigin = n), l.src = o, l.alt = i, this.viewBox.appendChild(l), this.viewBoxImage = l, !!r) {
      var c = r;
      typeof r == "string" ? c = e.ownerDocument.querySelectorAll(r) : r.querySelector && (c = [r]), this.previews = c, ut(c, function(f) {
        var u = document.createElement("img");
        Dr(f, eo, {
          width: f.offsetWidth,
          height: f.offsetHeight,
          html: f.innerHTML
        }), n && (u.crossOrigin = n), u.src = o, u.alt = i, u.style.cssText = 'display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"', f.innerHTML = "", f.appendChild(u);
      });
    }
  },
  resetPreview: function() {
    ut(this.previews, function(e) {
      var n = ia(e, eo);
      Pe(e, {
        width: n.width,
        height: n.height
      }), e.innerHTML = n.html, CC(e, eo);
    });
  },
  preview: function() {
    var e = this.imageData, n = this.canvasData, r = this.cropBoxData, o = r.width, i = r.height, l = e.width, c = e.height, f = r.left - n.left - e.left, u = r.top - n.top - e.top;
    !this.cropped || this.disabled || (Pe(this.viewBoxImage, et({
      width: l,
      height: c
    }, xr(et({
      translateX: -f,
      translateY: -u
    }, e)))), ut(this.previews, function(p) {
      var h = ia(p, eo), m = h.width, b = h.height, v = m, _ = b, x = 1;
      o && (x = m / o, _ = i * x), i && _ > b && (x = b / i, v = o * x, _ = b), Pe(p, {
        width: v,
        height: _
      }), Pe(p.getElementsByTagName("img")[0], et({
        width: l * x,
        height: c * x
      }, xr(et({
        translateX: -f * x,
        translateY: -u * x
      }, e))));
    }));
  }
}, LC = {
  bind: function() {
    var e = this.element, n = this.options, r = this.cropper;
    jt(n.cropstart) && Ft(e, ra, n.cropstart), jt(n.cropmove) && Ft(e, na, n.cropmove), jt(n.cropend) && Ft(e, ea, n.cropend), jt(n.crop) && Ft(e, ta, n.crop), jt(n.zoom) && Ft(e, oa, n.zoom), Ft(r, xc, this.onCropStart = this.cropStart.bind(this)), n.zoomable && n.zoomOnWheel && Ft(r, Sc, this.onWheel = this.wheel.bind(this), {
      passive: !1,
      capture: !0
    }), n.toggleDragModeOnDblclick && Ft(r, _c, this.onDblclick = this.dblclick.bind(this)), Ft(e.ownerDocument, $c, this.onCropMove = this.cropMove.bind(this)), Ft(e.ownerDocument, Cc, this.onCropEnd = this.cropEnd.bind(this)), n.responsive && Ft(window, Ac, this.onResize = this.resize.bind(this));
  },
  unbind: function() {
    var e = this.element, n = this.options, r = this.cropper;
    jt(n.cropstart) && Vt(e, ra, n.cropstart), jt(n.cropmove) && Vt(e, na, n.cropmove), jt(n.cropend) && Vt(e, ea, n.cropend), jt(n.crop) && Vt(e, ta, n.crop), jt(n.zoom) && Vt(e, oa, n.zoom), Vt(r, xc, this.onCropStart), n.zoomable && n.zoomOnWheel && Vt(r, Sc, this.onWheel, {
      passive: !1,
      capture: !0
    }), n.toggleDragModeOnDblclick && Vt(r, _c, this.onDblclick), Vt(e.ownerDocument, $c, this.onCropMove), Vt(e.ownerDocument, Cc, this.onCropEnd), n.responsive && Vt(window, Ac, this.onResize);
  }
}, FC = {
  resize: function() {
    if (!this.disabled) {
      var e = this.options, n = this.container, r = this.containerData, o = n.offsetWidth / r.width, i = n.offsetHeight / r.height, l = Math.abs(o - 1) > Math.abs(i - 1) ? o : i;
      if (l !== 1) {
        var c, f;
        e.restore && (c = this.getCanvasData(), f = this.getCropBoxData()), this.render(), e.restore && (this.setCanvasData(ut(c, function(u, p) {
          c[p] = u * l;
        })), this.setCropBoxData(ut(f, function(u, p) {
          f[p] = u * l;
        })));
      }
    }
  },
  dblclick: function() {
    this.disabled || this.options.dragMode === rd || this.setDragMode(xC(this.dragBox, Ji) ? nd : Ya);
  },
  wheel: function(e) {
    var n = this, r = Number(this.options.wheelZoomRatio) || 0.1, o = 1;
    this.disabled || (e.preventDefault(), !this.wheeling && (this.wheeling = !0, setTimeout(function() {
      n.wheeling = !1;
    }, 50), e.deltaY ? o = e.deltaY > 0 ? 1 : -1 : e.wheelDelta ? o = -e.wheelDelta / 120 : e.detail && (o = e.detail > 0 ? 1 : -1), this.zoom(-o * r, e)));
  },
  cropStart: function(e) {
    var n = e.buttons, r = e.button;
    if (!(this.disabled || (e.type === "mousedown" || e.type === "pointerdown" && e.pointerType === "mouse") && // No primary button (Usually the left button)
    (F(n) && n !== 1 || F(r) && r !== 0 || e.ctrlKey))) {
      var o = this.options, i = this.pointers, l;
      e.changedTouches ? ut(e.changedTouches, function(c) {
        i[c.identifier] = no(c);
      }) : i[e.pointerId || 0] = no(e), Object.keys(i).length > 1 && o.zoomable && o.zoomOnTouch ? l = ed : l = ia(e.target, jr), dC.test(l) && zn(this.element, ra, {
        originalEvent: e,
        action: l
      }) !== !1 && (e.preventDefault(), this.action = l, this.cropping = !1, l === Qf && (this.cropping = !0, gt(this.dragBox, Oo)));
    }
  },
  cropMove: function(e) {
    var n = this.action;
    if (!(this.disabled || !n)) {
      var r = this.pointers;
      e.preventDefault(), zn(this.element, na, {
        originalEvent: e,
        action: n
      }) !== !1 && (e.changedTouches ? ut(e.changedTouches, function(o) {
        et(r[o.identifier] || {}, no(o, !0));
      }) : et(r[e.pointerId || 0] || {}, no(e, !0)), this.change(e));
    }
  },
  cropEnd: function(e) {
    if (!this.disabled) {
      var n = this.action, r = this.pointers;
      e.changedTouches ? ut(e.changedTouches, function(o) {
        delete r[o.identifier];
      }) : delete r[e.pointerId || 0], n && (e.preventDefault(), Object.keys(r).length || (this.action = ""), this.cropping && (this.cropping = !1, Rn(this.dragBox, Oo, this.cropped && this.options.modal)), zn(this.element, ea, {
        originalEvent: e,
        action: n
      }));
    }
  }
}, NC = {
  change: function(e) {
    var n = this.options, r = this.canvasData, o = this.containerData, i = this.cropBoxData, l = this.pointers, c = this.action, f = n.aspectRatio, u = i.left, p = i.top, h = i.width, m = i.height, b = u + h, v = p + m, _ = 0, x = 0, $ = o.width, E = o.height, O = !0, k;
    !f && e.shiftKey && (f = h && m ? h / m : 1), this.limited && (_ = i.minLeft, x = i.minTop, $ = _ + Math.min(o.width, r.width, r.left + r.width), E = x + Math.min(o.height, r.height, r.top + r.height));
    var D = l[Object.keys(l)[0]], y = {
      x: D.endX - D.startX,
      y: D.endY - D.startY
    }, A = function(S) {
      switch (S) {
        case Xe:
          b + y.x > $ && (y.x = $ - b);
          break;
        case Ye:
          u + y.x < _ && (y.x = _ - u);
          break;
        case Se:
          p + y.y < x && (y.y = x - p);
          break;
        case On:
          v + y.y > E && (y.y = E - v);
          break;
      }
    };
    switch (c) {
      case Xa:
        u += y.x, p += y.y;
        break;
      case Xe:
        if (y.x >= 0 && (b >= $ || f && (p <= x || v >= E))) {
          O = !1;
          break;
        }
        A(Xe), h += y.x, h < 0 && (c = Ye, h = -h, u -= h), f && (m = h / f, p += (i.height - m) / 2);
        break;
      case Se:
        if (y.y <= 0 && (p <= x || f && (u <= _ || b >= $))) {
          O = !1;
          break;
        }
        A(Se), m -= y.y, p += y.y, m < 0 && (c = On, m = -m, p -= m), f && (h = m * f, u += (i.width - h) / 2);
        break;
      case Ye:
        if (y.x <= 0 && (u <= _ || f && (p <= x || v >= E))) {
          O = !1;
          break;
        }
        A(Ye), h -= y.x, u += y.x, h < 0 && (c = Xe, h = -h, u -= h), f && (m = h / f, p += (i.height - m) / 2);
        break;
      case On:
        if (y.y >= 0 && (v >= E || f && (u <= _ || b >= $))) {
          O = !1;
          break;
        }
        A(On), m += y.y, m < 0 && (c = Se, m = -m, p -= m), f && (h = m * f, u += (i.width - h) / 2);
        break;
      case or:
        if (f) {
          if (y.y <= 0 && (p <= x || b >= $)) {
            O = !1;
            break;
          }
          A(Se), m -= y.y, p += y.y, h = m * f;
        } else
          A(Se), A(Xe), y.x >= 0 ? b < $ ? h += y.x : y.y <= 0 && p <= x && (O = !1) : h += y.x, y.y <= 0 ? p > x && (m -= y.y, p += y.y) : (m -= y.y, p += y.y);
        h < 0 && m < 0 ? (c = sr, m = -m, h = -h, p -= m, u -= h) : h < 0 ? (c = ir, h = -h, u -= h) : m < 0 && (c = ar, m = -m, p -= m);
        break;
      case ir:
        if (f) {
          if (y.y <= 0 && (p <= x || u <= _)) {
            O = !1;
            break;
          }
          A(Se), m -= y.y, p += y.y, h = m * f, u += i.width - h;
        } else
          A(Se), A(Ye), y.x <= 0 ? u > _ ? (h -= y.x, u += y.x) : y.y <= 0 && p <= x && (O = !1) : (h -= y.x, u += y.x), y.y <= 0 ? p > x && (m -= y.y, p += y.y) : (m -= y.y, p += y.y);
        h < 0 && m < 0 ? (c = ar, m = -m, h = -h, p -= m, u -= h) : h < 0 ? (c = or, h = -h, u -= h) : m < 0 && (c = sr, m = -m, p -= m);
        break;
      case sr:
        if (f) {
          if (y.x <= 0 && (u <= _ || v >= E)) {
            O = !1;
            break;
          }
          A(Ye), h -= y.x, u += y.x, m = h / f;
        } else
          A(On), A(Ye), y.x <= 0 ? u > _ ? (h -= y.x, u += y.x) : y.y >= 0 && v >= E && (O = !1) : (h -= y.x, u += y.x), y.y >= 0 ? v < E && (m += y.y) : m += y.y;
        h < 0 && m < 0 ? (c = or, m = -m, h = -h, p -= m, u -= h) : h < 0 ? (c = ar, h = -h, u -= h) : m < 0 && (c = ir, m = -m, p -= m);
        break;
      case ar:
        if (f) {
          if (y.x >= 0 && (b >= $ || v >= E)) {
            O = !1;
            break;
          }
          A(Xe), h += y.x, m = h / f;
        } else
          A(On), A(Xe), y.x >= 0 ? b < $ ? h += y.x : y.y >= 0 && v >= E && (O = !1) : h += y.x, y.y >= 0 ? v < E && (m += y.y) : m += y.y;
        h < 0 && m < 0 ? (c = ir, m = -m, h = -h, p -= m, u -= h) : h < 0 ? (c = sr, h = -h, u -= h) : m < 0 && (c = or, m = -m, p -= m);
        break;
      case td:
        this.move(y.x, y.y), O = !1;
        break;
      case ed:
        this.zoom(AC(l), e), O = !1;
        break;
      case Qf:
        if (!y.x || !y.y) {
          O = !1;
          break;
        }
        k = cd(this.cropper), u = D.startX - k.left, p = D.startY - k.top, h = i.minWidth, m = i.minHeight, y.x > 0 ? c = y.y > 0 ? ar : or : y.x < 0 && (u -= h, c = y.y > 0 ? sr : ir), y.y < 0 && (p -= m), this.cropped || (te(this.cropBox, Dt), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
        break;
    }
    O && (i.width = h, i.height = m, i.left = u, i.top = p, this.action = c, this.renderCropBox()), ut(l, function(j) {
      j.startX = j.endX, j.startY = j.endY;
    });
  }
}, zC = {
  // Show the crop box manually
  crop: function() {
    return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && gt(this.dragBox, Oo), te(this.cropBox, Dt), this.setCropBoxData(this.initialCropBoxData)), this;
  },
  // Reset the image and crop box to their initial states
  reset: function() {
    return this.ready && !this.disabled && (this.imageData = et({}, this.initialImageData), this.canvasData = et({}, this.initialCanvasData), this.cropBoxData = et({}, this.initialCropBoxData), this.renderCanvas(), this.cropped && this.renderCropBox()), this;
  },
  // Clear the crop box
  clear: function() {
    return this.cropped && !this.disabled && (et(this.cropBoxData, {
      left: 0,
      top: 0,
      width: 0,
      height: 0
    }), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), te(this.dragBox, Oo), gt(this.cropBox, Dt)), this;
  },
  /**
   * Replace the image's src and rebuild the cropper
   * @param {string} url - The new URL.
   * @param {boolean} [hasSameSize] - Indicate if the new image has the same size as the old one.
   * @returns {Cropper} this
   */
  replace: function(e) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
    return !this.disabled && e && (this.isImg && (this.element.src = e), n ? (this.url = e, this.image.src = e, this.ready && (this.viewBoxImage.src = e, ut(this.previews, function(r) {
      r.getElementsByTagName("img")[0].src = e;
    }))) : (this.isImg && (this.replaced = !0), this.options.data = null, this.uncreate(), this.load(e))), this;
  },
  // Enable (unfreeze) the cropper
  enable: function() {
    return this.ready && this.disabled && (this.disabled = !1, te(this.cropper, wc)), this;
  },
  // Disable (freeze) the cropper
  disable: function() {
    return this.ready && !this.disabled && (this.disabled = !0, gt(this.cropper, wc)), this;
  },
  /**
   * Destroy the cropper and remove the instance from the image
   * @returns {Cropper} this
   */
  destroy: function() {
    var e = this.element;
    return e[tt] ? (e[tt] = void 0, this.isImg && this.replaced && (e.src = this.originalUrl), this.uncreate(), this) : this;
  },
  /**
   * Move the canvas with relative offsets
   * @param {number} offsetX - The relative offset distance on the x-axis.
   * @param {number} [offsetY=offsetX] - The relative offset distance on the y-axis.
   * @returns {Cropper} this
   */
  move: function(e) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = this.canvasData, o = r.left, i = r.top;
    return this.moveTo(Si(e) ? e : o + Number(e), Si(n) ? n : i + Number(n));
  },
  /**
   * Move the canvas to an absolute point
   * @param {number} x - The x-axis coordinate.
   * @param {number} [y=x] - The y-axis coordinate.
   * @returns {Cropper} this
   */
  moveTo: function(e) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = this.canvasData, o = !1;
    return e = Number(e), n = Number(n), this.ready && !this.disabled && this.options.movable && (F(e) && (r.left = e, o = !0), F(n) && (r.top = n, o = !0), o && this.renderCanvas(!0)), this;
  },
  /**
   * Zoom the canvas with a relative ratio
   * @param {number} ratio - The target ratio.
   * @param {Event} _originalEvent - The original event if any.
   * @returns {Cropper} this
   */
  zoom: function(e, n) {
    var r = this.canvasData;
    return e = Number(e), e < 0 ? e = 1 / (1 - e) : e = 1 + e, this.zoomTo(r.width * e / r.naturalWidth, null, n);
  },
  /**
   * Zoom the canvas to an absolute ratio
   * @param {number} ratio - The target ratio.
   * @param {Object} pivot - The zoom pivot point coordinate.
   * @param {Event} _originalEvent - The original event if any.
   * @returns {Cropper} this
   */
  zoomTo: function(e, n, r) {
    var o = this.options, i = this.canvasData, l = i.width, c = i.height, f = i.naturalWidth, u = i.naturalHeight;
    if (e = Number(e), e >= 0 && this.ready && !this.disabled && o.zoomable) {
      var p = f * e, h = u * e;
      if (zn(this.element, oa, {
        ratio: e,
        oldRatio: l / f,
        originalEvent: r
      }) === !1)
        return this;
      if (r) {
        var m = this.pointers, b = cd(this.cropper), v = m && Object.keys(m).length ? SC(m) : {
          pageX: r.pageX,
          pageY: r.pageY
        };
        i.left -= (p - l) * ((v.pageX - b.left - i.left) / l), i.top -= (h - c) * ((v.pageY - b.top - i.top) / c);
      } else
        Mn(n) && F(n.x) && F(n.y) ? (i.left -= (p - l) * ((n.x - i.left) / l), i.top -= (h - c) * ((n.y - i.top) / c)) : (i.left -= (p - l) / 2, i.top -= (h - c) / 2);
      i.width = p, i.height = h, this.renderCanvas(!0);
    }
    return this;
  },
  /**
   * Rotate the canvas with a relative degree
   * @param {number} degree - The rotate degree.
   * @returns {Cropper} this
   */
  rotate: function(e) {
    return this.rotateTo((this.imageData.rotate || 0) + Number(e));
  },
  /**
   * Rotate the canvas to an absolute degree
   * @param {number} degree - The rotate degree.
   * @returns {Cropper} this
   */
  rotateTo: function(e) {
    return e = Number(e), F(e) && this.ready && !this.disabled && this.options.rotatable && (this.imageData.rotate = e % 360, this.renderCanvas(!0, !0)), this;
  },
  /**
   * Scale the image on the x-axis.
   * @param {number} scaleX - The scale ratio on the x-axis.
   * @returns {Cropper} this
   */
  scaleX: function(e) {
    var n = this.imageData.scaleY;
    return this.scale(e, F(n) ? n : 1);
  },
  /**
   * Scale the image on the y-axis.
   * @param {number} scaleY - The scale ratio on the y-axis.
   * @returns {Cropper} this
   */
  scaleY: function(e) {
    var n = this.imageData.scaleX;
    return this.scale(F(n) ? n : 1, e);
  },
  /**
   * Scale the image
   * @param {number} scaleX - The scale ratio on the x-axis.
   * @param {number} [scaleY=scaleX] - The scale ratio on the y-axis.
   * @returns {Cropper} this
   */
  scale: function(e) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = this.imageData, o = !1;
    return e = Number(e), n = Number(n), this.ready && !this.disabled && this.options.scalable && (F(e) && (r.scaleX = e, o = !0), F(n) && (r.scaleY = n, o = !0), o && this.renderCanvas(!0, !0)), this;
  },
  /**
   * Get the cropped area position and size data (base on the original image)
   * @param {boolean} [rounded=false] - Indicate if round the data values or not.
   * @returns {Object} The result cropped data.
   */
  getData: function() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, n = this.options, r = this.imageData, o = this.canvasData, i = this.cropBoxData, l;
    if (this.ready && this.cropped) {
      l = {
        x: i.left - o.left,
        y: i.top - o.top,
        width: i.width,
        height: i.height
      };
      var c = r.width / r.naturalWidth;
      if (ut(l, function(p, h) {
        l[h] = p / c;
      }), e) {
        var f = Math.round(l.y + l.height), u = Math.round(l.x + l.width);
        l.x = Math.round(l.x), l.y = Math.round(l.y), l.width = u - l.x, l.height = f - l.y;
      }
    } else
      l = {
        x: 0,
        y: 0,
        width: 0,
        height: 0
      };
    return n.rotatable && (l.rotate = r.rotate || 0), n.scalable && (l.scaleX = r.scaleX || 1, l.scaleY = r.scaleY || 1), l;
  },
  /**
   * Set the cropped area position and size with new data
   * @param {Object} data - The new data.
   * @returns {Cropper} this
   */
  setData: function(e) {
    var n = this.options, r = this.imageData, o = this.canvasData, i = {};
    if (this.ready && !this.disabled && Mn(e)) {
      var l = !1;
      n.rotatable && F(e.rotate) && e.rotate !== r.rotate && (r.rotate = e.rotate, l = !0), n.scalable && (F(e.scaleX) && e.scaleX !== r.scaleX && (r.scaleX = e.scaleX, l = !0), F(e.scaleY) && e.scaleY !== r.scaleY && (r.scaleY = e.scaleY, l = !0)), l && this.renderCanvas(!0, !0);
      var c = r.width / r.naturalWidth;
      F(e.x) && (i.left = e.x * c + o.left), F(e.y) && (i.top = e.y * c + o.top), F(e.width) && (i.width = e.width * c), F(e.height) && (i.height = e.height * c), this.setCropBoxData(i);
    }
    return this;
  },
  /**
   * Get the container size data.
   * @returns {Object} The result container data.
   */
  getContainerData: function() {
    return this.ready ? et({}, this.containerData) : {};
  },
  /**
   * Get the image position and size data.
   * @returns {Object} The result image data.
   */
  getImageData: function() {
    return this.sized ? et({}, this.imageData) : {};
  },
  /**
   * Get the canvas position and size data.
   * @returns {Object} The result canvas data.
   */
  getCanvasData: function() {
    var e = this.canvasData, n = {};
    return this.ready && ut(["left", "top", "width", "height", "naturalWidth", "naturalHeight"], function(r) {
      n[r] = e[r];
    }), n;
  },
  /**
   * Set the canvas position and size with new data.
   * @param {Object} data - The new canvas data.
   * @returns {Cropper} this
   */
  setCanvasData: function(e) {
    var n = this.canvasData, r = n.aspectRatio;
    return this.ready && !this.disabled && Mn(e) && (F(e.left) && (n.left = e.left), F(e.top) && (n.top = e.top), F(e.width) ? (n.width = e.width, n.height = e.width / r) : F(e.height) && (n.height = e.height, n.width = e.height * r), this.renderCanvas(!0)), this;
  },
  /**
   * Get the crop box position and size data.
   * @returns {Object} The result crop box data.
   */
  getCropBoxData: function() {
    var e = this.cropBoxData, n;
    return this.ready && this.cropped && (n = {
      left: e.left,
      top: e.top,
      width: e.width,
      height: e.height
    }), n || {};
  },
  /**
   * Set the crop box position and size with new data.
   * @param {Object} data - The new crop box data.
   * @returns {Cropper} this
   */
  setCropBoxData: function(e) {
    var n = this.cropBoxData, r = this.options.aspectRatio, o, i;
    return this.ready && this.cropped && !this.disabled && Mn(e) && (F(e.left) && (n.left = e.left), F(e.top) && (n.top = e.top), F(e.width) && e.width !== n.width && (o = !0, n.width = e.width), F(e.height) && e.height !== n.height && (i = !0, n.height = e.height), r && (o ? n.height = n.width / r : i && (n.width = n.height * r)), this.renderCropBox()), this;
  },
  /**
   * Get a canvas drawn the cropped image.
   * @param {Object} [options={}] - The config options.
   * @returns {HTMLCanvasElement} - The result canvas.
   */
  getCroppedCanvas: function() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
    if (!this.ready || !window.HTMLCanvasElement)
      return null;
    var n = this.canvasData, r = OC(this.image, this.imageData, n, e);
    if (!this.cropped)
      return r;
    var o = this.getData(e.rounded), i = o.x, l = o.y, c = o.width, f = o.height, u = r.width / Math.floor(n.naturalWidth);
    u !== 1 && (i *= u, l *= u, c *= u, f *= u);
    var p = c / f, h = Be({
      aspectRatio: p,
      width: e.maxWidth || 1 / 0,
      height: e.maxHeight || 1 / 0
    }), m = Be({
      aspectRatio: p,
      width: e.minWidth || 0,
      height: e.minHeight || 0
    }, "cover"), b = Be({
      aspectRatio: p,
      width: e.width || (u !== 1 ? r.width : c),
      height: e.height || (u !== 1 ? r.height : f)
    }), v = b.width, _ = b.height;
    v = Math.min(h.width, Math.max(m.width, v)), _ = Math.min(h.height, Math.max(m.height, _));
    var x = document.createElement("canvas"), $ = x.getContext("2d");
    x.width = Nn(v), x.height = Nn(_), $.fillStyle = e.fillColor || "transparent", $.fillRect(0, 0, v, _);
    var E = e.imageSmoothingEnabled, O = E === void 0 ? !0 : E, k = e.imageSmoothingQuality;
    $.imageSmoothingEnabled = O, k && ($.imageSmoothingQuality = k);
    var D = r.width, y = r.height, A = i, j = l, S, I, Y, pt, J, q;
    A <= -c || A > D ? (A = 0, S = 0, Y = 0, J = 0) : A <= 0 ? (Y = -A, A = 0, S = Math.min(D, c + A), J = S) : A <= D && (Y = 0, S = Math.min(c, D - A), J = S), S <= 0 || j <= -f || j > y ? (j = 0, I = 0, pt = 0, q = 0) : j <= 0 ? (pt = -j, j = 0, I = Math.min(y, f + j), q = I) : j <= y && (pt = 0, I = Math.min(f, y - j), q = I);
    var W = [A, j, S, I];
    if (J > 0 && q > 0) {
      var nt = v / c;
      W.push(Y * nt, pt * nt, J * nt, q * nt);
    }
    return $.drawImage.apply($, [r].concat(Zf(W.map(function(mt) {
      return Math.floor(Nn(mt));
    })))), x;
  },
  /**
   * Change the aspect ratio of the crop box.
   * @param {number} aspectRatio - The new aspect ratio.
   * @returns {Cropper} this
   */
  setAspectRatio: function(e) {
    var n = this.options;
    return !this.disabled && !Si(e) && (n.aspectRatio = Math.max(0, e) || NaN, this.ready && (this.initCropBox(), this.cropped && this.renderCropBox())), this;
  },
  /**
   * Change the drag mode.
   * @param {string} mode - The new drag mode.
   * @returns {Cropper} this
   */
  setDragMode: function(e) {
    var n = this.options, r = this.dragBox, o = this.face;
    if (this.ready && !this.disabled) {
      var i = e === Ya, l = n.movable && e === nd;
      e = i || l ? e : rd, n.dragMode = e, Dr(r, jr, e), Rn(r, Ji, i), Rn(r, Qi, l), n.cropBoxMovable || (Dr(o, jr, e), Rn(o, Ji, i), Rn(o, Qi, l));
    }
    return this;
  }
}, UC = ie.Cropper, fd = /* @__PURE__ */ function() {
  function t(e) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
    if (tC(this, t), !e || !gC.test(e.tagName))
      throw new Error("The first argument is required and must be an <img> or <canvas> element.");
    this.element = e, this.options = et({}, Oc, Mn(n) && n), this.cropped = !1, this.disabled = !1, this.pointers = {}, this.ready = !1, this.reloading = !1, this.replaced = !1, this.sized = !1, this.sizing = !1, this.init();
  }
  return eC(t, [{
    key: "init",
    value: function() {
      var n = this.element, r = n.tagName.toLowerCase(), o;
      if (!n[tt]) {
        if (n[tt] = this, r === "img") {
          if (this.isImg = !0, o = n.getAttribute("src") || "", this.originalUrl = o, !o)
            return;
          o = n.src;
        } else
          r === "canvas" && window.HTMLCanvasElement && (o = n.toDataURL());
        this.load(o);
      }
    }
  }, {
    key: "load",
    value: function(n) {
      var r = this;
      if (n) {
        this.url = n, this.imageData = {};
        var o = this.element, i = this.options;
        if (!i.rotatable && !i.scalable && (i.checkOrientation = !1), !i.checkOrientation || !window.ArrayBuffer) {
          this.clone();
          return;
        }
        if (hC.test(n)) {
          pC.test(n) ? this.read(PC(n)) : this.clone();
          return;
        }
        var l = new XMLHttpRequest(), c = this.clone.bind(this);
        this.reloading = !0, this.xhr = l, l.onabort = c, l.onerror = c, l.ontimeout = c, l.onprogress = function() {
          l.getResponseHeader("content-type") !== Tc && l.abort();
        }, l.onload = function() {
          r.read(l.response);
        }, l.onloadend = function() {
          r.reloading = !1, r.xhr = null;
        }, i.checkCrossOrigin && Dc(n) && o.crossOrigin && (n = Pc(n)), l.open("GET", n, !0), l.responseType = "arraybuffer", l.withCredentials = o.crossOrigin === "use-credentials", l.send();
      }
    }
  }, {
    key: "read",
    value: function(n) {
      var r = this.options, o = this.imageData, i = kC(n), l = 0, c = 1, f = 1;
      if (i > 1) {
        this.url = BC(n, Tc);
        var u = IC(i);
        l = u.rotate, c = u.scaleX, f = u.scaleY;
      }
      r.rotatable && (o.rotate = l), r.scalable && (o.scaleX = c, o.scaleY = f), this.clone();
    }
  }, {
    key: "clone",
    value: function() {
      var n = this.element, r = this.url, o = n.crossOrigin, i = r;
      this.options.checkCrossOrigin && Dc(r) && (o || (o = "anonymous"), i = Pc(r)), this.crossOrigin = o, this.crossOriginUrl = i;
      var l = document.createElement("img");
      o && (l.crossOrigin = o), l.src = i || r, l.alt = n.alt || "The image to crop", this.image = l, l.onload = this.start.bind(this), l.onerror = this.stop.bind(this), gt(l, yc), n.parentNode.insertBefore(l, n.nextSibling);
    }
  }, {
    key: "start",
    value: function() {
      var n = this, r = this.image;
      r.onload = null, r.onerror = null, this.sizing = !0;
      var o = ie.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(ie.navigator.userAgent), i = function(u, p) {
        et(n.imageData, {
          naturalWidth: u,
          naturalHeight: p,
          aspectRatio: u / p
        }), n.initialImageData = et({}, n.imageData), n.sizing = !1, n.sized = !0, n.build();
      };
      if (r.naturalWidth && !o) {
        i(r.naturalWidth, r.naturalHeight);
        return;
      }
      var l = document.createElement("img"), c = document.body || document.documentElement;
      this.sizingImage = l, l.onload = function() {
        i(l.width, l.height), o || c.removeChild(l);
      }, l.src = r.src, o || (l.style.cssText = "left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;", c.appendChild(l));
    }
  }, {
    key: "stop",
    value: function() {
      var n = this.image;
      n.onload = null, n.onerror = null, n.parentNode.removeChild(n), this.image = null;
    }
  }, {
    key: "build",
    value: function() {
      if (!(!this.sized || this.ready)) {
        var n = this.element, r = this.options, o = this.image, i = n.parentNode, l = document.createElement("div");
        l.innerHTML = mC;
        var c = l.querySelector(".".concat(tt, "-container")), f = c.querySelector(".".concat(tt, "-canvas")), u = c.querySelector(".".concat(tt, "-drag-box")), p = c.querySelector(".".concat(tt, "-crop-box")), h = p.querySelector(".".concat(tt, "-face"));
        this.container = i, this.cropper = c, this.canvas = f, this.dragBox = u, this.cropBox = p, this.viewBox = c.querySelector(".".concat(tt, "-view-box")), this.face = h, f.appendChild(o), gt(n, Dt), i.insertBefore(c, n.nextSibling), te(o, yc), this.initPreview(), this.bind(), r.initialAspectRatio = Math.max(0, r.initialAspectRatio) || NaN, r.aspectRatio = Math.max(0, r.aspectRatio) || NaN, r.viewMode = Math.max(0, Math.min(3, Math.round(r.viewMode))) || 0, gt(p, Dt), r.guides || gt(p.getElementsByClassName("".concat(tt, "-dashed")), Dt), r.center || gt(p.getElementsByClassName("".concat(tt, "-center")), Dt), r.background && gt(c, "".concat(tt, "-bg")), r.highlight || gt(h, lC), r.cropBoxMovable && (gt(h, Qi), Dr(h, jr, Xa)), r.cropBoxResizable || (gt(p.getElementsByClassName("".concat(tt, "-line")), Dt), gt(p.getElementsByClassName("".concat(tt, "-point")), Dt)), this.render(), this.ready = !0, this.setDragMode(r.dragMode), r.autoCrop && this.crop(), this.setData(r.data), jt(r.ready) && Ft(n, Ec, r.ready, {
          once: !0
        }), zn(n, Ec);
      }
    }
  }, {
    key: "unbuild",
    value: function() {
      if (this.ready) {
        this.ready = !1, this.unbind(), this.resetPreview();
        var n = this.cropper.parentNode;
        n && n.removeChild(this.cropper), te(this.element, Dt);
      }
    }
  }, {
    key: "uncreate",
    value: function() {
      this.ready ? (this.unbuild(), this.ready = !1, this.cropped = !1) : this.sizing ? (this.sizingImage.onload = null, this.sizing = !1, this.sized = !1) : this.reloading ? (this.xhr.onabort = null, this.xhr.abort()) : this.image && this.stop();
    }
    /**
     * Get the no conflict cropper class.
     * @returns {Cropper} The cropper class.
     */
  }], [{
    key: "noConflict",
    value: function() {
      return window.Cropper = UC, t;
    }
    /**
     * Change the default options.
     * @param {Object} options - The new default options.
     */
  }, {
    key: "setDefaults",
    value: function(n) {
      et(Oc, Mn(n) && n);
    }
  }]), t;
}();
et(fd.prototype, MC, RC, LC, FC, NC, zC);
var dd = !1;
Ro.util.warn;
var WC = typeof global == "object" && global && global.Object === Object && global;
const hd = WC;
var HC = typeof self == "object" && self && self.Object === Object && self, VC = hd || HC || Function("return this")();
const ue = VC;
var XC = ue.Symbol;
const ae = XC;
var pd = Object.prototype, YC = pd.hasOwnProperty, qC = pd.toString, lr = ae ? ae.toStringTag : void 0;
function GC(t) {
  var e = YC.call(t, lr), n = t[lr];
  try {
    t[lr] = void 0;
    var r = !0;
  } catch (i) {
  }
  var o = qC.call(t);
  return r && (e ? t[lr] = n : delete t[lr]), o;
}
var KC = Object.prototype, ZC = KC.toString;
function JC(t) {
  return ZC.call(t);
}
var QC = "[object Null]", tE = "[object Undefined]", Bc = ae ? ae.toStringTag : void 0;
function pn(t) {
  return t == null ? t === void 0 ? tE : QC : Bc && Bc in Object(t) ? GC(t) : JC(t);
}
function se(t) {
  return t != null && typeof t == "object";
}
var eE = "[object Symbol]";
function Ga(t) {
  return typeof t == "symbol" || se(t) && pn(t) == eE;
}
function nE(t, e) {
  for (var n = -1, r = t == null ? 0 : t.length, o = Array(r); ++n < r; )
    o[n] = e(t[n], n, t);
  return o;
}
var rE = Array.isArray;
const Ut = rE;
var oE = 1 / 0, kc = ae ? ae.prototype : void 0, Ic = kc ? kc.toString : void 0;
function gd(t) {
  if (typeof t == "string")
    return t;
  if (Ut(t))
    return nE(t, gd) + "";
  if (Ga(t))
    return Ic ? Ic.call(t) : "";
  var e = t + "";
  return e == "0" && 1 / t == -oE ? "-0" : e;
}
function fe(t) {
  var e = typeof t;
  return t != null && (e == "object" || e == "function");
}
function Ka(t) {
  return t;
}
var iE = "[object AsyncFunction]", aE = "[object Function]", sE = "[object GeneratorFunction]", lE = "[object Proxy]";
function Za(t) {
  if (!fe(t))
    return !1;
  var e = pn(t);
  return e == aE || e == sE || e == iE || e == lE;
}
var cE = ue["__core-js_shared__"];
const Oi = cE;
var Mc = function() {
  var t = /[^.]+$/.exec(Oi && Oi.keys && Oi.keys.IE_PROTO || "");
  return t ? "Symbol(src)_1." + t : "";
}();
function uE(t) {
  return !!Mc && Mc in t;
}
var fE = Function.prototype, dE = fE.toString;
function gn(t) {
  if (t != null) {
    try {
      return dE.call(t);
    } catch (e) {
    }
    try {
      return t + "";
    } catch (e) {
    }
  }
  return "";
}
var hE = /[\\^$.*+?()[\]{}|]/g, pE = /^\[object .+?Constructor\]$/, gE = Function.prototype, mE = Object.prototype, vE = gE.toString, bE = mE.hasOwnProperty, wE = RegExp(
  "^" + vE.call(bE).replace(hE, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function yE(t) {
  if (!fe(t) || uE(t))
    return !1;
  var e = Za(t) ? wE : pE;
  return e.test(gn(t));
}
function _E(t, e) {
  return t == null ? void 0 : t[e];
}
function mn(t, e) {
  var n = _E(t, e);
  return yE(n) ? n : void 0;
}
var xE = mn(ue, "WeakMap");
const aa = xE;
var Rc = Object.create, $E = /* @__PURE__ */ function() {
  function t() {
  }
  return function(e) {
    if (!fe(e))
      return {};
    if (Rc)
      return Rc(e);
    t.prototype = e;
    var n = new t();
    return t.prototype = void 0, n;
  };
}();
const CE = $E;
function EE(t, e, n) {
  switch (n.length) {
    case 0:
      return t.call(e);
    case 1:
      return t.call(e, n[0]);
    case 2:
      return t.call(e, n[0], n[1]);
    case 3:
      return t.call(e, n[0], n[1], n[2]);
  }
  return t.apply(e, n);
}
function md(t, e) {
  var n = -1, r = t.length;
  for (e || (e = Array(r)); ++n < r; )
    e[n] = t[n];
  return e;
}
var AE = 800, SE = 16, TE = Date.now;
function OE(t) {
  var e = 0, n = 0;
  return function() {
    var r = TE(), o = SE - (r - n);
    if (n = r, o > 0) {
      if (++e >= AE)
        return arguments[0];
    } else
      e = 0;
    return t.apply(void 0, arguments);
  };
}
function jE(t) {
  return function() {
    return t;
  };
}
var DE = function() {
  try {
    var t = mn(Object, "defineProperty");
    return t({}, "", {}), t;
  } catch (e) {
  }
}();
const jo = DE;
var PE = jo ? function(t, e) {
  return jo(t, "toString", {
    configurable: !0,
    enumerable: !1,
    value: jE(e),
    writable: !0
  });
} : Ka;
const BE = PE;
var kE = OE(BE);
const IE = kE;
function ME(t, e) {
  for (var n = -1, r = t == null ? 0 : t.length; ++n < r && e(t[n], n, t) !== !1; )
    ;
  return t;
}
var RE = 9007199254740991, LE = /^(?:0|[1-9]\d*)$/;
function Ja(t, e) {
  var n = typeof t;
  return e = e != null ? e : RE, !!e && (n == "number" || n != "symbol" && LE.test(t)) && t > -1 && t % 1 == 0 && t < e;
}
function Go(t, e, n) {
  e == "__proto__" && jo ? jo(t, e, {
    configurable: !0,
    enumerable: !0,
    value: n,
    writable: !0
  }) : t[e] = n;
}
function zr(t, e) {
  return t === e || t !== t && e !== e;
}
var FE = Object.prototype, NE = FE.hasOwnProperty;
function vd(t, e, n) {
  var r = t[e];
  (!(NE.call(t, e) && zr(r, n)) || n === void 0 && !(e in t)) && Go(t, e, n);
}
function Gn(t, e, n, r) {
  var o = !n;
  n || (n = {});
  for (var i = -1, l = e.length; ++i < l; ) {
    var c = e[i], f = r ? r(n[c], t[c], c, n, t) : void 0;
    f === void 0 && (f = t[c]), o ? Go(n, c, f) : vd(n, c, f);
  }
  return n;
}
var Lc = Math.max;
function zE(t, e, n) {
  return e = Lc(e === void 0 ? t.length - 1 : e, 0), function() {
    for (var r = arguments, o = -1, i = Lc(r.length - e, 0), l = Array(i); ++o < i; )
      l[o] = r[e + o];
    o = -1;
    for (var c = Array(e + 1); ++o < e; )
      c[o] = r[o];
    return c[e] = n(l), EE(t, this, c);
  };
}
function UE(t, e) {
  return IE(zE(t, e, Ka), t + "");
}
var WE = 9007199254740991;
function Qa(t) {
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= WE;
}
function Ko(t) {
  return t != null && Qa(t.length) && !Za(t);
}
function HE(t, e, n) {
  if (!fe(n))
    return !1;
  var r = typeof e;
  return (r == "number" ? Ko(n) && Ja(e, n.length) : r == "string" && e in n) ? zr(n[e], t) : !1;
}
function bd(t) {
  return UE(function(e, n) {
    var r = -1, o = n.length, i = o > 1 ? n[o - 1] : void 0, l = o > 2 ? n[2] : void 0;
    for (i = t.length > 3 && typeof i == "function" ? (o--, i) : void 0, l && HE(n[0], n[1], l) && (i = o < 3 ? void 0 : i, o = 1), e = Object(e); ++r < o; ) {
      var c = n[r];
      c && t(e, c, r, i);
    }
    return e;
  });
}
var VE = Object.prototype;
function ts(t) {
  var e = t && t.constructor, n = typeof e == "function" && e.prototype || VE;
  return t === n;
}
function XE(t, e) {
  for (var n = -1, r = Array(t); ++n < t; )
    r[n] = e(n);
  return r;
}
var YE = "[object Arguments]";
function Fc(t) {
  return se(t) && pn(t) == YE;
}
var wd = Object.prototype, qE = wd.hasOwnProperty, GE = wd.propertyIsEnumerable, KE = Fc(/* @__PURE__ */ function() {
  return arguments;
}()) ? Fc : function(t) {
  return se(t) && qE.call(t, "callee") && !GE.call(t, "callee");
};
const Do = KE;
function ZE() {
  return !1;
}
var yd = typeof exports == "object" && exports && !exports.nodeType && exports, Nc = yd && typeof module == "object" && module && !module.nodeType && module, JE = Nc && Nc.exports === yd, zc = JE ? ue.Buffer : void 0, QE = zc ? zc.isBuffer : void 0, tA = QE || ZE;
const Pr = tA;
var eA = "[object Arguments]", nA = "[object Array]", rA = "[object Boolean]", oA = "[object Date]", iA = "[object Error]", aA = "[object Function]", sA = "[object Map]", lA = "[object Number]", cA = "[object Object]", uA = "[object RegExp]", fA = "[object Set]", dA = "[object String]", hA = "[object WeakMap]", pA = "[object ArrayBuffer]", gA = "[object DataView]", mA = "[object Float32Array]", vA = "[object Float64Array]", bA = "[object Int8Array]", wA = "[object Int16Array]", yA = "[object Int32Array]", _A = "[object Uint8Array]", xA = "[object Uint8ClampedArray]", $A = "[object Uint16Array]", CA = "[object Uint32Array]", Z = {};
Z[mA] = Z[vA] = Z[bA] = Z[wA] = Z[yA] = Z[_A] = Z[xA] = Z[$A] = Z[CA] = !0;
Z[eA] = Z[nA] = Z[pA] = Z[rA] = Z[gA] = Z[oA] = Z[iA] = Z[aA] = Z[sA] = Z[lA] = Z[cA] = Z[uA] = Z[fA] = Z[dA] = Z[hA] = !1;
function EA(t) {
  return se(t) && Qa(t.length) && !!Z[pn(t)];
}
function es(t) {
  return function(e) {
    return t(e);
  };
}
var _d = typeof exports == "object" && exports && !exports.nodeType && exports, $r = _d && typeof module == "object" && module && !module.nodeType && module, AA = $r && $r.exports === _d, ji = AA && hd.process, SA = function() {
  try {
    var t = $r && $r.require && $r.require("util").types;
    return t || ji && ji.binding && ji.binding("util");
  } catch (e) {
  }
}();
const Vn = SA;
var Uc = Vn && Vn.isTypedArray, TA = Uc ? es(Uc) : EA;
const ns = TA;
var OA = Object.prototype, jA = OA.hasOwnProperty;
function xd(t, e) {
  var n = Ut(t), r = !n && Do(t), o = !n && !r && Pr(t), i = !n && !r && !o && ns(t), l = n || r || o || i, c = l ? XE(t.length, String) : [], f = c.length;
  for (var u in t)
    (e || jA.call(t, u)) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
    (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
    o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
    i && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
    Ja(u, f))) && c.push(u);
  return c;
}
function $d(t, e) {
  return function(n) {
    return t(e(n));
  };
}
var DA = $d(Object.keys, Object);
const PA = DA;
var BA = Object.prototype, kA = BA.hasOwnProperty;
function IA(t) {
  if (!ts(t))
    return PA(t);
  var e = [];
  for (var n in Object(t))
    kA.call(t, n) && n != "constructor" && e.push(n);
  return e;
}
function Ur(t) {
  return Ko(t) ? xd(t) : IA(t);
}
function MA(t) {
  var e = [];
  if (t != null)
    for (var n in Object(t))
      e.push(n);
  return e;
}
var RA = Object.prototype, LA = RA.hasOwnProperty;
function FA(t) {
  if (!fe(t))
    return MA(t);
  var e = ts(t), n = [];
  for (var r in t)
    r == "constructor" && (e || !LA.call(t, r)) || n.push(r);
  return n;
}
function Kn(t) {
  return Ko(t) ? xd(t, !0) : FA(t);
}
var NA = bd(function(t, e, n, r) {
  Gn(e, Kn(e), t, r);
});
const zA = NA;
var UA = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, WA = /^\w*$/;
function rs(t, e) {
  if (Ut(t))
    return !1;
  var n = typeof t;
  return n == "number" || n == "symbol" || n == "boolean" || t == null || Ga(t) ? !0 : WA.test(t) || !UA.test(t) || e != null && t in Object(e);
}
var HA = mn(Object, "create");
const Br = HA;
function VA() {
  this.__data__ = Br ? Br(null) : {}, this.size = 0;
}
function XA(t) {
  var e = this.has(t) && delete this.__data__[t];
  return this.size -= e ? 1 : 0, e;
}
var YA = "__lodash_hash_undefined__", qA = Object.prototype, GA = qA.hasOwnProperty;
function KA(t) {
  var e = this.__data__;
  if (Br) {
    var n = e[t];
    return n === YA ? void 0 : n;
  }
  return GA.call(e, t) ? e[t] : void 0;
}
var ZA = Object.prototype, JA = ZA.hasOwnProperty;
function QA(t) {
  var e = this.__data__;
  return Br ? e[t] !== void 0 : JA.call(e, t);
}
var tS = "__lodash_hash_undefined__";
function eS(t, e) {
  var n = this.__data__;
  return this.size += this.has(t) ? 0 : 1, n[t] = Br && e === void 0 ? tS : e, this;
}
function on(t) {
  var e = -1, n = t == null ? 0 : t.length;
  for (this.clear(); ++e < n; ) {
    var r = t[e];
    this.set(r[0], r[1]);
  }
}
on.prototype.clear = VA;
on.prototype.delete = XA;
on.prototype.get = KA;
on.prototype.has = QA;
on.prototype.set = eS;
function nS() {
  this.__data__ = [], this.size = 0;
}
function Zo(t, e) {
  for (var n = t.length; n--; )
    if (zr(t[n][0], e))
      return n;
  return -1;
}
var rS = Array.prototype, oS = rS.splice;
function iS(t) {
  var e = this.__data__, n = Zo(e, t);
  if (n < 0)
    return !1;
  var r = e.length - 1;
  return n == r ? e.pop() : oS.call(e, n, 1), --this.size, !0;
}
function aS(t) {
  var e = this.__data__, n = Zo(e, t);
  return n < 0 ? void 0 : e[n][1];
}
function sS(t) {
  return Zo(this.__data__, t) > -1;
}
function lS(t, e) {
  var n = this.__data__, r = Zo(n, t);
  return r < 0 ? (++this.size, n.push([t, e])) : n[r][1] = e, this;
}
function xe(t) {
  var e = -1, n = t == null ? 0 : t.length;
  for (this.clear(); ++e < n; ) {
    var r = t[e];
    this.set(r[0], r[1]);
  }
}
xe.prototype.clear = nS;
xe.prototype.delete = iS;
xe.prototype.get = aS;
xe.prototype.has = sS;
xe.prototype.set = lS;
var cS = mn(ue, "Map");
const kr = cS;
function uS() {
  this.size = 0, this.__data__ = {
    hash: new on(),
    map: new (kr || xe)(),
    string: new on()
  };
}
function fS(t) {
  var e = typeof t;
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
}
function Jo(t, e) {
  var n = t.__data__;
  return fS(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
}
function dS(t) {
  var e = Jo(this, t).delete(t);
  return this.size -= e ? 1 : 0, e;
}
function hS(t) {
  return Jo(this, t).get(t);
}
function pS(t) {
  return Jo(this, t).has(t);
}
function gS(t, e) {
  var n = Jo(this, t), r = n.size;
  return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
}
function $e(t) {
  var e = -1, n = t == null ? 0 : t.length;
  for (this.clear(); ++e < n; ) {
    var r = t[e];
    this.set(r[0], r[1]);
  }
}
$e.prototype.clear = uS;
$e.prototype.delete = dS;
$e.prototype.get = hS;
$e.prototype.has = pS;
$e.prototype.set = gS;
var mS = "Expected a function";
function os(t, e) {
  if (typeof t != "function" || e != null && typeof e != "function")
    throw new TypeError(mS);
  var n = function() {
    var r = arguments, o = e ? e.apply(this, r) : r[0], i = n.cache;
    if (i.has(o))
      return i.get(o);
    var l = t.apply(this, r);
    return n.cache = i.set(o, l) || i, l;
  };
  return n.cache = new (os.Cache || $e)(), n;
}
os.Cache = $e;
var vS = 500;
function bS(t) {
  var e = os(t, function(r) {
    return n.size === vS && n.clear(), r;
  }), n = e.cache;
  return e;
}
var wS = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, yS = /\\(\\)?/g, _S = bS(function(t) {
  var e = [];
  return t.charCodeAt(0) === 46 && e.push(""), t.replace(wS, function(n, r, o, i) {
    e.push(o ? i.replace(yS, "$1") : r || n);
  }), e;
});
const xS = _S;
function $S(t) {
  return t == null ? "" : gd(t);
}
function Cd(t, e) {
  return Ut(t) ? t : rs(t, e) ? [t] : xS($S(t));
}
var CS = 1 / 0;
function Qo(t) {
  if (typeof t == "string" || Ga(t))
    return t;
  var e = t + "";
  return e == "0" && 1 / t == -CS ? "-0" : e;
}
function Ed(t, e) {
  e = Cd(e, t);
  for (var n = 0, r = e.length; t != null && n < r; )
    t = t[Qo(e[n++])];
  return n && n == r ? t : void 0;
}
function ES(t, e, n) {
  var r = t == null ? void 0 : Ed(t, e);
  return r === void 0 ? n : r;
}
function Ad(t, e) {
  for (var n = -1, r = e.length, o = t.length; ++n < r; )
    t[o + n] = e[n];
  return t;
}
var AS = $d(Object.getPrototypeOf, Object);
const is = AS;
var SS = "[object Object]", TS = Function.prototype, OS = Object.prototype, Sd = TS.toString, jS = OS.hasOwnProperty, DS = Sd.call(Object);
function Td(t) {
  if (!se(t) || pn(t) != SS)
    return !1;
  var e = is(t);
  if (e === null)
    return !0;
  var n = jS.call(e, "constructor") && e.constructor;
  return typeof n == "function" && n instanceof n && Sd.call(n) == DS;
}
function PS() {
  this.__data__ = new xe(), this.size = 0;
}
function BS(t) {
  var e = this.__data__, n = e.delete(t);
  return this.size = e.size, n;
}
function kS(t) {
  return this.__data__.get(t);
}
function IS(t) {
  return this.__data__.has(t);
}
var MS = 200;
function RS(t, e) {
  var n = this.__data__;
  if (n instanceof xe) {
    var r = n.__data__;
    if (!kr || r.length < MS - 1)
      return r.push([t, e]), this.size = ++n.size, this;
    n = this.__data__ = new $e(r);
  }
  return n.set(t, e), this.size = n.size, this;
}
function qt(t) {
  var e = this.__data__ = new xe(t);
  this.size = e.size;
}
qt.prototype.clear = PS;
qt.prototype.delete = BS;
qt.prototype.get = kS;
qt.prototype.has = IS;
qt.prototype.set = RS;
function LS(t, e) {
  return t && Gn(e, Ur(e), t);
}
function FS(t, e) {
  return t && Gn(e, Kn(e), t);
}
var Od = typeof exports == "object" && exports && !exports.nodeType && exports, Wc = Od && typeof module == "object" && module && !module.nodeType && module, NS = Wc && Wc.exports === Od, Hc = NS ? ue.Buffer : void 0, Vc = Hc ? Hc.allocUnsafe : void 0;
function jd(t, e) {
  if (e)
    return t.slice();
  var n = t.length, r = Vc ? Vc(n) : new t.constructor(n);
  return t.copy(r), r;
}
function zS(t, e) {
  for (var n = -1, r = t == null ? 0 : t.length, o = 0, i = []; ++n < r; ) {
    var l = t[n];
    e(l, n, t) && (i[o++] = l);
  }
  return i;
}
function Dd() {
  return [];
}
var US = Object.prototype, WS = US.propertyIsEnumerable, Xc = Object.getOwnPropertySymbols, HS = Xc ? function(t) {
  return t == null ? [] : (t = Object(t), zS(Xc(t), function(e) {
    return WS.call(t, e);
  }));
} : Dd;
const as = HS;
function VS(t, e) {
  return Gn(t, as(t), e);
}
var XS = Object.getOwnPropertySymbols, YS = XS ? function(t) {
  for (var e = []; t; )
    Ad(e, as(t)), t = is(t);
  return e;
} : Dd;
const Pd = YS;
function qS(t, e) {
  return Gn(t, Pd(t), e);
}
function Bd(t, e, n) {
  var r = e(t);
  return Ut(t) ? r : Ad(r, n(t));
}
function sa(t) {
  return Bd(t, Ur, as);
}
function GS(t) {
  return Bd(t, Kn, Pd);
}
var KS = mn(ue, "DataView");
const la = KS;
var ZS = mn(ue, "Promise");
const ca = ZS;
var JS = mn(ue, "Set");
const ua = JS;
var Yc = "[object Map]", QS = "[object Object]", qc = "[object Promise]", Gc = "[object Set]", Kc = "[object WeakMap]", Zc = "[object DataView]", tT = gn(la), eT = gn(kr), nT = gn(ca), rT = gn(ua), oT = gn(aa), Qe = pn;
(la && Qe(new la(new ArrayBuffer(1))) != Zc || kr && Qe(new kr()) != Yc || ca && Qe(ca.resolve()) != qc || ua && Qe(new ua()) != Gc || aa && Qe(new aa()) != Kc) && (Qe = function(t) {
  var e = pn(t), n = e == QS ? t.constructor : void 0, r = n ? gn(n) : "";
  if (r)
    switch (r) {
      case tT:
        return Zc;
      case eT:
        return Yc;
      case nT:
        return qc;
      case rT:
        return Gc;
      case oT:
        return Kc;
    }
  return e;
});
const Ir = Qe;
var iT = Object.prototype, aT = iT.hasOwnProperty;
function sT(t) {
  var e = t.length, n = new t.constructor(e);
  return e && typeof t[0] == "string" && aT.call(t, "index") && (n.index = t.index, n.input = t.input), n;
}
var lT = ue.Uint8Array;
const Po = lT;
function ss(t) {
  var e = new t.constructor(t.byteLength);
  return new Po(e).set(new Po(t)), e;
}
function cT(t, e) {
  var n = e ? ss(t.buffer) : t.buffer;
  return new t.constructor(n, t.byteOffset, t.byteLength);
}
var uT = /\w*$/;
function fT(t) {
  var e = new t.constructor(t.source, uT.exec(t));
  return e.lastIndex = t.lastIndex, e;
}
var Jc = ae ? ae.prototype : void 0, Qc = Jc ? Jc.valueOf : void 0;
function dT(t) {
  return Qc ? Object(Qc.call(t)) : {};
}
function kd(t, e) {
  var n = e ? ss(t.buffer) : t.buffer;
  return new t.constructor(n, t.byteOffset, t.length);
}
var hT = "[object Boolean]", pT = "[object Date]", gT = "[object Map]", mT = "[object Number]", vT = "[object RegExp]", bT = "[object Set]", wT = "[object String]", yT = "[object Symbol]", _T = "[object ArrayBuffer]", xT = "[object DataView]", $T = "[object Float32Array]", CT = "[object Float64Array]", ET = "[object Int8Array]", AT = "[object Int16Array]", ST = "[object Int32Array]", TT = "[object Uint8Array]", OT = "[object Uint8ClampedArray]", jT = "[object Uint16Array]", DT = "[object Uint32Array]";
function PT(t, e, n) {
  var r = t.constructor;
  switch (e) {
    case _T:
      return ss(t);
    case hT:
    case pT:
      return new r(+t);
    case xT:
      return cT(t, n);
    case $T:
    case CT:
    case ET:
    case AT:
    case ST:
    case TT:
    case OT:
    case jT:
    case DT:
      return kd(t, n);
    case gT:
      return new r();
    case mT:
    case wT:
      return new r(t);
    case vT:
      return fT(t);
    case bT:
      return new r();
    case yT:
      return dT(t);
  }
}
function Id(t) {
  return typeof t.constructor == "function" && !ts(t) ? CE(is(t)) : {};
}
var BT = "[object Map]";
function kT(t) {
  return se(t) && Ir(t) == BT;
}
var tu = Vn && Vn.isMap, IT = tu ? es(tu) : kT;
const MT = IT;
var RT = "[object Set]";
function LT(t) {
  return se(t) && Ir(t) == RT;
}
var eu = Vn && Vn.isSet, FT = eu ? es(eu) : LT;
const NT = FT;
var zT = 1, UT = 2, WT = 4, Md = "[object Arguments]", HT = "[object Array]", VT = "[object Boolean]", XT = "[object Date]", YT = "[object Error]", Rd = "[object Function]", qT = "[object GeneratorFunction]", GT = "[object Map]", KT = "[object Number]", Ld = "[object Object]", ZT = "[object RegExp]", JT = "[object Set]", QT = "[object String]", tO = "[object Symbol]", eO = "[object WeakMap]", nO = "[object ArrayBuffer]", rO = "[object DataView]", oO = "[object Float32Array]", iO = "[object Float64Array]", aO = "[object Int8Array]", sO = "[object Int16Array]", lO = "[object Int32Array]", cO = "[object Uint8Array]", uO = "[object Uint8ClampedArray]", fO = "[object Uint16Array]", dO = "[object Uint32Array]", X = {};
X[Md] = X[HT] = X[nO] = X[rO] = X[VT] = X[XT] = X[oO] = X[iO] = X[aO] = X[sO] = X[lO] = X[GT] = X[KT] = X[Ld] = X[ZT] = X[JT] = X[QT] = X[tO] = X[cO] = X[uO] = X[fO] = X[dO] = !0;
X[YT] = X[Rd] = X[eO] = !1;
function go(t, e, n, r, o, i) {
  var l, c = e & zT, f = e & UT, u = e & WT;
  if (n && (l = o ? n(t, r, o, i) : n(t)), l !== void 0)
    return l;
  if (!fe(t))
    return t;
  var p = Ut(t);
  if (p) {
    if (l = sT(t), !c)
      return md(t, l);
  } else {
    var h = Ir(t), m = h == Rd || h == qT;
    if (Pr(t))
      return jd(t, c);
    if (h == Ld || h == Md || m && !o) {
      if (l = f || m ? {} : Id(t), !c)
        return f ? qS(t, FS(l, t)) : VS(t, LS(l, t));
    } else {
      if (!X[h])
        return o ? t : {};
      l = PT(t, h, c);
    }
  }
  i || (i = new qt());
  var b = i.get(t);
  if (b)
    return b;
  i.set(t, l), NT(t) ? t.forEach(function(x) {
    l.add(go(x, e, n, x, t, i));
  }) : MT(t) && t.forEach(function(x, $) {
    l.set($, go(x, e, n, $, t, i));
  });
  var v = u ? f ? GS : sa : f ? Kn : Ur, _ = p ? void 0 : v(t);
  return ME(_ || t, function(x, $) {
    _ && ($ = x, x = t[$]), vd(l, $, go(x, e, n, $, t, i));
  }), l;
}
var hO = 1, pO = 4;
function gO(t) {
  return go(t, hO | pO);
}
var mO = "__lodash_hash_undefined__";
function vO(t) {
  return this.__data__.set(t, mO), this;
}
function bO(t) {
  return this.__data__.has(t);
}
function Bo(t) {
  var e = -1, n = t == null ? 0 : t.length;
  for (this.__data__ = new $e(); ++e < n; )
    this.add(t[e]);
}
Bo.prototype.add = Bo.prototype.push = vO;
Bo.prototype.has = bO;
function wO(t, e) {
  for (var n = -1, r = t == null ? 0 : t.length; ++n < r; )
    if (e(t[n], n, t))
      return !0;
  return !1;
}
function yO(t, e) {
  return t.has(e);
}
var _O = 1, xO = 2;
function Fd(t, e, n, r, o, i) {
  var l = n & _O, c = t.length, f = e.length;
  if (c != f && !(l && f > c))
    return !1;
  var u = i.get(t), p = i.get(e);
  if (u && p)
    return u == e && p == t;
  var h = -1, m = !0, b = n & xO ? new Bo() : void 0;
  for (i.set(t, e), i.set(e, t); ++h < c; ) {
    var v = t[h], _ = e[h];
    if (r)
      var x = l ? r(_, v, h, e, t, i) : r(v, _, h, t, e, i);
    if (x !== void 0) {
      if (x)
        continue;
      m = !1;
      break;
    }
    if (b) {
      if (!wO(e, function($, E) {
        if (!yO(b, E) && (v === $ || o(v, $, n, r, i)))
          return b.push(E);
      })) {
        m = !1;
        break;
      }
    } else if (!(v === _ || o(v, _, n, r, i))) {
      m = !1;
      break;
    }
  }
  return i.delete(t), i.delete(e), m;
}
function $O(t) {
  var e = -1, n = Array(t.size);
  return t.forEach(function(r, o) {
    n[++e] = [o, r];
  }), n;
}
function CO(t) {
  var e = -1, n = Array(t.size);
  return t.forEach(function(r) {
    n[++e] = r;
  }), n;
}
var EO = 1, AO = 2, SO = "[object Boolean]", TO = "[object Date]", OO = "[object Error]", jO = "[object Map]", DO = "[object Number]", PO = "[object RegExp]", BO = "[object Set]", kO = "[object String]", IO = "[object Symbol]", MO = "[object ArrayBuffer]", RO = "[object DataView]", nu = ae ? ae.prototype : void 0, Di = nu ? nu.valueOf : void 0;
function LO(t, e, n, r, o, i, l) {
  switch (n) {
    case RO:
      if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset)
        return !1;
      t = t.buffer, e = e.buffer;
    case MO:
      return !(t.byteLength != e.byteLength || !i(new Po(t), new Po(e)));
    case SO:
    case TO:
    case DO:
      return zr(+t, +e);
    case OO:
      return t.name == e.name && t.message == e.message;
    case PO:
    case kO:
      return t == e + "";
    case jO:
      var c = $O;
    case BO:
      var f = r & EO;
      if (c || (c = CO), t.size != e.size && !f)
        return !1;
      var u = l.get(t);
      if (u)
        return u == e;
      r |= AO, l.set(t, e);
      var p = Fd(c(t), c(e), r, o, i, l);
      return l.delete(t), p;
    case IO:
      if (Di)
        return Di.call(t) == Di.call(e);
  }
  return !1;
}
var FO = 1, NO = Object.prototype, zO = NO.hasOwnProperty;
function UO(t, e, n, r, o, i) {
  var l = n & FO, c = sa(t), f = c.length, u = sa(e), p = u.length;
  if (f != p && !l)
    return !1;
  for (var h = f; h--; ) {
    var m = c[h];
    if (!(l ? m in e : zO.call(e, m)))
      return !1;
  }
  var b = i.get(t), v = i.get(e);
  if (b && v)
    return b == e && v == t;
  var _ = !0;
  i.set(t, e), i.set(e, t);
  for (var x = l; ++h < f; ) {
    m = c[h];
    var $ = t[m], E = e[m];
    if (r)
      var O = l ? r(E, $, m, e, t, i) : r($, E, m, t, e, i);
    if (!(O === void 0 ? $ === E || o($, E, n, r, i) : O)) {
      _ = !1;
      break;
    }
    x || (x = m == "constructor");
  }
  if (_ && !x) {
    var k = t.constructor, D = e.constructor;
    k != D && "constructor" in t && "constructor" in e && !(typeof k == "function" && k instanceof k && typeof D == "function" && D instanceof D) && (_ = !1);
  }
  return i.delete(t), i.delete(e), _;
}
var WO = 1, ru = "[object Arguments]", ou = "[object Array]", ro = "[object Object]", HO = Object.prototype, iu = HO.hasOwnProperty;
function VO(t, e, n, r, o, i) {
  var l = Ut(t), c = Ut(e), f = l ? ou : Ir(t), u = c ? ou : Ir(e);
  f = f == ru ? ro : f, u = u == ru ? ro : u;
  var p = f == ro, h = u == ro, m = f == u;
  if (m && Pr(t)) {
    if (!Pr(e))
      return !1;
    l = !0, p = !1;
  }
  if (m && !p)
    return i || (i = new qt()), l || ns(t) ? Fd(t, e, n, r, o, i) : LO(t, e, f, n, r, o, i);
  if (!(n & WO)) {
    var b = p && iu.call(t, "__wrapped__"), v = h && iu.call(e, "__wrapped__");
    if (b || v) {
      var _ = b ? t.value() : t, x = v ? e.value() : e;
      return i || (i = new qt()), o(_, x, n, r, i);
    }
  }
  return m ? (i || (i = new qt()), UO(t, e, n, r, o, i)) : !1;
}
function ls(t, e, n, r, o) {
  return t === e ? !0 : t == null || e == null || !se(t) && !se(e) ? t !== t && e !== e : VO(t, e, n, r, ls, o);
}
var XO = 1, YO = 2;
function qO(t, e, n, r) {
  var o = n.length, i = o, l = !r;
  if (t == null)
    return !i;
  for (t = Object(t); o--; ) {
    var c = n[o];
    if (l && c[2] ? c[1] !== t[c[0]] : !(c[0] in t))
      return !1;
  }
  for (; ++o < i; ) {
    c = n[o];
    var f = c[0], u = t[f], p = c[1];
    if (l && c[2]) {
      if (u === void 0 && !(f in t))
        return !1;
    } else {
      var h = new qt();
      if (r)
        var m = r(u, p, f, t, e, h);
      if (!(m === void 0 ? ls(p, u, XO | YO, r, h) : m))
        return !1;
    }
  }
  return !0;
}
function Nd(t) {
  return t === t && !fe(t);
}
function GO(t) {
  for (var e = Ur(t), n = e.length; n--; ) {
    var r = e[n], o = t[r];
    e[n] = [r, o, Nd(o)];
  }
  return e;
}
function zd(t, e) {
  return function(n) {
    return n == null ? !1 : n[t] === e && (e !== void 0 || t in Object(n));
  };
}
function KO(t) {
  var e = GO(t);
  return e.length == 1 && e[0][2] ? zd(e[0][0], e[0][1]) : function(n) {
    return n === t || qO(n, t, e);
  };
}
function ZO(t, e) {
  return t != null && e in Object(t);
}
function JO(t, e, n) {
  e = Cd(e, t);
  for (var r = -1, o = e.length, i = !1; ++r < o; ) {
    var l = Qo(e[r]);
    if (!(i = t != null && n(t, l)))
      break;
    t = t[l];
  }
  return i || ++r != o ? i : (o = t == null ? 0 : t.length, !!o && Qa(o) && Ja(l, o) && (Ut(t) || Do(t)));
}
function QO(t, e) {
  return t != null && JO(t, e, ZO);
}
var tj = 1, ej = 2;
function nj(t, e) {
  return rs(t) && Nd(e) ? zd(Qo(t), e) : function(n) {
    var r = ES(n, t);
    return r === void 0 && r === e ? QO(n, t) : ls(e, r, tj | ej);
  };
}
function rj(t) {
  return function(e) {
    return e == null ? void 0 : e[t];
  };
}
function oj(t) {
  return function(e) {
    return Ed(e, t);
  };
}
function ij(t) {
  return rs(t) ? rj(Qo(t)) : oj(t);
}
function aj(t) {
  return typeof t == "function" ? t : t == null ? Ka : typeof t == "object" ? Ut(t) ? nj(t[0], t[1]) : KO(t) : ij(t);
}
function sj(t) {
  return function(e, n, r) {
    for (var o = -1, i = Object(e), l = r(e), c = l.length; c--; ) {
      var f = l[t ? c : ++o];
      if (n(i[f], f, i) === !1)
        break;
    }
    return e;
  };
}
var lj = sj();
const Ud = lj;
function cj(t, e) {
  return t && Ud(t, e, Ur);
}
function fa(t, e, n) {
  (n !== void 0 && !zr(t[e], n) || n === void 0 && !(e in t)) && Go(t, e, n);
}
function uj(t) {
  return se(t) && Ko(t);
}
function da(t, e) {
  if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
    return t[e];
}
function fj(t) {
  return Gn(t, Kn(t));
}
function dj(t, e, n, r, o, i, l) {
  var c = da(t, n), f = da(e, n), u = l.get(f);
  if (u) {
    fa(t, n, u);
    return;
  }
  var p = i ? i(c, f, n + "", t, e, l) : void 0, h = p === void 0;
  if (h) {
    var m = Ut(f), b = !m && Pr(f), v = !m && !b && ns(f);
    p = f, m || b || v ? Ut(c) ? p = c : uj(c) ? p = md(c) : b ? (h = !1, p = jd(f, !0)) : v ? (h = !1, p = kd(f, !0)) : p = [] : Td(f) || Do(f) ? (p = c, Do(c) ? p = fj(c) : (!fe(c) || Za(c)) && (p = Id(f))) : h = !1;
  }
  h && (l.set(f, p), o(p, f, r, i, l), l.delete(f)), fa(t, n, p);
}
function Wd(t, e, n, r, o) {
  t !== e && Ud(e, function(i, l) {
    if (o || (o = new qt()), fe(i))
      dj(t, e, l, n, Wd, r, o);
    else {
      var c = r ? r(da(t, l), i, l + "", t, e, o) : void 0;
      c === void 0 && (c = i), fa(t, l, c);
    }
  }, Kn);
}
var hj = bd(function(t, e, n, r) {
  Wd(t, e, n, r);
});
const pj = hj;
function gj(t, e) {
  var n = {};
  return e = aj(e), cj(t, function(r, o, i) {
    Go(n, e(r, o, i), r);
  }), n;
}
const mj = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), vj = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), bj = new RegExp("(\\d)(\\p{Ll})", "gu"), wj = new RegExp("(\\p{L})(\\d)", "gu"), yj = /[^\p{L}\d]+/giu, oo = "$1\0$2", au = "";
function _j(t, e) {
  let n = t.trim();
  n = n.replace(mj, oo).replace(vj, oo), e != null && e.separateNumbers && (n = n.replace(bj, oo).replace(wj, oo)), n = n.replace(yj, "\0");
  let r = 0, o = n.length;
  for (; n.charAt(r) === "\0"; )
    r++;
  if (r === o)
    return [];
  for (; n.charAt(o - 1) === "\0"; )
    o--;
  return n.slice(r, o).split(/\0/g);
}
function xj(t, e) {
  var f;
  const [n, r, o] = Sj(t, e), i = $j(e == null ? void 0 : e.locale), l = Cj(e == null ? void 0 : e.locale), c = e != null && e.mergeAmbiguousCharacters ? Ej(i, l) : Aj(i, l);
  return n + _j(r, e).map((u, p) => p === 0 ? i(u) : c(u, p)).join((f = e == null ? void 0 : e.delimiter) != null ? f : "") + o;
}
function $j(t) {
  return t === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(t);
}
function Cj(t) {
  return t === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(t);
}
function Ej(t, e) {
  return (n) => `${e(n[0])}${t(n.slice(1))}`;
}
function Aj(t, e) {
  return (n, r) => {
    const o = n[0];
    return (r > 0 && o >= "0" && o <= "9" ? "_" + o : e(o)) + t(n.slice(1));
  };
}
function Sj(t, e) {
  var l, c;
  const n = (l = e == null ? void 0 : e.prefixCharacters) != null ? l : au, r = (c = e == null ? void 0 : e.suffixCharacters) != null ? c : au;
  let o = 0, i = t.length;
  for (; o < t.length; ) {
    const f = t.charAt(o);
    if (!n.includes(f))
      break;
    o++;
  }
  for (; i > o; ) {
    const f = i - 1, u = t.charAt(f);
    if (!r.includes(u))
      break;
    i = f;
  }
  return [
    t.slice(0, o),
    t.slice(o, i),
    t.slice(i)
  ];
}
const ha = (t) => /.+-.+/.test(t) ? xj(t) : t;
function Tj(t, e) {
  const n = /* @__PURE__ */ Object.create(null), r = t.split(",");
  for (let o = 0; o < r.length; o++)
    n[r[o]] = !0;
  return e ? (o) => !!n[o.toLowerCase()] : (o) => !!n[o];
}
const Oj = /* @__PURE__ */ Tj("String,Number,Boolean,Function,Symbol,BigInt");
function jj(t) {
  const e = t == null ? void 0 : t.toString().match(/^\s*function (\w+)/);
  return e ? e[1] : t === null ? "null" : "";
}
function Dj(t, e) {
  let n;
  const r = jj(e);
  if (Oj(r)) {
    const o = typeof t;
    n = o === r.toLowerCase(), !n && o === "object" && (n = t instanceof e);
  } else
    r === "Object" ? n = fe(t) : r === "Array" ? n = Array.isArray(t) : r === "null" ? n = t === null : n = t instanceof e;
  return {
    valid: n,
    expectedType: r
  };
}
function Pj({
  prop: t,
  type: e,
  validator: n
}) {
  if (![void 0, null].includes(t) && e) {
    let r = !1;
    const o = Array.isArray(e) ? e : [e], i = [];
    for (let l = 0; l < o.length && !r; l++) {
      const { valid: c, expectedType: f } = Dj(t, o[l]);
      i.push(f || ""), r = c;
    }
    if (!r)
      throw new TypeError(
        `Invalid prop: type check failed, expecting [${i.join(
          ", "
        )}], receiving: ${t}`
      );
  }
  if (n && !n(t))
    throw new Error(`Invalid prop: validator check failed, receiving: ${t}`);
}
function Bj(t, {
  mergeObject: e,
  mergeFunction: n
}) {
  const r = [];
  for (let i = t.length - 1; i >= 0; i--)
    r.push(t[i]);
  const o = n ? (i, l) => typeof i == "function" && typeof l == "function" ? n(l, i) : void 0 : void 0;
  return e === "deep" ? pj(...r, o) : zA(...r, o);
}
function kj(t, {
  mergeFunction: e
}) {
  return t.reduce(e, () => {
  });
}
function N(t, e = {}) {
  const {
    type: n,
    default: r,
    defaultIsDynamic: o = !1,
    required: i = !1,
    validator: l,
    camelizeObjectKeys: c = !1,
    mergeObjectApplyOnlyToDefault: f = !1,
    mergeFunctionApplyOnlyToDefault: u = !0
  } = e;
  let { mergeObject: p = "deep", mergeFunction: h = !1 } = e;
  const m = [];
  let b, v = !1, _ = !1;
  const x = ($) => {
    if ($ !== void 0) {
      Pj({ type: n, prop: $, validator: l });
      const E = Td($), O = typeof $ == "function";
      return v = E, _ = O, E ? ($ = gO($), c ? gj($, (k, D) => ha(D)) : $) : $;
    }
  };
  for (const $ of t)
    m.push(x($));
  if (!o)
    m.push(x(r));
  else if (typeof r != "function")
    throw new TypeError(
      `Invalid option: config.default should be Function when config.defaultIsDynamic enabled, receiving: ${r}`
    );
  v || (p = !1, _ || (h = !1));
  for (let $ = 0; $ < m.length; $++) {
    const E = m[$];
    if (E !== void 0) {
      $ === m.length - 1 ? b = E : p ? b = Bj(
        f ? [E, r] : m,
        {
          mergeObject: p,
          mergeFunction: h
        }
      ) : h ? b = kj(
        u ? [E, r] : m,
        {
          mergeFunction: h
        }
      ) : b = E;
      break;
    }
  }
  if (i && [void 0, null].includes(b))
    throw new Error("Missing required prop");
  return o ? N(t, er(bt({}, e), {
    default: r(b),
    defaultIsDynamic: !1
  })) : b;
}
function Ij(t, e) {
  return Object.keys(t).filter((n) => e(n)).reduce((n, r) => (n[r] = t[r], n), {});
}
function Mj(t) {
  return Ij(t, (e) => !e.startsWith("hook:"));
}
function Ln(t, e = []) {
  const n = {
    props: {},
    attrs: {},
    listeners: {},
    hooks: {},
    slots: {}
  }, r = (Array.isArray(e) ? e : Object.keys(e)).map((o) => ha(o));
  for (const o in t)
    if (o.startsWith("@")) {
      const i = o.substring(1);
      i.startsWith("hook:") ? n.hooks[i] = t[o] : n.listeners[i] = t[o];
    } else if (o.startsWith("#")) {
      const i = o.substring(1);
      i && (n.slots[i] = t[o]);
    } else {
      const i = ha(o);
      r.includes(i) ? n.props[i] = t[o] : n.attrs[o] = t[o];
    }
  return n;
}
function cs(t) {
  for (const e in t)
    t[e] = t[e].bind(this);
  return N([Mj(this.$listeners)], {
    default: t,
    mergeFunction: (e, n) => (...r) => {
      e(...r), n(...r);
    }
  });
}
function us(t) {
  return typeof t == "function" && t.name.startsWith("#");
}
function pa(t) {
  return {
    object: () => t === null || Array.isArray(t) && t.length === 0 || Nr(t) && Object.getOwnPropertyNames(t).length === 0,
    number: () => Number.isNaN(t),
    string: () => t === "",
    undefined: () => !0,
    boolean: () => t === !1,
    symbol: () => !1,
    bigint: () => !1,
    function: () => !0
  }[typeof t]();
}
function Rj(t) {
  return !pa(t);
}
function cr(t) {
  return typeof t == "object" && t !== null && !Array.isArray(t);
}
function qe(t, e) {
  if (!(t && e))
    return t;
  switch (typeof e) {
    case "string":
      return zf(t, e)[0];
    case "function":
      return e(t);
    case "symbol":
      if (Nr(t))
        return t[e];
  }
}
const Lj = (t) => {
  const { top: e, right: n, bottom: r, left: o } = t.getBoundingClientRect(), i = e >= 0 && e <= window.innerHeight && r >= 0 && r <= window.innerHeight, l = o >= 0 && o <= window.innerWidth && n >= 0 && n <= window.innerWidth;
  return i && l;
}, Fj = (t = ".el-form .el-form-item.is-error", e = window) => {
  const n = (o) => {
    o.scrollIntoView({
      behavior: "smooth",
      block: "center"
    });
  }, r = (o, i) => new Promise((l) => {
    if (o)
      for (const c of o instanceof NodeList ? Array.from(o) : [o]) {
        c.classList.add("animate__animated", i);
        const f = () => {
          c.classList.remove("animate__animated", i), c.removeEventListener("animationend", f), l();
        };
        c.addEventListener("animationend", f);
      }
  });
  setTimeout(() => {
    const o = typeof t == "string" ? document.querySelectorAll(t) : t;
    if (o.item(0))
      if (Lj(o.item(0)))
        r(o, "animate__headShake").catch((i) => {
          console.warn(i);
        });
      else {
        let i = function() {
          clearTimeout(l), l = window.setTimeout(() => {
            r(o, "animate__headShake").catch((c) => {
              console.warn(c);
            }), e.removeEventListener("scroll", i);
          }, 100);
        }, l;
        e.addEventListener("scroll", i), n(o.item(0));
      }
  }, 0);
};
function fs(t, e, n, r, o, i, l, c) {
  var f = typeof t == "function" ? t.options : t;
  e && (f.render = e, f.staticRenderFns = n, f._compiled = !0), r && (f.functional = !0), i && (f._scopeId = "data-v-" + i);
  var u;
  if (l ? (u = function(m) {
    m = m || // cached call
    this.$vnode && this.$vnode.ssrContext || // stateful
    this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !m && typeof __VUE_SSR_CONTEXT__ != "undefined" && (m = __VUE_SSR_CONTEXT__), o && o.call(this, m), m && m._registeredComponents && m._registeredComponents.add(l);
  }, f._ssrRegister = u) : o && (u = c ? function() {
    o.call(
      this,
      (f.functional ? this.parent : this).$root.$options.shadowRoot
    );
  } : o), u)
    if (f.functional) {
      f._injectStyles = u;
      var p = f.render;
      f.render = function(b, v) {
        return u.call(v), p(b, v);
      };
    } else {
      var h = f.beforeCreate;
      f.beforeCreate = h ? [].concat(h, u) : [u];
    }
  return {
    exports: t,
    options: f
  };
}
const dt = {}, su = {}, lu = {}, cu = {}, jn = {
  prop: "value",
  event: "input"
}, Nj = [
  "show",
  "readonly",
  "loading",
  "showFullscreenToggle",
  "showConfirmButton",
  "showDenyButton",
  "showResetButton",
  "showCancelButton",
  "reverseButtons"
], zj = {
  name: "KiFormDialog",
  install(t, e = {}) {
    const { props: n, attrs: r, listeners: o, slots: i } = Ln(e, this.props);
    Object.assign(dt, n), Object.assign(su, r), Object.assign(lu, o), Object.assign(cu, i), t.component(this.name, this);
  },
  props: bt({
    [jn.prop]: {},
    title: {},
    elFormProps: {},
    retrieve: {},
    confirm: {},
    deny: {},
    getContainer: {},
    confirmButtonText: {},
    resetButtonText: {},
    denyButtonText: {},
    cancelButtonText: {}
  }, Object.fromEntries(Array.from(Nj, (t) => [t, {
    type: Boolean,
    default: void 0
  }]))),
  emits: [jn.event, "update:show", "fullscreen-change"],
  data() {
    return {
      initialValue: void 0,
      initiated: !1,
      retrieving: !0,
      confirming: !1,
      denying: !1,
      closing: !1,
      scrollbar: null,
      beforeCloseIsPassed: !1,
      fullscreen: !1,
      labelWidth: void 0,
      key: 0,
      isVue3: dd
    };
  },
  computed: {
    Listeners() {
      return cs.call(this, lu);
    },
    Slots() {
      return N([this.$scopedSlots, cu]);
    },
    headerSlotName() {
      return "title";
    },
    ConfirmButtonText() {
      return N([this.confirmButtonText, dt.confirmButtonText, "OK"], {
        type: String
      });
    },
    DenyButtonText() {
      return N([this.denyButtonText, dt.denyButtonText, "No"], {
        type: String
      });
    },
    ResetButtonText() {
      return N([this.resetButtonText, dt.resetButtonText, "Reset"], {
        type: String
      });
    },
    CancelButtonText() {
      return N([this.cancelButtonText, dt.cancelButtonText, "Cancel"], {
        type: String
      });
    },
    ShowFullscreenToggle() {
      return N([this.showFullscreenToggle, dt.showFullscreenToggle, !0], {
        type: Boolean
      });
    },
    ShowConfirmButton() {
      return N([this.showConfirmButton, dt.showConfirmButton, !this.Readonly], {
        type: Boolean
      });
    },
    ShowDenyButton() {
      return N([this.showDenyButton, dt.showDenyButton, !1], {
        type: Boolean
      });
    },
    ShowResetButton() {
      return N([this.showResetButton, dt.showResetButton, !1], {
        type: Boolean
      });
    },
    ShowCancelButton() {
      return N([this.showCancelButton, dt.showCancelButton, !this.Readonly], {
        type: Boolean
      });
    },
    ReverseButtons() {
      return N([this.reverseButtons, dt.reverseButtons, !1], {
        type: Boolean
      });
    },
    ValueIsPlainObject() {
      return Nr(this[jn.prop]);
    },
    Title() {
      return N([this.title, dt.title], {
        type: String
      });
    },
    Loading() {
      return N([this.loading, dt.loading, this.retrieving], {
        type: Boolean
      });
    },
    Retrieve() {
      return N([this.retrieve, dt.retrieve], {
        type: Function
      });
    },
    Confirm() {
      return N([this.confirm, dt.confirm], {
        type: Function
      });
    },
    Deny() {
      return N([this.deny, dt.deny], {
        type: Function
      });
    },
    Readonly() {
      return N([this.readonly, dt.readonly, !1], {
        type: Boolean
      });
    },
    // 必须放在 ElDialogProps 下面
    GetContainer() {
      return N([this.getContainer, dt.getContainer, [!0, ""].includes(this.ElDialogProps.appendToBody) ? "body" : void 0], {
        type: [String, Function]
      });
    },
    ElDialogProps() {
      return N([this.$attrs, su, void 0], {
        type: Object,
        camelizeObjectKeys: !0,
        default: (t) => (this.beforeCloseIsPassed = !!t.beforeClose, t.fullscreen !== void 0 && this.show && this.toggleFullscreen([!0, ""].includes(t.fullscreen)), bt({
          closeOnClickModal: !1
        }, !this.beforeCloseIsPassed && {
          beforeClose: () => {
            this.$emit("update:show", !1);
          }
        })),
        defaultIsDynamic: !0
      });
    },
    ElFormProps() {
      return bt({
        model: this[jn.prop]
      }, N([
        this.elFormProps,
        dt.elFormProps,
        {
          disabled: this.readonly || this.confirming,
          ref: "elFormRef",
          labelWidth: this.labelWidth
          // model 不能写在这里因为会被深拷贝,将导致无法重置
          // model: this[model.prop],
        },
        void 0
      ], {
        type: Object,
        camelizeObjectKeys: !0
      }));
    }
  },
  watch: {
    show: {
      // 针对默认打开的情况 默认打开时 依然执行retrieve
      immediate: !0,
      handler(t) {
        var e;
        if (t) {
          this.retrieving = !0;
          const n = (e = this.Retrieve) == null ? void 0 : e.call(this);
          n instanceof Promise ? n.catch((r) => {
            console.error(r), this.onCancel();
          }).finally(() => {
            this.retrieving = !1;
          }) : this.retrieving = !1, this.computeLabelWidth();
        } else
          this.initiated && (this.closing = !0);
        this.GetContainer && this.$nextTick(() => {
          (typeof this.GetContainer == "function" ? this.GetContainer() : document.querySelector(this.GetContainer)).appendChild(this.$el);
        }), this.initiated = !0;
      }
    }
  },
  mounted() {
    this.initialValue = To(this[jn.prop]);
  },
  updated() {
    this.computeLabelWidth();
  },
  unmounted() {
    var t;
    this.GetContainer && ((t = this.$el) != null && t.parentNode) && this.$el.parentNode.removeChild(this.$el);
  },
  methods: {
    isGlobalSlot: us,
    toggleFullscreen(t = !this.fullscreen) {
      typeof t == "boolean" && (this.fullscreen = t, this.$nextTick(() => {
        window.dispatchEvent(new Event("resize")), this.$emit("fullscreen-change", this.fullscreen);
      }));
    },
    // fix: https://github.com/ElemeFE/element/issues?q=label+width+auto
    computeLabelWidth() {
      const { labelWidth: t, labelPosition: e } = this.ElFormProps;
      e !== "top" && [void 0, "auto"].includes(t) && this.$nextTick(() => {
        setTimeout(() => {
          var r;
          let n = 0;
          (r = this.$refs[this.ElFormProps.ref]) == null || r.$el.querySelectorAll(".el-form-item__label").forEach((o) => {
            const i = o.style.width;
            o.style.width = "revert";
            const l = Math.ceil(Number.parseFloat(window.getComputedStyle(o).width));
            l > n && (n = l), o.style.width = i;
          }), n && (this.labelWidth = `${n}px`);
        }, 0);
      });
    },
    onReset() {
      this.$refs[this.ElFormProps.ref].resetFields();
    },
    onClosed() {
      var t;
      this.$emit(jn.event, To(this.initialValue)), (t = this.$refs[this.ElFormProps.ref]) == null || t.clearValidate(), this.confirming = !1, this.denying = !1, this.closing = !1, ["", !0].includes(this.ElDialogProps.destroyOnClose) && this.key++;
    },
    onCancel() {
      this.beforeCloseIsPassed ? this.$refs.elDialogRef.beforeClose() : this.$emit("update:show", !1);
    },
    onConfirm() {
      const t = () => {
        if (typeof this.Confirm == "function") {
          const e = this.Confirm();
          e instanceof Promise ? (this.confirming = !0, e.then((n) => {
            (n == null ? void 0 : n.show) === !0 ? this.confirming = !1 : this.onCancel();
          }).catch((n) => {
            console.error(n), this.confirming = !1;
          })) : (e == null ? void 0 : e.show) !== !0 && this.onCancel();
        } else
          this.onCancel();
      };
      this.$refs[this.ElFormProps.ref] ? this.$refs[this.ElFormProps.ref].validate().then(() => {
        t();
      }).catch(() => {
        this.highlightError(void 0, this.$refs.overlayScrollbar);
      }) : t();
    },
    onDeny() {
      const t = () => {
        if (typeof this.Deny == "function") {
          const e = this.Deny();
          e instanceof Promise ? (this.denying = !0, e.then((n) => {
            (n == null ? void 0 : n.show) === !0 ? this.denying = !1 : this.onCancel();
          }).catch((n) => {
            console.error(n), this.denying = !1;
          })) : (e == null ? void 0 : e.show) !== !0 && this.onCancel();
        } else
          this.onCancel();
      };
      this.$refs[this.ElFormProps.ref] ? this.$refs[this.ElFormProps.ref].validate().then(() => {
        t();
      }).catch(() => {
        this.highlightError(void 0, this.$refs.overlayScrollbar);
      }) : t();
    },
    highlightError: Fj
  }
};
var Uj = function() {
  var e = this, n = e._self._c;
  return n("div", [n("el-dialog", e._g(e._b({ key: e.key, ref: "elDialogRef", staticClass: "ki-form-dialog", attrs: { modelValue: e.show, visible: e.show, title: e.Title, destroyOnClose: !1, appendToBody: !1, fullscreen: e.fullscreen }, on: { closed: e.onClosed }, scopedSlots: e._u([{ key: e.headerSlotName, fn: function() {
    return [e.isGlobalSlot(e.Slots[e.headerSlotName]) ? n(e.Slots[e.headerSlotName](), { tag: "component" }) : e._t(e.headerSlotName, function() {
      return [n("span", [e._v(e._s(e.Title))])];
    }), n("div", { staticStyle: { display: "flex", "align-items": "center" } }, [e.isVue3 ? [e.ShowFullscreenToggle ? n("el-icon", { class: e.fullscreen ? "el-icon-copy-document" : "el-icon-full-screen", on: { click: function(r) {
      return e.toggleFullscreen();
    } } }, [n(e.fullscreen ? "CopyDocument" : "FullScreen", { tag: "Component" })], 1) : e._e(), e.ElDialogProps.showClose !== !1 ? n("el-icon", { staticClass: "el-icon-close", on: { click: e.onCancel } }, [n("Close")], 1) : e._e()] : [e.ShowFullscreenToggle ? n("i", { class: e.fullscreen ? "el-icon-copy-document" : "el-icon-full-screen", on: { click: function(r) {
      return e.toggleFullscreen();
    } } }) : e._e(), e.ElDialogProps.showClose !== !1 ? n("i", { staticClass: "el-icon-close", on: { click: e.onCancel } }) : e._e()]], 2)];
  }, proxy: !0 }, { key: "footer", fn: function() {
    return [e.isGlobalSlot(e.Slots.footer) ? n(e.Slots.footer(), { tag: "component" }) : e._t("footer", function() {
      return [e.ReverseButtons ? [e.ShowConfirmButton ? n("el-button", { class: e.closing && "closing", attrs: { type: "primary", disabled: e.closing || e.denying, loading: e.confirming }, on: { click: e.onConfirm } }, [e._v(" " + e._s(e.ConfirmButtonText) + " ")]) : e._e(), e.ShowDenyButton ? n("el-button", { class: e.closing && "closing", attrs: { type: "danger", disabled: e.closing || e.confirming, loading: e.denying }, on: { click: e.onDeny } }, [e._v(" " + e._s(e.DenyButtonText) + " ")]) : e._e(), e.ShowResetButton && e.$refs[e.ElFormProps.ref] ? n("el-button", { attrs: { type: "info", disabled: e.closing || e.confirming || e.denying }, on: { click: e.onReset } }, [e._v(" " + e._s(e.ResetButtonText) + " ")]) : e._e(), e.ShowCancelButton ? n("el-button", { class: e.closing && "closing", attrs: { disabled: e.closing }, on: { click: e.onCancel } }, [e._v(" " + e._s(e.CancelButtonText) + " ")]) : e._e()] : [e.ShowCancelButton ? n("el-button", { class: e.closing && "closing", attrs: { disabled: e.closing }, on: { click: e.onCancel } }, [e._v(" " + e._s(e.CancelButtonText) + " ")]) : e._e(), e.ShowResetButton && e.$refs[e.ElFormProps.ref] ? n("el-button", { attrs: { type: "info", disabled: e.closing || e.confirming || e.denying }, on: { click: e.onReset } }, [e._v(" " + e._s(e.ResetButtonText) + " ")]) : e._e(), e.ShowDenyButton ? n("el-button", { class: e.closing && "closing", attrs: { type: "danger", disabled: e.closing || e.confirming, loading: e.denying }, on: { click: e.onDeny } }, [e._v(" " + e._s(e.DenyButtonText) + " ")]) : e._e(), e.ShowConfirmButton ? n("el-button", { class: e.closing && "closing", attrs: { type: "primary", disabled: e.closing || e.denying, loading: e.confirming }, on: { click: e.onConfirm } }, [e._v(" " + e._s(e.ConfirmButtonText) + " ")]) : e._e()]];
    })];
  }, proxy: !0 }], null, !0) }, "el-dialog", e.ElDialogProps, !1), e.Listeners), [n("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.Loading, expression: "Loading" }], staticStyle: { display: "flex", "flex-direction": "column", "overflow-y": "hidden" } }, [n("div", { ref: "overlayScrollbar", staticStyle: { "overflow-y": "auto", padding: "10px 40px 40px 40px", "max-height": "calc(100vh - 45px)" }, style: { paddingBottom: e.fullscreen ? "40px" : "85px" } }, [e.ValueIsPlainObject ? n("el-form", e._g(e._b({ class: e.Readonly && "readonly" }, "el-form", e.ElFormProps, !1), e.Listeners), [e.isGlobalSlot(e.Slots.default) ? n(e.Slots.default(), { tag: "component" }) : e._t("default")], 2) : [e.isGlobalSlot(e.Slots.default) ? n(e.Slots.default(), { tag: "component" }) : e._t("default")]], 2)])])], 1);
}, Wj = [], Hj = /* @__PURE__ */ fs(
  zj,
  Uj,
  Wj,
  !1,
  null,
  "410ba3b7",
  null,
  null
);
const Vj = Hj.exports;
function Xj(t) {
  let e = 0;
  if (t)
    for (const n of t)
      e += n.charCodeAt(0) > 255 ? 2 : 1;
  return e;
}
const ur = {}, uu = {}, fu = {}, du = {}, Dn = {
  prop: "value",
  event: "change"
}, Yj = [
  "inlinePrompt"
];
bt({
  [Dn.prop]: {},
  elPopconfirmProps: {},
  elTooltipProps: {},
  elPopoverProps: {}
}, Object.fromEntries(Array.from(Yj, (t) => [t, {
  type: Boolean,
  default: void 0
}]))), Dn.event;
const Pn = {}, hu = {}, pu = {}, gu = {}, Bn = {
  prop: "value",
  event: "input"
}, qj = [
  "searchImmediately",
  "showSelectAllCheckbox"
];
bt({
  [Bn.prop]: {},
  label: [String, Array],
  options: Array,
  props: {},
  search: {},
  selectAllCheckboxLabel: {}
}, Object.fromEntries(Array.from(qj, (t) => [t, {
  type: Boolean,
  default: void 0
}]))), Bn.event, Bn.prop + "";
/*!
 * Compressor.js v1.2.1
 * https://fengyuanchen.github.io/compressorjs
 *
 * Copyright 2018-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2023-02-28T14:09:41.732Z
 */
function mu(t, e) {
  var n = Object.keys(t);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(t);
    e && (r = r.filter(function(o) {
      return Object.getOwnPropertyDescriptor(t, o).enumerable;
    })), n.push.apply(n, r);
  }
  return n;
}
function io(t) {
  for (var e = 1; e < arguments.length; e++) {
    var n = arguments[e] != null ? arguments[e] : {};
    e % 2 ? mu(Object(n), !0).forEach(function(r) {
      Zj(t, r, n[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : mu(Object(n)).forEach(function(r) {
      Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
    });
  }
  return t;
}
function Gj(t, e) {
  if (!(t instanceof e))
    throw new TypeError("Cannot call a class as a function");
}
function vu(t, e) {
  for (var n = 0; n < e.length; n++) {
    var r = e[n];
    r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, Hd(r.key), r);
  }
}
function Kj(t, e, n) {
  return e && vu(t.prototype, e), n && vu(t, n), Object.defineProperty(t, "prototype", {
    writable: !1
  }), t;
}
function Zj(t, e, n) {
  return e = Hd(e), e in t ? Object.defineProperty(t, e, {
    value: n,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : t[e] = n, t;
}
function ko() {
  return ko = Object.assign ? Object.assign.bind() : function(t) {
    for (var e = 1; e < arguments.length; e++) {
      var n = arguments[e];
      for (var r in n)
        Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
    }
    return t;
  }, ko.apply(this, arguments);
}
function Jj(t, e) {
  if (typeof t != "object" || t === null)
    return t;
  var n = t[Symbol.toPrimitive];
  if (n !== void 0) {
    var r = n.call(t, e || "default");
    if (typeof r != "object")
      return r;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return (e === "string" ? String : Number)(t);
}
function Hd(t) {
  var e = Jj(t, "string");
  return typeof e == "symbol" ? e : String(e);
}
var Vd = { exports: {} };
(function(t) {
  typeof window != "undefined" && function(e) {
    var n = e.HTMLCanvasElement && e.HTMLCanvasElement.prototype, r = e.Blob && function() {
      try {
        return !!new Blob();
      } catch (f) {
        return !1;
      }
    }(), o = r && e.Uint8Array && function() {
      try {
        return new Blob([new Uint8Array(100)]).size === 100;
      } catch (f) {
        return !1;
      }
    }(), i = e.BlobBuilder || e.WebKitBlobBuilder || e.MozBlobBuilder || e.MSBlobBuilder, l = /^data:((.*?)(;charset=.*?)?)(;base64)?,/, c = (r || i) && e.atob && e.ArrayBuffer && e.Uint8Array && function(f) {
      var u, p, h, m, b, v, _, x, $;
      if (u = f.match(l), !u)
        throw new Error("invalid data URI");
      for (p = u[2] ? u[1] : "text/plain" + (u[3] || ";charset=US-ASCII"), h = !!u[4], m = f.slice(u[0].length), h ? b = atob(m) : b = decodeURIComponent(m), v = new ArrayBuffer(b.length), _ = new Uint8Array(v), x = 0; x < b.length; x += 1)
        _[x] = b.charCodeAt(x);
      return r ? new Blob([o ? _ : v], {
        type: p
      }) : ($ = new i(), $.append(v), $.getBlob(p));
    };
    e.HTMLCanvasElement && !n.toBlob && (n.mozGetAsFile ? n.toBlob = function(f, u, p) {
      var h = this;
      setTimeout(function() {
        p && n.toDataURL && c ? f(c(h.toDataURL(u, p))) : f(h.mozGetAsFile("blob", u));
      });
    } : n.toDataURL && c && (n.msToBlob ? n.toBlob = function(f, u, p) {
      var h = this;
      setTimeout(function() {
        (u && u !== "image/png" || p) && n.toDataURL && c ? f(c(h.toDataURL(u, p))) : f(h.msToBlob(u));
      });
    } : n.toBlob = function(f, u, p) {
      var h = this;
      setTimeout(function() {
        f(c(h.toDataURL(u, p)));
      });
    })), t.exports ? t.exports = c : e.dataURLtoBlob = c;
  }(window);
})(Vd);
var bu = Vd.exports, Qj = function(e) {
  return typeof Blob == "undefined" ? !1 : e instanceof Blob || Object.prototype.toString.call(e) === "[object Blob]";
}, wu = {
  /**
   * Indicates if output the original image instead of the compressed one
   * when the size of the compressed image is greater than the original one's
   * @type {boolean}
   */
  strict: !0,
  /**
   * Indicates if read the image's Exif Orientation information,
   * and then rotate or flip the image automatically.
   * @type {boolean}
   */
  checkOrientation: !0,
  /**
   * Indicates if retain the image's Exif information after compressed.
   * @type {boolean}
  */
  retainExif: !1,
  /**
   * The max width of the output image.
   * @type {number}
   */
  maxWidth: 1 / 0,
  /**
   * The max height of the output image.
   * @type {number}
   */
  maxHeight: 1 / 0,
  /**
   * The min width of the output image.
   * @type {number}
   */
  minWidth: 0,
  /**
   * The min height of the output image.
   * @type {number}
   */
  minHeight: 0,
  /**
   * The width of the output image.
   * If not specified, the natural width of the source image will be used.
   * @type {number}
   */
  width: void 0,
  /**
   * The height of the output image.
   * If not specified, the natural height of the source image will be used.
   * @type {number}
   */
  height: void 0,
  /**
   * Sets how the size of the image should be resized to the container
   * specified by the `width` and `height` options.
   * @type {string}
   */
  resize: "none",
  /**
   * The quality of the output image.
   * It must be a number between `0` and `1`,
   * and only available for `image/jpeg` and `image/webp` images.
   * Check out {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob canvas.toBlob}.
   * @type {number}
   */
  quality: 0.8,
  /**
   * The mime type of the output image.
   * By default, the original mime type of the source image file will be used.
   * @type {string}
   */
  mimeType: "auto",
  /**
   * Files whose file type is included in this list,
   * and whose file size exceeds the `convertSize` value will be converted to JPEGs.
   * @type {string|Array}
   */
  convertTypes: ["image/png"],
  /**
   * PNG files over this size (5 MB by default) will be converted to JPEGs.
   * To disable this, just set the value to `Infinity`.
   * @type {number}
   */
  convertSize: 5e6,
  /**
   * The hook function to execute before draw the image into the canvas for compression.
   * @type {Function}
   * @param {CanvasRenderingContext2D} context - The 2d rendering context of the canvas.
   * @param {HTMLCanvasElement} canvas - The canvas for compression.
   * @example
   * function (context, canvas) {
   *   context.fillStyle = '#fff';
   * }
   */
  beforeDraw: null,
  /**
   * The hook function to execute after drew the image into the canvas for compression.
   * @type {Function}
   * @param {CanvasRenderingContext2D} context - The 2d rendering context of the canvas.
   * @param {HTMLCanvasElement} canvas - The canvas for compression.
   * @example
   * function (context, canvas) {
   *   context.filter = 'grayscale(100%)';
   * }
   */
  drew: null,
  /**
   * The hook function to execute when success to compress the image.
   * @type {Function}
   * @param {File} file - The compressed image File object.
   * @example
   * function (file) {
   *   console.log(file);
   * }
   */
  success: null,
  /**
   * The hook function to execute when fail to compress the image.
   * @type {Function}
   * @param {Error} err - An Error object.
   * @example
   * function (err) {
   *   console.log(err.message);
   * }
   */
  error: null
}, tD = typeof window != "undefined" && typeof window.document != "undefined", ke = tD ? window : {}, Io = function(e) {
  return e > 0 && e < 1 / 0;
}, eD = Array.prototype.slice;
function ds(t) {
  return Array.from ? Array.from(t) : eD.call(t);
}
var nD = /^image\/.+$/;
function ga(t) {
  return nD.test(t);
}
function rD(t) {
  var e = ga(t) ? t.substr(6) : "";
  return e === "jpeg" && (e = "jpg"), ".".concat(e);
}
var Xd = String.fromCharCode;
function oD(t, e, n) {
  var r = "", o;
  for (n += e, o = e; o < n; o += 1)
    r += Xd(t.getUint8(o));
  return r;
}
var iD = ke.btoa;
function yu(t, e) {
  for (var n = [], r = 8192, o = new Uint8Array(t); o.length > 0; )
    n.push(Xd.apply(null, ds(o.subarray(0, r)))), o = o.subarray(r);
  return "data:".concat(e, ";base64,").concat(iD(n.join("")));
}
function aD(t) {
  var e = new DataView(t), n;
  try {
    var r, o, i;
    if (e.getUint8(0) === 255 && e.getUint8(1) === 216)
      for (var l = e.byteLength, c = 2; c + 1 < l; ) {
        if (e.getUint8(c) === 255 && e.getUint8(c + 1) === 225) {
          o = c;
          break;
        }
        c += 1;
      }
    if (o) {
      var f = o + 4, u = o + 10;
      if (oD(e, f, 4) === "Exif") {
        var p = e.getUint16(u);
        if (r = p === 18761, (r || p === 19789) && e.getUint16(u + 2, r) === 42) {
          var h = e.getUint32(u + 4, r);
          h >= 8 && (i = u + h);
        }
      }
    }
    if (i) {
      var m = e.getUint16(i, r), b, v;
      for (v = 0; v < m; v += 1)
        if (b = i + v * 12 + 2, e.getUint16(b, r) === 274) {
          b += 8, n = e.getUint16(b, r), e.setUint16(b, 1, r);
          break;
        }
    }
  } catch (_) {
    n = 1;
  }
  return n;
}
function sD(t) {
  var e = 0, n = 1, r = 1;
  switch (t) {
    case 2:
      n = -1;
      break;
    case 3:
      e = -180;
      break;
    case 4:
      r = -1;
      break;
    case 5:
      e = 90, r = -1;
      break;
    case 6:
      e = 90;
      break;
    case 7:
      e = 90, n = -1;
      break;
    case 8:
      e = -90;
      break;
  }
  return {
    rotate: e,
    scaleX: n,
    scaleY: r
  };
}
var lD = /\.\d*(?:0|9){12}\d*$/;
function _u(t) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1e11;
  return lD.test(t) ? Math.round(t * e) / e : t;
}
function fr(t) {
  var e = t.aspectRatio, n = t.height, r = t.width, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none", i = Io(r), l = Io(n);
  if (i && l) {
    var c = n * e;
    (o === "contain" || o === "none") && c > r || o === "cover" && c < r ? n = r / e : r = n * e;
  } else
    i ? n = r / e : l && (r = n * e);
  return {
    width: r,
    height: n
  };
}
function cD(t) {
  for (var e = ds(new Uint8Array(t)), n = e.length, r = [], o = 0; o + 3 < n; ) {
    var i = e[o], l = e[o + 1];
    if (i === 255 && l === 218)
      break;
    if (i === 255 && l === 216)
      o += 2;
    else {
      var c = e[o + 2] * 256 + e[o + 3], f = o + c + 2, u = e.slice(o, f);
      r.push(u), o = f;
    }
  }
  return r.reduce(function(p, h) {
    return h[0] === 255 && h[1] === 225 ? p.concat(h) : p;
  }, []);
}
function uD(t, e) {
  var n = ds(new Uint8Array(t));
  if (n[2] !== 255 || n[3] !== 224)
    return t;
  var r = n[4] * 256 + n[5], o = [255, 216].concat(e, n.slice(4 + r));
  return new Uint8Array(o);
}
var fD = ke.ArrayBuffer, Pi = ke.FileReader, Ge = ke.URL || ke.webkitURL, dD = /\.\w+$/, hD = ke.Compressor, pD = /* @__PURE__ */ function() {
  function t(e, n) {
    Gj(this, t), this.file = e, this.exif = [], this.image = new Image(), this.options = io(io({}, wu), n), this.aborted = !1, this.result = null, this.init();
  }
  return Kj(t, [{
    key: "init",
    value: function() {
      var n = this, r = this.file, o = this.options;
      if (!Qj(r)) {
        this.fail(new Error("The first argument must be a File or Blob object."));
        return;
      }
      var i = r.type;
      if (!ga(i)) {
        this.fail(new Error("The first argument must be an image File or Blob object."));
        return;
      }
      if (!Ge || !Pi) {
        this.fail(new Error("The current browser does not support image compression."));
        return;
      }
      fD || (o.checkOrientation = !1, o.retainExif = !1);
      var l = i === "image/jpeg", c = l && o.checkOrientation, f = l && o.retainExif;
      if (Ge && !c && !f)
        this.load({
          url: Ge.createObjectURL(r)
        });
      else {
        var u = new Pi();
        this.reader = u, u.onload = function(p) {
          var h = p.target, m = h.result, b = {}, v = 1;
          c && (v = aD(m), v > 1 && ko(b, sD(v))), f && (n.exif = cD(m)), c || f ? !Ge || v > 1 ? b.url = yu(m, i) : b.url = Ge.createObjectURL(r) : b.url = m, n.load(b);
        }, u.onabort = function() {
          n.fail(new Error("Aborted to read the image with FileReader."));
        }, u.onerror = function() {
          n.fail(new Error("Failed to read the image with FileReader."));
        }, u.onloadend = function() {
          n.reader = null;
        }, c || f ? u.readAsArrayBuffer(r) : u.readAsDataURL(r);
      }
    }
  }, {
    key: "load",
    value: function(n) {
      var r = this, o = this.file, i = this.image;
      i.onload = function() {
        r.draw(io(io({}, n), {}, {
          naturalWidth: i.naturalWidth,
          naturalHeight: i.naturalHeight
        }));
      }, i.onabort = function() {
        r.fail(new Error("Aborted to load the image."));
      }, i.onerror = function() {
        r.fail(new Error("Failed to load the image."));
      }, ke.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(ke.navigator.userAgent) && (i.crossOrigin = "anonymous"), i.alt = o.name, i.src = n.url;
    }
  }, {
    key: "draw",
    value: function(n) {
      var r = this, o = n.naturalWidth, i = n.naturalHeight, l = n.rotate, c = l === void 0 ? 0 : l, f = n.scaleX, u = f === void 0 ? 1 : f, p = n.scaleY, h = p === void 0 ? 1 : p, m = this.file, b = this.image, v = this.options, _ = document.createElement("canvas"), x = _.getContext("2d"), $ = Math.abs(c) % 180 === 90, E = (v.resize === "contain" || v.resize === "cover") && Io(v.width) && Io(v.height), O = Math.max(v.maxWidth, 0) || 1 / 0, k = Math.max(v.maxHeight, 0) || 1 / 0, D = Math.max(v.minWidth, 0) || 0, y = Math.max(v.minHeight, 0) || 0, A = o / i, j = v.width, S = v.height;
      if ($) {
        var I = [k, O];
        O = I[0], k = I[1];
        var Y = [y, D];
        D = Y[0], y = Y[1];
        var pt = [S, j];
        j = pt[0], S = pt[1];
      }
      E && (A = j / S);
      var J = fr({
        aspectRatio: A,
        width: O,
        height: k
      }, "contain");
      O = J.width, k = J.height;
      var q = fr({
        aspectRatio: A,
        width: D,
        height: y
      }, "cover");
      if (D = q.width, y = q.height, E) {
        var W = fr({
          aspectRatio: A,
          width: j,
          height: S
        }, v.resize);
        j = W.width, S = W.height;
      } else {
        var nt = fr({
          aspectRatio: A,
          width: j,
          height: S
        }), mt = nt.width;
        j = mt === void 0 ? o : mt;
        var rt = nt.height;
        S = rt === void 0 ? i : rt;
      }
      j = Math.floor(_u(Math.min(Math.max(j, D), O))), S = Math.floor(_u(Math.min(Math.max(S, y), k)));
      var St = -j / 2, Pt = -S / 2, de = j, Bt = S, Lt = [];
      if (E) {
        var Me = 0, he = 0, Re = o, Zn = i, vn = fr({
          aspectRatio: A,
          width: o,
          height: i
        }, {
          contain: "cover",
          cover: "contain"
        }[v.resize]);
        Re = vn.width, Zn = vn.height, Me = (o - Re) / 2, he = (i - Zn) / 2, Lt.push(Me, he, Re, Zn);
      }
      if (Lt.push(St, Pt, de, Bt), $) {
        var bn = [S, j];
        j = bn[0], S = bn[1];
      }
      _.width = j, _.height = S, ga(v.mimeType) || (v.mimeType = m.type);
      var Le = "transparent";
      m.size > v.convertSize && v.convertTypes.indexOf(v.mimeType) >= 0 && (v.mimeType = "image/jpeg");
      var Wr = v.mimeType === "image/jpeg";
      if (Wr && (Le = "#fff"), x.fillStyle = Le, x.fillRect(0, 0, j, S), v.beforeDraw && v.beforeDraw.call(this, x, _), !this.aborted && (x.save(), x.translate(j / 2, S / 2), x.rotate(c * Math.PI / 180), x.scale(u, h), x.drawImage.apply(x, [b].concat(Lt)), x.restore(), v.drew && v.drew.call(this, x, _), !this.aborted)) {
        var _t = function(Fe) {
          if (!r.aborted) {
            var Et = function(R) {
              return r.done({
                naturalWidth: o,
                naturalHeight: i,
                result: R
              });
            };
            if (Fe && Wr && v.retainExif && r.exif && r.exif.length > 0) {
              var wn = function(R) {
                return Et(bu(yu(uD(R, r.exif), v.mimeType)));
              };
              if (Fe.arrayBuffer)
                Fe.arrayBuffer().then(wn).catch(function() {
                  r.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."));
                });
              else {
                var pe = new Pi();
                r.reader = pe, pe.onload = function(yn) {
                  var R = yn.target;
                  wn(R.result);
                }, pe.onabort = function() {
                  r.fail(new Error("Aborted to read the compressed image with FileReader."));
                }, pe.onerror = function() {
                  r.fail(new Error("Failed to read the compressed image with FileReader."));
                }, pe.onloadend = function() {
                  r.reader = null;
                }, pe.readAsArrayBuffer(Fe);
              }
            } else
              Et(Fe);
          }
        };
        _.toBlob ? _.toBlob(_t, v.mimeType, v.quality) : _t(bu(_.toDataURL(v.mimeType, v.quality)));
      }
    }
  }, {
    key: "done",
    value: function(n) {
      var r = n.naturalWidth, o = n.naturalHeight, i = n.result, l = this.file, c = this.image, f = this.options;
      if (Ge && c.src.indexOf("blob:") === 0 && Ge.revokeObjectURL(c.src), i)
        if (f.strict && !f.retainExif && i.size > l.size && f.mimeType === l.type && !(f.width > r || f.height > o || f.minWidth > r || f.minHeight > o || f.maxWidth < r || f.maxHeight < o))
          i = l;
        else {
          var u = /* @__PURE__ */ new Date();
          i.lastModified = u.getTime(), i.lastModifiedDate = u, i.name = l.name, i.name && i.type !== l.type && (i.name = i.name.replace(dD, rD(i.type)));
        }
      else
        i = l;
      this.result = i, f.success && f.success.call(this, i);
    }
  }, {
    key: "fail",
    value: function(n) {
      var r = this.options;
      if (r.error)
        r.error.call(this, n);
      else
        throw n;
    }
  }, {
    key: "abort",
    value: function() {
      this.aborted || (this.aborted = !0, this.reader ? this.reader.abort() : this.image.complete ? this.fail(new Error("The compression process has been aborted.")) : (this.image.onload = null, this.image.onabort()));
    }
    /**
     * Get the no conflict compressor class.
     * @returns {Compressor} The compressor class.
     */
  }], [{
    key: "noConflict",
    value: function() {
      return window.Compressor = hD, t;
    }
    /**
     * Change the default options.
     * @param {Object} options - The new default options.
     */
  }, {
    key: "setDefaults",
    value: function(n) {
      ko(wu, n);
    }
  }]), t;
}();
function mo(t) {
  "@babel/helpers - typeof";
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? mo = function(n) {
    return typeof n;
  } : mo = function(n) {
    return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
  }, mo(t);
}
function ti(t) {
  var e = typeof t == "string" || t instanceof String;
  if (!e) {
    var n = mo(t);
    throw t === null ? n = "null" : n === "object" && (n = t.constructor.name), new TypeError("Expected a string but received a ".concat(n));
  }
}
function hs() {
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = arguments.length > 1 ? arguments[1] : void 0;
  for (var n in e)
    typeof t[n] == "undefined" && (t[n] = e[n]);
  return t;
}
var gD = /[^A-Z0-9+\/=]/i, mD = /^[A-Z0-9_\-]*$/i, vD = {
  urlSafe: !1
};
function bD(t, e) {
  ti(t), e = hs(e, vD);
  var n = t.length;
  if (e.urlSafe)
    return mD.test(t);
  if (n % 4 !== 0 || gD.test(t))
    return !1;
  var r = t.indexOf("=");
  return r === -1 || r === n - 1 || r === n - 2 && t[n - 1] === "=";
}
var wD = {
  require_tld: !0,
  allow_underscores: !1,
  allow_trailing_dot: !1,
  allow_numeric_tld: !1,
  allow_wildcard: !1,
  ignore_max_length: !1
};
function yD(t, e) {
  ti(t), e = hs(e, wD), e.allow_trailing_dot && t[t.length - 1] === "." && (t = t.substring(0, t.length - 1)), e.allow_wildcard === !0 && t.indexOf("*.") === 0 && (t = t.substring(2));
  var n = t.split("."), r = n[n.length - 1];
  return e.require_tld && (n.length < 2 || !e.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(r) || /\s/.test(r)) || !e.allow_numeric_tld && /^\d+$/.test(r) ? !1 : n.every(function(o) {
    return !(o.length > 63 && !e.ignore_max_length || !/^[a-z_\u00a1-\uffff0-9-]+$/i.test(o) || /[\uff01-\uff5e]/.test(o) || /^-|-$/.test(o) || !e.allow_underscores && /_/.test(o));
  });
}
var xu = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])", Te = "(".concat(xu, "[.]){3}").concat(xu), _D = new RegExp("^".concat(Te, "$")), lt = "(?:[0-9a-fA-F]{1,4})", xD = new RegExp("^(" + "(?:".concat(lt, ":){7}(?:").concat(lt, "|:)|") + "(?:".concat(lt, ":){6}(?:").concat(Te, "|:").concat(lt, "|:)|") + "(?:".concat(lt, ":){5}(?::").concat(Te, "|(:").concat(lt, "){1,2}|:)|") + "(?:".concat(lt, ":){4}(?:(:").concat(lt, "){0,1}:").concat(Te, "|(:").concat(lt, "){1,3}|:)|") + "(?:".concat(lt, ":){3}(?:(:").concat(lt, "){0,2}:").concat(Te, "|(:").concat(lt, "){1,4}|:)|") + "(?:".concat(lt, ":){2}(?:(:").concat(lt, "){0,3}:").concat(Te, "|(:").concat(lt, "){1,5}|:)|") + "(?:".concat(lt, ":){1}(?:(:").concat(lt, "){0,4}:").concat(Te, "|(:").concat(lt, "){1,6}|:)|") + "(?::((?::".concat(lt, "){0,5}:").concat(Te, "|(?::").concat(lt, "){1,7}|:))") + ")(%[0-9a-zA-Z-.:]{1,})?$");
function Mo(t) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
  return ti(t), e = String(e), e ? e === "4" ? _D.test(t) : e === "6" ? xD.test(t) : !1 : Mo(t, 4) || Mo(t, 6);
}
function $D(t, e) {
  return SD(t) || AD(t, e) || ED(t, e) || CD();
}
function CD() {
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function ED(t, e) {
  if (t) {
    if (typeof t == "string")
      return $u(t, e);
    var n = Object.prototype.toString.call(t).slice(8, -1);
    if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set")
      return Array.from(t);
    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
      return $u(t, e);
  }
}
function $u(t, e) {
  (e == null || e > t.length) && (e = t.length);
  for (var n = 0, r = new Array(e); n < e; n++)
    r[n] = t[n];
  return r;
}
function AD(t, e) {
  if (!(typeof Symbol == "undefined" || !(Symbol.iterator in Object(t)))) {
    var n = [], r = !0, o = !1, i = void 0;
    try {
      for (var l = t[Symbol.iterator](), c; !(r = (c = l.next()).done) && (n.push(c.value), !(e && n.length === e)); r = !0)
        ;
    } catch (f) {
      o = !0, i = f;
    } finally {
      try {
        !r && l.return != null && l.return();
      } finally {
        if (o)
          throw i;
      }
    }
    return n;
  }
}
function SD(t) {
  if (Array.isArray(t))
    return t;
}
var TD = {
  protocols: ["http", "https", "ftp"],
  require_tld: !0,
  require_protocol: !1,
  require_host: !0,
  require_port: !1,
  require_valid_protocol: !0,
  allow_underscores: !1,
  allow_trailing_dot: !1,
  allow_protocol_relative_urls: !1,
  allow_fragments: !0,
  allow_query_components: !0,
  validate_length: !0
}, OD = /^\[([^\]]+)\](?::([0-9]+))?$/;
function jD(t) {
  return Object.prototype.toString.call(t) === "[object RegExp]";
}
function Cu(t, e) {
  for (var n = 0; n < e.length; n++) {
    var r = e[n];
    if (t === r || jD(r) && r.test(t))
      return !0;
  }
  return !1;
}
function Yd(t, e) {
  if (ti(t), !t || /[\s<>]/.test(t) || t.indexOf("mailto:") === 0 || (e = hs(e, TD), e.validate_length && t.length >= 2083) || !e.allow_fragments && t.includes("#") || !e.allow_query_components && (t.includes("?") || t.includes("&")))
    return !1;
  var n, r, o, i, l, c, f, u;
  if (f = t.split("#"), t = f.shift(), f = t.split("?"), t = f.shift(), f = t.split("://"), f.length > 1) {
    if (n = f.shift().toLowerCase(), e.require_valid_protocol && e.protocols.indexOf(n) === -1)
      return !1;
  } else {
    if (e.require_protocol)
      return !1;
    if (t.slice(0, 2) === "//") {
      if (!e.allow_protocol_relative_urls)
        return !1;
      f[0] = t.slice(2);
    }
  }
  if (t = f.join("://"), t === "")
    return !1;
  if (f = t.split("/"), t = f.shift(), t === "" && !e.require_host)
    return !0;
  if (f = t.split("@"), f.length > 1) {
    if (e.disallow_auth || f[0] === "" || (r = f.shift(), r.indexOf(":") >= 0 && r.split(":").length > 2))
      return !1;
    var p = r.split(":"), h = $D(p, 2), m = h[0], b = h[1];
    if (m === "" && b === "")
      return !1;
  }
  i = f.join("@"), c = null, u = null;
  var v = i.match(OD);
  if (v ? (o = "", u = v[1], c = v[2] || null) : (f = i.split(":"), o = f.shift(), f.length && (c = f.join(":"))), c !== null && c.length > 0) {
    if (l = parseInt(c, 10), !/^[0-9]+$/.test(c) || l <= 0 || l > 65535)
      return !1;
  } else if (e.require_port)
    return !1;
  return e.host_whitelist ? Cu(o, e.host_whitelist) : o === "" && !e.require_host ? !0 : !(!Mo(o) && !yD(o, e) && (!u || !Mo(u, 6)) || (o = o || u, e.host_blacklist && Cu(o, e.host_blacklist)));
}
const ma = fi(1024, 2), qd = 1024;
function Bi(t) {
  if (Array.isArray(t)) {
    if (t.length === 0 || t.length > 2)
      return !1;
    const [e, n] = t, r = typeof e == "number" && !isNaN(e) && e >= 0, o = typeof n == "number" && !isNaN(n) && n >= 0;
    return r && o && e < n || r && n === void 0 || e === void 0 && o;
  } else
    return typeof t == "number" && !isNaN(t) && t >= 0;
}
function DD(t) {
  return t >= ma ? `${(t / ma).toFixed(2)}M` : `${(t / qd).toFixed(2)}K`;
}
function PD(t) {
  if (typeof t == "string" && t.startsWith("[") && t.endsWith("]"))
    try {
      const e = JSON.parse(t);
      return typeof e == "object" && e;
    } catch (e) {
      return console.error(e), !1;
    }
  return !1;
}
function Gd(t, e) {
  return !t || e && !t.startsWith(`data:${e}`) ? !1 : bD(t.split(",")[1] || "");
}
function Eu(t, e) {
  if (!e) {
    const n = t.type.split("/")[1];
    e = `${(/* @__PURE__ */ new Date()).getTime().toString()}.${n}`;
  }
  return t instanceof File ? t : new File([t], e, { type: t.type });
}
function Au(t) {
  return new Promise((e) => {
    const n = new FileReader();
    n.onload = (r) => {
      var o;
      e((o = r.target) == null ? void 0 : o.result);
    }, n.readAsDataURL(t);
  });
}
function Kd(t) {
  return An(this, null, function* () {
    if (typeof t == "string") {
      if (Yd(t) || Gd(t, "image/") || t.startsWith("blob:"))
        return yield (yield fetch(t)).blob();
      throw new Error("解析图片失败");
    }
    return Promise.resolve(t);
  });
}
function BD(t) {
  return An(this, null, function* () {
    if (typeof t == "string") {
      if (t.startsWith("blob:"))
        return Promise.resolve(t);
      if (Yd(t))
        return Au(yield Kd(t));
      if (Gd(t, "image/"))
        return Promise.resolve(t);
      throw new Error("解析图片失败");
    }
    return Au(t);
  });
}
function kD(t) {
  return An(this, null, function* () {
    return new Promise((e) => {
      const n = new Image();
      n.onload = () => {
        e(n);
      }, n.src = t;
    });
  });
}
function Zd(t) {
  return typeof t == "object" && t !== null && !Array.isArray(t);
}
function Su(t, e) {
  if (!(t && e))
    return t;
  switch (typeof e) {
    case "string":
      return zf(t, e)[0];
    case "function":
      return e(t);
    case "symbol":
      if (Nr(t))
        return t[e];
  }
}
function Tu(t, e) {
  if (e && typeof e == "string")
    return Zd(t) ? (t.url = e, t) : { url: e };
}
Ro.util.warn;
function ID(t) {
  return Tg() ? (Og(t), !0) : !1;
}
function Jd(t) {
  return typeof t == "function" ? t() : jg(t);
}
const MD = typeof window != "undefined", RD = () => {
};
Ro.util.warn;
function LD(t) {
  var e;
  const n = Jd(t);
  return (e = n == null ? void 0 : n.$el) != null ? e : n;
}
const FD = MD ? window : void 0;
function Ou(...t) {
  let e, n, r, o;
  if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([n, r, o] = t, e = FD) : [e, n, r, o] = t, !e)
    return RD;
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
  const i = [], l = () => {
    i.forEach((p) => p()), i.length = 0;
  }, c = (p, h, m, b) => (p.addEventListener(h, m, b), () => p.removeEventListener(h, m, b)), f = Dg(
    () => [LD(e), Jd(o)],
    ([p, h]) => {
      l(), p && i.push(
        ...n.flatMap((m) => r.map((b) => c(p, m, b, h)))
      );
    },
    { immediate: !0, flush: "post" }
  ), u = () => {
    f(), l();
  };
  return ID(u), u;
}
const Qd = () => ({
  sizeThreshold: ma,
  rotateDegree: 0,
  quality: 0.8,
  isTouched: !1
}), ju = () => er(bt({}, Qd()), {
  fullscreen: !1,
  binary: null,
  localURL: null,
  imageTag: null,
  cropper: null,
  loading: !0,
  submitting: !1,
  sizeText: "",
  canvas: {},
  cropBox: {},
  cancelAspectRatio: !1,
  // 取消比例限制
  resolution: {},
  timer: null,
  userCompress: !1
  // 用户可以自己设置的是否压缩
}), ND = {
  components: { KiFormDialog: Vj },
  props: {
    show: {
      type: Boolean,
      required: !0
    },
    value: [Blob, File, String],
    aspectRatio: Object,
    // compressorjs压缩参数
    compressorParams: {
      type: Object,
      default: () => ({})
    },
    CropperMode: 0,
    // 是否压缩
    isCompress: Boolean,
    compressMaxWidth: Number
  },
  data() {
    return ju();
  },
  computed: {
    Debounce() {
      return this.binary ? Math.min(500, Math.round(this.binary.size / qd)) : 300;
    },
    MustCrop() {
      const { width: t, height: e } = this.imageTag, n = t / e;
      return this.isTouched || this.aspectRatio.min !== void 0 && n < this.aspectRatio.min || this.aspectRatio.max !== void 0 && n > this.aspectRatio.max;
    }
  },
  watch: {
    // 监听 value 不监听 show 是为了兼顾多选的情况
    value(t) {
      return An(this, null, function* () {
        var e;
        if (this.userCompress = !0, t) {
          this.loading = !0;
          try {
            this.binary = yield Kd(t), this.localURL = yield BD(t), this.imageTag = yield kD(this.localURL);
          } catch (r) {
            tn.error(r instanceof Error ? r.message : r), this.$emit("update:show", !1);
            return;
          }
          yield this.$nextTick();
          const n = this;
          (e = this.cropper) != null || (this.cropper = new fd(this.$refs.cropper, {
            "overflow-hidden": !0,
            preview: ".preview",
            background: !0,
            cropmove: () => {
              this.isTouched = !0;
            },
            zoom: () => {
              this.isTouched = !0;
            },
            ready: this.onReady,
            viewMode: this.CropperMode,
            crop({ detail: r }) {
              r.width && r.height ? n.resolution = {
                width: Math.floor(r.width),
                height: Math.floor(r.height)
              } : n.resolution = {};
            }
          })), this.updateCropBox = mc(
            (r) => {
              this.cropper.rotateTo(r), this.onReady();
            },
            this.Debounce,
            {
              leading: !1,
              trailing: !0
            }
          ), this.sizeText = DD(this.binary.size), this.cropper.replace(this.localURL);
        } else
          Object.assign(this.$data, ju());
      });
    },
    rotateDegree(t) {
      this.onRotateDegreeChange(t);
    }
  },
  mounted() {
    try {
      Ou(
        window,
        "resize",
        mc(
          () => {
            this.show && !this.loading && !this.submitting && this.reset();
          },
          100,
          {
            leading: !1,
            trailing: !0
          }
        )
      ), Ou(document, "keydown", (t) => {
        this.show && !this.loading && !this.submitting && t.key === "Enter" && this.onConfirm();
      });
    } catch (t) {
    }
  },
  methods: {
    getEditFile() {
      return new Promise((t) => {
        this.cropper.getCroppedCanvas().toBlob(
          (e) => {
            const n = this.binary instanceof File ? Eu(e, this.binary.name) : e;
            this.isCompress && this.userCompress && this.compressMaxWidth && this.resolution && this.resolution.width > this.compressMaxWidth ? (this.submitting = !0, this.compressor(n, this.compressMaxWidth).then((r) => {
              t(r);
            })) : t(n);
          },
          // 如果旋转角度不为直角,则图片一定会出现空白区域,空白区域默认透明,使用 png 格式
          // this.rotateDegree % 90 === 0 ? this.binary.type : 'image/png',
          this.binary.type,
          // 质量
          1
        );
      });
    },
    onFullscreenChange(t) {
      this.fullscreen = t, this.$nextTick(() => {
        window.dispatchEvent(new Event("resize")), this.reset();
      });
    },
    onRotateDegreeChange(t) {
      this.updateCropBox(t);
    },
    onConfirm() {
      if (!this.MustCrop && !this.userCompress)
        this.$emit("confirm", this.value);
      else {
        this.submitting = !0;
        const { width: t, height: e } = this.cropper.getCropBoxData(), n = t / e;
        if ((this.aspectRatio.min !== void 0 && n < this.aspectRatio.min || this.aspectRatio.max !== void 0 && n > this.aspectRatio.max) && !this.cancelAspectRatio) {
          tn.warning(`不符合${this.aspectRatio.label}`), this.submitting = !1;
          return;
        }
        this.getEditFile().then((r) => {
          this.$emit("confirm", r);
        }).finally(() => {
          this.submitting = !1;
        });
      }
    },
    // 压缩图片
    compressor(t, e = void 0) {
      return new Promise((n, r) => {
        new pD(t, er(bt({
          quality: this.quality,
          convertTypes: [],
          convertSize: 1 / 0,
          strict: !0,
          // 严格模式(精确尺寸)
          orient: !0,
          // 保持EXIF方向信息
          checkOrientation: !0
        }, this.compressorParams), {
          maxWidth: e,
          success(o) {
            const i = Eu(o, o.name);
            n(i);
          },
          error(o) {
            n(t);
          }
        }));
      });
    },
    onReady() {
      const { width: t, height: e, left: n, top: r } = this.cropper.getCanvasData();
      typeof this.aspectRatio.target == "number" ? (this.cropper.setAspectRatio(this.aspectRatio.target), this.$nextTick(() => {
        const o = t / e;
        if (this.aspectRatio.target > o) {
          this.cropper.setCropBoxData({ width: t, left: n });
          const { width: i, height: l } = this.cropper.getContainerData(), { width: c, height: f } = this.cropper.getCropBoxData();
          this.cropper.setCropBoxData({ top: (l - f) / 2 });
        } else {
          this.cropper.setCropBoxData({ height: e, top: r });
          const { width: i, height: l } = this.cropper.getContainerData(), { width: c, height: f } = this.cropper.getCropBoxData();
          this.cropper.setCropBoxData({ left: (i - c) / 2 });
        }
        this.loading = !1;
      })) : (this.cropper.setCropBoxData({ width: t, height: e, left: n, top: r }), this.loading = !1);
    },
    flipX() {
      this.isTouched = !0;
      const t = this.$refs.flipX.$el;
      let e = t.getAttribute("data-scale");
      e = e ? -e : -1, this.cropper.scaleX(e), t.setAttribute("data-scale", e);
    },
    flipY() {
      this.isTouched = !0;
      const t = this.$refs.flipY.$el;
      let e = t.getAttribute("data-scale");
      e = e ? -e : -1, this.cropper.scaleY(e), t.setAttribute("data-scale", e);
    },
    getCropBoxData() {
      this.data = JSON.stringify(this.cropper.getCropBoxData(), null, 4);
    },
    getData() {
      this.data = JSON.stringify(this.cropper.getData(), null, 4);
    },
    move(t, e) {
      this.isTouched = !0, this.cropper.move(t, e);
    },
    reset() {
      Object.assign(this.$data, Qd()), this.cropper.reset(), this.onReady(), this.isTouched = !1;
    },
    rotate(t) {
      this.isTouched = !0;
      const e = this.rotateDegree + t;
      e > 180 ? this.rotateDegree = e - 360 : e < -180 ? this.rotateDegree = e + 360 : this.rotateDegree = e, this.onRotateDegreeChange(this.rotateDegree);
    },
    setCropBoxData() {
      this.data && this.cropper.setCropBoxData(JSON.parse(this.data));
    },
    zoom(t) {
      this.cropper.zoom(t);
    },
    // 取消比例限制
    cancelRatio() {
      this.cancelAspectRatio = !this.cancelAspectRatio, this.cropper.setAspectRatio(this.cancelAspectRatio ? NaN : this.aspectRatio.target);
    }
  }
};
var zD = function() {
  var e = this, n = e._self._c;
  return n("KiFormDialog", e._g({ attrs: { title: "编辑图片", show: e.show, "append-to-body": "", "destroy-on-close": "", center: "" }, on: { close: function(r) {
    return e.$emit("update:show", !1);
  }, "fullscreen-change": e.onFullscreenChange }, scopedSlots: e._u([{ key: "footer", fn: function() {
    return [n("div", { attrs: { flex: "", "items-center": "", "justify-between": "" } }, [n("div", { staticClass: "spill-text" }, [e.isCompress && e.resolution && e.resolution.width > e.compressMaxWidth ? [n("span", { staticClass: "text" }, [e._v("已开启自动压缩")]), n("el-tooltip", { attrs: { effect: "dark", placement: "top" }, scopedSlots: e._u([{ key: "content", fn: function() {
      return [e._v(" 原图片宽度过大,可能会影响加载速度"), n("br"), e._v(" 已开启自动压缩,压缩后图片宽度将会限制在" + e._s(e.compressMaxWidth) + "px"), n("br"), e._v(" 可能会影响图片清晰度,如果对图片清晰度要求较高,请关闭自动压缩 ")];
    }, proxy: !0 }], null, !1, 214834539) }, [n("i", { staticClass: "el-icon-question mr-5px" })]), n("el-switch", { attrs: { "active-value": !0, "inactive-value": !1 }, on: { change: function(r) {
      return e.getEditFile();
    } }, model: { value: e.userCompress, callback: function(r) {
      e.userCompress = r;
    }, expression: "userCompress" } })] : e._e()], 2), n("div", { attrs: { flex: "", "items-center": "", "justify-end": "" } }, [n("el-form", { directives: [{ name: "show", rawName: "v-show", value: !e.loading, expression: "!loading" }], staticClass: "!mb-0", attrs: { inline: "", flex: "" } }), n("div", { directives: [{ name: "show", rawName: "v-show", value: !e.loading && !e.MustCrop, expression: "!loading && !MustCrop" }] }, [n("el-tag", [e._v("原图" + e._s(e.sizeText))])], 1), n("el-button", { staticStyle: { "margin-left": "10px" }, attrs: { disabled: e.loading, type: "info" }, on: { click: e.reset } }, [e._v("重 置")]), n("el-button", { on: { click: function(r) {
      return e.$emit("cancel");
    } } }, [e._v("取 消")]), n("el-button", { attrs: { disabled: e.loading, type: "primary", loading: e.submitting }, on: { click: e.onConfirm } }, [e._v("确 定")])], 1)])];
  }, proxy: !0 }]) }, e.$listeners), [n("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.loading, expression: "loading" }], attrs: { "element-loading-text": "图片加载中..." } }, [n("div", { style: { height: `${e.fullscreen ? "747" : "500"}px`, position: "relative" }, attrs: { flex: "", "justify-center": "", "items-center": "" } }, [n("img", { ref: "cropper", attrs: { display: "block", "max-w": "full", "max-h": "full", src: e.localURL } }), e.resolution.width != null ? n("div", { staticClass: "resolution" }, [e._v(e._s(e.resolution.width) + "×" + e._s(e.resolution.height))]) : e._e()]), n("div", { attrs: { flex: "", "flex-col": "", "items-center": "", "mt-25px": "", "gap-10px": "" } }, [n("el-button-group", [n("el-button", { attrs: { icon: "el-icon-zoom-in", title: "放大" }, on: { click: function(r) {
    return r.preventDefault(), e.zoom(0.2);
  } } }), n("el-button", { attrs: { icon: "el-icon-zoom-out", title: "缩小" }, on: { click: function(r) {
    return r.preventDefault(), e.zoom(-0.2);
  } } }), n("el-button", { attrs: { icon: "el-icon-arrow-left", title: "左移" }, on: { click: function(r) {
    return r.preventDefault(), e.move(-10, 0);
  } } }), n("el-button", { attrs: { icon: "el-icon-arrow-right", title: "右移" }, on: { click: function(r) {
    return r.preventDefault(), e.move(10, 0);
  } } }), n("el-button", { attrs: { icon: "el-icon-arrow-up", title: "上移" }, on: { click: function(r) {
    return r.preventDefault(), e.move(0, -10);
  } } }), n("el-button", { attrs: { icon: "el-icon-arrow-down", title: "下移" }, on: { click: function(r) {
    return r.preventDefault(), e.move(0, 10);
  } } }), n("el-button", { ref: "flipX", staticClass: "flipX", attrs: { title: "左右翻转", icon: "el-icon-sort" }, on: { click: function(r) {
    return r.preventDefault(), e.flipX.apply(null, arguments);
  } } }), n("el-button", { ref: "flipY", attrs: { title: "上下翻转", icon: "el-icon-sort" }, on: { click: function(r) {
    return r.preventDefault(), e.flipY.apply(null, arguments);
  } } }), n("el-button", { attrs: { icon: "el-icon-refresh-right", title: "右旋转90°" }, on: { click: function(r) {
    return r.preventDefault(), e.rotate(90);
  } } }), n("el-button", { attrs: { icon: "el-icon-refresh-left", title: "左旋转90°" }, on: { click: function(r) {
    return r.preventDefault(), e.rotate(-90);
  } } }), e.aspectRatio && e.aspectRatio.target ? [e.cancelAspectRatio ? n("el-button", { attrs: { icon: "el-icon-lock", title: "限制裁切比例" }, on: { click: function(r) {
    return r.preventDefault(), e.cancelRatio();
  } } }) : n("el-button", { attrs: { icon: "el-icon-unlock", title: "取消裁切比例限制" }, on: { click: function(r) {
    return r.preventDefault(), e.cancelRatio();
  } } })] : e._e()], 2), n("el-slider", { staticClass: "rotateDegree", style: { visibility: e.loading ? "hidden" : "visible" }, attrs: { "show-input": "", debounce: e.Debounce, min: -180, max: 180, marks: { 0: "0°", "-180": "-180°", 180: "180°" } }, on: { change: () => {
    e.isTouched = !0;
  } }, model: { value: e.rotateDegree, callback: function(r) {
    e.rotateDegree = r;
  }, expression: "rotateDegree" } })], 1)])]);
}, UD = [], WD = /* @__PURE__ */ fs(
  ND,
  zD,
  UD,
  !1,
  null,
  "60329e8a",
  null,
  null
);
const HD = WD.exports;
const ki = fi(1024, 2), VD = {
  name: Q$,
  components: { ImgEditor: HD },
  inject: {
    elForm: {
      default: {}
    }
  },
  props: {
    value: {
      validator: (t) => typeof t == "string" || Array.isArray(t) || Nr(t)
    },
    srcAt: {},
    size: {},
    count: {},
    upload: {},
    accept: {},
    validator: {},
    aspectRatio: {},
    aspectRatioTolerance: {},
    disabled: {
      type: Boolean,
      default: void 0
    },
    editable: {
      type: Boolean,
      default: void 0
    },
    arrayed: {
      type: Boolean,
      default: void 0
    },
    // 裁剪模式
    cropperMode: {
      type: Number,
      default: void 0
    },
    // 文件大小超出提示 size, text
    overflowPrompt: {
      type: Object,
      default: () => ({})
    },
    // 超过设置宽度是否自动压缩
    isCompress: {
      type: Boolean,
      default: !0
    },
    // 压缩限制宽度,大于此宽度的压缩为此宽度
    compressMaxWidth: {
      type: Number,
      default: 1280
    },
    // compressorjs压缩参数
    compressorParams: {
      type: Object,
      default: () => ({})
    }
  },
  emits: [
    "exceed",
    "input",
    "preview",
    "before-remove",
    "size-error",
    "change",
    "remove",
    "before-upload",
    "error",
    "progress",
    "success"
  ],
  data() {
    return {
      crop: {
        queue: [],
        show: !1,
        value: null
      },
      uploading: !1,
      uploadingCount: 0,
      // 针对多选情况
      files: [],
      sortablejs: null
    };
  },
  computed: {
    ElUploadProps() {
      return wt(
        [
          this.$attrs,
          th,
          {
            ref: "elUploadRef",
            action: "#",
            listType: "picture-card",
            class: { isFull: this.isFull, canSort: this.canSort },
            autoUpload: !1,
            disabled: this.Disabled,
            limit: this.Count.max,
            multiple: this.Count.max !== 1,
            accept: this.Accept.target,
            httpRequest: () => {
            },
            beforeRemove: this.onBeforeRemove,
            beforeUpload: this.onBeforeUpload,
            onChange: this.onChange,
            onPreview: this.onPreview,
            onRemove: this.onRemove,
            onExceed: this.onExceed,
            onProgress: (t, e, n) => {
              this.$emit("progress", t, e, n);
            }
          }
        ],
        {
          type: Object,
          camelizeObjectKeys: !0
        }
      );
    },
    AspectRatio() {
      let t;
      const e = wt([this.aspectRatio, Ct.aspectRatio], {
        validator: (p) => {
          const h = (b) => /^\d+\/\d+$/.test(b), m = (b) => {
            const [v, _] = b.split("/");
            return v / _;
          };
          return Array.isArray(p) ? t = p.map((b) => h(b) ? m(b) : b) : h(p) && (t = m(p)), Bi(t);
        }
      }), n = wt([this.aspectRatioTolerance, Ct.aspectRatioTolerance, 0], {
        type: Number
      });
      let r, o, i, l, c, f, u;
      return Array.isArray(t) ? ([o, i] = t, [c, f] = e, o && i ? u = `宽高比 ${c} ~ ${f}` : o ? u = `宽高比 ≥ ${c}` : i && (u = `宽高比 ≤ ${f}`)) : t !== void 0 && (r = t, l = e, o = t * (1 - n), i = t * (1 + n), u = `宽高比 ${e}`), { target: r, min: o, max: i, _target: l, _min: c, _max: f, label: u };
    },
    Count() {
      const t = wt([this.count, Ct.count], {
        validator: (o) => Bi(o)
      });
      let e, n, r;
      return Array.isArray(t) ? ([e, n] = t, e && n ? r = `数量 ${e} ~ ${n} 张` : n ? r = `数量 ≤ ${n} 张` : e && (r = `数量 ≥ ${e} 张`)) : t !== void 0 && (n = t, n && (r = `数量 ≤ ${n} 张`)), { min: e, max: n, label: r };
    },
    Size() {
      const t = wt([this.size, Ct.size], {
        validator: (l) => Bi(l)
      });
      let e, n, r, o, i;
      return Array.isArray(t) ? ([e, n] = t, e && (r = e * ki), n && (o = n * ki), e && n ? i = `大小 ${e} ~ ${n}M` : n ? i = `大小 ≤ ${n}M` : e && (i = `大小 ≥ ${e}M`)) : t !== void 0 && (n = t, n && (o = n * ki, i = `大小 ≤ ${n}M`)), { min: e, max: n, _min: r, _max: o, label: i };
    },
    Accept() {
      const t = wt([this.accept, Ct.accept, "image/*"], {
        type: String
      });
      return {
        target: t,
        label: !t || ["image/*", "*/*"].includes(t) ? null : `格式 ${t}`
      };
    },
    SrcAt() {
      return wt([this.srcAt, Ct.srcAt], {
        type: [String, Function, Symbol]
      });
    },
    Validator() {
      return wt([this.validator, Ct.validator, () => !0], {
        type: Function
      });
    },
    Upload() {
      return wt([this.upload, Ct.upload], {
        type: Function
      });
    },
    Disabled() {
      return wt([this.disabled, Ct.disabled, !!this.elForm.disabled], {
        type: Boolean
      });
    },
    Editable() {
      return wt([this.editable, Ct.editable, !0], {
        type: Boolean
      });
    },
    Arrayed() {
      return wt([this.arrayed, Ct.arrayed], {
        type: Boolean
      });
    },
    isFull() {
      return this.Count.max !== void 0 && this.files.length >= this.Count.max;
    },
    canSort() {
      return !this.Disabled && this.files.length > 1;
    },
    CropperMode() {
      return wt([this.cropperMode, Ct.cropperMode], {
        type: [Number]
      });
    },
    CompressorParams() {
      return wt([this.compressorParams, Ct.compressorParams, {}], {
        type: Object
      });
    },
    IsCompress() {
      return wt([this.isCompress, Ct.isCompress, !0], {
        type: Boolean
      });
    },
    CompressMaxWidth() {
      return wt([this.compressMaxWidth, Ct.compressMaxWidth, 1280], {
        type: Number
      });
    }
  },
  watch: {
    canSort: {
      immediate: !0,
      handler(t) {
        this.sort();
      }
    },
    value: {
      immediate: !0,
      handler(t) {
        t ? (typeof t == "string" ? t = PD(t) || [t] : Zd(t) && (t = [t]), Array.isArray(t) ? this.files = t.map((e) => Tu(e, Su(e, this.SrcAt))).filter((e) => e) : this.files = []) : this.files = [];
      }
    }
  },
  methods: {
    httpRequest(t) {
      return An(this, null, function* () {
        var n;
        this.uploading = !0;
        let e = typeof t == "string" ? t : (n = this.Upload) == null ? void 0 : n.call(this, t);
        if (e instanceof Promise) {
          let r;
          if ([r, e] = yield J$(e), r) {
            console.error(r), this.$emit("error", r, t, this.$refs.elUploadRef.fileList), this.uploading = !1;
            return;
          }
        }
        if (!e && t instanceof Blob)
          t.url = URL.createObjectURL(t), this.files.push(t);
        else {
          const r = Su(e, this.SrcAt);
          if (!r) {
            console.error("upload 的返回值或 srcAt 的解析结果不是有效的图片链接:", `
  res: `, e), tn.error("上传失败"), this.$emit("error", "上传失败", t, this.$refs.elUploadRef.fileList);
            return;
          }
          this.files.push(Tu(e, r));
        }
        this.emitInput(), this.$emit("success", e, t, this.$refs.elUploadRef.fileList), this.uploading = !1;
      });
    },
    emitInput() {
      let t = this.SrcAt ? this.files : (
        // 未配置 upload 或 upload 返回值为空时,输出二进制文件
        this.files.map((n) => n instanceof Blob ? n : n.url)
      );
      const e = this.Count.max === 1 && t.length <= 1;
      this.Arrayed === !1 ? e ? t = t[0] : t = JSON.stringify(t) : this.Arrayed || e && (t = t[0]), this.$emit("input", t);
    },
    validateSize(t) {
      let e = !1;
      return this.Size.max !== void 0 && t.size > this.Size._max ? (tn.warning({
        titleText: `"${t.name}" 的大小超过${this.Size.max}M`,
        timer: 3e3
      }), e = !0) : this.Size.min !== void 0 && t.size < this.Size._min && (tn.warning({
        titleText: `"${t.name}" 的大小不足${this.Size.min}M`,
        timer: 3e3
      }), e = !0), e ? (this.$emit("size-error", t.size), !1) : !0;
    },
    openEditor(t) {
      if (!this.Editable)
        throw new Error("编辑功能已禁用");
      const e = Array.isArray(t) ? t : [t], n = this.crop.queue.length;
      if (this.Count.max !== void 0 && // 判断是否超过数量上限: 已有图片数量 + 编辑队列中图片数量 + 输入图片数量 > 图片数量上限
      this.files.length + n + e.length > this.Count.max)
        throw this.onExceed(e, this.$refs.elUploadRef.fileList), new Error(`图片数量不能超过${this.Count.max}张`);
      if (e.forEach((r) => {
        if (r) {
          if (typeof r != "string" && !(r instanceof Blob)) {
            console.error("不是有效的数据源: ", r);
            return;
          }
          if (r instanceof Blob && !this.validateSize(r) || !this.Validator(r))
            return;
          this.crop.queue.push(r);
        }
      }), this.crop.queue.length === n)
        throw new Error("请提供有效的数据源");
      this.crop.show || (this.crop.value = this.crop.queue.shift(), this.crop.show = !0);
    },
    // 添加文件、上传成功和上传失败时都会被调用
    // 配置了 httpRequest 以后,只有添加文件时会被调用
    onChange(t, e) {
      this.Editable ? (this.$refs.elUploadRef.uploadFiles.length--, this.openEditor(t.raw)) : this.validateSize(t.raw) && this.Validator(t.raw) ? this.httpRequest(t.raw) : this.$refs.elUploadRef.uploadFiles.length--, this.$emit("change", t, e);
    },
    onCropOpen() {
      this.$refs.elUploadRef.$refs["upload-inner"].$el.blur();
    },
    onCropClosed() {
      this.$refs.elUploadRef.$refs["upload-inner"].$el.focus();
    },
    onCropConfirm(t) {
      this.httpRequest(t), this.onCropCancel();
    },
    // 取消上传某一张图片
    onCropCancel() {
      this.crop.queue.length > 0 ? this.crop.value = this.crop.queue.shift() : this.crop.show = !1;
    },
    // 取消上传所有图片
    onCropClose() {
      this.crop.queue.length = 0, this.crop.value = null;
    },
    sort() {
      this.sortablejs ? this.sortablejs.option("disabled", !this.canSort) : this.canSort && this.$nextTick(() => {
        this.sortablejs = B.create(this.$refs.elUploadRef.$el.firstChild, {
          forceFallback: !0,
          animation: 500,
          filter: ".el-upload-list__item-preview, .el-upload-list__item-delete",
          onStart: (t) => {
            document.documentElement.classList.toggle("imgpond__cursor-grabbing", !0);
          },
          onEnd: ({ newIndex: t, oldIndex: e }) => {
            t !== e && (this.files.splice(t, 0, this.files.splice(e, 1)[0]), this.emitInput()), document.documentElement.classList.toggle("imgpond__cursor-grabbing", !1);
          }
        });
      });
    },
    onExceed(t, e) {
      tn.warning(`图片数量不能超过${this.Count.max}张`), this.$emit("exceed", t, e);
    },
    onPreview(t) {
      const e = this.$refs.elUploadRef.uploadFiles.indexOf(t);
      e >= 0 && this.$refs.picViewerRef.viewer.view(e), this.$emit("preview", t);
    },
    onBeforeRemove(t, e) {
      if (this.Count.min !== void 0 && this.files.length <= this.Count.min)
        return tn.warning(`图片数量不能低于${this.Count.min}张`), !1;
      this.$emit("before-remove", t, e);
    },
    onRemove(t, e) {
      this.files = e, this.emitInput(), this.$emit("remove", t, e);
    },
    onBeforeUpload(t) {
      this.$emit("before-upload", t);
    }
  }
};
var XD = function() {
  var e = this, n = e._self._c;
  return n("div", [n("el-upload", e._b({ directives: [{ name: "show", rawName: "v-show", value: !e.Disabled, expression: "!Disabled" }, { name: "loading", rawName: "v-loading", value: e.uploading, expression: "uploading" }], attrs: { font: "leading-initial", display: "inline-block", mb: "-8px", fileList: e.files } }, "el-upload", e.ElUploadProps, !1), [e.$scopedSlots.default ? n("div", [e._t("default")], 2) : n("div", { staticClass: "el-upload__box" }, [n("i", { staticClass: "el-icon-plus" }), n("div", { staticClass: "el-upload__tip" }, [e.$scopedSlots.tip ? e._t("tip", null, { aspectRatio: e.AspectRatio.label, size: e.Size.label, count: e.Count.label, accept: e.Accept.label }) : [n("div", { staticClass: "ellipsis-1" }, [e._v(" " + e._s(e.Count.label) + " ")]), n("div", { staticClass: "ellipsis-1" }, [e._v(" " + e._s(e.Size.label) + " ")]), n("div", { staticClass: "ellipsis-1" }, [e._v(" " + e._s(e.AspectRatio.label) + " ")]), n("div", { staticClass: "ellipsis-1" }, [e._v(" " + e._s(e.Accept.label) + " ")])]], 2)])]), n("PicViewer", { directives: [{ name: "show", rawName: "v-show", value: e.Disabled, expression: "Disabled" }], ref: "picViewerRef", attrs: { value: e.files, srcAt: "url" } }), n("ImgEditor", { attrs: { show: e.crop.show, value: e.crop.value, aspectRatio: e.AspectRatio, compressorParams: e.CompressorParams, CropperMode: e.CropperMode, isCompress: e.IsCompress, compressMaxWidth: e.CompressMaxWidth }, on: { "update:show": function(r) {
    return e.$set(e.crop, "show", r);
  }, confirm: e.onCropConfirm, cancel: e.onCropCancel, open: e.onCropOpen, close: e.onCropClose, closed: e.onCropClosed } })], 1);
}, YD = [], qD = /* @__PURE__ */ fs(
  VD,
  XD,
  YD,
  !1,
  null,
  "cec51138",
  null,
  null
);
const ao = qD.exports, Ct = {}, th = {}, GD = {}, KD = {};
ao.install = (t, e = {}) => {
  const { props: n, attrs: r, listeners: o, hooks: i } = w0(e, ao.props);
  Object.assign(Ct, n), Object.assign(th, r), Object.assign(GD, o), Object.assign(KD, i), t.component(ao.name, ao);
};
export {
  ao as default
};
//# sourceMappingURL=yj-imgpond.mjs.map