@tachybase/module-web 1.3.16 → 1.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document!="undefined"){var a=document.createElement("style");a.id="@tachybase/module-web",a.appendChild(document.createTextNode(':root{--adm-radius-s: 4px;--adm-radius-m: 8px;--adm-radius-l: 12px;--adm-font-size-1: 9px;--adm-font-size-2: 10px;--adm-font-size-3: 11px;--adm-font-size-4: 12px;--adm-font-size-5: 13px;--adm-font-size-6: 14px;--adm-font-size-7: 15px;--adm-font-size-8: 16px;--adm-font-size-9: 17px;--adm-font-size-10: 18px;--adm-color-primary: #1677ff;--adm-color-success: #00b578;--adm-color-warning: #ff8f1f;--adm-color-danger: #ff3141;--adm-color-yellow: #ff9f18;--adm-color-orange: #ff6430;--adm-color-wathet: #e7f1ff;--adm-color-text: #333333;--adm-color-text-secondary: #666666;--adm-color-weak: #999999;--adm-color-light: #cccccc;--adm-color-border: #eeeeee;--adm-color-background: #ffffff;--adm-color-highlight: var(--adm-color-danger);--adm-color-white: #ffffff;--adm-color-box: #f5f5f5;--adm-color-text-light-solid: var(--adm-color-white);--adm-color-text-dark-solid: #000000;--adm-color-fill-content: var(--adm-color-box);--adm-font-size-main: var(--adm-font-size-5);--adm-font-family: -apple-system, blinkmacsystemfont, "Helvetica Neue", helvetica, segoe ui, arial, roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--adm-border-color: var(--adm-color-border)}html[data-prefers-color-scheme=dark]{--adm-color-primary: #3086ff;--adm-color-success: #34b368;--adm-color-warning: #ffa930;--adm-color-danger: #ff4a58;--adm-color-yellow: #ffa930;--adm-color-orange: #e65a2b;--adm-color-wathet: #0d2543;--adm-color-text: #e6e6e6;--adm-color-text-secondary: #b3b3b3;--adm-color-weak: #808080;--adm-color-light: #4d4d4d;--adm-color-border: #2b2b2b;--adm-color-box: #0a0a0a;--adm-color-background: #1a1a1a;--adm-color-background-body: var(--adm-color-background);--adm-border-color: var(--adm-color-border)}:root{-webkit-tap-highlight-color:rgba(0,0,0,0)}html{background-color:var(--adm-color-background-body)}body{color:var(--adm-color-text);font-size:var(--adm-font-size-main);font-family:var(--adm-font-family)}a,button{cursor:pointer}a{color:var(--adm-color-primary);transition:opacity ease-in-out .2s}a:active{opacity:.8}.adm-plain-anchor{color:unset;transition:none}.adm-plain-anchor:active{opacity:unset}body.adm-overflow-hidden{overflow:hidden!important}div.adm-px-tester{--size: 1;height:calc(var(--size) / 2 * 2px);width:0;position:fixed;left:-100vw;top:-100vh;-webkit-user-select:none;user-select:none;pointer-events:none}.adm-action-sheet-popup>.adm-popup-body{border-top-left-radius:8px;border-top-right-radius:8px;overflow:hidden}.adm-action-sheet-extra{display:flex;justify-content:center;color:var(--adm-color-weak);font-size:var(--adm-font-size-7);padding:18px 12px;border-bottom:1px solid var(--adm-color-border)}.adm-action-sheet-button-list,.adm-action-sheet-button-item-wrapper{border-bottom:1px solid var(--adm-color-border)}.adm-action-sheet-button-item-wrapper:last-child{border-bottom:none}.adm-action-sheet-button-item{text-align:center;display:block;background-color:var(--adm-color-background);padding:16px}.adm-action-sheet-button-item:active{background-color:var(--adm-color-border)}.adm-action-sheet-button-item-disabled{cursor:not-allowed;pointer-events:none;opacity:.4}.adm-action-sheet-button-item-name{color:var(--adm-color-text);font-size:var(--adm-font-size-10)}.adm-action-sheet-button-item-description{font-size:var(--adm-font-size-6);color:var(--adm-color-weak);padding-top:4px}.adm-action-sheet-button-item-danger .adm-action-sheet-button-item-name{color:var(--adm-color-danger)}.adm-action-sheet-button-item-bold .adm-action-sheet-button-item-name{font-weight:700}.adm-action-sheet-cancel{background-color:var(--adm-color-fill-content);padding-top:8px}.adm-popup{--z-index: var(--adm-popup-z-index, 1000);position:fixed;z-index:var(--z-index)}.adm-popup-body{position:fixed;background-color:var(--adm-color-background);z-index:calc(var(--z-index) + 10)}.adm-popup-body .adm-popup-close-icon{position:absolute;z-index:100}.adm-popup-body-position-bottom{width:100%;bottom:0;left:0}.adm-popup-body-position-bottom .adm-popup-close-icon{right:8px;top:8px}.adm-popup-body-position-top{width:100%;top:0;left:0}.adm-popup-body-position-top .adm-popup-close-icon{right:8px;bottom:8px}.adm-popup-body-position-left{height:100%;top:0;left:0}.adm-popup-body-position-left .adm-popup-close-icon{right:8px;top:8px}.adm-popup-body-position-right{height:100%;top:0;right:0}.adm-popup-body-position-right .adm-popup-close-icon{left:8px;top:8px}.adm-popup-close-icon{cursor:pointer;padding:4px;font-size:18px;line-height:1;color:var(--adm-color-weak)}.adm-mask{--z-index: var(--adm-mask-z-index, 1000);position:fixed;top:0;left:0;z-index:var(--z-index);display:block;width:100%;height:100%}.adm-mask-aria-button{position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;pointer-events:none}.adm-mask-content{z-index:1}.adm-safe-area{--multiple: var(--adm-safe-area-multiple, 1);display:block;width:100%}.adm-safe-area-position-top{padding-top:calc(env(safe-area-inset-top) * var(--multiple))}.adm-safe-area-position-bottom{padding-bottom:calc(env(safe-area-inset-bottom) * var(--multiple))}.adm-auto-center{display:flex;justify-content:center}.adm-auto-center-content{flex:0 1 auto}.adm-image{--width: var(--adm-image-width, auto);--height: var(--adm-image-height, auto);width:var(--width);height:var(--height);display:block;overflow:hidden}.adm-image-img{width:100%;height:100%}.adm-image-tip{position:relative;background-color:var(--adm-color-fill-content);height:100%;min-height:24px;min-width:24px}.adm-image-tip>svg{width:24px;height:24px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:var(--adm-color-weak)}.adm-badge-wrapper{display:inline-block;position:relative}.adm-badge{display:inline-flex;vertical-align:middle;box-sizing:content-box;border-radius:100px;background-color:var(--color);--right: 0;--top: 0;--color: var(--adm-badge-color, var(--adm-color-highlight))}.adm-badge-content{color:var(--adm-color-text-light-solid);box-sizing:border-box;min-width:8px;padding:1px 4px;font-size:var(--adm-font-size-1);line-height:12px;white-space:nowrap;font-weight:400;text-align:center}.adm-badge-fixed{position:absolute;right:var(--right);top:var(--top);transform:translate(50%,-50%)}.adm-badge-dot{min-width:10px;width:10px;height:10px;border-radius:5px}.adm-badge-bordered{border:solid 1px var(--adm-color-text-light-solid)}.adm-button{--color: var(--adm-color-text-light-solid);--text-color: var(--adm-button-text-color, var(--adm-color-text));--background-color: var(--adm-button-background-color, var(--adm-color-background));--border-radius: var(--adm-button-border-radius, 4px);--border-width: var(--adm-button-border-width, 1px);--border-style: var(--adm-button-border-style, solid);--border-color: var(--adm-button-border-color, var(--adm-color-border));color:var(--text-color);background-color:var(--background-color);position:relative;display:inline-block;box-sizing:border-box;height:auto;padding:7px 12px;margin:0;font-size:var(--adm-font-size-9);line-height:1.4;text-align:center;border:var(--border-width) var(--border-style) var(--border-color);border-radius:var(--border-radius);cursor:pointer;transition:opacity ease .15s;-webkit-user-select:none;user-select:none}.adm-button:focus{outline:none}.adm-button:before{position:absolute;top:0;left:0;transform:translate(calc(var(--border-width) * -1),calc(var(--border-width) * -1));width:100%;height:100%;background-color:var(--adm-color-text-dark-solid);border:var(--border-width) var(--border-style) var(--adm-color-text-dark-solid);border-radius:var(--border-radius);opacity:0;content:" ";box-sizing:content-box}.adm-button:active:before{opacity:.08}.adm-button-default.adm-button-fill-outline{--background-color: transparent;--border-color: var(--adm-color-text)}.adm-button-default.adm-button-fill-none{--background-color: transparent;--border-width: 0px}.adm-button:not(.adm-button-default){--text-color: var(--adm-color-text-light-solid);--background-color: var(--color);--border-color: var(--color)}.adm-button:not(.adm-button-default).adm-button-fill-outline{--text-color: var(--color);--background-color: transparent}.adm-button:not(.adm-button-default).adm-button-fill-none{--text-color: var(--color);--background-color: transparent;--border-width: 0px}.adm-button-primary{--color: var(--adm-color-primary)}.adm-button-success{--color: var(--adm-color-success)}.adm-button-danger{--color: var(--adm-color-danger)}.adm-button-warning{--color: var(--adm-color-warning)}.adm-button-block{display:block;width:100%}.adm-button-disabled{cursor:not-allowed;opacity:.4}.adm-button-disabled:active:before{display:none}.adm-button.adm-button-mini{padding-top:3px;padding-bottom:3px;font-size:var(--adm-font-size-main)}.adm-button.adm-button-mini.adm-button-shape-rounded{padding-left:9px;padding-right:9px}.adm-button.adm-button-small{padding-top:3px;padding-bottom:3px;font-size:var(--adm-font-size-7)}.adm-button.adm-button-large{padding-top:11px;padding-bottom:11px;font-size:var(--adm-font-size-10)}.adm-button.adm-button-shape-rounded{--border-radius: 1000px}.adm-button.adm-button-shape-rectangular{--border-radius: 0}.adm-button-loading{vertical-align:bottom}.adm-button-loading-wrapper{display:flex;height:1.4em;align-items:center;justify-content:center}.adm-button-loading-wrapper>.adm-loading{opacity:.6}.adm-dot-loading{display:inline-block}.adm-calendar .adm-calendar-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-top:4px}.adm-calendar .adm-calendar-header a.adm-calendar-arrow-button{padding:4px 8px;display:block;flex:none}.adm-calendar .adm-calendar-header a.adm-calendar-arrow-button svg{height:22px}.adm-calendar .adm-calendar-header a.adm-calendar-arrow-button.adm-calendar-arrow-button-right svg{transform:rotate(180deg)}.adm-calendar .adm-calendar-header .adm-calendar-title{font-size:var(--adm-font-size-10);flex:auto;text-align:center}.adm-calendar .adm-calendar-body{display:flex;flex-wrap:wrap}.adm-calendar-cells{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;padding:8px 8px 4px}.adm-calendar-cell{flex:none;box-sizing:border-box;width:calc(100% / 7);height:48px;margin-bottom:4px;padding:2px;color:var(--adm-color-text);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.adm-calendar-cell.adm-calendar-cell-today{color:var(--adm-color-primary)}.adm-calendar-cell.adm-calendar-cell-disabled,.adm-calendar-cell.adm-calendar-cell-disabled .adm-calendar-cell-bottom{color:var(--adm-color-light)}.adm-calendar-cell.adm-calendar-cell-selected.adm-calendar-cell.adm-calendar-cell-selected{background:var(--adm-color-primary);color:var(--adm-color-white)}.adm-calendar-cell.adm-calendar-cell-selected .adm-calendar-cell-bottom{color:var(--adm-color-white)}.adm-calendar-cell.adm-calendar-cell-selected.adm-calendar-cell.adm-calendar-cell-selected-begin{border-top-left-radius:4px;border-bottom-left-radius:4px}.adm-calendar-cell.adm-calendar-cell-selected.adm-calendar-cell.adm-calendar-cell-selected-end{border-top-right-radius:4px;border-bottom-right-radius:4px}.adm-calendar-cell.adm-calendar-cell-disabled.adm-calendar-cell.adm-calendar-cell-selected{color:var(--adm-color-light)}.adm-calendar-cell .adm-calendar-cell-top{flex:none;font-size:var(--adm-font-size-10)}.adm-calendar-cell .adm-calendar-cell-bottom{flex:none;font-size:var(--adm-font-size-4);height:12px;line-height:12px;color:var(--adm-color-weak)}.adm-calendar-mark{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;border-bottom:solid 1px var(--adm-color-border);height:45px;box-sizing:border-box;font-size:var(--adm-font-size-7);padding:0 8px}.adm-calendar-mark .adm-calendar-mark-cell{flex:1;text-align:center}.adm-divider-horizontal{display:flex;align-items:center;margin:16px 0;border-width:0;border-color:var(--adm-color-border);border-style:solid;color:var(--adm-color-weak);font-size:14px}.adm-divider-left.adm-divider-horizontal:before{max-width:10%}.adm-divider-right.adm-divider-horizontal:after{max-width:10%}.adm-divider-horizontal:after,.adm-divider-horizontal:before{flex:auto;display:block;content:"";border-style:inherit;border-color:inherit;border-width:1px 0 0}.adm-divider-horizontal .adm-divider-content{flex:none;padding:0 16px}.adm-divider-vertical{position:relative;top:-.06em;display:inline-block;height:.9em;margin:0 16px;vertical-align:middle;border-top:0;border-left:1px solid var(--adm-color-border)}.adm-scroll-mask{position:absolute;top:0;bottom:0;z-index:1;width:30px;height:100%;pointer-events:none}.adm-scroll-mask-left{left:0;background:linear-gradient(to right,var(--adm-color-background),rgba(255,255,255,0))}.adm-scroll-mask-right{right:0;background:linear-gradient(to left,var(--adm-color-background),rgba(255,255,255,0))}.adm-picker{--header-button-font-size: var(--adm-font-size-7);--title-font-size: var(--adm-font-size-7);--item-font-size: var(--adm-font-size-8);--item-height: 34px;width:100%;height:300px;overflow:hidden;position:relative;display:flex;flex-direction:column;---item-font-size: var(--item-font-size);---item-height: var(--item-height)}.adm-picker .adm-picker-view.adm-picker-view{--item-font-size: var(---item-font-size);--item-height: var(---item-height)}.adm-picker-header{flex-shrink:0;border-bottom:solid 1px var(--adm-color-border);display:flex;justify-content:space-between;align-items:center;padding:4px}.adm-picker-header-button{font-size:var(--header-button-font-size);display:inline-block;padding:8px}.adm-picker-header-button-disabled,.adm-picker-header-button-disabled:active{opacity:.4;cursor:not-allowed}.adm-picker-header-title{padding:4px;font-size:var(--title-font-size);color:var(--adm-color-text);text-align:center;flex:1}.adm-picker-body{flex:1;width:100%;height:100%}.adm-picker-body>.adm-picker-view{--height: 100%}.adm-picker-popup .adm-popup-body{border-top-left-radius:8px;border-top-right-radius:8px}.adm-spin-loading{--color: var(--adm-color-weak);--size: 32px;width:var(--size);height:var(--size)}.adm-spin-loading-svg{width:100%;height:100%;animation:adm-spin-loading-rotate .8s infinite linear}.adm-spin-loading-svg>.adm-spin-loading-fill{stroke:var(--color)}@keyframes adm-spin-loading-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.adm-picker-view{--height: 240px;--item-height: 34px;--item-font-size: var(--adm-font-size-8);height:var(--height);width:100%;display:flex;position:relative;overflow:hidden;background:var(--adm-color-background)}.adm-picker-view-column{height:100%;flex:1;-webkit-user-select:none;user-select:none;touch-action:none;position:relative;z-index:0}.adm-picker-view-column-wheel{width:100%;cursor:-webkit-grab;cursor:grab;position:absolute;top:calc(50% - var(--item-height) / 2);left:0}.adm-picker-view-column-wheel:before{content:" ";display:block;position:absolute;width:100%;height:100vh;top:-100vh}.adm-picker-view-column-wheel:after{content:" ";display:block;position:absolute;width:100%;height:100vh;bottom:-100vh}.adm-picker-view-column-item{font-size:var(--item-font-size);padding:0 6px;height:var(--item-height);display:flex;justify-content:center;align-items:center}.adm-picker-view-column-item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.adm-picker-view-column-accessible{width:100%;height:100%;pointer-events:none;opacity:0;display:flex;flex-direction:column;position:relative;top:calc(var(--item-height) * -1);z-index:0;padding-bottom:1px}.adm-picker-view-column-accessible>*{flex:1;text-overflow:ellipsis}.adm-picker-view-column-accessible-current{position:absolute;width:100%;height:100%}.adm-picker-view-column-accessible-button{width:100%;height:100%}.adm-picker-view-mask{position:absolute;z-index:10000;left:0;top:0;width:100%;height:100%;display:flex;flex-direction:column;pointer-events:none}.adm-picker-view-mask-top,.adm-picker-view-mask-bottom{flex:auto}.adm-picker-view-mask-middle{height:var(--item-height);box-sizing:border-box;flex:none;border-top:solid 1px var(--adm-color-border);border-bottom:solid 1px var(--adm-color-border)}.adm-picker-view-mask-top{background:var(--adm-color-background);-webkit-mask:linear-gradient(0deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.8) 50%,#000000 100%);mask:linear-gradient(0deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.8) 50%,#000000 100%)}.adm-picker-view-mask-bottom{background:var(--adm-color-background);-webkit-mask:linear-gradient(180deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.8) 50%,#000000 100%);mask:linear-gradient(180deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.8) 50%,#000000 100%)}.adm-picker-view-loading-content{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.adm-picker-view-item-height-measure{position:relative;left:0;top:0;height:var(--item-height);width:0;pointer-events:none}.adm-cascader-view{--height: auto}.adm-cascader-view-tabs.adm-tabs{--title-font-size: var(--adm-font-size-6);--content-padding: none}.adm-cascader-view-header-title{max-width:84px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.adm-cascader-view-content{height:var(--height);overflow-y:auto}.adm-cascader-view-content>.adm-check-list{--border-inner: none;--border-bottom: none;--border-top: none}.adm-cascader-view-item{font-size:var(--adm-font-size-6)}.adm-cascader-view-item-active{color:var(--adm-color-primary)}.adm-cascader-view .adm-list-inner{margin-bottom:0}.adm-cascader-view-skeleton{padding:16px 12px}.adm-cascader-view-skeleton .adm-skeleton{margin-bottom:16px;--height: 18px;--width: 80%;--border-radius: 2px}.adm-cascader-view-skeleton .adm-skeleton.adm-cascader-view-skeleton-line-3{--width: 90%}.adm-cascader-view-skeleton .adm-skeleton.adm-cascader-view-skeleton-line-4{--width: 60%}.adm-tabs{--title-font-size: var(--adm-font-size-9);--content-padding: 12px;--active-line-height: 2px;--active-line-border-radius: var(--active-line-height);--active-line-color: var(--adm-color-primary);--active-title-color: var(--adm-color-primary);position:relative;min-width:0}.adm-tabs-header{position:relative;border-bottom:solid 1px var(--adm-color-border)}.adm-tabs-tab-list{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;position:relative;overflow-x:scroll;scrollbar-width:none}.adm-tabs-tab-list::-webkit-scrollbar{display:none}.adm-tabs-tab-wrapper{padding:0 12px}.adm-tabs-tab-wrapper-stretch{flex:auto}.adm-tabs-tab{white-space:nowrap;padding:8px 0 10px;width:-webkit-min-content;width:min-content;margin:0 auto;font-size:var(--title-font-size);position:relative;cursor:pointer}.adm-tabs-tab-active{color:var(--active-title-color)}.adm-tabs-tab-disabled{opacity:.5;cursor:not-allowed}.adm-tabs-tab-line{position:absolute;bottom:0;height:var(--active-line-height);background:var(--active-line-color);border-radius:var(--active-line-border-radius)}.adm-tabs-content{padding:var(--content-padding)}.adm-tabs-header-mask{position:absolute;top:0;bottom:0;z-index:1;width:30px;height:100%;pointer-events:none}.adm-tabs-header-mask-left{left:0;background:linear-gradient(to right,var(--adm-color-background),rgba(255,255,255,0))}.adm-tabs-header-mask-right{right:0;background:linear-gradient(to left,var(--adm-color-background),rgba(255,255,255,0))}.adm-check-list-item-extra{font-size:var(--adm-font-size-10);line-height:1;color:var(--adm-color-primary)}.adm-check-list-item-readonly{cursor:unset}.adm-list{--header-font-size: var(--adm-font-size-7);--prefix-width: "auto";--prefix-padding-right: 12px;--align-items: center;--active-background-color: var(--adm-color-border);--border-inner: solid 1px var(--adm-color-border);--border-top: solid 1px var(--adm-color-border);--border-bottom: solid 1px var(--adm-color-border);--padding-left: 12px;--padding-right: 12px;--font-size: var(--adm-font-size-9);--extra-max-width: 70%}.adm-list-header{color:var(--adm-color-weak);font-size:var(--header-font-size);padding:8px var(--padding-right) 8px var(--padding-left)}.adm-list-body{background-color:var(--adm-color-background);overflow:hidden;font-size:var(--font-size)}.adm-list-body-inner{margin-top:-1px}.adm-list-default .adm-list-body{border-top:var(--border-top);border-bottom:var(--border-bottom)}.adm-list-card{margin:12px}.adm-list-card .adm-list-body{border-radius:8px}.adm-list-card .adm-list-header{padding-left:0}.adm-list-item{display:block;padding-left:var(--padding-left);position:relative;background-color:var(--adm-color-background);line-height:1.5}.adm-list-item-title,.adm-list-item-description{color:var(--adm-color-weak);font-size:var(--adm-font-size-main)}.adm-list-item-content{display:flex;align-items:var(--align-items);justify-content:flex-start;border-top:var(--border-inner);padding-right:var(--padding-right)}.adm-list-item-content-prefix{width:var(--prefix-width);flex:none;padding-right:var(--prefix-padding-right)}.adm-list-item-content-main{flex:auto;padding:12px 0}.adm-list-item-content-extra{flex:none;padding-left:12px;font-size:var(--adm-font-size-7);color:var(--adm-color-weak);max-width:var(--extra-max-width)}.adm-list-item-content-arrow{flex:none;display:flex;align-items:center;margin-left:4px;color:var(--adm-color-light);font-size:19px}.adm-list-item-disabled{cursor:not-allowed}.adm-list-item-disabled.adm-list-item-disabled>.adm-list-item-content>*{opacity:.4;pointer-events:none}a.adm-list-item:active:not(.adm-list-item-disabled){background-color:var(--active-background-color)}a.adm-list-item:active:not(.adm-list-item-disabled):after{content:" ";display:block;position:absolute;width:100%;bottom:-1px;left:0;border-bottom:var(--border-inner)}.adm-skeleton{--width: 100%;--height: 0;--border-radius: 0;background-color:#bebebe33;border-radius:var(--border-radius);width:var(--width);height:var(--height);display:block}.adm-skeleton.adm-skeleton-animated{background:linear-gradient(90deg,#bebebe33 25%,#8181813d 37%,#bebebe33 63%);background-size:400% 100%;animation:adm-skeleton-loading 1.4s ease infinite}.adm-skeleton.adm-skeleton-title{--width: 45%;--height: 32px;--border-radius: 2px;margin-bottom:16px;margin-top:16px}.adm-skeleton.adm-skeleton-paragraph-line{--height: 18px;--border-radius: 2px;margin-top:12px;margin-bottom:12px}.adm-skeleton.adm-skeleton-paragraph-line:last-child{--width: 65%}@keyframes adm-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.adm-checkbox{--icon-size: 22px;--font-size: var(--adm-font-size-9);--gap: 8px;display:inline-flex;vertical-align:text-bottom;justify-content:flex-start;align-items:center;cursor:pointer}.adm-checkbox input{display:none}.adm-checkbox .adm-checkbox-icon{flex:none;border:1px solid var(--adm-color-light);border-radius:var(--icon-size);box-sizing:border-box;width:var(--icon-size);height:var(--icon-size);color:var(--adm-color-text-light-solid)}.adm-checkbox .adm-checkbox-icon>svg{display:block;width:100%;height:100%}.adm-checkbox.adm-checkbox-block{display:flex}.adm-checkbox.adm-checkbox-checked .adm-checkbox-icon{border-color:var(--adm-color-primary);background-color:var(--adm-color-primary)}.adm-checkbox.adm-checkbox-disabled{cursor:not-allowed}.adm-checkbox.adm-checkbox-disabled .adm-checkbox-content{opacity:.4}.adm-checkbox.adm-checkbox-disabled .adm-checkbox-icon.adm-checkbox-icon{color:var(--adm-color-light);border-color:var(--adm-color-light);background-color:var(--adm-color-fill-content)}.adm-checkbox .adm-checkbox-custom-icon{font-size:var(--icon-size)}.adm-checkbox.adm-checkbox-indeterminate .adm-checkbox-icon{background-color:var(--adm-color-background);color:var(--adm-color-primary)}.adm-checkbox-content{flex:0 1 auto;font-size:var(--font-size);padding-left:var(--gap)}.adm-error-block{--color: var(--adm-color-text);--image-height: var(--adm-error-block-image-height, 100px);--image-height-full-page: var(--adm-error-block-image-height-full-page, 200px);--image-width: var(--adm-error-block-image-width, auto);--image-width-full-page: var(--adm-error-block-image-width-full-page, auto);box-sizing:border-box;text-align:center}.adm-error-block-image{height:var(--image-height);width:var(--image-width);max-width:100%}.adm-error-block-image svg,.adm-error-block-image img{height:100%}.adm-error-block-description{font-size:var(--adm-font-size-4);color:var(--adm-color-weak);line-height:1.4;margin-top:12px}.adm-error-block-description-title{font-size:var(--adm-font-size-7)}.adm-error-block-description-subtitle{margin-top:8px}.adm-error-block-content{margin-top:12px}.adm-error-block-full-page{padding-top:calc(50vh - var(--image-height-full-page))}.adm-error-block-full-page .adm-error-block-image{height:var(--image-height-full-page);width:var(--image-width-full-page)}.adm-error-block-full-page .adm-error-block-description{margin-top:20px;font-size:var(--adm-font-size-main)}.adm-error-block-full-page .adm-error-block-description-title{font-size:20px;color:var(--adm-color-text)}.adm-grid{--gap: 0;--gap-horizontal: var(--gap);--gap-vertical: var(--gap);display:grid;grid-gap:10px;-webkit-column-gap:var(--gap-horizontal);column-gap:var(--gap-horizontal);row-gap:var(--gap-vertical);grid-template-columns:repeat(var(--columns),minmax(0,1fr));align-items:stretch}.adm-grid-item{grid-column-end:span var(--item-span)}.adm-image-viewer-content{width:100vw;height:100vh;touch-action:none;-webkit-user-select:none;user-select:none}.adm-image-viewer-footer{position:absolute;width:100%;bottom:0;z-index:1}.adm-image-viewer-slides{height:100%;position:relative;z-index:1;cursor:-webkit-grab;cursor:grab;touch-action:none}.adm-image-viewer-slides-inner{height:100%;white-space:nowrap}.adm-image-viewer-slides-inner>*{margin-right:16px}.adm-image-viewer-slide{position:relative;width:100%;height:100%;display:inline-block}.adm-image-viewer-control{position:absolute;z-index:1;left:0;top:0;width:100%;height:100%;cursor:-webkit-grab;cursor:grab;touch-action:none}.adm-image-viewer-image-wrapper{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.adm-image-viewer-image-wrapper img{display:block;max-width:100%;max-height:100%}.adm-image-viewer-indicator{position:absolute;z-index:2;left:50%;top:12px;transform:translate(-50%);color:var(--adm-color-border);font-size:var(--adm-font-size-6)}.adm-space-item{flex:none}.adm-space{display:inline-flex;--gap: 8px;--gap-vertical: var(--gap);--gap-horizontal: var(--gap)}.adm-space-vertical{flex-direction:column}.adm-space-vertical>.adm-space-item{margin-bottom:var(--gap-vertical)}.adm-space-vertical>.adm-space-item:last-child{margin-bottom:0}.adm-space-horizontal{flex-direction:row}.adm-space-horizontal>.adm-space-item{margin-right:var(--gap-horizontal)}.adm-space-horizontal>.adm-space-item:last-child{margin-right:0}.adm-space-horizontal.adm-space-wrap{flex-wrap:wrap;margin-bottom:calc(var(--gap-vertical) * -1)}.adm-space-horizontal.adm-space-wrap>.adm-space-item{padding-bottom:var(--gap-vertical)}.adm-space.adm-space-block{display:flex}.adm-space-align-center{align-items:center}.adm-space-align-start{align-items:flex-start}.adm-space-align-end{align-items:flex-end}.adm-space-align-baseline{align-items:baseline}.adm-space-justify-center{justify-content:center}.adm-space-justify-start{justify-content:flex-start}.adm-space-justify-end{justify-content:flex-end}.adm-space-justify-between{justify-content:space-between}.adm-space-justify-around{justify-content:space-around}.adm-space-justify-evenly{justify-content:space-evenly}.adm-space-justify-stretch{justify-content:stretch}.adm-image-uploader{--cell-size: 80px;--gap: 12px;---gap: var(--gap);---gap-horizontal: var(--gap-horizontal, var(--gap));---gap-vertical: var(--gap-vertical, var(--gap))}.adm-image-uploader-grid,.adm-image-uploader-space{--gap: var(---gap);--gap-horizontal: var(---gap-horizontal);--gap-vertical: var(---gap-vertical)}.adm-image-uploader-cell{position:relative;width:var(--cell-size);height:var(--cell-size);border-radius:4px;overflow:hidden}.adm-image-uploader-cell-fail{border:red solid 1px;box-sizing:border-box}.adm-image-uploader-cell-delete{position:absolute;top:0;right:0;width:14px;height:14px;background-color:#000000b3;border-radius:0 0 0 12px;font-size:8px;color:var(--adm-color-white);cursor:pointer}.adm-image-uploader-cell-delete-icon{position:absolute;left:4px;top:3px}.adm-image-uploader-cell-mask{position:absolute;top:0;right:0;bottom:0;left:0;color:var(--adm-color-white);background-color:#323233e0}.adm-image-uploader-cell-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;box-sizing:border-box;padding-top:8px}.adm-image-uploader-cell-mask-message{display:inline-block;padding:6px 4px;font-size:var(--adm-font-size-4)}.adm-image-uploader-cell-image{width:var(--cell-size);height:var(--cell-size)}.adm-image-uploader-upload-button-wrap{position:relative}.adm-image-uploader-upload-button-wrap .adm-image-uploader-upload-button{background-color:var(--adm-color-box);text-align:center;line-height:var(--cell-size);display:block}.adm-image-uploader-upload-button-wrap .adm-image-uploader-upload-button-icon{color:var(--adm-color-weak);font-size:32px}.adm-image-uploader-upload-button-wrap .adm-image-uploader-input{cursor:pointer;position:absolute;opacity:0;left:0;top:0;width:100%;height:100%;border-radius:4px}.adm-image-uploader .adm-image-uploader-gap-measure{position:absolute;left:0;top:0;height:var(--gap-horizontal);width:0}.adm-input{--font-size: var(--adm-font-size-9);--color: var(--adm-color-text);--placeholder-color: var(--adm-color-light);--text-align: left;--background-color: transparent;display:flex;justify-content:flex-start;align-items:center;width:100%;max-width:100%;max-height:100%;min-height:24px;background-color:var(--background-color)}.adm-input-disabled{opacity:.4;cursor:not-allowed}.adm-input-element{flex:auto;display:inline-block;box-sizing:border-box;width:100%;max-width:100%;max-height:100%;padding:0;margin:0;color:var(--color);font-size:var(--font-size);line-height:1.5;background:transparent;border:0;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:1.5em;text-align:var(--text-align)}.adm-input-element::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit}.adm-input-element::placeholder{color:var(--placeholder-color);font-family:inherit}.adm-input-element:-webkit-autofill{background-color:transparent}.adm-input-element:read-only{cursor:default}.adm-input-element:invalid{box-shadow:none}.adm-input-element::-ms-clear{display:none}.adm-input-element::-ms-reveal{display:none}.adm-input-element::-webkit-search-cancel-button{display:none}.adm-input-element::-webkit-search-decoration{display:none}.adm-input-element:disabled{opacity:1}.adm-input-element[type=date],.adm-input-element[type=time],.adm-input-element[type=datetime-local]{min-height:1.5em}.adm-input-element[type=search]{-webkit-appearance:none}.adm-input-element[readonly]{pointer-events:none}.adm-input-clear{flex:none;margin-left:8px;color:var(--adm-color-light);padding:4px;cursor:pointer}.adm-input-clear:active{color:var(--adm-color-weak)}.adm-input-clear .antd-mobile-icon{display:block;font-size:var(--adm-font-size-7)}.adm-jumbo-tabs{--gap: 8px;position:relative;min-width:0}.adm-jumbo-tabs-header{position:relative;border-bottom:solid 1px var(--adm-color-border)}.adm-jumbo-tabs-tab-list{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;position:relative;overflow-x:scroll;padding:0 var(--gap);scrollbar-width:none}.adm-jumbo-tabs-tab-list::-webkit-scrollbar{display:none}.adm-jumbo-tabs-tab-wrapper{flex:auto;padding:0 calc(var(--gap) / 2);text-align:center}.adm-jumbo-tabs-tab{display:flex;flex-direction:column;align-items:center;position:relative;width:-webkit-min-content;width:min-content;margin:0 auto;padding:12px 0;cursor:pointer;font-size:var(--adm-font-size-9);white-space:nowrap}.adm-jumbo-tabs-tab-title{line-height:24px;padding:0 4px}.adm-jumbo-tabs-tab-description{width:-webkit-min-content;width:min-content;padding:0 8px;border-radius:10px;color:var(--adm-color-weak);font-size:var(--adm-font-size-main);background-color:var(--adm-color-fill-content)}.adm-jumbo-tabs-tab-active{color:var(--adm-color-primary)}.adm-jumbo-tabs-tab-active .adm-jumbo-tabs-tab-description{color:var(--adm-color-text-light-solid);background-color:var(--adm-color-primary)}.adm-jumbo-tabs-tab-disabled{opacity:.5;cursor:not-allowed}.adm-jumbo-tabs-content{padding:12px}.adm-nav-bar{--height: 45px;--border-bottom: none;display:flex;align-items:center;height:var(--height);border-bottom:var(--border-bottom);padding:0 12px;white-space:nowrap}.adm-nav-bar-left,.adm-nav-bar-right{flex:1}.adm-nav-bar-title{flex:auto;text-align:center;overflow:hidden;text-overflow:ellipsis}.adm-nav-bar-back{display:flex;align-items:center;margin-right:16px;padding:6px 0;cursor:pointer}.adm-nav-bar-back-arrow{font-size:24px;margin-right:4px}.adm-nav-bar-left{font-size:var(--adm-font-size-7);display:flex;justify-content:flex-start;align-items:center}.adm-nav-bar-title{justify-content:center;white-space:nowrap;font-size:var(--adm-font-size-10);padding:0 12px}.adm-nav-bar-right{text-align:right}.adm-page-indicator{display:flex;width:auto;--dot-color: var(--adm-color-light);--active-dot-color: var(--adm-color-primary);--dot-size: 3px;--active-dot-size: 13px;--dot-border-radius: 1px;--active-dot-border-radius: var(--dot-border-radius);--dot-spacing: 3px}.adm-page-indicator-dot{display:block;width:var(--dot-size);height:var(--dot-size);border-radius:var(--dot-border-radius);background:var(--dot-color)}.adm-page-indicator-dot:last-child{margin-right:0}.adm-page-indicator-dot-active{border-radius:var(--active-dot-border-radius);background:var(--active-dot-color)}.adm-page-indicator-color-white{--dot-color: rgba(255, 255, 255, .5);--active-dot-color: var(--adm-color-text-light-solid)}.adm-page-indicator-horizontal{flex-direction:row}.adm-page-indicator-horizontal .adm-page-indicator-dot{margin-right:var(--dot-spacing)}.adm-page-indicator-horizontal .adm-page-indicator-dot-active{width:var(--active-dot-size)}.adm-page-indicator-vertical{flex-direction:column}.adm-page-indicator-vertical .adm-page-indicator-dot{margin-bottom:var(--dot-spacing)}.adm-page-indicator-vertical .adm-page-indicator-dot-active{height:var(--active-dot-size)}.adm-radio{--icon-size: 22px;--font-size: var(--adm-font-size-9);--gap: 8px;display:inline-flex;vertical-align:text-bottom;justify-content:flex-start;align-items:center;cursor:pointer}.adm-radio input[type=radio]{display:none}.adm-radio .adm-radio-icon{flex:none;border:1px solid var(--adm-color-light);border-radius:var(--icon-size);box-sizing:border-box;width:var(--icon-size);height:var(--icon-size);color:var(--adm-color-text-light-solid)}.adm-radio .adm-radio-icon>svg{display:block;width:100%;height:100%}.adm-radio.adm-radio-block{display:flex}.adm-radio.adm-radio-checked .adm-radio-icon{border-color:var(--adm-color-primary);background-color:var(--adm-color-primary)}.adm-radio.adm-radio-disabled{cursor:not-allowed}.adm-radio.adm-radio-disabled .adm-radio-content{opacity:.4}.adm-radio.adm-radio-disabled .adm-radio-icon{color:var(--adm-color-light);border-color:var(--adm-color-light);background-color:var(--adm-color-fill-content)}.adm-radio .adm-radio-custom-icon{font-size:var(--icon-size)}.adm-radio-content{flex:0 1 auto;font-size:var(--font-size);padding-left:var(--gap)}.adm-search-bar{--height: 32px;--padding-left: 8px;--background: var(--adm-color-fill-content);--border-radius: 6px;--placeholder-color: var(--adm-color-weak);---placeholder-color: var(--placeholder-color);display:flex;justify-content:center;align-items:center;height:var(--height)}.adm-search-bar .adm-search-bar-input-box{flex:auto;background:var(--background);border-radius:var(--border-radius);border:solid 1px transparent;display:flex;justify-content:center;align-items:center;padding-left:var(--padding-left)}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input-box-icon{flex:none;color:var(--adm-color-light);font-size:var(--adm-font-size-8)}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input{flex:auto;padding:4px 8px 4px 4px;height:calc(var(--height) - 2px);box-sizing:border-box}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input.adm-input{--placeholder-color: var(---placeholder-color);--font-size: var(--adm-font-size-7)}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input .adm-input-element{line-height:19px}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input.adm-search-bar-input-without-icon{padding-left:8px}.adm-search-bar .adm-search-bar-suffix{flex:none;margin-left:4px}.adm-search-bar .adm-search-bar-cancel-button.adm-button{padding:3px 12px}.adm-search-bar-active .adm-input.adm-input.adm-input{--placeholder-color: var(--adm-color-light)}.adm-search-bar-active .adm-search-bar-input-box{border-color:var(--adm-color-primary);background:var(--adm-color-background)}.adm-swiper{--height: auto;--width: 100%;--border-radius: 0;--track-padding: 0;--slide-size: 100%;--track-offset: 0%;display:block;width:var(--width);height:var(--height);position:relative;border-radius:var(--border-radius);z-index:0;overflow:hidden}.adm-swiper-track{width:100%;height:100%;white-space:nowrap;padding:var(--track-padding)}.adm-swiper-track-allow-touch-move{cursor:-webkit-grab;cursor:grab}.adm-swiper-track-inner{width:100%;height:100%;overflow:visible;position:relative;display:flex;flex-wrap:nowrap}.adm-swiper-slide,.adm-swiper-slide-placeholder{width:100%;height:100%;display:block;position:relative;white-space:unset;flex:none}.adm-swiper-item{display:block;width:100%;height:100%;white-space:normal}.adm-swiper-horizontal .adm-swiper-track-allow-touch-move{touch-action:pan-y}.adm-swiper-horizontal .adm-swiper-indicator{position:absolute;bottom:6px;left:50%;transform:translate(-50%)}.adm-swiper-horizontal .adm-swiper-track{transform:translate(var(--track-offset))}.adm-swiper-horizontal .adm-swiper-track-inner{flex-direction:row;width:var(--slide-size)}.adm-swiper-vertical .adm-swiper-track-allow-touch-move{touch-action:pan-x}.adm-swiper-vertical .adm-swiper-indicator{position:absolute;right:6px;top:50%;transform:translateY(-50%)}.adm-swiper-vertical .adm-swiper-track{transform:translateY(var(--track-offset))}.adm-swiper-vertical .adm-swiper-track-inner{flex-direction:column;height:var(--slide-size)}.adm-tab-bar-wrap{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;min-height:48px}.adm-tab-bar-item{flex:1;color:var(--adm-color-text-secondary);white-space:nowrap;padding:4px 8px;width:-webkit-min-content;width:min-content;position:relative;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-direction:column}.adm-tab-bar-item-icon{font-size:24px;height:24px;line-height:1}.adm-tab-bar-item-title{font-size:var(--adm-font-size-2);line-height:15px}.adm-tab-bar-item-title-with-icon{margin-top:2px}.adm-tab-bar-item-active{color:var(--adm-color-primary)}.adm-tab-bar-icon-badge{--top: 6px}.adm-tab-bar-title-badge{--right: -2px;--top: -2px}.adm-tag{--border-radius: var(--adm-tag-border-radius, 2px);padding:2px 4px;font-size:var(--adm-font-size-3);line-height:1;font-weight:400;background:var(--background-color);color:var(--text-color);display:inline-block;white-space:nowrap;border-radius:var(--border-radius);border:1px solid var(--border-color);box-sizing:border-box}.adm-tag-round{border-radius:100px}.adm-text-area{--font-size: var(--adm-font-size-9);--color: var(--adm-color-text);--placeholder-color: var(--adm-color-light);--disabled-color: var(--adm-color-weak);--text-align: left;--count-text-align: right;position:relative;width:100%;max-width:100%;max-height:100%}.adm-text-area-element{font-family:var(--adm-font-family);resize:none;flex:auto;display:block;box-sizing:border-box;width:100%;max-width:100%;max-height:100%;padding:0;margin:0;color:var(--color);font-size:var(--font-size);line-height:1.5;background:transparent;border:0;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:1.5em;text-align:var(--text-align)}.adm-text-area-element::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit}.adm-text-area-element::placeholder{color:var(--placeholder-color);font-family:inherit}.adm-text-area-element:-webkit-autofill{background-color:transparent}.adm-text-area-element:disabled{color:var(--disabled-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--disabled-color)}.adm-text-area-element:read-only{cursor:default}.adm-text-area-element:invalid{box-shadow:none}.adm-text-area-element::-ms-clear{display:none}.adm-text-area-element-hidden{visibility:hidden;position:absolute;top:0;left:0;z-index:-1000}.adm-text-area-count{text-align:var(--count-text-align);color:var(--adm-color-weak);font-size:var(--adm-font-size-9);padding-top:8px}.adm-toast-mask .adm-toast-wrap{position:fixed;top:0;left:0;width:100%;height:100%;text-align:center}.adm-toast-mask .adm-toast-main{display:inline-block;position:relative;top:50%;transform:translateY(-50%);width:auto;max-width:204px;max-height:70%;overflow:auto;color:#fff;word-break:break-all;background-color:#000000b3;border-radius:8px;pointer-events:all;font-size:var(--adm-font-size-7);line-height:1.5;box-sizing:border-box;text-align:initial}.adm-toast-mask .adm-toast-main-text{padding:12px;min-width:0}.adm-toast-mask .adm-toast-main-icon{padding:35px 12px;min-width:150px}.adm-toast-mask .adm-toast-main-icon .adm-toast-icon{text-align:center;margin-bottom:8px;font-size:36px;line-height:1}.adm-toast-loading{--size: 48px;margin:0 auto 8px}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- (function(R,f){typeof exports=="object"&&typeof module!="undefined"?f(exports,require("react/jsx-runtime"),require("@tachybase/client"),require("react-router-dom"),require("react"),require("react-dom"),require("@ant-design/icons"),require("antd"),require("react-i18next"),require("@tachybase/schema"),require("ahooks"),require("lodash"),require("@tachybase/components"),require("@tachybase/utils/client")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@tachybase/client","react-router-dom","react","react-dom","@ant-design/icons","antd","react-i18next","@tachybase/schema","ahooks","lodash","@tachybase/components","@tachybase/utils/client"],f):(R=typeof globalThis!="undefined"?globalThis:R||self,f(R["@tachybase/module-web"]={},R.jsxRuntime,R["@tachybase/client"],R["react-router-dom"],R.react,R["react-dom"],R["@ant-design/icons"],R.antd,R["react-i18next"],R["@tachybase/schema"],R.ahooks,R.lodash,R["@tachybase/components"],R["@tachybase/utils"]))})(this,function(R,f,p,ie,i,Ot,Te,le,We,$,te,Le,ys,be){"use strict";var hh=Object.defineProperty,gh=Object.defineProperties;var vh=Object.getOwnPropertyDescriptors;var Ko=Object.getOwnPropertySymbols;var ql=Object.prototype.hasOwnProperty,Xl=Object.prototype.propertyIsEnumerable;var Gl=(R,f,p)=>f in R?hh(R,f,{enumerable:!0,configurable:!0,writable:!0,value:p}):R[f]=p,L=(R,f)=>{for(var p in f||(f={}))ql.call(f,p)&&Gl(R,p,f[p]);if(Ko)for(var p of Ko(f))Xl.call(f,p)&&Gl(R,p,f[p]);return R},ae=(R,f)=>gh(R,vh(f));var bs=(R,f)=>{var p={};for(var ie in R)ql.call(R,ie)&&f.indexOf(ie)<0&&(p[ie]=R[ie]);if(R!=null&&Ko)for(var ie of Ko(R))f.indexOf(ie)<0&&Xl.call(R,ie)&&(p[ie]=R[ie]);return p};var fe=(R,f,p)=>new Promise((ie,i)=>{var Ot=We=>{try{le(p.next(We))}catch($){i($)}},Te=We=>{try{le(p.throw(We))}catch($){i($)}},le=We=>We.done?ie(We.value):Promise.resolve(We.value).then(Ot,Te);le((p=p.apply(R,f)).next())});function xs(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const J=xs(i),Jl=xs(Ot),Ql=({children:t})=>{const e=i.useRef(),[n,o]=i.useState(1);return i.useEffect(()=>{const r=new ResizeObserver(a=>{const l=a[0].target,u=l.parentNode.offsetWidth,d=l.offsetWidth,m=u/d;o(v=>{if(m<1)return m;if(v<1)return 1})}),s=e.current;return r.observe(s),()=>r.unobserve(s)},[]),f.jsx("div",{className:"auto-scaling-text",style:{transition:"transform 0.5s ease",transform:`scale(${n},${n})`},ref:e,children:t})},Rl=n=>{var o=n,{value:t}=o,e=bs(o,["value"]);const r=navigator.language||"en-US";let s=parseFloat(t).toLocaleString(r,{useGrouping:!0,maximumFractionDigits:6});const a=t.match(/\.\d*?(0*)$/);return a&&(s+=/[1-9]/.test(a[0])?a[1]:a[0]),f.jsx("div",ae(L({},e),{className:"calculator-display",children:f.jsx(Ql,{children:s})}))},ye=o=>{var r=o,{onPress:t,className:e}=r,n=bs(r,["onPress","className"]);return f.jsx("button",L({onClick:t,className:`calculator-key ${e}`},n))},Cs=p.createStyles(({css:t})=>({container:t`
2
+ (function(R,m){typeof exports=="object"&&typeof module!="undefined"?m(exports,require("react/jsx-runtime"),require("@tachybase/client"),require("react-router-dom"),require("react"),require("react-dom"),require("@ant-design/icons"),require("antd"),require("react-i18next"),require("@tachybase/schema"),require("ahooks"),require("lodash"),require("@tachybase/components"),require("@tachybase/utils/client")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@tachybase/client","react-router-dom","react","react-dom","@ant-design/icons","antd","react-i18next","@tachybase/schema","ahooks","lodash","@tachybase/components","@tachybase/utils/client"],m):(R=typeof globalThis!="undefined"?globalThis:R||self,m(R["@tachybase/module-web"]={},R.jsxRuntime,R["@tachybase/client"],R["react-router-dom"],R.react,R["react-dom"],R["@ant-design/icons"],R.antd,R["react-i18next"],R["@tachybase/schema"],R.ahooks,R.lodash,R["@tachybase/components"],R["@tachybase/utils"]))})(this,function(R,m,h,ie,i,Tt,Te,le,Ke,$,te,Le,ms,ye){"use strict";var ah=Object.defineProperty,lh=Object.defineProperties;var ch=Object.getOwnPropertyDescriptors;var Or=Object.getOwnPropertySymbols;var Kl=Object.prototype.hasOwnProperty,Wl=Object.prototype.propertyIsEnumerable;var jl=(R,m,h)=>m in R?ah(R,m,{enumerable:!0,configurable:!0,writable:!0,value:h}):R[m]=h,L=(R,m)=>{for(var h in m||(m={}))Kl.call(m,h)&&jl(R,h,m[h]);if(Or)for(var h of Or(m))Wl.call(m,h)&&jl(R,h,m[h]);return R},ae=(R,m)=>lh(R,ch(m));var fs=(R,m)=>{var h={};for(var ie in R)Kl.call(R,ie)&&m.indexOf(ie)<0&&(h[ie]=R[ie]);if(R!=null&&Or)for(var ie of Or(R))m.indexOf(ie)<0&&Wl.call(R,ie)&&(h[ie]=R[ie]);return h};var fe=(R,m,h)=>new Promise((ie,i)=>{var Tt=Ke=>{try{le(h.next(Ke))}catch($){i($)}},Te=Ke=>{try{le(h.throw(Ke))}catch($){i($)}},le=Ke=>Ke.done?ie(Ke.value):Promise.resolve(Ke.value).then(Tt,Te);le((h=h.apply(R,m)).next())});function ps(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const J=ps(i),Hl=ps(Tt),Ul=({children:t})=>{const e=i.useRef(),[n,r]=i.useState(1);return i.useEffect(()=>{const o=new ResizeObserver(a=>{const l=a[0].target,u=l.parentNode.offsetWidth,d=l.offsetWidth,f=u/d;r(v=>{if(f<1)return f;if(v<1)return 1})}),s=e.current;return o.observe(s),()=>o.unobserve(s)},[]),m.jsx("div",{className:"auto-scaling-text",style:{transition:"transform 0.5s ease",transform:`scale(${n},${n})`},ref:e,children:t})},ql=n=>{var r=n,{value:t}=r,e=fs(r,["value"]);const o=navigator.language||"en-US";let s=parseFloat(t).toLocaleString(o,{useGrouping:!0,maximumFractionDigits:6});const a=t.match(/\.\d*?(0*)$/);return a&&(s+=/[1-9]/.test(a[0])?a[1]:a[0]),m.jsx("div",ae(L({},e),{className:"calculator-display",children:m.jsx(Ul,{children:s})}))},be=r=>{var o=r,{onPress:t,className:e}=o,n=fs(o,["onPress","className"]);return m.jsx("button",L({onClick:t,className:`calculator-key ${e}`},n))},hs=h.createStyles(({css:t})=>({container:t`
3
3
  position: fixed;
4
4
  top: 50%;
5
5
  left: 50%;
@@ -118,11 +118,11 @@
118
118
  .calculator .operator-keys {
119
119
  background: linear-gradient(to bottom, rgba(252, 156, 23, 1) 0%, rgba(247, 126, 27, 1) 100%);
120
120
  }
121
- `})),Ss={"/":(t,e)=>t/e,"*":(t,e)=>t*e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"=":(t,e)=>e},ec=i.forwardRef(({className:t},e)=>{const[n,o]=i.useState(null),[r,s]=i.useState("0"),[a,l]=i.useState(null),[c,u]=i.useState(!1),d=()=>{o(null),s("0"),l(null),u(!1)},m=()=>{s("0")},v=()=>{s(r.substring(0,r.length-1)||"0")},b=()=>{const w=parseFloat(r)*-1;s(String(w))},h=()=>{if(parseFloat(r)===0)return;const k=r.replace(/^-?\d*\.?/,""),E=parseFloat(r)/100;s(String(E.toFixed(k.length+2)))},y=()=>{/\./.test(r)||(s(r+"."),u(!1))},g=w=>{c?(s(String(w)),u(!1)):s(r==="0"?String(w):r+w)},x=w=>{const k=parseFloat(r);if(n==null)o(k);else if(a){const E=n||0,I=Ss[a](E,k);o(I),s(String(I))}u(!0),l(w)};i.useEffect(()=>{const w=k=>{let{key:E}=k;E==="Enter"&&(E="="),/\d/.test(E)?(k.preventDefault(),g(parseInt(E,10))):E in Ss?(k.preventDefault(),x(E)):E==="."?(k.preventDefault(),y()):E==="%"?(k.preventDefault(),h()):E==="Backspace"?(k.preventDefault(),v()):E==="Clear"&&(k.preventDefault(),r!=="0"?m():d())};return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}});const S=r!=="0",C=S?"C":"AC";return f.jsxs("div",{className:"calculator",ref:e,children:[f.jsx(Rl,{value:r}),f.jsxs("div",{className:"calculator-keypad",children:[f.jsxs("div",{className:"input-keys",children:[f.jsxs("div",{className:"function-keys",children:[f.jsx(ye,{className:"key-clear",onPress:()=>S?m():d(),children:C}),f.jsx(ye,{className:"key-sign",onPress:()=>b(),children:"±"}),f.jsx(ye,{className:"key-percent",onPress:()=>h(),children:"%"})]}),f.jsxs("div",{className:"digit-keys",children:[f.jsx(ye,{className:"key-0",onPress:()=>g(0),children:"0"}),f.jsx(ye,{className:"key-dot",onPress:()=>y(),children:"●"}),f.jsx(ye,{className:"key-1",onPress:()=>g(1),children:"1"}),f.jsx(ye,{className:"key-2",onPress:()=>g(2),children:"2"}),f.jsx(ye,{className:"key-3",onPress:()=>g(3),children:"3"}),f.jsx(ye,{className:"key-4",onPress:()=>g(4),children:"4"}),f.jsx(ye,{className:"key-5",onPress:()=>g(5),children:"5"}),f.jsx(ye,{className:"key-6",onPress:()=>g(6),children:"6"}),f.jsx(ye,{className:"key-7",onPress:()=>g(7),children:"7"}),f.jsx(ye,{className:"key-8",onPress:()=>g(8),children:"8"}),f.jsx(ye,{className:"key-9",onPress:()=>g(9),children:"9"})]})]}),f.jsxs("div",{className:"operator-keys",children:[f.jsx(ye,{className:"key-divide",onPress:()=>x("/"),children:"÷"}),f.jsx(ye,{className:"key-multiply",onPress:()=>x("*"),children:"×"}),f.jsx(ye,{className:"key-subtract",onPress:()=>x("-"),children:"−"}),f.jsx(ye,{className:"key-add",onPress:()=>x("+"),children:"+"}),f.jsx(ye,{className:"key-equals",onPress:()=>x("="),children:"="})]})]})]})}),tc=i.forwardRef((t,e)=>{const{styles:n}=Cs();return f.jsx(ec,{ref:e,className:n.container})}),nc=({children:t,updateTransform:e=(n,o,r,s)=>{s.style.transform=n}})=>{const n=i.useRef(),o=i.useRef({startX:0,startY:0,dx:0,dy:0,tx:0,ty:0});i.useEffect(()=>{const s=n.current;if(!s)return;const a=u=>{u.button===0&&(document.addEventListener("mousemove",l),o.current.startX=u.pageX-o.current.dx,o.current.startY=u.pageY-o.current.dy)},l=u=>{const d=u.pageX-o.current.startX,m=u.pageY-o.current.startY,v=`translate(${d}px,${m}px)`;e(v,d,m,s),o.current.dx=d,o.current.dy=m},c=u=>{document.removeEventListener("mousemove",l)};return s.addEventListener("mousedown",a),document.addEventListener("mouseup",c),()=>{s.removeEventListener("mousedown",a),document.removeEventListener("mouseup",c)}},[e]);const r=ae(L({},t.props.style),{cursor:"move",userSelect:"none"});return i.cloneElement(i.Children.only(t),{ref:n,style:r})},ws=i.createContext({}),oc=()=>i.useContext(ws),rc=({children:t})=>{const[e,n]=i.useState(!1),{styles:o}=Cs();return f.jsxs(ws.Provider,{value:{visible:e,setVisible:n},children:[t,e?Ot.createPortal(f.jsx("div",{className:o.container,children:f.jsx(nc,{children:f.jsx(tc,{})})}),document.body):null]})},sc=()=>{const{visible:t,setVisible:e}=oc();return f.jsx(le.FloatButton,{type:t?"primary":"default",icon:f.jsx(Te.CalculatorOutlined,{}),onClick:()=>{e(n=>!n)}})},ic=t=>f.jsx(p.PinnedPluginListProvider,{items:{ca:{order:300,component:"CalculatorButton",pin:!0,isPublic:!0,belongTo:"hoverbutton"}},children:f.jsx(p.SchemaComponentOptions,{components:{CalculatorButton:sc},children:t.children})});class ac extends p.Plugin{load(){return fe(this,null,function*(){this.app.use(ic),this.app.use(rc)})}}const lc=()=>{const{designable:t,setDesignable:e}=p.useDesignable();return p.useHotkeys("Ctrl+Shift+U",()=>e(!t),[t]),f.jsx(le.FloatButton,{icon:f.jsx(p.Icon,{type:"Design"}),type:t?"primary":"default",onClick:()=>e(!t)})},cc=t=>f.jsx(p.PinnedPluginListProvider,{items:{db:{order:60,component:"DesignableButton",pin:!0,snippet:"ui.*",belongTo:"hoverbutton"}},children:f.jsx(p.SchemaComponentOptions,{components:{DesignableButton:lc},children:t.children})});class uc extends p.Plugin{load(){return fe(this,null,function*(){this.app.use(cc)})}}const ks=i.createContext({open:!1,setOpen:t=>{}}),dc=({children:t})=>{const[e,n]=i.useState(!1);return f.jsxs(ks.Provider,{value:{open:e,setOpen:n},children:[t,f.jsx(mc,{open:e,setOpen:n})]})},fc=()=>i.useContext(ks),mc=({open:t,setOpen:e})=>{const n=i.useRef();i.useEffect(()=>{t&&n.current&&setTimeout(()=>{n.current.focus()},0)},[t,n]);const o=()=>{e(!1)},r=()=>{e(!1)};return f.jsx(le.Modal,{title:f.jsx(le.Input,{style:{width:"100%"},autoFocus:!0,ref:n}),closable:!1,open:t,onOk:o,onCancel:r,footer:null,children:f.jsx("p",{})})},pc=()=>{const{setOpen:t}=fc();return p.useHotkeys("Ctrl+K",()=>t(e=>!e),[]),p.useHotkeys("Cmd+K",()=>t(e=>!e),[]),f.jsx(le.FloatButton,{icon:f.jsx(Te.SearchOutlined,{}),onClick:()=>t(!0)})},hc=t=>f.jsx(p.PinnedPluginListProvider,{items:{saj:{order:30,component:"SearchAndJumpButton",pin:!0,snippet:"pm.*",belongTo:"hoverbutton"}},children:f.jsx(p.SchemaComponentOptions,{components:{SearchAndJumpButton:pc},children:t.children})});class gc extends p.Plugin{load(){return fe(this,null,function*(){this.app.use(hc),this.app.use(dc)})}}const On="client";function ut(t){return p.i18n.t(t,{ns:On})}function dt(t){return`{{t('${t}', { ns: '${On}', nsMode: 'fallback' })}}`}const qe=(t,e=!0)=>e?p.tval(t,{ns:On}):p.tval(t);function de(){return We.useTranslation([On,"core"],{nsMode:"fallback"})}const vc=new p.SchemaInitializer({name:"mobilePage:addBlock",title:'{{t("Add block")}}',icon:"PlusOutlined",wrap:p.gridRowColWrap,items:[{name:"dataBlocks",type:"itemGroup",title:'{{t("Data blocks")}}',children:[{name:"gridCard",type:"item",title:'{{t("Grid Card")}}',Component:"GridCardBlockInitializer"},{name:"table",title:'{{t("Table")}}',Component:"TableBlockInitializer"},{name:"form",title:'{{t("Form")}}',Component:"FormBlockInitializer"},{name:"details",title:'{{t("Details")}}',Component:"DetailsBlockInitializer"},{name:"calendar",title:'{{t("Calendar")}}',Component:"CalendarBlockInitializer"},{name:"mapBlock",title:dt("Map"),Component:"MapBlockInitializer"},{title:qe("Swiper"),name:"swiper",type:"item",Component:"SwiperBlockInitializer"},{title:"notice",name:"notice",type:"item",Component:"NoticeBlockInitializer"},{name:"chartV2",title:'{{t("Charts")}}',Component:"ChartV2BlockInitializer"}]},{name:"otherBlocks",type:"itemGroup",title:'{{t("Other blocks")}}',children:[{name:"menu",title:dt("Menu"),Component:"MMenuBlockInitializer"},{name:"markdown",title:qe("Demonstration text"),Component:"MarkdownBlockInitializer"},{name:"settings",title:dt("Settings"),Component:"MSettingsBlockInitializer"}]},{name:"filterBlocks",type:"itemGroup",title:'{{t("Filter blocks")}}',children:[{name:"tabSearch",title:qe("TabSearch"),Component:"TabSearchBlockInitializer"},{name:"imageSearch",title:qe("ImageSearch"),icon:"tab-search",Component:"ImageSearchInitializer"}]}]}),bc=()=>{const t=p.useSchemaInitializerItem(),{insert:e}=p.useSchemaInitializer();return f.jsx(p.SchemaInitializerItem,L({icon:f.jsx(Te.MenuOutlined,{}),onClick:()=>fe(this,null,function*(){e({type:"void","x-component":"MMenu","x-designer":"MMenu.Designer","x-component-props":{}})})},t))},Dt=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);Dt&&document.addEventListener("touchstart",()=>{},!0);function xt(t,e,n,o){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(d){try{u(o.next(d))}catch(m){a(m)}}function c(d){try{u(o.throw(d))}catch(m){a(m)}}function u(d){d.done?s(d.value):r(d.value).then(l,c)}u((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Oe="${label}不是一个有效的${type}",yc={current:{locale:{locale:"zh-CH",common:{confirm:"确定",cancel:"取消",loading:"加载中",close:"关闭"},Calendar:{title:"日期选择",confirm:"确认",start:"开始",end:"结束",today:"今日",markItems:["一","二","三","四","五","六","日"],yearAndMonth:"${year}年${month}月"},Cascader:{placeholder:"请选择"},Dialog:{ok:"我知道了"},DatePicker:{tillNow:"至今"},ErrorBlock:{default:{title:"页面遇到一些小问题",description:"待会来试试"},busy:{title:"前方拥堵",description:"刷新试试"},disconnected:{title:"网络有点忙",description:"动动手指帮忙修复"},empty:{title:"没有找到你需要的东西",description:"找找其他的吧"}},Form:{required:"必填",optional:"选填",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Oe,method:Oe,array:Oe,object:Oe,number:Oe,date:Oe,boolean:Oe,integer:Oe,float:Oe,regexp:Oe,email:Oe,url:Oe,hex:Oe},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},ImageUploader:{uploading:"上传中...",upload:"上传"},InfiniteScroll:{noMore:"没有更多了",failedToLoad:"加载失败",retry:"重新加载"},Input:{clear:"清除"},Mask:{name:"背景蒙层"},Modal:{ok:"我知道了"},PasscodeInput:{name:"密码输入框"},PullToRefresh:{pulling:"下拉刷新",canRelease:"释放立即刷新",complete:"刷新成功"},SearchBar:{name:"搜索框"},Slider:{name:"滑动输入条"},Stepper:{decrease:"减少",increase:"增加"},Switch:{name:"开关"},Selector:{name:"选择组"}}}};function xc(){return yc.current}const Cc=i.createContext(null);function Pe(){var t;return(t=i.useContext(Cc))!==null&&t!==void 0?t:xc()}function we(t,e){const n=t;for(const o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);return n}var Ct=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function St(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Es={exports:{}};/*!
121
+ `})),gs={"/":(t,e)=>t/e,"*":(t,e)=>t*e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"=":(t,e)=>e},Yl=i.forwardRef(({className:t},e)=>{const[n,r]=i.useState(null),[o,s]=i.useState("0"),[a,l]=i.useState(null),[c,u]=i.useState(!1),d=()=>{r(null),s("0"),l(null),u(!1)},f=()=>{s("0")},v=()=>{s(o.substring(0,o.length-1)||"0")},y=()=>{const w=parseFloat(o)*-1;s(String(w))},g=()=>{if(parseFloat(o)===0)return;const k=o.replace(/^-?\d*\.?/,""),E=parseFloat(o)/100;s(String(E.toFixed(k.length+2)))},b=()=>{/\./.test(o)||(s(o+"."),u(!1))},p=w=>{c?(s(String(w)),u(!1)):s(o==="0"?String(w):o+w)},x=w=>{const k=parseFloat(o);if(n==null)r(k);else if(a){const E=n||0,I=gs[a](E,k);r(I),s(String(I))}u(!0),l(w)};i.useEffect(()=>{const w=k=>{let{key:E}=k;E==="Enter"&&(E="="),/\d/.test(E)?(k.preventDefault(),p(parseInt(E,10))):E in gs?(k.preventDefault(),x(E)):E==="."?(k.preventDefault(),b()):E==="%"?(k.preventDefault(),g()):E==="Backspace"?(k.preventDefault(),v()):E==="Clear"&&(k.preventDefault(),o!=="0"?f():d())};return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}});const S=o!=="0",C=S?"C":"AC";return m.jsxs("div",{className:"calculator",ref:e,children:[m.jsx(ql,{value:o}),m.jsxs("div",{className:"calculator-keypad",children:[m.jsxs("div",{className:"input-keys",children:[m.jsxs("div",{className:"function-keys",children:[m.jsx(be,{className:"key-clear",onPress:()=>S?f():d(),children:C}),m.jsx(be,{className:"key-sign",onPress:()=>y(),children:"±"}),m.jsx(be,{className:"key-percent",onPress:()=>g(),children:"%"})]}),m.jsxs("div",{className:"digit-keys",children:[m.jsx(be,{className:"key-0",onPress:()=>p(0),children:"0"}),m.jsx(be,{className:"key-dot",onPress:()=>b(),children:"●"}),m.jsx(be,{className:"key-1",onPress:()=>p(1),children:"1"}),m.jsx(be,{className:"key-2",onPress:()=>p(2),children:"2"}),m.jsx(be,{className:"key-3",onPress:()=>p(3),children:"3"}),m.jsx(be,{className:"key-4",onPress:()=>p(4),children:"4"}),m.jsx(be,{className:"key-5",onPress:()=>p(5),children:"5"}),m.jsx(be,{className:"key-6",onPress:()=>p(6),children:"6"}),m.jsx(be,{className:"key-7",onPress:()=>p(7),children:"7"}),m.jsx(be,{className:"key-8",onPress:()=>p(8),children:"8"}),m.jsx(be,{className:"key-9",onPress:()=>p(9),children:"9"})]})]}),m.jsxs("div",{className:"operator-keys",children:[m.jsx(be,{className:"key-divide",onPress:()=>x("/"),children:"÷"}),m.jsx(be,{className:"key-multiply",onPress:()=>x("*"),children:"×"}),m.jsx(be,{className:"key-subtract",onPress:()=>x("-"),children:"−"}),m.jsx(be,{className:"key-add",onPress:()=>x("+"),children:"+"}),m.jsx(be,{className:"key-equals",onPress:()=>x("="),children:"="})]})]})]})}),Gl=i.forwardRef((t,e)=>{const{styles:n}=hs();return m.jsx(Yl,{ref:e,className:n.container})}),Xl=({children:t,updateTransform:e=(n,r,o,s)=>{s.style.transform=n}})=>{const n=i.useRef(),r=i.useRef({startX:0,startY:0,dx:0,dy:0,tx:0,ty:0});i.useEffect(()=>{const s=n.current;if(!s)return;const a=u=>{u.button===0&&(document.addEventListener("mousemove",l),r.current.startX=u.pageX-r.current.dx,r.current.startY=u.pageY-r.current.dy)},l=u=>{const d=u.pageX-r.current.startX,f=u.pageY-r.current.startY,v=`translate(${d}px,${f}px)`;e(v,d,f,s),r.current.dx=d,r.current.dy=f},c=u=>{document.removeEventListener("mousemove",l)};return s.addEventListener("mousedown",a),document.addEventListener("mouseup",c),()=>{s.removeEventListener("mousedown",a),document.removeEventListener("mouseup",c)}},[e]);const o=ae(L({},t.props.style),{cursor:"move",userSelect:"none"});return i.cloneElement(i.Children.only(t),{ref:n,style:o})},vs=i.createContext({}),Jl=()=>i.useContext(vs),Ql=({children:t})=>{const[e,n]=i.useState(!1),{styles:r}=hs();return m.jsxs(vs.Provider,{value:{visible:e,setVisible:n},children:[t,e?Tt.createPortal(m.jsx("div",{className:r.container,children:m.jsx(Xl,{children:m.jsx(Gl,{})})}),document.body):null]})},Rl=()=>{const{visible:t,setVisible:e}=Jl();return m.jsx(le.FloatButton,{type:t?"primary":"default",icon:m.jsx(Te.CalculatorOutlined,{}),onClick:()=>{e(n=>!n)}})},ec=t=>m.jsx(h.PinnedPluginListProvider,{items:{ca:{order:300,component:"CalculatorButton",pin:!0,isPublic:!0,belongTo:"hoverbutton"}},children:m.jsx(h.SchemaComponentOptions,{components:{CalculatorButton:Rl},children:t.children})});class tc extends h.Plugin{load(){return fe(this,null,function*(){this.app.use(ec),this.app.use(Ql)})}}const nc=()=>{const{designable:t,setDesignable:e}=h.useDesignable();return h.useHotkeys("Ctrl+Shift+U",()=>e(!t),[t]),m.jsx(le.FloatButton,{icon:m.jsx(h.Icon,{type:"Design"}),type:t?"primary":"default",onClick:()=>e(!t)})},rc=t=>m.jsx(h.PinnedPluginListProvider,{items:{db:{order:60,component:"DesignableButton",pin:!0,snippet:"ui.*",belongTo:"hoverbutton"}},children:m.jsx(h.SchemaComponentOptions,{components:{DesignableButton:nc},children:t.children})});class oc extends h.Plugin{load(){return fe(this,null,function*(){this.app.use(rc)})}}const ys=i.createContext({open:!1,setOpen:t=>{}}),sc=({children:t})=>{const[e,n]=i.useState(!1);return m.jsxs(ys.Provider,{value:{open:e,setOpen:n},children:[t,m.jsx(ac,{open:e,setOpen:n})]})},ic=()=>i.useContext(ys),ac=({open:t,setOpen:e})=>{const n=i.useRef();i.useEffect(()=>{t&&n.current&&setTimeout(()=>{n.current.focus()},0)},[t,n]);const r=()=>{e(!1)},o=()=>{e(!1)};return m.jsx(le.Modal,{title:m.jsx(le.Input,{style:{width:"100%"},autoFocus:!0,ref:n}),closable:!1,open:t,onOk:r,onCancel:o,footer:null,children:m.jsx("p",{})})},lc=()=>{const{setOpen:t}=ic();return h.useHotkeys("Ctrl+K",()=>t(e=>!e),[]),h.useHotkeys("Cmd+K",()=>t(e=>!e),[]),m.jsx(le.FloatButton,{icon:m.jsx(Te.SearchOutlined,{}),onClick:()=>t(!0)})},cc=t=>m.jsx(h.PinnedPluginListProvider,{items:{saj:{order:30,component:"SearchAndJumpButton",pin:!0,snippet:"pm.*",belongTo:"hoverbutton"}},children:m.jsx(h.SchemaComponentOptions,{components:{SearchAndJumpButton:lc},children:t.children})});class uc extends h.Plugin{load(){return fe(this,null,function*(){this.app.use(cc),this.app.use(sc)})}}const Nn="client";function ct(t){return h.i18n.t(t,{ns:Nn})}function ut(t){return`{{t('${t}', { ns: '${Nn}', nsMode: 'fallback' })}}`}const Ye=(t,e=!0)=>e?h.tval(t,{ns:Nn}):h.tval(t);function de(){return Ke.useTranslation([Nn,"core"],{nsMode:"fallback"})}const dc=new h.SchemaInitializer({name:"mobilePage:addBlock",title:'{{t("Add block")}}',icon:"PlusOutlined",wrap:h.gridRowColWrap,items:[{name:"dataBlocks",type:"itemGroup",title:'{{t("Data blocks")}}',children:[{name:"gridCard",type:"item",title:'{{t("Grid Card")}}',Component:"GridCardBlockInitializer"},{name:"table",title:'{{t("Table")}}',Component:"TableBlockInitializer"},{name:"form",title:'{{t("Form")}}',Component:"FormBlockInitializer"},{name:"details",title:'{{t("Details")}}',Component:"DetailsBlockInitializer"},{name:"calendar",title:'{{t("Calendar")}}',Component:"CalendarBlockInitializer"},{name:"mapBlock",title:ut("Map"),Component:"MapBlockInitializer"},{title:Ye("Swiper"),name:"swiper",type:"item",Component:"SwiperBlockInitializer"},{title:"notice",name:"notice",type:"item",Component:"NoticeBlockInitializer"},{name:"chartV2",title:'{{t("Charts")}}',Component:"ChartV2BlockInitializer"}]},{name:"otherBlocks",type:"itemGroup",title:'{{t("Other blocks")}}',children:[{name:"menu",title:ut("Menu"),Component:"MMenuBlockInitializer"},{name:"markdown",title:Ye("Demonstration text"),Component:"MarkdownBlockInitializer"},{name:"settings",title:ut("Settings"),Component:"MSettingsBlockInitializer"}]},{name:"filterBlocks",type:"itemGroup",title:'{{t("Filter blocks")}}',children:[{name:"tabSearch",title:Ye("TabSearch"),Component:"TabSearchBlockInitializer"},{name:"imageSearch",title:Ye("ImageSearch"),icon:"tab-search",Component:"ImageSearchInitializer"}]}]}),fc=()=>{const t=h.useSchemaInitializerItem(),{insert:e}=h.useSchemaInitializer();return m.jsx(h.SchemaInitializerItem,L({icon:m.jsx(Te.MenuOutlined,{}),onClick:()=>fe(null,null,function*(){e({type:"void","x-component":"MMenu","x-designer":"MMenu.Designer","x-component-props":{}})})},t))},Ot=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);Ot&&document.addEventListener("touchstart",()=>{},!0);function bt(t,e,n,r){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(d){try{u(r.next(d))}catch(f){a(f)}}function c(d){try{u(r.throw(d))}catch(f){a(f)}}function u(d){d.done?s(d.value):o(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Oe="${label}不是一个有效的${type}",mc={current:{locale:{locale:"zh-CH",common:{confirm:"确定",cancel:"取消",loading:"加载中",close:"关闭"},Calendar:{title:"日期选择",confirm:"确认",start:"开始",end:"结束",today:"今日",markItems:["一","二","三","四","五","六","日"],yearAndMonth:"${year}年${month}月"},Cascader:{placeholder:"请选择"},Dialog:{ok:"我知道了"},DatePicker:{tillNow:"至今"},ErrorBlock:{default:{title:"页面遇到一些小问题",description:"待会来试试"},busy:{title:"前方拥堵",description:"刷新试试"},disconnected:{title:"网络有点忙",description:"动动手指帮忙修复"},empty:{title:"没有找到你需要的东西",description:"找找其他的吧"}},Form:{required:"必填",optional:"选填",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Oe,method:Oe,array:Oe,object:Oe,number:Oe,date:Oe,boolean:Oe,integer:Oe,float:Oe,regexp:Oe,email:Oe,url:Oe,hex:Oe},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},ImageUploader:{uploading:"上传中...",upload:"上传"},InfiniteScroll:{noMore:"没有更多了",failedToLoad:"加载失败",retry:"重新加载"},Input:{clear:"清除"},Mask:{name:"背景蒙层"},Modal:{ok:"我知道了"},PasscodeInput:{name:"密码输入框"},PullToRefresh:{pulling:"下拉刷新",canRelease:"释放立即刷新",complete:"刷新成功"},SearchBar:{name:"搜索框"},Slider:{name:"滑动输入条"},Stepper:{decrease:"减少",increase:"增加"},Switch:{name:"开关"},Selector:{name:"选择组"}}}};function pc(){return mc.current}const hc=i.createContext(null);function Pe(){var t;return(t=i.useContext(hc))!==null&&t!==void 0?t:pc()}function we(t,e){const n=t;for(const r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}function xt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Dr={exports:{}};/*!
122
122
  Copyright (c) 2018 Jed Watson.
123
123
  Licensed under the MIT License (MIT), see
124
124
  http://jedwatson.github.io/classnames
125
- */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(s=r(s,o(l)))}return s}function o(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var l in s)e.call(s,l)&&s[l]&&(a=r(a,l));return a}function r(s,a){return a?s?s+" "+a:s+a:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Es);var Sc=Es.exports;const H=St(Sc);function G(t,e){const n=Object.assign({},e.props);t.className&&(n.className=H(e.props.className,t.className)),t.style&&(n.style=Object.assign(Object.assign({},n.style),t.style)),t.tabIndex!==void 0&&(n.tabIndex=t.tabIndex);for(const o in t)t.hasOwnProperty(o)&&(o.startsWith("data-")||o.startsWith("aria-"))&&(n[o]=t[o]);return i.cloneElement(e,n)}function oe(...t){const e={};return t.forEach(n=>{n&&Object.keys(n).forEach(o=>{n[o]!==void 0&&(e[o]=n[o])})}),e}function Wo(t,...e){for(let n=e.length-1;n>=0;n-=1)if(e[n]!==void 0)return e[n];return t}const Is=10;function wc(t,e){return t>e&&t>Is?"horizontal":e>t&&e>Is?"vertical":""}function kc(){const t=i.useRef(0),e=i.useRef(0),n=i.useRef(0),o=i.useRef(0),r=i.useRef(0),s=i.useRef(0),a=i.useRef(""),l=()=>a.current==="vertical",c=()=>a.current==="horizontal",u=()=>{n.current=0,o.current=0,r.current=0,s.current=0,a.current=""};return{move:v=>{const b=v.touches[0];n.current=b.clientX<0?0:b.clientX-t.current,o.current=b.clientY-e.current,r.current=Math.abs(n.current),s.current=Math.abs(o.current),a.current||(a.current=wc(r.current,s.current))},start:v=>{u(),t.current=v.touches[0].clientX,e.current=v.touches[0].clientY},reset:u,startX:t,startY:e,deltaX:n,deltaY:o,offsetX:r,offsetY:s,direction:a,isVertical:l,isHorizontal:c}}const Ec=Dt?window:void 0,Ic=["scroll","auto","overlay"];function $c(t){return t.nodeType===1}function _c(t,e=Ec){let n=t;for(;n&&n!==e&&$c(n);){if(n===document.body)return e;const{overflowY:o}=window.getComputedStyle(n);if(Ic.includes(o)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return e}let Dn=!1;if(Dt)try{const t={};Object.defineProperty(t,"passive",{get(){Dn=!0}}),window.addEventListener("test-passive",null,t)}catch(t){}let tn=0;const $s="adm-overflow-hidden";function Pc(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function _s(t,e){const n=kc(),o=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=_c(a.target,t.current);if(!c)return;if(e==="strict"){const h=Pc(a.target);if(h===document.body||h===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:d,scrollTop:m}=c,{height:v}=c.getBoundingClientRect();let b="11";m===0?b=d>=u?"00":"01":u<=Math.round(v+m)&&(b="10"),b!=="11"&&n.isVertical()&&!(parseInt(b,2)&parseInt(l,2))&&a.cancelable&&Dn&&a.preventDefault()},r=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,Dn?{passive:!1}:!1),tn||document.body.classList.add($s),tn++},s=()=>{tn&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),tn--,tn||document.body.classList.remove($s))};i.useEffect(()=>{if(e)return r(),()=>{s()}},[e])}let Ho=on();const Q=t=>nn(t,Ho);let Uo=on();Q.write=t=>nn(t,Uo);let An=on();Q.onStart=t=>nn(t,An);let Yo=on();Q.onFrame=t=>nn(t,Yo);let Go=on();Q.onFinish=t=>nn(t,Go);let At=[];Q.setTimeout=(t,e)=>{let n=Q.now()+e,o=()=>{let s=At.findIndex(a=>a.cancel==o);~s&&At.splice(s,1),mt-=~s?1:0},r={time:n,handler:t,cancel:o};return At.splice(Ps(n),0,r),mt+=1,Fs(),r};let Ps=t=>~(~At.findIndex(e=>e.time>t)||~At.length);Q.cancel=t=>{An.delete(t),Yo.delete(t),Go.delete(t),Ho.delete(t),Uo.delete(t)},Q.sync=t=>{Xo=!0,Q.batchedUpdates(t),Xo=!1},Q.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function o(...r){e=r,Q.onStart(n)}return o.handler=t,o.cancel=()=>{An.delete(n),e=null},o};let qo=typeof window!="undefined"?window.requestAnimationFrame:()=>{};Q.use=t=>qo=t,Q.now=typeof performance!="undefined"?()=>performance.now():Date.now,Q.batchedUpdates=t=>t(),Q.catch=console.error,Q.frameLoop="always",Q.advance=()=>{Q.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ns()};let ft=-1,mt=0,Xo=!1;function nn(t,e){Xo?(e.delete(t),t(0)):(e.add(t),Fs())}function Fs(){ft<0&&(ft=0,Q.frameLoop!=="demand"&&qo(Ms))}function Fc(){ft=-1}function Ms(){~ft&&(qo(Ms),Q.batchedUpdates(Ns))}function Ns(){let t=ft;ft=Q.now();let e=Ps(ft);if(e&&(Ts(At.splice(0,e),n=>n.handler()),mt-=e),!mt){Fc();return}An.flush(),Ho.flush(t?Math.min(64,ft-t):16.667),Yo.flush(),Uo.flush(),Go.flush()}function on(){let t=new Set,e=t;return{add(n){mt+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return mt-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,mt-=e.size,Ts(e,o=>o(n)&&t.add(o)),mt+=t.size,e=t)}}}function Ts(t,e){t.forEach(n=>{try{e(n)}catch(o){Q.catch(o)}})}function Jo(){}const Mc=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),A={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function rt(t,e){if(A.arr(t)){if(!A.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}const se=(t,e)=>t.forEach(e);function Xe(t,e,n){if(A.arr(t)){for(let o=0;o<t.length;o++)e.call(n,t[o],`${o}`);return}for(const o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o)}const De=t=>A.und(t)?[]:A.arr(t)?t:[t];function rn(t,e){if(t.size){const n=Array.from(t);t.clear(),se(n,e)}}const sn=(t,...e)=>rn(t,n=>n(...e)),Qo=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Ro,Os,pt=null,Ds=!1,er=Jo;var Je=Object.freeze({__proto__:null,get createStringInterpolator(){return Ro},get to(){return Os},get colors(){return pt},get skipAnimation(){return Ds},get willAdvance(){return er},assign:t=>{t.to&&(Os=t.to),t.now&&(Q.now=t.now),t.colors!==void 0&&(pt=t.colors),t.skipAnimation!=null&&(Ds=t.skipAnimation),t.createStringInterpolator&&(Ro=t.createStringInterpolator),t.requestAnimationFrame&&Q.use(t.requestAnimationFrame),t.batchedUpdates&&(Q.batchedUpdates=t.batchedUpdates),t.willAdvance&&(er=t.willAdvance),t.frameLoop&&(Q.frameLoop=t.frameLoop)}});const an=new Set;let Be=[],tr=[],Ln=0;const Bn={get idle(){return!an.size&&!Be.length},start(t){Ln>t.priority?(an.add(t),Q.onStart(Nc)):(As(t),Q(nr))},advance:nr,sort(t){if(Ln)Q.onFrame(()=>Bn.sort(t));else{const e=Be.indexOf(t);~e&&(Be.splice(e,1),Ls(t))}},clear(){Be=[],an.clear()}};function Nc(){an.forEach(As),an.clear(),Q(nr)}function As(t){Be.includes(t)||Ls(t)}function Ls(t){Be.splice(Tc(Be,e=>e.priority>t.priority),0,t)}function nr(t){const e=tr;for(let n=0;n<Be.length;n++){const o=Be[n];Ln=o.priority,o.idle||(er(o),o.advance(t),o.idle||e.push(o))}return Ln=0,tr=Be,tr.length=0,Be=e,Be.length>0}function Tc(t,e){const n=t.findIndex(e);return n<0?t.length:n}const Oc={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},He="[-+]?\\d*\\.?\\d+",zn=He+"%";function Vn(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Dc=new RegExp("rgb"+Vn(He,He,He)),Ac=new RegExp("rgba"+Vn(He,He,He,He)),Lc=new RegExp("hsl"+Vn(He,zn,zn)),Bc=new RegExp("hsla"+Vn(He,zn,zn,He)),zc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Vc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Zc=/^#([0-9a-fA-F]{6})$/,jc=/^#([0-9a-fA-F]{8})$/;function Kc(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Zc.exec(t))?parseInt(e[1]+"ff",16)>>>0:pt&&pt[t]!==void 0?pt[t]:(e=Dc.exec(t))?(Lt(e[1])<<24|Lt(e[2])<<16|Lt(e[3])<<8|255)>>>0:(e=Ac.exec(t))?(Lt(e[1])<<24|Lt(e[2])<<16|Lt(e[3])<<8|Vs(e[4]))>>>0:(e=zc.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=jc.exec(t))?parseInt(e[1],16)>>>0:(e=Vc.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Lc.exec(t))?(Bs(zs(e[1]),Zn(e[2]),Zn(e[3]))|255)>>>0:(e=Bc.exec(t))?(Bs(zs(e[1]),Zn(e[2]),Zn(e[3]))|Vs(e[4]))>>>0:null}function or(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Bs(t,e,n){const o=n<.5?n*(1+e):n+e-n*e,r=2*n-o,s=or(r,o,t+1/3),a=or(r,o,t),l=or(r,o,t-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function Lt(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function zs(t){return(parseFloat(t)%360+360)%360/360}function Vs(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Zn(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function Zs(t){let e=Kc(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,o=(e&16711680)>>>16,r=(e&65280)>>>8,s=(e&255)/255;return`rgba(${n}, ${o}, ${r}, ${s})`}const ln=(t,e,n)=>{if(A.fun(t))return t;if(A.arr(t))return ln({range:t,output:e,extrapolate:n});if(A.str(t.output[0]))return Ro(t);const o=t,r=o.output,s=o.range||[0,1],a=o.extrapolateLeft||o.extrapolate||"extend",l=o.extrapolateRight||o.extrapolate||"extend",c=o.easing||(u=>u);return u=>{const d=Hc(u,s);return Wc(u,s[d],s[d+1],r[d],r[d+1],c,a,l,o.map)}};function Wc(t,e,n,o,r,s,a,l,c){let u=c?c(t):t;if(u<e){if(a==="identity")return u;a==="clamp"&&(u=e)}if(u>n){if(l==="identity")return u;l==="clamp"&&(u=n)}return o===r?o:e===n?t<=e?o:r:(e===-1/0?u=-u:n===1/0?u=u-e:u=(u-e)/(n-e),u=s(u),o===-1/0?u=-u:r===1/0?u=u+o:u=u*(r-o)+o,u)}function Hc(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}const Uc={linear:t=>t};function rr(){return rr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},rr.apply(this,arguments)}const Bt=Symbol.for("FluidValue.get"),wt=Symbol.for("FluidValue.observers"),ze=t=>!!(t&&t[Bt]),Fe=t=>t&&t[Bt]?t[Bt]():t,js=t=>t[wt]||null;function Yc(t,e){t.eventObserved?t.eventObserved(e):t(e)}function cn(t,e){let n=t[wt];n&&n.forEach(o=>{Yc(o,e)})}class Ks{constructor(e){if(this[Bt]=void 0,this[wt]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Gc(this,e)}}const Gc=(t,e)=>Ws(t,Bt,e);function zt(t,e){if(t[Bt]){let n=t[wt];n||Ws(t,wt,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function un(t,e){let n=t[wt];if(n&&n.has(e)){const o=n.size-1;o?n.delete(e):t[wt]=null,t.observerRemoved&&t.observerRemoved(o,e)}}const Ws=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),jn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,qc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Hs=new RegExp(`(${jn.source})(%|[a-z]+)`,"i"),Xc=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Kn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Us=t=>{const[e,n]=Jc(t);if(!e||Qo())return t;const o=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(o)return o.trim();if(n&&n.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(n);return r||t}else{if(n&&Kn.test(n))return Us(n);if(n)return n}return t},Jc=t=>{const e=Kn.exec(t);if(!e)return[,];const[,n,o]=e;return[n,o]};let sr;const Qc=(t,e,n,o,r)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,Ys=t=>{sr||(sr=pt?new RegExp(`(${Object.keys(pt).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(s=>Fe(s).replace(Kn,Us).replace(qc,Zs).replace(sr,Zs)),n=e.map(s=>s.match(jn).map(Number)),r=n[0].map((s,a)=>n.map(l=>{if(!(a in l))throw Error('The arity of each "output" value must be equal');return l[a]})).map(s=>ln(rr({},t,{output:s})));return s=>{var a;const l=!Hs.test(e[0])&&((a=e.find(u=>Hs.test(u)))==null?void 0:a.replace(jn,""));let c=0;return e[0].replace(jn,()=>`${r[c++](s)}${l||""}`).replace(Xc,Qc)}},ir="react-spring: ",Gs=t=>{const e=t;let n=!1;if(typeof e!="function")throw new TypeError(`${ir}once requires a function parameter`);return(...o)=>{n||(e(...o),n=!0)}},Rc=Gs(console.warn);function eu(){Rc(`${ir}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const tu=Gs(console.warn);function nu(){tu(`${ir}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Wn(t){return A.str(t)&&(t[0]=="#"||/\d/.test(t)||!Qo()&&Kn.test(t)||t in(pt||{}))}const ar=Qo()?i.useEffect:i.useLayoutEffect,ou=()=>{const t=i.useRef(!1);return ar(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function qs(){const t=i.useState()[1],e=ou();return()=>{e.current&&t(Math.random())}}function ru(t,e){const[n]=i.useState(()=>({inputs:e,result:t()})),o=i.useRef(),r=o.current;let s=r;return s?e&&s.inputs&&su(e,s.inputs)||(s={inputs:e,result:t()}):s=n,i.useEffect(()=>{o.current=s,r==n&&(n.inputs=n.result=void 0)},[s]),s.result}function su(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const Xs=t=>i.useEffect(t,iu),iu=[];function Js(t){const e=i.useRef();return i.useEffect(()=>{e.current=t}),e.current}const dn=Symbol.for("Animated:node"),au=t=>!!t&&t[dn]===t,Qe=t=>t&&t[dn],lr=(t,e)=>Mc(t,dn,e),Hn=t=>t&&t[dn]&&t[dn].getPayload();class Qs{constructor(){this.payload=void 0,lr(this,this)}getPayload(){return this.payload||[]}}class Vt extends Qs{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,A.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Vt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,n){return A.num(e)&&(this.lastPosition=e,n&&(e=Math.round(e/n)*n,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,A.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class Zt extends Vt{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=ln({output:[e,e]})}static create(e){return new Zt(e)}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(A.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=ln({output:[this.getValue(),e]})),this._value=0,super.reset()}}const Un={dependencies:null};class Yn extends Qs{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const n={};return Xe(this.source,(o,r)=>{au(o)?n[r]=o.getValue(e):ze(o)?n[r]=Fe(o):e||(n[r]=o)}),n}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&se(this.payload,e=>e.reset())}_makePayload(e){if(e){const n=new Set;return Xe(e,this._addToPayload,n),Array.from(n)}}_addToPayload(e){Un.dependencies&&ze(e)&&Un.dependencies.add(e);const n=Hn(e);n&&se(n,o=>this.add(o))}}class cr extends Yn{constructor(e){super(e)}static create(e){return new cr(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const n=this.getPayload();return e.length==n.length?n.map((o,r)=>o.setValue(e[r])).some(Boolean):(super.setValue(e.map(lu)),!0)}}function lu(t){return(Wn(t)?Zt:Vt).create(t)}function ur(t){const e=Qe(t);return e?e.constructor:A.arr(t)?cr:Wn(t)?Zt:Vt}function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Gn.apply(this,arguments)}const Rs=(t,e)=>{const n=!A.fun(t)||t.prototype&&t.prototype.isReactComponent;return i.forwardRef((o,r)=>{const s=i.useRef(null),a=n&&i.useCallback(h=>{s.current=du(r,h)},[r]),[l,c]=uu(o,e),u=qs(),d=()=>{const h=s.current;if(n&&!h)return;(h?e.applyAnimatedValues(h,l.getValue(!0)):!1)===!1&&u()},m=new cu(d,c),v=i.useRef();ar(()=>(v.current=m,se(c,h=>zt(h,m)),()=>{v.current&&(se(v.current.deps,h=>un(h,v.current)),Q.cancel(v.current.update))})),i.useEffect(d,[]),Xs(()=>()=>{const h=v.current;se(h.deps,y=>un(y,h))});const b=e.getComponentProps(l.getValue());return J.createElement(t,Gn({},b,{ref:a}))})};class cu{constructor(e,n){this.update=e,this.deps=n}eventObserved(e){e.type=="change"&&Q.write(this.update)}}function uu(t,e){const n=new Set;return Un.dependencies=n,t.style&&(t=Gn({},t,{style:e.createAnimatedStyle(t.style)})),t=new Yn(t),Un.dependencies=null,[t,n]}function du(t,e){return t&&(A.fun(t)?t(e):t.current=e),e}const ei=Symbol.for("AnimatedComponent"),fu=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=r=>new Yn(r),getComponentProps:o=r=>r}={})=>{const r={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:o},s=a=>{const l=ti(a)||"Anonymous";return A.str(a)?a=s[a]||(s[a]=Rs(a,r)):a=a[ei]||(a[ei]=Rs(a,r)),a.displayName=`Animated(${l})`,a};return Xe(t,(a,l)=>{A.arr(t)&&(l=ti(a)),s[l]=s(a)}),{animated:s}},ti=t=>A.str(t)?t:t&&A.str(t.displayName)?t.displayName:A.fun(t)&&t.name||null;function Se(){return Se=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Se.apply(this,arguments)}function kt(t,...e){return A.fun(t)?t(...e):t}const fn=(t,e)=>t===!0||!!(e&&t&&(A.fun(t)?t(e):De(t).includes(e))),ni=(t,e)=>A.obj(t)?e&&t[e]:t,oi=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,mu=t=>t,dr=(t,e=mu)=>{let n=pu;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));const o={};for(const r of n){const s=e(t[r],r);A.und(s)||(o[r]=s)}return o},pu=["config","onProps","onStart","onChange","onPause","onResume","onRest"],hu={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function gu(t){const e={};let n=0;if(Xe(t,(o,r)=>{hu[r]||(e[r]=o,n++)}),n)return e}function ri(t){const e=gu(t);if(e){const n={to:e};return Xe(t,(o,r)=>r in e||(n[r]=o)),n}return Se({},t)}function mn(t){return t=Fe(t),A.arr(t)?t.map(mn):Wn(t)?Je.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function vu(t){for(const e in t)return!0;return!1}function fr(t){return A.fun(t)||A.arr(t)&&A.obj(t[0])}function bu(t,e){var n;(n=t.ref)==null||n.delete(t),e==null||e.delete(t)}function yu(t,e){if(e&&t.ref!==e){var n;(n=t.ref)==null||n.delete(t),e.add(t),t.ref=e}}const mr=Se({},{default:{tension:170,friction:26}}.default,{mass:1,damping:1,easing:Uc.linear,clamp:!1});class xu{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,mr)}}function Cu(t,e,n){n&&(n=Se({},n),si(n,e),e=Se({},n,e)),si(t,e),Object.assign(t,e);for(const a in mr)t[a]==null&&(t[a]=mr[a]);let{mass:o,frequency:r,damping:s}=t;return A.und(r)||(r<.01&&(r=.01),s<0&&(s=0),t.tension=Math.pow(2*Math.PI/r,2)*o,t.friction=4*Math.PI*s*o/r),t}function si(t,e){if(!A.und(e.decay))t.duration=void 0;else{const n=!A.und(e.tension)||!A.und(e.friction);(n||!A.und(e.frequency)||!A.und(e.damping)||!A.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}const ii=[];class Su{constructor(){this.changed=!1,this.values=ii,this.toValues=null,this.fromValues=ii,this.to=void 0,this.from=void 0,this.config=new xu,this.immediate=!1}}function ai(t,{key:e,props:n,defaultProps:o,state:r,actions:s}){return new Promise((a,l)=>{var c;let u,d,m=fn((c=n.cancel)!=null?c:o==null?void 0:o.cancel,e);if(m)h();else{A.und(n.pause)||(r.paused=fn(n.pause,e));let y=o==null?void 0:o.pause;y!==!0&&(y=r.paused||fn(y,e)),u=kt(n.delay||0,e),y?(r.resumeQueue.add(b),s.pause()):(s.resume(),b())}function v(){r.resumeQueue.add(b),r.timeouts.delete(d),d.cancel(),u=d.time-Q.now()}function b(){u>0&&!Je.skipAnimation?(r.delayed=!0,d=Q.setTimeout(h,u),r.pauseQueue.add(v),r.timeouts.add(d)):h()}function h(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(v),r.timeouts.delete(d),t<=(r.cancelId||0)&&(m=!0);try{s.start(Se({},n,{callId:t,cancel:m}),a)}catch(y){l(y)}}})}const pr=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?jt(t.get()):e.every(n=>n.noop)?li(t.get()):Ue(t.get(),e.every(n=>n.finished)),li=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),Ue=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),jt=t=>({value:t,cancelled:!0,finished:!1});function ci(t,e,n,o){const{callId:r,parentId:s,onRest:a}=e,{asyncTo:l,promise:c}=n;return!s&&t===l&&!e.reset?c:n.promise=fe(this,null,function*(){n.asyncId=r,n.asyncTo=t;const u=dr(e,(g,x)=>x==="onRest"?void 0:g);let d,m;const v=new Promise((g,x)=>(d=g,m=x)),b=g=>{const x=r<=(n.cancelId||0)&&jt(o)||r!==n.asyncId&&Ue(o,!1);if(x)throw g.result=x,m(g),g},h=(g,x)=>{const S=new ui,C=new di;return fe(this,null,function*(){if(Je.skipAnimation)throw pn(n),C.result=Ue(o,!1),m(C),C;b(S);const w=A.obj(g)?Se({},g):Se({},x,{to:g});w.parentId=r,Xe(u,(E,I)=>{A.und(w[I])&&(w[I]=E)});const k=yield o.start(w);return b(S),n.paused&&(yield new Promise(E=>{n.resumeQueue.add(E)})),k})};let y;if(Je.skipAnimation)return pn(n),Ue(o,!1);try{let g;A.arr(t)?g=(x=>fe(this,null,function*(){for(const S of x)yield h(S)}))(t):g=Promise.resolve(t(h,o.stop.bind(o))),yield Promise.all([g.then(d),v]),y=Ue(o.get(),!0,!1)}catch(g){if(g instanceof ui)y=g.result;else if(g instanceof di)y=g.result;else throw g}finally{r==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?c:void 0)}return A.fun(a)&&Q.batchedUpdates(()=>{a(y,o,o.item)}),y})}function pn(t,e){rn(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class ui extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class di extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const hr=t=>t instanceof gr;let wu=1;class gr extends Ks{constructor(...e){super(...e),this.id=wu++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Qe(this);return e&&e.getValue()}to(...e){return Je.to(this,e)}interpolate(...e){return eu(),Je.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,n=!1){cn(this,{type:"change",parent:this,value:e,idle:n})}_onPriorityChange(e){this.idle||Bn.sort(this),cn(this,{type:"priority",parent:this,priority:e})}}const Et=Symbol.for("SpringPhase"),fi=1,mi=2,pi=4,vr=t=>(t[Et]&fi)>0,ht=t=>(t[Et]&mi)>0,hn=t=>(t[Et]&pi)>0,hi=(t,e)=>e?t[Et]|=mi|fi:t[Et]&=-3,gi=(t,e)=>e?t[Et]|=pi:t[Et]&=-5;class ku extends gr{constructor(e,n){if(super(),this.key=void 0,this.animation=new Su,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!A.und(e)||!A.und(n)){const o=A.obj(e)?Se({},e):Se({},n,{from:e});A.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(ht(this)||this._state.asyncTo)||hn(this)}get goal(){return Fe(this.animation.to)}get velocity(){const e=Qe(this);return e instanceof Vt?e.lastVelocity||0:e.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return vr(this)}get isAnimating(){return ht(this)}get isPaused(){return hn(this)}get isDelayed(){return this._state.delayed}advance(e){let n=!0,o=!1;const r=this.animation;let{config:s,toValues:a}=r;const l=Hn(r.to);!l&&ze(r.to)&&(a=De(Fe(r.to))),r.values.forEach((d,m)=>{if(d.done)return;const v=d.constructor==Zt?1:l?l[m].lastPosition:a[m];let b=r.immediate,h=v;if(!b){if(h=d.lastPosition,s.tension<=0){d.done=!0;return}let y=d.elapsedTime+=e;const g=r.fromValues[m],x=d.v0!=null?d.v0:d.v0=A.arr(s.velocity)?s.velocity[m]:s.velocity;let S;const C=s.precision||(g==v?.005:Math.min(1,Math.abs(v-g)*.001));if(A.und(s.duration))if(s.decay){const w=s.decay===!0?.998:s.decay,k=Math.exp(-(1-w)*y);h=g+x/(1-w)*(1-k),b=Math.abs(d.lastPosition-h)<=C,S=x*k}else{S=d.lastVelocity==null?x:d.lastVelocity;const w=s.restVelocity||C/10,k=s.clamp?0:s.bounce,E=!A.und(k),I=g==v?d.v0>0:g<v;let T,Z=!1;const M=1,N=Math.ceil(e/M);for(let U=0;U<N&&(T=Math.abs(S)>w,!(!T&&(b=Math.abs(v-h)<=C,b)));++U){E&&(Z=h==v||h>v==I,Z&&(S=-S*k,h=v));const z=-s.tension*1e-6*(h-v),P=-s.friction*.001*S,F=(z+P)/s.mass;S=S+F*M,h=h+S*M}}else{let w=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,d.durationProgress>0&&(d.elapsedTime=s.duration*d.durationProgress,y=d.elapsedTime+=e)),w=(s.progress||0)+y/this._memoizedDuration,w=w>1?1:w<0?0:w,d.durationProgress=w),h=g+s.easing(w)*(v-g),S=(h-d.lastPosition)/e,b=w==1}d.lastVelocity=S,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),b=!0)}l&&!l[m].done&&(b=!1),b?d.done=!0:n=!1,d.setValue(h,s.round)&&(o=!0)});const c=Qe(this),u=c.getValue();if(n){const d=Fe(r.to);(u!==d||o)&&!s.decay?(c.setValue(d),this._onChange(d)):o&&s.decay&&this._onChange(u),this._stop()}else o&&this._onChange(u)}set(e){return Q.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ht(this)){const{to:e,config:n}=this.animation;Q.batchedUpdates(()=>{this._onStart(),n.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,n){let o;return A.und(e)?(o=this.queue||[],this.queue=[]):o=[A.obj(e)?e:Se({},n,{to:e})],Promise.all(o.map(r=>this._update(r))).then(r=>pr(this,r))}stop(e){const{to:n}=this.animation;return this._focus(this.get()),pn(this._state,e&&this._lastCallId),Q.batchedUpdates(()=>this._stop(n,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const n=this.key||"";let{to:o,from:r}=e;o=A.obj(o)?o[n]:o,(o==null||fr(o))&&(o=void 0),r=A.obj(r)?r[n]:r,r==null&&(r=void 0);const s={to:o,from:r};return vr(this)||(e.reverse&&([o,r]=[r,o]),r=Fe(r),A.und(r)?Qe(this)||this._set(o):this._set(r)),s}_update(e,n){let o=Se({},e);const{key:r,defaultProps:s}=this;o.default&&Object.assign(s,dr(o,(c,u)=>/^on/.test(u)?ni(c,r):c)),yi(this,o,"onProps"),bn(this,"onProps",o,this);const a=this._prepareNode(o);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const l=this._state;return ai(++this._lastCallId,{key:r,props:o,defaultProps:s,state:l,actions:{pause:()=>{hn(this)||(gi(this,!0),sn(l.pauseQueue),bn(this,"onPause",Ue(this,gn(this,this.animation.to)),this))},resume:()=>{hn(this)&&(gi(this,!1),ht(this)&&this._resume(),sn(l.resumeQueue),bn(this,"onResume",Ue(this,gn(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(c=>{if(o.loop&&c.finished&&!(n&&c.noop)){const u=vi(o);if(u)return this._update(u,!0)}return c})}_merge(e,n,o){if(n.cancel)return this.stop(!0),o(jt(this));const r=!A.und(e.to),s=!A.und(e.from);if(r||s)if(n.callId>this._lastToId)this._lastToId=n.callId;else return o(jt(this));const{key:a,defaultProps:l,animation:c}=this,{to:u,from:d}=c;let{to:m=u,from:v=d}=e;s&&!r&&(!n.default||A.und(m))&&(m=v),n.reverse&&([m,v]=[v,m]);const b=!rt(v,d);b&&(c.from=v),v=Fe(v);const h=!rt(m,u);h&&this._focus(m);const y=fr(n.to),{config:g}=c,{decay:x,velocity:S}=g;(r||s)&&(g.velocity=0),n.config&&!y&&Cu(g,kt(n.config,a),n.config!==l.config?kt(l.config,a):void 0);let C=Qe(this);if(!C||A.und(m))return o(Ue(this,!0));const w=A.und(n.reset)?s&&!n.default:!A.und(v)&&fn(n.reset,a),k=w?v:this.get(),E=mn(m),I=A.num(E)||A.arr(E)||Wn(E),T=!y&&(!I||fn(l.immediate||n.immediate,a));if(h){const U=ur(m);if(U!==C.constructor)if(T)C=this._set(E);else throw Error(`Cannot animate between ${C.constructor.name} and ${U.name}, as the "to" prop suggests`)}const Z=C.constructor;let M=ze(m),N=!1;if(!M){const U=w||!vr(this)&&b;(h||U)&&(N=rt(mn(k),E),M=!N),(!rt(c.immediate,T)&&!T||!rt(g.decay,x)||!rt(g.velocity,S))&&(M=!0)}if(N&&ht(this)&&(c.changed&&!w?M=!0:M||this._stop(u)),!y&&((M||ze(u))&&(c.values=C.getPayload(),c.toValues=ze(m)?null:Z==Zt?[1]:De(E)),c.immediate!=T&&(c.immediate=T,!T&&!w&&this._set(u)),M)){const{onRest:U}=c;se(Iu,P=>yi(this,n,P));const z=Ue(this,gn(this,u));sn(this._pendingCalls,z),this._pendingCalls.add(o),c.changed&&Q.batchedUpdates(()=>{c.changed=!w,U==null||U(z,this),w?kt(l.onRest,z):c.onStart==null||c.onStart(z,this)})}w&&this._set(k),y?o(ci(n.to,n,this._state,this)):M?this._start():ht(this)&&!h?this._pendingCalls.add(o):o(li(k))}_focus(e){const n=this.animation;e!==n.to&&(js(this)&&this._detach(),n.to=e,js(this)&&this._attach())}_attach(){let e=0;const{to:n}=this.animation;ze(n)&&(zt(n,this),hr(n)&&(e=n.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ze(e)&&un(e,this)}_set(e,n=!0){const o=Fe(e);if(!A.und(o)){const r=Qe(this);if(!r||!rt(o,r.getValue())){const s=ur(o);!r||r.constructor!=s?lr(this,s.create(o)):r.setValue(o),r&&Q.batchedUpdates(()=>{this._onChange(o,n)})}}return Qe(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,bn(this,"onStart",Ue(this,gn(this,e.to)),this))}_onChange(e,n){n||(this._onStart(),kt(this.animation.onChange,e,this)),kt(this.defaultProps.onChange,e,this),super._onChange(e,n)}_start(){const e=this.animation;Qe(this).reset(Fe(e.to)),e.immediate||(e.fromValues=e.values.map(n=>n.lastPosition)),ht(this)||(hi(this,!0),hn(this)||this._resume())}_resume(){Je.skipAnimation?this.finish():Bn.start(this)}_stop(e,n){if(ht(this)){hi(this,!1);const o=this.animation;se(o.values,s=>{s.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),cn(this,{type:"idle",parent:this});const r=n?jt(this.get()):Ue(this.get(),gn(this,e!=null?e:o.to));sn(this._pendingCalls,r),o.changed&&(o.changed=!1,bn(this,"onRest",r,this))}}}function gn(t,e){const n=mn(e),o=mn(t.get());return rt(o,n)}function vi(t,e=t.loop,n=t.to){let o=kt(e);if(o){const r=o!==!0&&ri(o),s=(r||t).reverse,a=!r||r.reset;return vn(Se({},t,{loop:e,default:!1,pause:void 0,to:!s||fr(n)?n:void 0,from:a?t.from:void 0,reset:a},r))}}function vn(t){const{to:e,from:n}=t=ri(t),o=new Set;return A.obj(e)&&bi(e,o),A.obj(n)&&bi(n,o),t.keys=o.size?Array.from(o):null,t}function Eu(t){const e=vn(t);return A.und(e.default)&&(e.default=dr(e)),e}function bi(t,e){Xe(t,(n,o)=>n!=null&&e.add(o))}const Iu=["onStart","onRest","onChange","onPause","onResume"];function yi(t,e,n){t.animation[n]=e[n]!==oi(e,n)?ni(e[n],t.key):void 0}function bn(t,e,...n){var o,r,s,a;(o=(r=t.animation)[e])==null||o.call(r,...n),(s=(a=t.defaultProps)[e])==null||s.call(a,...n)}const $u=["onStart","onChange","onRest"];let _u=1,Pu=class{constructor(e,n){this.id=_u++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),e&&this.start(Se({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((n,o)=>e[o]=n.get()),e}set(e){for(const n in e){const o=e[n];A.und(o)||this.springs[n].set(o)}}update(e){return e&&this.queue.push(vn(e)),this}start(e){let{queue:n}=this;return e?n=De(e).map(vn):this.queue=[],this._flush?this._flush(this,n):(Ei(this,n),br(this,n))}stop(e,n){if(e!==!!e&&(n=e),n){const o=this.springs;se(De(n),r=>o[r].stop(!!e))}else pn(this._state,this._lastAsyncId),this.each(o=>o.stop(!!e));return this}pause(e){if(A.und(e))this.start({pause:!0});else{const n=this.springs;se(De(e),o=>n[o].pause())}return this}resume(e){if(A.und(e))this.start({pause:!1});else{const n=this.springs;se(De(e),o=>n[o].resume())}return this}each(e){Xe(this.springs,e)}_onFrame(){const{onStart:e,onChange:n,onRest:o}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,rn(e,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const a=!r&&this._started,l=s||a&&o.size?this.get():null;s&&n.size&&rn(n,([c,u])=>{u.value=l,c(u,this,this._item)}),a&&(this._started=!1,rn(o,([c,u])=>{u.value=l,c(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Q.onFrame(this._onFrame)}};function br(t,e){return Promise.all(e.map(n=>xi(t,n))).then(n=>pr(t,n))}function xi(t,e,n){return fe(this,null,function*(){const{keys:o,to:r,from:s,loop:a,onRest:l,onResolve:c}=e,u=A.obj(e.default)&&e.default;a&&(e.loop=!1),r===!1&&(e.to=null),s===!1&&(e.from=null);const d=A.arr(r)||A.fun(r)?r:void 0;d?(e.to=void 0,e.onRest=void 0,u&&(u.onRest=void 0)):se($u,y=>{const g=e[y];if(A.fun(g)){const x=t._events[y];e[y]=({finished:S,cancelled:C})=>{const w=x.get(g);w?(S||(w.finished=!1),C&&(w.cancelled=!0)):x.set(g,{value:null,finished:S||!1,cancelled:C||!1})},u&&(u[y]=e[y])}});const m=t._state;e.pause===!m.paused?(m.paused=e.pause,sn(e.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(e.pause=!0);const v=(o||Object.keys(t.springs)).map(y=>t.springs[y].start(e)),b=e.cancel===!0||oi(e,"cancel")===!0;(d||b&&m.asyncId)&&v.push(ai(++t._lastAsyncId,{props:e,state:m,actions:{pause:Jo,resume:Jo,start(y,g){b?(pn(m,t._lastAsyncId),g(jt(t))):(y.onRest=l,g(ci(d,y,m,t)))}}})),m.paused&&(yield new Promise(y=>{m.resumeQueue.add(y)}));const h=pr(t,yield Promise.all(v));if(a&&h.finished&&!(n&&h.noop)){const y=vi(e,a,r);if(y)return Ei(t,[y]),xi(t,y,!0)}return c&&Q.batchedUpdates(()=>c(h,t,t.item)),h})}function Ci(t,e){const n=Se({},t.springs);return e&&se(De(e),o=>{A.und(o.keys)&&(o=vn(o)),A.obj(o.to)||(o=Se({},o,{to:void 0})),ki(n,o,r=>wi(r))}),Si(t,n),n}function Si(t,e){Xe(e,(n,o)=>{t.springs[o]||(t.springs[o]=n,zt(n,t))})}function wi(t,e){const n=new ku;return n.key=t,e&&zt(n,e),n}function ki(t,e,n){e.keys&&se(e.keys,o=>{(t[o]||(t[o]=n(o)))._prepareNode(e)})}function Ei(t,e){se(e,n=>{ki(t.springs,n,o=>wi(o,t))})}function Fu(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,s;for(s=0;s<o.length;s++)r=o[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}const Mu=["children"],qn=t=>{let{children:e}=t,n=Fu(t,Mu);const o=i.useContext(Xn),r=n.pause||!!o.pause,s=n.immediate||!!o.immediate;n=ru(()=>({pause:r,immediate:s}),[r,s]);const{Provider:a}=Xn;return J.createElement(a,{value:n},e)},Xn=Nu(qn,{});qn.Provider=Xn.Provider,qn.Consumer=Xn.Consumer;function Nu(t,e){return Object.assign(t,J.createContext(e)),t.Provider._context=t,t.Consumer._context=t,t}const Tu=()=>{const t=[],e=function(r){nu();const s=[];return se(t,(a,l)=>{if(A.und(r))s.push(a.start());else{const c=n(r,a,l);c&&s.push(a.start(c))}}),s};e.current=t,e.add=function(o){t.includes(o)||t.push(o)},e.delete=function(o){const r=t.indexOf(o);~r&&t.splice(r,1)},e.pause=function(){return se(t,o=>o.pause(...arguments)),this},e.resume=function(){return se(t,o=>o.resume(...arguments)),this},e.set=function(o){se(t,r=>r.set(o))},e.start=function(o){const r=[];return se(t,(s,a)=>{if(A.und(o))r.push(s.start());else{const l=this._getProps(o,s,a);l&&r.push(s.start(l))}}),r},e.stop=function(){return se(t,o=>o.stop(...arguments)),this},e.update=function(o){return se(t,(r,s)=>r.update(this._getProps(o,r,s))),this};const n=function(r,s,a){return A.fun(r)?r(a,s):r};return e._getProps=n,e};function Ou(t,e,n){const o=A.fun(e)&&e;o&&!n&&(n=[]);const r=i.useMemo(()=>o||arguments.length==3?Tu():void 0,[]),s=i.useRef(0),a=qs(),l=i.useMemo(()=>({ctrls:[],queue:[],flush(x,S){const C=Ci(x,S);return s.current>0&&!l.queue.length&&!Object.keys(C).some(k=>!x.springs[k])?br(x,S):new Promise(k=>{Si(x,C),l.queue.push(()=>{k(br(x,S))}),a()})}}),[]),c=i.useRef([...l.ctrls]),u=[],d=Js(t)||0;i.useMemo(()=>{se(c.current.slice(t,d),x=>{bu(x,r),x.stop(!0)}),c.current.length=t,m(d,t)},[t]),i.useMemo(()=>{m(0,Math.min(d,t))},n);function m(x,S){for(let C=x;C<S;C++){const w=c.current[C]||(c.current[C]=new Pu(null,l.flush)),k=o?o(C,w):e[C];k&&(u[C]=Eu(k))}}const v=c.current.map((x,S)=>Ci(x,u[S])),b=i.useContext(qn),h=Js(b),y=b!==h&&vu(b);ar(()=>{s.current++,l.ctrls=c.current;const{queue:x}=l;x.length&&(l.queue=[],se(x,S=>S())),se(c.current,(S,C)=>{r==null||r.add(S),y&&S.start({default:b});const w=u[C];w&&(yu(S,w.ref),S.ref?S.queue.push(w):S.start(w))})}),Xs(()=>()=>{se(l.ctrls,x=>x.stop(!0))});const g=v.map(x=>Se({},x));return r?[g,r]:g}function Ve(t,e){const n=A.fun(t),[[o],r]=Ou(1,n?t:[t],n?e||[]:e);return n||arguments.length==2?[o,r]:o}let Ii;(function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"})(Ii||(Ii={}));class Du extends gr{constructor(e,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=ln(...n);const o=this._get(),r=ur(o);lr(this,r.create(o))}advance(e){const n=this._get(),o=this.get();rt(n,o)||(Qe(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&$i(this._active)&&yr(this)}_get(){const e=A.arr(this.source)?this.source.map(Fe):De(Fe(this.source));return this.calc(...e)}_start(){this.idle&&!$i(this._active)&&(this.idle=!1,se(Hn(this),e=>{e.done=!1}),Je.skipAnimation?(Q.batchedUpdates(()=>this.advance()),yr(this)):Bn.start(this))}_attach(){let e=1;se(De(this.source),n=>{ze(n)&&zt(n,this),hr(n)&&(n.idle||this._active.add(n),e=Math.max(e,n.priority+1))}),this.priority=e,this._start()}_detach(){se(De(this.source),e=>{ze(e)&&un(e,this)}),this._active.clear(),yr(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=De(this.source).reduce((n,o)=>Math.max(n,(hr(o)?o.priority:0)+1),0))}}function Au(t){return t.idle!==!1}function $i(t){return!t.size||Array.from(t).every(Au)}function yr(t){t.idle||(t.idle=!0,se(Hn(t),e=>{e.done=!0}),cn(t,{type:"idle",parent:t}))}Je.assign({createStringInterpolator:Ys,to:(t,e)=>new Du(t,e)});function xr(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,s;for(s=0;s<o.length;s++)r=o[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}const Lu=["style","children","scrollTop","scrollLeft","viewBox"],_i=/^--/;function Bu(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!_i.test(t)&&!(yn.hasOwnProperty(t)&&yn[t])?e+"px":(""+e).trim()}const Pi={};function zu(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",o=e,{style:r,children:s,scrollTop:a,scrollLeft:l,viewBox:c}=o,u=xr(o,Lu),d=Object.values(u),m=Object.keys(u).map(v=>n||t.hasAttribute(v)?v:Pi[v]||(Pi[v]=v.replace(/([A-Z])/g,b=>"-"+b.toLowerCase())));s!==void 0&&(t.textContent=s);for(let v in r)if(r.hasOwnProperty(v)){const b=Bu(v,r[v]);_i.test(v)?t.style.setProperty(v,b):t.style[v]=b}m.forEach((v,b)=>{t.setAttribute(v,d[b])}),a!==void 0&&(t.scrollTop=a),l!==void 0&&(t.scrollLeft=l),c!==void 0&&t.setAttribute("viewBox",c)}let yn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Vu=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),Zu=["Webkit","Ms","Moz","O"];yn=Object.keys(yn).reduce((t,e)=>(Zu.forEach(n=>t[Vu(n,e)]=t[e]),t),yn);const ju=["x","y","z"],Ku=/^(matrix|translate|scale|rotate|skew)/,Wu=/^(translate)/,Hu=/^(rotate|skew)/,Cr=(t,e)=>A.num(t)&&t!==0?t+e:t,Jn=(t,e)=>A.arr(t)?t.every(n=>Jn(n,e)):A.num(t)?t===e:parseFloat(t)===e;class Uu extends Yn{constructor(e){let{x:n,y:o,z:r}=e,s=xr(e,ju);const a=[],l=[];(n||o||r)&&(a.push([n||0,o||0,r||0]),l.push(c=>[`translate3d(${c.map(u=>Cr(u,"px")).join(",")})`,Jn(c,0)])),Xe(s,(c,u)=>{if(u==="transform")a.push([c||""]),l.push(d=>[d,d===""]);else if(Ku.test(u)){if(delete s[u],A.und(c))return;const d=Wu.test(u)?"px":Hu.test(u)?"deg":"";a.push(De(c)),l.push(u==="rotate3d"?([m,v,b,h])=>[`rotate3d(${m},${v},${b},${Cr(h,d)})`,Jn(h,0)]:m=>[`${u}(${m.map(v=>Cr(v,d)).join(",")})`,Jn(m,u.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new Yu(a,l)),super(s)}}class Yu extends Ks{constructor(e,n){super(),this._value=null,this.inputs=e,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let e="",n=!0;return se(this.inputs,(o,r)=>{const s=Fe(o[0]),[a,l]=this.transforms[r](A.arr(s)?s:o.map(Fe));e+=" "+a,n=n&&l}),n?"none":e}observerAdded(e){e==1&&se(this.inputs,n=>se(n,o=>ze(o)&&zt(o,this)))}observerRemoved(e){e==0&&se(this.inputs,n=>se(n,o=>ze(o)&&un(o,this)))}eventObserved(e){e.type=="change"&&(this._value=null),cn(this,e)}}const Gu=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],qu=["scrollTop","scrollLeft"];Je.assign({batchedUpdates:Ot.unstable_batchedUpdates,createStringInterpolator:Ys,colors:Oc});const ke=fu(Gu,{applyAnimatedValues:zu,createAnimatedStyle:t=>new Uu(t),getComponentProps:t=>xr(t,qu)}).animated;function Xu(t){return(typeof t=="function"?t():t)||document.body}function Qn(t,e){if(Dt&&t){const n=Xu(t);return Ot.createPortal(e,n)}return e}function Ju(t){const e=i.useRef(t);return t&&(e.current=!0),!!e.current}const Rn=t=>Qu(t.active,t.forceRender,t.destroyOnClose)?t.children:null;function Qu(t,e,n){const o=Ju(t);return e||t?!0:o?!n:!1}const Ru={click:"onClick",touchstart:"onTouchStart"};function Fi(t,e){const n=Object.assign({},e.props);for(const o of t){const r=Ru[o];n[r]=function(s){var a,l;s.stopPropagation(),(l=(a=e.props)[r])===null||l===void 0||l.call(a,s)}}return i.cloneElement(e,n)}const Sr="adm-mask",ed={default:.55,thin:.35,thick:.75},td={black:"0, 0, 0",white:"255, 255, 255"},nd={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},eo=t=>{const e=oe(nd,t),{locale:n}=Pe(),o=i.useRef(null);_s(o,e.visible&&e.disableBodyScroll);const r=i.useMemo(()=>{var d;const m=(d=ed[e.opacity])!==null&&d!==void 0?d:e.opacity,v=td[e.color];return v?`rgba(${v}, ${m})`:e.color},[e.color,e.opacity]),[s,a]=i.useState(e.visible),l=te.useUnmountedRef(),{opacity:c}=Ve({opacity:e.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var d,m;l.current||(a(e.visible),e.visible?(d=e.afterShow)===null||d===void 0||d.call(e):(m=e.afterClose)===null||m===void 0||m.call(e))}}),u=Fi(e.stopPropagation,G(e,i.createElement(ke.div,{className:Sr,ref:o,"aria-hidden":!0,style:Object.assign(Object.assign({},e.style),{background:r,opacity:c,display:s?void 0:"none"}),onClick:d=>{var m;d.target===d.currentTarget&&((m=e.onMaskClick)===null||m===void 0||m.call(e,d))}},e.onMaskClick&&i.createElement("div",{className:`${Sr}-aria-button`,role:"button","aria-label":n.Mask.name,onClick:e.onMaskClick}),i.createElement("div",{className:`${Sr}-content`},e.children))));return i.createElement(Rn,{active:s,forceRender:e.forceRender,destroyOnClose:e.destroyOnClose},Qn(e.getContainer,u))};function od(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"AddOutline-AddOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"AddOutline-add"},J.createElement("rect",{id:"AddOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",id:"AddOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function Mi(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"CheckOutline-CheckOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"CheckOutline-编组"},J.createElement("rect",{id:"CheckOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",id:"CheckOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function rd(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"CloseCircleFill-CloseCircleFill",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"CloseCircleFill-编组"},J.createElement("rect",{id:"CloseCircleFill-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",id:"CloseCircleFill-形状结合",fill:"currentColor",fillRule:"nonzero"}))))}function to(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"CloseOutline-编组"},J.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",id:"CloseOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function sd(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"DownOutline-DownOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",null,J.createElement("rect",{id:"DownOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M5.11219264,16.3947957 L22.6612572,34.5767382 L22.6612572,34.5767382 C23.2125856,35.1304785 24.0863155,35.1630514 24.6755735,34.6744571 L24.7825775,34.5767382 L42.8834676,16.3956061 C42.9580998,16.320643 43,16.2191697 43,16.1133896 L43,12.9866673 C43,12.7657534 42.8209139,12.5866673 42.6,12.5866673 C42.4936115,12.5866673 42.391606,12.6290496 42.316542,12.7044413 L23.7816937,31.3201933 L23.7816937,31.3201933 L5.6866816,12.7237117 C5.53262122,12.5653818 5.27937888,12.5619207 5.121049,12.7159811 C5.04365775,12.7912854 5,12.8946805 5,13.0026627 L5,16.1170064 C5,16.2206403 5.04022164,16.3202292 5.11219264,16.3947957 Z",id:"DownOutline-down",fill:"currentColor",fillRule:"nonzero"}))))}function id(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"LeftOutline-编组"},J.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",id:"LeftOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function ad(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"RightOutline-RightOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"RightOutline-RightOutlined"},J.createElement("rect",{id:"RightOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",id:"RightOutline-right",fill:"currentColor",fillRule:"nonzero"}))))}function ld(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"SearchOutline-编组"},J.createElement("rect",{id:"SearchOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",id:"SearchOutline-形状",fill:"currentColor",fillRule:"nonzero"}))))}const cd={closeOnMaskClick:!1,closeIcon:i.createElement(to,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function ud(t){const[e,n]=i.useState(t);return te.useIsomorphicLayoutEffect(()=>{n(t)},[t]),e}function dd(t,e,n){return Math.max(e,Math.min(t,n))}const ve={toVector(t,e){return t===void 0&&(t=e),Array.isArray(t)?t:[t,t]},add(t,e){return[t[0]+e[0],t[1]+e[1]]},sub(t,e){return[t[0]-e[0],t[1]-e[1]]},addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function Ni(t,e,n){return e===0||Math.abs(e)===1/0?Math.pow(t,n*5):t*e*n/(e+n*t)}function Ti(t,e,n,o=.15){return o===0?dd(t,e,n):t<e?-Ni(e-t,n-e,o)+e:t>n?+Ni(t-n,n-e,o)+n:t}function fd(t,[e,n],[o,r]){const[[s,a],[l,c]]=t;return[Ti(e,s,a,o),Ti(n,l,c,r)]}function md(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function pd(t){var e=md(t,"string");return typeof e=="symbol"?e:String(e)}function Ee(t,e,n){return e=pd(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function he(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Oi(Object(n),!0).forEach(function(o){Ee(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oi(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}const Di={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Ai(t){return t?t[0].toUpperCase()+t.slice(1):""}const hd=["enter","leave"];function gd(t=!1,e){return t&&!hd.includes(e)}function vd(t,e="",n=!1){const o=Di[t],r=o&&o[e]||e;return"on"+Ai(t)+Ai(r)+(gd(n,r)?"Capture":"")}const bd=["gotpointercapture","lostpointercapture"];function yd(t){let e=t.substring(2).toLowerCase();const n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));const o=bd.includes(e)?"capturecapture":"capture",r=!!~e.indexOf(o);return r&&(e=e.replace("capture","")),{device:e,capture:r,passive:n}}function xd(t,e=""){const n=Di[t],o=n&&n[e]||e;return t+o}function no(t){return"touches"in t}function Li(t){return no(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function Cd(t){return Array.from(t.touches).filter(e=>{var n,o;return e.target===t.currentTarget||((n=t.currentTarget)===null||n===void 0||(o=n.contains)===null||o===void 0?void 0:o.call(n,e.target))})}function Sd(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function Bi(t){return no(t)?Sd(t)[0]:t}function wr(t,e){try{const n=e.clientX-t.clientX,o=e.clientY-t.clientY,r=(e.clientX+t.clientX)/2,s=(e.clientY+t.clientY)/2,a=Math.hypot(n,o);return{angle:-(Math.atan2(n,o)*180)/Math.PI,distance:a,origin:[r,s]}}catch(n){}return null}function wd(t){return Cd(t).map(e=>e.identifier)}function zi(t,e){const[n,o]=Array.from(t.touches).filter(r=>e.includes(r.identifier));return wr(n,o)}function kr(t){const e=Bi(t);return no(t)?e.identifier:e.pointerId}function Vi(t){const e=Bi(t);return[e.clientX,e.clientY]}const Zi=40,ji=800;function Ki(t){let{deltaX:e,deltaY:n,deltaMode:o}=t;return o===1?(e*=Zi,n*=Zi):o===2&&(e*=ji,n*=ji),[e,n]}function kd(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s}=t;Object.assign(e,{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s})}return e}function oo(t,...e){return typeof t=="function"?t(...e):t}function Ed(){}function Id(...t){return t.length===0?Ed:t.length===1?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function Wi(t,e){return Object.assign({},e,t||{})}const $d=32;class Hi{constructor(e,n,o){this.ctrl=e,this.args=n,this.key=o,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:n,ingKey:o,args:r}=this;n[o]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const n=this.state,o=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=e.target,n.currentTarget=e.currentTarget,n.lastOffset=o.from?oo(o.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=e.timeStamp)}computeValues(e){const n=this.state;n._values=e,n.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:n,config:o,shared:r}=this;n.args=this.args;let s=0;if(e&&(n.event=e,o.preventDefault&&e.cancelable&&n.event.preventDefault(),n.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,kd(e)),r.down=r.pressed=r.buttons%2===1||r.touches>0,s=e.timeStamp-n.timeStamp,n.timeStamp=e.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const E=n._delta.map(Math.abs);ve.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(e);const[a,l]=n._movement,[c,u]=o.threshold,{_step:d,values:m}=n;if(o.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(a)>=c&&m[0]),d[1]===!1&&(d[1]=Math.abs(l)>=u&&m[1])):(d[0]===!1&&(d[0]=Math.abs(a)>=c&&Math.sign(a)*c),d[1]===!1&&(d[1]=Math.abs(l)>=u&&Math.sign(l)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const v=[0,0];if(o.hasCustomTransform){const[E,I]=m;v[0]=d[0]!==!1?E-d[0]:0,v[1]=d[1]!==!1?I-d[1]:0}else v[0]=d[0]!==!1?a-d[0]:0,v[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(v);const b=n.offset,h=n._active&&!n._blocked||n.active;h&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=r[this.ingKey]=n._active,e&&(n.first&&("bounds"in o&&(n._bounds=oo(o.bounds,n)),this.setup&&this.setup()),n.movement=v,this.computeOffset()));const[y,g]=n.offset,[[x,S],[C,w]]=n._bounds;n.overflow=[y<x?-1:y>S?1:0,g<C?-1:g>w?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const k=n._active?o.rubberband||[0,0]:[0,0];if(n.offset=fd(n._bounds,n.offset,k),n.delta=ve.sub(n.offset,b),this.computeMovement(),h&&(!n.last||s>$d)){n.delta=ve.sub(n.offset,b);const E=n.delta.map(Math.abs);ve.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[E[0]/s,E[1]/s],n.timeDelta=s)}}emit(){const e=this.state,n=this.shared,o=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!o.triggerAllEvents)return;const r=this.handler(he(he(he({},n),e),{},{[this.aliasKey]:e.values}));r!==void 0&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function _d([t,e],n){const o=Math.abs(t),r=Math.abs(e);if(o>r&&o>n)return"x";if(r>o&&r>n)return"y"}class Ui extends Hi{constructor(...e){super(...e),Ee(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=ve.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ve.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const n=this.state,o=this.config;if(!n.axis&&e){const r=typeof o.axisThreshold=="object"?o.axisThreshold[Li(e)]:o.axisThreshold;n.axis=_d(n._movement,r)}n._blocked=(o.lockDirection||!!o.axis)&&!n.axis||!!o.axis&&o.axis!==n.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const Pd=t=>t,Yi=.15,Gi={enabled(t=!0){return t},eventOptions(t,e,n){return he(he({},n.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[Yi,Yi];case!1:return[0,0];default:return ve.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return ve.toVector(t)},transform(t,e,n){const o=t||n.shared.transform;return this.hasCustomTransform=!!o,o||Pd},threshold(t){return ve.toVector(t,0)}},Fd=0,Kt=he(he({},Gi),{},{axis(t,e,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(t=Fd){return t},bounds(t={}){if(typeof t=="function")return s=>Kt.bounds(t(s));if("current"in t)return()=>t.current;if(typeof HTMLElement=="function"&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:n=1/0,top:o=-1/0,bottom:r=1/0}=t;return[[e,n],[o,r]]}}),qi={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};class Md extends Ui{constructor(...e){super(...e),Ee(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const n=e._bounds.getBoundingClientRect(),o=e.currentTarget.getBoundingClientRect(),r={left:n.left-o.left+e.offset[0],right:n.right-o.right+e.offset[0],top:n.top-o.top+e.offset[1],bottom:n.bottom-o.bottom+e.offset[1]};e._bounds=Kt.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const n=this.config,o=this.state;if(e.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(e.buttons):n.pointerButtons!==-1&&n.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);n.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(r&&r.size>1&&o._pointerActive)&&(this.start(e),this.setupPointer(e),o._pointerId=kr(e),o._pointerActive=!0,this.computeValues(Vi(e)),this.computeInitial(),n.preventScrollAxis&&Li(e)!=="mouse"?(o._active=!1,this.setupScrollPrevention(e)):n.delay>0?(this.setupDelayTrigger(e),n.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const n=this.state,o=this.config;if(!n._pointerActive)return;const r=kr(e);if(n._pointerId!==void 0&&r!==n._pointerId)return;const s=Vi(e);if(document.pointerLockElement===e.target?n._delta=[e.movementX,e.movementY]:(n._delta=ve.sub(s,n._values),this.computeValues(s)),ve.addTo(n._movement,n._delta),this.compute(e),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(e);return}if(o.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===o.preventScrollAxis||o.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(l){}const n=this.state,o=this.config;if(!n._active||!n._pointerActive)return;const r=kr(e);if(n._pointerId!==void 0&&r!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[s,a]=n._distance;if(n.tap=s<=o.tapsThreshold&&a<=o.tapsThreshold,n.tap&&o.filterTaps)n._force=!0;else{const[l,c]=n._delta,[u,d]=n._movement,[m,v]=o.swipe.velocity,[b,h]=o.swipe.distance,y=o.swipe.duration;if(n.elapsedTime<y){const g=Math.abs(l/n.timeDelta),x=Math.abs(c/n.timeDelta);g>m&&Math.abs(u)>b&&(n.swipe[0]=Math.sign(l)),x>v&&Math.abs(d)>h&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const n=this.config,o=n.device;n.pointerLock&&e.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,o,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,Nd(e);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const n=qi[e.key];if(n){const o=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),o._delta=n(this.config.keyboardDisplacement,r),o._keyboardActive=!0,ve.addTo(o._movement,o._delta),this.compute(e),this.emit()}}keyUp(e){e.key in qi&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const n=this.config.device;e(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(n,"change",this.pointerMove.bind(this)),e(n,"end",this.pointerUp.bind(this)),e(n,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Nd(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const xn=typeof window!="undefined"&&window.document&&window.document.createElement;function Xi(){return xn&&"ontouchstart"in window}function Td(){return Xi()||xn&&window.navigator.maxTouchPoints>1}function Od(){return xn&&"onpointerdown"in window}function Dd(){return xn&&"exitPointerLock"in window.document}function Ad(){try{return"constructor"in GestureEvent}catch(t){return!1}}const Ze={isBrowser:xn,gesture:Ad(),touch:Xi(),touchscreen:Td(),pointer:Od(),pointerLock:Dd()},Ld=250,Bd=180,zd=.5,Vd=50,Zd=250,jd=10,Ji={mouse:0,touch:0,pen:8},Kd=he(he({},Kt),{},{device(t,e,{pointer:{touch:n=!1,lock:o=!1,mouse:r=!1}={}}){return this.pointerLock=o&&Ze.pointerLock,Ze.touch&&n?"touch":this.pointerLock?"mouse":Ze.pointer&&!r?"pointer":Ze.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&t?Ld:void 0,!(!Ze.touchscreen||n===!1))return t||(n!==void 0?"y":void 0)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:o=1,keys:r=!0}={}}){return this.pointerButtons=o,this.keys=r,!this.pointerLock&&this.device==="pointer"&&n},threshold(t,e,{filterTaps:n=!1,tapsThreshold:o=3,axis:r=void 0}){const s=ve.toVector(t,n?o:r?1:0);return this.filterTaps=n,this.tapsThreshold=o,s},swipe({velocity:t=zd,distance:e=Vd,duration:n=Zd}={}){return{velocity:this.transform(ve.toVector(t)),distance:this.transform(ve.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return Bd;case!1:return 0;default:return t}},axisThreshold(t){return t?he(he({},Ji),t):Ji},keyboardDisplacement(t=jd){return t}});function Qi(t){const[e,n]=t.overflow,[o,r]=t._delta,[s,a]=t._direction;(e<0&&o>0&&s<0||e>0&&o<0&&s>0)&&(t._movement[0]=t._movementBound[0]),(n<0&&r>0&&a<0||n>0&&r<0&&a>0)&&(t._movement[1]=t._movementBound[1])}const Wd=30,Hd=100;class Ud extends Hi{constructor(...e){super(...e),Ee(this,"ingKey","pinching"),Ee(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const e=this.state;e._touchIds=[],e.canceled=!1,e.cancel=this.cancel.bind(this),e.turns=0}computeOffset(){const{type:e,movement:n,lastOffset:o}=this.state;e==="wheel"?this.state.offset=ve.add(n,o):this.state.offset=[(1+n[0])*o[0],n[1]+o[1]]}computeMovement(){const{offset:e,lastOffset:n}=this.state;this.state.movement=[e[0]/n[0],e[1]-n[1]]}axisIntent(){const e=this.state,[n,o]=e._movement;if(!e.axis){const r=Math.abs(n)*Wd-Math.abs(o);r<0?e.axis="angle":r>0&&(e.axis="scale")}}restrictToAxis(e){this.config.lockDirection&&(this.state.axis==="scale"?e[1]=0:this.state.axis==="angle"&&(e[0]=0))}cancel(){const e=this.state;e.canceled||setTimeout(()=>{e.canceled=!0,e._active=!1,this.compute(),this.emit()},0)}touchStart(e){this.ctrl.setEventIds(e);const n=this.state,o=this.ctrl.touchIds;if(n._active&&n._touchIds.every(s=>o.has(s))||o.size<2)return;this.start(e),n._touchIds=Array.from(o).slice(0,2);const r=zi(e,n._touchIds);r&&this.pinchStart(e,r)}pointerStart(e){if(e.buttons!=null&&e.buttons%2!==1)return;this.ctrl.setEventIds(e),e.target.setPointerCapture(e.pointerId);const n=this.state,o=n._pointerEvents,r=this.ctrl.pointerIds;if(n._active&&Array.from(o.keys()).every(a=>r.has(a))||(o.size<2&&o.set(e.pointerId,e),n._pointerEvents.size<2))return;this.start(e);const s=wr(...Array.from(o.values()));s&&this.pinchStart(e,s)}pinchStart(e,n){const o=this.state;o.origin=n.origin,this.computeValues([n.distance,n.angle]),this.computeInitial(),this.compute(e),this.emit()}touchMove(e){if(!this.state._active)return;const n=zi(e,this.state._touchIds);n&&this.pinchMove(e,n)}pointerMove(e){const n=this.state._pointerEvents;if(n.has(e.pointerId)&&n.set(e.pointerId,e),!this.state._active)return;const o=wr(...Array.from(n.values()));o&&this.pinchMove(e,o)}pinchMove(e,n){const o=this.state,r=o._values[1],s=n.angle-r;let a=0;Math.abs(s)>270&&(a+=Math.sign(s)),this.computeValues([n.distance,n.angle-360*a]),o.origin=n.origin,o.turns=a,o._movement=[o._values[0]/o._initial[0]-1,o._values[1]-o._initial[1]],this.compute(e),this.emit()}touchEnd(e){this.ctrl.setEventIds(e),this.state._active&&this.state._touchIds.some(n=>!this.ctrl.touchIds.has(n))&&(this.state._active=!1,this.compute(e),this.emit())}pointerEnd(e){const n=this.state;this.ctrl.setEventIds(e);try{e.target.releasePointerCapture(e.pointerId)}catch(o){}n._pointerEvents.has(e.pointerId)&&n._pointerEvents.delete(e.pointerId),n._active&&n._pointerEvents.size<2&&(n._active=!1,this.compute(e),this.emit())}gestureStart(e){e.cancelable&&e.preventDefault();const n=this.state;n._active||(this.start(e),this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY],this.compute(e),this.emit())}gestureMove(e){if(e.cancelable&&e.preventDefault(),!this.state._active)return;const n=this.state;this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY];const o=n._movement;n._movement=[e.scale-1,e.rotation],n._delta=ve.sub(n._movement,o),this.compute(e),this.emit()}gestureEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}wheel(e){const n=this.config.modifierKey;n&&(Array.isArray(n)?!n.find(o=>e[o]):!e[n])||(this.state._active?this.wheelChange(e):this.wheelStart(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(e){this.start(e),this.wheelChange(e)}wheelChange(e){"uv"in e||e.cancelable&&e.preventDefault();const o=this.state;o._delta=[-Ki(e)[1]/Hd*o.offset[0],0],ve.addTo(o._movement,o._delta),Qi(o),this.state.origin=[e.clientX,e.clientY],this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){const n=this.config.device;n&&(e(n,"start",this[n+"Start"].bind(this)),e(n,"change",this[n+"Move"].bind(this)),e(n,"end",this[n+"End"].bind(this)),e(n,"cancel",this[n+"End"].bind(this)),e("lostPointerCapture","",this[n+"End"].bind(this))),this.config.pinchOnWheel&&e("wheel","",this.wheel.bind(this),{passive:!1})}}const Yd=he(he({},Gi),{},{device(t,e,{shared:n,pointer:{touch:o=!1}={}}){if(n.target&&!Ze.touch&&Ze.gesture)return"gesture";if(Ze.touch&&o)return"touch";if(Ze.touchscreen){if(Ze.pointer)return"pointer";if(Ze.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:o={}}){const r=a=>{const l=Wi(oo(n,a),{min:-1/0,max:1/0});return[l.min,l.max]},s=a=>{const l=Wi(oo(o,a),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof n!="function"&&typeof o!="function"?[r(),s()]:a=>[r(a),s(a)]},threshold(t,e,n){return this.lockDirection=n.axis==="lock",ve.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t},pinchOnWheel(t=!0){return t}});he(he({},Kt),{},{mouseOnly:(t=!0)=>t});class Gd extends Ui{constructor(...e){super(...e),Ee(this,"ingKey","wheeling")}wheel(e){this.state._active||this.start(e),this.wheelChange(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){const n=this.state;n._delta=Ki(e),ve.addTo(n._movement,n._delta),Qi(n),this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("wheel","",this.wheel.bind(this))}}const qd=Kt;he(he({},Kt),{},{mouseOnly:(t=!0)=>t});const Er=new Map,Ir=new Map;function $r(t){Er.set(t.key,t.engine),Ir.set(t.key,t.resolver)}const Ri={key:"drag",engine:Md,resolver:Kd},Xd={key:"pinch",engine:Ud,resolver:Yd},Jd={key:"wheel",engine:Gd,resolver:qd};function Qd(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,s;for(s=0;s<o.length;s++)r=o[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function Rd(t,e){if(t==null)return{};var n=Qd(t,e),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)o=s[r],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}const e1={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=Ze.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},t1=["target","eventOptions","window","enabled","transform"];function ro(t={},e){const n={};for(const[o,r]of Object.entries(e))switch(typeof r){case"function":n[o]=r.call(n,t[o],o,t);break;case"object":n[o]=ro(t[o],r);break;case"boolean":r&&(n[o]=t[o]);break}return n}function n1(t,e,n={}){const o=t,{target:r,eventOptions:s,window:a,enabled:l,transform:c}=o,u=Rd(o,t1);if(n.shared=ro({target:r,eventOptions:s,window:a,enabled:l,transform:c},e1),e){const d=Ir.get(e);n[e]=ro(he({shared:n.shared},u),d)}else for(const d in u){const m=Ir.get(d);m&&(n[d]=ro(he({shared:n.shared},u[d]),m))}return n}class ea{constructor(e,n){Ee(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=n}add(e,n,o,r,s){const a=this._listeners,l=xd(n,o),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=he(he({},c),s);e.addEventListener(l,r,u);const d=()=>{e.removeEventListener(l,r,u),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class o1{constructor(){Ee(this,"_timeouts",new Map)}add(e,n,o=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(n,o,...r))}remove(e){const n=this._timeouts.get(e);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class r1{constructor(e){Ee(this,"gestures",new Set),Ee(this,"_targetEventStore",new ea(this)),Ee(this,"gestureEventStores",{}),Ee(this,"gestureTimeoutStores",{}),Ee(this,"handlers",{}),Ee(this,"config",{}),Ee(this,"pointerIds",new Set),Ee(this,"touchIds",new Set),Ee(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),s1(this,e)}setEventIds(e){if(no(e))return this.touchIds=new Set(wd(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,n){this.handlers=e,this.nativeHandlers=n}applyConfig(e,n){this.config=n1(e,n,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const n=this.config.shared,o={};let r;if(!(n.target&&(r=n.target(),!r))){if(n.enabled){for(const a of this.gestures){const l=this.config[a],c=ta(o,l.eventOptions,!!r);if(l.enabled){const u=Er.get(a);new u(this,e,a).bind(c)}}const s=ta(o,n.eventOptions,!!r);for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](he(he({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const s in o)o[s]=Id(...o[s]);if(!r)return o;for(const s in o){const{device:a,capture:l,passive:c}=yd(s);this._targetEventStore.add(r,a,"",o[s],{capture:l,passive:c})}}}}function Wt(t,e){t.gestures.add(e),t.gestureEventStores[e]=new ea(t,e),t.gestureTimeoutStores[e]=new o1}function s1(t,e){e.drag&&Wt(t,"drag"),e.wheel&&Wt(t,"wheel"),e.scroll&&Wt(t,"scroll"),e.move&&Wt(t,"move"),e.pinch&&Wt(t,"pinch"),e.hover&&Wt(t,"hover")}const ta=(t,e,n)=>(o,r,s,a={},l=!1)=>{var c,u;const d=(c=a.capture)!==null&&c!==void 0?c:e.capture,m=(u=a.passive)!==null&&u!==void 0?u:e.passive;let v=l?o:vd(o,r,d);n&&m&&(v+="Passive"),t[v]=t[v]||[],t[v].push(s)},i1=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function a1(t){const e={},n={},o=new Set;for(let r in t)i1.test(r)?(o.add(RegExp.lastMatch),n[r]=t[r]):e[r]=t[r];return[n,e,o]}function Ht(t,e,n,o,r,s){if(!t.has(n)||!Er.has(o))return;const a=n+"Start",l=n+"End",c=u=>{let d;return u.first&&a in e&&e[a](u),n in e&&(d=e[n](u)),u.last&&l in e&&e[l](u),d};r[o]=c,s[o]=s[o]||{}}function l1(t,e){const[n,o,r]=a1(t),s={};return Ht(r,n,"onDrag","drag",s,e),Ht(r,n,"onWheel","wheel",s,e),Ht(r,n,"onScroll","scroll",s,e),Ht(r,n,"onPinch","pinch",s,e),Ht(r,n,"onMove","move",s,e),Ht(r,n,"onHover","hover",s,e),{handlers:s,config:e,nativeHandlers:o}}function _r(t,e={},n,o){const r=i.useMemo(()=>new r1(t),[]);if(r.applyHandlers(t,o),r.applyConfig(e,n),i.useEffect(r.effect.bind(r)),i.useEffect(()=>r.clean.bind(r),[]),e.target===void 0)return r.bind.bind(r)}function so(t,e){return $r(Ri),_r({drag:t},e||{},"drag")}function c1(t,e){return $r(Jd),_r({wheel:t},e||{},"wheel")}function u1(t){return t.forEach($r),function(n,o){const{handlers:r,nativeHandlers:s,config:a}=l1(n,o||{});return _r(r,a,void 0,s)}}const io="adm-popup",d1=Object.assign(Object.assign({},cd),{closeOnSwipe:!1,position:"bottom"}),Ut=t=>{const{locale:e,popup:n={}}=Pe(),o=oe(d1,n,t),r=H(`${io}-body`,o.bodyClassName,`${io}-body-position-${o.position}`),[s,a]=i.useState(o.visible),l=i.useRef(null);_s(l,o.disableBodyScroll&&s?"strict":!1),te.useIsomorphicLayoutEffect(()=>{o.visible&&a(!0)},[o.visible]);const c=te.useUnmountedRef(),{percent:u}=Ve({percent:o.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var b,h;c.current||(a(o.visible),o.visible?(b=o.afterShow)===null||b===void 0||b.call(o):(h=o.afterClose)===null||h===void 0||h.call(o))}}),d=so(({swipe:[,b]})=>{var h;o.closeOnSwipe&&(b===1&&o.position==="bottom"||b===-1&&o.position==="top")&&((h=o.onClose)===null||h===void 0||h.call(o))},{axis:"y",enabled:["top","bottom"].includes(o.position)}),m=ud(s&&o.visible),v=Fi(o.stopPropagation,G(o,i.createElement("div",Object.assign({className:io,onClick:o.onClick,style:{display:s?void 0:"none",touchAction:["top","bottom"].includes(o.position)?"none":"auto"}},d()),o.mask&&i.createElement(eo,{visible:m,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose,onMaskClick:b=>{var h,y;(h=o.onMaskClick)===null||h===void 0||h.call(o,b),o.closeOnMaskClick&&((y=o.onClose)===null||y===void 0||y.call(o))},className:o.maskClassName,style:o.maskStyle,disableBodyScroll:!1,stopPropagation:o.stopPropagation}),i.createElement(ke.div,{className:r,style:Object.assign(Object.assign({},o.bodyStyle),{pointerEvents:u.to(b=>b===0?"unset":"none"),transform:u.to(b=>o.position==="bottom"?`translate(0, ${b}%)`:o.position==="top"?`translate(0, -${b}%)`:o.position==="left"?`translate(-${b}%, 0)`:o.position==="right"?`translate(${b}%, 0)`:"none")}),ref:l},o.showCloseButton&&i.createElement("a",{className:H(`${io}-close-icon`,"adm-plain-anchor"),onClick:()=>{var b;(b=o.onClose)===null||b===void 0||b.call(o)},role:"button","aria-label":e.common.close},o.closeIcon),o.children))));return i.createElement(Rn,{active:s,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose},Qn(o.getContainer,v))},na="adm-safe-area",Cn=t=>G(t,i.createElement("div",{className:H(na,`${na}-position-${t.position}`)})),ao=Object.assign({},Jl),{version:f1,render:m1,unmountComponentAtNode:p1}=ao;let lo;try{Number((f1||"").split(".")[0])>=18&&ao.createRoot&&(lo=ao.createRoot)}catch(t){}function oa(t){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:e}=ao;e&&typeof e=="object"&&(e.usingClientEntryPoint=t)}const co="__antd_mobile_root__";function h1(t,e){m1(t,e)}function g1(t,e){oa(!0);const n=e[co]||lo(e);oa(!1),n.render(t),e[co]=n}function v1(t,e){if(lo){g1(t,e);return}h1(t,e)}function b1(t){return p1(t)}function y1(t){return xt(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var e;(e=t[co])===null||e===void 0||e.unmount(),delete t[co]})})}function x1(t){return lo?y1(t):b1(t)}function Pr(t){const e=document.createElement("div");document.body.appendChild(e);function n(){x1(e)&&e.parentNode&&e.parentNode.removeChild(e)}return v1(t,e),n}function Sn(t){const e=i.forwardRef((r,s)=>{const[a,l]=i.useState(!1),c=i.useRef(!1),[u,d]=i.useState(t),m=i.useRef(0);i.useEffect(()=>{c.current?b():l(!0)},[]);function v(){var h,y;c.current=!0,l(!1),(y=(h=u.props).onClose)===null||y===void 0||y.call(h)}function b(){var h,y;o(),(y=(h=u.props).afterClose)===null||y===void 0||y.call(h)}return i.useImperativeHandle(s,()=>({close:v,replace:h=>{var y,g;m.current++,(g=(y=u.props).afterClose)===null||g===void 0||g.call(y),d(h)}})),i.cloneElement(u,Object.assign(Object.assign({},u.props),{key:m.current,visible:a,onClose:v,afterClose:b}))}),n=i.createRef(),o=Pr(i.createElement(e,{ref:n}));return{close:()=>xt(this,void 0,void 0,function*(){var r,s,a;n.current?(a=n.current)===null||a===void 0||a.close():(o(),(s=(r=t.props).afterClose)===null||s===void 0||s.call(r))}),replace:r=>{var s;(s=n.current)===null||s===void 0||s.replace(r)},isRendered:()=>!!n.current}}const _e="adm-action-sheet",C1={visible:!1,actions:[],cancelText:"",closeOnAction:!1,closeOnMaskClick:!0,safeArea:!0,destroyOnClose:!1,forceRender:!1},ra=t=>{const e=oe(C1,t),{styles:n}=e;return i.createElement(Ut,{visible:e.visible,onMaskClick:()=>{var o,r;(o=e.onMaskClick)===null||o===void 0||o.call(e),e.closeOnMaskClick&&((r=e.onClose)===null||r===void 0||r.call(e))},afterClose:e.afterClose,className:H(`${_e}-popup`,e.popupClassName),style:e.popupStyle,getContainer:e.getContainer,destroyOnClose:e.destroyOnClose,forceRender:e.forceRender,bodyStyle:n==null?void 0:n.body,maskStyle:n==null?void 0:n.mask},G(e,i.createElement("div",{className:_e},e.extra&&i.createElement("div",{className:`${_e}-extra`},e.extra),i.createElement("div",{className:`${_e}-button-list`},e.actions.map((o,r)=>i.createElement("div",{key:o.key,className:`${_e}-button-item-wrapper`},i.createElement("a",{className:H("adm-plain-anchor",`${_e}-button-item`,{[`${_e}-button-item-danger`]:o.danger,[`${_e}-button-item-disabled`]:o.disabled,[`${_e}-button-item-bold`]:o.bold}),onClick:()=>{var s,a,l;(s=o.onClick)===null||s===void 0||s.call(o),(a=e.onAction)===null||a===void 0||a.call(e,o,r),e.closeOnAction&&((l=e.onClose)===null||l===void 0||l.call(e))},role:"option","aria-disabled":o.disabled},i.createElement("div",{className:`${_e}-button-item-name`},o.text),o.description&&i.createElement("div",{className:`${_e}-button-item-description`},o.description))))),e.cancelText&&i.createElement("div",{className:`${_e}-cancel`,role:"option","aria-label":e.cancelText},i.createElement("div",{className:`${_e}-button-item-wrapper`},i.createElement("a",{className:H("adm-plain-anchor",`${_e}-button-item`),onClick:e.onClose},i.createElement("div",{className:`${_e}-button-item-name`},e.cancelText)))),e.safeArea&&i.createElement(Cn,{position:"bottom"}))))};function S1(t){return Sn(i.createElement(ra,Object.assign({},t)))}const w1=we(ra,{show:S1}),sa="adm-auto-center",k1=t=>G(t,i.createElement("div",{className:sa},i.createElement("div",{className:`${sa}-content`},t.children)));var Fr={},E1=Ct&&Ct.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fr,"__esModule",{value:!0});var Mr=Fr.staged=void 0;const I1=E1(i);function ia(t){return typeof t=="function"?I1.default.createElement($1,{stage:t}):t}function $1(t){const e=t.stage();return ia(e)}function _1(t){return function(n,o){const r=t(n,o);return ia(r)}}Mr=Fr.staged=_1;function It(t){return typeof t=="number"?`${t}px`:t}const P1=t=>{const e=i.useRef(null),[n]=te.useInViewport(e);return i.useEffect(()=>{n&&t.onActive()},[n]),i.createElement("div",{ref:e})},Nr=te.createUpdateEffect(te.useIsomorphicLayoutEffect),F1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M41.396 6.234c1.923 0 3.487 1.574 3.487 3.505v29.14c0 1.937-1.568 3.51-3.491 3.51H6.604c-1.923 0-3.487-1.573-3.487-3.51V9.745c0-1.936 1.564-3.51 3.487-3.51Zm0 2.847H6.604c-.355 0-.654.3-.654.658V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.405 2.405 0 0 1 1.933.752l4.182 4.525 7.58-11.005a2.374 2.374 0 0 1 1.96-1.01c.79 0 1.532.38 1.966 1.01L42.05 34.89V9.74a.664.664 0 0 0-.654-.658Zm-28.305 2.763a3.119 3.119 0 0 1 3.117 3.117 3.119 3.119 0 0 1-3.117 3.117 3.122 3.122 0 0 1-3.117-3.117 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),M1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M19.233 6.233 17.42 9.08l-10.817.001a.665.665 0 0 0-.647.562l-.007.096V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.415 2.415 0 0 1 1.807.625l.126.127 4.182 4.525 2.267-3.292 5.461 7.841-4.065 7.375H6.604c-1.86 0-3.382-1.47-3.482-3.317l-.005-.192V9.744c0-1.872 1.461-3.405 3.296-3.505l.19-.005h12.63Zm22.163 0c1.86 0 3.382 1.472 3.482 3.314l.005.192v29.14a3.507 3.507 0 0 1-3.3 3.505l-.191.006H27.789l3.63-6.587.06-.119a1.87 1.87 0 0 0-.163-1.853l-6.928-9.949 3.047-4.422a2.374 2.374 0 0 1 1.96-1.01 2.4 2.4 0 0 1 1.86.87l.106.14L42.05 34.89V9.74a.664.664 0 0 0-.654-.658H21.855l1.812-2.848h17.73Zm-28.305 5.611c.794 0 1.52.298 2.07.788l-.843 1.325-.067.114a1.87 1.87 0 0 0 .11 1.959l.848 1.217c-.556.515-1.3.83-2.118.83a3.122 3.122 0 0 1-3.117-3.116 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),uo="adm-image",N1={fit:"fill",placeholder:i.createElement("div",{className:`${uo}-tip`},i.createElement(F1,null)),fallback:i.createElement("div",{className:`${uo}-tip`},i.createElement(M1,null)),lazy:!1,draggable:!1},aa=Mr(t=>{const e=oe(N1,t),[n,o]=i.useState(!1),[r,s]=i.useState(!1),a=i.useRef(null),l=i.useRef(null);let c=e.src,u=e.srcSet;const[d,m]=i.useState(!e.lazy);c=d?e.src:void 0,u=d?e.srcSet:void 0,Nr(()=>{o(!1),s(!1)},[c]),i.useEffect(()=>{var h;!((h=l.current)===null||h===void 0)&&h.complete&&o(!0)},[]);function v(){if(r)return i.createElement(i.Fragment,null,e.fallback);const h=i.createElement("img",{ref:l,id:e.id,className:`${uo}-img`,src:c,alt:e.alt,onClick:e.onClick,onLoad:y=>{var g;o(!0),(g=e.onLoad)===null||g===void 0||g.call(e,y)},onError:y=>{var g;s(!0),(g=e.onError)===null||g===void 0||g.call(e,y)},style:{objectFit:e.fit,display:n?"block":"none"},crossOrigin:e.crossOrigin,decoding:e.decoding,loading:e.loading,referrerPolicy:e.referrerPolicy,sizes:e.sizes,srcSet:u,useMap:e.useMap,draggable:e.draggable});return i.createElement(i.Fragment,null,!n&&e.placeholder,h)}const b={};return e.width&&(b["--width"]=It(e.width),b.width=It(e.width)),e.height&&(b["--height"]=It(e.height),b.height=It(e.height)),G(e,i.createElement("div",{ref:a,className:uo,style:b,onClick:e.onContainerClick},e.lazy&&!d&&i.createElement(P1,{onActive:()=>{m(!0)}}),v()))}),Yt="adm-badge",la=i.createElement(i.Fragment,null),ca=we(t=>{const{content:e,color:n,children:o}=t,r=e===la,s=H(Yt,{[`${Yt}-fixed`]:!!o,[`${Yt}-dot`]:r,[`${Yt}-bordered`]:t.bordered}),a=e||e===0?G(t,i.createElement("div",{className:s,style:{"--color":n}},!r&&i.createElement("div",{className:`${Yt}-content`},e))):null;return o?i.createElement("div",{className:H(`${Yt}-wrapper`,t.wrapperClassName),style:t.wrapperStyle},o,a):a},{dot:la}),T1="adm-dot-loading",O1={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},D1={color:"default"},A1=i.memo(t=>{var e;const n=oe(D1,t);return G(n,i.createElement("div",{style:{color:(e=O1[n.color])!==null&&e!==void 0?e:n.color},className:H("adm-loading",T1)},i.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -71.000000)"},i.createElement("g",{transform:"translate(95.000000, 71.000000)"},i.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(o=>i.createElement("rect",{key:o,fill:"currentColor",x:20+o*26,y:"16",width:"8",height:"8",rx:"2"},i.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${o*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"}))))))))))});function L1(t){return!!t&&typeof t=="object"&&typeof t.then=="function"}function B1(){return Dt?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const je="adm-button",z1={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:i.createElement(A1,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},st=i.forwardRef((t,e)=>{const n=oe(z1,t),[o,r]=i.useState(!1),s=i.useRef(null),a=n.loading==="auto"?o:n.loading,l=n.disabled||a;i.useImperativeHandle(e,()=>({get nativeElement(){return s.current}}));const c=u=>xt(void 0,void 0,void 0,function*(){if(!n.onClick)return;const d=n.onClick(u);if(L1(d))try{r(!0),yield d,r(!1)}catch(m){throw r(!1),m}});return G(n,i.createElement("button",{ref:s,type:n.type,onClick:c,className:H(je,{[`${je}-${n.color}`]:n.color,[`${je}-block`]:n.block,[`${je}-disabled`]:l,[`${je}-fill-outline`]:n.fill==="outline",[`${je}-fill-none`]:n.fill==="none",[`${je}-mini`]:n.size==="mini",[`${je}-small`]:n.size==="small",[`${je}-large`]:n.size==="large",[`${je}-loading`]:a},`${je}-shape-${n.shape}`),disabled:l,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onTouchStart:n.onTouchStart,onTouchEnd:n.onTouchEnd},a?i.createElement("div",{className:`${je}-loading-wrapper`},n.loadingIcon,n.loadingText):i.createElement("span",null,n.children)))});var ua={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(Ct,function(){var n=1e3,o=6e4,r=36e5,s="millisecond",a="second",l="minute",c="hour",u="day",d="week",m="month",v="quarter",b="year",h="date",y="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var F=["th","st","nd","rd"],_=P%100;return"["+P+(F[(_-20)%10]||F[_]||F[0])+"]"}},C=function(P,F,_){var B=String(P);return!B||B.length>=F?P:""+Array(F+1-B.length).join(_)+P},w={s:C,z:function(P){var F=-P.utcOffset(),_=Math.abs(F),B=Math.floor(_/60),D=_%60;return(F<=0?"+":"-")+C(B,2,"0")+":"+C(D,2,"0")},m:function P(F,_){if(F.date()<_.date())return-P(_,F);var B=12*(_.year()-F.year())+(_.month()-F.month()),D=F.clone().add(B,m),V=_-D<0,O=F.clone().add(B+(V?-1:1),m);return+(-(B+(_-D)/(V?D-O:O-D))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:m,y:b,w:d,d:u,D:h,h:c,m:l,s:a,ms:s,Q:v}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},k="en",E={};E[k]=S;var I="$isDayjsObject",T=function(P){return P instanceof U||!(!P||!P[I])},Z=function P(F,_,B){var D;if(!F)return k;if(typeof F=="string"){var V=F.toLowerCase();E[V]&&(D=V),_&&(E[V]=_,D=V);var O=F.split("-");if(!D&&O.length>1)return P(O[0])}else{var K=F.name;E[K]=F,D=K}return!B&&D&&(k=D),D||!B&&k},M=function(P,F){if(T(P))return P.clone();var _=typeof F=="object"?F:{};return _.date=P,_.args=arguments,new U(_)},N=w;N.l=Z,N.i=T,N.w=function(P,F){return M(P,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var U=function(){function P(_){this.$L=Z(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[I]=!0}var F=P.prototype;return F.parse=function(_){this.$d=function(B){var D=B.date,V=B.utc;if(D===null)return new Date(NaN);if(N.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var O=D.match(g);if(O){var K=O[2]-1||0,W=(O[7]||"0").substring(0,3);return V?new Date(Date.UTC(O[1],K,O[3]||1,O[4]||0,O[5]||0,O[6]||0,W)):new Date(O[1],K,O[3]||1,O[4]||0,O[5]||0,O[6]||0,W)}}return new Date(D)}(_),this.init()},F.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},F.$utils=function(){return N},F.isValid=function(){return this.$d.toString()!==y},F.isSame=function(_,B){var D=M(_);return this.startOf(B)<=D&&D<=this.endOf(B)},F.isAfter=function(_,B){return M(_)<this.startOf(B)},F.isBefore=function(_,B){return this.endOf(B)<M(_)},F.$g=function(_,B,D){return N.u(_)?this[B]:this.set(D,_)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(_,B){var D=this,V=!!N.u(B)||B,O=N.p(_),K=function(j,q){var re=N.w(D.$u?Date.UTC(D.$y,q,j):new Date(D.$y,q,j),D);return V?re:re.endOf(u)},W=function(j,q){return N.w(D.toDate()[j].apply(D.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(q)),D)},Y=this.$W,ne=this.$M,ee=this.$D,Ne="set"+(this.$u?"UTC":"");switch(O){case b:return V?K(1,0):K(31,11);case m:return V?K(1,ne):K(0,ne+1);case d:var X=this.$locale().weekStart||0,ue=(Y<X?Y+7:Y)-X;return K(V?ee-ue:ee+(6-ue),ne);case u:case h:return W(Ne+"Hours",0);case c:return W(Ne+"Minutes",1);case l:return W(Ne+"Seconds",2);case a:return W(Ne+"Milliseconds",3);default:return this.clone()}},F.endOf=function(_){return this.startOf(_,!1)},F.$set=function(_,B){var D,V=N.p(_),O="set"+(this.$u?"UTC":""),K=(D={},D[u]=O+"Date",D[h]=O+"Date",D[m]=O+"Month",D[b]=O+"FullYear",D[c]=O+"Hours",D[l]=O+"Minutes",D[a]=O+"Seconds",D[s]=O+"Milliseconds",D)[V],W=V===u?this.$D+(B-this.$W):B;if(V===m||V===b){var Y=this.clone().set(h,1);Y.$d[K](W),Y.init(),this.$d=Y.set(h,Math.min(this.$D,Y.daysInMonth())).$d}else K&&this.$d[K](W);return this.init(),this},F.set=function(_,B){return this.clone().$set(_,B)},F.get=function(_){return this[N.p(_)]()},F.add=function(_,B){var D,V=this;_=Number(_);var O=N.p(B),K=function(ne){var ee=M(V);return N.w(ee.date(ee.date()+Math.round(ne*_)),V)};if(O===m)return this.set(m,this.$M+_);if(O===b)return this.set(b,this.$y+_);if(O===u)return K(1);if(O===d)return K(7);var W=(D={},D[l]=o,D[c]=r,D[a]=n,D)[O]||1,Y=this.$d.getTime()+_*W;return N.w(Y,this)},F.subtract=function(_,B){return this.add(-1*_,B)},F.format=function(_){var B=this,D=this.$locale();if(!this.isValid())return D.invalidDate||y;var V=_||"YYYY-MM-DDTHH:mm:ssZ",O=N.z(this),K=this.$H,W=this.$m,Y=this.$M,ne=D.weekdays,ee=D.months,Ne=D.meridiem,X=function(q,re,ge,Ce){return q&&(q[re]||q(B,V))||ge[re].slice(0,Ce)},ue=function(q){return N.s(K%12||12,q,"0")},j=Ne||function(q,re,ge){var Ce=q<12?"AM":"PM";return ge?Ce.toLowerCase():Ce};return V.replace(x,function(q,re){return re||function(ge){switch(ge){case"YY":return String(B.$y).slice(-2);case"YYYY":return N.s(B.$y,4,"0");case"M":return Y+1;case"MM":return N.s(Y+1,2,"0");case"MMM":return X(D.monthsShort,Y,ee,3);case"MMMM":return X(ee,Y);case"D":return B.$D;case"DD":return N.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return X(D.weekdaysMin,B.$W,ne,2);case"ddd":return X(D.weekdaysShort,B.$W,ne,3);case"dddd":return ne[B.$W];case"H":return String(K);case"HH":return N.s(K,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return j(K,W,!0);case"A":return j(K,W,!1);case"m":return String(W);case"mm":return N.s(W,2,"0");case"s":return String(B.$s);case"ss":return N.s(B.$s,2,"0");case"SSS":return N.s(B.$ms,3,"0");case"Z":return O}return null}(q)||O.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(_,B,D){var V,O=this,K=N.p(B),W=M(_),Y=(W.utcOffset()-this.utcOffset())*o,ne=this-W,ee=function(){return N.m(O,W)};switch(K){case b:V=ee()/12;break;case m:V=ee();break;case v:V=ee()/3;break;case d:V=(ne-Y)/6048e5;break;case u:V=(ne-Y)/864e5;break;case c:V=ne/r;break;case l:V=ne/o;break;case a:V=ne/n;break;default:V=ne}return D?V:N.a(V)},F.daysInMonth=function(){return this.endOf(m).$D},F.$locale=function(){return E[this.$L]},F.locale=function(_,B){if(!_)return this.$L;var D=this.clone(),V=Z(_,B,!0);return V&&(D.$L=V),D},F.clone=function(){return N.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},P}(),z=U.prototype;return M.prototype=z,[["$ms",s],["$s",a],["$m",l],["$H",c],["$W",u],["$M",m],["$y",b],["$D",h]].forEach(function(P){z[P[1]]=function(F){return this.$g(F,P[0],P[1])}}),M.extend=function(P,F){return P.$i||(P(F,U,M),P.$i=!0),M},M.locale=Z,M.isDayjs=T,M.unix=function(P){return M(1e3*P)},M.en=E[k],M.Ls=E,M.p={},M})})(ua);var V1=ua.exports;const pe=St(V1),da=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -22.000000)"},i.createElement("g",{transform:"translate(100.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(12.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"})))))),fa=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-24.000000, -22.000000)"},i.createElement("g",{transform:"translate(24.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(7.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"}),i.createElement("path",{d:"M19.5305114,17.0699744 C19.0173831,17.5315665 18.9752295,18.3220903 19.436308,18.8357433 C19.4660129,18.8688164 19.4974585,18.9002801 19.5305113,18.9300007 L29.4833057,27.2801611 C30.1234001,27.8559077 30.1759552,28.8420707 29.6007967,29.4827774 C29.0256382,30.1235263 28.0404824,30.1761351 27.400388,29.6003885 L17.4475937,21.2502703 C17.3320874,21.1463692 17.2222026,21.036372 17.1184079,20.920748 C15.5069703,19.1256817 15.6543605,16.3628317 17.4475933,14.7497465 L27.4003877,6.39962828 C28.0404821,5.82383957 29.0256378,5.87649058 29.6007963,6.51723942 C30.1759548,7.1579461 30.1233997,8.14410915 29.4833053,8.7198557 L19.5305114,17.0699744 Z"}))))));var ma={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(Ct,function(){var n="day";return function(o,r,s){var a=function(u){return u.add(4-u.isoWeekday(),n)},l=r.prototype;l.isoWeekYear=function(){return a(this).year()},l.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),n);var d,m,v,b,h=a(this),y=(d=this.isoWeekYear(),m=this.$u,v=(m?s.utc:s)().year(d).startOf("year"),b=4-v.isoWeekday(),v.isoWeekday()>4&&(b+=7),v.add(b,n));return h.diff(y,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var c=l.startOf;l.startOf=function(u,d){var m=this.$utils(),v=!!m.u(d)||d;return m.p(u)==="isoweek"?v?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(u,d)}}})})(ma);var Z1=ma.exports;const Tr=St(Z1);function Ie(t){const{value:e,defaultValue:n,onChange:o}=t,r=te.useUpdate(),s=i.useRef(e!==void 0?e:n);e!==void 0&&(s.current=e);const a=te.useMemoizedFn((l,c=!1)=>{const u=typeof l=="function"?l(s.current):l;if(!(!c&&u===s.current))return s.current=u,r(),o==null?void 0:o(u)});return[s.current,a]}function j1(t,e){return t.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return e[o]})}function pa(t,e){return t===void 0||e===null?null:Array.isArray(e)?e:[e,e]}function Or(t){return pe().year(t.year).month(t.month-1).date(1)}pe.extend(Tr);const me="adm-calendar",K1={weekStartsOn:"Sunday",defaultValue:null,allowClear:!0,prevMonthButton:i.createElement(da,null),prevYearButton:i.createElement(fa,null),nextMonthButton:i.createElement(da,null),nextYearButton:i.createElement(fa,null)},W1=i.forwardRef((t,e)=>{const n=pe(),o=oe(K1,t),{locale:r}=Pe(),s=[...r.Calendar.markItems];if(o.weekStartsOn==="Sunday"){const C=s.pop();C&&s.unshift(C)}const[a,l]=Ie({value:o.value===void 0?void 0:pa(o.selectionMode,o.value),defaultValue:pa(o.selectionMode,o.defaultValue),onChange:C=>{var w,k;o.selectionMode==="single"?(w=o.onChange)===null||w===void 0||w.call(o,C?C[0]:null):o.selectionMode==="range"&&((k=o.onChange)===null||k===void 0||k.call(o,C))}}),[c,u]=i.useState(!1),[d,m]=i.useState(()=>pe(a?a[0]:n).date(1));te.useUpdateEffect(()=>{var C;(C=o.onPageChange)===null||C===void 0||C.call(o,d.year(),d.month()+1)},[d]),i.useImperativeHandle(e,()=>({jumpTo:C=>{let w;typeof C=="function"?w=C({year:d.year(),month:d.month()+1}):w=C,m(Or(w))},jumpToToday:()=>{m(pe().date(1))}}));const v=(C,w,k)=>{const E=d[C](w,k);if(C==="subtract"&&o.minPage){const I=Or(o.minPage);if(E.isBefore(I,k))return}if(C==="add"&&o.maxPage){const I=Or(o.maxPage);if(E.isAfter(I,k))return}m(E)},b=i.createElement("div",{className:`${me}-header`},i.createElement("a",{className:`${me}-arrow-button ${me}-arrow-button-year`,onClick:()=>{v("subtract",1,"year")}},o.prevYearButton),i.createElement("a",{className:`${me}-arrow-button ${me}-arrow-button-month`,onClick:()=>{v("subtract",1,"month")}},o.prevMonthButton),i.createElement("div",{className:`${me}-title`},j1(r.Calendar.yearAndMonth,{year:d.year().toString(),month:(d.month()+1).toString()})),i.createElement("a",{className:H(`${me}-arrow-button`,`${me}-arrow-button-right`,`${me}-arrow-button-right-month`),onClick:()=>{v("add",1,"month")}},o.nextMonthButton),i.createElement("a",{className:H(`${me}-arrow-button`,`${me}-arrow-button-right`,`${me}-arrow-button-right-year`),onClick:()=>{v("add",1,"year")}},o.nextYearButton)),h=i.useMemo(()=>o.max&&pe(o.max),[o.max]),y=i.useMemo(()=>o.min&&pe(o.min),[o.min]);function g(){var C;const w=[];let k=d.subtract(d.isoWeekday(),"day");for(o.weekStartsOn==="Monday"&&(k=k.add(1,"day"));w.length<6*7;){const E=k;let I=!1,T=!1,Z=!1,M=!1,N=!1;if(a){const[P,F]=a;T=E.isSame(P,"day"),Z=E.isSame(F,"day"),I=T||Z||E.isAfter(P,"day")&&E.isBefore(F,"day"),I&&(M=(w.length%7===0||E.isSame(E.startOf("month"),"day"))&&!T,N=(w.length%7===6||E.isSame(E.endOf("month"),"day"))&&!Z)}const U=E.month()===d.month(),z=o.shouldDisableDate?o.shouldDisableDate(E.toDate()):h&&E.isAfter(h,"day")||y&&E.isBefore(y,"day");w.push(i.createElement("div",{key:E.valueOf(),className:H(`${me}-cell`,(z||!U)&&`${me}-cell-disabled`,U&&{[`${me}-cell-today`]:E.isSame(n,"day"),[`${me}-cell-selected`]:I,[`${me}-cell-selected-begin`]:T,[`${me}-cell-selected-end`]:Z,[`${me}-cell-selected-row-begin`]:M,[`${me}-cell-selected-row-end`]:N}),onClick:()=>{if(!o.selectionMode||z)return;const P=E.toDate();U||m(E.clone().date(1));function F(){if(!o.allowClear||!a)return!1;const[_,B]=a;return E.isSame(_,"date")&&E.isSame(B,"day")}if(o.selectionMode==="single"){if(o.allowClear&&F()){l(null);return}l([P,P])}else if(o.selectionMode==="range"){if(!a){l([P,P]),u(!0);return}if(F()){l(null),u(!1);return}if(c){const _=a[0];l(_>P?[P,_]:[_,P]),u(!1)}else l([P,P]),u(!0)}}},i.createElement("div",{className:`${me}-cell-top`},o.renderDate?o.renderDate(E.toDate()):E.date()),i.createElement("div",{className:`${me}-cell-bottom`},(C=o.renderLabel)===null||C===void 0?void 0:C.call(o,E.toDate())))),k=k.add(1,"day")}return w}const x=i.createElement("div",{className:`${me}-cells`},g()),S=i.createElement("div",{className:`${me}-mark`},s.map((C,w)=>i.createElement("div",{key:w,className:`${me}-mark-cell`},C)));return G(o,i.createElement("div",{className:me},b,S,x))});var ha={exports:{}},ce={};/**
125
+ */var bs;function gc(){return bs||(bs=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(s=o(s,r(l)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var l in s)e.call(s,l)&&s[l]&&(a=o(a,l));return a}function o(s,a){return a?s?s+" "+a:s+a:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(Dr)),Dr.exports}var vc=gc();const H=xt(vc);function Y(t,e){const n=Object.assign({},e.props);t.className&&(n.className=H(e.props.className,t.className)),t.style&&(n.style=Object.assign(Object.assign({},n.style),t.style)),t.tabIndex!==void 0&&(n.tabIndex=t.tabIndex);for(const r in t)t.hasOwnProperty(r)&&(r.startsWith("data-")||r.startsWith("aria-"))&&(n[r]=t[r]);return i.cloneElement(e,n)}function re(...t){const e={};return t.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(e[r]=n[r])})}),e}function Ar(t,...e){for(let n=e.length-1;n>=0;n-=1)if(e[n]!==void 0)return e[n];return t}const xs=10;function yc(t,e){return t>e&&t>xs?"horizontal":e>t&&e>xs?"vertical":""}function bc(){const t=i.useRef(0),e=i.useRef(0),n=i.useRef(0),r=i.useRef(0),o=i.useRef(0),s=i.useRef(0),a=i.useRef(""),l=()=>a.current==="vertical",c=()=>a.current==="horizontal",u=()=>{n.current=0,r.current=0,o.current=0,s.current=0,a.current=""};return{move:v=>{const y=v.touches[0];n.current=y.clientX<0?0:y.clientX-t.current,r.current=y.clientY-e.current,o.current=Math.abs(n.current),s.current=Math.abs(r.current),a.current||(a.current=yc(o.current,s.current))},start:v=>{u(),t.current=v.touches[0].clientX,e.current=v.touches[0].clientY},reset:u,startX:t,startY:e,deltaX:n,deltaY:r,offsetX:o,offsetY:s,direction:a,isVertical:l,isHorizontal:c}}const xc=Ot?window:void 0,Cc=["scroll","auto","overlay"];function Sc(t){return t.nodeType===1}function wc(t,e=xc){let n=t;for(;n&&n!==e&&Sc(n);){if(n===document.body)return e;const{overflowY:r}=window.getComputedStyle(n);if(Cc.includes(r)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return e}let Tn=!1;if(Ot)try{const t={};Object.defineProperty(t,"passive",{get(){Tn=!0}}),window.addEventListener("test-passive",null,t)}catch(t){}let Rt=0;const Cs="adm-overflow-hidden";function kc(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function Ss(t,e){const n=bc(),r=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=wc(a.target,t.current);if(!c)return;if(e==="strict"){const g=kc(a.target);if(g===document.body||g===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:d,scrollTop:f}=c,{height:v}=c.getBoundingClientRect();let y="11";f===0?y=d>=u?"00":"01":u<=Math.round(v+f)&&(y="10"),y!=="11"&&n.isVertical()&&!(parseInt(y,2)&parseInt(l,2))&&a.cancelable&&Tn&&a.preventDefault()},o=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,Tn?{passive:!1}:!1),Rt||document.body.classList.add(Cs),Rt++},s=()=>{Rt&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),Rt--,Rt||document.body.classList.remove(Cs))};i.useEffect(()=>{if(e)return o(),()=>{s()}},[e])}let Lr=tn();const Q=t=>en(t,Lr);let Br=tn();Q.write=t=>en(t,Br);let On=tn();Q.onStart=t=>en(t,On);let zr=tn();Q.onFrame=t=>en(t,zr);let Vr=tn();Q.onFinish=t=>en(t,Vr);let Dt=[];Q.setTimeout=(t,e)=>{let n=Q.now()+e,r=()=>{let s=Dt.findIndex(a=>a.cancel==r);~s&&Dt.splice(s,1),ft-=~s?1:0},o={time:n,handler:t,cancel:r};return Dt.splice(ws(n),0,o),ft+=1,ks(),o};let ws=t=>~(~Dt.findIndex(e=>e.time>t)||~Dt.length);Q.cancel=t=>{On.delete(t),zr.delete(t),Vr.delete(t),Lr.delete(t),Br.delete(t)},Q.sync=t=>{jr=!0,Q.batchedUpdates(t),jr=!1},Q.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function r(...o){e=o,Q.onStart(n)}return r.handler=t,r.cancel=()=>{On.delete(n),e=null},r};let Zr=typeof window!="undefined"?window.requestAnimationFrame:()=>{};Q.use=t=>Zr=t,Q.now=typeof performance!="undefined"?()=>performance.now():Date.now,Q.batchedUpdates=t=>t(),Q.catch=console.error,Q.frameLoop="always",Q.advance=()=>{Q.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Is()};let dt=-1,ft=0,jr=!1;function en(t,e){jr?(e.delete(t),t(0)):(e.add(t),ks())}function ks(){dt<0&&(dt=0,Q.frameLoop!=="demand"&&Zr(Es))}function Ec(){dt=-1}function Es(){~dt&&(Zr(Es),Q.batchedUpdates(Is))}function Is(){let t=dt;dt=Q.now();let e=ws(dt);if(e&&($s(Dt.splice(0,e),n=>n.handler()),ft-=e),!ft){Ec();return}On.flush(),Lr.flush(t?Math.min(64,dt-t):16.667),zr.flush(),Br.flush(),Vr.flush()}function tn(){let t=new Set,e=t;return{add(n){ft+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return ft-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,ft-=e.size,$s(e,r=>r(n)&&t.add(r)),ft+=t.size,e=t)}}}function $s(t,e){t.forEach(n=>{try{e(n)}catch(r){Q.catch(r)}})}function Kr(){}const Ic=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),A={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function rt(t,e){if(A.arr(t)){if(!A.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}const se=(t,e)=>t.forEach(e);function Ge(t,e,n){if(A.arr(t)){for(let r=0;r<t.length;r++)e.call(n,t[r],`${r}`);return}for(const r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r)}const De=t=>A.und(t)?[]:A.arr(t)?t:[t];function nn(t,e){if(t.size){const n=Array.from(t);t.clear(),se(n,e)}}const rn=(t,...e)=>nn(t,n=>n(...e)),Wr=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Hr,_s,mt=null,Ps=!1,Ur=Kr;var Xe=Object.freeze({__proto__:null,get createStringInterpolator(){return Hr},get to(){return _s},get colors(){return mt},get skipAnimation(){return Ps},get willAdvance(){return Ur},assign:t=>{t.to&&(_s=t.to),t.now&&(Q.now=t.now),t.colors!==void 0&&(mt=t.colors),t.skipAnimation!=null&&(Ps=t.skipAnimation),t.createStringInterpolator&&(Hr=t.createStringInterpolator),t.requestAnimationFrame&&Q.use(t.requestAnimationFrame),t.batchedUpdates&&(Q.batchedUpdates=t.batchedUpdates),t.willAdvance&&(Ur=t.willAdvance),t.frameLoop&&(Q.frameLoop=t.frameLoop)}});const on=new Set;let Be=[],qr=[],Dn=0;const An={get idle(){return!on.size&&!Be.length},start(t){Dn>t.priority?(on.add(t),Q.onStart($c)):(Fs(t),Q(Yr))},advance:Yr,sort(t){if(Dn)Q.onFrame(()=>An.sort(t));else{const e=Be.indexOf(t);~e&&(Be.splice(e,1),Ms(t))}},clear(){Be=[],on.clear()}};function $c(){on.forEach(Fs),on.clear(),Q(Yr)}function Fs(t){Be.includes(t)||Ms(t)}function Ms(t){Be.splice(_c(Be,e=>e.priority>t.priority),0,t)}function Yr(t){const e=qr;for(let n=0;n<Be.length;n++){const r=Be[n];Dn=r.priority,r.idle||(Ur(r),r.advance(t),r.idle||e.push(r))}return Dn=0,qr=Be,qr.length=0,Be=e,Be.length>0}function _c(t,e){const n=t.findIndex(e);return n<0?t.length:n}const Pc={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},We="[-+]?\\d*\\.?\\d+",Ln=We+"%";function Bn(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Fc=new RegExp("rgb"+Bn(We,We,We)),Mc=new RegExp("rgba"+Bn(We,We,We,We)),Nc=new RegExp("hsl"+Bn(We,Ln,Ln)),Tc=new RegExp("hsla"+Bn(We,Ln,Ln,We)),Oc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Dc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ac=/^#([0-9a-fA-F]{6})$/,Lc=/^#([0-9a-fA-F]{8})$/;function Bc(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Ac.exec(t))?parseInt(e[1]+"ff",16)>>>0:mt&&mt[t]!==void 0?mt[t]:(e=Fc.exec(t))?(At(e[1])<<24|At(e[2])<<16|At(e[3])<<8|255)>>>0:(e=Mc.exec(t))?(At(e[1])<<24|At(e[2])<<16|At(e[3])<<8|Os(e[4]))>>>0:(e=Oc.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Lc.exec(t))?parseInt(e[1],16)>>>0:(e=Dc.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Nc.exec(t))?(Ns(Ts(e[1]),zn(e[2]),zn(e[3]))|255)>>>0:(e=Tc.exec(t))?(Ns(Ts(e[1]),zn(e[2]),zn(e[3]))|Os(e[4]))>>>0:null}function Gr(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Ns(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,o=2*n-r,s=Gr(o,r,t+1/3),a=Gr(o,r,t),l=Gr(o,r,t-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function At(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function Ts(t){return(parseFloat(t)%360+360)%360/360}function Os(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function zn(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function Ds(t){let e=Bc(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,r=(e&16711680)>>>16,o=(e&65280)>>>8,s=(e&255)/255;return`rgba(${n}, ${r}, ${o}, ${s})`}const sn=(t,e,n)=>{if(A.fun(t))return t;if(A.arr(t))return sn({range:t,output:e,extrapolate:n});if(A.str(t.output[0]))return Hr(t);const r=t,o=r.output,s=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(u=>u);return u=>{const d=Vc(u,s);return zc(u,s[d],s[d+1],o[d],o[d+1],c,a,l,r.map)}};function zc(t,e,n,r,o,s,a,l,c){let u=c?c(t):t;if(u<e){if(a==="identity")return u;a==="clamp"&&(u=e)}if(u>n){if(l==="identity")return u;l==="clamp"&&(u=n)}return r===o?r:e===n?t<=e?r:o:(e===-1/0?u=-u:n===1/0?u=u-e:u=(u-e)/(n-e),u=s(u),r===-1/0?u=-u:o===1/0?u=u+r:u=u*(o-r)+r,u)}function Vc(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}const Zc={linear:t=>t};function Xr(){return Xr=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},Xr.apply(this,arguments)}const Lt=Symbol.for("FluidValue.get"),Ct=Symbol.for("FluidValue.observers"),ze=t=>!!(t&&t[Lt]),Fe=t=>t&&t[Lt]?t[Lt]():t,As=t=>t[Ct]||null;function jc(t,e){t.eventObserved?t.eventObserved(e):t(e)}function an(t,e){let n=t[Ct];n&&n.forEach(r=>{jc(r,e)})}class Ls{constructor(e){if(this[Lt]=void 0,this[Ct]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Kc(this,e)}}const Kc=(t,e)=>Bs(t,Lt,e);function Bt(t,e){if(t[Lt]){let n=t[Ct];n||Bs(t,Ct,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function ln(t,e){let n=t[Ct];if(n&&n.has(e)){const r=n.size-1;r?n.delete(e):t[Ct]=null,t.observerRemoved&&t.observerRemoved(r,e)}}const Bs=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),Vn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Wc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,zs=new RegExp(`(${Vn.source})(%|[a-z]+)`,"i"),Hc=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Zn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Vs=t=>{const[e,n]=Uc(t);if(!e||Wr())return t;const r=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||t}else{if(n&&Zn.test(n))return Vs(n);if(n)return n}return t},Uc=t=>{const e=Zn.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]};let Jr;const qc=(t,e,n,r,o)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,Zs=t=>{Jr||(Jr=mt?new RegExp(`(${Object.keys(mt).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(s=>Fe(s).replace(Zn,Vs).replace(Wc,Ds).replace(Jr,Ds)),n=e.map(s=>s.match(Vn).map(Number)),o=n[0].map((s,a)=>n.map(l=>{if(!(a in l))throw Error('The arity of each "output" value must be equal');return l[a]})).map(s=>sn(Xr({},t,{output:s})));return s=>{var a;const l=!zs.test(e[0])&&((a=e.find(u=>zs.test(u)))==null?void 0:a.replace(Vn,""));let c=0;return e[0].replace(Vn,()=>`${o[c++](s)}${l||""}`).replace(Hc,qc)}},Qr="react-spring: ",js=t=>{const e=t;let n=!1;if(typeof e!="function")throw new TypeError(`${Qr}once requires a function parameter`);return(...r)=>{n||(e(...r),n=!0)}},Yc=js(console.warn);function Gc(){Yc(`${Qr}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const Xc=js(console.warn);function Jc(){Xc(`${Qr}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function jn(t){return A.str(t)&&(t[0]=="#"||/\d/.test(t)||!Wr()&&Zn.test(t)||t in(mt||{}))}const Rr=Wr()?i.useEffect:i.useLayoutEffect,Qc=()=>{const t=i.useRef(!1);return Rr(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function Ks(){const t=i.useState()[1],e=Qc();return()=>{e.current&&t(Math.random())}}function Rc(t,e){const[n]=i.useState(()=>({inputs:e,result:t()})),r=i.useRef(),o=r.current;let s=o;return s?e&&s.inputs&&eu(e,s.inputs)||(s={inputs:e,result:t()}):s=n,i.useEffect(()=>{r.current=s,o==n&&(n.inputs=n.result=void 0)},[s]),s.result}function eu(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const Ws=t=>i.useEffect(t,tu),tu=[];function Hs(t){const e=i.useRef();return i.useEffect(()=>{e.current=t}),e.current}const cn=Symbol.for("Animated:node"),nu=t=>!!t&&t[cn]===t,Je=t=>t&&t[cn],eo=(t,e)=>Ic(t,cn,e),Kn=t=>t&&t[cn]&&t[cn].getPayload();class Us{constructor(){this.payload=void 0,eo(this,this)}getPayload(){return this.payload||[]}}class zt extends Us{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,A.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new zt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,n){return A.num(e)&&(this.lastPosition=e,n&&(e=Math.round(e/n)*n,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,A.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class Vt extends zt{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=sn({output:[e,e]})}static create(e){return new Vt(e)}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(A.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=sn({output:[this.getValue(),e]})),this._value=0,super.reset()}}const Wn={dependencies:null};class Hn extends Us{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const n={};return Ge(this.source,(r,o)=>{nu(r)?n[o]=r.getValue(e):ze(r)?n[o]=Fe(r):e||(n[o]=r)}),n}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&se(this.payload,e=>e.reset())}_makePayload(e){if(e){const n=new Set;return Ge(e,this._addToPayload,n),Array.from(n)}}_addToPayload(e){Wn.dependencies&&ze(e)&&Wn.dependencies.add(e);const n=Kn(e);n&&se(n,r=>this.add(r))}}class to extends Hn{constructor(e){super(e)}static create(e){return new to(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const n=this.getPayload();return e.length==n.length?n.map((r,o)=>r.setValue(e[o])).some(Boolean):(super.setValue(e.map(ru)),!0)}}function ru(t){return(jn(t)?Vt:zt).create(t)}function no(t){const e=Je(t);return e?e.constructor:A.arr(t)?to:jn(t)?Vt:zt}function Un(){return Un=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},Un.apply(this,arguments)}const qs=(t,e)=>{const n=!A.fun(t)||t.prototype&&t.prototype.isReactComponent;return i.forwardRef((r,o)=>{const s=i.useRef(null),a=n&&i.useCallback(g=>{s.current=iu(o,g)},[o]),[l,c]=su(r,e),u=Ks(),d=()=>{const g=s.current;if(n&&!g)return;(g?e.applyAnimatedValues(g,l.getValue(!0)):!1)===!1&&u()},f=new ou(d,c),v=i.useRef();Rr(()=>(v.current=f,se(c,g=>Bt(g,f)),()=>{v.current&&(se(v.current.deps,g=>ln(g,v.current)),Q.cancel(v.current.update))})),i.useEffect(d,[]),Ws(()=>()=>{const g=v.current;se(g.deps,b=>ln(b,g))});const y=e.getComponentProps(l.getValue());return J.createElement(t,Un({},y,{ref:a}))})};class ou{constructor(e,n){this.update=e,this.deps=n}eventObserved(e){e.type=="change"&&Q.write(this.update)}}function su(t,e){const n=new Set;return Wn.dependencies=n,t.style&&(t=Un({},t,{style:e.createAnimatedStyle(t.style)})),t=new Hn(t),Wn.dependencies=null,[t,n]}function iu(t,e){return t&&(A.fun(t)?t(e):t.current=e),e}const Ys=Symbol.for("AnimatedComponent"),au=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=o=>new Hn(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:r},s=a=>{const l=Gs(a)||"Anonymous";return A.str(a)?a=s[a]||(s[a]=qs(a,o)):a=a[Ys]||(a[Ys]=qs(a,o)),a.displayName=`Animated(${l})`,a};return Ge(t,(a,l)=>{A.arr(t)&&(l=Gs(a)),s[l]=s(a)}),{animated:s}},Gs=t=>A.str(t)?t:t&&A.str(t.displayName)?t.displayName:A.fun(t)&&t.name||null;function Se(){return Se=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},Se.apply(this,arguments)}function St(t,...e){return A.fun(t)?t(...e):t}const un=(t,e)=>t===!0||!!(e&&t&&(A.fun(t)?t(e):De(t).includes(e))),Xs=(t,e)=>A.obj(t)?e&&t[e]:t,Js=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,lu=t=>t,ro=(t,e=lu)=>{let n=cu;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));const r={};for(const o of n){const s=e(t[o],o);A.und(s)||(r[o]=s)}return r},cu=["config","onProps","onStart","onChange","onPause","onResume","onRest"],uu={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function du(t){const e={};let n=0;if(Ge(t,(r,o)=>{uu[o]||(e[o]=r,n++)}),n)return e}function Qs(t){const e=du(t);if(e){const n={to:e};return Ge(t,(r,o)=>o in e||(n[o]=r)),n}return Se({},t)}function dn(t){return t=Fe(t),A.arr(t)?t.map(dn):jn(t)?Xe.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function fu(t){for(const e in t)return!0;return!1}function oo(t){return A.fun(t)||A.arr(t)&&A.obj(t[0])}function mu(t,e){var n;(n=t.ref)==null||n.delete(t),e==null||e.delete(t)}function pu(t,e){if(e&&t.ref!==e){var n;(n=t.ref)==null||n.delete(t),e.add(t),t.ref=e}}const so=Se({},{default:{tension:170,friction:26}}.default,{mass:1,damping:1,easing:Zc.linear,clamp:!1});class hu{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,so)}}function gu(t,e,n){n&&(n=Se({},n),Rs(n,e),e=Se({},n,e)),Rs(t,e),Object.assign(t,e);for(const a in so)t[a]==null&&(t[a]=so[a]);let{mass:r,frequency:o,damping:s}=t;return A.und(o)||(o<.01&&(o=.01),s<0&&(s=0),t.tension=Math.pow(2*Math.PI/o,2)*r,t.friction=4*Math.PI*s*r/o),t}function Rs(t,e){if(!A.und(e.decay))t.duration=void 0;else{const n=!A.und(e.tension)||!A.und(e.friction);(n||!A.und(e.frequency)||!A.und(e.damping)||!A.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}const ei=[];class vu{constructor(){this.changed=!1,this.values=ei,this.toValues=null,this.fromValues=ei,this.to=void 0,this.from=void 0,this.config=new hu,this.immediate=!1}}function ti(t,{key:e,props:n,defaultProps:r,state:o,actions:s}){return new Promise((a,l)=>{var c;let u,d,f=un((c=n.cancel)!=null?c:r==null?void 0:r.cancel,e);if(f)g();else{A.und(n.pause)||(o.paused=un(n.pause,e));let b=r==null?void 0:r.pause;b!==!0&&(b=o.paused||un(b,e)),u=St(n.delay||0,e),b?(o.resumeQueue.add(y),s.pause()):(s.resume(),y())}function v(){o.resumeQueue.add(y),o.timeouts.delete(d),d.cancel(),u=d.time-Q.now()}function y(){u>0&&!Xe.skipAnimation?(o.delayed=!0,d=Q.setTimeout(g,u),o.pauseQueue.add(v),o.timeouts.add(d)):g()}function g(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(v),o.timeouts.delete(d),t<=(o.cancelId||0)&&(f=!0);try{s.start(Se({},n,{callId:t,cancel:f}),a)}catch(b){l(b)}}})}const io=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?Zt(t.get()):e.every(n=>n.noop)?ni(t.get()):He(t.get(),e.every(n=>n.finished)),ni=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),He=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),Zt=t=>({value:t,cancelled:!0,finished:!1});function ri(t,e,n,r){const{callId:o,parentId:s,onRest:a}=e,{asyncTo:l,promise:c}=n;return!s&&t===l&&!e.reset?c:n.promise=fe(null,null,function*(){n.asyncId=o,n.asyncTo=t;const u=ro(e,(p,x)=>x==="onRest"?void 0:p);let d,f;const v=new Promise((p,x)=>(d=p,f=x)),y=p=>{const x=o<=(n.cancelId||0)&&Zt(r)||o!==n.asyncId&&He(r,!1);if(x)throw p.result=x,f(p),p},g=(p,x)=>{const S=new oi,C=new si;return fe(null,null,function*(){if(Xe.skipAnimation)throw fn(n),C.result=He(r,!1),f(C),C;y(S);const w=A.obj(p)?Se({},p):Se({},x,{to:p});w.parentId=o,Ge(u,(E,I)=>{A.und(w[I])&&(w[I]=E)});const k=yield r.start(w);return y(S),n.paused&&(yield new Promise(E=>{n.resumeQueue.add(E)})),k})};let b;if(Xe.skipAnimation)return fn(n),He(r,!1);try{let p;A.arr(t)?p=(x=>fe(null,null,function*(){for(const S of x)yield g(S)}))(t):p=Promise.resolve(t(g,r.stop.bind(r))),yield Promise.all([p.then(d),v]),b=He(r.get(),!0,!1)}catch(p){if(p instanceof oi)b=p.result;else if(p instanceof si)b=p.result;else throw p}finally{o==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?c:void 0)}return A.fun(a)&&Q.batchedUpdates(()=>{a(b,r,r.item)}),b})}function fn(t,e){nn(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class oi extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class si extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const ao=t=>t instanceof lo;let yu=1;class lo extends Ls{constructor(...e){super(...e),this.id=yu++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Je(this);return e&&e.getValue()}to(...e){return Xe.to(this,e)}interpolate(...e){return Gc(),Xe.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,n=!1){an(this,{type:"change",parent:this,value:e,idle:n})}_onPriorityChange(e){this.idle||An.sort(this),an(this,{type:"priority",parent:this,priority:e})}}const wt=Symbol.for("SpringPhase"),ii=1,co=2,uo=4,fo=t=>(t[wt]&ii)>0,pt=t=>(t[wt]&co)>0,mn=t=>(t[wt]&uo)>0,ai=(t,e)=>e?t[wt]|=co|ii:t[wt]&=~co,li=(t,e)=>e?t[wt]|=uo:t[wt]&=~uo;class bu extends lo{constructor(e,n){if(super(),this.key=void 0,this.animation=new vu,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!A.und(e)||!A.und(n)){const r=A.obj(e)?Se({},e):Se({},n,{from:e});A.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(pt(this)||this._state.asyncTo)||mn(this)}get goal(){return Fe(this.animation.to)}get velocity(){const e=Je(this);return e instanceof zt?e.lastVelocity||0:e.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return fo(this)}get isAnimating(){return pt(this)}get isPaused(){return mn(this)}get isDelayed(){return this._state.delayed}advance(e){let n=!0,r=!1;const o=this.animation;let{config:s,toValues:a}=o;const l=Kn(o.to);!l&&ze(o.to)&&(a=De(Fe(o.to))),o.values.forEach((d,f)=>{if(d.done)return;const v=d.constructor==Vt?1:l?l[f].lastPosition:a[f];let y=o.immediate,g=v;if(!y){if(g=d.lastPosition,s.tension<=0){d.done=!0;return}let b=d.elapsedTime+=e;const p=o.fromValues[f],x=d.v0!=null?d.v0:d.v0=A.arr(s.velocity)?s.velocity[f]:s.velocity;let S;const C=s.precision||(p==v?.005:Math.min(1,Math.abs(v-p)*.001));if(A.und(s.duration))if(s.decay){const w=s.decay===!0?.998:s.decay,k=Math.exp(-(1-w)*b);g=p+x/(1-w)*(1-k),y=Math.abs(d.lastPosition-g)<=C,S=x*k}else{S=d.lastVelocity==null?x:d.lastVelocity;const w=s.restVelocity||C/10,k=s.clamp?0:s.bounce,E=!A.und(k),I=p==v?d.v0>0:p<v;let T,Z=!1;const M=1,N=Math.ceil(e/M);for(let U=0;U<N&&(T=Math.abs(S)>w,!(!T&&(y=Math.abs(v-g)<=C,y)));++U){E&&(Z=g==v||g>v==I,Z&&(S=-S*k,g=v));const z=-s.tension*1e-6*(g-v),P=-s.friction*.001*S,F=(z+P)/s.mass;S=S+F*M,g=g+S*M}}else{let w=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,d.durationProgress>0&&(d.elapsedTime=s.duration*d.durationProgress,b=d.elapsedTime+=e)),w=(s.progress||0)+b/this._memoizedDuration,w=w>1?1:w<0?0:w,d.durationProgress=w),g=p+s.easing(w)*(v-p),S=(g-d.lastPosition)/e,y=w==1}d.lastVelocity=S,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),y=!0)}l&&!l[f].done&&(y=!1),y?d.done=!0:n=!1,d.setValue(g,s.round)&&(r=!0)});const c=Je(this),u=c.getValue();if(n){const d=Fe(o.to);(u!==d||r)&&!s.decay?(c.setValue(d),this._onChange(d)):r&&s.decay&&this._onChange(u),this._stop()}else r&&this._onChange(u)}set(e){return Q.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(pt(this)){const{to:e,config:n}=this.animation;Q.batchedUpdates(()=>{this._onStart(),n.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,n){let r;return A.und(e)?(r=this.queue||[],this.queue=[]):r=[A.obj(e)?e:Se({},n,{to:e})],Promise.all(r.map(o=>this._update(o))).then(o=>io(this,o))}stop(e){const{to:n}=this.animation;return this._focus(this.get()),fn(this._state,e&&this._lastCallId),Q.batchedUpdates(()=>this._stop(n,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const n=this.key||"";let{to:r,from:o}=e;r=A.obj(r)?r[n]:r,(r==null||oo(r))&&(r=void 0),o=A.obj(o)?o[n]:o,o==null&&(o=void 0);const s={to:r,from:o};return fo(this)||(e.reverse&&([r,o]=[o,r]),o=Fe(o),A.und(o)?Je(this)||this._set(r):this._set(o)),s}_update(e,n){let r=Se({},e);const{key:o,defaultProps:s}=this;r.default&&Object.assign(s,ro(r,(c,u)=>/^on/.test(u)?Xs(c,o):c)),di(this,r,"onProps"),gn(this,"onProps",r,this);const a=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const l=this._state;return ti(++this._lastCallId,{key:o,props:r,defaultProps:s,state:l,actions:{pause:()=>{mn(this)||(li(this,!0),rn(l.pauseQueue),gn(this,"onPause",He(this,pn(this,this.animation.to)),this))},resume:()=>{mn(this)&&(li(this,!1),pt(this)&&this._resume(),rn(l.resumeQueue),gn(this,"onResume",He(this,pn(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(c=>{if(r.loop&&c.finished&&!(n&&c.noop)){const u=ci(r);if(u)return this._update(u,!0)}return c})}_merge(e,n,r){if(n.cancel)return this.stop(!0),r(Zt(this));const o=!A.und(e.to),s=!A.und(e.from);if(o||s)if(n.callId>this._lastToId)this._lastToId=n.callId;else return r(Zt(this));const{key:a,defaultProps:l,animation:c}=this,{to:u,from:d}=c;let{to:f=u,from:v=d}=e;s&&!o&&(!n.default||A.und(f))&&(f=v),n.reverse&&([f,v]=[v,f]);const y=!rt(v,d);y&&(c.from=v),v=Fe(v);const g=!rt(f,u);g&&this._focus(f);const b=oo(n.to),{config:p}=c,{decay:x,velocity:S}=p;(o||s)&&(p.velocity=0),n.config&&!b&&gu(p,St(n.config,a),n.config!==l.config?St(l.config,a):void 0);let C=Je(this);if(!C||A.und(f))return r(He(this,!0));const w=A.und(n.reset)?s&&!n.default:!A.und(v)&&un(n.reset,a),k=w?v:this.get(),E=dn(f),I=A.num(E)||A.arr(E)||jn(E),T=!b&&(!I||un(l.immediate||n.immediate,a));if(g){const U=no(f);if(U!==C.constructor)if(T)C=this._set(E);else throw Error(`Cannot animate between ${C.constructor.name} and ${U.name}, as the "to" prop suggests`)}const Z=C.constructor;let M=ze(f),N=!1;if(!M){const U=w||!fo(this)&&y;(g||U)&&(N=rt(dn(k),E),M=!N),(!rt(c.immediate,T)&&!T||!rt(p.decay,x)||!rt(p.velocity,S))&&(M=!0)}if(N&&pt(this)&&(c.changed&&!w?M=!0:M||this._stop(u)),!b&&((M||ze(u))&&(c.values=C.getPayload(),c.toValues=ze(f)?null:Z==Vt?[1]:De(E)),c.immediate!=T&&(c.immediate=T,!T&&!w&&this._set(u)),M)){const{onRest:U}=c;se(Cu,P=>di(this,n,P));const z=He(this,pn(this,u));rn(this._pendingCalls,z),this._pendingCalls.add(r),c.changed&&Q.batchedUpdates(()=>{c.changed=!w,U==null||U(z,this),w?St(l.onRest,z):c.onStart==null||c.onStart(z,this)})}w&&this._set(k),b?r(ri(n.to,n,this._state,this)):M?this._start():pt(this)&&!g?this._pendingCalls.add(r):r(ni(k))}_focus(e){const n=this.animation;e!==n.to&&(As(this)&&this._detach(),n.to=e,As(this)&&this._attach())}_attach(){let e=0;const{to:n}=this.animation;ze(n)&&(Bt(n,this),ao(n)&&(e=n.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ze(e)&&ln(e,this)}_set(e,n=!0){const r=Fe(e);if(!A.und(r)){const o=Je(this);if(!o||!rt(r,o.getValue())){const s=no(r);!o||o.constructor!=s?eo(this,s.create(r)):o.setValue(r),o&&Q.batchedUpdates(()=>{this._onChange(r,n)})}}return Je(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gn(this,"onStart",He(this,pn(this,e.to)),this))}_onChange(e,n){n||(this._onStart(),St(this.animation.onChange,e,this)),St(this.defaultProps.onChange,e,this),super._onChange(e,n)}_start(){const e=this.animation;Je(this).reset(Fe(e.to)),e.immediate||(e.fromValues=e.values.map(n=>n.lastPosition)),pt(this)||(ai(this,!0),mn(this)||this._resume())}_resume(){Xe.skipAnimation?this.finish():An.start(this)}_stop(e,n){if(pt(this)){ai(this,!1);const r=this.animation;se(r.values,s=>{s.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),an(this,{type:"idle",parent:this});const o=n?Zt(this.get()):He(this.get(),pn(this,e!=null?e:r.to));rn(this._pendingCalls,o),r.changed&&(r.changed=!1,gn(this,"onRest",o,this))}}}function pn(t,e){const n=dn(e),r=dn(t.get());return rt(r,n)}function ci(t,e=t.loop,n=t.to){let r=St(e);if(r){const o=r!==!0&&Qs(r),s=(o||t).reverse,a=!o||o.reset;return hn(Se({},t,{loop:e,default:!1,pause:void 0,to:!s||oo(n)?n:void 0,from:a?t.from:void 0,reset:a},o))}}function hn(t){const{to:e,from:n}=t=Qs(t),r=new Set;return A.obj(e)&&ui(e,r),A.obj(n)&&ui(n,r),t.keys=r.size?Array.from(r):null,t}function xu(t){const e=hn(t);return A.und(e.default)&&(e.default=ro(e)),e}function ui(t,e){Ge(t,(n,r)=>n!=null&&e.add(r))}const Cu=["onStart","onRest","onChange","onPause","onResume"];function di(t,e,n){t.animation[n]=e[n]!==Js(e,n)?Xs(e[n],t.key):void 0}function gn(t,e,...n){var r,o,s,a;(r=(o=t.animation)[e])==null||r.call(o,...n),(s=(a=t.defaultProps)[e])==null||s.call(a,...n)}const Su=["onStart","onChange","onRest"];let wu=1,ku=class{constructor(e,n){this.id=wu++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),e&&this.start(Se({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((n,r)=>e[r]=n.get()),e}set(e){for(const n in e){const r=e[n];A.und(r)||this.springs[n].set(r)}}update(e){return e&&this.queue.push(hn(e)),this}start(e){let{queue:n}=this;return e?n=De(e).map(hn):this.queue=[],this._flush?this._flush(this,n):(vi(this,n),mo(this,n))}stop(e,n){if(e!==!!e&&(n=e),n){const r=this.springs;se(De(n),o=>r[o].stop(!!e))}else fn(this._state,this._lastAsyncId),this.each(r=>r.stop(!!e));return this}pause(e){if(A.und(e))this.start({pause:!0});else{const n=this.springs;se(De(e),r=>n[r].pause())}return this}resume(e){if(A.und(e))this.start({pause:!1});else{const n=this.springs;se(De(e),r=>n[r].resume())}return this}each(e){Ge(this.springs,e)}_onFrame(){const{onStart:e,onChange:n,onRest:r}=this._events,o=this._active.size>0,s=this._changed.size>0;(o&&!this._started||s&&!this._started)&&(this._started=!0,nn(e,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const a=!o&&this._started,l=s||a&&r.size?this.get():null;s&&n.size&&nn(n,([c,u])=>{u.value=l,c(u,this,this._item)}),a&&(this._started=!1,nn(r,([c,u])=>{u.value=l,c(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Q.onFrame(this._onFrame)}};function mo(t,e){return Promise.all(e.map(n=>fi(t,n))).then(n=>io(t,n))}function fi(t,e,n){return fe(this,null,function*(){const{keys:r,to:o,from:s,loop:a,onRest:l,onResolve:c}=e,u=A.obj(e.default)&&e.default;a&&(e.loop=!1),o===!1&&(e.to=null),s===!1&&(e.from=null);const d=A.arr(o)||A.fun(o)?o:void 0;d?(e.to=void 0,e.onRest=void 0,u&&(u.onRest=void 0)):se(Su,b=>{const p=e[b];if(A.fun(p)){const x=t._events[b];e[b]=({finished:S,cancelled:C})=>{const w=x.get(p);w?(S||(w.finished=!1),C&&(w.cancelled=!0)):x.set(p,{value:null,finished:S||!1,cancelled:C||!1})},u&&(u[b]=e[b])}});const f=t._state;e.pause===!f.paused?(f.paused=e.pause,rn(e.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(e.pause=!0);const v=(r||Object.keys(t.springs)).map(b=>t.springs[b].start(e)),y=e.cancel===!0||Js(e,"cancel")===!0;(d||y&&f.asyncId)&&v.push(ti(++t._lastAsyncId,{props:e,state:f,actions:{pause:Kr,resume:Kr,start(b,p){y?(fn(f,t._lastAsyncId),p(Zt(t))):(b.onRest=l,p(ri(d,b,f,t)))}}})),f.paused&&(yield new Promise(b=>{f.resumeQueue.add(b)}));const g=io(t,yield Promise.all(v));if(a&&g.finished&&!(n&&g.noop)){const b=ci(e,a,o);if(b)return vi(t,[b]),fi(t,b,!0)}return c&&Q.batchedUpdates(()=>c(g,t,t.item)),g})}function mi(t,e){const n=Se({},t.springs);return e&&se(De(e),r=>{A.und(r.keys)&&(r=hn(r)),A.obj(r.to)||(r=Se({},r,{to:void 0})),gi(n,r,o=>hi(o))}),pi(t,n),n}function pi(t,e){Ge(e,(n,r)=>{t.springs[r]||(t.springs[r]=n,Bt(n,t))})}function hi(t,e){const n=new bu;return n.key=t,e&&Bt(n,e),n}function gi(t,e,n){e.keys&&se(e.keys,r=>{(t[r]||(t[r]=n(r)))._prepareNode(e)})}function vi(t,e){se(e,n=>{gi(t.springs,n,r=>hi(r,t))})}function Eu(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}const Iu=["children"],qn=t=>{let{children:e}=t,n=Eu(t,Iu);const r=i.useContext(Yn),o=n.pause||!!r.pause,s=n.immediate||!!r.immediate;n=Rc(()=>({pause:o,immediate:s}),[o,s]);const{Provider:a}=Yn;return J.createElement(a,{value:n},e)},Yn=$u(qn,{});qn.Provider=Yn.Provider,qn.Consumer=Yn.Consumer;function $u(t,e){return Object.assign(t,J.createContext(e)),t.Provider._context=t,t.Consumer._context=t,t}const _u=()=>{const t=[],e=function(o){Jc();const s=[];return se(t,(a,l)=>{if(A.und(o))s.push(a.start());else{const c=n(o,a,l);c&&s.push(a.start(c))}}),s};e.current=t,e.add=function(r){t.includes(r)||t.push(r)},e.delete=function(r){const o=t.indexOf(r);~o&&t.splice(o,1)},e.pause=function(){return se(t,r=>r.pause(...arguments)),this},e.resume=function(){return se(t,r=>r.resume(...arguments)),this},e.set=function(r){se(t,o=>o.set(r))},e.start=function(r){const o=[];return se(t,(s,a)=>{if(A.und(r))o.push(s.start());else{const l=this._getProps(r,s,a);l&&o.push(s.start(l))}}),o},e.stop=function(){return se(t,r=>r.stop(...arguments)),this},e.update=function(r){return se(t,(o,s)=>o.update(this._getProps(r,o,s))),this};const n=function(o,s,a){return A.fun(o)?o(a,s):o};return e._getProps=n,e};function Pu(t,e,n){const r=A.fun(e)&&e;r&&!n&&(n=[]);const o=i.useMemo(()=>r||arguments.length==3?_u():void 0,[]),s=i.useRef(0),a=Ks(),l=i.useMemo(()=>({ctrls:[],queue:[],flush(x,S){const C=mi(x,S);return s.current>0&&!l.queue.length&&!Object.keys(C).some(k=>!x.springs[k])?mo(x,S):new Promise(k=>{pi(x,C),l.queue.push(()=>{k(mo(x,S))}),a()})}}),[]),c=i.useRef([...l.ctrls]),u=[],d=Hs(t)||0;i.useMemo(()=>{se(c.current.slice(t,d),x=>{mu(x,o),x.stop(!0)}),c.current.length=t,f(d,t)},[t]),i.useMemo(()=>{f(0,Math.min(d,t))},n);function f(x,S){for(let C=x;C<S;C++){const w=c.current[C]||(c.current[C]=new ku(null,l.flush)),k=r?r(C,w):e[C];k&&(u[C]=xu(k))}}const v=c.current.map((x,S)=>mi(x,u[S])),y=i.useContext(qn),g=Hs(y),b=y!==g&&fu(y);Rr(()=>{s.current++,l.ctrls=c.current;const{queue:x}=l;x.length&&(l.queue=[],se(x,S=>S())),se(c.current,(S,C)=>{o==null||o.add(S),b&&S.start({default:y});const w=u[C];w&&(pu(S,w.ref),S.ref?S.queue.push(w):S.start(w))})}),Ws(()=>()=>{se(l.ctrls,x=>x.stop(!0))});const p=v.map(x=>Se({},x));return o?[p,o]:p}function Ve(t,e){const n=A.fun(t),[[r],o]=Pu(1,n?t:[t],n?e||[]:e);return n||arguments.length==2?[r,o]:r}let yi;(function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"})(yi||(yi={}));class Fu extends lo{constructor(e,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=sn(...n);const r=this._get(),o=no(r);eo(this,o.create(r))}advance(e){const n=this._get(),r=this.get();rt(n,r)||(Je(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&bi(this._active)&&po(this)}_get(){const e=A.arr(this.source)?this.source.map(Fe):De(Fe(this.source));return this.calc(...e)}_start(){this.idle&&!bi(this._active)&&(this.idle=!1,se(Kn(this),e=>{e.done=!1}),Xe.skipAnimation?(Q.batchedUpdates(()=>this.advance()),po(this)):An.start(this))}_attach(){let e=1;se(De(this.source),n=>{ze(n)&&Bt(n,this),ao(n)&&(n.idle||this._active.add(n),e=Math.max(e,n.priority+1))}),this.priority=e,this._start()}_detach(){se(De(this.source),e=>{ze(e)&&ln(e,this)}),this._active.clear(),po(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=De(this.source).reduce((n,r)=>Math.max(n,(ao(r)?r.priority:0)+1),0))}}function Mu(t){return t.idle!==!1}function bi(t){return!t.size||Array.from(t).every(Mu)}function po(t){t.idle||(t.idle=!0,se(Kn(t),e=>{e.done=!0}),an(t,{type:"idle",parent:t}))}Xe.assign({createStringInterpolator:Zs,to:(t,e)=>new Fu(t,e)});function ho(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}const Nu=["style","children","scrollTop","scrollLeft","viewBox"],xi=/^--/;function Tu(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!xi.test(t)&&!(vn.hasOwnProperty(t)&&vn[t])?e+"px":(""+e).trim()}const Ci={};function Ou(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",r=e,{style:o,children:s,scrollTop:a,scrollLeft:l,viewBox:c}=r,u=ho(r,Nu),d=Object.values(u),f=Object.keys(u).map(v=>n||t.hasAttribute(v)?v:Ci[v]||(Ci[v]=v.replace(/([A-Z])/g,y=>"-"+y.toLowerCase())));s!==void 0&&(t.textContent=s);for(let v in o)if(o.hasOwnProperty(v)){const y=Tu(v,o[v]);xi.test(v)?t.style.setProperty(v,y):t.style[v]=y}f.forEach((v,y)=>{t.setAttribute(v,d[y])}),a!==void 0&&(t.scrollTop=a),l!==void 0&&(t.scrollLeft=l),c!==void 0&&t.setAttribute("viewBox",c)}let vn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Du=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),Au=["Webkit","Ms","Moz","O"];vn=Object.keys(vn).reduce((t,e)=>(Au.forEach(n=>t[Du(n,e)]=t[e]),t),vn);const Lu=["x","y","z"],Bu=/^(matrix|translate|scale|rotate|skew)/,zu=/^(translate)/,Vu=/^(rotate|skew)/,go=(t,e)=>A.num(t)&&t!==0?t+e:t,Gn=(t,e)=>A.arr(t)?t.every(n=>Gn(n,e)):A.num(t)?t===e:parseFloat(t)===e;class Zu extends Hn{constructor(e){let{x:n,y:r,z:o}=e,s=ho(e,Lu);const a=[],l=[];(n||r||o)&&(a.push([n||0,r||0,o||0]),l.push(c=>[`translate3d(${c.map(u=>go(u,"px")).join(",")})`,Gn(c,0)])),Ge(s,(c,u)=>{if(u==="transform")a.push([c||""]),l.push(d=>[d,d===""]);else if(Bu.test(u)){if(delete s[u],A.und(c))return;const d=zu.test(u)?"px":Vu.test(u)?"deg":"";a.push(De(c)),l.push(u==="rotate3d"?([f,v,y,g])=>[`rotate3d(${f},${v},${y},${go(g,d)})`,Gn(g,0)]:f=>[`${u}(${f.map(v=>go(v,d)).join(",")})`,Gn(f,u.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new ju(a,l)),super(s)}}class ju extends Ls{constructor(e,n){super(),this._value=null,this.inputs=e,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let e="",n=!0;return se(this.inputs,(r,o)=>{const s=Fe(r[0]),[a,l]=this.transforms[o](A.arr(s)?s:r.map(Fe));e+=" "+a,n=n&&l}),n?"none":e}observerAdded(e){e==1&&se(this.inputs,n=>se(n,r=>ze(r)&&Bt(r,this)))}observerRemoved(e){e==0&&se(this.inputs,n=>se(n,r=>ze(r)&&ln(r,this)))}eventObserved(e){e.type=="change"&&(this._value=null),an(this,e)}}const Ku=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Wu=["scrollTop","scrollLeft"];Xe.assign({batchedUpdates:Tt.unstable_batchedUpdates,createStringInterpolator:Zs,colors:Pc});const ke=au(Ku,{applyAnimatedValues:Ou,createAnimatedStyle:t=>new Zu(t),getComponentProps:t=>ho(t,Wu)}).animated;function Hu(t){return(typeof t=="function"?t():t)||document.body}function Xn(t,e){if(Ot&&t){const n=Hu(t);return Tt.createPortal(e,n)}return e}function Uu(t){const e=i.useRef(t);return t&&(e.current=!0),!!e.current}const Jn=t=>qu(t.active,t.forceRender,t.destroyOnClose)?t.children:null;function qu(t,e,n){const r=Uu(t);return e||t?!0:r?!n:!1}const Yu={click:"onClick",touchstart:"onTouchStart"};function Si(t,e){const n=Object.assign({},e.props);for(const r of t){const o=Yu[r];n[o]=function(s){var a,l;s.stopPropagation(),(l=(a=e.props)[o])===null||l===void 0||l.call(a,s)}}return i.cloneElement(e,n)}const vo="adm-mask",Gu={default:.55,thin:.35,thick:.75},Xu={black:"0, 0, 0",white:"255, 255, 255"},Ju={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},Qn=t=>{const e=re(Ju,t),{locale:n}=Pe(),r=i.useRef(null);Ss(r,e.visible&&e.disableBodyScroll);const o=i.useMemo(()=>{var d;const f=(d=Gu[e.opacity])!==null&&d!==void 0?d:e.opacity,v=Xu[e.color];return v?`rgba(${v}, ${f})`:e.color},[e.color,e.opacity]),[s,a]=i.useState(e.visible),l=te.useUnmountedRef(),{opacity:c}=Ve({opacity:e.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var d,f;l.current||(a(e.visible),e.visible?(d=e.afterShow)===null||d===void 0||d.call(e):(f=e.afterClose)===null||f===void 0||f.call(e))}}),u=Si(e.stopPropagation,Y(e,i.createElement(ke.div,{className:vo,ref:r,"aria-hidden":!0,style:Object.assign(Object.assign({},e.style),{background:o,opacity:c,display:s?void 0:"none"}),onClick:d=>{var f;d.target===d.currentTarget&&((f=e.onMaskClick)===null||f===void 0||f.call(e,d))}},e.onMaskClick&&i.createElement("div",{className:`${vo}-aria-button`,role:"button","aria-label":n.Mask.name,onClick:e.onMaskClick}),i.createElement("div",{className:`${vo}-content`},e.children))));return i.createElement(Jn,{active:s,forceRender:e.forceRender,destroyOnClose:e.destroyOnClose},Xn(e.getContainer,u))};function Qu(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"AddOutline-AddOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"AddOutline-add"},J.createElement("rect",{id:"AddOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",id:"AddOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function wi(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"CheckOutline-CheckOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"CheckOutline-编组"},J.createElement("rect",{id:"CheckOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",id:"CheckOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function Ru(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"CloseCircleFill-CloseCircleFill",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"CloseCircleFill-编组"},J.createElement("rect",{id:"CloseCircleFill-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",id:"CloseCircleFill-形状结合",fill:"currentColor",fillRule:"nonzero"}))))}function Rn(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"CloseOutline-编组"},J.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",id:"CloseOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function ed(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"DownOutline-DownOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",null,J.createElement("rect",{id:"DownOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M5.11219264,16.3947957 L22.6612572,34.5767382 L22.6612572,34.5767382 C23.2125856,35.1304785 24.0863155,35.1630514 24.6755735,34.6744571 L24.7825775,34.5767382 L42.8834676,16.3956061 C42.9580998,16.320643 43,16.2191697 43,16.1133896 L43,12.9866673 C43,12.7657534 42.8209139,12.5866673 42.6,12.5866673 C42.4936115,12.5866673 42.391606,12.6290496 42.316542,12.7044413 L23.7816937,31.3201933 L23.7816937,31.3201933 L5.6866816,12.7237117 C5.53262122,12.5653818 5.27937888,12.5619207 5.121049,12.7159811 C5.04365775,12.7912854 5,12.8946805 5,13.0026627 L5,16.1170064 C5,16.2206403 5.04022164,16.3202292 5.11219264,16.3947957 Z",id:"DownOutline-down",fill:"currentColor",fillRule:"nonzero"}))))}function td(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"LeftOutline-编组"},J.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",id:"LeftOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function nd(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"RightOutline-RightOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"RightOutline-RightOutlined"},J.createElement("rect",{id:"RightOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",id:"RightOutline-right",fill:"currentColor",fillRule:"nonzero"}))))}function rd(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"SearchOutline-编组"},J.createElement("rect",{id:"SearchOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",id:"SearchOutline-形状",fill:"currentColor",fillRule:"nonzero"}))))}const od={closeOnMaskClick:!1,closeIcon:i.createElement(Rn,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function sd(t){const[e,n]=i.useState(t);return te.useIsomorphicLayoutEffect(()=>{n(t)},[t]),e}function id(t,e,n){return Math.max(e,Math.min(t,n))}const ve={toVector(t,e){return t===void 0&&(t=e),Array.isArray(t)?t:[t,t]},add(t,e){return[t[0]+e[0],t[1]+e[1]]},sub(t,e){return[t[0]-e[0],t[1]-e[1]]},addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function ki(t,e,n){return e===0||Math.abs(e)===1/0?Math.pow(t,n*5):t*e*n/(e+n*t)}function Ei(t,e,n,r=.15){return r===0?id(t,e,n):t<e?-ki(e-t,n-e,r)+e:t>n?+ki(t-n,n-e,r)+n:t}function ad(t,[e,n],[r,o]){const[[s,a],[l,c]]=t;return[Ei(e,s,a,r),Ei(n,l,c,o)]}function ld(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);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cd(t){var e=ld(t,"string");return typeof e=="symbol"?e:String(e)}function Ee(t,e,n){return e=cd(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ii(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 he(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ii(Object(n),!0).forEach(function(r){Ee(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const $i={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function _i(t){return t?t[0].toUpperCase()+t.slice(1):""}const ud=["enter","leave"];function dd(t=!1,e){return t&&!ud.includes(e)}function fd(t,e="",n=!1){const r=$i[t],o=r&&r[e]||e;return"on"+_i(t)+_i(o)+(dd(n,o)?"Capture":"")}const md=["gotpointercapture","lostpointercapture"];function pd(t){let e=t.substring(2).toLowerCase();const n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));const r=md.includes(e)?"capturecapture":"capture",o=!!~e.indexOf(r);return o&&(e=e.replace("capture","")),{device:e,capture:o,passive:n}}function hd(t,e=""){const n=$i[t],r=n&&n[e]||e;return t+r}function er(t){return"touches"in t}function Pi(t){return er(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function gd(t){return Array.from(t.touches).filter(e=>{var n,r;return e.target===t.currentTarget||((n=t.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,e.target))})}function vd(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function Fi(t){return er(t)?vd(t)[0]:t}function yo(t,e){try{const n=e.clientX-t.clientX,r=e.clientY-t.clientY,o=(e.clientX+t.clientX)/2,s=(e.clientY+t.clientY)/2,a=Math.hypot(n,r);return{angle:-(Math.atan2(n,r)*180)/Math.PI,distance:a,origin:[o,s]}}catch(n){}return null}function yd(t){return gd(t).map(e=>e.identifier)}function Mi(t,e){const[n,r]=Array.from(t.touches).filter(o=>e.includes(o.identifier));return yo(n,r)}function bo(t){const e=Fi(t);return er(t)?e.identifier:e.pointerId}function Ni(t){const e=Fi(t);return[e.clientX,e.clientY]}const Ti=40,Oi=800;function Di(t){let{deltaX:e,deltaY:n,deltaMode:r}=t;return r===1?(e*=Ti,n*=Ti):r===2&&(e*=Oi,n*=Oi),[e,n]}function bd(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:s}=t;Object.assign(e,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:s})}return e}function tr(t,...e){return typeof t=="function"?t(...e):t}function xd(){}function Cd(...t){return t.length===0?xd:t.length===1?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function Ai(t,e){return Object.assign({},e,t||{})}const Sd=32;class Li{constructor(e,n,r){this.ctrl=e,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:n,ingKey:r,args:o}=this;n[r]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=o,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=e.target,n.currentTarget=e.currentTarget,n.lastOffset=r.from?tr(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=e.timeStamp)}computeValues(e){const n=this.state;n._values=e,n.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:n,config:r,shared:o}=this;n.args=this.args;let s=0;if(e&&(n.event=e,r.preventDefault&&e.cancelable&&n.event.preventDefault(),n.type=e.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,bd(e)),o.down=o.pressed=o.buttons%2===1||o.touches>0,s=e.timeStamp-n.timeStamp,n.timeStamp=e.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const E=n._delta.map(Math.abs);ve.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(e);const[a,l]=n._movement,[c,u]=r.threshold,{_step:d,values:f}=n;if(r.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(a)>=c&&f[0]),d[1]===!1&&(d[1]=Math.abs(l)>=u&&f[1])):(d[0]===!1&&(d[0]=Math.abs(a)>=c&&Math.sign(a)*c),d[1]===!1&&(d[1]=Math.abs(l)>=u&&Math.sign(l)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const v=[0,0];if(r.hasCustomTransform){const[E,I]=f;v[0]=d[0]!==!1?E-d[0]:0,v[1]=d[1]!==!1?I-d[1]:0}else v[0]=d[0]!==!1?a-d[0]:0,v[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(v);const y=n.offset,g=n._active&&!n._blocked||n.active;g&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,e&&(n.first&&("bounds"in r&&(n._bounds=tr(r.bounds,n)),this.setup&&this.setup()),n.movement=v,this.computeOffset()));const[b,p]=n.offset,[[x,S],[C,w]]=n._bounds;n.overflow=[b<x?-1:b>S?1:0,p<C?-1:p>w?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const k=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=ad(n._bounds,n.offset,k),n.delta=ve.sub(n.offset,y),this.computeMovement(),g&&(!n.last||s>Sd)){n.delta=ve.sub(n.offset,y);const E=n.delta.map(Math.abs);ve.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[E[0]/s,E[1]/s],n.timeDelta=s)}}emit(){const e=this.state,n=this.shared,r=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!r.triggerAllEvents)return;const o=this.handler(he(he(he({},n),e),{},{[this.aliasKey]:e.values}));o!==void 0&&(e.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function wd([t,e],n){const r=Math.abs(t),o=Math.abs(e);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class Bi extends Li{constructor(...e){super(...e),Ee(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=ve.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ve.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const n=this.state,r=this.config;if(!n.axis&&e){const o=typeof r.axisThreshold=="object"?r.axisThreshold[Pi(e)]:r.axisThreshold;n.axis=wd(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const kd=t=>t,zi=.15,Vi={enabled(t=!0){return t},eventOptions(t,e,n){return he(he({},n.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[zi,zi];case!1:return[0,0];default:return ve.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return ve.toVector(t)},transform(t,e,n){const r=t||n.shared.transform;return this.hasCustomTransform=!!r,r||kd},threshold(t){return ve.toVector(t,0)}},Ed=0,jt=he(he({},Vi),{},{axis(t,e,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(t=Ed){return t},bounds(t={}){if(typeof t=="function")return s=>jt.bounds(t(s));if("current"in t)return()=>t.current;if(typeof HTMLElement=="function"&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=t;return[[e,n],[r,o]]}}),Zi={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};class Id extends Bi{constructor(...e){super(...e),Ee(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const n=e._bounds.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+e.offset[0],right:n.right-r.right+e.offset[0],top:n.top-r.top+e.offset[1],bottom:n.bottom-r.bottom+e.offset[1]};e._bounds=jt.bounds(o)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const n=this.config,r=this.state;if(e.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(e.buttons):n.pointerButtons!==-1&&n.pointerButtons!==e.buttons))return;const o=this.ctrl.setEventIds(e);n.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(e),this.setupPointer(e),r._pointerId=bo(e),r._pointerActive=!0,this.computeValues(Ni(e)),this.computeInitial(),n.preventScrollAxis&&Pi(e)!=="mouse"?(r._active=!1,this.setupScrollPrevention(e)):n.delay>0?(this.setupDelayTrigger(e),n.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=bo(e);if(n._pointerId!==void 0&&o!==n._pointerId)return;const s=Ni(e);if(document.pointerLockElement===e.target?n._delta=[e.movementX,e.movementY]:(n._delta=ve.sub(s,n._values),this.computeValues(s)),ve.addTo(n._movement,n._delta),this.compute(e),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(e);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(l){}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=bo(e);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[s,a]=n._distance;if(n.tap=s<=r.tapsThreshold&&a<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[l,c]=n._delta,[u,d]=n._movement,[f,v]=r.swipe.velocity,[y,g]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTime<b){const p=Math.abs(l/n.timeDelta),x=Math.abs(c/n.timeDelta);p>f&&Math.abs(u)>y&&(n.swipe[0]=Math.sign(l)),x>v&&Math.abs(d)>g&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const n=this.config,r=n.device;n.pointerLock&&e.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,$d(e);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const n=Zi[e.key];if(n){const r=this.state,o=e.shiftKey?10:e.altKey?.1:1;this.start(e),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,ve.addTo(r._movement,r._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Zi&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const n=this.config.device;e(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(n,"change",this.pointerMove.bind(this)),e(n,"end",this.pointerUp.bind(this)),e(n,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function $d(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const yn=typeof window!="undefined"&&window.document&&window.document.createElement;function ji(){return yn&&"ontouchstart"in window}function _d(){return ji()||yn&&window.navigator.maxTouchPoints>1}function Pd(){return yn&&"onpointerdown"in window}function Fd(){return yn&&"exitPointerLock"in window.document}function Md(){try{return"constructor"in GestureEvent}catch(t){return!1}}const Ze={isBrowser:yn,gesture:Md(),touch:ji(),touchscreen:_d(),pointer:Pd(),pointerLock:Fd()},Nd=250,Td=180,Od=.5,Dd=50,Ad=250,Ld=10,Ki={mouse:0,touch:0,pen:8},Bd=he(he({},jt),{},{device(t,e,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Ze.pointerLock,Ze.touch&&n?"touch":this.pointerLock?"mouse":Ze.pointer&&!o?"pointer":Ze.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&t?Nd:void 0,!(!Ze.touchscreen||n===!1))return t||(n!==void 0?"y":void 0)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(t,e,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const s=ve.toVector(t,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,s},swipe({velocity:t=Od,distance:e=Dd,duration:n=Ad}={}){return{velocity:this.transform(ve.toVector(t)),distance:this.transform(ve.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return Td;case!1:return 0;default:return t}},axisThreshold(t){return t?he(he({},Ki),t):Ki},keyboardDisplacement(t=Ld){return t}});function Wi(t){const[e,n]=t.overflow,[r,o]=t._delta,[s,a]=t._direction;(e<0&&r>0&&s<0||e>0&&r<0&&s>0)&&(t._movement[0]=t._movementBound[0]),(n<0&&o>0&&a<0||n>0&&o<0&&a>0)&&(t._movement[1]=t._movementBound[1])}const zd=30,Vd=100;class Zd extends Li{constructor(...e){super(...e),Ee(this,"ingKey","pinching"),Ee(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const e=this.state;e._touchIds=[],e.canceled=!1,e.cancel=this.cancel.bind(this),e.turns=0}computeOffset(){const{type:e,movement:n,lastOffset:r}=this.state;e==="wheel"?this.state.offset=ve.add(n,r):this.state.offset=[(1+n[0])*r[0],n[1]+r[1]]}computeMovement(){const{offset:e,lastOffset:n}=this.state;this.state.movement=[e[0]/n[0],e[1]-n[1]]}axisIntent(){const e=this.state,[n,r]=e._movement;if(!e.axis){const o=Math.abs(n)*zd-Math.abs(r);o<0?e.axis="angle":o>0&&(e.axis="scale")}}restrictToAxis(e){this.config.lockDirection&&(this.state.axis==="scale"?e[1]=0:this.state.axis==="angle"&&(e[0]=0))}cancel(){const e=this.state;e.canceled||setTimeout(()=>{e.canceled=!0,e._active=!1,this.compute(),this.emit()},0)}touchStart(e){this.ctrl.setEventIds(e);const n=this.state,r=this.ctrl.touchIds;if(n._active&&n._touchIds.every(s=>r.has(s))||r.size<2)return;this.start(e),n._touchIds=Array.from(r).slice(0,2);const o=Mi(e,n._touchIds);o&&this.pinchStart(e,o)}pointerStart(e){if(e.buttons!=null&&e.buttons%2!==1)return;this.ctrl.setEventIds(e),e.target.setPointerCapture(e.pointerId);const n=this.state,r=n._pointerEvents,o=this.ctrl.pointerIds;if(n._active&&Array.from(r.keys()).every(a=>o.has(a))||(r.size<2&&r.set(e.pointerId,e),n._pointerEvents.size<2))return;this.start(e);const s=yo(...Array.from(r.values()));s&&this.pinchStart(e,s)}pinchStart(e,n){const r=this.state;r.origin=n.origin,this.computeValues([n.distance,n.angle]),this.computeInitial(),this.compute(e),this.emit()}touchMove(e){if(!this.state._active)return;const n=Mi(e,this.state._touchIds);n&&this.pinchMove(e,n)}pointerMove(e){const n=this.state._pointerEvents;if(n.has(e.pointerId)&&n.set(e.pointerId,e),!this.state._active)return;const r=yo(...Array.from(n.values()));r&&this.pinchMove(e,r)}pinchMove(e,n){const r=this.state,o=r._values[1],s=n.angle-o;let a=0;Math.abs(s)>270&&(a+=Math.sign(s)),this.computeValues([n.distance,n.angle-360*a]),r.origin=n.origin,r.turns=a,r._movement=[r._values[0]/r._initial[0]-1,r._values[1]-r._initial[1]],this.compute(e),this.emit()}touchEnd(e){this.ctrl.setEventIds(e),this.state._active&&this.state._touchIds.some(n=>!this.ctrl.touchIds.has(n))&&(this.state._active=!1,this.compute(e),this.emit())}pointerEnd(e){const n=this.state;this.ctrl.setEventIds(e);try{e.target.releasePointerCapture(e.pointerId)}catch(r){}n._pointerEvents.has(e.pointerId)&&n._pointerEvents.delete(e.pointerId),n._active&&n._pointerEvents.size<2&&(n._active=!1,this.compute(e),this.emit())}gestureStart(e){e.cancelable&&e.preventDefault();const n=this.state;n._active||(this.start(e),this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY],this.compute(e),this.emit())}gestureMove(e){if(e.cancelable&&e.preventDefault(),!this.state._active)return;const n=this.state;this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY];const r=n._movement;n._movement=[e.scale-1,e.rotation],n._delta=ve.sub(n._movement,r),this.compute(e),this.emit()}gestureEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}wheel(e){const n=this.config.modifierKey;n&&(Array.isArray(n)?!n.find(r=>e[r]):!e[n])||(this.state._active?this.wheelChange(e):this.wheelStart(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(e){this.start(e),this.wheelChange(e)}wheelChange(e){"uv"in e||e.cancelable&&e.preventDefault();const r=this.state;r._delta=[-Di(e)[1]/Vd*r.offset[0],0],ve.addTo(r._movement,r._delta),Wi(r),this.state.origin=[e.clientX,e.clientY],this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){const n=this.config.device;n&&(e(n,"start",this[n+"Start"].bind(this)),e(n,"change",this[n+"Move"].bind(this)),e(n,"end",this[n+"End"].bind(this)),e(n,"cancel",this[n+"End"].bind(this)),e("lostPointerCapture","",this[n+"End"].bind(this))),this.config.pinchOnWheel&&e("wheel","",this.wheel.bind(this),{passive:!1})}}const jd=he(he({},Vi),{},{device(t,e,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Ze.touch&&Ze.gesture)return"gesture";if(Ze.touch&&r)return"touch";if(Ze.touchscreen){if(Ze.pointer)return"pointer";if(Ze.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:r={}}){const o=a=>{const l=Ai(tr(n,a),{min:-1/0,max:1/0});return[l.min,l.max]},s=a=>{const l=Ai(tr(r,a),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof n!="function"&&typeof r!="function"?[o(),s()]:a=>[o(a),s(a)]},threshold(t,e,n){return this.lockDirection=n.axis==="lock",ve.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t},pinchOnWheel(t=!0){return t}});he(he({},jt),{},{mouseOnly:(t=!0)=>t});class Kd extends Bi{constructor(...e){super(...e),Ee(this,"ingKey","wheeling")}wheel(e){this.state._active||this.start(e),this.wheelChange(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){const n=this.state;n._delta=Di(e),ve.addTo(n._movement,n._delta),Wi(n),this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("wheel","",this.wheel.bind(this))}}const Wd=jt;he(he({},jt),{},{mouseOnly:(t=!0)=>t});const xo=new Map,Co=new Map;function So(t){xo.set(t.key,t.engine),Co.set(t.key,t.resolver)}const Hi={key:"drag",engine:Id,resolver:Bd},Hd={key:"pinch",engine:Zd,resolver:jd},Ud={key:"wheel",engine:Kd,resolver:Wd};function qd(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Yd(t,e){if(t==null)return{};var n=qd(t,e),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)r=s[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}const Gd={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=Ze.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},Xd=["target","eventOptions","window","enabled","transform"];function nr(t={},e){const n={};for(const[r,o]of Object.entries(e))switch(typeof o){case"function":n[r]=o.call(n,t[r],r,t);break;case"object":n[r]=nr(t[r],o);break;case"boolean":o&&(n[r]=t[r]);break}return n}function Jd(t,e,n={}){const r=t,{target:o,eventOptions:s,window:a,enabled:l,transform:c}=r,u=Yd(r,Xd);if(n.shared=nr({target:o,eventOptions:s,window:a,enabled:l,transform:c},Gd),e){const d=Co.get(e);n[e]=nr(he({shared:n.shared},u),d)}else for(const d in u){const f=Co.get(d);f&&(n[d]=nr(he({shared:n.shared},u[d]),f))}return n}class Ui{constructor(e,n){Ee(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=n}add(e,n,r,o,s){const a=this._listeners,l=hd(n,r),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=he(he({},c),s);e.addEventListener(l,o,u);const d=()=>{e.removeEventListener(l,o,u),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class Qd{constructor(){Ee(this,"_timeouts",new Map)}add(e,n,r=140,...o){this.remove(e),this._timeouts.set(e,window.setTimeout(n,r,...o))}remove(e){const n=this._timeouts.get(e);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class Rd{constructor(e){Ee(this,"gestures",new Set),Ee(this,"_targetEventStore",new Ui(this)),Ee(this,"gestureEventStores",{}),Ee(this,"gestureTimeoutStores",{}),Ee(this,"handlers",{}),Ee(this,"config",{}),Ee(this,"pointerIds",new Set),Ee(this,"touchIds",new Set),Ee(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),e1(this,e)}setEventIds(e){if(er(e))return this.touchIds=new Set(yd(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,n){this.handlers=e,this.nativeHandlers=n}applyConfig(e,n){this.config=Jd(e,n,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const a of this.gestures){const l=this.config[a],c=qi(r,l.eventOptions,!!o);if(l.enabled){const u=xo.get(a);new u(this,e,a).bind(c)}}const s=qi(r,n.eventOptions,!!o);for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](he(he({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const s in r)r[s]=Cd(...r[s]);if(!o)return r;for(const s in r){const{device:a,capture:l,passive:c}=pd(s);this._targetEventStore.add(o,a,"",r[s],{capture:l,passive:c})}}}}function Kt(t,e){t.gestures.add(e),t.gestureEventStores[e]=new Ui(t,e),t.gestureTimeoutStores[e]=new Qd}function e1(t,e){e.drag&&Kt(t,"drag"),e.wheel&&Kt(t,"wheel"),e.scroll&&Kt(t,"scroll"),e.move&&Kt(t,"move"),e.pinch&&Kt(t,"pinch"),e.hover&&Kt(t,"hover")}const qi=(t,e,n)=>(r,o,s,a={},l=!1)=>{var c,u;const d=(c=a.capture)!==null&&c!==void 0?c:e.capture,f=(u=a.passive)!==null&&u!==void 0?u:e.passive;let v=l?r:fd(r,o,d);n&&f&&(v+="Passive"),t[v]=t[v]||[],t[v].push(s)},t1=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function n1(t){const e={},n={},r=new Set;for(let o in t)t1.test(o)?(r.add(RegExp.lastMatch),n[o]=t[o]):e[o]=t[o];return[n,e,r]}function Wt(t,e,n,r,o,s){if(!t.has(n)||!xo.has(r))return;const a=n+"Start",l=n+"End",c=u=>{let d;return u.first&&a in e&&e[a](u),n in e&&(d=e[n](u)),u.last&&l in e&&e[l](u),d};o[r]=c,s[r]=s[r]||{}}function r1(t,e){const[n,r,o]=n1(t),s={};return Wt(o,n,"onDrag","drag",s,e),Wt(o,n,"onWheel","wheel",s,e),Wt(o,n,"onScroll","scroll",s,e),Wt(o,n,"onPinch","pinch",s,e),Wt(o,n,"onMove","move",s,e),Wt(o,n,"onHover","hover",s,e),{handlers:s,config:e,nativeHandlers:r}}function wo(t,e={},n,r){const o=i.useMemo(()=>new Rd(t),[]);if(o.applyHandlers(t,r),o.applyConfig(e,n),i.useEffect(o.effect.bind(o)),i.useEffect(()=>o.clean.bind(o),[]),e.target===void 0)return o.bind.bind(o)}function rr(t,e){return So(Hi),wo({drag:t},e||{},"drag")}function o1(t,e){return So(Ud),wo({wheel:t},e||{},"wheel")}function s1(t){return t.forEach(So),function(n,r){const{handlers:o,nativeHandlers:s,config:a}=r1(n,r||{});return wo(o,a,void 0,s)}}const or="adm-popup",i1=Object.assign(Object.assign({},od),{closeOnSwipe:!1,position:"bottom"}),Ht=t=>{const{locale:e,popup:n={}}=Pe(),r=re(i1,n,t),o=H(`${or}-body`,r.bodyClassName,`${or}-body-position-${r.position}`),[s,a]=i.useState(r.visible),l=i.useRef(null);Ss(l,r.disableBodyScroll&&s?"strict":!1),te.useIsomorphicLayoutEffect(()=>{r.visible&&a(!0)},[r.visible]);const c=te.useUnmountedRef(),{percent:u}=Ve({percent:r.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var y,g;c.current||(a(r.visible),r.visible?(y=r.afterShow)===null||y===void 0||y.call(r):(g=r.afterClose)===null||g===void 0||g.call(r))}}),d=rr(({swipe:[,y]})=>{var g;r.closeOnSwipe&&(y===1&&r.position==="bottom"||y===-1&&r.position==="top")&&((g=r.onClose)===null||g===void 0||g.call(r))},{axis:"y",enabled:["top","bottom"].includes(r.position)}),f=sd(s&&r.visible),v=Si(r.stopPropagation,Y(r,i.createElement("div",Object.assign({className:or,onClick:r.onClick,style:{display:s?void 0:"none",touchAction:["top","bottom"].includes(r.position)?"none":"auto"}},d()),r.mask&&i.createElement(Qn,{visible:f,forceRender:r.forceRender,destroyOnClose:r.destroyOnClose,onMaskClick:y=>{var g,b;(g=r.onMaskClick)===null||g===void 0||g.call(r,y),r.closeOnMaskClick&&((b=r.onClose)===null||b===void 0||b.call(r))},className:r.maskClassName,style:r.maskStyle,disableBodyScroll:!1,stopPropagation:r.stopPropagation}),i.createElement(ke.div,{className:o,style:Object.assign(Object.assign({},r.bodyStyle),{pointerEvents:u.to(y=>y===0?"unset":"none"),transform:u.to(y=>r.position==="bottom"?`translate(0, ${y}%)`:r.position==="top"?`translate(0, -${y}%)`:r.position==="left"?`translate(-${y}%, 0)`:r.position==="right"?`translate(${y}%, 0)`:"none")}),ref:l},r.showCloseButton&&i.createElement("a",{className:H(`${or}-close-icon`,"adm-plain-anchor"),onClick:()=>{var y;(y=r.onClose)===null||y===void 0||y.call(r)},role:"button","aria-label":e.common.close},r.closeIcon),r.children))));return i.createElement(Jn,{active:s,forceRender:r.forceRender,destroyOnClose:r.destroyOnClose},Xn(r.getContainer,v))},Yi="adm-safe-area",bn=t=>Y(t,i.createElement("div",{className:H(Yi,`${Yi}-position-${t.position}`)})),sr=Object.assign({},Hl),{version:a1,render:l1,unmountComponentAtNode:c1}=sr;let ir;try{Number((a1||"").split(".")[0])>=18&&sr.createRoot&&(ir=sr.createRoot)}catch(t){}function Gi(t){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:e}=sr;e&&typeof e=="object"&&(e.usingClientEntryPoint=t)}const ar="__antd_mobile_root__";function u1(t,e){l1(t,e)}function d1(t,e){Gi(!0);const n=e[ar]||ir(e);Gi(!1),n.render(t),e[ar]=n}function f1(t,e){if(ir){d1(t,e);return}u1(t,e)}function m1(t){return c1(t)}function p1(t){return bt(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var e;(e=t[ar])===null||e===void 0||e.unmount(),delete t[ar]})})}function h1(t){return ir?p1(t):m1(t)}function ko(t){const e=document.createElement("div");document.body.appendChild(e);function n(){h1(e)&&e.parentNode&&e.parentNode.removeChild(e)}return f1(t,e),n}function xn(t){const e=i.forwardRef((o,s)=>{const[a,l]=i.useState(!1),c=i.useRef(!1),[u,d]=i.useState(t),f=i.useRef(0);i.useEffect(()=>{c.current?y():l(!0)},[]);function v(){var g,b;c.current=!0,l(!1),(b=(g=u.props).onClose)===null||b===void 0||b.call(g)}function y(){var g,b;r(),(b=(g=u.props).afterClose)===null||b===void 0||b.call(g)}return i.useImperativeHandle(s,()=>({close:v,replace:g=>{var b,p;f.current++,(p=(b=u.props).afterClose)===null||p===void 0||p.call(b),d(g)}})),i.cloneElement(u,Object.assign(Object.assign({},u.props),{key:f.current,visible:a,onClose:v,afterClose:y}))}),n=i.createRef(),r=ko(i.createElement(e,{ref:n}));return{close:()=>bt(this,void 0,void 0,function*(){var o,s,a;n.current?(a=n.current)===null||a===void 0||a.close():(r(),(s=(o=t.props).afterClose)===null||s===void 0||s.call(o))}),replace:o=>{var s;(s=n.current)===null||s===void 0||s.replace(o)},isRendered:()=>!!n.current}}const _e="adm-action-sheet",g1={visible:!1,actions:[],cancelText:"",closeOnAction:!1,closeOnMaskClick:!0,safeArea:!0,destroyOnClose:!1,forceRender:!1},Xi=t=>{const e=re(g1,t),{styles:n}=e;return i.createElement(Ht,{visible:e.visible,onMaskClick:()=>{var r,o;(r=e.onMaskClick)===null||r===void 0||r.call(e),e.closeOnMaskClick&&((o=e.onClose)===null||o===void 0||o.call(e))},afterClose:e.afterClose,className:H(`${_e}-popup`,e.popupClassName),style:e.popupStyle,getContainer:e.getContainer,destroyOnClose:e.destroyOnClose,forceRender:e.forceRender,bodyStyle:n==null?void 0:n.body,maskStyle:n==null?void 0:n.mask},Y(e,i.createElement("div",{className:_e},e.extra&&i.createElement("div",{className:`${_e}-extra`},e.extra),i.createElement("div",{className:`${_e}-button-list`},e.actions.map((r,o)=>i.createElement("div",{key:r.key,className:`${_e}-button-item-wrapper`},i.createElement("a",{className:H("adm-plain-anchor",`${_e}-button-item`,{[`${_e}-button-item-danger`]:r.danger,[`${_e}-button-item-disabled`]:r.disabled,[`${_e}-button-item-bold`]:r.bold}),onClick:()=>{var s,a,l;(s=r.onClick)===null||s===void 0||s.call(r),(a=e.onAction)===null||a===void 0||a.call(e,r,o),e.closeOnAction&&((l=e.onClose)===null||l===void 0||l.call(e))},role:"option","aria-disabled":r.disabled},i.createElement("div",{className:`${_e}-button-item-name`},r.text),r.description&&i.createElement("div",{className:`${_e}-button-item-description`},r.description))))),e.cancelText&&i.createElement("div",{className:`${_e}-cancel`,role:"option","aria-label":e.cancelText},i.createElement("div",{className:`${_e}-button-item-wrapper`},i.createElement("a",{className:H("adm-plain-anchor",`${_e}-button-item`),onClick:e.onClose},i.createElement("div",{className:`${_e}-button-item-name`},e.cancelText)))),e.safeArea&&i.createElement(bn,{position:"bottom"}))))};function v1(t){return xn(i.createElement(Xi,Object.assign({},t)))}const y1=we(Xi,{show:v1}),Ji="adm-auto-center",b1=t=>Y(t,i.createElement("div",{className:Ji},i.createElement("div",{className:`${Ji}-content`},t.children)));var kt={},Qi;function x1(){if(Qi)return kt;Qi=1;var t=kt&&kt.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(kt,"__esModule",{value:!0}),kt.staged=void 0;const e=t(i);function n(s){return typeof s=="function"?e.default.createElement(r,{stage:s}):s}function r(s){const a=s.stage();return n(a)}function o(s){return function(l,c){const u=s(l,c);return n(u)}}return kt.staged=o,kt}var Ri=x1();function Et(t){return typeof t=="number"?`${t}px`:t}const C1=t=>{const e=i.useRef(null),[n]=te.useInViewport(e);return i.useEffect(()=>{n&&t.onActive()},[n]),i.createElement("div",{ref:e})},Eo=te.createUpdateEffect(te.useIsomorphicLayoutEffect),S1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M41.396 6.234c1.923 0 3.487 1.574 3.487 3.505v29.14c0 1.937-1.568 3.51-3.491 3.51H6.604c-1.923 0-3.487-1.573-3.487-3.51V9.745c0-1.936 1.564-3.51 3.487-3.51Zm0 2.847H6.604c-.355 0-.654.3-.654.658V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.405 2.405 0 0 1 1.933.752l4.182 4.525 7.58-11.005a2.374 2.374 0 0 1 1.96-1.01c.79 0 1.532.38 1.966 1.01L42.05 34.89V9.74a.664.664 0 0 0-.654-.658Zm-28.305 2.763a3.119 3.119 0 0 1 3.117 3.117 3.119 3.119 0 0 1-3.117 3.117 3.122 3.122 0 0 1-3.117-3.117 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),w1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M19.233 6.233 17.42 9.08l-10.817.001a.665.665 0 0 0-.647.562l-.007.096V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.415 2.415 0 0 1 1.807.625l.126.127 4.182 4.525 2.267-3.292 5.461 7.841-4.065 7.375H6.604c-1.86 0-3.382-1.47-3.482-3.317l-.005-.192V9.744c0-1.872 1.461-3.405 3.296-3.505l.19-.005h12.63Zm22.163 0c1.86 0 3.382 1.472 3.482 3.314l.005.192v29.14a3.507 3.507 0 0 1-3.3 3.505l-.191.006H27.789l3.63-6.587.06-.119a1.87 1.87 0 0 0-.163-1.853l-6.928-9.949 3.047-4.422a2.374 2.374 0 0 1 1.96-1.01 2.4 2.4 0 0 1 1.86.87l.106.14L42.05 34.89V9.74a.664.664 0 0 0-.654-.658H21.855l1.812-2.848h17.73Zm-28.305 5.611c.794 0 1.52.298 2.07.788l-.843 1.325-.067.114a1.87 1.87 0 0 0 .11 1.959l.848 1.217c-.556.515-1.3.83-2.118.83a3.122 3.122 0 0 1-3.117-3.116 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),lr="adm-image",k1={fit:"fill",placeholder:i.createElement("div",{className:`${lr}-tip`},i.createElement(S1,null)),fallback:i.createElement("div",{className:`${lr}-tip`},i.createElement(w1,null)),lazy:!1,draggable:!1},ea=Ri.staged(t=>{const e=re(k1,t),[n,r]=i.useState(!1),[o,s]=i.useState(!1),a=i.useRef(null),l=i.useRef(null);let c=e.src,u=e.srcSet;const[d,f]=i.useState(!e.lazy);c=d?e.src:void 0,u=d?e.srcSet:void 0,Eo(()=>{r(!1),s(!1)},[c]),i.useEffect(()=>{var g;!((g=l.current)===null||g===void 0)&&g.complete&&r(!0)},[]);function v(){if(o)return i.createElement(i.Fragment,null,e.fallback);const g=i.createElement("img",{ref:l,id:e.id,className:`${lr}-img`,src:c,alt:e.alt,onClick:e.onClick,onLoad:b=>{var p;r(!0),(p=e.onLoad)===null||p===void 0||p.call(e,b)},onError:b=>{var p;s(!0),(p=e.onError)===null||p===void 0||p.call(e,b)},style:{objectFit:e.fit,display:n?"block":"none"},crossOrigin:e.crossOrigin,decoding:e.decoding,loading:e.loading,referrerPolicy:e.referrerPolicy,sizes:e.sizes,srcSet:u,useMap:e.useMap,draggable:e.draggable});return i.createElement(i.Fragment,null,!n&&e.placeholder,g)}const y={};return e.width&&(y["--width"]=Et(e.width),y.width=Et(e.width)),e.height&&(y["--height"]=Et(e.height),y.height=Et(e.height)),Y(e,i.createElement("div",{ref:a,className:lr,style:y,onClick:e.onContainerClick},e.lazy&&!d&&i.createElement(C1,{onActive:()=>{f(!0)}}),v()))}),Ut="adm-badge",ta=i.createElement(i.Fragment,null),na=we(t=>{const{content:e,color:n,children:r}=t,o=e===ta,s=H(Ut,{[`${Ut}-fixed`]:!!r,[`${Ut}-dot`]:o,[`${Ut}-bordered`]:t.bordered}),a=e||e===0?Y(t,i.createElement("div",{className:s,style:{"--color":n}},!o&&i.createElement("div",{className:`${Ut}-content`},e))):null;return r?i.createElement("div",{className:H(`${Ut}-wrapper`,t.wrapperClassName),style:t.wrapperStyle},r,a):a},{dot:ta}),E1="adm-dot-loading",I1={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},$1={color:"default"},_1=i.memo(t=>{var e;const n=re($1,t);return Y(n,i.createElement("div",{style:{color:(e=I1[n.color])!==null&&e!==void 0?e:n.color},className:H("adm-loading",E1)},i.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -71.000000)"},i.createElement("g",{transform:"translate(95.000000, 71.000000)"},i.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(r=>i.createElement("rect",{key:r,fill:"currentColor",x:20+r*26,y:"16",width:"8",height:"8",rx:"2"},i.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${r*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"}))))))))))});function P1(t){return!!t&&typeof t=="object"&&typeof t.then=="function"}function F1(){return Ot?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const je="adm-button",M1={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:i.createElement(_1,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},ot=i.forwardRef((t,e)=>{const n=re(M1,t),[r,o]=i.useState(!1),s=i.useRef(null),a=n.loading==="auto"?r:n.loading,l=n.disabled||a;i.useImperativeHandle(e,()=>({get nativeElement(){return s.current}}));const c=u=>bt(void 0,void 0,void 0,function*(){if(!n.onClick)return;const d=n.onClick(u);if(P1(d))try{o(!0),yield d,o(!1)}catch(f){throw o(!1),f}});return Y(n,i.createElement("button",{ref:s,type:n.type,onClick:c,className:H(je,{[`${je}-${n.color}`]:n.color,[`${je}-block`]:n.block,[`${je}-disabled`]:l,[`${je}-fill-outline`]:n.fill==="outline",[`${je}-fill-none`]:n.fill==="none",[`${je}-mini`]:n.size==="mini",[`${je}-small`]:n.size==="small",[`${je}-large`]:n.size==="large",[`${je}-loading`]:a},`${je}-shape-${n.shape}`),disabled:l,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onTouchStart:n.onTouchStart,onTouchEnd:n.onTouchEnd},a?i.createElement("div",{className:`${je}-loading-wrapper`},n.loadingIcon,n.loadingText):i.createElement("span",null,n.children)))});var cr={exports:{}},N1=cr.exports,ra;function T1(){return ra||(ra=1,function(t,e){(function(n,r){t.exports=r()})(N1,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",a="second",l="minute",c="hour",u="day",d="week",f="month",v="quarter",y="year",g="date",b="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var F=["th","st","nd","rd"],_=P%100;return"["+P+(F[(_-20)%10]||F[_]||F[0])+"]"}},C=function(P,F,_){var B=String(P);return!B||B.length>=F?P:""+Array(F+1-B.length).join(_)+P},w={s:C,z:function(P){var F=-P.utcOffset(),_=Math.abs(F),B=Math.floor(_/60),D=_%60;return(F<=0?"+":"-")+C(B,2,"0")+":"+C(D,2,"0")},m:function P(F,_){if(F.date()<_.date())return-P(_,F);var B=12*(_.year()-F.year())+(_.month()-F.month()),D=F.clone().add(B,f),V=_-D<0,O=F.clone().add(B+(V?-1:1),f);return+(-(B+(_-D)/(V?D-O:O-D))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:f,y,w:d,d:u,D:g,h:c,m:l,s:a,ms:s,Q:v}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},k="en",E={};E[k]=S;var I="$isDayjsObject",T=function(P){return P instanceof U||!(!P||!P[I])},Z=function P(F,_,B){var D;if(!F)return k;if(typeof F=="string"){var V=F.toLowerCase();E[V]&&(D=V),_&&(E[V]=_,D=V);var O=F.split("-");if(!D&&O.length>1)return P(O[0])}else{var K=F.name;E[K]=F,D=K}return!B&&D&&(k=D),D||!B&&k},M=function(P,F){if(T(P))return P.clone();var _=typeof F=="object"?F:{};return _.date=P,_.args=arguments,new U(_)},N=w;N.l=Z,N.i=T,N.w=function(P,F){return M(P,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var U=function(){function P(_){this.$L=Z(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[I]=!0}var F=P.prototype;return F.parse=function(_){this.$d=function(B){var D=B.date,V=B.utc;if(D===null)return new Date(NaN);if(N.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var O=D.match(p);if(O){var K=O[2]-1||0,W=(O[7]||"0").substring(0,3);return V?new Date(Date.UTC(O[1],K,O[3]||1,O[4]||0,O[5]||0,O[6]||0,W)):new Date(O[1],K,O[3]||1,O[4]||0,O[5]||0,O[6]||0,W)}}return new Date(D)}(_),this.init()},F.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},F.$utils=function(){return N},F.isValid=function(){return this.$d.toString()!==b},F.isSame=function(_,B){var D=M(_);return this.startOf(B)<=D&&D<=this.endOf(B)},F.isAfter=function(_,B){return M(_)<this.startOf(B)},F.isBefore=function(_,B){return this.endOf(B)<M(_)},F.$g=function(_,B,D){return N.u(_)?this[B]:this.set(D,_)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(_,B){var D=this,V=!!N.u(B)||B,O=N.p(_),K=function(j,G){var oe=N.w(D.$u?Date.UTC(D.$y,G,j):new Date(D.$y,G,j),D);return V?oe:oe.endOf(u)},W=function(j,G){return N.w(D.toDate()[j].apply(D.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(G)),D)},q=this.$W,ne=this.$M,ee=this.$D,Ne="set"+(this.$u?"UTC":"");switch(O){case y:return V?K(1,0):K(31,11);case f:return V?K(1,ne):K(0,ne+1);case d:var X=this.$locale().weekStart||0,ue=(q<X?q+7:q)-X;return K(V?ee-ue:ee+(6-ue),ne);case u:case g:return W(Ne+"Hours",0);case c:return W(Ne+"Minutes",1);case l:return W(Ne+"Seconds",2);case a:return W(Ne+"Milliseconds",3);default:return this.clone()}},F.endOf=function(_){return this.startOf(_,!1)},F.$set=function(_,B){var D,V=N.p(_),O="set"+(this.$u?"UTC":""),K=(D={},D[u]=O+"Date",D[g]=O+"Date",D[f]=O+"Month",D[y]=O+"FullYear",D[c]=O+"Hours",D[l]=O+"Minutes",D[a]=O+"Seconds",D[s]=O+"Milliseconds",D)[V],W=V===u?this.$D+(B-this.$W):B;if(V===f||V===y){var q=this.clone().set(g,1);q.$d[K](W),q.init(),this.$d=q.set(g,Math.min(this.$D,q.daysInMonth())).$d}else K&&this.$d[K](W);return this.init(),this},F.set=function(_,B){return this.clone().$set(_,B)},F.get=function(_){return this[N.p(_)]()},F.add=function(_,B){var D,V=this;_=Number(_);var O=N.p(B),K=function(ne){var ee=M(V);return N.w(ee.date(ee.date()+Math.round(ne*_)),V)};if(O===f)return this.set(f,this.$M+_);if(O===y)return this.set(y,this.$y+_);if(O===u)return K(1);if(O===d)return K(7);var W=(D={},D[l]=r,D[c]=o,D[a]=n,D)[O]||1,q=this.$d.getTime()+_*W;return N.w(q,this)},F.subtract=function(_,B){return this.add(-1*_,B)},F.format=function(_){var B=this,D=this.$locale();if(!this.isValid())return D.invalidDate||b;var V=_||"YYYY-MM-DDTHH:mm:ssZ",O=N.z(this),K=this.$H,W=this.$m,q=this.$M,ne=D.weekdays,ee=D.months,Ne=D.meridiem,X=function(G,oe,ge,Ce){return G&&(G[oe]||G(B,V))||ge[oe].slice(0,Ce)},ue=function(G){return N.s(K%12||12,G,"0")},j=Ne||function(G,oe,ge){var Ce=G<12?"AM":"PM";return ge?Ce.toLowerCase():Ce};return V.replace(x,function(G,oe){return oe||function(ge){switch(ge){case"YY":return String(B.$y).slice(-2);case"YYYY":return N.s(B.$y,4,"0");case"M":return q+1;case"MM":return N.s(q+1,2,"0");case"MMM":return X(D.monthsShort,q,ee,3);case"MMMM":return X(ee,q);case"D":return B.$D;case"DD":return N.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return X(D.weekdaysMin,B.$W,ne,2);case"ddd":return X(D.weekdaysShort,B.$W,ne,3);case"dddd":return ne[B.$W];case"H":return String(K);case"HH":return N.s(K,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return j(K,W,!0);case"A":return j(K,W,!1);case"m":return String(W);case"mm":return N.s(W,2,"0");case"s":return String(B.$s);case"ss":return N.s(B.$s,2,"0");case"SSS":return N.s(B.$ms,3,"0");case"Z":return O}return null}(G)||O.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(_,B,D){var V,O=this,K=N.p(B),W=M(_),q=(W.utcOffset()-this.utcOffset())*r,ne=this-W,ee=function(){return N.m(O,W)};switch(K){case y:V=ee()/12;break;case f:V=ee();break;case v:V=ee()/3;break;case d:V=(ne-q)/6048e5;break;case u:V=(ne-q)/864e5;break;case c:V=ne/o;break;case l:V=ne/r;break;case a:V=ne/n;break;default:V=ne}return D?V:N.a(V)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return E[this.$L]},F.locale=function(_,B){if(!_)return this.$L;var D=this.clone(),V=Z(_,B,!0);return V&&(D.$L=V),D},F.clone=function(){return N.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},P}(),z=U.prototype;return M.prototype=z,[["$ms",s],["$s",a],["$m",l],["$H",c],["$W",u],["$M",f],["$y",y],["$D",g]].forEach(function(P){z[P[1]]=function(F){return this.$g(F,P[0],P[1])}}),M.extend=function(P,F){return P.$i||(P(F,U,M),P.$i=!0),M},M.locale=Z,M.isDayjs=T,M.unix=function(P){return M(1e3*P)},M.en=E[k],M.Ls=E,M.p={},M})}(cr)),cr.exports}var O1=T1();const pe=xt(O1),oa=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -22.000000)"},i.createElement("g",{transform:"translate(100.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(12.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"})))))),sa=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-24.000000, -22.000000)"},i.createElement("g",{transform:"translate(24.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(7.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"}),i.createElement("path",{d:"M19.5305114,17.0699744 C19.0173831,17.5315665 18.9752295,18.3220903 19.436308,18.8357433 C19.4660129,18.8688164 19.4974585,18.9002801 19.5305113,18.9300007 L29.4833057,27.2801611 C30.1234001,27.8559077 30.1759552,28.8420707 29.6007967,29.4827774 C29.0256382,30.1235263 28.0404824,30.1761351 27.400388,29.6003885 L17.4475937,21.2502703 C17.3320874,21.1463692 17.2222026,21.036372 17.1184079,20.920748 C15.5069703,19.1256817 15.6543605,16.3628317 17.4475933,14.7497465 L27.4003877,6.39962828 C28.0404821,5.82383957 29.0256378,5.87649058 29.6007963,6.51723942 C30.1759548,7.1579461 30.1233997,8.14410915 29.4833053,8.7198557 L19.5305114,17.0699744 Z"}))))));var ur={exports:{}},D1=ur.exports,ia;function A1(){return ia||(ia=1,function(t,e){(function(n,r){t.exports=r()})(D1,function(){var n="day";return function(r,o,s){var a=function(u){return u.add(4-u.isoWeekday(),n)},l=o.prototype;l.isoWeekYear=function(){return a(this).year()},l.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),n);var d,f,v,y,g=a(this),b=(d=this.isoWeekYear(),f=this.$u,v=(f?s.utc:s)().year(d).startOf("year"),y=4-v.isoWeekday(),v.isoWeekday()>4&&(y+=7),v.add(y,n));return g.diff(b,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var c=l.startOf;l.startOf=function(u,d){var f=this.$utils(),v=!!f.u(d)||d;return f.p(u)==="isoweek"?v?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(u,d)}}})}(ur)),ur.exports}var L1=A1();const Io=xt(L1);function Ie(t){const{value:e,defaultValue:n,onChange:r}=t,o=te.useUpdate(),s=i.useRef(e!==void 0?e:n);e!==void 0&&(s.current=e);const a=te.useMemoizedFn((l,c=!1)=>{const u=typeof l=="function"?l(s.current):l;if(!(!c&&u===s.current))return s.current=u,o(),r==null?void 0:r(u)});return[s.current,a]}function B1(t,e){return t.replace(/\$\{\w+\}/g,n=>{const r=n.slice(2,-1);return e[r]})}function aa(t,e){return t===void 0||e===null?null:Array.isArray(e)?e:[e,e]}function $o(t){return pe().year(t.year).month(t.month-1).date(1)}pe.extend(Io);const me="adm-calendar",z1={weekStartsOn:"Sunday",defaultValue:null,allowClear:!0,prevMonthButton:i.createElement(oa,null),prevYearButton:i.createElement(sa,null),nextMonthButton:i.createElement(oa,null),nextYearButton:i.createElement(sa,null)},V1=i.forwardRef((t,e)=>{const n=pe(),r=re(z1,t),{locale:o}=Pe(),s=[...o.Calendar.markItems];if(r.weekStartsOn==="Sunday"){const C=s.pop();C&&s.unshift(C)}const[a,l]=Ie({value:r.value===void 0?void 0:aa(r.selectionMode,r.value),defaultValue:aa(r.selectionMode,r.defaultValue),onChange:C=>{var w,k;r.selectionMode==="single"?(w=r.onChange)===null||w===void 0||w.call(r,C?C[0]:null):r.selectionMode==="range"&&((k=r.onChange)===null||k===void 0||k.call(r,C))}}),[c,u]=i.useState(!1),[d,f]=i.useState(()=>pe(a?a[0]:n).date(1));te.useUpdateEffect(()=>{var C;(C=r.onPageChange)===null||C===void 0||C.call(r,d.year(),d.month()+1)},[d]),i.useImperativeHandle(e,()=>({jumpTo:C=>{let w;typeof C=="function"?w=C({year:d.year(),month:d.month()+1}):w=C,f($o(w))},jumpToToday:()=>{f(pe().date(1))}}));const v=(C,w,k)=>{const E=d[C](w,k);if(C==="subtract"&&r.minPage){const I=$o(r.minPage);if(E.isBefore(I,k))return}if(C==="add"&&r.maxPage){const I=$o(r.maxPage);if(E.isAfter(I,k))return}f(E)},y=i.createElement("div",{className:`${me}-header`},i.createElement("a",{className:`${me}-arrow-button ${me}-arrow-button-year`,onClick:()=>{v("subtract",1,"year")}},r.prevYearButton),i.createElement("a",{className:`${me}-arrow-button ${me}-arrow-button-month`,onClick:()=>{v("subtract",1,"month")}},r.prevMonthButton),i.createElement("div",{className:`${me}-title`},B1(o.Calendar.yearAndMonth,{year:d.year().toString(),month:(d.month()+1).toString()})),i.createElement("a",{className:H(`${me}-arrow-button`,`${me}-arrow-button-right`,`${me}-arrow-button-right-month`),onClick:()=>{v("add",1,"month")}},r.nextMonthButton),i.createElement("a",{className:H(`${me}-arrow-button`,`${me}-arrow-button-right`,`${me}-arrow-button-right-year`),onClick:()=>{v("add",1,"year")}},r.nextYearButton)),g=i.useMemo(()=>r.max&&pe(r.max),[r.max]),b=i.useMemo(()=>r.min&&pe(r.min),[r.min]);function p(){var C;const w=[];let k=d.subtract(d.isoWeekday(),"day");for(r.weekStartsOn==="Monday"&&(k=k.add(1,"day"));w.length<6*7;){const E=k;let I=!1,T=!1,Z=!1,M=!1,N=!1;if(a){const[P,F]=a;T=E.isSame(P,"day"),Z=E.isSame(F,"day"),I=T||Z||E.isAfter(P,"day")&&E.isBefore(F,"day"),I&&(M=(w.length%7===0||E.isSame(E.startOf("month"),"day"))&&!T,N=(w.length%7===6||E.isSame(E.endOf("month"),"day"))&&!Z)}const U=E.month()===d.month(),z=r.shouldDisableDate?r.shouldDisableDate(E.toDate()):g&&E.isAfter(g,"day")||b&&E.isBefore(b,"day");w.push(i.createElement("div",{key:E.valueOf(),className:H(`${me}-cell`,(z||!U)&&`${me}-cell-disabled`,U&&{[`${me}-cell-today`]:E.isSame(n,"day"),[`${me}-cell-selected`]:I,[`${me}-cell-selected-begin`]:T,[`${me}-cell-selected-end`]:Z,[`${me}-cell-selected-row-begin`]:M,[`${me}-cell-selected-row-end`]:N}),onClick:()=>{if(!r.selectionMode||z)return;const P=E.toDate();U||f(E.clone().date(1));function F(){if(!r.allowClear||!a)return!1;const[_,B]=a;return E.isSame(_,"date")&&E.isSame(B,"day")}if(r.selectionMode==="single"){if(r.allowClear&&F()){l(null);return}l([P,P])}else if(r.selectionMode==="range"){if(!a){l([P,P]),u(!0);return}if(F()){l(null),u(!1);return}if(c){const _=a[0];l(_>P?[P,_]:[_,P]),u(!1)}else l([P,P]),u(!0)}}},i.createElement("div",{className:`${me}-cell-top`},r.renderDate?r.renderDate(E.toDate()):E.date()),i.createElement("div",{className:`${me}-cell-bottom`},(C=r.renderLabel)===null||C===void 0?void 0:C.call(r,E.toDate())))),k=k.add(1,"day")}return w}const x=i.createElement("div",{className:`${me}-cells`},p()),S=i.createElement("div",{className:`${me}-mark`},s.map((C,w)=>i.createElement("div",{key:w,className:`${me}-mark-cell`},C)));return Y(r,i.createElement("div",{className:me},y,S,x))});var _o={exports:{}},ce={};/**
126
126
  * @license React
127
127
  * react-is.production.min.js
128
128
  *
@@ -130,7 +130,7 @@
130
130
  *
131
131
  * This source code is licensed under the MIT license found in the
132
132
  * LICENSE file in the root directory of this source tree.
133
- */var Dr=Symbol.for("react.element"),Ar=Symbol.for("react.portal"),fo=Symbol.for("react.fragment"),mo=Symbol.for("react.strict_mode"),po=Symbol.for("react.profiler"),ho=Symbol.for("react.provider"),go=Symbol.for("react.context"),H1=Symbol.for("react.server_context"),vo=Symbol.for("react.forward_ref"),bo=Symbol.for("react.suspense"),yo=Symbol.for("react.suspense_list"),xo=Symbol.for("react.memo"),Co=Symbol.for("react.lazy"),U1=Symbol.for("react.offscreen"),ga;ga=Symbol.for("react.module.reference");function Ke(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case Dr:switch(t=t.type,t){case fo:case po:case mo:case bo:case yo:return t;default:switch(t=t&&t.$$typeof,t){case H1:case go:case vo:case Co:case xo:case ho:return t;default:return e}}case Ar:return e}}}ce.ContextConsumer=go,ce.ContextProvider=ho,ce.Element=Dr,ce.ForwardRef=vo,ce.Fragment=fo,ce.Lazy=Co,ce.Memo=xo,ce.Portal=Ar,ce.Profiler=po,ce.StrictMode=mo,ce.Suspense=bo,ce.SuspenseList=yo,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(t){return Ke(t)===go},ce.isContextProvider=function(t){return Ke(t)===ho},ce.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===Dr},ce.isForwardRef=function(t){return Ke(t)===vo},ce.isFragment=function(t){return Ke(t)===fo},ce.isLazy=function(t){return Ke(t)===Co},ce.isMemo=function(t){return Ke(t)===xo},ce.isPortal=function(t){return Ke(t)===Ar},ce.isProfiler=function(t){return Ke(t)===po},ce.isStrictMode=function(t){return Ke(t)===mo},ce.isSuspense=function(t){return Ke(t)===bo},ce.isSuspenseList=function(t){return Ke(t)===yo},ce.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===fo||t===po||t===mo||t===bo||t===yo||t===U1||typeof t=="object"&&t!==null&&(t.$$typeof===Co||t.$$typeof===xo||t.$$typeof===ho||t.$$typeof===go||t.$$typeof===vo||t.$$typeof===ga||t.getModuleId!==void 0)},ce.typeOf=Ke,ha.exports=ce;var Y1=ha.exports;const So="adm-divider",G1={contentPosition:"center",direction:"horizontal"},Lr=t=>{const e=oe(G1,t);return G(e,i.createElement("div",{className:H(So,`${So}-${e.direction}`,`${So}-${e.contentPosition}`)},e.children&&i.createElement("div",{className:`${So}-content`},e.children)))};function va(t,e){const n=te.useMemoizedFn(t);te.useIsomorphicLayoutEffect(()=>{const o=e.current;if(o)if(window.ResizeObserver){let r;const s=new ResizeObserver(()=>{r=window.requestAnimationFrame(()=>n(o))});return s.observe(o),()=>{window.cancelAnimationFrame(r),s.disconnect()}}else n(o)},[e])}function q1(t,e,n){if(t&&typeof MutationObserver!="undefined"){let o=new MutationObserver(()=>{n()});return o.observe(t,e),()=>{o&&(o.disconnect(),o=null)}}return()=>{}}function ba(t,e,n){const o=te.useMemoizedFn(t);i.useEffect(()=>q1(e.current,n,o),[e])}function xe(t,e,n){let o=t;return e!==void 0&&(o=Math.max(t,e)),n!==void 0&&(o=Math.min(o,n)),o}const X1=(t,e)=>{const[{scrollLeft:n},o]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}}));function r(s=!1){const a=t.current;if(!a||e===void 0)return;const c=a.children.item(e).children.item(0),u=c.offsetLeft,d=c.offsetWidth,m=a.offsetWidth,v=a.scrollWidth,b=a.scrollLeft;if(v-m<=0)return;const y=xe(u-(m-d)/2,0,v-m);o.start({scrollLeft:y,from:{scrollLeft:b},immediate:s&&!n.isAnimating})}return te.useIsomorphicLayoutEffect(()=>{r(!0)},[]),Nr(()=>{r()},[e]),ba(()=>{r(!0)},t,{subtree:!0,childList:!0,characterData:!0}),{scrollLeft:n,animate:r}},wo="adm-scroll-mask",J1=t=>{const e=i.useRef(null),[{leftMaskOpacity:n,rightMaskOpacity:o},r]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}})),{run:s}=te.useThrottleFn((a=!1)=>{if(!e.current)return;const c=t.scrollTrackRef.current;if(!c)return;const u=c.scrollLeft,d=u>0,m=u+c.offsetWidth<c.scrollWidth;r.start({leftMaskOpacity:d?1:0,rightMaskOpacity:m?1:0,immediate:a})},{wait:100,trailing:!0,leading:!0});return i.useEffect(()=>{s(!0)},[]),i.useEffect(()=>{const a=t.scrollTrackRef.current;if(a)return a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)},[]),i.createElement(i.Fragment,null,i.createElement(ke.div,{ref:e,className:H(wo,`${wo}-left`),style:{opacity:n}}),i.createElement(ke.div,{className:H(wo,`${wo}-right`),style:{opacity:o}}))};function Br(t,e){let n=0;function o(r){i.Children.forEach(r,s=>{Y1.isFragment(s)?o(s.props.children):(e(s,n),n+=1)})}o(t)}function ya(t,e,n){return t*e*n/(e+n*t)}function ko(t,e,n,o,r=.15){return r===0?xe(t,e,n):t<e?-ya(e-t,o,r)+e:t>n?+ya(t-n,o,r)+n:t}var Q1=typeof Element!="undefined",R1=typeof Map=="function",e0=typeof Set=="function",t0=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Eo(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,o,r;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(o=n;o--!==0;)if(!Eo(t[o],e[o]))return!1;return!0}var s;if(R1&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(s=t.entries();!(o=s.next()).done;)if(!e.has(o.value[0]))return!1;for(s=t.entries();!(o=s.next()).done;)if(!Eo(o.value[1],e.get(o.value[0])))return!1;return!0}if(e0&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(s=t.entries();!(o=s.next()).done;)if(!e.has(o.value[0]))return!1;return!0}if(t0&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(o=n;o--!==0;)if(t[o]!==e[o])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;if(Q1&&t instanceof Element)return!1;for(o=n;o--!==0;)if(!((r[o]==="_owner"||r[o]==="__v"||r[o]==="__o")&&t.$$typeof)&&!Eo(t[r[o]],e[r[o]]))return!1;return!0}return t!==t&&e!==e}var n0=function(e,n){try{return Eo(e,n)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const zr=St(n0);function xa(t){if(t==null||t==="")return 0;const e=t.trim();return e.endsWith("px")?parseFloat(e):e.endsWith("rem")?parseFloat(e)*parseFloat(window.getComputedStyle(document.documentElement).fontSize):e.endsWith("vw")?parseFloat(e)*window.innerWidth/100:0}const Re="adm-picker-view",Ca=i.memo(t=>{const{value:e,column:n,renderLabel:o}=t;function r(x){t.onSelect(x,t.index)}const[{y:s},a]=Ve(()=>({from:{y:0},config:{tension:400,mass:.8}})),l=i.useRef(!1),c=i.useRef(null),u=i.useRef(null),d=i.useRef(34);te.useIsomorphicLayoutEffect(()=>{const x=u.current;x&&(d.current=xa(window.getComputedStyle(x).getPropertyValue("height")))}),te.useIsomorphicLayoutEffect(()=>{if(l.current||e===null)return;const x=n.findIndex(C=>C.value===e);if(x<0)return;const S=x*-d.current;a.start({y:S,immediate:s.goal!==S})},[e,n]),te.useIsomorphicLayoutEffect(()=>{if(n.length===0)e!==null&&r(null);else if(!n.some(x=>x.value===e)){const x=n[0];r(x.value)}},[n,e]);function m(x){const S=x*-d.current;a.start({y:S});const C=n[x];C&&r(C.value)}const v=x=>{const{direction:[,S],distance:[,C],velocity:[,w],offset:[,k],last:E}=x;return{direction:S,distance:C,velocity:w,offset:k,last:E}},b=x=>{l.current=!0;const S=-((n.length-1)*d.current),C=0,{direction:w,last:k,velocity:E,offset:I}=v(x);if(k){l.current=!1;const T=I+E*w*50,Z=xe(T,S,C),M=-Math.round(Z/d.current);m(M)}else{const T=I;a.start({y:ko(T,S,C,d.current*50,.2)})}},h=x=>{l.current=!0;const S=-((n.length-1)*d.current),C=0,{direction:w,last:k,velocity:E,distance:I}=v(x),T=-w,Z=s.get();if(k){l.current=!1;const M=E*T*50,N=Z+I*T+M,U=xe(N,S,C),z=-Math.round(U/d.current);m(z)}else{const M=Z+I*T;a.start({y:ko(M,S,C,d.current*50,.2)})}};so(x=>{x.event.stopPropagation(),b(x)},{axis:"y",from:()=>[0,s.get()],filterTaps:!0,pointer:{touch:!0},target:c}),c1(x=>{x.event.stopPropagation(),h(x)},{target:t.mouseWheel?c:void 0,axis:"y",from:()=>[0,s.get()],preventDefault:!0,eventOptions:Dn?{passive:!1}:void 0});let y=null;function g(){if(y===null)return null;const x=n[y],S=y-1,C=y+1,w=n[S],k=n[C];return i.createElement("div",{className:`${Re}-column-accessible`},i.createElement("div",{className:`${Re}-column-accessible-current`,role:"button","aria-label":x?`当前选择的是:${x.label}`:"当前未选择"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{w&&m(S)},role:w?"button":"text","aria-label":w?`选择上一项:${w.label}`:"没有上一项"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{k&&m(C)},role:k?"button":"text","aria-label":k?`选择下一项:${k.label}`:"没有下一项"},"-"))}return i.createElement("div",{className:`${Re}-column`},i.createElement("div",{className:`${Re}-item-height-measure`,ref:u}),i.createElement(ke.div,{ref:c,style:{translateY:s},className:`${Re}-column-wheel`,"aria-hidden":!0},n.map((x,S)=>{var C;const w=t.value===x.value;w&&(y=S);function k(){l.current=!1,m(S)}return i.createElement("div",{key:(C=x.key)!==null&&C!==void 0?C:x.value,"data-selected":w,className:H(`${Re}-column-item`,{[`${Re}-column-item-active`]:w}),onClick:k,"aria-hidden":!w,"aria-label":w?"active":""},i.createElement("div",{className:`${Re}-column-item-label`},o(x)))})),g())},(t,e)=>!(t.index!==e.index||t.value!==e.value||t.onSelect!==e.onSelect||t.renderLabel!==e.renderLabel||t.mouseWheel!==e.mouseWheel||!zr(t.column,e.column)));Ca.displayName="Wheel";function Sa(t){let e=null;return()=>(e===null&&(e=t()),e)}function wa(t,e){const n=Sa(()=>(typeof t=="function"?t(e):t).map(a=>a.map(l=>typeof l=="string"?{label:l,value:l}:l))),o=Sa(()=>e.map((s,a)=>{var l;const c=n()[a];return c&&(l=c.find(u=>u.value===s))!==null&&l!==void 0?l:null}));return{get columns(){return n()},get items(){return o()}}}function ka(t,e){return i.useMemo(()=>wa(t,e),[t,e])}const Ea=t=>t.label;var Ia={exports:{}},$a={};/**
133
+ */var la;function Z1(){if(la)return ce;la=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function b(p){if(typeof p=="object"&&p!==null){var x=p.$$typeof;switch(x){case t:switch(p=p.type,p){case n:case o:case r:case u:case d:return p;default:switch(p=p&&p.$$typeof,p){case l:case a:case c:case v:case f:case s:return p;default:return x}}case e:return x}}}return ce.ContextConsumer=a,ce.ContextProvider=s,ce.Element=t,ce.ForwardRef=c,ce.Fragment=n,ce.Lazy=v,ce.Memo=f,ce.Portal=e,ce.Profiler=o,ce.StrictMode=r,ce.Suspense=u,ce.SuspenseList=d,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(p){return b(p)===a},ce.isContextProvider=function(p){return b(p)===s},ce.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ce.isForwardRef=function(p){return b(p)===c},ce.isFragment=function(p){return b(p)===n},ce.isLazy=function(p){return b(p)===v},ce.isMemo=function(p){return b(p)===f},ce.isPortal=function(p){return b(p)===e},ce.isProfiler=function(p){return b(p)===o},ce.isStrictMode=function(p){return b(p)===r},ce.isSuspense=function(p){return b(p)===u},ce.isSuspenseList=function(p){return b(p)===d},ce.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===u||p===d||p===y||typeof p=="object"&&p!==null&&(p.$$typeof===v||p.$$typeof===f||p.$$typeof===s||p.$$typeof===a||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},ce.typeOf=b,ce}var ca;function j1(){return ca||(ca=1,_o.exports=Z1()),_o.exports}var K1=j1();const dr="adm-divider",W1={contentPosition:"center",direction:"horizontal"},Po=t=>{const e=re(W1,t);return Y(e,i.createElement("div",{className:H(dr,`${dr}-${e.direction}`,`${dr}-${e.contentPosition}`)},e.children&&i.createElement("div",{className:`${dr}-content`},e.children)))};function ua(t,e){const n=te.useMemoizedFn(t);te.useIsomorphicLayoutEffect(()=>{const r=e.current;if(r)if(window.ResizeObserver){let o;const s=new ResizeObserver(()=>{o=window.requestAnimationFrame(()=>n(r))});return s.observe(r),()=>{window.cancelAnimationFrame(o),s.disconnect()}}else n(r)},[e])}function H1(t,e,n){if(t&&typeof MutationObserver!="undefined"){let r=new MutationObserver(()=>{n()});return r.observe(t,e),()=>{r&&(r.disconnect(),r=null)}}return()=>{}}function da(t,e,n){const r=te.useMemoizedFn(t);i.useEffect(()=>H1(e.current,n,r),[e])}function xe(t,e,n){let r=t;return e!==void 0&&(r=Math.max(t,e)),n!==void 0&&(r=Math.min(r,n)),r}const U1=(t,e)=>{const[{scrollLeft:n},r]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}}));function o(s=!1){const a=t.current;if(!a||e===void 0)return;const c=a.children.item(e).children.item(0),u=c.offsetLeft,d=c.offsetWidth,f=a.offsetWidth,v=a.scrollWidth,y=a.scrollLeft;if(v-f<=0)return;const b=xe(u-(f-d)/2,0,v-f);r.start({scrollLeft:b,from:{scrollLeft:y},immediate:s&&!n.isAnimating})}return te.useIsomorphicLayoutEffect(()=>{o(!0)},[]),Eo(()=>{o()},[e]),da(()=>{o(!0)},t,{subtree:!0,childList:!0,characterData:!0}),{scrollLeft:n,animate:o}},fr="adm-scroll-mask",q1=t=>{const e=i.useRef(null),[{leftMaskOpacity:n,rightMaskOpacity:r},o]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}})),{run:s}=te.useThrottleFn((a=!1)=>{if(!e.current)return;const c=t.scrollTrackRef.current;if(!c)return;const u=c.scrollLeft,d=u>0,f=u+c.offsetWidth<c.scrollWidth;o.start({leftMaskOpacity:d?1:0,rightMaskOpacity:f?1:0,immediate:a})},{wait:100,trailing:!0,leading:!0});return i.useEffect(()=>{s(!0)},[]),i.useEffect(()=>{const a=t.scrollTrackRef.current;if(a)return a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)},[]),i.createElement(i.Fragment,null,i.createElement(ke.div,{ref:e,className:H(fr,`${fr}-left`),style:{opacity:n}}),i.createElement(ke.div,{className:H(fr,`${fr}-right`),style:{opacity:r}}))};function Fo(t,e){let n=0;function r(o){i.Children.forEach(o,s=>{K1.isFragment(s)?r(s.props.children):(e(s,n),n+=1)})}r(t)}function fa(t,e,n){return t*e*n/(e+n*t)}function mr(t,e,n,r,o=.15){return o===0?xe(t,e,n):t<e?-fa(e-t,r,o)+e:t>n?+fa(t-n,r,o)+n:t}var Mo,ma;function Y1(){if(ma)return Mo;ma=1;var t=typeof Element!="undefined",e=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(s,a){if(s===a)return!0;if(s&&a&&typeof s=="object"&&typeof a=="object"){if(s.constructor!==a.constructor)return!1;var l,c,u;if(Array.isArray(s)){if(l=s.length,l!=a.length)return!1;for(c=l;c--!==0;)if(!o(s[c],a[c]))return!1;return!0}var d;if(e&&s instanceof Map&&a instanceof Map){if(s.size!==a.size)return!1;for(d=s.entries();!(c=d.next()).done;)if(!a.has(c.value[0]))return!1;for(d=s.entries();!(c=d.next()).done;)if(!o(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&s instanceof Set&&a instanceof Set){if(s.size!==a.size)return!1;for(d=s.entries();!(c=d.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(a)){if(l=s.length,l!=a.length)return!1;for(c=l;c--!==0;)if(s[c]!==a[c])return!1;return!0}if(s.constructor===RegExp)return s.source===a.source&&s.flags===a.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof a.valueOf=="function")return s.valueOf()===a.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof a.toString=="function")return s.toString()===a.toString();if(u=Object.keys(s),l=u.length,l!==Object.keys(a).length)return!1;for(c=l;c--!==0;)if(!Object.prototype.hasOwnProperty.call(a,u[c]))return!1;if(t&&s instanceof Element)return!1;for(c=l;c--!==0;)if(!((u[c]==="_owner"||u[c]==="__v"||u[c]==="__o")&&s.$$typeof)&&!o(s[u[c]],a[u[c]]))return!1;return!0}return s!==s&&a!==a}return Mo=function(a,l){try{return o(a,l)}catch(c){if((c.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw c}},Mo}var G1=Y1();const No=xt(G1);function pa(t){if(t==null||t==="")return 0;const e=t.trim();return e.endsWith("px")?parseFloat(e):e.endsWith("rem")?parseFloat(e)*parseFloat(window.getComputedStyle(document.documentElement).fontSize):e.endsWith("vw")?parseFloat(e)*window.innerWidth/100:0}const Qe="adm-picker-view",ha=i.memo(t=>{const{value:e,column:n,renderLabel:r}=t;function o(x){t.onSelect(x,t.index)}const[{y:s},a]=Ve(()=>({from:{y:0},config:{tension:400,mass:.8}})),l=i.useRef(!1),c=i.useRef(null),u=i.useRef(null),d=i.useRef(34);te.useIsomorphicLayoutEffect(()=>{const x=u.current;x&&(d.current=pa(window.getComputedStyle(x).getPropertyValue("height")))}),te.useIsomorphicLayoutEffect(()=>{if(l.current||e===null)return;const x=n.findIndex(C=>C.value===e);if(x<0)return;const S=x*-d.current;a.start({y:S,immediate:s.goal!==S})},[e,n]),te.useIsomorphicLayoutEffect(()=>{if(n.length===0)e!==null&&o(null);else if(!n.some(x=>x.value===e)){const x=n[0];o(x.value)}},[n,e]);function f(x){const S=x*-d.current;a.start({y:S});const C=n[x];C&&o(C.value)}const v=x=>{const{direction:[,S],distance:[,C],velocity:[,w],offset:[,k],last:E}=x;return{direction:S,distance:C,velocity:w,offset:k,last:E}},y=x=>{l.current=!0;const S=-((n.length-1)*d.current),C=0,{direction:w,last:k,velocity:E,offset:I}=v(x);if(k){l.current=!1;const T=I+E*w*50,Z=xe(T,S,C),M=-Math.round(Z/d.current);f(M)}else{const T=I;a.start({y:mr(T,S,C,d.current*50,.2)})}},g=x=>{l.current=!0;const S=-((n.length-1)*d.current),C=0,{direction:w,last:k,velocity:E,distance:I}=v(x),T=-w,Z=s.get();if(k){l.current=!1;const M=E*T*50,N=Z+I*T+M,U=xe(N,S,C),z=-Math.round(U/d.current);f(z)}else{const M=Z+I*T;a.start({y:mr(M,S,C,d.current*50,.2)})}};rr(x=>{x.event.stopPropagation(),y(x)},{axis:"y",from:()=>[0,s.get()],filterTaps:!0,pointer:{touch:!0},target:c}),o1(x=>{x.event.stopPropagation(),g(x)},{target:t.mouseWheel?c:void 0,axis:"y",from:()=>[0,s.get()],preventDefault:!0,eventOptions:Tn?{passive:!1}:void 0});let b=null;function p(){if(b===null)return null;const x=n[b],S=b-1,C=b+1,w=n[S],k=n[C];return i.createElement("div",{className:`${Qe}-column-accessible`},i.createElement("div",{className:`${Qe}-column-accessible-current`,role:"button","aria-label":x?`当前选择的是:${x.label}`:"当前未选择"},"-"),i.createElement("div",{className:`${Qe}-column-accessible-button`,onClick:()=>{w&&f(S)},role:w?"button":"text","aria-label":w?`选择上一项:${w.label}`:"没有上一项"},"-"),i.createElement("div",{className:`${Qe}-column-accessible-button`,onClick:()=>{k&&f(C)},role:k?"button":"text","aria-label":k?`选择下一项:${k.label}`:"没有下一项"},"-"))}return i.createElement("div",{className:`${Qe}-column`},i.createElement("div",{className:`${Qe}-item-height-measure`,ref:u}),i.createElement(ke.div,{ref:c,style:{translateY:s},className:`${Qe}-column-wheel`,"aria-hidden":!0},n.map((x,S)=>{var C;const w=t.value===x.value;w&&(b=S);function k(){l.current=!1,f(S)}return i.createElement("div",{key:(C=x.key)!==null&&C!==void 0?C:x.value,"data-selected":w,className:H(`${Qe}-column-item`,{[`${Qe}-column-item-active`]:w}),onClick:k,"aria-hidden":!w,"aria-label":w?"active":""},i.createElement("div",{className:`${Qe}-column-item-label`},r(x)))})),p())},(t,e)=>!(t.index!==e.index||t.value!==e.value||t.onSelect!==e.onSelect||t.renderLabel!==e.renderLabel||t.mouseWheel!==e.mouseWheel||!No(t.column,e.column)));ha.displayName="Wheel";function ga(t){let e=null;return()=>(e===null&&(e=t()),e)}function va(t,e){const n=ga(()=>(typeof t=="function"?t(e):t).map(a=>a.map(l=>typeof l=="string"?{label:l,value:l}:l))),r=ga(()=>e.map((s,a)=>{var l;const c=n()[a];return c&&(l=c.find(u=>u.value===s))!==null&&l!==void 0?l:null}));return{get columns(){return n()},get items(){return r()}}}function ya(t,e){return i.useMemo(()=>va(t,e),[t,e])}const ba=t=>t.label;var To={exports:{}},Oo={};/**
134
134
  * @license React
135
135
  * use-sync-external-store-shim.production.min.js
136
136
  *
@@ -138,13 +138,13 @@
138
138
  *
139
139
  * This source code is licensed under the MIT license found in the
140
140
  * LICENSE file in the root directory of this source tree.
141
- */var Gt=i;function o0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var r0=typeof Object.is=="function"?Object.is:o0,s0=Gt.useState,i0=Gt.useEffect,a0=Gt.useLayoutEffect,l0=Gt.useDebugValue;function c0(t,e){var n=e(),o=s0({inst:{value:n,getSnapshot:e}}),r=o[0].inst,s=o[1];return a0(function(){r.value=n,r.getSnapshot=e,Vr(r)&&s({inst:r})},[t,n,e]),i0(function(){return Vr(r)&&s({inst:r}),t(function(){Vr(r)&&s({inst:r})})},[t]),l0(n),n}function Vr(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!r0(t,n)}catch(o){return!0}}function u0(t,e){return e()}var d0=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?u0:c0;$a.useSyncExternalStore=Gt.useSyncExternalStore!==void 0?Gt.useSyncExternalStore:d0,Ia.exports=$a;var f0=Ia.exports;let m0=!1;const _a=new Set;function Pa(){return m0}function p0(t){return _a.add(t),()=>{_a.delete(t)}}function h0(){return f0.useSyncExternalStore(p0,Pa,Pa)}const Zr="adm-spin-loading",g0={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},v0={color:"default"},b0=15*3.14159265358979*2,jr=i.memo(t=>{var e;const n=oe(v0,t),o=h0(),{percent:r}=Ve({cancel:o,loop:{reverse:!0},from:{percent:80},to:{percent:30},config:{duration:1200}});return G(n,i.createElement(ke.div,{className:Zr,style:{"--color":(e=g0[n.color])!==null&&e!==void 0?e:n.color,"--percent":r}},i.createElement("svg",{className:`${Zr}-svg`,viewBox:"0 0 32 32"},i.createElement(ke.circle,{className:`${Zr}-fill`,fill:"transparent",strokeWidth:"2",strokeDasharray:b0,strokeDashoffset:r,strokeLinecap:"square",r:15,cx:16,cy:16}))))}),qt="adm-picker-view",y0={defaultValue:[],renderLabel:Ea,mouseWheel:!1,loadingContent:i.createElement("div",{className:`${qt}-loading-content`},i.createElement(jr,null))},Kr=i.memo(t=>{const e=oe(y0,t),[n,o]=i.useState(e.value===void 0?e.defaultValue:e.value);i.useEffect(()=>{e.value!==void 0&&e.value!==n&&o(e.value)},[e.value]),i.useEffect(()=>{if(e.value===n)return;const l=window.setTimeout(()=>{e.value!==void 0&&e.value!==n&&o(e.value)},1e3);return()=>{window.clearTimeout(l)}},[e.value,n]);const r=ka(e.columns,n),s=r.columns;te.useDebounceEffect(()=>{var l;e.value!==n&&((l=e.onChange)===null||l===void 0||l.call(e,n,r))},[n],{wait:0,leading:!1,trailing:!0});const a=i.useCallback((l,c)=>{o(u=>{const d=[...u];return d[c]=l,d})},[]);return G(e,i.createElement("div",{className:`${qt}`},e.loading?e.loadingContent:i.createElement(i.Fragment,null,s.map((l,c)=>i.createElement(Ca,{key:c,index:c,column:l,value:n[c],onSelect:a,renderLabel:e.renderLabel,mouseWheel:e.mouseWheel})),i.createElement("div",{className:`${qt}-mask`},i.createElement("div",{className:`${qt}-mask-top`}),i.createElement("div",{className:`${qt}-mask-middle`}),i.createElement("div",{className:`${qt}-mask-bottom`})))))});Kr.displayName="PickerView";const gt="adm-picker",x0={defaultValue:[],closeOnMaskClick:!0,renderLabel:Ea,destroyOnClose:!1,forceRender:!1},Wr=i.memo(i.forwardRef((t,e)=>{var n;const{locale:o}=Pe(),r=oe(x0,{confirmText:o.common.confirm,cancelText:o.common.cancel},t),[s,a]=Ie({value:r.visible,defaultValue:!1,onChange:g=>{var x;g===!1&&((x=r.onClose)===null||x===void 0||x.call(r))}}),l={toggle:()=>{a(g=>!g)},open:()=>{a(!0)},close:()=>{a(!1)}};i.useImperativeHandle(e,()=>l);const[c,u]=Ie(Object.assign(Object.assign({},r),{onChange:g=>{var x;const S=wa(r.columns,g);(x=r.onConfirm)===null||x===void 0||x.call(r,g,S)}})),d=ka(r.columns,c),[m,v]=i.useState(c);i.useEffect(()=>{m!==c&&v(c)},[s]),i.useEffect(()=>{s||v(c)},[c]);const b=te.useMemoizedFn((g,x)=>{var S;v(g),s&&((S=r.onSelect)===null||S===void 0||S.call(r,g,x))}),h=G(r,i.createElement("div",{className:gt},i.createElement("div",{className:`${gt}-header`},i.createElement("a",{role:"button",className:`${gt}-header-button`,onClick:()=>{var g;(g=r.onCancel)===null||g===void 0||g.call(r),a(!1)}},r.cancelText),i.createElement("div",{className:`${gt}-header-title`},r.title),i.createElement("a",{role:"button",className:H(`${gt}-header-button`,r.loading&&`${gt}-header-button-disabled`),onClick:()=>{r.loading||(u(m,!0),a(!1))},"aria-disabled":r.loading},r.confirmText)),i.createElement("div",{className:`${gt}-body`},i.createElement(Kr,{loading:r.loading,loadingContent:r.loadingContent,columns:r.columns,renderLabel:r.renderLabel,value:m,mouseWheel:r.mouseWheel,onChange:b})))),y=i.createElement(Ut,{style:r.popupStyle,className:H(`${gt}-popup`,r.popupClassName),visible:s,position:"bottom",onMaskClick:()=>{var g;r.closeOnMaskClick&&((g=r.onCancel)===null||g===void 0||g.call(r),a(!1))},getContainer:r.getContainer,destroyOnClose:r.destroyOnClose,afterShow:r.afterShow,afterClose:r.afterClose,onClick:r.onClick,forceRender:r.forceRender,stopPropagation:r.stopPropagation},h,i.createElement(Cn,{position:"bottom"}));return i.createElement(i.Fragment,null,y,(n=r.children)===null||n===void 0?void 0:n.call(r,d.items,l))}));Wr.displayName="Picker";function C0(t){return new Promise(e=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Wr,Object.assign({},t,{visible:r,onConfirm:(a,l)=>{var c;(c=t.onConfirm)===null||c===void 0||c.call(t,a,l),e(a)},onClose:()=>{var a;(a=t.onClose)===null||a===void 0||a.call(t),s(!1),e(null)},afterClose:()=>{var a;(a=t.afterClose)===null||a===void 0||a.call(t),o()}}))},o=Pr(i.createElement(n,null))})}const Fa=we(Wr,{prompt:C0}),Me="adm-tabs",S0=()=>null,w0={activeLineMode:"auto",stretch:!0,direction:"ltr"},Io=we(t=>{var e;const n=oe(w0,t),o=i.useRef(null),r=i.useRef(null),s={};let a=null;const l=[],c=n.direction==="rtl";Br(n.children,(k,E)=>{if(!i.isValidElement(k))return;const I=k.key;if(typeof I!="string")return;E===0&&(a=I);const T=l.push(k);s[I]=T-1});const[u,d]=Ie({value:n.activeKey,defaultValue:(e=n.defaultActiveKey)!==null&&e!==void 0?e:a,onChange:k=>{var E;k!==null&&((E=n.onChange)===null||E===void 0||E.call(n,k))}}),[{x:m,width:v},b]=Ve(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:h},y]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:g,rightMaskOpacity:x},S]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function C(k=!1,E=!1){const I=o.current;if(!I)return;const T=s[u];if(T===void 0){b.start({x:0,width:0,immediate:!0});return}const Z=r.current;if(!Z)return;const M=I.children.item(T+1),N=M.children.item(0),U=N.offsetLeft,z=N.offsetWidth,P=M.offsetLeft,F=M.offsetWidth,_=I.offsetWidth,B=I.scrollWidth,D=I.scrollLeft,V=Z.offsetWidth;let O=0,K=0;if(n.activeLineMode==="auto"?(O=U,K=z):n.activeLineMode==="full"?(O=P,K=F):O=U+(z-V)/2,c){const ne=["auto","full"].includes(n.activeLineMode)?K:V;O=-(_-O-ne)}b.start({x:O,width:K,immediate:k});const W=B-_;if(W<=0)return;let Y=0;c?Y=-xe(_/2-U+z/2-V,0,W):Y=xe(U-(_-z)/2,0,W),(!E||n.autoScroll!==!1)&&y.start({scrollLeft:Y,from:{scrollLeft:D},immediate:k})}te.useIsomorphicLayoutEffect(()=>{C(!m.isAnimating)},[]),Nr(()=>{C()},[u,c,n.activeLineMode]),va(()=>{C(!m.isAnimating)},o),ba(()=>{C(!m.isAnimating,!0)},o,{subtree:!0,childList:!0,characterData:!0});const{run:w}=te.useThrottleFn((k=!1)=>{const E=o.current;if(!E)return;const I=E.scrollLeft;let T=!1,Z=!1;c?(T=Math.round(-I)+E.offsetWidth<E.scrollWidth,Z=I<0):(T=I>0,Z=I+E.offsetWidth<E.scrollWidth),S.start({leftMaskOpacity:T?1:0,rightMaskOpacity:Z?1:0,immediate:k})},{wait:100,trailing:!0,leading:!0});return te.useIsomorphicLayoutEffect(()=>{w(!0)},[]),G(n,i.createElement("div",{className:Me,style:{direction:n.direction}},i.createElement("div",{className:`${Me}-header`},i.createElement(ke.div,{className:H(`${Me}-header-mask`,`${Me}-header-mask-left`),style:{opacity:g}}),i.createElement(ke.div,{className:H(`${Me}-header-mask`,`${Me}-header-mask-right`),style:{opacity:x}}),i.createElement(ke.div,{className:`${Me}-tab-list`,ref:o,scrollLeft:h,onScroll:w,role:"tablist"},i.createElement(ke.div,{ref:r,className:`${Me}-tab-line`,style:{width:n.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":v,x:m}}),l.map(k=>G(k.props,i.createElement("div",{key:k.key,className:H(`${Me}-tab-wrapper`,{[`${Me}-tab-wrapper-stretch`]:n.stretch})},i.createElement("div",{onClick:()=>{const{key:E}=k;k.props.disabled||E!=null&&d(E.toString())},className:H(`${Me}-tab`,{[`${Me}-tab-active`]:k.key===u,[`${Me}-tab-disabled`]:k.props.disabled}),role:"tab","aria-selected":k.key===u},k.props.title)))))),l.map(k=>{if(k.props.children===void 0)return null;const E=k.key===u;return i.createElement(Rn,{key:k.key,active:E,forceRender:k.props.forceRender,destroyOnClose:k.props.destroyOnClose},i.createElement("div",{className:`${Me}-content`,style:{display:E?"block":"none"}},k.props.children))})))},{Tab:S0}),wn="adm-list",k0={mode:"default"},E0=i.forwardRef((t,e)=>{const n=oe(k0,t),o=i.useRef(null);return i.useImperativeHandle(e,()=>({get nativeElement(){return o.current}})),G(n,i.createElement("div",{className:H(wn,`${wn}-${n.mode}`),ref:o},n.header&&i.createElement("div",{className:`${wn}-header`},n.header),i.createElement("div",{className:`${wn}-body`},i.createElement("div",{className:`${wn}-body-inner`},n.children))))});function $o(t){return t!=null&&t!==!1}const it="adm-list-item",Xt=we(E0,{Item:t=>{var e,n;const{arrow:o,arrowIcon:r}=t,{list:s={}}=Pe(),a=(e=t.clickable)!==null&&e!==void 0?e:!!t.onClick,l=(n=o!=null?o:r)!==null&&n!==void 0?n:a,c=Wo(s.arrowIcon,o!==!0?o:null,r!==!0?r:null),u=i.createElement("div",{className:`${it}-content`},$o(t.prefix)&&i.createElement("div",{className:`${it}-content-prefix`},t.prefix),i.createElement("div",{className:`${it}-content-main`},$o(t.title)&&i.createElement("div",{className:`${it}-title`},t.title),t.children,$o(t.description)&&i.createElement("div",{className:`${it}-description`},t.description)),$o(t.extra)&&i.createElement("div",{className:`${it}-content-extra`},t.extra),l&&i.createElement("div",{className:`${it}-content-arrow`},c||i.createElement(ad,null)));return G(t,i.createElement(a?"a":"div",{className:H(`${it}`,a?["adm-plain-anchor"]:[],t.disabled&&`${it}-disabled`),onClick:t.disabled?void 0:t.onClick},u))}}),Ma=i.createContext(null),I0="adm-check-list",$0={multiple:!1,defaultValue:[],activeIcon:i.createElement(Mi,null)},_0=t=>{const{checkList:e={}}=Pe(),n=oe($0,e,t),[o,r]=Ie(n);function s(m){n.multiple?r([...o,m]):r([m])}function a(m){r(o.filter(v=>v!==m))}const{activeIcon:l,extra:c,disabled:u,readOnly:d}=n;return i.createElement(Ma.Provider,{value:{value:o,check:s,uncheck:a,activeIcon:l,extra:c,disabled:u,readOnly:d}},G(n,i.createElement(Xt,{mode:n.mode,className:I0},n.children)))},_o="adm-check-list-item",Po=we(_0,{Item:t=>{const e=i.useContext(Ma);if(e===null)return null;const n=e.value.includes(t.value),o=t.readOnly||e.readOnly,r=n?e.activeIcon:null,s=e.extra?e.extra(n):r,a=i.createElement("div",{className:`${_o}-extra`},s);return G(t,i.createElement(Xt.Item,{title:t.title,className:H(_o,o&&`${_o}-readonly`,n&&`${_o}-active`),description:t.description,prefix:t.prefix,onClick:l=>{var c;o||(n?e.uncheck(t.value):e.check(t.value),(c=t.onClick)===null||c===void 0||c.call(t,l))},arrow:!1,clickable:!o,extra:a,disabled:t.disabled||e.disabled},t.children))}});function P0(t){var e=t+"",n=e.indexOf("...");return n>=0&&(n<e.indexOf(")")||e.indexOf("arguments")>=0)}function Na(t,e){e||(e={});var n=e.vargs||P0(t),o=[],r=new Map,s,a,l=function(b){return a=setTimeout(function(){if(s){r.delete(b);return}o.splice(b,1)},e.maxAge)},c=e.maxAge>0&&e.maxAge<1/0?l:0,u=e.equals?e.equals:0,d=e.maxArgs,m=e.serializer,v;return t.length===1&&!e.equals&&!n?(v=function(b){m&&(b=m(b));var h;return r.get(b)||(!c||c(b),r.set(b,h=t.call(this,b)),h)},s=1):u?v=function(){for(var b=d||arguments.length,h=o.length,y=-1;++y<h;)if(o[y].length===b){for(var g=-1;++g<b&&u(arguments[g],o[y][g]););if(g===b)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=t.apply(this,o[y])}:v=function(){for(var b=d||arguments.length,h=o.length,y=-1;++y<h;)if(o[y].length===b){for(var g=-1;++g<b&&arguments[g]===o[y][g];);if(g===b)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=t.apply(this,o[y])},v.clear=function(){a&&clearTimeout(a),r.clear(),o=[]},v.keys=function(){return s?[...r.keys()]:o.slice()},v.values=function(){return s?[...r.values()]:o.map(b=>b.val)},v}function F0(t,e){const{valueName:n,childrenName:o}=e,r=i.useMemo(()=>Na(l=>{const c=[];let u=t;for(const d of l){const m=u.find(v=>v[n]===d);if(!m||(c.push(m),!m[o]))break;u=m[o]}return c},{equals:zr}),[t]),s=i.useMemo(()=>Na(l=>l.reduce((u,d)=>{var m;return((m=u.find(v=>v[n]===d))===null||m===void 0?void 0:m[o])||[]},t).length===0,{equals:zr}),[t]);function a(l){return{get items(){return r(l)},get isLeaf(){return s(l)}}}return a}const Ta=[];function M0(t,e){const n=[];for(let o=t;o<=e;o++)n.push(o);return n}const kn="adm-skeleton",Hr=t=>G(t,i.createElement("div",{className:H(kn,{[`${kn}-animated`]:t.animated})})),N0=t=>G(t,i.createElement(Hr,{animated:t.animated,className:`${kn}-title`})),T0={lineCount:3},Fo=we(Hr,{Title:N0,Paragraph:t=>{const e=oe(T0,t),n=M0(1,e.lineCount),o=i.createElement("div",{className:`${kn}-paragraph`},n.map(r=>i.createElement(Hr,{key:r,animated:e.animated,className:`${kn}-paragraph-line`})));return G(e,o)}}),O0=(t={})=>i.useMemo(()=>{const{label:n="label",value:o="value",disabled:r="disabled",children:s="children"}=t;return[n,o,s,r]},[JSON.stringify(t)]),Ye="adm-cascader-view",D0={defaultValue:[]},A0=we(t=>{const e=oe(D0,t),{locale:n}=Pe(),[o,r,s,a]=O0(e.fieldNames),l=F0(e.options,{valueName:r,childrenName:s}),[c,u]=Ie(Object.assign(Object.assign({},e),{onChange:g=>{var x;(x=e.onChange)===null||x===void 0||x.call(e,g,l(g))}})),[d,m]=i.useState(0),v=i.useMemo(()=>{const g=[];let x=e.options,S=!1;for(const C of c){const w=x.find(k=>k[r]===C);if(g.push({selected:w,options:x}),!w||!w[s]){S=!0;break}x=w[s]}return S||g.push({selected:void 0,options:x}),g},[c,e.options]);te.useUpdateEffect(()=>{var g;(g=e.onTabsChange)===null||g===void 0||g.call(e,d)},[d]),i.useEffect(()=>{m(v.length-1)},[c]),i.useEffect(()=>{const g=v.length-1;d>g&&m(g)},[d,v]);const b=(g,x)=>{const S=c.slice(0,x);g!==void 0&&(S[x]=g),u(S)},h=g=>e.loading||g===Ta,y=e.placeholder||n.Cascader.placeholder;return G(e,i.createElement("div",{className:Ye},i.createElement(Io,{activeKey:d.toString(),onChange:g=>{const x=parseInt(g);m(x)},stretch:!1,className:`${Ye}-tabs`},v.map((g,x)=>{const S=g.selected;return i.createElement(Io.Tab,{key:x.toString(),title:i.createElement("div",{className:`${Ye}-header-title`},S?S[o]:typeof y=="function"?y(x):y),forceRender:!0},i.createElement("div",{className:`${Ye}-content`},h(g.options)?i.createElement("div",{className:`${Ye}-skeleton`},i.createElement(Fo,{className:`${Ye}-skeleton-line-1`,animated:!0}),i.createElement(Fo,{className:`${Ye}-skeleton-line-2`,animated:!0}),i.createElement(Fo,{className:`${Ye}-skeleton-line-3`,animated:!0}),i.createElement(Fo,{className:`${Ye}-skeleton-line-4`,animated:!0})):i.createElement(Po,{value:[c[x]],onChange:C=>b(C[0],x),activeIcon:e.activeIcon},g.options.map(C=>{const w=c[x]===C[r];return i.createElement(Po.Item,{value:C[r],key:C[r],disabled:C[a],className:H(`${Ye}-item`,{[`${Ye}-item-active`]:w})},C[o])}))))}))))},{optionSkeleton:Ta}),Oa=i.createContext(null),L0={disabled:!1,defaultValue:[]},B0=t=>{const e=oe(L0,t),[n,o]=Ie(e);return i.createElement(Oa.Provider,{value:{value:n,disabled:e.disabled,check:r=>{o([...n,r])},uncheck:r=>{o(n.filter(s=>s!==r))}}},e.children)},Da=i.memo(t=>G(t,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M31.5541766,15 L28.0892433,15 L28.0892434,15 C27.971052,15 27.8576674,15.044522 27.7740471,15.1239792 L18.2724722,24.1625319 L13.2248725,19.3630279 L13.2248725,19.3630279 C13.1417074,19.2834412 13.0287551,19.2384807 12.9107898,19.2380079 L9.44474455,19.2380079 L9.44474454,19.2380079 C9.19869815,19.2384085 8.99957935,19.4284738 9,19.66253 C9,19.7747587 9.04719253,19.8823283 9.13066188,19.9616418 L17.0907466,27.5338228 C17.4170809,27.8442545 17.8447695,28 18.2713393,28 L18.2980697,28 C18.7168464,27.993643 19.133396,27.8378975 19.4530492,27.5338228 L31.8693384,15.7236361 L31.8693384,15.7236361 C32.0434167,15.5582251 32.0435739,15.2898919 31.8696892,15.1242941 C31.7860402,15.0446329 31.6725052,15 31.5541421,15 L31.5541766,15 Z",fill:"currentColor"})))),z0=i.memo(t=>G(t,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M20,9 C26.0752953,9 31,13.9247047 31,20 C31,26.0752953 26.0752953,31 20,31 C13.9247047,31 9,26.0752953 9,20 C9,13.9247047 13.9247047,9 20,9 Z",fill:"currentColor"})))),Aa=t=>{const e=i.useRef(null),n=te.useMemoizedFn(o=>{o.stopPropagation(),o.stopImmediatePropagation();const r=o.target.checked;r!==t.checked&&t.onChange(r)});return i.useEffect(()=>{if(t.disabled||!e.current)return;const o=e.current;return o.addEventListener("click",n),()=>{o.removeEventListener("click",n)}},[t.disabled,t.onChange]),i.createElement("input",{ref:e,type:t.type,checked:t.checked,onChange:()=>{},disabled:t.disabled,id:t.id})},vt="adm-checkbox",V0={defaultChecked:!1,indeterminate:!1},Z0=i.forwardRef((t,e)=>{const n=i.useContext(Oa),o=oe(V0,t);let[r,s]=Ie({value:o.checked,defaultValue:o.defaultChecked,onChange:o.onChange}),a=o.disabled;const{value:l}=o;n&&l!==void 0&&(r=n.value.includes(l),s=u=>{var d;u?n.check(l):n.uncheck(l),(d=o.onChange)===null||d===void 0||d.call(o,u)},a=a||n.disabled),i.useImperativeHandle(e,()=>({check:()=>{s(!0)},uncheck:()=>{s(!1)},toggle:()=>{s(!r)}}));const c=()=>o.icon?i.createElement("div",{className:`${vt}-custom-icon`},o.icon(r,o.indeterminate)):i.createElement("div",{className:`${vt}-icon`},o.indeterminate?i.createElement(z0,null):r&&i.createElement(Da,null));return G(o,i.createElement("label",{onClick:o.onClick,className:H(vt,{[`${vt}-checked`]:r&&!o.indeterminate,[`${vt}-indeterminate`]:o.indeterminate,[`${vt}-disabled`]:a,[`${vt}-block`]:o.block})},i.createElement(Aa,{type:"checkbox",checked:r,onChange:s,disabled:a,id:o.id}),c(),o.children&&i.createElement("div",{className:`${vt}-content`},o.children)))}),Ur=we(Z0,{Group:B0});var La={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(Ct,function(){return function(n,o){o.prototype.isoWeeksInYear=function(){var r=this.isLeapYear(),s=this.endOf("y").day();return s===4||r&&s===5?53:52}}})})(La);var j0=La.exports;const Ba=St(j0);var za={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(Ct,function(){return function(n,o){o.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}})})(za);var K0=za.exports;const Va=St(K0),En="TILL_NOW";pe.extend(Tr),pe.extend(Ba),pe.extend(Va);const bt={year:0,month:1,day:2,hour:3,minute:4,second:5};function W0(t,e,n,o,r,s,a){const l=[],c=e.getFullYear(),u=e.getMonth()+1,d=e.getDate(),m=e.getHours(),v=e.getMinutes(),b=e.getSeconds(),h=n.getFullYear(),y=n.getMonth()+1,g=n.getDate(),x=n.getHours(),S=n.getMinutes(),C=n.getSeconds(),w=bt[o],k=parseInt(t[0]),E=pe(Yr([t[0],t[1],"1"])),I=parseInt(t[1]),T=parseInt(t[2]),Z=parseInt(t[3]),M=parseInt(t[4]),N=k===c,U=k===h,z=N&&I===u,P=U&&I===y,F=z&&T===d,_=P&&T===g,B=F&&Z===m,D=_&&Z===x,V=B&&M===v,O=D&&M===S,K=(W,Y,ne)=>{let ee=[];for(let ue=W;ue<=Y;ue++)ee.push(ue);const Ne=t.slice(0,bt[ne]),X=s==null?void 0:s[ne];return X&&typeof X=="function"&&(ee=ee.filter(ue=>X(ue,{get date(){const j=[...Ne,ue.toString()];return Yr(j)}}))),ee};if(w>=bt.year){const ne=K(c,h,"year");l.push(ne.map(ee=>({label:r("year",ee),value:ee.toString()})))}if(w>=bt.month){const ne=K(N?u:1,U?y:12,"month");l.push(ne.map(ee=>({label:r("month",ee),value:ee.toString()})))}if(w>=bt.day){const W=z?d:1,Y=P?g:E.daysInMonth(),ne=K(W,Y,"day");l.push(ne.map(ee=>({label:r("day",ee),value:ee.toString()})))}if(w>=bt.hour){const ne=K(F?m:0,_?x:23,"hour");l.push(ne.map(ee=>({label:r("hour",ee),value:ee.toString()})))}if(w>=bt.minute){const ne=K(B?v:0,D?S:59,"minute");l.push(ne.map(ee=>({label:r("minute",ee),value:ee.toString()})))}if(w>=bt.second){const ne=K(V?b:0,O?C:59,"second");l.push(ne.map(ee=>({label:r("second",ee),value:ee.toString()})))}if(a&&(l[0].push({label:r("now",null),value:En}),En===(t==null?void 0:t[0])))for(let W=1;W<l.length;W+=1)l[W]=[];return l}function H0(t){return t?[t.getFullYear().toString(),(t.getMonth()+1).toString(),t.getDate().toString(),t.getHours().toString(),t.getMinutes().toString(),t.getSeconds().toString()]:[]}function Yr(t){var e,n,o,r,s,a;const l=(e=t[0])!==null&&e!==void 0?e:"1900",c=(n=t[1])!==null&&n!==void 0?n:"1",u=(o=t[2])!==null&&o!==void 0?o:"1",d=(r=t[3])!==null&&r!==void 0?r:"0",m=(s=t[4])!==null&&s!==void 0?s:"0",v=(a=t[5])!==null&&a!==void 0?a:"0";return new Date(parseInt(l),parseInt(c)-1,parseInt(u),parseInt(d),parseInt(m),parseInt(v))}var Za={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(Ct,function(){var n="month",o="quarter";return function(r,s){var a=s.prototype;a.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=a.add;a.add=function(u,d){return u=Number(u),this.$utils().p(d)===o?this.add(3*u,n):l.bind(this)(u,d)};var c=a.startOf;a.startOf=function(u,d){var m=this.$utils(),v=!!m.u(d)||d;if(m.p(u)===o){var b=this.quarter()-1;return v?this.month(3*b).startOf(n).startOf("day"):this.month(3*b+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}})})(Za);var U0=Za.exports;const Y0=St(U0);pe.extend(Y0);const Mo={year:0,quarter:1};function G0(t,e,n,o,r,s){const a=[],l=e.getFullYear(),c=n.getFullYear(),u=Mo[o],d=parseInt(t[0]),m=d===l,v=d===c,b=pe(e),h=pe(n),y=b.quarter(),g=h.quarter(),x=(S,C,w)=>{let k=[];for(let T=S;T<=C;T++)k.push(T);const E=t.slice(0,Mo[w]),I=s==null?void 0:s[w];return I&&typeof I=="function"&&(k=k.filter(T=>I(T,{get date(){const Z=[...E,T.toString()];return ja(Z)}}))),k};if(u>=Mo.year){const w=x(l,c,"year");a.push(w.map(k=>({label:r("year",k),value:k.toString()})))}if(u>=Mo.quarter){const w=x(m?y:1,v?g:4,"quarter");a.push(w.map(k=>({label:r("quarter",k),value:k.toString()})))}return a}function q0(t){if(!t)return[];const e=pe(t);return[e.year().toString(),e.quarter().toString()]}function ja(t){var e,n;const o=(e=t[0])!==null&&e!==void 0?e:"1900",r=(n=t[1])!==null&&n!==void 0?n:"1";return pe().year(parseInt(o)).quarter(parseInt(r)).hour(0).minute(0).second(0).toDate()}pe.extend(Tr),pe.extend(Ba),pe.extend(Va);const In={year:0,week:1,"week-day":2};function X0(t,e,n,o,r,s){const a=[],l=e.getFullYear(),c=n.getFullYear(),u=In[o],d=parseInt(t[0]),m=d===l,v=d===c,b=pe(e),h=pe(n),y=b.isoWeek(),g=h.isoWeek(),x=b.isoWeekday(),S=h.isoWeekday(),C=parseInt(t[1]),w=m&&C===y,k=v&&C===g,E=pe(`${d}-01-01`).isoWeeksInYear(),I=(T,Z,M)=>{let N=[];for(let P=T;P<=Z;P++)N.push(P);const U=t.slice(0,In[M]),z=s==null?void 0:s[M];return z&&typeof z=="function"&&(N=N.filter(P=>z(P,{get date(){const F=[...U,P.toString()];return Ka(F)}}))),N};if(u>=In.year){const M=I(l,c,"year");a.push(M.map(N=>({label:r("year",N),value:N.toString()})))}if(u>=In.week){const M=I(m?y:1,v?g:E,"week");a.push(M.map(N=>({label:r("week",N),value:N.toString()})))}if(u>=In["week-day"]){const M=I(w?x:1,k?S:7,"week-day");a.push(M.map(N=>({label:r("week-day",N),value:N.toString()})))}return a}function J0(t){if(!t)return[];const e=pe(t);return[e.isoWeekYear().toString(),e.isoWeek().toString(),e.isoWeekday().toString()]}function Ka(t){var e,n,o;const r=(e=t[0])!==null&&e!==void 0?e:"1900",s=(n=t[1])!==null&&n!==void 0?n:"1",a=(o=t[2])!==null&&o!==void 0?o:"1";return pe().year(parseInt(r)).isoWeek(parseInt(s)).isoWeekday(parseInt(a)).hour(0).minute(0).second(0).toDate()}const Q0={year:1,month:2,day:3,hour:4,minute:5,second:6},R0=(t,e)=>{if(e.includes("week"))return J0(t);if(e.includes("quarter"))return q0(t);{const n=e;return H0(t).slice(0,Q0[n])}},Wa=(t,e)=>{if((t==null?void 0:t[0])===En){const n=new Date;return n.tillNow=!0,n}return e.includes("week")?Ka(t):e.includes("quarter")?ja(t):Yr(t)},ef=(t,e,n,o,r,s,a)=>o.startsWith("week")?X0(t,e,n,o,r,s):o.startsWith("quarter")?G0(t,e,n,o,r,s):W0(t,e,n,o,r,s,a);function tf(t){const{locale:e}=Pe();return i.useCallback((n,o)=>{if(t)return t(n,o);switch(n){case"minute":case"second":case"hour":return("0"+o.toString()).slice(-2);case"now":return e.DatePicker.tillNow;default:return o.toString()}},[t])}const Ha=new Date().getFullYear(),nf={min:new Date(new Date().setFullYear(Ha-10)),max:new Date(new Date().setFullYear(Ha+10)),precision:"day",defaultValue:null},Ua=i.forwardRef((t,e)=>{const n=oe(nf,t),{renderLabel:o}=n,[r,s]=Ie({value:n.value,defaultValue:n.defaultValue,onChange:v=>{var b;v!==null&&((b=n.onConfirm)===null||b===void 0||b.call(n,v))}}),a=i.useMemo(()=>new Date,[]),l=tf(o),c=i.useMemo(()=>{let v=r!=null?r:a;return v.tillNow?[En]:(v=new Date(xe(v.getTime(),n.min.getTime(),n.max.getTime())),R0(v,n.precision))},[r,n.precision,n.min,n.max]),u=i.useCallback(v=>{const b=Wa(v,n.precision);s(b,!0)},[s,n.precision]),d=te.useMemoizedFn(v=>{var b;const h=Wa(v,n.precision);(b=n.onSelect)===null||b===void 0||b.call(n,h)}),m=i.useCallback(v=>ef(v,n.min,n.max,n.precision,l,n.filter,n.tillNow),[n.min,n.max,n.precision,l,n.tillNow]);return G(n,i.createElement(Fa,{ref:e,columns:m,value:c,onCancel:n.onCancel,onClose:n.onClose,closeOnMaskClick:n.closeOnMaskClick,visible:n.visible,confirmText:n.confirmText,cancelText:n.cancelText,onConfirm:u,onSelect:d,getContainer:n.getContainer,loading:n.loading,loadingContent:n.loadingContent,afterShow:n.afterShow,afterClose:n.afterClose,onClick:n.onClick,title:n.title,stopPropagation:n.stopPropagation,mouseWheel:n.mouseWheel,destroyOnClose:n.destroyOnClose,forceRender:n.forceRender},(v,b)=>{var h;return(h=n.children)===null||h===void 0?void 0:h.call(n,r,b)}))});function of(t){return new Promise(e=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Ua,Object.assign({},t,{visible:r,onConfirm:a=>{var l;(l=t.onConfirm)===null||l===void 0||l.call(t,a),e(a)},onClose:()=>{var a;(a=t.onClose)===null||a===void 0||a.call(t),s(!1),e(null)},afterClose:()=>{var a;(a=t.afterClose)===null||a===void 0||a.call(t),o()}}))},o=Pr(i.createElement(n,null))})}const rf=we(Ua,{prompt:of,DATE_NOW:En});var Ya;(function(t){t[t.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",t[t.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",t[t.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",t[t.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",t[t.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",t[t.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",t[t.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",t[t.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",t[t.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",t[t.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",t[t.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",t[t.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",t[t.TAGS_START=917504]="TAGS_START",t[t.TAGS_END=917631]="TAGS_END",t[t.ZWJ=8205]="ZWJ"})(Ya||(Ya={}));const sf=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var Ga;function Gr(t){if(typeof t!="string")throw new TypeError("string cannot be undefined or null");const e=[];let n=0,o=0;for(;n<t.length;)o+=af(n+o,t),pf(t[n+o])&&o++,df(t[n+o])&&o++,ff(t[n+o])&&o++,hf(t[n+o])?o++:(e.push(t.substring(n,n+o)),n+=o,o=0);return e}function af(t,e){const n=e[t];if(!lf(n)||t===e.length-1)return 1;const o=n+e[t+1];let r=e.substring(t+2,t+5);return qa(o)&&qa(r)?4:cf(o)&&mf(r)?e.slice(t).indexOf(String.fromCodePoint(917631))+2:uf(r)?4:2}function lf(t){return t&&$t(t[0].charCodeAt(0),55296,56319)}function qa(t){return $t(qr(t),127462,127487)}function cf(t){return $t(qr(t),127988,127988)}function uf(t){return $t(qr(t),127995,127999)}function df(t){return typeof t=="string"&&$t(t.charCodeAt(0),65024,65039)}function ff(t){return typeof t=="string"&&$t(t.charCodeAt(0),8400,8447)}function mf(t){const e=t.codePointAt(0);return typeof t=="string"&&typeof e=="number"&&$t(e,917504,917631)}function pf(t){return typeof t=="string"&&sf.includes(t.charCodeAt(0))}function hf(t){return typeof t=="string"&&t.charCodeAt(0)===8205}function qr(t){return(t.charCodeAt(0)-55296<<10)+(t.charCodeAt(1)-56320)+65536}function $t(t,e,n){return t>=e&&t<=n}(function(t){t[t.unit_1=1]="unit_1",t[t.unit_2=2]="unit_2",t[t.unit_4=4]="unit_4"})(Ga||(Ga={}));const _t="adm-error-block",gf={status:"default"};function vf(t){return n=>{var o;const r=oe(gf,n),{locale:s}=Pe(),a=s.ErrorBlock[r.status],l="description"in r?r.description:a.description,c="title"in r?r.title:a.title,u=(o=r.image)!==null&&o!==void 0?o:t[r.status],d=typeof u=="string"?i.createElement("img",{src:u,alt:"error block image"}):u;return G(r,i.createElement("div",{className:H(_t,{[`${_t}-full-page`]:r.fullPage})},i.createElement("div",{className:`${_t}-image`},d),i.createElement("div",{className:`${_t}-description`},![void 0,null].includes(c)&&i.createElement("div",{className:`${_t}-description-title`},c),![void 0,null].includes(l)&&i.createElement("div",{className:`${_t}-description-subtitle`},l)),r.children&&i.createElement("div",{className:`${_t}-content`},r.children)))}}const bf=i.createElement("svg",{viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-default-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-default-d",cx:18.823,cy:18.823,r:18.823}),i.createElement("rect",{id:"error-block-image-default-b",x:3.5,y:9,width:51.429,height:88,rx:4.571})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M73.557.004c19.435-.311 38.696 17.016 51.523 35.287 8.708-10.822 17.127-16.233 25.255-16.233 13.333 0 28.35 14.274 45.053 42.822 1.769 3.024-3.582 7.435-16.054 13.231l-41.322 1.37c-7.343 5.872-31.225.626-69.152 1.234-27.79.445-45.759-1.234-53.908-5.037C3.2 71.143-1.625 68.686.48 65.308 27.371 22.12 51.73.353 73.557.003Zm93.098 49.53a1.125 1.125 0 0 0-.401.072l-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.283 1.719 4.153 3.898 4.314l.026.001v3.805c0 .39.25.705.56.705.31 0 .56-.316.56-.705l.001-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734Zm-100-5a1.125 1.125 0 0 0-.331.05l-.035.01-.035.012-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.212 1.613 4.036 3.695 4.294l.203.02.026.001v3.805c0 .39.25.705.56.705.282 0 .515-.26.555-.6l.006-.105v-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734ZM52.64 38.348l-.15.008-.149.023-.032.007-.032.008-.078.022-.045.015-.045.016-.06.023-.038.017-.038.017-.058.028-.022.011a2.201 2.201 0 0 0-.323.204l-.05.038-.05.04-.025.02-.025.021a3.742 3.742 0 0 0-.31.294l-.036.04c-.035.037-.07.076-.105.116-.01.012-.02.025-.031.036a3.275 3.275 0 0 0-.081.098l-.063.078c-2.031 2.583-3.48 8.692-3.48 11.027 0 2.636 1.846 4.832 4.292 5.323l.224.04-.064-.012.105.018.103.014v4.618c0 .47.299.85.667.85.337 0 .615-.32.659-.735l.006-.115v-4.618c.18-.023.355-.054.527-.094l.256-.067.196-.06c2.136-.706 3.68-2.75 3.68-5.162 0-2.996-2.383-12.207-5.325-12.207Z",transform:"translate(2.286 22.286)",fill:"url(#error-block-image-default-a)"}),i.createElement("g",{transform:"rotate(-90 102.429 55.357)"},i.createElement("path",{d:"M6.857 0H52a6.857 6.857 0 0 1 6.857 6.857v92A6.857 6.857 0 0 1 52 105.714H6.857A6.857 6.857 0 0 1 0 98.857v-92A6.857 6.857 0 0 1 6.857 0Z",fill:"#7EACFF"}),i.createElement("mask",{id:"error-block-image-default-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-default-b"}),i.createElement("path",{d:"M11.838 91.8a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-2.858 0a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.16-2.305a.64.64 0 0 1 .628.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-2.982-.04a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm5.268-.531a.64.64 0 0 1 .628.651.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.858-1.143a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-6.37-.917c.209 0 .377.175.377.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm3.512-.798.093.007a.644.644 0 0 1 .535.645.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.652.627-.652Zm5.715 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-11.429 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.261.241c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm11.833-.812a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.628-.651c0-.36.281-.652.628-.652Zm-4.851.399c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm10.313-2.056a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-2.354-.128a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.652.628-.652Zm-13.798.311c.207 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.377-.39c0-.217.169-.392.377-.392Zm11.832-.812a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-6.285 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm3.428 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-6.118.24c.208 0 .376.176.376.392a.384.384 0 0 1-.376.39.384.384 0 0 1-.377-.39c0-.216.169-.391.377-.391Zm11.261-2.525a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm-3.557.484c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.478-.555a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.512-.26c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.857 0c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-4.571 0c.207 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm14.898-1.835a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-8.027-.245c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.169-.391.376-.391Zm6.271-1.349c.208 0 .377.175.377.391a.384.384 0 0 1-.377.391.384.384 0 0 1-.376-.39c0-.217.169-.392.376-.392Zm-11.484-.481c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm15.103-.972c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.39c0-.217.168-.392.376-.392Zm-9.333-1.404c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-6.819-.405c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-default-c)",transform:"rotate(116 12.367 83.503)"}),i.createElement("path",{stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"M36.774 5.474H21.523"}),i.createElement("path",{d:"m67.818 94.025-4.996 3.913m4.996 11.91-4.996-3.912m-1.142 9.145-1.143-6.288m10.71-6.768h-7.262",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"})),i.createElement("circle",{cx:8.571,cy:8.571,r:8.571,transform:"translate(22.857 142)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(132.857 124)"},i.createElement("mask",{id:"error-block-image-default-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-default-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:13.886,cy:15.12,r:18.823}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:23.4,cy:29.057,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.343,cy:29.829,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:18.771,cy:32.657,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:29.571,cy:25.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:19.286,cy:7.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:26.486,cy:5.914,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:11.057,cy:6.943,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.086,cy:15.686,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:22.886,cy:14.657,r:1})),i.createElement("path",{d:"m87.429 135.123 6.591-9.378v-.08h-5.99v-2.559h10.038v1.787l-6.44 9.254v.082h6.56v2.557h-10.76v-1.663Zm12.185-5.889 4.948-7.047v-.056h-4.498v-1.917h7.536v1.34l-4.849 6.942v.059h4.923v1.92h-8.06v-1.24Zm10.345.702 3.708-5.274v-.045h-3.372v-1.437h5.648v1.003l-3.628 5.206v.045H116v1.438h-6.041v-.936Z",fill:"#FFF",fillRule:"nonzero"}))),yf=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("title",null,"@反馈/异常/网络服务异常"),i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-disconnected-c"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-disconnected-d",cx:22.309,cy:22.309,r:22.309}),i.createElement("path",{id:"error-block-image-disconnected-a",d:"M0 0h400v400H0z"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("mask",{id:"error-block-image-disconnected-b",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-a"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"url(#error-block-image-disconnected-c)"},i.createElement("path",{d:"M151.686 45.58c38.869-.623 77.391 34.03 103.046 70.573 17.416-21.644 34.253-32.465 50.51-32.465 26.666 0 56.701 28.548 90.105 85.643 3.539 6.05-7.164 14.87-32.107 26.462l-82.643 2.741c-14.686 11.745-62.45 1.252-138.305 2.467-55.58.89-91.518-2.468-107.816-10.074-23.505-3.07-33.154-7.983-28.946-14.74C59.313 89.813 108.03 46.278 151.686 45.58Zm186.195 99.06-.127.003-.126.01a2.32 2.32 0 0 0-.465.103l-.032.01-.031.01a2.364 2.364 0 0 0-.181.071 2.52 2.52 0 0 0-.116.054l-.133.067-.042.024-.036.02a2.946 2.946 0 0 0-.133.08l-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024a4.906 4.906 0 0 0-.31.27l-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.108.008v7.608c0 .779.502 1.41 1.121 1.41.62 0 1.121-.632 1.121-1.41v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-200-10-.127.003-.126.01a2.32 2.32 0 0 0-.368.073l-.049.014-.048.016-.032.01-.031.01a2.364 2.364 0 0 0-.181.071l-.058.026-.058.028-.133.067-.042.024-.036.02-.066.039-.067.041-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024l-.156.13-.154.14-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.054.004.054.004v7.608c0 .779.502 1.41 1.121 1.41.58 0 1.058-.556 1.115-1.266l.006-.144v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-28.029-12.373-.107.002-.106.006a2.978 2.978 0 0 0-.551.095 3.444 3.444 0 0 0-.323.104 3.962 3.962 0 0 0-.61.297c-.076.045-.15.092-.226.141-4.964 3.312-8.728 18.445-8.728 23.77 0 5.434 3.922 9.935 9.04 10.726l.28.04v9.236c0 .886.532 1.614 1.21 1.692l.121.007.122-.007c.638-.074 1.147-.723 1.204-1.538l.006-.155v-9.235c5.254-.668 9.32-5.234 9.32-10.767 0-5.993-4.77-24.414-10.652-24.414Z"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(85.858 150.644)"},i.createElement("path",{d:"M116.26 28.467c1.352 0 2.703.018 4.054.054 3.923.385 10.188 4.248 9.267 11.061-.878 6.496-5.836 9.089-8.962 9.529a130.762 130.762 0 0 0-4.36-.072c-28.567 0-60.654 10.149-96.22 30.676l-2.227 1.297c-.744.437-1.49.878-2.236 1.323-4.878 2.911-11.193 1.316-14.103-3.562C-1.438 73.894.157 67.58 5.035 64.67 45.34 40.62 82.4 28.467 116.26 28.467Zm22 11.63c1.03-5.942 6.376-8.618 11.084-8.08C172.14 36.91 194.83 46.86 217.37 61.794c4.735 3.138 6.03 9.52 2.893 14.255-3.138 4.736-9.52 6.031-14.256 2.893-20.111-13.325-40.075-22.165-59.935-26.584a9.974 9.974 0 0 0-.325-.088c-3.987-1.015-8.602-5.738-7.487-12.175ZM116.26 77.418c22.777 0 45.4 7.057 67.73 20.988 4.82 3.007 6.289 9.351 3.282 14.17-3.007 4.82-9.351 6.29-14.17 3.283-19.194-11.974-38.095-17.87-56.842-17.87s-37.648 5.896-56.842 17.87c-4.82 3.007-11.164 1.537-14.17-3.282-3.007-4.82-1.538-11.164 3.282-14.171 22.33-13.931 44.953-20.988 67.73-20.988ZM117.974 124.67c9.85 0 17.303 1.69 25.687 5.082l.82.337 2.9 1.231 3.008 1.252.77.305.107.04c5.326 1.976 8.042 7.895 6.066 13.221-1.976 5.326-7.895 8.042-13.221 6.067l-.713-.27-.726-.285-.763-.31-1.263-.527-2.944-1.26-1.125-.473c-6.393-2.648-11.433-3.838-18.603-3.838-8.223 0-16.532 2.126-25.028 6.475-5.056 2.588-11.254.587-13.842-4.47-2.589-5.056-.588-11.253 4.47-13.842 11.313-5.791 22.814-8.735 34.4-8.735ZM118.235 197.047c7.15 0 13.77-.897 19.841-2.721 5.44-1.635 8.526-7.37 6.892-12.81-1.635-5.44-7.37-8.526-12.81-6.892-4.072 1.224-8.707 1.851-13.923 1.851-4.36 0-8.79-1.045-13.373-3.21l-.626-.301c-5.095-2.512-11.262-.418-13.773 4.678-2.512 5.095-.418 11.261 4.678 13.773 7.559 3.727 15.288 5.632 23.094 5.632Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M198.35 62.413c2.755-4.967 9.016-6.76 13.984-4.004 13.068 7.25 19.124 18.535 17.615 30.952-1.157 9.515-6.83 18.757-14.096 24.352-13.364 10.29-34.915 9.401-49.363-1.91-4.472-3.502-5.26-9.967-1.758-14.44 3.436-4.388 9.724-5.229 14.185-1.952l.255.194c7.283 5.702 18.475 6.164 24.13 1.809 3.072-2.366 5.766-6.754 6.226-10.536.467-3.844-1.21-7.07-6.796-10.267l-.378-.213c-4.967-2.756-6.76-9.017-4.004-13.985ZM61.35 103.092c-2.84-4.92-9.13-6.607-14.05-3.768-20.662 11.922-21.772 35.751-6.018 51.69 13.752 13.914 33.192 13.447 50.507 1.158 4.633-3.288 5.723-9.708 2.436-14.34-3.288-4.633-9.709-5.724-14.341-2.436-9.763 6.928-18.07 7.128-23.97 1.158-6.761-6.84-6.498-14.501 1.35-19.225l.317-.187c4.92-2.84 6.608-9.13 3.769-14.05ZM129.103 135.702c1.688-5.424 7.454-8.453 12.878-6.764 14.776 4.599 23.437 13.727 25.259 25.58 1.316 8.561-1.228 17.533-5.58 24.052-3.132 4.688-7.388 8.287-12.504 11.112-3.03 1.673-5.75 2.811-9.37 4.066l-1.4.477c-5.387 1.806-11.217-1.097-13.022-6.484-1.805-5.386 1.098-11.216 6.484-13.02l1.09-.374c6.032-2.112 9.602-4.19 11.613-7.201 1.693-2.535 2.818-6.502 2.356-9.503-.564-3.673-3.432-6.696-11.04-9.063-5.424-1.689-8.452-7.454-6.764-12.878Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M148.072 181.58c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.236-9.096-10.275-9.707",stroke:"#FFF",strokeWidth:.571,strokeLinecap:"round"}),i.createElement("ellipse",{fill:"#7EACFF",transform:"rotate(10 147 41.933)",cx:147,cy:41.933,rx:9.143,ry:10.286}),i.createElement("path",{d:"M210.422 107.472c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.668-9.883-11.572-12.067M51.604 131.769c-3.15-6.8-3.537-12.694-1.161-17.685 2.376-4.99 5.57-8.136 9.583-9.438",stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M21.53 64.408c4.946-3.389 9.817-6.026 14.612-7.912",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"m113.243 15.444 9.588 8.314M144.31 9.405l-5.775 11.3m18.389-1.246-11.907 4.643M127.64 5.66l2.77 14.255",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(275.143 302.571)"},i.createElement("mask",{id:"error-block-image-disconnected-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-disconnected-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:16.457,cy:17.92,r:22.309}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:14.263,cy:12.069,r:2.194}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"#FBBE47",fillRule:"nonzero"},i.createElement("circle",{cx:12,cy:12,r:12,transform:"translate(84 297.714)"})))),xf=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-empty-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("path",{d:"M146.183 18.461c31.705 23.336 33.349 71.85 4.93 96.614-.252.22 6.172 5.602 13.577 11.414l.686.537.69.54.695.54.348.27.698.54a341.27 341.27 0 0 0 8.806 6.596c1.114.802 4.643-.853 10.587-4.965l-.532 12.218a1.2 1.2 0 0 1-.481.91l-10.868 8.111c-1.405 1.048-3.32 1.185-4.854.072l-35.578-25.834c-33.414 17.333-79.913 15-109.804-7-33.444-24.616-33.444-75.95 0-100.563 33.443-24.615 87.657-24.615 121.1 0Zm-60.469 7.653C51.63 26.114 24 44.534 24 67.257S51.63 108.4 85.714 108.4s61.715-18.42 61.715-41.143c0-22.722-27.63-41.143-61.715-41.143Z",id:"error-block-image-empty-b"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 244.661H0L3.806 100.13a4.572 4.572 0 0 1 4.353-4.446l.217-.006h45.588V68.2a4.572 4.572 0 0 1 4.356-4.567l.216-.005h65.498l2.554-58.689a4.571 4.571 0 0 1 4.779-4.367l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.212 3.146 69.652L301.634 64.9a4.571 4.571 0 0 1 5.628 4.231l.005.215v43.955l56.162.001v130.264h-56.163v.001h-82.383v-.004h-66.919v1.098ZM89.503 160.03h-9.968v8.436h9.968v-8.436Zm0-14.507h-9.968v8.435h9.968v-8.435Zm197.985-5.15h-9.967v8.432h9.967v-8.431Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.436h9.967v-8.436Zm-84.643-3.29h-30.8v8.436h30.8v-8.436Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 50.286)",fill:"url(#error-block-image-empty-a)"}),i.createElement("g",{transform:"translate(108.571 189.886)"},i.createElement("mask",{id:"error-block-image-empty-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-empty-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-empty-b"}),i.createElement("path",{d:"M131.429 134.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM128 133.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM120 128.971a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.142.125.006a1.143 1.143 0 1 1-.125-.006Zm11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-22.857 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm17.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM136 125.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-13.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm18.857-2.286a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-37.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm13.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm18.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-28 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm17.715-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-4.571a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.428 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.143 1.142a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-9.143 0a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm30.286-3.429a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM124 109.543a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.858-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-11.428-3.429a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM124 99.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM49.143 55.829a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-9.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM52 52.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-19.429-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-1.142a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-13.143 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM64 44.4a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.125.007a1.143 1.143 0 1 1-.125-.007Zm11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.858 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM30.286 44.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM44 43.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM72 38.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-28 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm5.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM56 37.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM60.57 32.97a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM44 34.114a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm30.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-15.429 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.857-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-11.429-3.428a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM41.714 20.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-empty-c)"})),i.createElement("path",{d:"M295.213 319.24c.744.546.745 1.433.002 1.98l-11.806 8.81c-1.069.799-3.326.474-4.853-.609l-35.622-25.241c-33.375 17.037-79.545 14.615-109.28-7.271-33.443-24.615-33.443-64.521 0-89.133 33.443-24.616 87.657-24.616 121.1 0 31.706 23.336 33.35 60.42 4.931 85.185-.543.473 35.528 26.278 35.528 26.278ZM148.06 220.015c-25.44 17.853-25.44 46.8 0 64.652 25.44 17.85 66.689 17.85 92.129 0 25.436-17.853 25.436-46.799 0-64.652-25.44-17.853-66.688-17.853-92.129 0Z",fill:"#5D96FE"}),i.createElement("path",{d:"M123.514 233.021c2.185-5.241 5.67-9.735 10.453-13.482M264.967 271.54c-2.185 5.24-5.67 9.734-10.453 13.481",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M81.143 252.571c7.574 0 13.714 23.88 13.714 31.649 0 6.97-4.942 12.755-11.429 13.871v11.672c0 1.235-.767 2.237-1.713 2.237-.904 0-1.644-.912-1.71-2.07l-.005-.167v-11.526c-7.04-.595-12.571-6.644-12.571-14.017 0-7.024 5.02-27.222 11.581-31.027l.096-.053c.027-.016.055-.03.082-.045l.067-.035.066-.033.1-.05.094-.041a3.34 3.34 0 0 1 .224-.093l.11-.042.097-.032c.038-.013.077-.025.115-.036l.053-.016.053-.014a3.351 3.351 0 0 1 .23-.055l.085-.016a3.95 3.95 0 0 1 .441-.054l.11-.005.11-.002Z",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(283.429 177.143)",fillRule:"nonzero"},i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.49 0-2.707-1.46-2.79-3.301l-.004-.2-.001-19.018C8.659 71.92.13 62.518.13 51.123.13 40.071 8.154 8.49 18.694 2.015l.054-.031a5.94 5.94 0 0 1 .214-.128l.088-.048c.213-.12.427-.228.642-.326l.135-.06.18-.075.135-.053a5.796 5.796 0 0 1 .464-.16 4.44 4.44 0 0 1 .33-.092l.124-.03a7.122 7.122 0 0 1 .31-.065l.018-.003a6.305 6.305 0 0 1 .756-.088l.165-.007.166-.002Z",fill:"#FFCD6B"}),i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.543 0-2.794-1.566-2.794-3.5V73.295C8.659 71.921.13 62.518.13 51.123.13 38.783 10.134.847 22.475.847Z",fill:"#FFCD6B"}),i.createElement("circle",{fill:"#FFB400",cx:26.4,cy:56.869,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:39.453,cy:58.319,r:1}),i.createElement("circle",{fill:"#FFB400",cx:17.698,cy:63.637,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:38.002,cy:51.068,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:18.665,cy:17.228,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:32.201,cy:13.36,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:26.83,cy:20.666,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:38.969,cy:31.731,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:25.433,cy:29.797,r:1.45}),i.createElement("path",{d:"M34.197 53.033c0 9.825-6.934 18.017-16.172 19.987a22.44 22.44 0 0 0 4.45.448c12.34 0 22.344-10.004 22.344-22.345C44.82 38.783 34.815.847 22.475.847c8.947 14.03 11.722 40.891 11.722 52.186Z",fill:"#FBBE47"})))),Cf=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-busy-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-busy-b",cx:34.857,cy:34.857,r:34.857})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 243.667H0L3.806 99.134a4.572 4.572 0 0 1 4.353-4.446l.217-.005h45.588V67.205a4.572 4.572 0 0 1 4.356-4.566l.216-.005 65.498-.001 2.554-58.688a4.571 4.571 0 0 1 4.779-4.368l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.213 3.146 69.652 74.976-17.906a4.571 4.571 0 0 1 5.628 4.23l.005.216v43.955h56.162v130.265l-56.163-.001v.002h-82.383v-.004h-66.919v1.098Zm-68.461-84.631h-9.968v8.435h9.968v-8.435Zm0-14.508h-9.968v8.436h9.968v-8.436Zm197.985-5.149h-9.967v8.432h9.967v-8.432Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.435h9.967v-8.435Zm-84.643-3.29h-30.8v8.435h30.8v-8.435Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 51.286)",fill:"url(#error-block-image-busy-a)"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l.958-.01c-.376 7.363 3.679 59.93 34.894 62.659 4.203.367 7.432.39 7.475 4.609.042 4.218-3.176 4.307-7.37 4.76-34.593 3.737-34.136 56.004-33.61 63.357l-.957.01c-5.276.053-9.51 4.373-9.455 9.649.053 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.054 9.508-4.374 9.455-9.648-.055-5.276-4.374-9.51-9.65-9.455l-.958.01c.377-7.363-.729-59.672-34.894-62.66-4.202-.367-7.432-.39-7.474-4.608-.043-4.219 3.175-4.308 7.369-4.76 31.276-3.377 34.136-56.004 33.61-63.357l.958-.01c5.276-.053 9.508-4.373 9.455-9.649-.055-5.276-4.374-9.509-9.65-9.454Z",fill:"#377EFF"}),i.createElement("path",{d:"M233.524 314.422c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.894-5.644c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.149 17.865c.108.684.773 1.147 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm-2.144-8.182c.109.684.773 1.148 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-1.586-4.694c.108.684.772 1.148 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.013-5.88c.109.685.773 1.148 1.484 1.036.71-.113 1.2-.759 1.09-1.443-.107-.684-.772-1.148-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm.236 15.575c.108.685.772 1.148 1.483 1.035.71-.112 1.2-.758 1.09-1.442-.107-.685-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.442Zm-.4 4.494c.108.684.772 1.147 1.483 1.035.71-.113 1.2-.759 1.091-1.443-.108-.684-.773-1.148-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-3.88-8.601c.108.684.772 1.147 1.483 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-.524-7.186c.065.41.463.688.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-2.265-4.102c.109.684.773 1.148 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.147-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm-.545-6.518c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm2.098 23.629c.109.684.773 1.147 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.443Zm-.756-9.65c.043.274.309.46.593.414a.512.512 0 0 0 .437-.577.512.512 0 0 0-.594-.414.512.512 0 0 0-.436.577Zm-.808 20.96c.109.684.773 1.147 1.484 1.034.71-.112 1.2-.758 1.09-1.442-.108-.685-.772-1.148-1.483-1.036-.71.113-1.199.759-1.09 1.443Zm-4.691-31.966c.065.41.463.689.89.621.426-.068.72-.455.654-.866-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm2.098 23.628c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.967-12.416c.109.684.773 1.147 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm1.073 6.772c.108.685.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.036-.711.113-1.2.759-1.091 1.443Zm-.009-3.131c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.43-9.03c.065.41.463.688.89.62.426-.067.72-.454.655-.865-.065-.41-.464-.689-.89-.62-.427.067-.72.454-.655.865ZM214.5 333.38c.108.685.772 1.148 1.483 1.036.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.711.112-1.2.758-1.091 1.442Zm-.156-7.178c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm-1.871-4.72c.108.684.773 1.147 1.483 1.034.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.035-.71.112-1.2.758-1.091 1.442Zm-1.614-6.857c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-.894-5.644c.065.41.464.689.89.621.427-.067.72-.455.655-.866-.065-.41-.463-.688-.89-.62-.427.067-.72.455-.655.865Zm-1.43-9.03c.065.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.958 14.225c.065.41.463.689.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-.703 12.81c.065.41.464.688.89.62.427-.067.72-.455.655-.865-.065-.41-.463-.689-.89-.621-.427.067-.72.455-.655.866Zm-4.543-22.536c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm2.806 30.138c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm-5.694-17.996c.065.41.463.688.89.62.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.866Zm-2.935-13.343c.066.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.463-.689-.89-.621-.426.068-.72.455-.655.866Z",fill:"#003CFF",fillRule:"nonzero"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l101.963-1.04c5.276-.052 9.508-4.372 9.455-9.648-.055-5.276-4.374-9.509-9.65-9.454ZM252.64 331.241l-101.964 1.038c-5.275.054-9.508 4.374-9.454 9.65.054 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.053 9.507-4.373 9.454-9.649-.054-5.275-4.374-9.508-9.649-9.454Z",fill:"#7EACFF"}),i.createElement("path",{stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"m196.824 197.298 52.216-.506M193.329 330.5h52.215"}),i.createElement("path",{d:"M167.367 228.041c-4.091-10.787-6.086-20.934-5.985-30.44",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("circle",{cx:14.857,cy:14.857,r:14.857,transform:"translate(106.857 248.571)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(236.571 284.571)"},i.createElement("mask",{id:"error-block-image-busy-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-busy-b"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-busy-b"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:25.714,cy:28,r:34.857}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:22.286,cy:18.857,r:3.429})))),Sf=vf({default:bf,disconnected:yf,empty:xf,busy:Cf});let Jt=null,Qt=null;Dt&&(Jt=document.createElement("div"),Jt.className="adm-px-tester",Jt.style.setProperty("--size","10"),document.body.appendChild(Jt),Qt=document.createElement("div"),Qt.className="adm-px-tester",document.body.appendChild(Qt));function wf(t){return Jt===null||Qt===null||Jt.getBoundingClientRect().height===10?t:(Qt.style.setProperty("--size",t.toString()),Qt.getBoundingClientRect().height)}const Xa="adm-grid",et=we(t=>{const e={"--columns":t.columns.toString()},{gap:n}=t;return n!==void 0&&(Array.isArray(n)?(e["--gap-horizontal"]=It(n[0]),e["--gap-vertical"]=It(n[1])):e["--gap"]=It(n)),G(t,i.createElement("div",{className:Xa,style:e},t.children))},{Item:t=>{const e=oe({span:1},t),n={"--item-span":e.span};return G(e,i.createElement("div",{className:`${Xa}-item`,style:n,onClick:e.onClick},e.children))}}),kf=u1([Ri,Xd]),No=()=>[1,0,0,1,0,0],Ja=t=>t[4],Qa=t=>t[5],$n=t=>t[0],_n=(t,e,n)=>Ra([1,0,0,1,e,n],t),Ef=(t,e,n=e)=>Ra([e,0,0,n,0,0],t),If=(t,[e,n])=>[t[0]*e+t[2]*n+t[4],t[1]*e+t[3]*n+t[5]],Ra=(t,e)=>[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]],Xr="adm-image-viewer",el=t=>{const{dragLockRef:e,maxZoom:n}=t,o=i.useRef([]),r=i.useRef(null),s=i.useRef(null),[{matrix:a},l]=Ve(()=>({matrix:No(),config:{tension:200}})),c=te.useSize(r),u=te.useSize(s),d=i.useRef(!1),m=h=>{if(!c||!u)return{x:{position:0,minX:0,maxX:0},y:{position:0,minY:0,maxY:0}};const y=-c.width/2,g=-c.height/2,x=-u.width/2,S=-u.height/2,C=$n(h),w=C*u.width,k=C*u.height,E=y-(w-c.width),I=y,T=g-(k-c.height),Z=g,[M,N]=If(h,[x,S]);return{x:{position:M,minX:E,maxX:I},y:{position:N,minY:T,maxY:Z}}},v=(h,y,g,x=0)=>[h<=y-x,h>=g+x],b=(h,y,g=!1)=>{if(!c||!u)return h;const x=$n(h),S=x*u.width,C=x*u.height,{x:{position:w,minX:k,maxX:E},y:{position:I,minY:T,maxY:Z}}=m(h);if(y==="translate"){let M=w,N=I;return S>c.width?M=g?xe(w,k,E):ko(w,k,E,x*50):M=-S/2,C>c.height?N=g?xe(I,T,Z):ko(I,T,Z,x*50):N=-C/2,_n(h,M-w,N-I)}if(y==="scale"&&g){const[M,N]=[S>c.width?xe(w,k,E):-S/2,C>c.height?xe(I,T,Z):-C/2];return _n(h,M-w,N-I)}return h};return kf({onDrag:h=>{var y;if(h.first){const{x:{position:x,minX:S,maxX:C}}=m(a.get());o.current=v(x,S,C);return}if(h.pinching)return h.cancel();if(h.tap&&h.elapsedTime>0&&h.elapsedTime<1e3){(y=t.onTap)===null||y===void 0||y.call(t);return}const g=$n(a.get());if(e&&(e.current=g!==1),!d.current&&g<=1)l.start({matrix:No()});else{const x=a.get(),S=[h.offset[0]-Ja(x),h.offset[1]-Qa(x)],C=_n(x,...h.last?[S[0]+h.velocity[0]*h.direction[0]*200,S[1]+h.velocity[1]*h.direction[1]*200]:S);l.start({matrix:b(C,"translate",h.last),immediate:!h.last});const{x:{position:w,minX:k,maxX:E}}=m(C);h.last&&o.current.some(I=>I)&&v(w,k,E).some(I=>I)&&(e&&(e.current=!1),l.start({matrix:No()}))}},onPinch:h=>{var y;d.current=!h.last;const[g]=h.offset;if(g<0)return;let x;n==="auto"?x=c&&u?Math.max(c.height/u.height,c.width/u.width):1:x=n;const S=h.last?xe(g,1,x):g;if((y=t.onZoomChange)===null||y===void 0||y.call(t,S),h.last&&S<=1)l.start({matrix:No()}),e&&(e.current=!1);else{if(!c)return;const C=a.get(),w=$n(C),k=h.origin[0]-c.width/2,E=h.origin[1]-c.height/2;let I=_n(C,-k,-E);I=Ef(I,S/w),I=_n(I,k,E),l.start({matrix:b(I,"scale",h.last),immediate:!h.last}),e&&(e.current=!0)}}},{target:r,drag:{from:()=>[Ja(a.get()),Qa(a.get())],pointer:{touch:!0}},pinch:{from:()=>[$n(a.get()),0],pointer:{touch:!0}}}),i.createElement("div",{className:`${Xr}-slide`},i.createElement("div",{className:`${Xr}-control`,ref:r},i.createElement(ke.div,{className:`${Xr}-image-wrapper`,style:{matrix:a}},i.createElement("img",{ref:s,src:t.image,draggable:!1,alt:t.image}))))},Jr="adm-image-viewer",$f=i.forwardRef((t,e)=>{const n=window.innerWidth+wf(16),[{x:o},r]=Ve(()=>({x:t.defaultIndex*n,config:{tension:250,clamp:!0}})),s=t.images.length;function a(u,d=!1){var m;const v=xe(u,0,s-1);(m=t.onIndexChange)===null||m===void 0||m.call(t,v),r.start({x:v*n,immediate:d})}i.useImperativeHandle(e,()=>({swipeTo:a}));const l=i.useRef(!1),c=so(u=>{if(l.current)return;const[d]=u.offset;if(u.last){const m=Math.floor(d/n),v=m+1,b=Math.min(u.velocity[0]*2e3,n)*u.direction[0];a(xe(Math.round((d+b)/n),m,v))}else r.start({x:d,immediate:!0})},{transform:([u,d])=>[-u,d],from:()=>[o.get(),0],bounds:()=>({left:0,right:(s-1)*n}),rubberband:!0,axis:"x",pointer:{touch:!0}});return i.createElement("div",Object.assign({className:`${Jr}-slides`},c()),i.createElement(ke.div,{className:`${Jr}-indicator`},o.to(u=>`${xe(Math.round(u/n),0,s-1)+1} / ${s}`)),i.createElement(ke.div,{className:`${Jr}-slides-inner`,style:{x:o.to(u=>-u)}},t.images.map((u,d)=>i.createElement(el,{key:d,image:u,onTap:t.onTap,maxZoom:t.maxZoom,onZoomChange:m=>{if(m!==1){const v=Math.round(o.get()/n);r.start({x:v*n})}},dragLockRef:l}))))}),To="adm-image-viewer",tl={maxZoom:3,getContainer:null,visible:!1},nl=t=>{var e,n,o;const r=oe(tl,t),s=i.createElement(eo,{visible:r.visible,disableBodyScroll:!1,opacity:"thick",afterClose:r.afterClose,destroyOnClose:!0,className:(e=r==null?void 0:r.classNames)===null||e===void 0?void 0:e.mask},i.createElement("div",{className:H(`${To}-content`,(n=r==null?void 0:r.classNames)===null||n===void 0?void 0:n.body)},r.image&&i.createElement(el,{image:r.image,onTap:r.onClose,maxZoom:r.maxZoom})),r.image&&i.createElement("div",{className:`${To}-footer`},(o=r.renderFooter)===null||o===void 0?void 0:o.call(r,r.image),i.createElement(Cn,{position:"bottom"})));return Qn(r.getContainer,s)},_f=Object.assign(Object.assign({},tl),{defaultIndex:0}),ol=i.forwardRef((t,e)=>{var n,o,r;const s=oe(_f,t),[a,l]=i.useState(s.defaultIndex),c=i.useRef(null);i.useImperativeHandle(e,()=>({swipeTo:(m,v)=>{var b;l(m),(b=c.current)===null||b===void 0||b.swipeTo(m,v)}}));const u=i.useCallback(m=>{var v;m!==a&&(l(m),(v=s.onIndexChange)===null||v===void 0||v.call(s,m))},[s.onIndexChange,a]),d=i.createElement(eo,{visible:s.visible,disableBodyScroll:!1,opacity:"thick",afterClose:s.afterClose,destroyOnClose:!0,className:(n=s==null?void 0:s.classNames)===null||n===void 0?void 0:n.mask},i.createElement("div",{className:H(`${To}-content`,(o=s==null?void 0:s.classNames)===null||o===void 0?void 0:o.body)},s.images&&i.createElement($f,{ref:c,defaultIndex:a,onIndexChange:u,images:s.images,onTap:s.onClose,maxZoom:s.maxZoom})),s.images&&i.createElement("div",{className:`${To}-footer`},(r=s.renderFooter)===null||r===void 0?void 0:r.call(s,s.images[a],a),i.createElement(Cn,{position:"bottom"})));return Qn(s.getContainer,d)}),Rt=new Set;function Pf(t){Qr();const e=Sn(i.createElement(nl,Object.assign({},t,{afterClose:()=>{var n;Rt.delete(e),(n=t.afterClose)===null||n===void 0||n.call(t)}})));return Rt.add(e),e}function Ff(t){Qr();const e=Sn(i.createElement(ol,Object.assign({},t,{afterClose:()=>{var n;Rt.delete(e),(n=t.afterClose)===null||n===void 0||n.call(t)}})));return Rt.add(e),e}function Qr(){Rt.forEach(t=>{t.close()}),Rt.clear()}const Mf=we(ol,{show:Ff}),Nf=we(nl,{Multi:Mf,show:Pf,clear:Qr}),Pt="adm-image-uploader",rl=t=>{const{locale:e}=Pe(),{url:n,file:o,deletable:r,deleteIcon:s,onDelete:a,imageFit:l}=t,c=i.useMemo(()=>n||(o?URL.createObjectURL(o):""),[n,o]);i.useEffect(()=>()=>{o&&URL.revokeObjectURL(c)},[c,o]);function u(){return t.status==="pending"&&i.createElement("div",{className:`${Pt}-cell-mask`},i.createElement("span",{className:`${Pt}-cell-loading`},i.createElement(jr,{color:"white"}),i.createElement("span",{className:`${Pt}-cell-mask-message`},e.ImageUploader.uploading)))}function d(){return r&&i.createElement("span",{className:`${Pt}-cell-delete`,onClick:a},s)}return i.createElement("div",{className:H(`${Pt}-cell`,t.status==="fail"&&`${Pt}-cell-fail`)},i.createElement(aa,{className:`${Pt}-cell-image`,src:c,fit:l,onClick:t.onClick}),u(),d())},Ft="adm-space",Tf={direction:"horizontal"},Pn=t=>{const e=oe(Tf,t),{direction:n,onClick:o}=e;return G(e,i.createElement("div",{className:H(Ft,{[`${Ft}-wrap`]:e.wrap,[`${Ft}-block`]:e.block,[`${Ft}-${n}`]:!0,[`${Ft}-align-${e.align}`]:!!e.align,[`${Ft}-justify-${e.justify}`]:!!e.justify}),onClick:o},i.Children.map(e.children,r=>r!=null&&i.createElement("div",{className:`${Ft}-item`},r))))},tt="adm-image-uploader",Of={disableUpload:!1,deletable:!0,deleteIcon:i.createElement(to,{className:`${tt}-cell-delete-icon`}),showUpload:!0,multiple:!1,maxCount:0,defaultValue:[],accept:"image/*",preview:!0,showFailed:!0,imageFit:"cover"},sl=i.forwardRef((t,e)=>{const{locale:n}=Pe(),o=oe(Of,t),{columns:r}=o,[s,a]=Ie(o),[l,c]=i.useState([]),u=i.useRef(null),d=te.useSize(u),m=i.useRef(null),[v,b]=i.useState(80),h=i.useRef(null);te.useIsomorphicLayoutEffect(()=>{const z=m.current;if(r&&d&&z){const P=d.width,F=xa(window.getComputedStyle(z).getPropertyValue("height"));b((P-F*(r-1))/r)}},[d==null?void 0:d.width]);const y={"--cell-size":v+"px"};te.useIsomorphicLayoutEffect(()=>{c(z=>z.filter(P=>P.url===void 0?!0:!s.some(F=>F.url===P.url)))},[s]),te.useIsomorphicLayoutEffect(()=>{var z;(z=o.onUploadQueueChange)===null||z===void 0||z.call(o,l.map(P=>({id:P.id,status:P.status})))},[l]);const g=i.useRef(0),{maxCount:x,onPreview:S,renderItem:C}=o;function w(z,P){return xt(this,void 0,void 0,function*(){const{beforeUpload:F}=o;let _=z;return _=yield F==null?void 0:F(z,P),_})}function k(z){return o.showFailed?z:z.filter(P=>P.status!=="fail")}function E(z){var P;return xt(this,void 0,void 0,function*(){z.persist();const{files:F}=z.target;if(!F)return;let _=[].slice.call(F);if(z.target.value="",o.beforeUpload){const V=_.map(O=>w(O,_));yield Promise.all(V).then(O=>{_=O.filter(Boolean)})}if(_.length===0)return;if(x>0){const V=s.length+_.length-x;V>0&&(_=_.slice(0,_.length-V),(P=o.onCountExceed)===null||P===void 0||P.call(o,V))}const B=_.map(V=>({id:g.current++,status:"pending",file:V}));c(V=>[...k(V),...B]);const D=[];yield Promise.all(B.map((V,O)=>xt(this,void 0,void 0,function*(){try{const K=yield o.upload(V.file);D[O]=K,c(W=>W.map(Y=>Y.id===V.id?Object.assign(Object.assign({},Y),{status:"success",url:K.url}):Y))}catch(K){throw c(W=>W.map(Y=>Y.id===V.id?Object.assign(Object.assign({},Y),{status:"fail"}):Y)),K}}))).catch(V=>console.error(V)),a(V=>V.concat(D))})}const I=i.useRef(null);function T(z){I.current=Nf.Multi.show({images:s.map(P=>P.url),defaultIndex:z,onClose:()=>{I.current=null}})}te.useUnmount(()=>{var z;(z=I.current)===null||z===void 0||z.close()});const Z=k(l),M=o.showUpload&&(x===0||s.length+Z.length<x),N=()=>s.map((z,P)=>{var F,_;const B=i.createElement(rl,{key:(F=z.key)!==null&&F!==void 0?F:P,url:(_=z.thumbnailUrl)!==null&&_!==void 0?_:z.url,deletable:o.deletable,deleteIcon:o.deleteIcon,imageFit:o.imageFit,onClick:()=>{o.preview&&T(P),S&&S(P,z)},onDelete:()=>xt(void 0,void 0,void 0,function*(){var D;(yield(D=o.onDelete)===null||D===void 0?void 0:D.call(o,z))!==!1&&a(s.filter((O,K)=>K!==P))})});return C?C(B,z,s):B}),U=i.createElement(i.Fragment,null,N(),l.map(z=>!o.showFailed&&z.status==="fail"?null:i.createElement(rl,{key:z.id,file:z.file,deletable:z.status!=="pending",deleteIcon:o.deleteIcon,status:z.status,imageFit:o.imageFit,onDelete:()=>{c(l.filter(P=>P.id!==z.id))}})),i.createElement("div",{className:`${tt}-upload-button-wrap`,style:M?void 0:{display:"none"}},o.children||i.createElement("span",{className:`${tt}-cell ${tt}-upload-button`,role:"button","aria-label":n.ImageUploader.upload},i.createElement("span",{className:`${tt}-upload-button-icon`},i.createElement(od,null))),!o.disableUpload&&i.createElement("input",{"aria-label":n.ImageUploader.upload,ref:h,capture:o.capture,accept:o.accept,multiple:o.multiple,type:"file",className:`${tt}-input`,onChange:E})));return i.useImperativeHandle(e,()=>({get nativeElement(){return h.current}})),G(o,i.createElement("div",{className:tt,ref:u},r?i.createElement(et,{className:`${tt}-grid`,columns:r,style:y},i.createElement("div",{className:`${tt}-gap-measure`,ref:m}),U.props.children):i.createElement(Pn,{className:`${tt}-space`,wrap:!0,block:!0},U.props.children)))});function il({onEnterPress:t,onKeyDown:e,nativeInputRef:n,enterKeyHint:o}){const r=s=>{t&&(s.code==="Enter"||s.keyCode===13)&&t(s),e==null||e(s)};return te.useIsomorphicLayoutEffect(()=>{const s=n.current;if(!(!o||!s))return s.setAttribute("enterkeyhint",o),()=>{s.removeAttribute("enterkeyhint")}},[o]),r}const Oo="adm-input",Df={defaultValue:"",clearIcon:i.createElement(rd,null),onlyShowClearWhenFocus:!0},Rr=i.forwardRef((t,e)=>{const{locale:n,input:o={}}=Pe(),r=oe(Df,o,t),[s,a]=Ie(r),[l,c]=i.useState(!1),u=i.useRef(!1),d=i.useRef(null),m=il({onEnterPress:r.onEnterPress,onKeyDown:r.onKeyDown,nativeInputRef:d,enterKeyHint:r.enterKeyHint});i.useImperativeHandle(e,()=>({clear:()=>{a("")},focus:()=>{var h;(h=d.current)===null||h===void 0||h.focus()},blur:()=>{var h;(h=d.current)===null||h===void 0||h.blur()},get nativeElement(){return d.current}}));function v(){let h=s;if(r.type==="number"){const y=h&&xe(parseFloat(h),r.min,r.max).toString();Number(h)!==Number(y)&&(h=y)}h!==s&&a(h)}const b=!r.clearable||!s||r.readOnly?!1:r.onlyShowClearWhenFocus?l:!0;return G(r,i.createElement("div",{className:H(`${Oo}`,r.disabled&&`${Oo}-disabled`)},i.createElement("input",{ref:d,className:`${Oo}-element`,value:s,onChange:h=>{a(h.target.value)},onFocus:h=>{var y;c(!0),(y=r.onFocus)===null||y===void 0||y.call(r,h)},onBlur:h=>{var y;c(!1),v(),(y=r.onBlur)===null||y===void 0||y.call(r,h)},onPaste:r.onPaste,id:r.id,placeholder:r.placeholder,disabled:r.disabled,readOnly:r.readOnly,maxLength:r.maxLength,minLength:r.minLength,max:r.max,min:r.min,autoComplete:r.autoComplete,enterKeyHint:r.enterKeyHint,autoFocus:r.autoFocus,pattern:r.pattern,inputMode:r.inputMode,type:r.type,name:r.name,autoCapitalize:r.autoCapitalize,autoCorrect:r.autoCorrect,onKeyDown:m,onKeyUp:r.onKeyUp,onCompositionStart:h=>{var y;u.current=!0,(y=r.onCompositionStart)===null||y===void 0||y.call(r,h)},onCompositionEnd:h=>{var y;u.current=!1,(y=r.onCompositionEnd)===null||y===void 0||y.call(r,h)},onClick:r.onClick,step:r.step,role:r.role,"aria-valuenow":r["aria-valuenow"],"aria-valuemax":r["aria-valuemax"],"aria-valuemin":r["aria-valuemin"],"aria-label":r["aria-label"]}),b&&i.createElement("div",{className:`${Oo}-clear`,onMouseDown:h=>{h.preventDefault()},onClick:()=>{var h,y;a(""),(h=r.onClear)===null||h===void 0||h.call(r),B1()&&u.current&&(u.current=!1,(y=d.current)===null||y===void 0||y.blur())},"aria-label":n.Input.clear},r.clearIcon)))}),nt="adm-jumbo-tabs",al=we(t=>{var e;const n=i.useRef(null),o=i.useRef(null),r={};let s=null;const a=[];Br(t.children,(m,v)=>{if(!i.isValidElement(m))return;const b=m.key;if(typeof b!="string")return;v===0&&(s=b);const h=a.push(m);r[b]=h-1});const[l,c]=Ie({value:t.activeKey,defaultValue:(e=t.defaultActiveKey)!==null&&e!==void 0?e:s,onChange:m=>{var v;m!==null&&((v=t.onChange)===null||v===void 0||v.call(t,m))}}),{scrollLeft:u,animate:d}=X1(n,r[l]);return va(()=>{d(!0)},o),G(t,i.createElement("div",{className:nt,ref:o},i.createElement("div",{className:`${nt}-header`},i.createElement(J1,{scrollTrackRef:n}),i.createElement(ke.div,{className:`${nt}-tab-list`,ref:n,scrollLeft:u},a.map(m=>G(m.props,i.createElement("div",{key:m.key,className:`${nt}-tab-wrapper`},i.createElement("div",{onClick:()=>{const{key:v}=m;m.props.disabled||v!=null&&c(v.toString())},className:H(`${nt}-tab`,{[`${nt}-tab-active`]:m.key===l,[`${nt}-tab-disabled`]:m.props.disabled})},i.createElement("div",{className:`${nt}-tab-title`},m.props.title),i.createElement("div",{className:`${nt}-tab-description`},m.props.description))))))),a.map(m=>{if(m.props.children===void 0)return null;const v=m.key===l;return i.createElement(Rn,{key:m.key,active:v,forceRender:m.props.forceRender,destroyOnClose:m.props.destroyOnClose},i.createElement("div",{className:`${nt}-content`,style:{display:v?"block":"none"}},m.props.children))})))},{Tab:()=>null}),en="adm-nav-bar",ll=i.createElement(id,null),Af=t=>{const{navBar:e={}}=Pe(),n=oe(e,t),{back:o,backIcon:r,backArrow:s}=n,a=e.backIcon||ll,l=Wo(ll,e.backIcon,s===!0?a:s,r===!0?a:r);return G(n,i.createElement("div",{className:H(en)},i.createElement("div",{className:`${en}-left`,role:"button"},o!==null&&i.createElement("div",{className:`${en}-back`,onClick:n.onBack},l&&i.createElement("span",{className:`${en}-back-arrow`},l),i.createElement("span",{"aria-hidden":"true"},o)),n.left),i.createElement("div",{className:`${en}-title`},n.children),i.createElement("div",{className:`${en}-right`},n.right)))},Fn="adm-page-indicator",Lf={color:"primary",direction:"horizontal"},Bf=i.memo(t=>{const e=oe(Lf,t),n=[];for(let o=0;o<e.total;o++)n.push(i.createElement("div",{key:o,className:H(`${Fn}-dot`,{[`${Fn}-dot-active`]:e.current===o})}));return G(e,i.createElement("div",{className:H(Fn,`${Fn}-${e.direction}`,`${Fn}-color-${e.color}`)},n))}),cl=i.createContext(null),zf={disabled:!1,defaultValue:null},Vf=t=>{const e=oe(zf,t),[n,o]=Ie({value:e.value,defaultValue:e.defaultValue,onChange:r=>{var s;r!==null&&((s=e.onChange)===null||s===void 0||s.call(e,r))}});return i.createElement(cl.Provider,{value:{value:n===null?[]:[n],check:r=>{o(r)},uncheck:()=>{},disabled:e.disabled}},e.children)},Mt="adm-radio",Zf={defaultChecked:!1},es=we(t=>{const e=oe(Zf,t),n=i.useContext(cl);let[o,r]=Ie({value:e.checked,defaultValue:e.defaultChecked,onChange:e.onChange}),s=e.disabled;const{value:a}=e;n&&a!==void 0&&(o=n.value.includes(a),r=c=>{var u;c?n.check(a):n.uncheck(a),(u=e.onChange)===null||u===void 0||u.call(e,c)},s=s||n.disabled);const l=()=>e.icon?i.createElement("div",{className:`${Mt}-custom-icon`},e.icon(o)):i.createElement("div",{className:`${Mt}-icon`},o&&i.createElement(Da,null));return G(e,i.createElement("label",{onClick:e.onClick,className:H(Mt,{[`${Mt}-checked`]:o,[`${Mt}-disabled`]:s,[`${Mt}-block`]:e.block})},i.createElement(Aa,{type:"radio",checked:o,onChange:r,disabled:s,id:e.id}),l(),e.children&&i.createElement("div",{className:`${Mt}-content`},e.children)))},{Group:Vf}),yt="adm-search-bar",jf={clearable:!0,onlyShowClearWhenFocus:!1,showCancelButton:!1,defaultValue:"",clearOnCancel:!0},ul=i.forwardRef((t,e)=>{const{locale:n,searchBar:o={}}=Pe(),r=oe(jf,o,{cancelText:n.common.cancel},t),s=Wo(i.createElement(ld,null),o.searchIcon,t.icon,t.searchIcon),[a,l]=Ie(r),[c,u]=i.useState(!1),d=i.useRef(null),m=i.useRef(!1);i.useImperativeHandle(e,()=>({clear:()=>{var b;return(b=d.current)===null||b===void 0?void 0:b.clear()},focus:()=>{var b;return(b=d.current)===null||b===void 0?void 0:b.focus()},blur:()=>{var b;return(b=d.current)===null||b===void 0?void 0:b.blur()},get nativeElement(){var b,h;return(h=(b=d.current)===null||b===void 0?void 0:b.nativeElement)!==null&&h!==void 0?h:null}}));const v=()=>{let b;return typeof r.showCancelButton=="function"?b=r.showCancelButton(c,a):b=r.showCancelButton&&c,b&&i.createElement("div",{className:`${yt}-suffix`},i.createElement(st,{fill:"none",className:`${yt}-cancel-button`,onClick:()=>{var h,y,g;r.clearOnCancel&&((h=d.current)===null||h===void 0||h.clear()),(y=d.current)===null||y===void 0||y.blur(),(g=r.onCancel)===null||g===void 0||g.call(r)},onMouseDown:h=>{h.preventDefault()}},r.cancelText))};return G(r,i.createElement("div",{className:H(yt,{[`${yt}-active`]:c})},i.createElement("div",{className:`${yt}-input-box`},s&&i.createElement("div",{className:`${yt}-input-box-icon`},s),i.createElement(Rr,{ref:d,className:H(`${yt}-input`,{[`${yt}-input-without-icon`]:!s}),value:a,onChange:l,maxLength:r.maxLength,autoFocus:r.autoFocus,placeholder:r.placeholder,clearable:r.clearable,onlyShowClearWhenFocus:r.onlyShowClearWhenFocus,onFocus:b=>{var h;u(!0),(h=r.onFocus)===null||h===void 0||h.call(r,b)},onBlur:b=>{var h;u(!1),(h=r.onBlur)===null||h===void 0||h.call(r,b)},onClear:r.onClear,type:"search",enterKeyHint:"search",onEnterPress:()=>{var b,h;m.current||((b=d.current)===null||b===void 0||b.blur(),(h=r.onSearch)===null||h===void 0||h.call(r,a))},"aria-label":n.SearchBar.name,onCompositionStart:b=>{var h;m.current=!0,(h=r.onCompositionStart)===null||h===void 0||h.call(r,b)},onCompositionEnd:b=>{var h;m.current=!1,(h=r.onCompositionEnd)===null||h===void 0||h.call(r,b)}})),v()))}),dl=t=>G(t,i.createElement("div",{className:"adm-swiper-item",onClick:t.onClick},t.children));function Kf(t){const[e,n]=i.useState(t),o=i.useRef(e);return i.useEffect(()=>{o.current=e},[e]),[e,n,o]}function Wf(t,e){const n=Object.keys(t),o=Object.keys(e),r=new Set([...n,...o]),s={};return r.forEach(a=>{const l=t[a],c=e[a];typeof l=="function"&&typeof c=="function"?s[a]=function(...u){l(...u),c(...u)}:s[a]=l||c}),s}const ot="adm-swiper",Hf={mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp"},Uf={defaultIndex:0,allowTouchMove:!0,autoplay:!1,autoplayInterval:3e3,loop:!1,direction:"horizontal",slideSize:100,trackOffset:0,stuckAtBoundary:!0,rubberband:!0,stopPropagation:[]};let Do;const Yf=i.forwardRef(Mr((t,e)=>{const n=oe(Uf,t),{direction:o,total:r,children:s,indicator:a}=n,[l]=i.useState({}),c=i.useRef(null),u=o==="vertical",d=n.slideSize/100,m=n.trackOffset/100,{validChildren:v,count:b,renderChildren:h}=i.useMemo(()=>{let g=0,x,S;return typeof s=="function"?x=s:S=i.Children.map(s,C=>!i.isValidElement(C)||C.type!==dl?null:(g++,C)),{renderChildren:x,validChildren:S,count:g}},[s]),y=r!=null?r:b;return y===0||!v&&!h?null:()=>{let g=n.loop;d*(y-1)<1&&(g=!1);const x=i.useRef(null);function S(){const j=x.current;return j?(u?j.offsetHeight:j.offsetWidth)*n.slideSize/100:0}const[C,w,k]=te.useGetState(n.defaultIndex),[E,I,T]=Kf(!1);function Z(j){let q=0,re=y-1;return n.stuckAtBoundary&&(q+=m/d,re-=(1-d-m)/d),xe(j,q,re)}const[{position:M},N]=Ve(()=>({position:Z(C)*100,config:{tension:200,friction:30},onRest:()=>{if(T.current||!g)return;const j=M.get(),q=100*y,re=ts(j,q);re!==j&&N.start({position:re,immediate:!0})}}),[y]),U=i.useRef(null);function z(){var j;(j=U.current)===null||j===void 0||j.call(U),T.current=!1}const P=so(j=>{if(U.current=j.cancel,!j.intentional||(j.first&&!Do&&(Do=l),Do!==l))return;Do=j.last?void 0:l;const q=S();if(!q)return;const re=u?1:0,ge=j.offset[re],Ce=j.direction[re],jo=j.velocity[re];if(I(!0),!j.last)N.start({position:ge*100/q,immediate:!0});else{const Tn=Math.floor(ge/q),mh=Tn+1,ph=Math.round((ge+jo*2e3*Ce)/q);F(xe(ph,Tn,mh)),window.setTimeout(()=>{I(!1)})}},{transform:([j,q])=>[-j,-q],from:()=>{const j=S();return[M.get()/100*j,M.get()/100*j]},triggerAllEvents:!0,bounds:()=>{if(g)return{};const j=S(),q=Z(0)*j,re=Z(y-1)*j;return u?{top:q,bottom:re}:{left:q,right:re}},rubberband:n.rubberband,axis:u?"y":"x",preventScroll:!u,pointer:{touch:!0}});function F(j,q=!1){var re;const ge=Math.round(j),Ce=g?ts(ge,y):xe(ge,0,y-1);Ce!==k()&&((re=n.onIndexChange)===null||re===void 0||re.call(n,Ce)),w(Ce),N.start({position:(g?ge:Z(ge))*100,immediate:q})}function _(){F(Math.round(M.get()/100)+1)}function B(){F(Math.round(M.get()/100)-1)}i.useImperativeHandle(e,()=>({swipeTo:F,swipeNext:_,swipePrev:B})),te.useIsomorphicLayoutEffect(()=>{const j=y-1;C>j&&F(j,!0)});const{autoplay:D,autoplayInterval:V}=n,O=()=>{c.current=window.setTimeout(()=>{D==="reverse"?B():_(),O()},V)};i.useEffect(()=>{if(!(!D||E))return O(),()=>{c.current&&window.clearTimeout(c.current)}},[D,V,E,y]);function K(j,q){let re={};return g&&(re={[u?"y":"x"]:M.to(ge=>{let Ce=-ge+j*100;const jo=y*100,Tn=jo/2;return Ce=ts(Ce+Tn,jo)-Tn,`${Ce}%`}),[u?"top":"left"]:`-${j*100}%`}),i.createElement(ke.div,{className:H(`${ot}-slide`,{[`${ot}-slide-active`]:C===j}),style:re,key:j},q)}function W(){if(h&&r){const q=Math.max(C-2,0),re=Math.min(C+2,r-1),ge=[];for(let Ce=q;Ce<=re;Ce+=1)ge.push(K(Ce,h(Ce)));return i.createElement(i.Fragment,null,i.createElement("div",{className:`${ot}-slide-placeholder`,style:{width:`${q*100}%`}}),ge)}return i.Children.map(v,(j,q)=>K(q,j))}function Y(){return g?i.createElement("div",{className:`${ot}-track-inner`},W()):i.createElement(ke.div,{className:`${ot}-track-inner`,style:{[u?"y":"x"]:M.to(j=>`${-j}%`)}},W())}const ne={"--slide-size":`${n.slideSize}%`,"--track-offset":`${n.trackOffset}%`},ee=Object.assign({},n.allowTouchMove?P():{}),Ne={};for(const j of n.stopPropagation){const q=Hf[j];Ne[q]=function(re){re.stopPropagation()}}const X=Wf(ee,Ne);let ue=null;return typeof a=="function"?ue=a(y,C):a!==!1&&(ue=i.createElement("div",{className:`${ot}-indicator`},i.createElement(Bf,Object.assign({},n.indicatorProps,{total:y,current:C,direction:o})))),G(n,i.createElement("div",{className:H(ot,`${ot}-${o}`),style:ne},i.createElement("div",Object.assign({ref:x,className:H(`${ot}-track`,{[`${ot}-track-allow-touch-move`]:n.allowTouchMove}),onClickCapture:j=>{T.current&&j.stopPropagation(),z()}},X),Y()),ue))}}));function ts(t,e){const n=t%e;return n<0?n+e:n}const Ao=we(Yf,{Item:dl}),Gf=()=>null,at="adm-tab-bar",qf={safeArea:!1},ns=we(t=>{var e;const n=oe(qf,t);let o=null;const r=[];Br(n.children,(l,c)=>{if(!i.isValidElement(l))return;const u=l.key;typeof u=="string"&&(c===0&&(o=u),r.push(l))});const[s,a]=Ie({value:n.activeKey,defaultValue:(e=n.defaultActiveKey)!==null&&e!==void 0?e:o,onChange:l=>{var c;l!==null&&((c=n.onChange)===null||c===void 0||c.call(n,l))}});return G(n,i.createElement("div",{className:at},i.createElement("div",{className:`${at}-wrap`},r.map(l=>{const c=l.key===s;function u(){const d=l.props.icon&&i.createElement("div",{className:`${at}-item-icon`},typeof l.props.icon=="function"?l.props.icon(c):l.props.icon),m=l.props.title&&i.createElement("div",{className:H(`${at}-item-title`,!!d&&`${at}-item-title-with-icon`)},typeof l.props.title=="function"?l.props.title(c):l.props.title);return d?i.createElement(i.Fragment,null,i.createElement(ca,{content:l.props.badge,className:`${at}-icon-badge`},d),m):m?i.createElement(ca,{content:l.props.badge,className:`${at}-title-badge`},m):null}return G(l.props,i.createElement("div",{key:l.key,onClick:()=>{var d,m;const{key:v}=l;v!=null&&(a(v.toString()),(m=(d=l.props).onClick)===null||m===void 0||m.call(d))},className:H(`${at}-item`,{[`${at}-item-active`]:c})},u()))})),n.safeArea&&i.createElement(Cn,{position:"bottom"})))},{Item:Gf}),fl="adm-tag",Xf={default:"var(--adm-color-text-secondary, #666666)",primary:"var(--adm-color-primary, #1677ff)",success:"var(--adm-color-success, #00b578)",warning:"var(--adm-color-warning, #ff8f1f)",danger:"var(--adm-color-danger, #ff3141)"},Jf={color:"default",fill:"solid",round:!1},os=t=>{var e;const n=oe(Jf,t),o=(e=Xf[n.color])!==null&&e!==void 0?e:n.color,r={"--border-color":o,"--text-color":n.fill==="outline"?o:"#ffffff","--background-color":n.fill==="outline"?"transparent":o};return G(n,i.createElement("span",{style:r,onClick:n.onClick,className:H(fl,{[`${fl}-round`]:n.round})},n.children))},Mn="adm-text-area",ml={rows:2,showCount:!1,autoSize:!1,defaultValue:""},pl=i.forwardRef((t,e)=>{const n=oe(ml,t),{autoSize:o,showCount:r,maxLength:s}=n,[a,l]=Ie(Object.assign(Object.assign({},n),{value:n.value===null?"":n.value}));n.value;const c=i.useRef(null),u=i.useRef("auto"),d=i.useRef(null),m=il({onEnterPress:n.onEnterPress,onKeyDown:n.onKeyDown,nativeInputRef:c,enterKeyHint:n.enterKeyHint});i.useImperativeHandle(e,()=>({clear:()=>{l("")},focus:()=>{var g;(g=c.current)===null||g===void 0||g.focus()},blur:()=>{var g;(g=c.current)===null||g===void 0||g.blur()},get nativeElement(){return c.current}})),te.useIsomorphicLayoutEffect(()=>{if(!o)return;const g=c.current,x=d.current;if(!g||(g.style.height=u.current,!x))return;let S=x.scrollHeight;if(typeof o=="object"){const C=window.getComputedStyle(g),w=parseFloat(C.lineHeight);o.minRows&&(S=Math.max(S,o.minRows*w)),o.maxRows&&(S=Math.min(S,o.maxRows*w))}u.current=`${S}px`,g.style.height=`${S}px`},[a,o]);const v=i.useRef(!1);let b;const h=Gr(a).length;typeof r=="function"?b=r(h,s):r&&(b=i.createElement("div",{className:`${Mn}-count`},s===void 0?h:h+"/"+s));let y=n.rows;return typeof o=="object"&&(o.maxRows&&y>o.maxRows&&(y=o.maxRows),o.minRows&&y<o.minRows&&(y=o.minRows)),G(n,i.createElement("div",{className:Mn},i.createElement("textarea",{ref:c,className:`${Mn}-element`,rows:y,value:a,placeholder:n.placeholder,onChange:g=>{let x=g.target.value;s&&!v.current&&(x=Gr(x).slice(0,s).join("")),l(x)},id:n.id,onCompositionStart:g=>{var x;v.current=!0,(x=n.onCompositionStart)===null||x===void 0||x.call(n,g)},onCompositionEnd:g=>{var x;if(v.current=!1,s){const S=g.target.value;l(Gr(S).slice(0,s).join(""))}(x=n.onCompositionEnd)===null||x===void 0||x.call(n,g)},autoComplete:n.autoComplete,autoFocus:n.autoFocus,disabled:n.disabled,readOnly:n.readOnly,name:n.name,onFocus:n.onFocus,onBlur:n.onBlur,onClick:n.onClick,onKeyDown:m}),b,o&&i.createElement("textarea",{ref:d,className:`${Mn}-element ${Mn}-element-hidden`,value:a,rows:y,"aria-hidden":!0,readOnly:!0})))});pl.defaultProps=ml;const lt="adm-toast",Qf={maskClickable:!0,stopPropagation:["click"]},Rf=t=>{const e=oe(Qf,t),{maskClickable:n,content:o,icon:r,position:s}=e,a=i.useMemo(()=>{if(r==null)return null;switch(r){case"success":return i.createElement(Mi,{className:`${lt}-icon-success`});case"fail":return i.createElement(to,{className:`${lt}-icon-fail`});case"loading":return i.createElement(jr,{color:"white",className:`${lt}-loading`});default:return r}},[r]),l=i.useMemo(()=>{switch(s){case"top":return"20%";case"bottom":return"80%";default:return"50%"}},[s]);return i.createElement(eo,{visible:e.visible,destroyOnClose:!0,opacity:0,disableBodyScroll:!n,getContainer:e.getContainer,afterClose:e.afterClose,style:Object.assign({pointerEvents:n?"none":"auto"},e.maskStyle),className:H(`${lt}-mask`,e.maskClassName),stopPropagation:e.stopPropagation},i.createElement("div",{className:H(`${lt}-wrap`)},i.createElement("div",{style:{top:l},className:H(`${lt}-main`,r?`${lt}-main-icon`:`${lt}-main-text`)},a&&i.createElement("div",{className:`${lt}-icon`},a),i.createElement(k1,null,o))))};let Ae=null,rs=null;const Lo={duration:2e3,position:"center",maskClickable:!0},em=t=>i.createElement(Rf,Object.assign({},t));function tm(t){var e;const n=oe(Lo,typeof t=="string"?{content:t}:t),o=i.createElement(em,Object.assign({},n,{onClose:()=>{Ae=null}}));return Ae?!((e=Ae.isRendered)===null||e===void 0)&&e.call(Ae)?Ae.replace(o):(Ae.close(),Ae=Sn(o)):Ae=Sn(o),rs&&window.clearTimeout(rs),n.duration!==0&&(rs=window.setTimeout(()=>{hl()},n.duration)),Ae}function hl(){Ae==null||Ae.close(),Ae=null}function nm(t){t.duration!==void 0&&(Lo.duration=t.duration),t.position!==void 0&&(Lo.position=t.position),t.maskClickable!==void 0&&(Lo.maskClickable=t.maskClickable)}const ss={show:tm,clear:hl,config:nm},gl={type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock","x-component-props":{showDivider:!1}}}},om=t=>{const{t:e}=de(),n=$.useFieldSchema(),{dn:o}=p.useDesignable(),r=$.useField(),s={dn:o,field:r,fieldSchema:n};return f.jsx(p.SchemaSettingsDropdown,ae(L({title:f.jsx(le.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)"},icon:f.jsx(Te.MenuOutlined,{}),type:"dashed",children:e("Menu configuration")})},s),{children:f.jsx(p.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:e("Delete menu block")},breakRemoveOn:{"x-component":"Grid"}},"remove")}))},Nn=()=>{const{dn:t}=p.useDesignable(),e=$.useFieldSchema(),n=$.useField();return{onUpdateComponentProps:te.useMemoizedFn(r=>fe(this,null,function*(){Le.set(e,"x-component-props",r),n.componentProps=L(L({},n.componentProps),r),yield t.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"],"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}}),yield t.refresh()}))}},vl={properties:{name:{type:"string",title:dt("Menu name"),required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{"x-decorator":"FormItem","x-component":"IconPicker",title:dt("Icon"),"x-component-props":{}}}},rm=t=>{const{icon:e,name:n}=t,o=p.useDesigner(),r=ie.useNavigate(),s=ie.useLocation(),a=$.useFieldSchema(),l=p.useCompile(),c=ie.useParams(),u=()=>{const d=s.pathname.endsWith("/")?s.pathname.slice(0,-1):s.pathname;r(c.name?`/mobile/${a["x-uid"]}`:`${d}/${a["x-uid"]}`)};return f.jsxs(p.SortableItem,{className:p.cx("tb-mobile-menu-item",p.css`
141
+ */var xa;function X1(){if(xa)return Oo;xa=1;var t=i;function e(f,v){return f===v&&(f!==0||1/f===1/v)||f!==f&&v!==v}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,o=t.useEffect,s=t.useLayoutEffect,a=t.useDebugValue;function l(f,v){var y=v(),g=r({inst:{value:y,getSnapshot:v}}),b=g[0].inst,p=g[1];return s(function(){b.value=y,b.getSnapshot=v,c(b)&&p({inst:b})},[f,y,v]),o(function(){return c(b)&&p({inst:b}),f(function(){c(b)&&p({inst:b})})},[f]),a(y),y}function c(f){var v=f.getSnapshot;f=f.value;try{var y=v();return!n(f,y)}catch(g){return!0}}function u(f,v){return v()}var d=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?u:l;return Oo.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,Oo}var Ca;function J1(){return Ca||(Ca=1,To.exports=X1()),To.exports}var Q1=J1();let R1=!1;const Sa=new Set;function wa(){return R1}function e0(t){return Sa.add(t),()=>{Sa.delete(t)}}function t0(){return Q1.useSyncExternalStore(e0,wa,wa)}const Do="adm-spin-loading",n0={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},r0={color:"default"},o0=15*3.14159265358979*2,Ao=i.memo(t=>{var e;const n=re(r0,t),r=t0(),{percent:o}=Ve({cancel:r,loop:{reverse:!0},from:{percent:80},to:{percent:30},config:{duration:1200}});return Y(n,i.createElement(ke.div,{className:Do,style:{"--color":(e=n0[n.color])!==null&&e!==void 0?e:n.color,"--percent":o}},i.createElement("svg",{className:`${Do}-svg`,viewBox:"0 0 32 32"},i.createElement(ke.circle,{className:`${Do}-fill`,fill:"transparent",strokeWidth:"2",strokeDasharray:o0,strokeDashoffset:o,strokeLinecap:"square",r:15,cx:16,cy:16}))))}),qt="adm-picker-view",s0={defaultValue:[],renderLabel:ba,mouseWheel:!1,loadingContent:i.createElement("div",{className:`${qt}-loading-content`},i.createElement(Ao,null))},Lo=i.memo(t=>{const e=re(s0,t),[n,r]=i.useState(e.value===void 0?e.defaultValue:e.value);i.useEffect(()=>{e.value!==void 0&&e.value!==n&&r(e.value)},[e.value]),i.useEffect(()=>{if(e.value===n)return;const l=window.setTimeout(()=>{e.value!==void 0&&e.value!==n&&r(e.value)},1e3);return()=>{window.clearTimeout(l)}},[e.value,n]);const o=ya(e.columns,n),s=o.columns;te.useDebounceEffect(()=>{var l;e.value!==n&&((l=e.onChange)===null||l===void 0||l.call(e,n,o))},[n],{wait:0,leading:!1,trailing:!0});const a=i.useCallback((l,c)=>{r(u=>{const d=[...u];return d[c]=l,d})},[]);return Y(e,i.createElement("div",{className:`${qt}`},e.loading?e.loadingContent:i.createElement(i.Fragment,null,s.map((l,c)=>i.createElement(ha,{key:c,index:c,column:l,value:n[c],onSelect:a,renderLabel:e.renderLabel,mouseWheel:e.mouseWheel})),i.createElement("div",{className:`${qt}-mask`},i.createElement("div",{className:`${qt}-mask-top`}),i.createElement("div",{className:`${qt}-mask-middle`}),i.createElement("div",{className:`${qt}-mask-bottom`})))))});Lo.displayName="PickerView";const ht="adm-picker",i0={defaultValue:[],closeOnMaskClick:!0,renderLabel:ba,destroyOnClose:!1,forceRender:!1},Bo=i.memo(i.forwardRef((t,e)=>{var n;const{locale:r}=Pe(),o=re(i0,{confirmText:r.common.confirm,cancelText:r.common.cancel},t),[s,a]=Ie({value:o.visible,defaultValue:!1,onChange:p=>{var x;p===!1&&((x=o.onClose)===null||x===void 0||x.call(o))}}),l={toggle:()=>{a(p=>!p)},open:()=>{a(!0)},close:()=>{a(!1)}};i.useImperativeHandle(e,()=>l);const[c,u]=Ie(Object.assign(Object.assign({},o),{onChange:p=>{var x;const S=va(o.columns,p);(x=o.onConfirm)===null||x===void 0||x.call(o,p,S)}})),d=ya(o.columns,c),[f,v]=i.useState(c);i.useEffect(()=>{f!==c&&v(c)},[s]),i.useEffect(()=>{s||v(c)},[c]);const y=te.useMemoizedFn((p,x)=>{var S;v(p),s&&((S=o.onSelect)===null||S===void 0||S.call(o,p,x))}),g=Y(o,i.createElement("div",{className:ht},i.createElement("div",{className:`${ht}-header`},i.createElement("a",{role:"button",className:`${ht}-header-button`,onClick:()=>{var p;(p=o.onCancel)===null||p===void 0||p.call(o),a(!1)}},o.cancelText),i.createElement("div",{className:`${ht}-header-title`},o.title),i.createElement("a",{role:"button",className:H(`${ht}-header-button`,o.loading&&`${ht}-header-button-disabled`),onClick:()=>{o.loading||(u(f,!0),a(!1))},"aria-disabled":o.loading},o.confirmText)),i.createElement("div",{className:`${ht}-body`},i.createElement(Lo,{loading:o.loading,loadingContent:o.loadingContent,columns:o.columns,renderLabel:o.renderLabel,value:f,mouseWheel:o.mouseWheel,onChange:y})))),b=i.createElement(Ht,{style:o.popupStyle,className:H(`${ht}-popup`,o.popupClassName),visible:s,position:"bottom",onMaskClick:()=>{var p;o.closeOnMaskClick&&((p=o.onCancel)===null||p===void 0||p.call(o),a(!1))},getContainer:o.getContainer,destroyOnClose:o.destroyOnClose,afterShow:o.afterShow,afterClose:o.afterClose,onClick:o.onClick,forceRender:o.forceRender,stopPropagation:o.stopPropagation},g,i.createElement(bn,{position:"bottom"}));return i.createElement(i.Fragment,null,b,(n=o.children)===null||n===void 0?void 0:n.call(o,d.items,l))}));Bo.displayName="Picker";function a0(t){return new Promise(e=>{const n=()=>{const[o,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Bo,Object.assign({},t,{visible:o,onConfirm:(a,l)=>{var c;(c=t.onConfirm)===null||c===void 0||c.call(t,a,l),e(a)},onClose:()=>{var a;(a=t.onClose)===null||a===void 0||a.call(t),s(!1),e(null)},afterClose:()=>{var a;(a=t.afterClose)===null||a===void 0||a.call(t),r()}}))},r=ko(i.createElement(n,null))})}const ka=we(Bo,{prompt:a0}),Me="adm-tabs",l0=()=>null,c0={activeLineMode:"auto",stretch:!0,direction:"ltr"},pr=we(t=>{var e;const n=re(c0,t),r=i.useRef(null),o=i.useRef(null),s={};let a=null;const l=[],c=n.direction==="rtl";Fo(n.children,(k,E)=>{if(!i.isValidElement(k))return;const I=k.key;if(typeof I!="string")return;E===0&&(a=I);const T=l.push(k);s[I]=T-1});const[u,d]=Ie({value:n.activeKey,defaultValue:(e=n.defaultActiveKey)!==null&&e!==void 0?e:a,onChange:k=>{var E;k!==null&&((E=n.onChange)===null||E===void 0||E.call(n,k))}}),[{x:f,width:v},y]=Ve(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:g},b]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:p,rightMaskOpacity:x},S]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function C(k=!1,E=!1){const I=r.current;if(!I)return;const T=s[u];if(T===void 0){y.start({x:0,width:0,immediate:!0});return}const Z=o.current;if(!Z)return;const M=I.children.item(T+1),N=M.children.item(0),U=N.offsetLeft,z=N.offsetWidth,P=M.offsetLeft,F=M.offsetWidth,_=I.offsetWidth,B=I.scrollWidth,D=I.scrollLeft,V=Z.offsetWidth;let O=0,K=0;if(n.activeLineMode==="auto"?(O=U,K=z):n.activeLineMode==="full"?(O=P,K=F):O=U+(z-V)/2,c){const ne=["auto","full"].includes(n.activeLineMode)?K:V;O=-(_-O-ne)}y.start({x:O,width:K,immediate:k});const W=B-_;if(W<=0)return;let q=0;c?q=-xe(_/2-U+z/2-V,0,W):q=xe(U-(_-z)/2,0,W),(!E||n.autoScroll!==!1)&&b.start({scrollLeft:q,from:{scrollLeft:D},immediate:k})}te.useIsomorphicLayoutEffect(()=>{C(!f.isAnimating)},[]),Eo(()=>{C()},[u,c,n.activeLineMode]),ua(()=>{C(!f.isAnimating)},r),da(()=>{C(!f.isAnimating,!0)},r,{subtree:!0,childList:!0,characterData:!0});const{run:w}=te.useThrottleFn((k=!1)=>{const E=r.current;if(!E)return;const I=E.scrollLeft;let T=!1,Z=!1;c?(T=Math.round(-I)+E.offsetWidth<E.scrollWidth,Z=I<0):(T=I>0,Z=I+E.offsetWidth<E.scrollWidth),S.start({leftMaskOpacity:T?1:0,rightMaskOpacity:Z?1:0,immediate:k})},{wait:100,trailing:!0,leading:!0});return te.useIsomorphicLayoutEffect(()=>{w(!0)},[]),Y(n,i.createElement("div",{className:Me,style:{direction:n.direction}},i.createElement("div",{className:`${Me}-header`},i.createElement(ke.div,{className:H(`${Me}-header-mask`,`${Me}-header-mask-left`),style:{opacity:p}}),i.createElement(ke.div,{className:H(`${Me}-header-mask`,`${Me}-header-mask-right`),style:{opacity:x}}),i.createElement(ke.div,{className:`${Me}-tab-list`,ref:r,scrollLeft:g,onScroll:w,role:"tablist"},i.createElement(ke.div,{ref:o,className:`${Me}-tab-line`,style:{width:n.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":v,x:f}}),l.map(k=>Y(k.props,i.createElement("div",{key:k.key,className:H(`${Me}-tab-wrapper`,{[`${Me}-tab-wrapper-stretch`]:n.stretch})},i.createElement("div",{onClick:()=>{const{key:E}=k;k.props.disabled||E!=null&&d(E.toString())},className:H(`${Me}-tab`,{[`${Me}-tab-active`]:k.key===u,[`${Me}-tab-disabled`]:k.props.disabled}),role:"tab","aria-selected":k.key===u},k.props.title)))))),l.map(k=>{if(k.props.children===void 0)return null;const E=k.key===u;return i.createElement(Jn,{key:k.key,active:E,forceRender:k.props.forceRender,destroyOnClose:k.props.destroyOnClose},i.createElement("div",{className:`${Me}-content`,style:{display:E?"block":"none"}},k.props.children))})))},{Tab:l0}),Cn="adm-list",u0={mode:"default"},d0=i.forwardRef((t,e)=>{const n=re(u0,t),r=i.useRef(null);return i.useImperativeHandle(e,()=>({get nativeElement(){return r.current}})),Y(n,i.createElement("div",{className:H(Cn,`${Cn}-${n.mode}`),ref:r},n.header&&i.createElement("div",{className:`${Cn}-header`},n.header),i.createElement("div",{className:`${Cn}-body`},i.createElement("div",{className:`${Cn}-body-inner`},n.children))))});function hr(t){return t!=null&&t!==!1}const st="adm-list-item",Yt=we(d0,{Item:t=>{var e,n;const{arrow:r,arrowIcon:o}=t,{list:s={}}=Pe(),a=(e=t.clickable)!==null&&e!==void 0?e:!!t.onClick,l=(n=r!=null?r:o)!==null&&n!==void 0?n:a,c=Ar(s.arrowIcon,r!==!0?r:null,o!==!0?o:null),u=i.createElement("div",{className:`${st}-content`},hr(t.prefix)&&i.createElement("div",{className:`${st}-content-prefix`},t.prefix),i.createElement("div",{className:`${st}-content-main`},hr(t.title)&&i.createElement("div",{className:`${st}-title`},t.title),t.children,hr(t.description)&&i.createElement("div",{className:`${st}-description`},t.description)),hr(t.extra)&&i.createElement("div",{className:`${st}-content-extra`},t.extra),l&&i.createElement("div",{className:`${st}-content-arrow`},c||i.createElement(nd,null)));return Y(t,i.createElement(a?"a":"div",{className:H(`${st}`,a?["adm-plain-anchor"]:[],t.disabled&&`${st}-disabled`),onClick:t.disabled?void 0:t.onClick},u))}}),Ea=i.createContext(null),f0="adm-check-list",m0={multiple:!1,defaultValue:[],activeIcon:i.createElement(wi,null)},p0=t=>{const{checkList:e={}}=Pe(),n=re(m0,e,t),[r,o]=Ie(n);function s(f){n.multiple?o([...r,f]):o([f])}function a(f){o(r.filter(v=>v!==f))}const{activeIcon:l,extra:c,disabled:u,readOnly:d}=n;return i.createElement(Ea.Provider,{value:{value:r,check:s,uncheck:a,activeIcon:l,extra:c,disabled:u,readOnly:d}},Y(n,i.createElement(Yt,{mode:n.mode,className:f0},n.children)))},gr="adm-check-list-item",vr=we(p0,{Item:t=>{const e=i.useContext(Ea);if(e===null)return null;const n=e.value.includes(t.value),r=t.readOnly||e.readOnly,o=n?e.activeIcon:null,s=e.extra?e.extra(n):o,a=i.createElement("div",{className:`${gr}-extra`},s);return Y(t,i.createElement(Yt.Item,{title:t.title,className:H(gr,r&&`${gr}-readonly`,n&&`${gr}-active`),description:t.description,prefix:t.prefix,onClick:l=>{var c;r||(n?e.uncheck(t.value):e.check(t.value),(c=t.onClick)===null||c===void 0||c.call(t,l))},arrow:!1,clickable:!r,extra:a,disabled:t.disabled||e.disabled},t.children))}});function h0(t){var e=t+"",n=e.indexOf("...");return n>=0&&(n<e.indexOf(")")||e.indexOf("arguments")>=0)}function Ia(t,e){e||(e={});var n=e.vargs||h0(t),r=[],o=new Map,s,a,l=function(y){return a=setTimeout(function(){if(s){o.delete(y);return}r.splice(y,1)},e.maxAge)},c=e.maxAge>0&&e.maxAge<1/0?l:0,u=e.equals?e.equals:0,d=e.maxArgs,f=e.serializer,v;return t.length===1&&!e.equals&&!n?(v=function(y){f&&(y=f(y));var g;return o.get(y)||(!c||c(y),o.set(y,g=t.call(this,y)),g)},s=1):u?v=function(){for(var y=d||arguments.length,g=r.length,b=-1;++b<g;)if(r[b].length===y){for(var p=-1;++p<y&&u(arguments[p],r[b][p]););if(p===y)return r[b].val}return r[b]=arguments,!c||c(b),arguments.val=t.apply(this,r[b])}:v=function(){for(var y=d||arguments.length,g=r.length,b=-1;++b<g;)if(r[b].length===y){for(var p=-1;++p<y&&arguments[p]===r[b][p];);if(p===y)return r[b].val}return r[b]=arguments,!c||c(b),arguments.val=t.apply(this,r[b])},v.clear=function(){a&&clearTimeout(a),o.clear(),r=[]},v.keys=function(){return s?[...o.keys()]:r.slice()},v.values=function(){return s?[...o.values()]:r.map(y=>y.val)},v}function g0(t,e){const{valueName:n,childrenName:r}=e,o=i.useMemo(()=>Ia(l=>{const c=[];let u=t;for(const d of l){const f=u.find(v=>v[n]===d);if(!f||(c.push(f),!f[r]))break;u=f[r]}return c},{equals:No}),[t]),s=i.useMemo(()=>Ia(l=>l.reduce((u,d)=>{var f;return((f=u.find(v=>v[n]===d))===null||f===void 0?void 0:f[r])||[]},t).length===0,{equals:No}),[t]);function a(l){return{get items(){return o(l)},get isLeaf(){return s(l)}}}return a}const $a=[];function v0(t,e){const n=[];for(let r=t;r<=e;r++)n.push(r);return n}const Sn="adm-skeleton",zo=t=>Y(t,i.createElement("div",{className:H(Sn,{[`${Sn}-animated`]:t.animated})})),y0=t=>Y(t,i.createElement(zo,{animated:t.animated,className:`${Sn}-title`})),b0={lineCount:3},yr=we(zo,{Title:y0,Paragraph:t=>{const e=re(b0,t),n=v0(1,e.lineCount),r=i.createElement("div",{className:`${Sn}-paragraph`},n.map(o=>i.createElement(zo,{key:o,animated:e.animated,className:`${Sn}-paragraph-line`})));return Y(e,r)}}),x0=(t={})=>i.useMemo(()=>{const{label:n="label",value:r="value",disabled:o="disabled",children:s="children"}=t;return[n,r,s,o]},[JSON.stringify(t)]),Ue="adm-cascader-view",C0={defaultValue:[]},S0=we(t=>{const e=re(C0,t),{locale:n}=Pe(),[r,o,s,a]=x0(e.fieldNames),l=g0(e.options,{valueName:o,childrenName:s}),[c,u]=Ie(Object.assign(Object.assign({},e),{onChange:p=>{var x;(x=e.onChange)===null||x===void 0||x.call(e,p,l(p))}})),[d,f]=i.useState(0),v=i.useMemo(()=>{const p=[];let x=e.options,S=!1;for(const C of c){const w=x.find(k=>k[o]===C);if(p.push({selected:w,options:x}),!w||!w[s]){S=!0;break}x=w[s]}return S||p.push({selected:void 0,options:x}),p},[c,e.options]);te.useUpdateEffect(()=>{var p;(p=e.onTabsChange)===null||p===void 0||p.call(e,d)},[d]),i.useEffect(()=>{f(v.length-1)},[c]),i.useEffect(()=>{const p=v.length-1;d>p&&f(p)},[d,v]);const y=(p,x)=>{const S=c.slice(0,x);p!==void 0&&(S[x]=p),u(S)},g=p=>e.loading||p===$a,b=e.placeholder||n.Cascader.placeholder;return Y(e,i.createElement("div",{className:Ue},i.createElement(pr,{activeKey:d.toString(),onChange:p=>{const x=parseInt(p);f(x)},stretch:!1,className:`${Ue}-tabs`},v.map((p,x)=>{const S=p.selected;return i.createElement(pr.Tab,{key:x.toString(),title:i.createElement("div",{className:`${Ue}-header-title`},S?S[r]:typeof b=="function"?b(x):b),forceRender:!0},i.createElement("div",{className:`${Ue}-content`},g(p.options)?i.createElement("div",{className:`${Ue}-skeleton`},i.createElement(yr,{className:`${Ue}-skeleton-line-1`,animated:!0}),i.createElement(yr,{className:`${Ue}-skeleton-line-2`,animated:!0}),i.createElement(yr,{className:`${Ue}-skeleton-line-3`,animated:!0}),i.createElement(yr,{className:`${Ue}-skeleton-line-4`,animated:!0})):i.createElement(vr,{value:[c[x]],onChange:C=>y(C[0],x),activeIcon:e.activeIcon},p.options.map(C=>{const w=c[x]===C[o];return i.createElement(vr.Item,{value:C[o],key:C[o],disabled:C[a],className:H(`${Ue}-item`,{[`${Ue}-item-active`]:w})},C[r])}))))}))))},{optionSkeleton:$a}),_a=i.createContext(null),w0={disabled:!1,defaultValue:[]},k0=t=>{const e=re(w0,t),[n,r]=Ie(e);return i.createElement(_a.Provider,{value:{value:n,disabled:e.disabled,check:o=>{r([...n,o])},uncheck:o=>{r(n.filter(s=>s!==o))}}},e.children)},Pa=i.memo(t=>Y(t,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M31.5541766,15 L28.0892433,15 L28.0892434,15 C27.971052,15 27.8576674,15.044522 27.7740471,15.1239792 L18.2724722,24.1625319 L13.2248725,19.3630279 L13.2248725,19.3630279 C13.1417074,19.2834412 13.0287551,19.2384807 12.9107898,19.2380079 L9.44474455,19.2380079 L9.44474454,19.2380079 C9.19869815,19.2384085 8.99957935,19.4284738 9,19.66253 C9,19.7747587 9.04719253,19.8823283 9.13066188,19.9616418 L17.0907466,27.5338228 C17.4170809,27.8442545 17.8447695,28 18.2713393,28 L18.2980697,28 C18.7168464,27.993643 19.133396,27.8378975 19.4530492,27.5338228 L31.8693384,15.7236361 L31.8693384,15.7236361 C32.0434167,15.5582251 32.0435739,15.2898919 31.8696892,15.1242941 C31.7860402,15.0446329 31.6725052,15 31.5541421,15 L31.5541766,15 Z",fill:"currentColor"})))),E0=i.memo(t=>Y(t,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M20,9 C26.0752953,9 31,13.9247047 31,20 C31,26.0752953 26.0752953,31 20,31 C13.9247047,31 9,26.0752953 9,20 C9,13.9247047 13.9247047,9 20,9 Z",fill:"currentColor"})))),Fa=t=>{const e=i.useRef(null),n=te.useMemoizedFn(r=>{r.stopPropagation(),r.stopImmediatePropagation();const o=r.target.checked;o!==t.checked&&t.onChange(o)});return i.useEffect(()=>{if(t.disabled||!e.current)return;const r=e.current;return r.addEventListener("click",n),()=>{r.removeEventListener("click",n)}},[t.disabled,t.onChange]),i.createElement("input",{ref:e,type:t.type,checked:t.checked,onChange:()=>{},disabled:t.disabled,id:t.id})},gt="adm-checkbox",I0={defaultChecked:!1,indeterminate:!1},$0=i.forwardRef((t,e)=>{const n=i.useContext(_a),r=re(I0,t);let[o,s]=Ie({value:r.checked,defaultValue:r.defaultChecked,onChange:r.onChange}),a=r.disabled;const{value:l}=r;n&&l!==void 0&&(o=n.value.includes(l),s=u=>{var d;u?n.check(l):n.uncheck(l),(d=r.onChange)===null||d===void 0||d.call(r,u)},a=a||n.disabled),i.useImperativeHandle(e,()=>({check:()=>{s(!0)},uncheck:()=>{s(!1)},toggle:()=>{s(!o)}}));const c=()=>r.icon?i.createElement("div",{className:`${gt}-custom-icon`},r.icon(o,r.indeterminate)):i.createElement("div",{className:`${gt}-icon`},r.indeterminate?i.createElement(E0,null):o&&i.createElement(Pa,null));return Y(r,i.createElement("label",{onClick:r.onClick,className:H(gt,{[`${gt}-checked`]:o&&!r.indeterminate,[`${gt}-indeterminate`]:r.indeterminate,[`${gt}-disabled`]:a,[`${gt}-block`]:r.block})},i.createElement(Fa,{type:"checkbox",checked:o,onChange:s,disabled:a,id:r.id}),c(),r.children&&i.createElement("div",{className:`${gt}-content`},r.children)))}),Vo=we($0,{Group:k0});var br={exports:{}},_0=br.exports,Ma;function P0(){return Ma||(Ma=1,function(t,e){(function(n,r){t.exports=r()})(_0,function(){return function(n,r){r.prototype.isoWeeksInYear=function(){var o=this.isLeapYear(),s=this.endOf("y").day();return s===4||o&&s===5?53:52}}})}(br)),br.exports}var F0=P0();const Na=xt(F0);var xr={exports:{}},M0=xr.exports,Ta;function N0(){return Ta||(Ta=1,function(t,e){(function(n,r){t.exports=r()})(M0,function(){return function(n,r){r.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}})}(xr)),xr.exports}var T0=N0();const Oa=xt(T0),wn="TILL_NOW";pe.extend(Io),pe.extend(Na),pe.extend(Oa);const vt={year:0,month:1,day:2,hour:3,minute:4,second:5};function O0(t,e,n,r,o,s,a){const l=[],c=e.getFullYear(),u=e.getMonth()+1,d=e.getDate(),f=e.getHours(),v=e.getMinutes(),y=e.getSeconds(),g=n.getFullYear(),b=n.getMonth()+1,p=n.getDate(),x=n.getHours(),S=n.getMinutes(),C=n.getSeconds(),w=vt[r],k=parseInt(t[0]),E=pe(Zo([t[0],t[1],"1"])),I=parseInt(t[1]),T=parseInt(t[2]),Z=parseInt(t[3]),M=parseInt(t[4]),N=k===c,U=k===g,z=N&&I===u,P=U&&I===b,F=z&&T===d,_=P&&T===p,B=F&&Z===f,D=_&&Z===x,V=B&&M===v,O=D&&M===S,K=(W,q,ne)=>{let ee=[];for(let ue=W;ue<=q;ue++)ee.push(ue);const Ne=t.slice(0,vt[ne]),X=s==null?void 0:s[ne];return X&&typeof X=="function"&&(ee=ee.filter(ue=>X(ue,{get date(){const j=[...Ne,ue.toString()];return Zo(j)}}))),ee};if(w>=vt.year){const ne=K(c,g,"year");l.push(ne.map(ee=>({label:o("year",ee),value:ee.toString()})))}if(w>=vt.month){const ne=K(N?u:1,U?b:12,"month");l.push(ne.map(ee=>({label:o("month",ee),value:ee.toString()})))}if(w>=vt.day){const W=z?d:1,q=P?p:E.daysInMonth(),ne=K(W,q,"day");l.push(ne.map(ee=>({label:o("day",ee),value:ee.toString()})))}if(w>=vt.hour){const ne=K(F?f:0,_?x:23,"hour");l.push(ne.map(ee=>({label:o("hour",ee),value:ee.toString()})))}if(w>=vt.minute){const ne=K(B?v:0,D?S:59,"minute");l.push(ne.map(ee=>({label:o("minute",ee),value:ee.toString()})))}if(w>=vt.second){const ne=K(V?y:0,O?C:59,"second");l.push(ne.map(ee=>({label:o("second",ee),value:ee.toString()})))}if(a&&(l[0].push({label:o("now",null),value:wn}),wn===(t==null?void 0:t[0])))for(let W=1;W<l.length;W+=1)l[W]=[];return l}function D0(t){return t?[t.getFullYear().toString(),(t.getMonth()+1).toString(),t.getDate().toString(),t.getHours().toString(),t.getMinutes().toString(),t.getSeconds().toString()]:[]}function Zo(t){var e,n,r,o,s,a;const l=(e=t[0])!==null&&e!==void 0?e:"1900",c=(n=t[1])!==null&&n!==void 0?n:"1",u=(r=t[2])!==null&&r!==void 0?r:"1",d=(o=t[3])!==null&&o!==void 0?o:"0",f=(s=t[4])!==null&&s!==void 0?s:"0",v=(a=t[5])!==null&&a!==void 0?a:"0";return new Date(parseInt(l),parseInt(c)-1,parseInt(u),parseInt(d),parseInt(f),parseInt(v))}var Cr={exports:{}},A0=Cr.exports,Da;function L0(){return Da||(Da=1,function(t,e){(function(n,r){t.exports=r()})(A0,function(){var n="month",r="quarter";return function(o,s){var a=s.prototype;a.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=a.add;a.add=function(u,d){return u=Number(u),this.$utils().p(d)===r?this.add(3*u,n):l.bind(this)(u,d)};var c=a.startOf;a.startOf=function(u,d){var f=this.$utils(),v=!!f.u(d)||d;if(f.p(u)===r){var y=this.quarter()-1;return v?this.month(3*y).startOf(n).startOf("day"):this.month(3*y+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}})}(Cr)),Cr.exports}var B0=L0();const z0=xt(B0);pe.extend(z0);const Sr={year:0,quarter:1};function V0(t,e,n,r,o,s){const a=[],l=e.getFullYear(),c=n.getFullYear(),u=Sr[r],d=parseInt(t[0]),f=d===l,v=d===c,y=pe(e),g=pe(n),b=y.quarter(),p=g.quarter(),x=(S,C,w)=>{let k=[];for(let T=S;T<=C;T++)k.push(T);const E=t.slice(0,Sr[w]),I=s==null?void 0:s[w];return I&&typeof I=="function"&&(k=k.filter(T=>I(T,{get date(){const Z=[...E,T.toString()];return Aa(Z)}}))),k};if(u>=Sr.year){const w=x(l,c,"year");a.push(w.map(k=>({label:o("year",k),value:k.toString()})))}if(u>=Sr.quarter){const w=x(f?b:1,v?p:4,"quarter");a.push(w.map(k=>({label:o("quarter",k),value:k.toString()})))}return a}function Z0(t){if(!t)return[];const e=pe(t);return[e.year().toString(),e.quarter().toString()]}function Aa(t){var e,n;const r=(e=t[0])!==null&&e!==void 0?e:"1900",o=(n=t[1])!==null&&n!==void 0?n:"1";return pe().year(parseInt(r)).quarter(parseInt(o)).hour(0).minute(0).second(0).toDate()}pe.extend(Io),pe.extend(Na),pe.extend(Oa);const kn={year:0,week:1,"week-day":2};function j0(t,e,n,r,o,s){const a=[],l=e.getFullYear(),c=n.getFullYear(),u=kn[r],d=parseInt(t[0]),f=d===l,v=d===c,y=pe(e),g=pe(n),b=y.isoWeek(),p=g.isoWeek(),x=y.isoWeekday(),S=g.isoWeekday(),C=parseInt(t[1]),w=f&&C===b,k=v&&C===p,E=pe(`${d}-01-01`).isoWeeksInYear(),I=(T,Z,M)=>{let N=[];for(let P=T;P<=Z;P++)N.push(P);const U=t.slice(0,kn[M]),z=s==null?void 0:s[M];return z&&typeof z=="function"&&(N=N.filter(P=>z(P,{get date(){const F=[...U,P.toString()];return La(F)}}))),N};if(u>=kn.year){const M=I(l,c,"year");a.push(M.map(N=>({label:o("year",N),value:N.toString()})))}if(u>=kn.week){const M=I(f?b:1,v?p:E,"week");a.push(M.map(N=>({label:o("week",N),value:N.toString()})))}if(u>=kn["week-day"]){const M=I(w?x:1,k?S:7,"week-day");a.push(M.map(N=>({label:o("week-day",N),value:N.toString()})))}return a}function K0(t){if(!t)return[];const e=pe(t);return[e.isoWeekYear().toString(),e.isoWeek().toString(),e.isoWeekday().toString()]}function La(t){var e,n,r;const o=(e=t[0])!==null&&e!==void 0?e:"1900",s=(n=t[1])!==null&&n!==void 0?n:"1",a=(r=t[2])!==null&&r!==void 0?r:"1";return pe().year(parseInt(o)).isoWeek(parseInt(s)).isoWeekday(parseInt(a)).hour(0).minute(0).second(0).toDate()}const W0={year:1,month:2,day:3,hour:4,minute:5,second:6},H0=(t,e)=>{if(e.includes("week"))return K0(t);if(e.includes("quarter"))return Z0(t);{const n=e;return D0(t).slice(0,W0[n])}},Ba=(t,e)=>{if((t==null?void 0:t[0])===wn){const n=new Date;return n.tillNow=!0,n}return e.includes("week")?La(t):e.includes("quarter")?Aa(t):Zo(t)},U0=(t,e,n,r,o,s,a)=>r.startsWith("week")?j0(t,e,n,r,o,s):r.startsWith("quarter")?V0(t,e,n,r,o,s):O0(t,e,n,r,o,s,a);function q0(t){const{locale:e}=Pe();return i.useCallback((n,r)=>{if(t)return t(n,r);switch(n){case"minute":case"second":case"hour":return("0"+r.toString()).slice(-2);case"now":return e.DatePicker.tillNow;default:return r.toString()}},[t])}const za=new Date().getFullYear(),Y0={min:new Date(new Date().setFullYear(za-10)),max:new Date(new Date().setFullYear(za+10)),precision:"day",defaultValue:null},Va=i.forwardRef((t,e)=>{const n=re(Y0,t),{renderLabel:r}=n,[o,s]=Ie({value:n.value,defaultValue:n.defaultValue,onChange:v=>{var y;v!==null&&((y=n.onConfirm)===null||y===void 0||y.call(n,v))}}),a=i.useMemo(()=>new Date,[]),l=q0(r),c=i.useMemo(()=>{let v=o!=null?o:a;return v.tillNow?[wn]:(v=new Date(xe(v.getTime(),n.min.getTime(),n.max.getTime())),H0(v,n.precision))},[o,n.precision,n.min,n.max]),u=i.useCallback(v=>{const y=Ba(v,n.precision);s(y,!0)},[s,n.precision]),d=te.useMemoizedFn(v=>{var y;const g=Ba(v,n.precision);(y=n.onSelect)===null||y===void 0||y.call(n,g)}),f=i.useCallback(v=>U0(v,n.min,n.max,n.precision,l,n.filter,n.tillNow),[n.min,n.max,n.precision,l,n.tillNow]);return Y(n,i.createElement(ka,{ref:e,columns:f,value:c,onCancel:n.onCancel,onClose:n.onClose,closeOnMaskClick:n.closeOnMaskClick,visible:n.visible,confirmText:n.confirmText,cancelText:n.cancelText,onConfirm:u,onSelect:d,getContainer:n.getContainer,loading:n.loading,loadingContent:n.loadingContent,afterShow:n.afterShow,afterClose:n.afterClose,onClick:n.onClick,title:n.title,stopPropagation:n.stopPropagation,mouseWheel:n.mouseWheel,destroyOnClose:n.destroyOnClose,forceRender:n.forceRender},(v,y)=>{var g;return(g=n.children)===null||g===void 0?void 0:g.call(n,o,y)}))});function G0(t){return new Promise(e=>{const n=()=>{const[o,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Va,Object.assign({},t,{visible:o,onConfirm:a=>{var l;(l=t.onConfirm)===null||l===void 0||l.call(t,a),e(a)},onClose:()=>{var a;(a=t.onClose)===null||a===void 0||a.call(t),s(!1),e(null)},afterClose:()=>{var a;(a=t.afterClose)===null||a===void 0||a.call(t),r()}}))},r=ko(i.createElement(n,null))})}const X0=we(Va,{prompt:G0,DATE_NOW:wn});var Za;(function(t){t[t.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",t[t.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",t[t.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",t[t.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",t[t.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",t[t.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",t[t.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",t[t.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",t[t.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",t[t.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",t[t.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",t[t.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",t[t.TAGS_START=917504]="TAGS_START",t[t.TAGS_END=917631]="TAGS_END",t[t.ZWJ=8205]="ZWJ"})(Za||(Za={}));const J0=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var ja;function jo(t){if(typeof t!="string")throw new TypeError("string cannot be undefined or null");const e=[];let n=0,r=0;for(;n<t.length;)r+=Q0(n+r,t),sf(t[n+r])&&r++,nf(t[n+r])&&r++,rf(t[n+r])&&r++,af(t[n+r])?r++:(e.push(t.substring(n,n+r)),n+=r,r=0);return e}function Q0(t,e){const n=e[t];if(!R0(n)||t===e.length-1)return 1;const r=n+e[t+1];let o=e.substring(t+2,t+5);return Ka(r)&&Ka(o)?4:ef(r)&&of(o)?e.slice(t).indexOf(String.fromCodePoint(917631))+2:tf(o)?4:2}function R0(t){return t&&It(t[0].charCodeAt(0),55296,56319)}function Ka(t){return It(Ko(t),127462,127487)}function ef(t){return It(Ko(t),127988,127988)}function tf(t){return It(Ko(t),127995,127999)}function nf(t){return typeof t=="string"&&It(t.charCodeAt(0),65024,65039)}function rf(t){return typeof t=="string"&&It(t.charCodeAt(0),8400,8447)}function of(t){const e=t.codePointAt(0);return typeof t=="string"&&typeof e=="number"&&It(e,917504,917631)}function sf(t){return typeof t=="string"&&J0.includes(t.charCodeAt(0))}function af(t){return typeof t=="string"&&t.charCodeAt(0)===8205}function Ko(t){return(t.charCodeAt(0)-55296<<10)+(t.charCodeAt(1)-56320)+65536}function It(t,e,n){return t>=e&&t<=n}(function(t){t[t.unit_1=1]="unit_1",t[t.unit_2=2]="unit_2",t[t.unit_4=4]="unit_4"})(ja||(ja={}));const $t="adm-error-block",lf={status:"default"};function cf(t){return n=>{var r;const o=re(lf,n),{locale:s}=Pe(),a=s.ErrorBlock[o.status],l="description"in o?o.description:a.description,c="title"in o?o.title:a.title,u=(r=o.image)!==null&&r!==void 0?r:t[o.status],d=typeof u=="string"?i.createElement("img",{src:u,alt:"error block image"}):u;return Y(o,i.createElement("div",{className:H($t,{[`${$t}-full-page`]:o.fullPage})},i.createElement("div",{className:`${$t}-image`},d),i.createElement("div",{className:`${$t}-description`},![void 0,null].includes(c)&&i.createElement("div",{className:`${$t}-description-title`},c),![void 0,null].includes(l)&&i.createElement("div",{className:`${$t}-description-subtitle`},l)),o.children&&i.createElement("div",{className:`${$t}-content`},o.children)))}}const uf=i.createElement("svg",{viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-default-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-default-d",cx:18.823,cy:18.823,r:18.823}),i.createElement("rect",{id:"error-block-image-default-b",x:3.5,y:9,width:51.429,height:88,rx:4.571})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M73.557.004c19.435-.311 38.696 17.016 51.523 35.287 8.708-10.822 17.127-16.233 25.255-16.233 13.333 0 28.35 14.274 45.053 42.822 1.769 3.024-3.582 7.435-16.054 13.231l-41.322 1.37c-7.343 5.872-31.225.626-69.152 1.234-27.79.445-45.759-1.234-53.908-5.037C3.2 71.143-1.625 68.686.48 65.308 27.371 22.12 51.73.353 73.557.003Zm93.098 49.53a1.125 1.125 0 0 0-.401.072l-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.283 1.719 4.153 3.898 4.314l.026.001v3.805c0 .39.25.705.56.705.31 0 .56-.316.56-.705l.001-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734Zm-100-5a1.125 1.125 0 0 0-.331.05l-.035.01-.035.012-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.212 1.613 4.036 3.695 4.294l.203.02.026.001v3.805c0 .39.25.705.56.705.282 0 .515-.26.555-.6l.006-.105v-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734ZM52.64 38.348l-.15.008-.149.023-.032.007-.032.008-.078.022-.045.015-.045.016-.06.023-.038.017-.038.017-.058.028-.022.011a2.201 2.201 0 0 0-.323.204l-.05.038-.05.04-.025.02-.025.021a3.742 3.742 0 0 0-.31.294l-.036.04c-.035.037-.07.076-.105.116-.01.012-.02.025-.031.036a3.275 3.275 0 0 0-.081.098l-.063.078c-2.031 2.583-3.48 8.692-3.48 11.027 0 2.636 1.846 4.832 4.292 5.323l.224.04-.064-.012.105.018.103.014v4.618c0 .47.299.85.667.85.337 0 .615-.32.659-.735l.006-.115v-4.618c.18-.023.355-.054.527-.094l.256-.067.196-.06c2.136-.706 3.68-2.75 3.68-5.162 0-2.996-2.383-12.207-5.325-12.207Z",transform:"translate(2.286 22.286)",fill:"url(#error-block-image-default-a)"}),i.createElement("g",{transform:"rotate(-90 102.429 55.357)"},i.createElement("path",{d:"M6.857 0H52a6.857 6.857 0 0 1 6.857 6.857v92A6.857 6.857 0 0 1 52 105.714H6.857A6.857 6.857 0 0 1 0 98.857v-92A6.857 6.857 0 0 1 6.857 0Z",fill:"#7EACFF"}),i.createElement("mask",{id:"error-block-image-default-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-default-b"}),i.createElement("path",{d:"M11.838 91.8a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-2.858 0a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.16-2.305a.64.64 0 0 1 .628.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-2.982-.04a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm5.268-.531a.64.64 0 0 1 .628.651.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.858-1.143a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-6.37-.917c.209 0 .377.175.377.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm3.512-.798.093.007a.644.644 0 0 1 .535.645.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.652.627-.652Zm5.715 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-11.429 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.261.241c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm11.833-.812a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.628-.651c0-.36.281-.652.628-.652Zm-4.851.399c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm10.313-2.056a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-2.354-.128a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.652.628-.652Zm-13.798.311c.207 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.377-.39c0-.217.169-.392.377-.392Zm11.832-.812a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-6.285 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm3.428 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-6.118.24c.208 0 .376.176.376.392a.384.384 0 0 1-.376.39.384.384 0 0 1-.377-.39c0-.216.169-.391.377-.391Zm11.261-2.525a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm-3.557.484c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.478-.555a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.512-.26c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.857 0c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-4.571 0c.207 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm14.898-1.835a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-8.027-.245c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.169-.391.376-.391Zm6.271-1.349c.208 0 .377.175.377.391a.384.384 0 0 1-.377.391.384.384 0 0 1-.376-.39c0-.217.169-.392.376-.392Zm-11.484-.481c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm15.103-.972c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.39c0-.217.168-.392.376-.392Zm-9.333-1.404c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-6.819-.405c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-default-c)",transform:"rotate(116 12.367 83.503)"}),i.createElement("path",{stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"M36.774 5.474H21.523"}),i.createElement("path",{d:"m67.818 94.025-4.996 3.913m4.996 11.91-4.996-3.912m-1.142 9.145-1.143-6.288m10.71-6.768h-7.262",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"})),i.createElement("circle",{cx:8.571,cy:8.571,r:8.571,transform:"translate(22.857 142)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(132.857 124)"},i.createElement("mask",{id:"error-block-image-default-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-default-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:13.886,cy:15.12,r:18.823}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:23.4,cy:29.057,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.343,cy:29.829,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:18.771,cy:32.657,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:29.571,cy:25.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:19.286,cy:7.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:26.486,cy:5.914,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:11.057,cy:6.943,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.086,cy:15.686,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:22.886,cy:14.657,r:1})),i.createElement("path",{d:"m87.429 135.123 6.591-9.378v-.08h-5.99v-2.559h10.038v1.787l-6.44 9.254v.082h6.56v2.557h-10.76v-1.663Zm12.185-5.889 4.948-7.047v-.056h-4.498v-1.917h7.536v1.34l-4.849 6.942v.059h4.923v1.92h-8.06v-1.24Zm10.345.702 3.708-5.274v-.045h-3.372v-1.437h5.648v1.003l-3.628 5.206v.045H116v1.438h-6.041v-.936Z",fill:"#FFF",fillRule:"nonzero"}))),df=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("title",null,"@反馈/异常/网络服务异常"),i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-disconnected-c"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-disconnected-d",cx:22.309,cy:22.309,r:22.309}),i.createElement("path",{id:"error-block-image-disconnected-a",d:"M0 0h400v400H0z"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("mask",{id:"error-block-image-disconnected-b",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-a"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"url(#error-block-image-disconnected-c)"},i.createElement("path",{d:"M151.686 45.58c38.869-.623 77.391 34.03 103.046 70.573 17.416-21.644 34.253-32.465 50.51-32.465 26.666 0 56.701 28.548 90.105 85.643 3.539 6.05-7.164 14.87-32.107 26.462l-82.643 2.741c-14.686 11.745-62.45 1.252-138.305 2.467-55.58.89-91.518-2.468-107.816-10.074-23.505-3.07-33.154-7.983-28.946-14.74C59.313 89.813 108.03 46.278 151.686 45.58Zm186.195 99.06-.127.003-.126.01a2.32 2.32 0 0 0-.465.103l-.032.01-.031.01a2.364 2.364 0 0 0-.181.071 2.52 2.52 0 0 0-.116.054l-.133.067-.042.024-.036.02a2.946 2.946 0 0 0-.133.08l-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024a4.906 4.906 0 0 0-.31.27l-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.108.008v7.608c0 .779.502 1.41 1.121 1.41.62 0 1.121-.632 1.121-1.41v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-200-10-.127.003-.126.01a2.32 2.32 0 0 0-.368.073l-.049.014-.048.016-.032.01-.031.01a2.364 2.364 0 0 0-.181.071l-.058.026-.058.028-.133.067-.042.024-.036.02-.066.039-.067.041-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024l-.156.13-.154.14-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.054.004.054.004v7.608c0 .779.502 1.41 1.121 1.41.58 0 1.058-.556 1.115-1.266l.006-.144v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-28.029-12.373-.107.002-.106.006a2.978 2.978 0 0 0-.551.095 3.444 3.444 0 0 0-.323.104 3.962 3.962 0 0 0-.61.297c-.076.045-.15.092-.226.141-4.964 3.312-8.728 18.445-8.728 23.77 0 5.434 3.922 9.935 9.04 10.726l.28.04v9.236c0 .886.532 1.614 1.21 1.692l.121.007.122-.007c.638-.074 1.147-.723 1.204-1.538l.006-.155v-9.235c5.254-.668 9.32-5.234 9.32-10.767 0-5.993-4.77-24.414-10.652-24.414Z"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(85.858 150.644)"},i.createElement("path",{d:"M116.26 28.467c1.352 0 2.703.018 4.054.054 3.923.385 10.188 4.248 9.267 11.061-.878 6.496-5.836 9.089-8.962 9.529a130.762 130.762 0 0 0-4.36-.072c-28.567 0-60.654 10.149-96.22 30.676l-2.227 1.297c-.744.437-1.49.878-2.236 1.323-4.878 2.911-11.193 1.316-14.103-3.562C-1.438 73.894.157 67.58 5.035 64.67 45.34 40.62 82.4 28.467 116.26 28.467Zm22 11.63c1.03-5.942 6.376-8.618 11.084-8.08C172.14 36.91 194.83 46.86 217.37 61.794c4.735 3.138 6.03 9.52 2.893 14.255-3.138 4.736-9.52 6.031-14.256 2.893-20.111-13.325-40.075-22.165-59.935-26.584a9.974 9.974 0 0 0-.325-.088c-3.987-1.015-8.602-5.738-7.487-12.175ZM116.26 77.418c22.777 0 45.4 7.057 67.73 20.988 4.82 3.007 6.289 9.351 3.282 14.17-3.007 4.82-9.351 6.29-14.17 3.283-19.194-11.974-38.095-17.87-56.842-17.87s-37.648 5.896-56.842 17.87c-4.82 3.007-11.164 1.537-14.17-3.282-3.007-4.82-1.538-11.164 3.282-14.171 22.33-13.931 44.953-20.988 67.73-20.988ZM117.974 124.67c9.85 0 17.303 1.69 25.687 5.082l.82.337 2.9 1.231 3.008 1.252.77.305.107.04c5.326 1.976 8.042 7.895 6.066 13.221-1.976 5.326-7.895 8.042-13.221 6.067l-.713-.27-.726-.285-.763-.31-1.263-.527-2.944-1.26-1.125-.473c-6.393-2.648-11.433-3.838-18.603-3.838-8.223 0-16.532 2.126-25.028 6.475-5.056 2.588-11.254.587-13.842-4.47-2.589-5.056-.588-11.253 4.47-13.842 11.313-5.791 22.814-8.735 34.4-8.735ZM118.235 197.047c7.15 0 13.77-.897 19.841-2.721 5.44-1.635 8.526-7.37 6.892-12.81-1.635-5.44-7.37-8.526-12.81-6.892-4.072 1.224-8.707 1.851-13.923 1.851-4.36 0-8.79-1.045-13.373-3.21l-.626-.301c-5.095-2.512-11.262-.418-13.773 4.678-2.512 5.095-.418 11.261 4.678 13.773 7.559 3.727 15.288 5.632 23.094 5.632Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M198.35 62.413c2.755-4.967 9.016-6.76 13.984-4.004 13.068 7.25 19.124 18.535 17.615 30.952-1.157 9.515-6.83 18.757-14.096 24.352-13.364 10.29-34.915 9.401-49.363-1.91-4.472-3.502-5.26-9.967-1.758-14.44 3.436-4.388 9.724-5.229 14.185-1.952l.255.194c7.283 5.702 18.475 6.164 24.13 1.809 3.072-2.366 5.766-6.754 6.226-10.536.467-3.844-1.21-7.07-6.796-10.267l-.378-.213c-4.967-2.756-6.76-9.017-4.004-13.985ZM61.35 103.092c-2.84-4.92-9.13-6.607-14.05-3.768-20.662 11.922-21.772 35.751-6.018 51.69 13.752 13.914 33.192 13.447 50.507 1.158 4.633-3.288 5.723-9.708 2.436-14.34-3.288-4.633-9.709-5.724-14.341-2.436-9.763 6.928-18.07 7.128-23.97 1.158-6.761-6.84-6.498-14.501 1.35-19.225l.317-.187c4.92-2.84 6.608-9.13 3.769-14.05ZM129.103 135.702c1.688-5.424 7.454-8.453 12.878-6.764 14.776 4.599 23.437 13.727 25.259 25.58 1.316 8.561-1.228 17.533-5.58 24.052-3.132 4.688-7.388 8.287-12.504 11.112-3.03 1.673-5.75 2.811-9.37 4.066l-1.4.477c-5.387 1.806-11.217-1.097-13.022-6.484-1.805-5.386 1.098-11.216 6.484-13.02l1.09-.374c6.032-2.112 9.602-4.19 11.613-7.201 1.693-2.535 2.818-6.502 2.356-9.503-.564-3.673-3.432-6.696-11.04-9.063-5.424-1.689-8.452-7.454-6.764-12.878Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M148.072 181.58c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.236-9.096-10.275-9.707",stroke:"#FFF",strokeWidth:.571,strokeLinecap:"round"}),i.createElement("ellipse",{fill:"#7EACFF",transform:"rotate(10 147 41.933)",cx:147,cy:41.933,rx:9.143,ry:10.286}),i.createElement("path",{d:"M210.422 107.472c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.668-9.883-11.572-12.067M51.604 131.769c-3.15-6.8-3.537-12.694-1.161-17.685 2.376-4.99 5.57-8.136 9.583-9.438",stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M21.53 64.408c4.946-3.389 9.817-6.026 14.612-7.912",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"m113.243 15.444 9.588 8.314M144.31 9.405l-5.775 11.3m18.389-1.246-11.907 4.643M127.64 5.66l2.77 14.255",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(275.143 302.571)"},i.createElement("mask",{id:"error-block-image-disconnected-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-disconnected-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:16.457,cy:17.92,r:22.309}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:14.263,cy:12.069,r:2.194}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"#FBBE47",fillRule:"nonzero"},i.createElement("circle",{cx:12,cy:12,r:12,transform:"translate(84 297.714)"})))),ff=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-empty-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("path",{d:"M146.183 18.461c31.705 23.336 33.349 71.85 4.93 96.614-.252.22 6.172 5.602 13.577 11.414l.686.537.69.54.695.54.348.27.698.54a341.27 341.27 0 0 0 8.806 6.596c1.114.802 4.643-.853 10.587-4.965l-.532 12.218a1.2 1.2 0 0 1-.481.91l-10.868 8.111c-1.405 1.048-3.32 1.185-4.854.072l-35.578-25.834c-33.414 17.333-79.913 15-109.804-7-33.444-24.616-33.444-75.95 0-100.563 33.443-24.615 87.657-24.615 121.1 0Zm-60.469 7.653C51.63 26.114 24 44.534 24 67.257S51.63 108.4 85.714 108.4s61.715-18.42 61.715-41.143c0-22.722-27.63-41.143-61.715-41.143Z",id:"error-block-image-empty-b"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 244.661H0L3.806 100.13a4.572 4.572 0 0 1 4.353-4.446l.217-.006h45.588V68.2a4.572 4.572 0 0 1 4.356-4.567l.216-.005h65.498l2.554-58.689a4.571 4.571 0 0 1 4.779-4.367l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.212 3.146 69.652L301.634 64.9a4.571 4.571 0 0 1 5.628 4.231l.005.215v43.955l56.162.001v130.264h-56.163v.001h-82.383v-.004h-66.919v1.098ZM89.503 160.03h-9.968v8.436h9.968v-8.436Zm0-14.507h-9.968v8.435h9.968v-8.435Zm197.985-5.15h-9.967v8.432h9.967v-8.431Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.436h9.967v-8.436Zm-84.643-3.29h-30.8v8.436h30.8v-8.436Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 50.286)",fill:"url(#error-block-image-empty-a)"}),i.createElement("g",{transform:"translate(108.571 189.886)"},i.createElement("mask",{id:"error-block-image-empty-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-empty-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-empty-b"}),i.createElement("path",{d:"M131.429 134.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM128 133.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM120 128.971a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.142.125.006a1.143 1.143 0 1 1-.125-.006Zm11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-22.857 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm17.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM136 125.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-13.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm18.857-2.286a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-37.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm13.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm18.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-28 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm17.715-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-4.571a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.428 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.143 1.142a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-9.143 0a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm30.286-3.429a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM124 109.543a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.858-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-11.428-3.429a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM124 99.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM49.143 55.829a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-9.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM52 52.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-19.429-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-1.142a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-13.143 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM64 44.4a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.125.007a1.143 1.143 0 1 1-.125-.007Zm11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.858 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM30.286 44.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM44 43.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM72 38.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-28 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm5.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM56 37.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM60.57 32.97a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM44 34.114a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm30.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-15.429 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.857-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-11.429-3.428a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM41.714 20.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-empty-c)"})),i.createElement("path",{d:"M295.213 319.24c.744.546.745 1.433.002 1.98l-11.806 8.81c-1.069.799-3.326.474-4.853-.609l-35.622-25.241c-33.375 17.037-79.545 14.615-109.28-7.271-33.443-24.615-33.443-64.521 0-89.133 33.443-24.616 87.657-24.616 121.1 0 31.706 23.336 33.35 60.42 4.931 85.185-.543.473 35.528 26.278 35.528 26.278ZM148.06 220.015c-25.44 17.853-25.44 46.8 0 64.652 25.44 17.85 66.689 17.85 92.129 0 25.436-17.853 25.436-46.799 0-64.652-25.44-17.853-66.688-17.853-92.129 0Z",fill:"#5D96FE"}),i.createElement("path",{d:"M123.514 233.021c2.185-5.241 5.67-9.735 10.453-13.482M264.967 271.54c-2.185 5.24-5.67 9.734-10.453 13.481",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M81.143 252.571c7.574 0 13.714 23.88 13.714 31.649 0 6.97-4.942 12.755-11.429 13.871v11.672c0 1.235-.767 2.237-1.713 2.237-.904 0-1.644-.912-1.71-2.07l-.005-.167v-11.526c-7.04-.595-12.571-6.644-12.571-14.017 0-7.024 5.02-27.222 11.581-31.027l.096-.053c.027-.016.055-.03.082-.045l.067-.035.066-.033.1-.05.094-.041a3.34 3.34 0 0 1 .224-.093l.11-.042.097-.032c.038-.013.077-.025.115-.036l.053-.016.053-.014a3.351 3.351 0 0 1 .23-.055l.085-.016a3.95 3.95 0 0 1 .441-.054l.11-.005.11-.002Z",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(283.429 177.143)",fillRule:"nonzero"},i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.49 0-2.707-1.46-2.79-3.301l-.004-.2-.001-19.018C8.659 71.92.13 62.518.13 51.123.13 40.071 8.154 8.49 18.694 2.015l.054-.031a5.94 5.94 0 0 1 .214-.128l.088-.048c.213-.12.427-.228.642-.326l.135-.06.18-.075.135-.053a5.796 5.796 0 0 1 .464-.16 4.44 4.44 0 0 1 .33-.092l.124-.03a7.122 7.122 0 0 1 .31-.065l.018-.003a6.305 6.305 0 0 1 .756-.088l.165-.007.166-.002Z",fill:"#FFCD6B"}),i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.543 0-2.794-1.566-2.794-3.5V73.295C8.659 71.921.13 62.518.13 51.123.13 38.783 10.134.847 22.475.847Z",fill:"#FFCD6B"}),i.createElement("circle",{fill:"#FFB400",cx:26.4,cy:56.869,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:39.453,cy:58.319,r:1}),i.createElement("circle",{fill:"#FFB400",cx:17.698,cy:63.637,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:38.002,cy:51.068,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:18.665,cy:17.228,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:32.201,cy:13.36,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:26.83,cy:20.666,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:38.969,cy:31.731,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:25.433,cy:29.797,r:1.45}),i.createElement("path",{d:"M34.197 53.033c0 9.825-6.934 18.017-16.172 19.987a22.44 22.44 0 0 0 4.45.448c12.34 0 22.344-10.004 22.344-22.345C44.82 38.783 34.815.847 22.475.847c8.947 14.03 11.722 40.891 11.722 52.186Z",fill:"#FBBE47"})))),mf=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-busy-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-busy-b",cx:34.857,cy:34.857,r:34.857})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 243.667H0L3.806 99.134a4.572 4.572 0 0 1 4.353-4.446l.217-.005h45.588V67.205a4.572 4.572 0 0 1 4.356-4.566l.216-.005 65.498-.001 2.554-58.688a4.571 4.571 0 0 1 4.779-4.368l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.213 3.146 69.652 74.976-17.906a4.571 4.571 0 0 1 5.628 4.23l.005.216v43.955h56.162v130.265l-56.163-.001v.002h-82.383v-.004h-66.919v1.098Zm-68.461-84.631h-9.968v8.435h9.968v-8.435Zm0-14.508h-9.968v8.436h9.968v-8.436Zm197.985-5.149h-9.967v8.432h9.967v-8.432Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.435h9.967v-8.435Zm-84.643-3.29h-30.8v8.435h30.8v-8.435Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 51.286)",fill:"url(#error-block-image-busy-a)"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l.958-.01c-.376 7.363 3.679 59.93 34.894 62.659 4.203.367 7.432.39 7.475 4.609.042 4.218-3.176 4.307-7.37 4.76-34.593 3.737-34.136 56.004-33.61 63.357l-.957.01c-5.276.053-9.51 4.373-9.455 9.649.053 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.054 9.508-4.374 9.455-9.648-.055-5.276-4.374-9.51-9.65-9.455l-.958.01c.377-7.363-.729-59.672-34.894-62.66-4.202-.367-7.432-.39-7.474-4.608-.043-4.219 3.175-4.308 7.369-4.76 31.276-3.377 34.136-56.004 33.61-63.357l.958-.01c5.276-.053 9.508-4.373 9.455-9.649-.055-5.276-4.374-9.509-9.65-9.454Z",fill:"#377EFF"}),i.createElement("path",{d:"M233.524 314.422c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.894-5.644c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.149 17.865c.108.684.773 1.147 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm-2.144-8.182c.109.684.773 1.148 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-1.586-4.694c.108.684.772 1.148 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.013-5.88c.109.685.773 1.148 1.484 1.036.71-.113 1.2-.759 1.09-1.443-.107-.684-.772-1.148-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm.236 15.575c.108.685.772 1.148 1.483 1.035.71-.112 1.2-.758 1.09-1.442-.107-.685-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.442Zm-.4 4.494c.108.684.772 1.147 1.483 1.035.71-.113 1.2-.759 1.091-1.443-.108-.684-.773-1.148-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-3.88-8.601c.108.684.772 1.147 1.483 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-.524-7.186c.065.41.463.688.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-2.265-4.102c.109.684.773 1.148 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.147-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm-.545-6.518c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm2.098 23.629c.109.684.773 1.147 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.443Zm-.756-9.65c.043.274.309.46.593.414a.512.512 0 0 0 .437-.577.512.512 0 0 0-.594-.414.512.512 0 0 0-.436.577Zm-.808 20.96c.109.684.773 1.147 1.484 1.034.71-.112 1.2-.758 1.09-1.442-.108-.685-.772-1.148-1.483-1.036-.71.113-1.199.759-1.09 1.443Zm-4.691-31.966c.065.41.463.689.89.621.426-.068.72-.455.654-.866-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm2.098 23.628c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.967-12.416c.109.684.773 1.147 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm1.073 6.772c.108.685.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.036-.711.113-1.2.759-1.091 1.443Zm-.009-3.131c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.43-9.03c.065.41.463.688.89.62.426-.067.72-.454.655-.865-.065-.41-.464-.689-.89-.62-.427.067-.72.454-.655.865ZM214.5 333.38c.108.685.772 1.148 1.483 1.036.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.711.112-1.2.758-1.091 1.442Zm-.156-7.178c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm-1.871-4.72c.108.684.773 1.147 1.483 1.034.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.035-.71.112-1.2.758-1.091 1.442Zm-1.614-6.857c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-.894-5.644c.065.41.464.689.89.621.427-.067.72-.455.655-.866-.065-.41-.463-.688-.89-.62-.427.067-.72.455-.655.865Zm-1.43-9.03c.065.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.958 14.225c.065.41.463.689.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-.703 12.81c.065.41.464.688.89.62.427-.067.72-.455.655-.865-.065-.41-.463-.689-.89-.621-.427.067-.72.455-.655.866Zm-4.543-22.536c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm2.806 30.138c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm-5.694-17.996c.065.41.463.688.89.62.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.866Zm-2.935-13.343c.066.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.463-.689-.89-.621-.426.068-.72.455-.655.866Z",fill:"#003CFF",fillRule:"nonzero"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l101.963-1.04c5.276-.052 9.508-4.372 9.455-9.648-.055-5.276-4.374-9.509-9.65-9.454ZM252.64 331.241l-101.964 1.038c-5.275.054-9.508 4.374-9.454 9.65.054 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.053 9.507-4.373 9.454-9.649-.054-5.275-4.374-9.508-9.649-9.454Z",fill:"#7EACFF"}),i.createElement("path",{stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"m196.824 197.298 52.216-.506M193.329 330.5h52.215"}),i.createElement("path",{d:"M167.367 228.041c-4.091-10.787-6.086-20.934-5.985-30.44",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("circle",{cx:14.857,cy:14.857,r:14.857,transform:"translate(106.857 248.571)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(236.571 284.571)"},i.createElement("mask",{id:"error-block-image-busy-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-busy-b"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-busy-b"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:25.714,cy:28,r:34.857}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:22.286,cy:18.857,r:3.429})))),pf=cf({default:uf,disconnected:df,empty:ff,busy:mf});let Gt=null,Xt=null;Ot&&(Gt=document.createElement("div"),Gt.className="adm-px-tester",Gt.style.setProperty("--size","10"),document.body.appendChild(Gt),Xt=document.createElement("div"),Xt.className="adm-px-tester",document.body.appendChild(Xt));function hf(t){return Gt===null||Xt===null||Gt.getBoundingClientRect().height===10?t:(Xt.style.setProperty("--size",t.toString()),Xt.getBoundingClientRect().height)}const Wa="adm-grid",Re=we(t=>{const e={"--columns":t.columns.toString()},{gap:n}=t;return n!==void 0&&(Array.isArray(n)?(e["--gap-horizontal"]=Et(n[0]),e["--gap-vertical"]=Et(n[1])):e["--gap"]=Et(n)),Y(t,i.createElement("div",{className:Wa,style:e},t.children))},{Item:t=>{const e=re({span:1},t),n={"--item-span":e.span};return Y(e,i.createElement("div",{className:`${Wa}-item`,style:n,onClick:e.onClick},e.children))}}),gf=s1([Hi,Hd]),wr=()=>[1,0,0,1,0,0],Ha=t=>t[4],Ua=t=>t[5],En=t=>t[0],In=(t,e,n)=>qa([1,0,0,1,e,n],t),vf=(t,e,n=e)=>qa([e,0,0,n,0,0],t),yf=(t,[e,n])=>[t[0]*e+t[2]*n+t[4],t[1]*e+t[3]*n+t[5]],qa=(t,e)=>[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]],Wo="adm-image-viewer",Ya=t=>{const{dragLockRef:e,maxZoom:n}=t,r=i.useRef([]),o=i.useRef(null),s=i.useRef(null),[{matrix:a},l]=Ve(()=>({matrix:wr(),config:{tension:200}})),c=te.useSize(o),u=te.useSize(s),d=i.useRef(!1),f=g=>{if(!c||!u)return{x:{position:0,minX:0,maxX:0},y:{position:0,minY:0,maxY:0}};const b=-c.width/2,p=-c.height/2,x=-u.width/2,S=-u.height/2,C=En(g),w=C*u.width,k=C*u.height,E=b-(w-c.width),I=b,T=p-(k-c.height),Z=p,[M,N]=yf(g,[x,S]);return{x:{position:M,minX:E,maxX:I},y:{position:N,minY:T,maxY:Z}}},v=(g,b,p,x=0)=>[g<=b-x,g>=p+x],y=(g,b,p=!1)=>{if(!c||!u)return g;const x=En(g),S=x*u.width,C=x*u.height,{x:{position:w,minX:k,maxX:E},y:{position:I,minY:T,maxY:Z}}=f(g);if(b==="translate"){let M=w,N=I;return S>c.width?M=p?xe(w,k,E):mr(w,k,E,x*50):M=-S/2,C>c.height?N=p?xe(I,T,Z):mr(I,T,Z,x*50):N=-C/2,In(g,M-w,N-I)}if(b==="scale"&&p){const[M,N]=[S>c.width?xe(w,k,E):-S/2,C>c.height?xe(I,T,Z):-C/2];return In(g,M-w,N-I)}return g};return gf({onDrag:g=>{var b;if(g.first){const{x:{position:x,minX:S,maxX:C}}=f(a.get());r.current=v(x,S,C);return}if(g.pinching)return g.cancel();if(g.tap&&g.elapsedTime>0&&g.elapsedTime<1e3){(b=t.onTap)===null||b===void 0||b.call(t);return}const p=En(a.get());if(e&&(e.current=p!==1),!d.current&&p<=1)l.start({matrix:wr()});else{const x=a.get(),S=[g.offset[0]-Ha(x),g.offset[1]-Ua(x)],C=In(x,...g.last?[S[0]+g.velocity[0]*g.direction[0]*200,S[1]+g.velocity[1]*g.direction[1]*200]:S);l.start({matrix:y(C,"translate",g.last),immediate:!g.last});const{x:{position:w,minX:k,maxX:E}}=f(C);g.last&&r.current.some(I=>I)&&v(w,k,E).some(I=>I)&&(e&&(e.current=!1),l.start({matrix:wr()}))}},onPinch:g=>{var b;d.current=!g.last;const[p]=g.offset;if(p<0)return;let x;n==="auto"?x=c&&u?Math.max(c.height/u.height,c.width/u.width):1:x=n;const S=g.last?xe(p,1,x):p;if((b=t.onZoomChange)===null||b===void 0||b.call(t,S),g.last&&S<=1)l.start({matrix:wr()}),e&&(e.current=!1);else{if(!c)return;const C=a.get(),w=En(C),k=g.origin[0]-c.width/2,E=g.origin[1]-c.height/2;let I=In(C,-k,-E);I=vf(I,S/w),I=In(I,k,E),l.start({matrix:y(I,"scale",g.last),immediate:!g.last}),e&&(e.current=!0)}}},{target:o,drag:{from:()=>[Ha(a.get()),Ua(a.get())],pointer:{touch:!0}},pinch:{from:()=>[En(a.get()),0],pointer:{touch:!0}}}),i.createElement("div",{className:`${Wo}-slide`},i.createElement("div",{className:`${Wo}-control`,ref:o},i.createElement(ke.div,{className:`${Wo}-image-wrapper`,style:{matrix:a}},i.createElement("img",{ref:s,src:t.image,draggable:!1,alt:t.image}))))},Ho="adm-image-viewer",bf=i.forwardRef((t,e)=>{const n=window.innerWidth+hf(16),[{x:r},o]=Ve(()=>({x:t.defaultIndex*n,config:{tension:250,clamp:!0}})),s=t.images.length;function a(u,d=!1){var f;const v=xe(u,0,s-1);(f=t.onIndexChange)===null||f===void 0||f.call(t,v),o.start({x:v*n,immediate:d})}i.useImperativeHandle(e,()=>({swipeTo:a}));const l=i.useRef(!1),c=rr(u=>{if(l.current)return;const[d]=u.offset;if(u.last){const f=Math.floor(d/n),v=f+1,y=Math.min(u.velocity[0]*2e3,n)*u.direction[0];a(xe(Math.round((d+y)/n),f,v))}else o.start({x:d,immediate:!0})},{transform:([u,d])=>[-u,d],from:()=>[r.get(),0],bounds:()=>({left:0,right:(s-1)*n}),rubberband:!0,axis:"x",pointer:{touch:!0}});return i.createElement("div",Object.assign({className:`${Ho}-slides`},c()),i.createElement(ke.div,{className:`${Ho}-indicator`},r.to(u=>`${xe(Math.round(u/n),0,s-1)+1} / ${s}`)),i.createElement(ke.div,{className:`${Ho}-slides-inner`,style:{x:r.to(u=>-u)}},t.images.map((u,d)=>i.createElement(Ya,{key:d,image:u,onTap:t.onTap,maxZoom:t.maxZoom,onZoomChange:f=>{if(f!==1){const v=Math.round(r.get()/n);o.start({x:v*n})}},dragLockRef:l}))))}),kr="adm-image-viewer",Ga={maxZoom:3,getContainer:null,visible:!1},Xa=t=>{var e,n,r;const o=re(Ga,t),s=i.createElement(Qn,{visible:o.visible,disableBodyScroll:!1,opacity:"thick",afterClose:o.afterClose,destroyOnClose:!0,className:(e=o==null?void 0:o.classNames)===null||e===void 0?void 0:e.mask},i.createElement("div",{className:H(`${kr}-content`,(n=o==null?void 0:o.classNames)===null||n===void 0?void 0:n.body)},o.image&&i.createElement(Ya,{image:o.image,onTap:o.onClose,maxZoom:o.maxZoom})),o.image&&i.createElement("div",{className:`${kr}-footer`},(r=o.renderFooter)===null||r===void 0?void 0:r.call(o,o.image),i.createElement(bn,{position:"bottom"})));return Xn(o.getContainer,s)},xf=Object.assign(Object.assign({},Ga),{defaultIndex:0}),Ja=i.forwardRef((t,e)=>{var n,r,o;const s=re(xf,t),[a,l]=i.useState(s.defaultIndex),c=i.useRef(null);i.useImperativeHandle(e,()=>({swipeTo:(f,v)=>{var y;l(f),(y=c.current)===null||y===void 0||y.swipeTo(f,v)}}));const u=i.useCallback(f=>{var v;f!==a&&(l(f),(v=s.onIndexChange)===null||v===void 0||v.call(s,f))},[s.onIndexChange,a]),d=i.createElement(Qn,{visible:s.visible,disableBodyScroll:!1,opacity:"thick",afterClose:s.afterClose,destroyOnClose:!0,className:(n=s==null?void 0:s.classNames)===null||n===void 0?void 0:n.mask},i.createElement("div",{className:H(`${kr}-content`,(r=s==null?void 0:s.classNames)===null||r===void 0?void 0:r.body)},s.images&&i.createElement(bf,{ref:c,defaultIndex:a,onIndexChange:u,images:s.images,onTap:s.onClose,maxZoom:s.maxZoom})),s.images&&i.createElement("div",{className:`${kr}-footer`},(o=s.renderFooter)===null||o===void 0?void 0:o.call(s,s.images[a],a),i.createElement(bn,{position:"bottom"})));return Xn(s.getContainer,d)}),Jt=new Set;function Cf(t){Uo();const e=xn(i.createElement(Xa,Object.assign({},t,{afterClose:()=>{var n;Jt.delete(e),(n=t.afterClose)===null||n===void 0||n.call(t)}})));return Jt.add(e),e}function Sf(t){Uo();const e=xn(i.createElement(Ja,Object.assign({},t,{afterClose:()=>{var n;Jt.delete(e),(n=t.afterClose)===null||n===void 0||n.call(t)}})));return Jt.add(e),e}function Uo(){Jt.forEach(t=>{t.close()}),Jt.clear()}const wf=we(Ja,{show:Sf}),kf=we(Xa,{Multi:wf,show:Cf,clear:Uo}),_t="adm-image-uploader",Qa=t=>{const{locale:e}=Pe(),{url:n,file:r,deletable:o,deleteIcon:s,onDelete:a,imageFit:l}=t,c=i.useMemo(()=>n||(r?URL.createObjectURL(r):""),[n,r]);i.useEffect(()=>()=>{r&&URL.revokeObjectURL(c)},[c,r]);function u(){return t.status==="pending"&&i.createElement("div",{className:`${_t}-cell-mask`},i.createElement("span",{className:`${_t}-cell-loading`},i.createElement(Ao,{color:"white"}),i.createElement("span",{className:`${_t}-cell-mask-message`},e.ImageUploader.uploading)))}function d(){return o&&i.createElement("span",{className:`${_t}-cell-delete`,onClick:a},s)}return i.createElement("div",{className:H(`${_t}-cell`,t.status==="fail"&&`${_t}-cell-fail`)},i.createElement(ea,{className:`${_t}-cell-image`,src:c,fit:l,onClick:t.onClick}),u(),d())},Pt="adm-space",Ef={direction:"horizontal"},$n=t=>{const e=re(Ef,t),{direction:n,onClick:r}=e;return Y(e,i.createElement("div",{className:H(Pt,{[`${Pt}-wrap`]:e.wrap,[`${Pt}-block`]:e.block,[`${Pt}-${n}`]:!0,[`${Pt}-align-${e.align}`]:!!e.align,[`${Pt}-justify-${e.justify}`]:!!e.justify}),onClick:r},i.Children.map(e.children,o=>o!=null&&i.createElement("div",{className:`${Pt}-item`},o))))},et="adm-image-uploader",If={disableUpload:!1,deletable:!0,deleteIcon:i.createElement(Rn,{className:`${et}-cell-delete-icon`}),showUpload:!0,multiple:!1,maxCount:0,defaultValue:[],accept:"image/*",preview:!0,showFailed:!0,imageFit:"cover"},Ra=i.forwardRef((t,e)=>{const{locale:n}=Pe(),r=re(If,t),{columns:o}=r,[s,a]=Ie(r),[l,c]=i.useState([]),u=i.useRef(null),d=te.useSize(u),f=i.useRef(null),[v,y]=i.useState(80),g=i.useRef(null);te.useIsomorphicLayoutEffect(()=>{const z=f.current;if(o&&d&&z){const P=d.width,F=pa(window.getComputedStyle(z).getPropertyValue("height"));y((P-F*(o-1))/o)}},[d==null?void 0:d.width]);const b={"--cell-size":v+"px"};te.useIsomorphicLayoutEffect(()=>{c(z=>z.filter(P=>P.url===void 0?!0:!s.some(F=>F.url===P.url)))},[s]),te.useIsomorphicLayoutEffect(()=>{var z;(z=r.onUploadQueueChange)===null||z===void 0||z.call(r,l.map(P=>({id:P.id,status:P.status})))},[l]);const p=i.useRef(0),{maxCount:x,onPreview:S,renderItem:C}=r;function w(z,P){return bt(this,void 0,void 0,function*(){const{beforeUpload:F}=r;let _=z;return _=yield F==null?void 0:F(z,P),_})}function k(z){return r.showFailed?z:z.filter(P=>P.status!=="fail")}function E(z){var P;return bt(this,void 0,void 0,function*(){z.persist();const{files:F}=z.target;if(!F)return;let _=[].slice.call(F);if(z.target.value="",r.beforeUpload){const V=_.map(O=>w(O,_));yield Promise.all(V).then(O=>{_=O.filter(Boolean)})}if(_.length===0)return;if(x>0){const V=s.length+_.length-x;V>0&&(_=_.slice(0,_.length-V),(P=r.onCountExceed)===null||P===void 0||P.call(r,V))}const B=_.map(V=>({id:p.current++,status:"pending",file:V}));c(V=>[...k(V),...B]);const D=[];yield Promise.all(B.map((V,O)=>bt(this,void 0,void 0,function*(){try{const K=yield r.upload(V.file);D[O]=K,c(W=>W.map(q=>q.id===V.id?Object.assign(Object.assign({},q),{status:"success",url:K.url}):q))}catch(K){throw c(W=>W.map(q=>q.id===V.id?Object.assign(Object.assign({},q),{status:"fail"}):q)),K}}))).catch(V=>console.error(V)),a(V=>V.concat(D))})}const I=i.useRef(null);function T(z){I.current=kf.Multi.show({images:s.map(P=>P.url),defaultIndex:z,onClose:()=>{I.current=null}})}te.useUnmount(()=>{var z;(z=I.current)===null||z===void 0||z.close()});const Z=k(l),M=r.showUpload&&(x===0||s.length+Z.length<x),N=()=>s.map((z,P)=>{var F,_;const B=i.createElement(Qa,{key:(F=z.key)!==null&&F!==void 0?F:P,url:(_=z.thumbnailUrl)!==null&&_!==void 0?_:z.url,deletable:r.deletable,deleteIcon:r.deleteIcon,imageFit:r.imageFit,onClick:()=>{r.preview&&T(P),S&&S(P,z)},onDelete:()=>bt(void 0,void 0,void 0,function*(){var D;(yield(D=r.onDelete)===null||D===void 0?void 0:D.call(r,z))!==!1&&a(s.filter((O,K)=>K!==P))})});return C?C(B,z,s):B}),U=i.createElement(i.Fragment,null,N(),l.map(z=>!r.showFailed&&z.status==="fail"?null:i.createElement(Qa,{key:z.id,file:z.file,deletable:z.status!=="pending",deleteIcon:r.deleteIcon,status:z.status,imageFit:r.imageFit,onDelete:()=>{c(l.filter(P=>P.id!==z.id))}})),i.createElement("div",{className:`${et}-upload-button-wrap`,style:M?void 0:{display:"none"}},r.children||i.createElement("span",{className:`${et}-cell ${et}-upload-button`,role:"button","aria-label":n.ImageUploader.upload},i.createElement("span",{className:`${et}-upload-button-icon`},i.createElement(Qu,null))),!r.disableUpload&&i.createElement("input",{"aria-label":n.ImageUploader.upload,ref:g,capture:r.capture,accept:r.accept,multiple:r.multiple,type:"file",className:`${et}-input`,onChange:E})));return i.useImperativeHandle(e,()=>({get nativeElement(){return g.current}})),Y(r,i.createElement("div",{className:et,ref:u},o?i.createElement(Re,{className:`${et}-grid`,columns:o,style:b},i.createElement("div",{className:`${et}-gap-measure`,ref:f}),U.props.children):i.createElement($n,{className:`${et}-space`,wrap:!0,block:!0},U.props.children)))});function el({onEnterPress:t,onKeyDown:e,nativeInputRef:n,enterKeyHint:r}){const o=s=>{t&&(s.code==="Enter"||s.keyCode===13)&&t(s),e==null||e(s)};return te.useIsomorphicLayoutEffect(()=>{const s=n.current;if(!(!r||!s))return s.setAttribute("enterkeyhint",r),()=>{s.removeAttribute("enterkeyhint")}},[r]),o}const Er="adm-input",$f={defaultValue:"",clearIcon:i.createElement(Ru,null),onlyShowClearWhenFocus:!0},qo=i.forwardRef((t,e)=>{const{locale:n,input:r={}}=Pe(),o=re($f,r,t),[s,a]=Ie(o),[l,c]=i.useState(!1),u=i.useRef(!1),d=i.useRef(null),f=el({onEnterPress:o.onEnterPress,onKeyDown:o.onKeyDown,nativeInputRef:d,enterKeyHint:o.enterKeyHint});i.useImperativeHandle(e,()=>({clear:()=>{a("")},focus:()=>{var g;(g=d.current)===null||g===void 0||g.focus()},blur:()=>{var g;(g=d.current)===null||g===void 0||g.blur()},get nativeElement(){return d.current}}));function v(){let g=s;if(o.type==="number"){const b=g&&xe(parseFloat(g),o.min,o.max).toString();Number(g)!==Number(b)&&(g=b)}g!==s&&a(g)}const y=!o.clearable||!s||o.readOnly?!1:o.onlyShowClearWhenFocus?l:!0;return Y(o,i.createElement("div",{className:H(`${Er}`,o.disabled&&`${Er}-disabled`)},i.createElement("input",{ref:d,className:`${Er}-element`,value:s,onChange:g=>{a(g.target.value)},onFocus:g=>{var b;c(!0),(b=o.onFocus)===null||b===void 0||b.call(o,g)},onBlur:g=>{var b;c(!1),v(),(b=o.onBlur)===null||b===void 0||b.call(o,g)},onPaste:o.onPaste,id:o.id,placeholder:o.placeholder,disabled:o.disabled,readOnly:o.readOnly,maxLength:o.maxLength,minLength:o.minLength,max:o.max,min:o.min,autoComplete:o.autoComplete,enterKeyHint:o.enterKeyHint,autoFocus:o.autoFocus,pattern:o.pattern,inputMode:o.inputMode,type:o.type,name:o.name,autoCapitalize:o.autoCapitalize,autoCorrect:o.autoCorrect,onKeyDown:f,onKeyUp:o.onKeyUp,onCompositionStart:g=>{var b;u.current=!0,(b=o.onCompositionStart)===null||b===void 0||b.call(o,g)},onCompositionEnd:g=>{var b;u.current=!1,(b=o.onCompositionEnd)===null||b===void 0||b.call(o,g)},onClick:o.onClick,step:o.step,role:o.role,"aria-valuenow":o["aria-valuenow"],"aria-valuemax":o["aria-valuemax"],"aria-valuemin":o["aria-valuemin"],"aria-label":o["aria-label"]}),y&&i.createElement("div",{className:`${Er}-clear`,onMouseDown:g=>{g.preventDefault()},onClick:()=>{var g,b;a(""),(g=o.onClear)===null||g===void 0||g.call(o),F1()&&u.current&&(u.current=!1,(b=d.current)===null||b===void 0||b.blur())},"aria-label":n.Input.clear},o.clearIcon)))}),tt="adm-jumbo-tabs",tl=we(t=>{var e;const n=i.useRef(null),r=i.useRef(null),o={};let s=null;const a=[];Fo(t.children,(f,v)=>{if(!i.isValidElement(f))return;const y=f.key;if(typeof y!="string")return;v===0&&(s=y);const g=a.push(f);o[y]=g-1});const[l,c]=Ie({value:t.activeKey,defaultValue:(e=t.defaultActiveKey)!==null&&e!==void 0?e:s,onChange:f=>{var v;f!==null&&((v=t.onChange)===null||v===void 0||v.call(t,f))}}),{scrollLeft:u,animate:d}=U1(n,o[l]);return ua(()=>{d(!0)},r),Y(t,i.createElement("div",{className:tt,ref:r},i.createElement("div",{className:`${tt}-header`},i.createElement(q1,{scrollTrackRef:n}),i.createElement(ke.div,{className:`${tt}-tab-list`,ref:n,scrollLeft:u},a.map(f=>Y(f.props,i.createElement("div",{key:f.key,className:`${tt}-tab-wrapper`},i.createElement("div",{onClick:()=>{const{key:v}=f;f.props.disabled||v!=null&&c(v.toString())},className:H(`${tt}-tab`,{[`${tt}-tab-active`]:f.key===l,[`${tt}-tab-disabled`]:f.props.disabled})},i.createElement("div",{className:`${tt}-tab-title`},f.props.title),i.createElement("div",{className:`${tt}-tab-description`},f.props.description))))))),a.map(f=>{if(f.props.children===void 0)return null;const v=f.key===l;return i.createElement(Jn,{key:f.key,active:v,forceRender:f.props.forceRender,destroyOnClose:f.props.destroyOnClose},i.createElement("div",{className:`${tt}-content`,style:{display:v?"block":"none"}},f.props.children))})))},{Tab:()=>null}),Qt="adm-nav-bar",nl=i.createElement(td,null),_f=t=>{const{navBar:e={}}=Pe(),n=re(e,t),{back:r,backIcon:o,backArrow:s}=n,a=e.backIcon||nl,l=Ar(nl,e.backIcon,s===!0?a:s,o===!0?a:o);return Y(n,i.createElement("div",{className:H(Qt)},i.createElement("div",{className:`${Qt}-left`,role:"button"},r!==null&&i.createElement("div",{className:`${Qt}-back`,onClick:n.onBack},l&&i.createElement("span",{className:`${Qt}-back-arrow`},l),i.createElement("span",{"aria-hidden":"true"},r)),n.left),i.createElement("div",{className:`${Qt}-title`},n.children),i.createElement("div",{className:`${Qt}-right`},n.right)))},_n="adm-page-indicator",Pf={color:"primary",direction:"horizontal"},Ff=i.memo(t=>{const e=re(Pf,t),n=[];for(let r=0;r<e.total;r++)n.push(i.createElement("div",{key:r,className:H(`${_n}-dot`,{[`${_n}-dot-active`]:e.current===r})}));return Y(e,i.createElement("div",{className:H(_n,`${_n}-${e.direction}`,`${_n}-color-${e.color}`)},n))}),rl=i.createContext(null),Mf={disabled:!1,defaultValue:null},Nf=t=>{const e=re(Mf,t),[n,r]=Ie({value:e.value,defaultValue:e.defaultValue,onChange:o=>{var s;o!==null&&((s=e.onChange)===null||s===void 0||s.call(e,o))}});return i.createElement(rl.Provider,{value:{value:n===null?[]:[n],check:o=>{r(o)},uncheck:()=>{},disabled:e.disabled}},e.children)},Ft="adm-radio",Tf={defaultChecked:!1},Yo=we(t=>{const e=re(Tf,t),n=i.useContext(rl);let[r,o]=Ie({value:e.checked,defaultValue:e.defaultChecked,onChange:e.onChange}),s=e.disabled;const{value:a}=e;n&&a!==void 0&&(r=n.value.includes(a),o=c=>{var u;c?n.check(a):n.uncheck(a),(u=e.onChange)===null||u===void 0||u.call(e,c)},s=s||n.disabled);const l=()=>e.icon?i.createElement("div",{className:`${Ft}-custom-icon`},e.icon(r)):i.createElement("div",{className:`${Ft}-icon`},r&&i.createElement(Pa,null));return Y(e,i.createElement("label",{onClick:e.onClick,className:H(Ft,{[`${Ft}-checked`]:r,[`${Ft}-disabled`]:s,[`${Ft}-block`]:e.block})},i.createElement(Fa,{type:"radio",checked:r,onChange:o,disabled:s,id:e.id}),l(),e.children&&i.createElement("div",{className:`${Ft}-content`},e.children)))},{Group:Nf}),yt="adm-search-bar",Of={clearable:!0,onlyShowClearWhenFocus:!1,showCancelButton:!1,defaultValue:"",clearOnCancel:!0},ol=i.forwardRef((t,e)=>{const{locale:n,searchBar:r={}}=Pe(),o=re(Of,r,{cancelText:n.common.cancel},t),s=Ar(i.createElement(rd,null),r.searchIcon,t.icon,t.searchIcon),[a,l]=Ie(o),[c,u]=i.useState(!1),d=i.useRef(null),f=i.useRef(!1);i.useImperativeHandle(e,()=>({clear:()=>{var y;return(y=d.current)===null||y===void 0?void 0:y.clear()},focus:()=>{var y;return(y=d.current)===null||y===void 0?void 0:y.focus()},blur:()=>{var y;return(y=d.current)===null||y===void 0?void 0:y.blur()},get nativeElement(){var y,g;return(g=(y=d.current)===null||y===void 0?void 0:y.nativeElement)!==null&&g!==void 0?g:null}}));const v=()=>{let y;return typeof o.showCancelButton=="function"?y=o.showCancelButton(c,a):y=o.showCancelButton&&c,y&&i.createElement("div",{className:`${yt}-suffix`},i.createElement(ot,{fill:"none",className:`${yt}-cancel-button`,onClick:()=>{var g,b,p;o.clearOnCancel&&((g=d.current)===null||g===void 0||g.clear()),(b=d.current)===null||b===void 0||b.blur(),(p=o.onCancel)===null||p===void 0||p.call(o)},onMouseDown:g=>{g.preventDefault()}},o.cancelText))};return Y(o,i.createElement("div",{className:H(yt,{[`${yt}-active`]:c})},i.createElement("div",{className:`${yt}-input-box`},s&&i.createElement("div",{className:`${yt}-input-box-icon`},s),i.createElement(qo,{ref:d,className:H(`${yt}-input`,{[`${yt}-input-without-icon`]:!s}),value:a,onChange:l,maxLength:o.maxLength,autoFocus:o.autoFocus,placeholder:o.placeholder,clearable:o.clearable,onlyShowClearWhenFocus:o.onlyShowClearWhenFocus,onFocus:y=>{var g;u(!0),(g=o.onFocus)===null||g===void 0||g.call(o,y)},onBlur:y=>{var g;u(!1),(g=o.onBlur)===null||g===void 0||g.call(o,y)},onClear:o.onClear,type:"search",enterKeyHint:"search",onEnterPress:()=>{var y,g;f.current||((y=d.current)===null||y===void 0||y.blur(),(g=o.onSearch)===null||g===void 0||g.call(o,a))},"aria-label":n.SearchBar.name,onCompositionStart:y=>{var g;f.current=!0,(g=o.onCompositionStart)===null||g===void 0||g.call(o,y)},onCompositionEnd:y=>{var g;f.current=!1,(g=o.onCompositionEnd)===null||g===void 0||g.call(o,y)}})),v()))}),sl=t=>Y(t,i.createElement("div",{className:"adm-swiper-item",onClick:t.onClick},t.children));function Df(t){const[e,n]=i.useState(t),r=i.useRef(e);return i.useEffect(()=>{r.current=e},[e]),[e,n,r]}function Af(t,e){const n=Object.keys(t),r=Object.keys(e),o=new Set([...n,...r]),s={};return o.forEach(a=>{const l=t[a],c=e[a];typeof l=="function"&&typeof c=="function"?s[a]=function(...u){l(...u),c(...u)}:s[a]=l||c}),s}const nt="adm-swiper",Lf={mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp"},Bf={defaultIndex:0,allowTouchMove:!0,autoplay:!1,autoplayInterval:3e3,loop:!1,direction:"horizontal",slideSize:100,trackOffset:0,stuckAtBoundary:!0,rubberband:!0,stopPropagation:[]};let Ir;const zf=i.forwardRef(Ri.staged((t,e)=>{const n=re(Bf,t),{direction:r,total:o,children:s,indicator:a}=n,[l]=i.useState({}),c=i.useRef(null),u=r==="vertical",d=n.slideSize/100,f=n.trackOffset/100,{validChildren:v,count:y,renderChildren:g}=i.useMemo(()=>{let p=0,x,S;return typeof s=="function"?x=s:S=i.Children.map(s,C=>!i.isValidElement(C)||C.type!==sl?null:(p++,C)),{renderChildren:x,validChildren:S,count:p}},[s]),b=o!=null?o:y;return b===0||!v&&!g?null:()=>{let p=n.loop;d*(b-1)<1&&(p=!1);const x=i.useRef(null);function S(){const j=x.current;return j?(u?j.offsetHeight:j.offsetWidth)*n.slideSize/100:0}const[C,w,k]=te.useGetState(n.defaultIndex),[E,I,T]=Df(!1);function Z(j){let G=0,oe=b-1;return n.stuckAtBoundary&&(G+=f/d,oe-=(1-d-f)/d),xe(j,G,oe)}const[{position:M},N]=Ve(()=>({position:Z(C)*100,config:{tension:200,friction:30},onRest:()=>{if(T.current||!p)return;const j=M.get(),G=100*b,oe=Go(j,G);oe!==j&&N.start({position:oe,immediate:!0})}}),[b]),U=i.useRef(null);function z(){var j;(j=U.current)===null||j===void 0||j.call(U),T.current=!1}const P=rr(j=>{if(U.current=j.cancel,!j.intentional||(j.first&&!Ir&&(Ir=l),Ir!==l))return;Ir=j.last?void 0:l;const G=S();if(!G)return;const oe=u?1:0,ge=j.offset[oe],Ce=j.direction[oe],Tr=j.velocity[oe];if(I(!0),!j.last)N.start({position:ge*100/G,immediate:!0});else{const Mn=Math.floor(ge/G),sh=Mn+1,ih=Math.round((ge+Tr*2e3*Ce)/G);F(xe(ih,Mn,sh)),window.setTimeout(()=>{I(!1)})}},{transform:([j,G])=>[-j,-G],from:()=>{const j=S();return[M.get()/100*j,M.get()/100*j]},triggerAllEvents:!0,bounds:()=>{if(p)return{};const j=S(),G=Z(0)*j,oe=Z(b-1)*j;return u?{top:G,bottom:oe}:{left:G,right:oe}},rubberband:n.rubberband,axis:u?"y":"x",preventScroll:!u,pointer:{touch:!0}});function F(j,G=!1){var oe;const ge=Math.round(j),Ce=p?Go(ge,b):xe(ge,0,b-1);Ce!==k()&&((oe=n.onIndexChange)===null||oe===void 0||oe.call(n,Ce)),w(Ce),N.start({position:(p?ge:Z(ge))*100,immediate:G})}function _(){F(Math.round(M.get()/100)+1)}function B(){F(Math.round(M.get()/100)-1)}i.useImperativeHandle(e,()=>({swipeTo:F,swipeNext:_,swipePrev:B})),te.useIsomorphicLayoutEffect(()=>{const j=b-1;C>j&&F(j,!0)});const{autoplay:D,autoplayInterval:V}=n,O=()=>{c.current=window.setTimeout(()=>{D==="reverse"?B():_(),O()},V)};i.useEffect(()=>{if(!(!D||E))return O(),()=>{c.current&&window.clearTimeout(c.current)}},[D,V,E,b]);function K(j,G){let oe={};return p&&(oe={[u?"y":"x"]:M.to(ge=>{let Ce=-ge+j*100;const Tr=b*100,Mn=Tr/2;return Ce=Go(Ce+Mn,Tr)-Mn,`${Ce}%`}),[u?"top":"left"]:`-${j*100}%`}),i.createElement(ke.div,{className:H(`${nt}-slide`,{[`${nt}-slide-active`]:C===j}),style:oe,key:j},G)}function W(){if(g&&o){const G=Math.max(C-2,0),oe=Math.min(C+2,o-1),ge=[];for(let Ce=G;Ce<=oe;Ce+=1)ge.push(K(Ce,g(Ce)));return i.createElement(i.Fragment,null,i.createElement("div",{className:`${nt}-slide-placeholder`,style:{width:`${G*100}%`}}),ge)}return i.Children.map(v,(j,G)=>K(G,j))}function q(){return p?i.createElement("div",{className:`${nt}-track-inner`},W()):i.createElement(ke.div,{className:`${nt}-track-inner`,style:{[u?"y":"x"]:M.to(j=>`${-j}%`)}},W())}const ne={"--slide-size":`${n.slideSize}%`,"--track-offset":`${n.trackOffset}%`},ee=Object.assign({},n.allowTouchMove?P():{}),Ne={};for(const j of n.stopPropagation){const G=Lf[j];Ne[G]=function(oe){oe.stopPropagation()}}const X=Af(ee,Ne);let ue=null;return typeof a=="function"?ue=a(b,C):a!==!1&&(ue=i.createElement("div",{className:`${nt}-indicator`},i.createElement(Ff,Object.assign({},n.indicatorProps,{total:b,current:C,direction:r})))),Y(n,i.createElement("div",{className:H(nt,`${nt}-${r}`),style:ne},i.createElement("div",Object.assign({ref:x,className:H(`${nt}-track`,{[`${nt}-track-allow-touch-move`]:n.allowTouchMove}),onClickCapture:j=>{T.current&&j.stopPropagation(),z()}},X),q()),ue))}}));function Go(t,e){const n=t%e;return n<0?n+e:n}const $r=we(zf,{Item:sl}),Vf=()=>null,it="adm-tab-bar",Zf={safeArea:!1},Xo=we(t=>{var e;const n=re(Zf,t);let r=null;const o=[];Fo(n.children,(l,c)=>{if(!i.isValidElement(l))return;const u=l.key;typeof u=="string"&&(c===0&&(r=u),o.push(l))});const[s,a]=Ie({value:n.activeKey,defaultValue:(e=n.defaultActiveKey)!==null&&e!==void 0?e:r,onChange:l=>{var c;l!==null&&((c=n.onChange)===null||c===void 0||c.call(n,l))}});return Y(n,i.createElement("div",{className:it},i.createElement("div",{className:`${it}-wrap`},o.map(l=>{const c=l.key===s;function u(){const d=l.props.icon&&i.createElement("div",{className:`${it}-item-icon`},typeof l.props.icon=="function"?l.props.icon(c):l.props.icon),f=l.props.title&&i.createElement("div",{className:H(`${it}-item-title`,!!d&&`${it}-item-title-with-icon`)},typeof l.props.title=="function"?l.props.title(c):l.props.title);return d?i.createElement(i.Fragment,null,i.createElement(na,{content:l.props.badge,className:`${it}-icon-badge`},d),f):f?i.createElement(na,{content:l.props.badge,className:`${it}-title-badge`},f):null}return Y(l.props,i.createElement("div",{key:l.key,onClick:()=>{var d,f;const{key:v}=l;v!=null&&(a(v.toString()),(f=(d=l.props).onClick)===null||f===void 0||f.call(d))},className:H(`${it}-item`,{[`${it}-item-active`]:c})},u()))})),n.safeArea&&i.createElement(bn,{position:"bottom"})))},{Item:Vf}),il="adm-tag",jf={default:"var(--adm-color-text-secondary, #666666)",primary:"var(--adm-color-primary, #1677ff)",success:"var(--adm-color-success, #00b578)",warning:"var(--adm-color-warning, #ff8f1f)",danger:"var(--adm-color-danger, #ff3141)"},Kf={color:"default",fill:"solid",round:!1},Jo=t=>{var e;const n=re(Kf,t),r=(e=jf[n.color])!==null&&e!==void 0?e:n.color,o={"--border-color":r,"--text-color":n.fill==="outline"?r:"#ffffff","--background-color":n.fill==="outline"?"transparent":r};return Y(n,i.createElement("span",{style:o,onClick:n.onClick,className:H(il,{[`${il}-round`]:n.round})},n.children))},Pn="adm-text-area",al={rows:2,showCount:!1,autoSize:!1,defaultValue:""},ll=i.forwardRef((t,e)=>{const n=re(al,t),{autoSize:r,showCount:o,maxLength:s}=n,[a,l]=Ie(Object.assign(Object.assign({},n),{value:n.value===null?"":n.value}));n.value;const c=i.useRef(null),u=i.useRef("auto"),d=i.useRef(null),f=el({onEnterPress:n.onEnterPress,onKeyDown:n.onKeyDown,nativeInputRef:c,enterKeyHint:n.enterKeyHint});i.useImperativeHandle(e,()=>({clear:()=>{l("")},focus:()=>{var p;(p=c.current)===null||p===void 0||p.focus()},blur:()=>{var p;(p=c.current)===null||p===void 0||p.blur()},get nativeElement(){return c.current}})),te.useIsomorphicLayoutEffect(()=>{if(!r)return;const p=c.current,x=d.current;if(!p||(p.style.height=u.current,!x))return;let S=x.scrollHeight;if(typeof r=="object"){const C=window.getComputedStyle(p),w=parseFloat(C.lineHeight);r.minRows&&(S=Math.max(S,r.minRows*w)),r.maxRows&&(S=Math.min(S,r.maxRows*w))}u.current=`${S}px`,p.style.height=`${S}px`},[a,r]);const v=i.useRef(!1);let y;const g=jo(a).length;typeof o=="function"?y=o(g,s):o&&(y=i.createElement("div",{className:`${Pn}-count`},s===void 0?g:g+"/"+s));let b=n.rows;return typeof r=="object"&&(r.maxRows&&b>r.maxRows&&(b=r.maxRows),r.minRows&&b<r.minRows&&(b=r.minRows)),Y(n,i.createElement("div",{className:Pn},i.createElement("textarea",{ref:c,className:`${Pn}-element`,rows:b,value:a,placeholder:n.placeholder,onChange:p=>{let x=p.target.value;s&&!v.current&&(x=jo(x).slice(0,s).join("")),l(x)},id:n.id,onCompositionStart:p=>{var x;v.current=!0,(x=n.onCompositionStart)===null||x===void 0||x.call(n,p)},onCompositionEnd:p=>{var x;if(v.current=!1,s){const S=p.target.value;l(jo(S).slice(0,s).join(""))}(x=n.onCompositionEnd)===null||x===void 0||x.call(n,p)},autoComplete:n.autoComplete,autoFocus:n.autoFocus,disabled:n.disabled,readOnly:n.readOnly,name:n.name,onFocus:n.onFocus,onBlur:n.onBlur,onClick:n.onClick,onKeyDown:f}),y,r&&i.createElement("textarea",{ref:d,className:`${Pn}-element ${Pn}-element-hidden`,value:a,rows:b,"aria-hidden":!0,readOnly:!0})))});ll.defaultProps=al;const at="adm-toast",Wf={maskClickable:!0,stopPropagation:["click"]},Hf=t=>{const e=re(Wf,t),{maskClickable:n,content:r,icon:o,position:s}=e,a=i.useMemo(()=>{if(o==null)return null;switch(o){case"success":return i.createElement(wi,{className:`${at}-icon-success`});case"fail":return i.createElement(Rn,{className:`${at}-icon-fail`});case"loading":return i.createElement(Ao,{color:"white",className:`${at}-loading`});default:return o}},[o]),l=i.useMemo(()=>{switch(s){case"top":return"20%";case"bottom":return"80%";default:return"50%"}},[s]);return i.createElement(Qn,{visible:e.visible,destroyOnClose:!0,opacity:0,disableBodyScroll:!n,getContainer:e.getContainer,afterClose:e.afterClose,style:Object.assign({pointerEvents:n?"none":"auto"},e.maskStyle),className:H(`${at}-mask`,e.maskClassName),stopPropagation:e.stopPropagation},i.createElement("div",{className:H(`${at}-wrap`)},i.createElement("div",{style:{top:l},className:H(`${at}-main`,o?`${at}-main-icon`:`${at}-main-text`)},a&&i.createElement("div",{className:`${at}-icon`},a),i.createElement(b1,null,r))))};let Ae=null,Qo=null;const _r={duration:2e3,position:"center",maskClickable:!0},Uf=t=>i.createElement(Hf,Object.assign({},t));function qf(t){var e;const n=re(_r,typeof t=="string"?{content:t}:t),r=i.createElement(Uf,Object.assign({},n,{onClose:()=>{Ae=null}}));return Ae?!((e=Ae.isRendered)===null||e===void 0)&&e.call(Ae)?Ae.replace(r):(Ae.close(),Ae=xn(r)):Ae=xn(r),Qo&&window.clearTimeout(Qo),n.duration!==0&&(Qo=window.setTimeout(()=>{cl()},n.duration)),Ae}function cl(){Ae==null||Ae.close(),Ae=null}function Yf(t){t.duration!==void 0&&(_r.duration=t.duration),t.position!==void 0&&(_r.position=t.position),t.maskClickable!==void 0&&(_r.maskClickable=t.maskClickable)}const Ro={show:qf,clear:cl,config:Yf},ul={type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock","x-component-props":{showDivider:!1}}}},Gf=t=>{const{t:e}=de(),n=$.useFieldSchema(),{dn:r}=h.useDesignable(),o=$.useField(),s={dn:r,field:o,fieldSchema:n};return m.jsx(h.SchemaSettingsDropdown,ae(L({title:m.jsx(le.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)"},icon:m.jsx(Te.MenuOutlined,{}),type:"dashed",children:e("Menu configuration")})},s),{children:m.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:e("Delete menu block")},breakRemoveOn:{"x-component":"Grid"}},"remove")}))},Fn=()=>{const{dn:t}=h.useDesignable(),e=$.useFieldSchema(),n=$.useField();return{onUpdateComponentProps:te.useMemoizedFn(o=>fe(null,null,function*(){Le.set(e,"x-component-props",o),n.componentProps=L(L({},n.componentProps),o),yield t.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"],"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}}),yield t.refresh()}))}},dl={properties:{name:{type:"string",title:ut("Menu name"),required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{"x-decorator":"FormItem","x-component":"IconPicker",title:ut("Icon"),"x-component-props":{}}}},Xf=t=>{const{icon:e,name:n}=t,r=h.useDesigner(),o=ie.useNavigate(),s=ie.useLocation(),a=$.useFieldSchema(),l=h.useCompile(),c=ie.useParams(),u=()=>{const d=s.pathname.endsWith("/")?s.pathname.slice(0,-1):s.pathname;o(c.name?`/mobile/${a["x-uid"]}`:`${d}/${a["x-uid"]}`)};return m.jsxs(h.SortableItem,{className:h.cx("tb-mobile-menu-item",h.css`
142
142
  width: 100%;
143
143
  background: var(--adm-color-background);
144
144
  > .adm-list-item {
145
145
  background: inherit;
146
146
  }
147
- `),children:[f.jsx(Xt.Item,ae(L({arrow:!0,clickable:!0},t),{prefix:f.jsx(p.Icon,{type:e}),onClick:u,children:l(n)})),f.jsx(o,{})]})},sm=()=>{const{t}=de(),{onUpdateComponentProps:e}=Nn(),n=$.useField();return f.jsxs(p.GeneralSchemaDesigner,{children:[f.jsx(p.SchemaSettingsModalItem,{title:t("Edit menu info"),initialValues:n.componentProps,schema:vl,onSubmit:e}),f.jsx(p.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete menu item?")},breakRemoveOn:{"x-component":"MMenu"}},"remove")]})},bl=rm;bl.Designer=sm;const im=p.createStyles(({token:t,css:e})=>({mobileMenu:e`
147
+ `),children:[m.jsx(Yt.Item,ae(L({arrow:!0,clickable:!0},t),{prefix:m.jsx(h.Icon,{type:e}),onClick:u,children:l(n)})),m.jsx(r,{})]})},Jf=()=>{const{t}=de(),{onUpdateComponentProps:e}=Fn(),n=$.useField();return m.jsxs(h.GeneralSchemaDesigner,{children:[m.jsx(h.SchemaSettingsModalItem,{title:t("Edit menu info"),initialValues:n.componentProps,schema:dl,onSubmit:e}),m.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete menu item?")},breakRemoveOn:{"x-component":"MMenu"}},"remove")]})},fl=Xf;fl.Designer=Jf;const Qf=h.createStyles(({token:t,css:e})=>({mobileMenu:e`
148
148
  --adm-color-primary: ${t.colorPrimary};
149
149
  --adm-color-primary-hover: ${t.colorPrimaryHover};
150
150
  --adm-color-primary-active: ${t.colorPrimaryActive};
@@ -155,7 +155,7 @@
155
155
  background: ${t.colorBgContainer};
156
156
  width: 100%;
157
157
  margin-bottom: var(--tb-spacing);
158
- `})),is=t=>{const{styles:e}=im(),n=p.useDesigner(),o=$.useFieldSchema(),{insertBeforeEnd:r,designable:s}=p.useDesignable(),{t:a}=de(),l=c=>{const u={page:gl};return r({type:"void",title:c.name,"x-component":"MMenu.Item","x-component-props":c,"x-designer":"MMenu.Item.Designer",properties:u})};return f.jsx(p.SortableItem,{className:p.cx("tb-mobile-menu",e.mobileMenu),children:f.jsxs(Xt,{children:[s&&f.jsx(Xt.Item,{children:f.jsx(n,{})}),f.jsx(p.DndContext,{children:f.jsx(p.SchemaComponent,{onlyRenderProperties:!0,schema:o})}),s?f.jsx(Xt.Item,{children:f.jsx(p.SchemaInitializerActionModal,{buttonText:a("Add menu item"),title:a("Add menu item"),schema:vl,onSubmit:l})}):null]})})};is.Item=bl,is.Designer=om;const Bo=(t,e)=>t.reduceProperties((o,r)=>o||r["x-component"]===e&&r),am=t=>Bo(t,"Grid"),lm=["Grid","Grid.Row"],cm=["Grid.Col"],as=(t,e)=>{if(!t)return 0;let n=0;return cm.includes(t["x-component"])&&(n+=1),n>=e||lm.includes(t["x-component"])&&t.mapProperties(o=>{n+=as(o,e)}),n},um=()=>{const{t}=de(),e=$.useFieldSchema(),{onUpdateComponentProps:n}=Nn(),o=$.useField(),{dn:r}=p.useDesignable(),s=ie.useNavigate(),a=Bo(e,"MTabBar"),l=a&&o.componentProps.tabBarEnabled!==!1,c={dn:r,field:o,fieldSchema:e};return f.jsx(p.SchemaSettingsDropdown,ae(L({title:f.jsx(le.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:f.jsx(Te.MenuOutlined,{}),type:"dashed",children:t("App level Configuration")})},c),{children:f.jsx(p.SchemaSettingsSwitchItem,{checked:l,title:t("Enable TabBar"),onChange:u=>fe(this,null,function*(){if(u&&!a){const d=Bo(e,"MPage");yield r.remove(d),yield r.insertBeforeEnd({type:"void","x-component":"MTabBar","x-component-props":{},name:"tabBar",properties:{[$.uid()]:{type:"void","x-component":"MTabBar.Item","x-designer":"MTabBar.Item.Designer","x-component-props":{icon:"HomeOutlined",title:dt("Untitled")},properties:{page:d.toJSON()}}}})}yield n({tabBarEnabled:u}),u===!1&&s("../")})})}))},dm=p.createStyles(({token:t,css:e})=>({mobileContainer:e`
158
+ `})),es=t=>{const{styles:e}=Qf(),n=h.useDesigner(),r=$.useFieldSchema(),{insertBeforeEnd:o,designable:s}=h.useDesignable(),{t:a}=de(),l=c=>{const u={page:ul};return o({type:"void",title:c.name,"x-component":"MMenu.Item","x-component-props":c,"x-designer":"MMenu.Item.Designer",properties:u})};return m.jsx(h.SortableItem,{className:h.cx("tb-mobile-menu",e.mobileMenu),children:m.jsxs(Yt,{children:[s&&m.jsx(Yt.Item,{children:m.jsx(n,{})}),m.jsx(h.DndContext,{children:m.jsx(h.SchemaComponent,{onlyRenderProperties:!0,schema:r})}),s?m.jsx(Yt.Item,{children:m.jsx(h.SchemaInitializerActionModal,{buttonText:a("Add menu item"),title:a("Add menu item"),schema:dl,onSubmit:l})}):null]})})};es.Item=fl,es.Designer=Gf;const Pr=(t,e)=>t.reduceProperties((r,o)=>r||o["x-component"]===e&&o),Rf=t=>Pr(t,"Grid"),em=["Grid","Grid.Row"],tm=["Grid.Col"],ts=(t,e)=>{if(!t)return 0;let n=0;return tm.includes(t["x-component"])&&(n+=1),n>=e||em.includes(t["x-component"])&&t.mapProperties(r=>{n+=ts(r,e)}),n},nm=()=>{const{t}=de(),e=$.useFieldSchema(),{onUpdateComponentProps:n}=Fn(),r=$.useField(),{dn:o}=h.useDesignable(),s=ie.useNavigate(),a=Pr(e,"MTabBar"),l=a&&r.componentProps.tabBarEnabled!==!1,c={dn:o,field:r,fieldSchema:e};return m.jsx(h.SchemaSettingsDropdown,ae(L({title:m.jsx(le.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:m.jsx(Te.MenuOutlined,{}),type:"dashed",children:t("App level Configuration")})},c),{children:m.jsx(h.SchemaSettingsSwitchItem,{checked:l,title:t("Enable TabBar"),onChange:u=>fe(null,null,function*(){if(u&&!a){const d=Pr(e,"MPage");yield o.remove(d),yield o.insertBeforeEnd({type:"void","x-component":"MTabBar","x-component-props":{},name:"tabBar",properties:{[$.uid()]:{type:"void","x-component":"MTabBar.Item","x-designer":"MTabBar.Item.Designer","x-component-props":{icon:"HomeOutlined",title:ut("Untitled")},properties:{page:d.toJSON()}}}})}yield n({tabBarEnabled:u}),u===!1&&s("../")})})}))},rm=h.createStyles(({token:t,css:e})=>({mobileContainer:e`
159
159
  --adm-color-primary: ${t.colorPrimary};
160
160
 
161
161
  & > .general-schema-designer > .general-schema-designer-icons {
@@ -179,24 +179,24 @@
179
179
  bottom: 0;
180
180
  left: 0;
181
181
  z-index: 1000;
182
- `})),yl=(t,e)=>t.reduceProperties((n,o)=>{if(n)return n;if(o["x-component"]==="MTabBar")return yl(o,e);if(o["x-component"]==="MTabBar.Item"&&e===o["x-uid"])return o}),fm=()=>{const{name:t}=ie.useParams(),e=$.useFieldSchema();if(!t)return f.jsx(f.Fragment,{});const n=yl(e.properties.tabBar,t.replace("tab_",""));return n?f.jsx(p.SchemaComponent,{schema:n}):f.jsx(ie.Navigate,{replace:!0,to:"../"})},ls=t=>{var b,h;const{styles:e}=dm(),{token:n}=p.useToken(),o=p.useDesigner(),r=$.useFieldSchema(),s=ie.useNavigate(),a=ie.useParams(),l=ie.useLocation(),u=$.useField().componentProps.tabBarEnabled!==!1,d=(b=r==null?void 0:r.properties)==null?void 0:b.tabBar,m=d!=null&&d.properties?Object.keys(d.properties)[0]:null;let v=null;return m&&(v=(h=d==null?void 0:d.properties[m])==null?void 0:h["x-uid"]),i.useEffect(()=>{if(v&&!a.name){const y=l.pathname.endsWith("/")?l.pathname.slice(0,-1):l.pathname;s(`${y}/tab_${v}`,{replace:!0})}},[l.pathname,s,a.name,v]),f.jsx(p.MobileProvider,{children:f.jsxs(p.SortableItem,{eid:"tb-mobile-scroll-wrapper",className:p.cx("tb-mobile-container",e.mobileContainer),children:[f.jsx(o,{}),f.jsx("div",{style:{paddingBottom:v?n.paddingLG*2:0},className:"tb-mobile-container-content",children:v?f.jsx(fm,{}):f.jsx(p.SchemaComponent,{filterProperties:y=>y["x-component"]!=="MTabBar",schema:r})}),u&&f.jsx("div",{className:p.cx("tb-mobile-container-tab-bar",e.tabBar),children:f.jsx(p.SchemaComponent,{onlyRenderProperties:!0,filterProperties:y=>y["x-component"]==="MTabBar",schema:r})})]})})};ls.Designer=um,ls.displayName="MContainer";const xl={properties:{title:{type:"string",title:"{{ t('Title') }}",required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{required:!0,"x-decorator":"FormItem","x-component":"IconPicker",title:"{{ t('Icon') }}","x-component-props":{}}}},mm=()=>{const t=p.useDesigner();return f.jsx(p.SortableItem,{className:p.cx("tb-mobile-tab-bar-item",p.css`
182
+ `})),ml=(t,e)=>t.reduceProperties((n,r)=>{if(n)return n;if(r["x-component"]==="MTabBar")return ml(r,e);if(r["x-component"]==="MTabBar.Item"&&e===r["x-uid"])return r}),om=()=>{const{name:t}=ie.useParams(),e=$.useFieldSchema();if(!t)return m.jsx(m.Fragment,{});const n=ml(e.properties.tabBar,t.replace("tab_",""));return n?m.jsx(h.SchemaComponent,{schema:n}):m.jsx(ie.Navigate,{replace:!0,to:"../"})},ns=t=>{var y,g;const{styles:e}=rm(),{token:n}=h.useToken(),r=h.useDesigner(),o=$.useFieldSchema(),s=ie.useNavigate(),a=ie.useParams(),l=ie.useLocation(),u=$.useField().componentProps.tabBarEnabled!==!1,d=(y=o==null?void 0:o.properties)==null?void 0:y.tabBar,f=d!=null&&d.properties?Object.keys(d.properties)[0]:null;let v=null;return f&&(v=(g=d==null?void 0:d.properties[f])==null?void 0:g["x-uid"]),i.useEffect(()=>{if(v&&!a.name){const b=l.pathname.endsWith("/")?l.pathname.slice(0,-1):l.pathname;s(`${b}/tab_${v}`,{replace:!0})}},[l.pathname,s,a.name,v]),m.jsx(h.MobileProvider,{children:m.jsxs(h.SortableItem,{eid:"tb-mobile-scroll-wrapper",className:h.cx("tb-mobile-container",e.mobileContainer),children:[m.jsx(r,{}),m.jsx("div",{style:{paddingBottom:v?n.paddingLG*2:0},className:"tb-mobile-container-content",children:v?m.jsx(om,{}):m.jsx(h.SchemaComponent,{filterProperties:b=>b["x-component"]!=="MTabBar",schema:o})}),u&&m.jsx("div",{className:h.cx("tb-mobile-container-tab-bar",e.tabBar),children:m.jsx(h.SchemaComponent,{onlyRenderProperties:!0,filterProperties:b=>b["x-component"]==="MTabBar",schema:o})})]})})};ns.Designer=nm,ns.displayName="MContainer";const pl={properties:{title:{type:"string",title:"{{ t('Title') }}",required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{required:!0,"x-decorator":"FormItem","x-component":"IconPicker",title:"{{ t('Icon') }}","x-component-props":{}}}},sm=()=>{const t=h.useDesigner();return m.jsx(h.SortableItem,{className:h.cx("tb-mobile-tab-bar-item",h.css`
183
183
  position: absolute !important;
184
184
  width: 100%;
185
185
  height: 100%;
186
186
  top: 0;
187
187
  left: 0;
188
- `),children:f.jsx(t,{})})},pm=()=>{const{t}=de(),e=$.useFieldSchema(),{onUpdateComponentProps:n}=Nn(),o=$.useField(),r=Object.keys(e.parent.properties).length;return f.jsxs(p.GeneralSchemaDesigner,{children:[f.jsx(p.SchemaSettingsModalItem,{title:t("Edit info"),initialValues:o.componentProps,schema:xl,onSubmit:n}),r>1?f.jsx(p.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete tab item?")},breakRemoveOn:{"x-component":"MTabBar"}},"remove"):null]})},Cl=mm;Cl.Designer=pm;const cs=t=>{const e=$.useFieldSchema(),{designable:n}=p.useDesignable(),{t:o}=de(),{insertBeforeEnd:r}=p.useDesignable(),s=ie.useNavigate(),a=ie.useParams(),l=p.useCompile(),c=i.useCallback(u=>r({type:"void","x-component":"MTabBar.Item","x-component-props":u,"x-designer":"MTabBar.Item.Designer",properties:{[$.uid()]:gl},"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}),[]);return f.jsx(p.SortableItem,{className:p.cx("tb-mobile-tab-bar",p.css`
188
+ `),children:m.jsx(t,{})})},im=()=>{const{t}=de(),e=$.useFieldSchema(),{onUpdateComponentProps:n}=Fn(),r=$.useField(),o=Object.keys(e.parent.properties).length;return m.jsxs(h.GeneralSchemaDesigner,{children:[m.jsx(h.SchemaSettingsModalItem,{title:t("Edit info"),initialValues:r.componentProps,schema:pl,onSubmit:n}),o>1?m.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete tab item?")},breakRemoveOn:{"x-component":"MTabBar"}},"remove"):null]})},hl=sm;hl.Designer=im;const rs=t=>{const e=$.useFieldSchema(),{designable:n}=h.useDesignable(),{t:r}=de(),{insertBeforeEnd:o}=h.useDesignable(),s=ie.useNavigate(),a=ie.useParams(),l=h.useCompile(),c=i.useCallback(u=>o({type:"void","x-component":"MTabBar.Item","x-component-props":u,"x-designer":"MTabBar.Item.Designer",properties:{[$.uid()]:ul},"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}),[]);return m.jsx(h.SortableItem,{className:h.cx("tb-mobile-tab-bar",h.css`
189
189
  position: relative;
190
190
  width: 100%;
191
191
  display: flex;
192
192
  align-items: center;
193
- `),children:f.jsx(p.DndContext,{children:f.jsxs(ns,{activeKey:a.name,onChange:u=>{u!=="add-tab"&&s(`/mobile/${u}`)},safeArea:!0,className:p.cx(p.css`
193
+ `),children:m.jsx(h.DndContext,{children:m.jsxs(Xo,{activeKey:a.name,onChange:u=>{u!=="add-tab"&&s(`/mobile/${u}`)},safeArea:!0,className:h.cx(h.css`
194
194
  width: 100%;
195
- `),children:[e.mapProperties((u,d)=>{const m=u["x-component-props"];return i.createElement(ns.Item,ae(L({},m),{key:`tab_${u["x-uid"]}`,title:f.jsxs(f.Fragment,{children:[o(l(m.title)),f.jsx(p.SchemaComponent,{schema:u,name:d})]}),icon:m.icon?f.jsx(p.Icon,{type:m.icon}):void 0}))}),n&&(!e.properties||Object.keys(e.properties).length<5)?f.jsx(ns.Item,{className:p.css`
195
+ `),children:[e.mapProperties((u,d)=>{const f=u["x-component-props"];return i.createElement(Xo.Item,ae(L({},f),{key:`tab_${u["x-uid"]}`,title:m.jsxs(m.Fragment,{children:[r(l(f.title)),m.jsx(h.SchemaComponent,{schema:u,name:d})]}),icon:f.icon?m.jsx(h.Icon,{type:f.icon}):void 0}))}),n&&(!e.properties||Object.keys(e.properties).length<5)?m.jsx(Xo.Item,{className:h.css`
196
196
  .adm-tab-bar-item-icon {
197
197
  height: auto;
198
198
  }
199
- `,icon:f.jsx(p.SchemaInitializerActionModal,{title:o("Add tab"),onSubmit:c,schema:xl})},"add-tab"):null]})})})};cs.Item=Cl,cs.displayName="MTabBar";const hm=p.createStyles(({css:t,token:e})=>({mobileNav:t`
199
+ `,icon:m.jsx(h.SchemaInitializerActionModal,{title:r("Add tab"),onSubmit:c,schema:pl})},"add-tab"):null]})})})};rs.Item=hl,rs.displayName="MTabBar";const am=h.createStyles(({css:t,token:e})=>({mobileNav:t`
200
200
  position: relative;
201
201
  width: 100%;
202
202
  .ant-btn {
@@ -208,7 +208,7 @@
208
208
  bottom: 0;
209
209
  border: none;
210
210
  }
211
- `})),gm=p.createStyles(({css:t,token:e})=>({firstmodal:t`
211
+ `})),lm=h.createStyles(({css:t,token:e})=>({firstmodal:t`
212
212
  .ant-modal-content {
213
213
  position: relative;
214
214
  overflow: hidden;
@@ -303,7 +303,7 @@
303
303
  width: 280px;
304
304
  height: 360px;
305
305
  }
306
- `})),Sl=({open:t,setOpen:e,title:n="",uid:o})=>{const[r,s]=i.useState(!1),{styles:a}=gm(),{t:l}=p.useTranslation(),{copyLink:c,imageAction:u}=p.useShareActions({title:n,uid:o});return f.jsxs(le.Modal,{open:t,className:a.firstmodal,title:l("Share"),footer:null,width:300,onCancel:()=>{e(!1)},children:[f.jsxs("div",{className:a.secondmodal,children:[f.jsxs("div",{className:"tb-header-modal-list",onClick:c,children:[f.jsx(p.Icon,{type:"PaperClipOutlined"}),l("Copy link")]}),f.jsxs("div",{className:"tb-header-modal-list",onClick:()=>{s(!0)},children:[f.jsx(p.Icon,{type:"QrcodeOutlined"}),l("Generate QR code")]})]}),f.jsx(le.Modal,{className:a.imageModal,open:r,footer:null,onCancel:()=>{s(!1)},children:u()})]})},vm=t=>{var b,h,y,g,x;const{showBack:e}=t,{t:n}=de(),o=$.useField(),r=$.useFieldSchema(),{dn:s}=p.useDesignable(),{onUpdateComponentProps:a}=Nn(),l=(b=r==null?void 0:r.properties)==null?void 0:b.header,c=!!l&&((h=o.componentProps)==null?void 0:h.headerEnabled)!==!1,u=(y=r==null?void 0:r.properties)==null?void 0:y.tabs,d=!!u&&((g=o.componentProps)==null?void 0:g.tabsEnabled)!==!1,{title:m}=p.useSchemaToolbar(),v={dn:s,field:o,fieldSchema:r};return f.jsxs(p.SchemaSettingsDropdown,ae(L({title:f.jsx(le.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:f.jsx(Te.MenuOutlined,{}),type:"dashed",children:n("Page configuration")})},v),{children:[f.jsx(p.SchemaSettingsSwitchItem,{checked:c,title:n("Enable Header"),onChange:S=>fe(this,null,function*(){var C;l||(yield s.insertAfterBegin({type:"void",name:"header","x-component":"MHeader","x-designer":"MHeader.Designer","x-component-props":{title:(C=r.parent["x-component-props"])==null?void 0:C.name,showBack:e}})),yield a({headerEnabled:S})})}),f.jsx(p.SchemaSettingsSwitchItem,{checked:d,title:n("Enable Tabs"),onChange:S=>fe(this,null,function*(){if(!u){const C=am(r);return yield s.remove(C),s.insertBeforeEnd({type:"void",name:"tabs","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab","x-initializer-props":{gridInitializer:"mobilePage:addBlock"},properties:{tab1:{type:"void",title:dt("Untitled"),"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:ae(L({},C),{"x-uid":$.uid()})}}}})}yield a({tabsEnabled:S})})}),f.jsx(p.SchemaSettingsSwitchItem,{checked:(x=r["x-component-props"])==null?void 0:x.enableSharePage,title:n("Enable Share page"),onChange:S=>fe(this,null,function*(){r["x-component-props"]=r["x-component-props"]||{},r["x-component-props"].enableSharePage=S,r.title||(r.title=m),s.emit("patch",{schema:{"x-uid":r["x-uid"],"x-component-props":r["x-component-props"],title:r.title}}),s.refresh()})})]}))},bm=p.createStyles(({token:t,css:e})=>({globalActionCSS:e`
306
+ `})),gl=({open:t,setOpen:e,title:n="",uid:r})=>{const[o,s]=i.useState(!1),{styles:a}=lm(),{t:l}=h.useTranslation(),{copyLink:c,imageAction:u}=h.useShareActions({title:n,uid:r});return m.jsxs(le.Modal,{open:t,className:a.firstmodal,title:l("Share"),footer:null,width:300,onCancel:()=>{e(!1)},children:[m.jsxs("div",{className:a.secondmodal,children:[m.jsxs("div",{className:"tb-header-modal-list",onClick:c,children:[m.jsx(h.Icon,{type:"PaperClipOutlined"}),l("Copy link")]}),m.jsxs("div",{className:"tb-header-modal-list",onClick:()=>{s(!0)},children:[m.jsx(h.Icon,{type:"QrcodeOutlined"}),l("Generate QR code")]})]}),m.jsx(le.Modal,{className:a.imageModal,open:o,footer:null,onCancel:()=>{s(!1)},children:u()})]})},cm=t=>{var y,g,b,p,x;const{showBack:e}=t,{t:n}=de(),r=$.useField(),o=$.useFieldSchema(),{dn:s}=h.useDesignable(),{onUpdateComponentProps:a}=Fn(),l=(y=o==null?void 0:o.properties)==null?void 0:y.header,c=!!l&&((g=r.componentProps)==null?void 0:g.headerEnabled)!==!1,u=(b=o==null?void 0:o.properties)==null?void 0:b.tabs,d=!!u&&((p=r.componentProps)==null?void 0:p.tabsEnabled)!==!1,{title:f}=h.useSchemaToolbar(),v={dn:s,field:r,fieldSchema:o};return m.jsxs(h.SchemaSettingsDropdown,ae(L({title:m.jsx(le.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:m.jsx(Te.MenuOutlined,{}),type:"dashed",children:n("Page configuration")})},v),{children:[m.jsx(h.SchemaSettingsSwitchItem,{checked:c,title:n("Enable Header"),onChange:S=>fe(null,null,function*(){var C;l||(yield s.insertAfterBegin({type:"void",name:"header","x-component":"MHeader","x-designer":"MHeader.Designer","x-component-props":{title:(C=o.parent["x-component-props"])==null?void 0:C.name,showBack:e}})),yield a({headerEnabled:S})})}),m.jsx(h.SchemaSettingsSwitchItem,{checked:d,title:n("Enable Tabs"),onChange:S=>fe(null,null,function*(){if(!u){const C=Rf(o);return yield s.remove(C),s.insertBeforeEnd({type:"void",name:"tabs","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab","x-initializer-props":{gridInitializer:"mobilePage:addBlock"},properties:{tab1:{type:"void",title:ut("Untitled"),"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:ae(L({},C),{"x-uid":$.uid()})}}}})}yield a({tabsEnabled:S})})}),m.jsx(h.SchemaSettingsSwitchItem,{checked:(x=o["x-component-props"])==null?void 0:x.enableSharePage,title:n("Enable Share page"),onChange:S=>fe(null,null,function*(){o["x-component-props"]=o["x-component-props"]||{},o["x-component-props"].enableSharePage=S,o.title||(o.title=f),s.emit("patch",{schema:{"x-uid":o["x-uid"],"x-component-props":o["x-component-props"],title:o.title}}),s.refresh()})})]}))},um=h.createStyles(({token:t,css:e})=>({globalActionCSS:e`
307
307
  #tb-position-container > & {
308
308
  height: ${t.sizeXXL}px;
309
309
  border-top: 1px solid var(--tb-box-bg);
@@ -333,13 +333,13 @@
333
333
  }
334
334
  display: flex;
335
335
  flex-direction: column;
336
- `})),ym=t=>{var x,S,C,w;const{styles:e}=bm(),n=p.useDesigner(),o=$.useField(),r=$.useFieldSchema(),[s,a]=ie.useSearchParams(),l=(x=r.properties)==null?void 0:x.tabs,c=o.componentProps.headerEnabled!==!1,u=o.componentProps.tabsEnabled!==!1&&l,[d,m]=i.useState(!1);let v=Bo(r,"MPage");if(!u&&!v&&l){const k=Object.values(l.properties||{}).sort((E,I)=>E["x-index"]-I["x-index"]);k.length!==0&&(v=k[0])}const b=r.root===r.parent;let h=!1;if(!l&&r.properties)h=as(r.properties.grid,2)===1;else if(s.has("tab")&&((S=l==null?void 0:l.properties)!=null&&S[s.get("tab")]))h=as((w=(C=l.properties[s.get("tab")])==null?void 0:C.properties)==null?void 0:w.grid,2)===1;else if(l!=null&&l.properties){const k=Object.values(l.properties).sort((E,I)=>E["x-index"]-I["x-index"])[0];k&&setTimeout(()=>{a([["tab",k.name.toString()]],{replace:!0})})}const y=i.useCallback(k=>{a([["tab",k]],{replace:!0})},[a]),g=i.useCallback(k=>f.jsx(p.TabsContextProvider,{children:h?f.jsx(p.ActionBarProvider,{container:(typeof k.active=="undefined"||k.active)&&b?document.getElementById("tb-position-container"):null,forceProps:{layout:"one-column",className:e.globalActionCSS},children:k.children}):k.children}),[h,b,e.globalActionCSS]);return f.jsxs(p.SortableItem,{eid:"tb-mobile-scroll-wrapper",className:p.cx("tb-mobile-page",e.mobilePage),children:[f.jsx(n,L({},r==null?void 0:r["x-designer-props"])),f.jsxs("div",{style:{paddingBottom:l?null:"var(--tb-spacing)"},className:p.cx("tb-mobile-page-header",e.mobilePageHeader,{[p.css`
336
+ `})),dm=t=>{var x,S,C,w;const{styles:e}=um(),n=h.useDesigner(),r=$.useField(),o=$.useFieldSchema(),[s,a]=ie.useSearchParams(),l=(x=o.properties)==null?void 0:x.tabs,c=r.componentProps.headerEnabled!==!1,u=r.componentProps.tabsEnabled!==!1&&l,[d,f]=i.useState(!1);let v=Pr(o,"MPage");if(!u&&!v&&l){const k=Object.values(l.properties||{}).sort((E,I)=>E["x-index"]-I["x-index"]);k.length!==0&&(v=k[0])}const y=o.root===o.parent;let g=!1;if(!l&&o.properties)g=ts(o.properties.grid,2)===1;else if(s.has("tab")&&((S=l==null?void 0:l.properties)!=null&&S[s.get("tab")]))g=ts((w=(C=l.properties[s.get("tab")])==null?void 0:C.properties)==null?void 0:w.grid,2)===1;else if(l!=null&&l.properties){const k=Object.values(l.properties).sort((E,I)=>E["x-index"]-I["x-index"])[0];k&&setTimeout(()=>{a([["tab",k.name.toString()]],{replace:!0})})}const b=i.useCallback(k=>{a([["tab",k]],{replace:!0})},[a]),p=i.useCallback(k=>m.jsx(h.TabsContextProvider,{children:g?m.jsx(h.ActionBarProvider,{container:(typeof k.active=="undefined"||k.active)&&y?document.getElementById("tb-position-container"):null,forceProps:{layout:"one-column",className:e.globalActionCSS},children:k.children}):k.children}),[g,y,e.globalActionCSS]);return m.jsxs(h.SortableItem,{eid:"tb-mobile-scroll-wrapper",className:h.cx("tb-mobile-page",e.mobilePage),children:[m.jsx(n,L({},o==null?void 0:o["x-designer-props"])),m.jsxs("div",{style:{paddingBottom:l?null:"var(--tb-spacing)"},className:h.cx("tb-mobile-page-header",e.mobilePageHeader,{[h.css`
337
337
  & > .ant-tb-grid {
338
338
  margin-top: 14px;
339
339
  }
340
- `]:l&&!u||!l}),children:[c?f.jsx($.RecursionField,{schema:r,filterProperties:k=>k["x-component"]==="MHeader"}):f.jsx("div",{style:{display:"flex",justifyContent:"end",backgroundColor:"#ffffff",paddingRight:"20px"},children:f.jsx(le.Button,{icon:f.jsx(Te.ShareAltOutlined,{}),style:{border:"none"},onClick:()=>{m(!0)}})}),f.jsx(p.TabsContextProvider,{PaneRoot:g,activeKey:s.get("tab"),onChange:y,children:f.jsx($.RecursionField,{schema:u?r:v,filterProperties:k=>k["x-component"]==="Tabs"||k["x-component"]==="Grid"||k["x-component"]==="Grid.Row"})})]}),f.jsx(g,{children:!l&&f.jsx($.RecursionField,{schema:r,filterProperties:k=>k["x-component"]!=="MHeader"})}),f.jsx(Sl,{open:d,setOpen:m,uid:r["x-uid"]})]})},us=t=>f.jsx(p.FilterBlockProvider,{children:f.jsx(ym,L({},t))});us.Designer=vm,us.displayName="MPage";const xm=()=>{const t=$.useField(),{onUpdateComponentProps:e}=Nn(),{t:n}=de();return f.jsx(p.GeneralSchemaDesigner,{draggable:!1,children:f.jsx(p.SchemaSettingsModalItem,{title:n("Edit info"),components:{Switch:ys.Switch},initialValues:t.componentProps,schema:{properties:{title:{type:"string",title:n("Title"),required:!0,"x-component":"Input","x-decorator":"FormItem"},showBack:{type:"boolean",title:n("Display back button"),"x-component":"Switch","x-decorator":"FormItem"}}},onSubmit:e})})},wl=t=>{var y;const e=$.useField(),{title:n=dt("Untitled"),showBack:o=!1}=L(L({},t),e==null?void 0:e.componentProps),r=p.useDesigner(),a=p.useCompile()(n),l=ie.useNavigate(),{setTitle:c}=p.useDocumentTitle(),{token:u}=p.useToken(),{styles:d}=hm(),[m,v]=i.useState(!1),b=$.useFieldSchema();i.useEffect(()=>{c(a)},[a]);const h=i.useMemo(()=>({width:"100%",background:u.colorBgContainer}),[u.colorBgContainer]);return f.jsxs(p.SortableItem,{className:p.cx("tb-mobile-header"),style:h,children:[f.jsxs(Af,{backArrow:o,onBack:()=>l(-1),className:d.mobileNav,children:[f.jsx("div",{children:a}),f.jsx(le.Button,{icon:f.jsx(Te.ShareAltOutlined,{}),onClick:()=>{v(!0)}})]}),f.jsx(r,{}),f.jsx(Sl,{open:m,setOpen:v,title:n,uid:(y=b.parent)==null?void 0:y["x-uid"]})]})};wl.Designer=xm;const Cm=()=>{const{t}=de();return f.jsx(p.GeneralSchemaDesigner,{children:f.jsx(p.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete settings block")},breakRemoveOn:{"x-component":"Grid"}},"remove")})},kl=()=>{const t=p.useDesigner();return f.jsxs(p.SortableItem,{className:p.cx("tb-mobile-setting",p.css`
340
+ `]:l&&!u||!l}),children:[c?m.jsx($.RecursionField,{schema:o,filterProperties:k=>k["x-component"]==="MHeader"}):m.jsx("div",{style:{display:"flex",justifyContent:"end",backgroundColor:"#ffffff",paddingRight:"20px"},children:m.jsx(le.Button,{icon:m.jsx(Te.ShareAltOutlined,{}),style:{border:"none"},onClick:()=>{f(!0)}})}),m.jsx(h.TabsContextProvider,{PaneRoot:p,activeKey:s.get("tab"),onChange:b,children:m.jsx($.RecursionField,{schema:u?o:v,filterProperties:k=>k["x-component"]==="Tabs"||k["x-component"]==="Grid"||k["x-component"]==="Grid.Row"})})]}),m.jsx(p,{children:!l&&m.jsx($.RecursionField,{schema:o,filterProperties:k=>k["x-component"]!=="MHeader"})}),m.jsx(gl,{open:d,setOpen:f,uid:o["x-uid"]})]})},os=t=>m.jsx(h.FilterBlockProvider,{children:m.jsx(dm,L({},t))});os.Designer=cm,os.displayName="MPage";const fm=()=>{const t=$.useField(),{onUpdateComponentProps:e}=Fn(),{t:n}=de();return m.jsx(h.GeneralSchemaDesigner,{draggable:!1,children:m.jsx(h.SchemaSettingsModalItem,{title:n("Edit info"),components:{Switch:ms.Switch},initialValues:t.componentProps,schema:{properties:{title:{type:"string",title:n("Title"),required:!0,"x-component":"Input","x-decorator":"FormItem"},showBack:{type:"boolean",title:n("Display back button"),"x-component":"Switch","x-decorator":"FormItem"}}},onSubmit:e})})},vl=t=>{var b;const e=$.useField(),{title:n=ut("Untitled"),showBack:r=!1}=L(L({},t),e==null?void 0:e.componentProps),o=h.useDesigner(),a=h.useCompile()(n),l=ie.useNavigate(),{setTitle:c}=h.useDocumentTitle(),{token:u}=h.useToken(),{styles:d}=am(),[f,v]=i.useState(!1),y=$.useFieldSchema();i.useEffect(()=>{c(a)},[a]);const g=i.useMemo(()=>({width:"100%",background:u.colorBgContainer}),[u.colorBgContainer]);return m.jsxs(h.SortableItem,{className:h.cx("tb-mobile-header"),style:g,children:[m.jsxs(_f,{backArrow:r,onBack:()=>l(-1),className:d.mobileNav,children:[m.jsx("div",{children:a}),m.jsx(le.Button,{icon:m.jsx(Te.ShareAltOutlined,{}),onClick:()=>{v(!0)}})]}),m.jsx(o,{}),m.jsx(gl,{open:f,setOpen:v,title:n,uid:(b=y.parent)==null?void 0:b["x-uid"]})]})};vl.Designer=fm;const mm=()=>{const{t}=de();return m.jsx(h.GeneralSchemaDesigner,{children:m.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete settings block")},breakRemoveOn:{"x-component":"Grid"}},"remove")})},yl=()=>{const t=h.useDesigner();return m.jsxs(h.SortableItem,{className:h.cx("tb-mobile-setting",h.css`
341
341
  margin-bottom: var(--tb-spacing);
342
- `),children:[f.jsx(t,{}),f.jsx(p.SettingsMenu,{redirectUrl:"/mobile"})]})};kl.Designer=Cm;const Sm=()=>{const t=p.useSchemaInitializerItem(),{insert:e}=p.useSchemaInitializer();return f.jsx(p.SchemaInitializerItem,L({icon:f.jsx(Te.SettingOutlined,{}),onClick:()=>fe(this,null,function*(){e({type:"void","x-component":"MSettings","x-designer":"MSettings.Designer","x-component-props":{}})})},t))},wm=["select","multipleSelect","radioGroup","checkboxGroup"],km=["oho","obo","o2m","m2o","m2m"],Em=["datetime"],Im=["input","textarea","phone","email","url","percent","password","color","icon","formula","sequence"],$m=["integer","number"],Ge=t=>t==="TabSearchCollapsibleInputItem"||t==="TabSearchCollapsibleInputMItem",ct=t=>wm.includes(t),$e=t=>km.includes(t),Nt=t=>Em.includes(t),El=t=>Im.includes(t),_m=t=>$m.includes(t),Il=t=>be.dayjs(t).format("YYYY-MM-DD"),zo=t=>JSON.stringify(be.dayjs(t));function Pm(t){const{field:e,label:n,isCanBeOptional:o,isCanBeRelated:r,collection:s}=t,{key:a,name:l,uiSchema:c,interface:u}=e,d=c==null?void 0:c.title,m=[o,r].indexOf(!0);return{name:a,title:d,Component:"ImageSearchItemIntializer",schema:{name:`${l}-choice`,fieldName:l,title:d,type:"void","x-toolbar":"ImageSearchItemToolbar","x-settings":"fieldSettings:component:ImageSearchItem","x-component":"ImageSearchItemView","x-component-props":{fieldNames:{label:n,imageShow:"image_show"},interface:u,collectionName:s==null?void 0:s.name,correlation:l},"x-use-component-props":["usePropsOptionalImageSearchItemField","usePropsRelatedImageSearchItemField"][m],properties:{}}}}const Fm=new p.SchemaInitializer({name:"ImageSearchView:configureFields",title:'{{t("Configure fields")}}',style:{marginTop:16},icon:"SettingOutlined",items:[{name:"choicesFields",type:"itemGroup",title:'{{t("Choices fields")}}',useChildren:Mm}]});function Mm(){const t=p.useCollection(),e=t==null?void 0:t.fields,n=p.useCollectionManager();return p.useIsMobile(),e.map(r=>{var d,m;const{interface:s,target:a}=r,l=(m=(d=n.getCollection(a))==null?void 0:d.getPrimaryKey())!=null?m:"id",c=ct(s),u=$e(s);return c||u?Pm({collection:t,field:r,label:l,isCanBeOptional:c,isCanBeRelated:u}):null}).filter(Boolean)}function Nm(t){const{collection:e,dataSource:n,blockType:o}=t;return{type:"void","x-decorator":"ImageSearchProvider","x-decorator-props":{collection:e,dataSource:n,blockType:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[be.uid()]:{type:"void","x-action":"imageSearch","x-initializer":"ImageSearchView:configureFields","x-component":"ImageSearchView"}}}}function Tm(t){const{filterCollections:e}=t,n=p.useSchemaInitializerItem(),{insert:o}=p.useSchemaInitializer(),r=a=>fe(this,[a],function*({item:s}){const{dataSource:l,collectionName:c,name:u}=s,d=Nm({dataSource:l,collection:c||u,blockType:"filter"});o(d)});return f.jsx(p.DataBlockInitializer,ae(L({},n),{componentType:"ImageSearch",filter:e,onCreateBlockSchema:r}))}const Om=({collection:t,children:e})=>f.jsx(p.DataBlockProvider,{collection:t,children:e}),Dm=()=>{const t=p.useDesigner(),e=$.useFieldSchema(),{render:n}=p.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]);return f.jsxs(f.Fragment,{children:[f.jsx(t,{}),f.jsx($.RecursionField,{schema:e,onlyRenderProperties:!0}),f.jsx(i.Fragment,{children:n()})]})},Am=()=>{const t=$.useFieldSchema(),e=p.useCollection(),{getDataBlocks:n}=p.useFilterBlock();return i.useMemo(()=>e==null?void 0:e.getField(t.name),[e,t.name]),{onSelected:(r,s)=>{const{targets:a,uid:l}=p.findFilterTargets(t);n().forEach(c=>{var h,y,g;if(!a.find(x=>x.uid===c.uid))return;const d=`${l}${t.name}`,m=((h=c.service.params)==null?void 0:h[0])||{};let v=((g=(y=c.service.params)==null?void 0:y[1])==null?void 0:g.filters)||{};if(r.length)v[d]={[s]:r};else{if(c.dataLoadingMode==="manual")return c.clearData();delete v[d]}const b=p.mergeFilter([...Object.values(v),c.defaultFilter]);if(r.length===1&&r[0]==="all"){const x=Object.keys(v[d]);b.$and?(x.forEach(S=>{b.$and.forEach((C,w)=>{C[S]&&b.$and.splice(w,1)})}),b.$and=b.$and.filter(Boolean)):delete b[x[0]],v[d]={}}return v=Le.omitBy(v,x=>x==null||Le.isObject(x)&&Le.isEmpty(x)),c.doFilter(ae(L({},m),{page:1,filter:b}),{filters:v})})}}},Lm=()=>{const t=p.useSchemaInitializerItem(),{insert:e}=p.useSchemaInitializer(),{schema:n,title:o}=t,{exists:r,remove:s}=p.useCurrentSchema(n.name,"name",t.find,t.remove),a=()=>{if(r)return s();const{schema:l}=t,c=$.merge(n||{},l||{});e(c)};return f.jsx(p.SchemaInitializerSwitch,{checked:r,title:o,onClick:a})},Bm=new p.SchemaSettings({name:"fieldSettings:component:ImageSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=de();return{title:t("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:p.SchemaSettingsDataScope,useComponentProps(){var l,c;const t=$.useFieldSchema(),{form:e}=p.useFormBlockContext(),n=$.useField(),o=p.useCollectionManager(),s=p.useCollection().getField(t.name)||o.getCollectionField(t["x-collection-field"]),{dn:a}=p.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=t==null?void 0:t["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:e,onSubmit:({filter:u})=>{var d;Le.set(n.componentProps,"params",ae(L({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),t["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}},useVisible(){const t=$.useFieldSchema();return!Ge(t["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var v,b,h,y;const t=$.useFieldSchema(),{t:e}=de(),n=p.useCollectionManager(),o=p.useCollection(),r=(v=t["x-component-props"])==null?void 0:v.collectionName,s=(b=t["x-component-props"])==null?void 0:b.correlation,a=o.getField(t.fieldName)||n.getCollectionField(t["x-collection-field"])||n.getCollection(r+"."+s),l=p.useCompile(),{dn:c}=p.useDesignable(),d=(a!=null&&a.target?n.getCollectionFields(a==null?void 0:a.target):[]).filter(g=>!(g!=null&&g.target)&&g.type!=="boolean").map(g=>{var x;return{value:g==null?void 0:g.name,label:l((x=g==null?void 0:g.uiSchema)==null?void 0:x.title)||(g==null?void 0:g.name)}}),m=g=>{var C,w,k;const x={"x-uid":t["x-uid"]},S=ae(L(L({},(w=(C=a==null?void 0:a.uiSchema)==null?void 0:C["x-component-props"])==null?void 0:w.fieldNames),(k=t["x-component-props"])==null?void 0:k.fieldNames),{label:g});t["x-component-props"]=t["x-component-props"]||{},t["x-component-props"].fieldNames=S,x["x-component-props"]=t["x-component-props"],c.emit("patch",{schema:x}),c.refresh()};return{key:"title-field",title:e("Title field"),options:d,value:(y=(h=t["x-component-props"])==null?void 0:h.fieldNames)==null?void 0:y.label,onChange:m}},useVisible(){var e;const t=$.useFieldSchema();return Ge(t["x-component"])||((e=t["x-component-props"])==null?void 0:e.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t}=de(),e=$.useFieldSchema(),{dn:n}=p.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:o=>(Ge(e["x-component"])&&(Object.values(o.properties).forEach(r=>{Ge(r["x-component"])&&r.name!==e.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),zm=t=>f.jsx(p.SchemaToolbar,L({draggable:!0,showBorder:!0,showBackground:!0,initializer:!1},t)),Vm=p.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:o,onSelect:r}=Zm(t);return e?f.jsxs(p.SortableItem,{children:[f.jsx(n,{}),f.jsx(al,{onChange:r,children:o.map(({key:s,label:a,imageUrl:l})=>f.jsx(al.Tab,{title:"",description:f.jsx(jm,{srcUrl:l,label:a})},s))})]}):null},{displayName:"ImageSearchItemView"});function Zm(t){var g,x;const{list:e,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=t,a=$.useFieldSchema(),l=p.useCollection(),{t:c}=de(),u=i.useMemo(()=>l==null?void 0:l.getField(a.fieldName),[l,a.fieldName]),d=p.useDesigner(),m=o||(u==null?void 0:u.targetKey)||"id",v=r||((x=(g=a["x-component-props"])==null?void 0:g.fieldNames)==null?void 0:x.label)||m,b=S=>{var w;const C=((w=S.keyPath)==null?void 0:w[0])||S;n([C],s)},h={title:v,key:m},y=(e||[]).map(S=>{var M;const{type:C,["image_show"]:w,[h.title]:k,[h.key]:E}=S,I=(location==null?void 0:location.origin)||"",T=(M=w==null?void 0:w[0])==null?void 0:M.url;let Z=T!=null?T:"";return Z.includes("http")||(Z=`${I}${T}`),C==="all"?{label:c("AllProducts"),key:"all",imageUrl:Z}:{label:k,key:E,imageUrl:Z}});return{collectionField:u,Designer:d,items:y,onSelect:b}}const jm=t=>{const{srcUrl:e,label:n}=t;return f.jsxs("div",{className:p.css`
342
+ `),children:[m.jsx(t,{}),m.jsx(h.SettingsMenu,{redirectUrl:"/mobile"})]})};yl.Designer=mm;const pm=()=>{const t=h.useSchemaInitializerItem(),{insert:e}=h.useSchemaInitializer();return m.jsx(h.SchemaInitializerItem,L({icon:m.jsx(Te.SettingOutlined,{}),onClick:()=>fe(null,null,function*(){e({type:"void","x-component":"MSettings","x-designer":"MSettings.Designer","x-component-props":{}})})},t))},hm=["select","multipleSelect","radioGroup","checkboxGroup"],gm=["oho","obo","o2m","m2o","m2m"],vm=["datetime"],ym=["input","textarea","phone","email","url","percent","password","color","icon","formula","sequence"],bm=["integer","number"],qe=t=>t==="TabSearchCollapsibleInputItem"||t==="TabSearchCollapsibleInputMItem",lt=t=>hm.includes(t),$e=t=>gm.includes(t),Mt=t=>vm.includes(t),bl=t=>ym.includes(t),xm=t=>bm.includes(t),xl=t=>ye.dayjs(t).format("YYYY-MM-DD"),Fr=t=>JSON.stringify(ye.dayjs(t));function Cm(t){const{field:e,label:n,isCanBeOptional:r,isCanBeRelated:o,collection:s}=t,{key:a,name:l,uiSchema:c,interface:u}=e,d=c==null?void 0:c.title,f=[r,o].indexOf(!0);return{name:a,title:d,Component:"ImageSearchItemIntializer",schema:{name:`${l}-choice`,fieldName:l,title:d,type:"void","x-toolbar":"ImageSearchItemToolbar","x-settings":"fieldSettings:component:ImageSearchItem","x-component":"ImageSearchItemView","x-component-props":{fieldNames:{label:n,imageShow:"image_show"},interface:u,collectionName:s==null?void 0:s.name,correlation:l},"x-use-component-props":["usePropsOptionalImageSearchItemField","usePropsRelatedImageSearchItemField"][f],properties:{}}}}const Sm=new h.SchemaInitializer({name:"ImageSearchView:configureFields",title:'{{t("Configure fields")}}',style:{marginTop:16},icon:"SettingOutlined",items:[{name:"choicesFields",type:"itemGroup",title:'{{t("Choices fields")}}',useChildren:wm}]});function wm(){const t=h.useCollection(),e=t==null?void 0:t.fields,n=h.useCollectionManager();return h.useIsMobile(),e.map(o=>{var d,f;const{interface:s,target:a}=o,l=(f=(d=n.getCollection(a))==null?void 0:d.getPrimaryKey())!=null?f:"id",c=lt(s),u=$e(s);return c||u?Cm({collection:t,field:o,label:l,isCanBeOptional:c,isCanBeRelated:u}):null}).filter(Boolean)}function km(t){const{collection:e,dataSource:n,blockType:r}=t;return{type:"void","x-decorator":"ImageSearchProvider","x-decorator-props":{collection:e,dataSource:n,blockType:r},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[ye.uid()]:{type:"void","x-action":"imageSearch","x-initializer":"ImageSearchView:configureFields","x-component":"ImageSearchView"}}}}function Em(t){const{filterCollections:e}=t,n=h.useSchemaInitializerItem(),{insert:r}=h.useSchemaInitializer(),o=a=>fe(null,[a],function*({item:s}){const{dataSource:l,collectionName:c,name:u}=s,d=km({dataSource:l,collection:c||u,blockType:"filter"});r(d)});return m.jsx(h.DataBlockInitializer,ae(L({},n),{componentType:"ImageSearch",filter:e,onCreateBlockSchema:o}))}const Im=({collection:t,children:e})=>m.jsx(h.DataBlockProvider,{collection:t,children:e}),$m=()=>{const t=h.useDesigner(),e=$.useFieldSchema(),{render:n}=h.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]);return m.jsxs(m.Fragment,{children:[m.jsx(t,{}),m.jsx($.RecursionField,{schema:e,onlyRenderProperties:!0}),m.jsx(i.Fragment,{children:n()})]})},_m=()=>{const t=$.useFieldSchema(),e=h.useCollection(),{getDataBlocks:n}=h.useFilterBlock();return i.useMemo(()=>e==null?void 0:e.getField(t.name),[e,t.name]),{onSelected:(o,s)=>{const{targets:a,uid:l}=h.findFilterTargets(t);n().forEach(c=>{var g,b,p;if(!a.find(x=>x.uid===c.uid))return;const d=`${l}${t.name}`,f=((g=c.service.params)==null?void 0:g[0])||{};let v=((p=(b=c.service.params)==null?void 0:b[1])==null?void 0:p.filters)||{};if(o.length)v[d]={[s]:o};else{if(c.dataLoadingMode==="manual")return c.clearData();delete v[d]}const y=h.mergeFilter([...Object.values(v),c.defaultFilter]);if(o.length===1&&o[0]==="all"){const x=Object.keys(v[d]);y.$and?(x.forEach(S=>{y.$and.forEach((C,w)=>{C[S]&&y.$and.splice(w,1)})}),y.$and=y.$and.filter(Boolean)):delete y[x[0]],v[d]={}}return v=Le.omitBy(v,x=>x==null||Le.isObject(x)&&Le.isEmpty(x)),c.doFilter(ae(L({},f),{page:1,filter:y}),{filters:v})})}}},Pm=()=>{const t=h.useSchemaInitializerItem(),{insert:e}=h.useSchemaInitializer(),{schema:n,title:r}=t,{exists:o,remove:s}=h.useCurrentSchema(n.name,"name",t.find,t.remove),a=()=>{if(o)return s();const{schema:l}=t,c=$.merge(n||{},l||{});e(c)};return m.jsx(h.SchemaInitializerSwitch,{checked:o,title:r,onClick:a})},Fm=new h.SchemaSettings({name:"fieldSettings:component:ImageSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=de();return{title:t("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var l,c;const t=$.useFieldSchema(),{form:e}=h.useFormBlockContext(),n=$.useField(),r=h.useCollectionManager(),s=h.useCollection().getField(t.name)||r.getCollectionField(t["x-collection-field"]),{dn:a}=h.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=t==null?void 0:t["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:e,onSubmit:({filter:u})=>{var d;Le.set(n.componentProps,"params",ae(L({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),t["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}},useVisible(){const t=$.useFieldSchema();return!qe(t["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var v,y,g,b;const t=$.useFieldSchema(),{t:e}=de(),n=h.useCollectionManager(),r=h.useCollection(),o=(v=t["x-component-props"])==null?void 0:v.collectionName,s=(y=t["x-component-props"])==null?void 0:y.correlation,a=r.getField(t.fieldName)||n.getCollectionField(t["x-collection-field"])||n.getCollection(o+"."+s),l=h.useCompile(),{dn:c}=h.useDesignable(),d=(a!=null&&a.target?n.getCollectionFields(a==null?void 0:a.target):[]).filter(p=>!(p!=null&&p.target)&&p.type!=="boolean").map(p=>{var x;return{value:p==null?void 0:p.name,label:l((x=p==null?void 0:p.uiSchema)==null?void 0:x.title)||(p==null?void 0:p.name)}}),f=p=>{var C,w,k;const x={"x-uid":t["x-uid"]},S=ae(L(L({},(w=(C=a==null?void 0:a.uiSchema)==null?void 0:C["x-component-props"])==null?void 0:w.fieldNames),(k=t["x-component-props"])==null?void 0:k.fieldNames),{label:p});t["x-component-props"]=t["x-component-props"]||{},t["x-component-props"].fieldNames=S,x["x-component-props"]=t["x-component-props"],c.emit("patch",{schema:x}),c.refresh()};return{key:"title-field",title:e("Title field"),options:d,value:(b=(g=t["x-component-props"])==null?void 0:g.fieldNames)==null?void 0:b.label,onChange:f}},useVisible(){var e;const t=$.useFieldSchema();return qe(t["x-component"])||((e=t["x-component-props"])==null?void 0:e.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t}=de(),e=$.useFieldSchema(),{dn:n}=h.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:r=>(qe(e["x-component"])&&(Object.values(r.properties).forEach(o=>{qe(o["x-component"])&&o.name!==e.name&&delete r.properties[o.name]}),n.emit("patch",{schema:r})),r["x-component"]==="TabSearch")}}}]}),Mm=t=>m.jsx(h.SchemaToolbar,L({draggable:!0,showBorder:!0,showBackground:!0,initializer:!1},t)),Nm=h.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:r,onSelect:o}=Tm(t);return e?m.jsxs(h.SortableItem,{children:[m.jsx(n,{}),m.jsx(tl,{onChange:o,children:r.map(({key:s,label:a,imageUrl:l})=>m.jsx(tl.Tab,{title:"",description:m.jsx(Om,{srcUrl:l,label:a})},s))})]}):null},{displayName:"ImageSearchItemView"});function Tm(t){var p,x;const{list:e,onSelected:n,valueKey:r,labelKey:o,filterKey:s}=t,a=$.useFieldSchema(),l=h.useCollection(),{t:c}=de(),u=i.useMemo(()=>l==null?void 0:l.getField(a.fieldName),[l,a.fieldName]),d=h.useDesigner(),f=r||(u==null?void 0:u.targetKey)||"id",v=o||((x=(p=a["x-component-props"])==null?void 0:p.fieldNames)==null?void 0:x.label)||f,y=S=>{var w;const C=((w=S.keyPath)==null?void 0:w[0])||S;n([C],s)},g={title:v,key:f},b=(e||[]).map(S=>{var M;const{type:C,["image_show"]:w,[g.title]:k,[g.key]:E}=S,I=(location==null?void 0:location.origin)||"",T=(M=w==null?void 0:w[0])==null?void 0:M.url;let Z=T!=null?T:"";return Z.includes("http")||(Z=`${I}${T}`),C==="all"?{label:c("AllProducts"),key:"all",imageUrl:Z}:{label:k,key:E,imageUrl:Z}});return{collectionField:u,Designer:d,items:b,onSelect:y}}const Om=t=>{const{srcUrl:e,label:n}=t;return m.jsxs("div",{className:h.css`
343
343
  display: 'flex';
344
344
  flex-direction: 'column';
345
345
  width: '100%';
@@ -347,11 +347,11 @@
347
347
  :active {
348
348
  background-color: transparent;
349
349
  }
350
- `,children:[f.jsx(aa,{src:e,width:100,height:100,fit:"fill"}),f.jsx("p",{className:p.css`
350
+ `,children:[m.jsx(ea,{src:e,width:100,height:100,fit:"fill"}),m.jsx("p",{className:h.css`
351
351
  font-weight: 400;
352
352
  font-size: 17.6px;
353
353
  line-height: 1;
354
- `,children:n})]})},Vo=()=>{const t=$.useFieldSchema();p.useCollection();const{getDataBlocks:e}=p.useFilterBlock();return{onSelected:(o,r,s={canBeCalculatedField:!1,customLabelKey:"",needSort:!1})=>{const{canBeCalculatedField:a,customLabelKey:l,needSort:c=!0}=s,{targets:u,uid:d}=p.findFilterTargets(t);e().forEach(m=>{var S,C,w,k,E;if(!u.find(I=>I.uid===m.uid))return;const b=`${d}${t.name}`,h=((S=m.service.params)==null?void 0:S[0])||{};let y=((w=(C=m.service.params)==null?void 0:C[1])==null?void 0:w.filters)||{};if(o.length)o[0]?y[b]={[r]:o}:(k=y[b])==null||delete k[r],a&&(y[b]={[r]:Number((E=o==null?void 0:o[0])!=null?E:0)});else{if(m.dataLoadingMode==="manual")return m.clearData();delete y[b]}const g=p.mergeFilter([...Object.values(y),m.defaultFilter]);if(o.length===1&&o[0]==="all"){const I=Object.keys(y[b]);g.$and?(I.forEach(T=>{g.$and.forEach((Z,M)=>{Z[T]&&g.$and.splice(M,1)})}),g.$and=g.$and.filter(Boolean)):delete g[I[0]],y[b]={}}y=Le.omitBy(y,I=>I==null||Le.isObject(I)&&Le.isEmpty(I));let x=ae(L({},h),{page:1,filter:g});return c?x=ae(L({},x),{"sort[]":`-${l}`}):x=Le.omit(x,["sort[]"]),m.doFilter(x,{filters:y})})}}},Km=()=>{var u,d,m,v;const t=$.useFieldSchema(),e=p.useCollection(),n=p.useCollectionManager(),o=Wm({collection:e}),r=t.fieldName,s=i.useMemo(()=>e==null?void 0:e.getField(r),[e,r]),{onSelected:a}=Vo();if(!e)return{};const l={list:null,valueKey:"",labelKey:"",filterKey:""};l.valueKey=s!=null&&s.target?(u=n.getCollection(s.target))==null?void 0:u.getPrimaryKey():"id",l.labelKey=((m=(d=t["x-component-props"])==null?void 0:d.fieldNames)==null?void 0:m.label)||l.valueKey;const c=t["x-component-props"].interface;if(ct(c)){const b=o.find(g=>g.name===t.fieldName),h={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"},y=((v=b==null?void 0:b.uiSchema)==null?void 0:v.enum)||[];l.valueKey="value",l.labelKey="label",l.list=y,l.filterKey=`${b.name}.${h[b.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},Wm=({collection:t})=>{var n;return((n=t==null?void 0:t.fields)!=null?n:[]).filter(o=>ct(o.interface)&&o.uiSchema.enum)},Hm=()=>{var b,h,y,g,x;const t=$.useFieldSchema(),e=p.useCollection(),n=$.useField(),o={dataSource:"main"},r=p.useDataSourceHeaders(o==null?void 0:o.dataSource),s=p.useCollectionManager(),a=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),l=a==null?void 0:a.name,c=t["x-component-props"].interface,{onSelected:u}=Am(),d={list:null,valueKey:"",labelKey:"",filterKey:""};d.valueKey=a!=null&&a.target?(b=s.getCollection(a.target))==null?void 0:b.getPrimaryKey():"id",d.labelKey=((y=(h=t["x-component-props"])==null?void 0:h.fieldNames)==null?void 0:y.label)||d.valueKey;const m=((x=(g=t["x-component-props"])==null?void 0:g.fieldNames)==null?void 0:x.imageShow)||"imageShow",{data:v}=Um({headers:r,collectionField:a,result:d,imageShow:m,field:n,fieldInterface:c});if(d.filterKey=`${l}.${d.valueKey}.$in`,d.list=(v==null?void 0:v.data)||[],!!a)return{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,filterKey:d.filterKey,onSelected:u}},Um=({headers:t,collectionField:e,result:n,imageShow:o,field:r,fieldInterface:s})=>{var c,u;const{data:a,run:l}=p.useRequest({headers:t,resource:e==null?void 0:e.target,action:"list",params:L({fields:[n.labelKey,n.valueKey,o,"type"],pageSize:200,page:1},(c=r.componentProps)==null?void 0:c.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{$e(s)&&(e!=null&&e.target)&&l()},[n.labelKey,n.valueKey,JSON.stringify(((u=r.componentProps)==null?void 0:u.params)||{}),$e(s)]),{data:a}},Ym=p.withDynamicSchemaProps(t=>{const{fieldValue:e,data:n,changeNav:o}=t;if(!n)return;const r=n.data.length?n.data.map((s,a)=>{var l,c;return(l=s[e][0])!=null&&l.url?f.jsx(Ao.Item,{children:f.jsx("div",{className:ds,style:{backgroundImage:`url(${(c=s[e][0])==null?void 0:c.url})`,backgroundSize:"100% 100%",backgroundAttachment:"fixed"},onClick:()=>{o(s)}})},a):f.jsx(Ao.Item,{children:f.jsx("div",{className:ds,style:{backgroundColor:"#e0e0e0"},children:"无法加载此内容"})},a)}).filter(Boolean):[f.jsx(Ao.Item,{children:f.jsx("div",{className:ds,style:{backgroundColor:"#e0e0e0"},children:"当前卡片没有可加载数据"})},0)];return f.jsx(p.BlockItem,{children:f.jsx(Ao,{loop:!0,autoplay:!0,children:r})})}),ds=p.css`
354
+ `,children:n})]})},Mr=()=>{const t=$.useFieldSchema();h.useCollection();const{getDataBlocks:e}=h.useFilterBlock();return{onSelected:(r,o,s={canBeCalculatedField:!1,customLabelKey:"",needSort:!1})=>{const{canBeCalculatedField:a,customLabelKey:l,needSort:c=!0}=s,{targets:u,uid:d}=h.findFilterTargets(t);e().forEach(f=>{var S,C,w,k,E;if(!u.find(I=>I.uid===f.uid))return;const y=`${d}${t.name}`,g=((S=f.service.params)==null?void 0:S[0])||{};let b=((w=(C=f.service.params)==null?void 0:C[1])==null?void 0:w.filters)||{};if(r.length)r[0]?b[y]={[o]:r}:(k=b[y])==null||delete k[o],a&&(b[y]={[o]:Number((E=r==null?void 0:r[0])!=null?E:0)});else{if(f.dataLoadingMode==="manual")return f.clearData();delete b[y]}const p=h.mergeFilter([...Object.values(b),f.defaultFilter]);if(r.length===1&&r[0]==="all"){const I=Object.keys(b[y]);p.$and?(I.forEach(T=>{p.$and.forEach((Z,M)=>{Z[T]&&p.$and.splice(M,1)})}),p.$and=p.$and.filter(Boolean)):delete p[I[0]],b[y]={}}b=Le.omitBy(b,I=>I==null||Le.isObject(I)&&Le.isEmpty(I));let x=ae(L({},g),{page:1,filter:p});return c?x=ae(L({},x),{"sort[]":`-${l}`}):x=Le.omit(x,["sort[]"]),f.doFilter(x,{filters:b})})}}},Dm=()=>{var u,d,f,v;const t=$.useFieldSchema(),e=h.useCollection(),n=h.useCollectionManager(),r=Am({collection:e}),o=t.fieldName,s=i.useMemo(()=>e==null?void 0:e.getField(o),[e,o]),{onSelected:a}=Mr();if(!e)return{};const l={list:null,valueKey:"",labelKey:"",filterKey:""};l.valueKey=s!=null&&s.target?(u=n.getCollection(s.target))==null?void 0:u.getPrimaryKey():"id",l.labelKey=((f=(d=t["x-component-props"])==null?void 0:d.fieldNames)==null?void 0:f.label)||l.valueKey;const c=t["x-component-props"].interface;if(lt(c)){const y=r.find(p=>p.name===t.fieldName),g={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"},b=((v=y==null?void 0:y.uiSchema)==null?void 0:v.enum)||[];l.valueKey="value",l.labelKey="label",l.list=b,l.filterKey=`${y.name}.${g[y.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},Am=({collection:t})=>{var n;return((n=t==null?void 0:t.fields)!=null?n:[]).filter(r=>lt(r.interface)&&r.uiSchema.enum)},Lm=()=>{var y,g,b,p,x;const t=$.useFieldSchema(),e=h.useCollection(),n=$.useField(),r={dataSource:"main"},o=h.useDataSourceHeaders(r==null?void 0:r.dataSource),s=h.useCollectionManager(),a=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),l=a==null?void 0:a.name,c=t["x-component-props"].interface,{onSelected:u}=_m(),d={list:null,valueKey:"",labelKey:"",filterKey:""};d.valueKey=a!=null&&a.target?(y=s.getCollection(a.target))==null?void 0:y.getPrimaryKey():"id",d.labelKey=((b=(g=t["x-component-props"])==null?void 0:g.fieldNames)==null?void 0:b.label)||d.valueKey;const f=((x=(p=t["x-component-props"])==null?void 0:p.fieldNames)==null?void 0:x.imageShow)||"imageShow",{data:v}=Bm({headers:o,collectionField:a,result:d,imageShow:f,field:n,fieldInterface:c});if(d.filterKey=`${l}.${d.valueKey}.$in`,d.list=(v==null?void 0:v.data)||[],!!a)return{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,filterKey:d.filterKey,onSelected:u}},Bm=({headers:t,collectionField:e,result:n,imageShow:r,field:o,fieldInterface:s})=>{var c,u;const{data:a,run:l}=h.useRequest({headers:t,resource:e==null?void 0:e.target,action:"list",params:L({fields:[n.labelKey,n.valueKey,r,"type"],pageSize:200,page:1},(c=o.componentProps)==null?void 0:c.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{$e(s)&&(e!=null&&e.target)&&l()},[n.labelKey,n.valueKey,JSON.stringify(((u=o.componentProps)==null?void 0:u.params)||{}),$e(s)]),{data:a}},zm=h.withDynamicSchemaProps(t=>{const{fieldValue:e,data:n,changeNav:r}=t;if(!n)return;const o=n.data.length?n.data.map((s,a)=>{var l,c;return(l=s[e][0])!=null&&l.url?m.jsx($r.Item,{children:m.jsx("div",{className:ss,style:{backgroundImage:`url(${(c=s[e][0])==null?void 0:c.url})`,backgroundSize:"100% 100%",backgroundAttachment:"fixed"},onClick:()=>{r(s)}})},a):m.jsx($r.Item,{children:m.jsx("div",{className:ss,style:{backgroundColor:"#e0e0e0"},children:"无法加载此内容"})},a)}).filter(Boolean):[m.jsx($r.Item,{children:m.jsx("div",{className:ss,style:{backgroundColor:"#e0e0e0"},children:"当前卡片没有可加载数据"})},0)];return m.jsx(h.BlockItem,{children:m.jsx($r,{loop:!0,autoplay:!0,children:o})})}),ss=h.css`
355
355
  height: 20vh;
356
356
  color: #ffffff;
357
357
  display: flex;
@@ -359,17 +359,17 @@
359
359
  align-items: center;
360
360
  font-size: 25px;
361
361
  user-select: none;
362
- `,Gm=()=>{const{insert:t}=p.useSchemaInitializer(),e=p.useCollectionManager(),n=p.useSchemaInitializerItem(),o=s=>fe(this,[s],function*({item:r}){const a=e.getCollection(r.name),l=a.fields.find(u=>u.interface==="attachment");if(!l){ss.show({content:"当前数据源暂无可加载数据"});return}const c={type:"void",name:r.name,title:a.title,"x-decorator":"DataBlockProvider","x-decorator-props":{collection:r.name,dataSource:"main"},"x-toolbar":"BlockSchemaToolbar","x-settings":"SwiperFieldSettings","x-component":"SwiperBlock","x-use-component-props":"useSwiperBlockProps","x-component-props":{resourceName:r.name,fieldValue:l.name}};t(c)});return f.jsx(p.DataBlockInitializer,ae(L({},n),{icon:"swiper-block",componentType:"Swiper",onCreateBlockSchema:o}))},qm=new p.SchemaSettings({name:"SwiperFieldSettings",items:[{name:"setTheDataScope",Component:p.SchemaSettingsDataScope,useComponentProps(){var s,a;const t=$.useFieldSchema(),{form:e}=p.useFormBlockContext(),n=$.useField(),o=p.useCollection(),{dn:r}=p.useDesignable();return{collectionName:o.getOptions().name,defaultFilter:((a=(s=t==null?void 0:t["x-component-props"])==null?void 0:s.params)==null?void 0:a.filter)||{},form:e,onSubmit:({filter:l})=>{var c;Le.set(n.componentProps,"params",ae(L({},(c=n.componentProps)==null?void 0:c.params),{filter:l})),t["x-component-props"].params=n.componentProps.params,r.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}}},{name:"setShowField",type:"select",useComponentProps(){const t=$.useFieldSchema(),{t:e}=de(),n=p.useCollection(),o=p.useCompile(),{dn:r}=p.useDesignable(),s=n.fields.map(l=>{var c;if((l==null?void 0:l.interface)==="attachment")return{label:o((c=l.uiSchema)==null?void 0:c.title)||l.name,value:l.name}}).filter(Boolean),a=l=>{const c={"x-uid":t["x-uid"]};t["x-component-props"].fieldValue=l,c["x-component-props"]=t["x-component-props"],r.emit("patch",{schema:c}),r.refresh()};return{title:e("Set show field"),options:s,value:t["x-component-props"].fieldValue,onChange:a}}},{name:"setFieldCount",type:"select",useComponentProps(){const t=$.useFieldSchema(),{dn:e}=p.useDesignable(),{t:n}=de(),o=[];for(let s=1;s<=20;s++)o.push({label:s,value:s});const r=s=>{t["x-component-props"].pageSize=s,e.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}}),e.refresh()};return{title:n("Set field count"),options:o,value:t["x-component-props"].pageSize||5,onChange:r}}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100}]}),$l=()=>{const t=ie.useParams(),{name:e,collection:n,field:o,fieldParams:r}=t,s={};return s[o]=r,f.jsx(p.DataBlockProvider,{collection:n,dataSource:"main",children:f.jsx(p.CollectionRecordProvider,{record:s,parentRecord:null,children:f.jsx(p.RemoteSchemaComponent,{uid:e})})})},Xm=()=>{const t=$.useFieldSchema(),e=ie.useNavigate(),n=t.properties?Object.values(t.properties):null,{insertAdjacent:o}=p.useDesignable(),s=p.useCollection().targetKey||"id",{filter:a,pageSize:l,fieldValue:c,resourceName:u}=t["x-component-props"],{data:d,run:m}=p.useRequest({resource:u+":list",params:{filter:a,pageSize:l||5,appends:c?[c]:[]}});return i.useEffect(()=>{m()},[a,l,c]),{data:d,fieldValue:c,changeNav:b=>{if(b.isIdentical){const h=n==null?void 0:n.find(y=>y["x-component-props"].fixedComponent);h?e(`/mobile/${h["x-uid"]}/image/${u}/${s}/${b[s]}`):o("beforeEnd",_l(b,"fixedComponent"),{onSuccess(y){y&&e(`/mobile/${y["x-uid"]}`)}})}else{const h=n==null?void 0:n.find(y=>y.name===String(b.id));h?e(`/mobile/${h["x-uid"]}`):o("beforeEnd",_l(b),{onSuccess(y){y&&e(`/mobile/${y["x-uid"]}`)}})}}}},_l=(t,e)=>({type:"void",title:t.title,name:t.id,"x-component":"MMenu.Item","x-component-props":{imgItem:t,fixedComponent:e},"x-designer":"MMenu.Item.Designer",properties:{page:{type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock"}}}}}),Jm=()=>{const{fieldSchema:t,Designer:e,render:n,filterProperties:o}=Qm();return f.jsxs(f.Fragment,{children:[f.jsx(e,{}),f.jsx($.RecursionField,{schema:t,onlyRenderProperties:!0,filterProperties:o}),f.jsx(i.Fragment,{children:n()})]})},Qm=()=>{const t=p.useDesigner(),e=$.useFieldSchema(),{render:n}=p.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]);return{fieldSchema:e,Designer:t,render:n,filterProperties:r=>Ge(r["x-component"])?r===Object.values(r.parent.properties).filter(s=>Ge(s["x-component"]))[0]:!0}},Pl=t=>{const{onSelected:e}=Vo(),n=$.useFieldSchema(),o=p.useCollection(),r=p.useCollectionManager(),{dn:s}=p.useDesignable(),[a,l]=i.useState(!1),c=i.useMemo(()=>o==null?void 0:o.getField(n.fieldName),[o,n.fieldName]),u=n.parent.properties,d=p.useDesigner(),[m,v]=i.useState(n.fieldName),[b,h]=i.useState(n["x-component-props"].interface),y=Nt(b)?zo(be.dayjs(new Date).startOf("date"))+"&"+zo(be.dayjs(new Date).endOf("date")):"",[g,x]=i.useState(y),S=Object.values(u).map(T=>{if(Ge(T["x-component"]))return{label:T.title,value:T.fieldName,interface:T["x-component-props"].interface}}).filter(Boolean),C=T=>{let Z,M=`${m}.$includes`;const N=_m(b);if(N&&(M=`${m}.$notEmpty`),Nt(b)&&(Z=T.split("&").map(U=>JSON.parse(U)),M=`${m}.$dateBetween`),$e(b)){const U=n["x-component-props"].fieldNames.label;M=`${n["x-component-props"].correlation}.${U}.$includes`}e(Z||[T],M,{canBeCalculatedField:N,customLabelKey:m,needSort:a})};return{collectionField:c,Designer:d,options:S,value:g,onSelectChange:T=>{const Z=Object.values(u).find(M=>M.fieldName===T)["x-component-props"].interface;if($e(Z)){const M=r.getCollection(o.name+"."+T).titleField;n["x-component-props"].correlation=T,n["x-component-props"].fieldNames={label:M},s.emit("patch",{schema:{"u-id":n["u-id"],"x-component-props":n["x-component-props"]}}),s.refresh()}h(Z),Nt(Z)?x(zo(new Date)+"&"+zo(new Date)):x(""),v(T)},onInputChange:T=>{var N,U;const Z={current:null};clearTimeout(Z.current);const M=(U=(N=T.target)==null?void 0:N.value)!=null?U:T;x(M),M===""&&(Z.current=setTimeout(()=>{C(M)},2e3))},onButtonClick:()=>{C(g)},customLabelKey:m,fieldInterface:b,onDateClick:T=>{C(T)},needSort:a,setNeedSort:l}},Rm=t=>{const{options:e,onChange:n}=t;return e.length>1?f.jsxs(le.Col,{flex:1,style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[f.jsx(le.Select,{style:{width:"100%"},options:e,defaultValue:e[0].value,onChange:n}),f.jsx(le.Divider,{type:"vertical",style:{height:"70%"}})]}):null},ep=t=>{const{options:e,value:n,onChange:o}=t,{t:r}=de();return f.jsx(le.Col,{flex:e.length>1?3:4,children:f.jsx(le.Input,{placeholder:r("Please enter search content"),value:n,onChange:o})})},tp=t=>{const{options:e,value:n,onInputChange:o}=t,r=n.split("&"),s=a=>{const l=`"${a[0]}"&"${a[1]}"`;o(l)};return f.jsx(le.Col,{flex:e.length>1?3:4,children:f.jsx(ys.DatePicker.RangePicker,{className:p.css`
362
+ `,Vm=()=>{const{insert:t}=h.useSchemaInitializer(),e=h.useCollectionManager(),n=h.useSchemaInitializerItem(),r=s=>fe(null,[s],function*({item:o}){const a=e.getCollection(o.name),l=a.fields.find(u=>u.interface==="attachment");if(!l){Ro.show({content:"当前数据源暂无可加载数据"});return}const c={type:"void",name:o.name,title:a.title,"x-decorator":"DataBlockProvider","x-decorator-props":{collection:o.name,dataSource:"main"},"x-toolbar":"BlockSchemaToolbar","x-settings":"SwiperFieldSettings","x-component":"SwiperBlock","x-use-component-props":"useSwiperBlockProps","x-component-props":{resourceName:o.name,fieldValue:l.name}};t(c)});return m.jsx(h.DataBlockInitializer,ae(L({},n),{icon:"swiper-block",componentType:"Swiper",onCreateBlockSchema:r}))},Zm=new h.SchemaSettings({name:"SwiperFieldSettings",items:[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var s,a;const t=$.useFieldSchema(),{form:e}=h.useFormBlockContext(),n=$.useField(),r=h.useCollection(),{dn:o}=h.useDesignable();return{collectionName:r.getOptions().name,defaultFilter:((a=(s=t==null?void 0:t["x-component-props"])==null?void 0:s.params)==null?void 0:a.filter)||{},form:e,onSubmit:({filter:l})=>{var c;Le.set(n.componentProps,"params",ae(L({},(c=n.componentProps)==null?void 0:c.params),{filter:l})),t["x-component-props"].params=n.componentProps.params,o.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}}},{name:"setShowField",type:"select",useComponentProps(){const t=$.useFieldSchema(),{t:e}=de(),n=h.useCollection(),r=h.useCompile(),{dn:o}=h.useDesignable(),s=n.fields.map(l=>{var c;if((l==null?void 0:l.interface)==="attachment")return{label:r((c=l.uiSchema)==null?void 0:c.title)||l.name,value:l.name}}).filter(Boolean),a=l=>{const c={"x-uid":t["x-uid"]};t["x-component-props"].fieldValue=l,c["x-component-props"]=t["x-component-props"],o.emit("patch",{schema:c}),o.refresh()};return{title:e("Set show field"),options:s,value:t["x-component-props"].fieldValue,onChange:a}}},{name:"setFieldCount",type:"select",useComponentProps(){const t=$.useFieldSchema(),{dn:e}=h.useDesignable(),{t:n}=de(),r=[];for(let s=1;s<=20;s++)r.push({label:s,value:s});const o=s=>{t["x-component-props"].pageSize=s,e.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}}),e.refresh()};return{title:n("Set field count"),options:r,value:t["x-component-props"].pageSize||5,onChange:o}}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100}]}),Cl=()=>{const t=ie.useParams(),{name:e,collection:n,field:r,fieldParams:o}=t,s={};return s[r]=o,m.jsx(h.DataBlockProvider,{collection:n,dataSource:"main",children:m.jsx(h.CollectionRecordProvider,{record:s,parentRecord:null,children:m.jsx(h.RemoteSchemaComponent,{uid:e})})})},jm=()=>{const t=$.useFieldSchema(),e=ie.useNavigate(),n=t.properties?Object.values(t.properties):null,{insertAdjacent:r}=h.useDesignable(),s=h.useCollection().targetKey||"id",{filter:a,pageSize:l,fieldValue:c,resourceName:u}=t["x-component-props"],{data:d,run:f}=h.useRequest({resource:u+":list",params:{filter:a,pageSize:l||5,appends:c?[c]:[]}});return i.useEffect(()=>{f()},[a,l,c]),{data:d,fieldValue:c,changeNav:y=>{if(y.isIdentical){const g=n==null?void 0:n.find(b=>b["x-component-props"].fixedComponent);g?e(`/mobile/${g["x-uid"]}/image/${u}/${s}/${y[s]}`):r("beforeEnd",Sl(y,"fixedComponent"),{onSuccess(b){b&&e(`/mobile/${b["x-uid"]}`)}})}else{const g=n==null?void 0:n.find(b=>b.name===String(y.id));g?e(`/mobile/${g["x-uid"]}`):r("beforeEnd",Sl(y),{onSuccess(b){b&&e(`/mobile/${b["x-uid"]}`)}})}}}},Sl=(t,e)=>({type:"void",title:t.title,name:t.id,"x-component":"MMenu.Item","x-component-props":{imgItem:t,fixedComponent:e},"x-designer":"MMenu.Item.Designer",properties:{page:{type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock"}}}}}),Km=()=>{const{fieldSchema:t,Designer:e,render:n,filterProperties:r}=Wm();return m.jsxs(m.Fragment,{children:[m.jsx(e,{}),m.jsx($.RecursionField,{schema:t,onlyRenderProperties:!0,filterProperties:r}),m.jsx(i.Fragment,{children:n()})]})},Wm=()=>{const t=h.useDesigner(),e=$.useFieldSchema(),{render:n}=h.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]);return{fieldSchema:e,Designer:t,render:n,filterProperties:o=>qe(o["x-component"])?o===Object.values(o.parent.properties).filter(s=>qe(s["x-component"]))[0]:!0}},wl=t=>{const{onSelected:e}=Mr(),n=$.useFieldSchema(),r=h.useCollection(),o=h.useCollectionManager(),{dn:s}=h.useDesignable(),[a,l]=i.useState(!1),c=i.useMemo(()=>r==null?void 0:r.getField(n.fieldName),[r,n.fieldName]),u=n.parent.properties,d=h.useDesigner(),[f,v]=i.useState(n.fieldName),[y,g]=i.useState(n["x-component-props"].interface),b=Mt(y)?Fr(ye.dayjs(new Date).startOf("date"))+"&"+Fr(ye.dayjs(new Date).endOf("date")):"",[p,x]=i.useState(b),S=Object.values(u).map(T=>{if(qe(T["x-component"]))return{label:T.title,value:T.fieldName,interface:T["x-component-props"].interface}}).filter(Boolean),C=T=>{let Z,M=`${f}.$includes`;const N=xm(y);if(N&&(M=`${f}.$notEmpty`),Mt(y)&&(Z=T.split("&").map(U=>JSON.parse(U)),M=`${f}.$dateBetween`),$e(y)){const U=n["x-component-props"].fieldNames.label;M=`${n["x-component-props"].correlation}.${U}.$includes`}e(Z||[T],M,{canBeCalculatedField:N,customLabelKey:f,needSort:a})};return{collectionField:c,Designer:d,options:S,value:p,onSelectChange:T=>{const Z=Object.values(u).find(M=>M.fieldName===T)["x-component-props"].interface;if($e(Z)){const M=o.getCollection(r.name+"."+T).titleField;n["x-component-props"].correlation=T,n["x-component-props"].fieldNames={label:M},s.emit("patch",{schema:{"u-id":n["u-id"],"x-component-props":n["x-component-props"]}}),s.refresh()}g(Z),Mt(Z)?x(Fr(new Date)+"&"+Fr(new Date)):x(""),v(T)},onInputChange:T=>{var N,U;const Z={current:null};clearTimeout(Z.current);const M=(U=(N=T.target)==null?void 0:N.value)!=null?U:T;x(M),M===""&&(Z.current=setTimeout(()=>{C(M)},2e3))},onButtonClick:()=>{C(p)},customLabelKey:f,fieldInterface:y,onDateClick:T=>{C(T)},needSort:a,setNeedSort:l}},Hm=t=>{const{options:e,onChange:n}=t;return e.length>1?m.jsxs(le.Col,{flex:1,style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[m.jsx(le.Select,{style:{width:"100%"},options:e,defaultValue:e[0].value,onChange:n}),m.jsx(le.Divider,{type:"vertical",style:{height:"70%"}})]}):null},Um=t=>{const{options:e,value:n,onChange:r}=t,{t:o}=de();return m.jsx(le.Col,{flex:e.length>1?3:4,children:m.jsx(le.Input,{placeholder:o("Please enter search content"),value:n,onChange:r})})},qm=t=>{const{options:e,value:n,onInputChange:r}=t,o=n.split("&"),s=a=>{const l=`"${a[0]}"&"${a[1]}"`;r(l)};return m.jsx(le.Col,{flex:e.length>1?3:4,children:m.jsx(ms.DatePicker.RangePicker,{className:h.css`
363
363
  width: 100%;
364
364
  border: none;
365
365
  input {
366
366
  text-align: center;
367
367
  }
368
- `,value:r,onChange:s})})},np=t=>{const{onClick:e}=t,{t:n}=de();return f.jsx(le.Col,{flex:1,children:f.jsx(le.Button,{style:{width:"100%",color:"#2c6eff"},type:"link",onClick:e,children:n("Search")})})},op=p.withDynamicSchemaProps(t=>{const{fieldInterface:e,collectionField:n,Designer:o,options:r,value:s,onSelectChange:a,onInputChange:l,onButtonClick:c,customLabelKey:u,onDateClick:d}=Pl();return n?f.jsxs(p.SortableItem,{children:[f.jsx(o,{}),f.jsx(le.ConfigProvider,{theme:{token:{colorBgContainer:"#f9f9f9",colorBorder:"none"},components:{Input:{colorBorder:"#f9f9f9",activeShadow:"none",hoverBorderColor:"none",activeBorderColor:"none"},Divider:{colorSplit:"#c1c2c5"}}},children:f.jsxs(le.Row,{style:{marginTop:"2vh",backgroundColor:"#f9f9f9"},children:[f.jsx(Rm,{options:r,onChange:a,customLabelKey:u}),Nt(e)?f.jsx(tp,{options:r,value:s,onInputChange:l,onChange:d}):f.jsx(ep,{options:r,value:s,onChange:l}),f.jsx(np,{onClick:c})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),rp=t=>{var l;const{options:e,onChange:n,customLabelKey:o}=t,r=e.map(c=>({text:c.label,key:c.value})),[s,a]=i.useState(!1);return e.length>1?f.jsxs(et.Item,{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},onClick:()=>{a(!0)},children:[f.jsx("span",{style:{textAlign:"center",width:"100%"},children:(l=e.find(c=>c.value===o))==null?void 0:l.label}),f.jsx(sd,{}),e.length<=5?f.jsx(w1,{visible:s,actions:r,closeOnAction:!0,onClose:()=>a(!1),onAction:c=>{n(c.key)}}):f.jsx(Fa,{columns:[e],visible:s,onClose:()=>{a(!1)},defaultValue:o,onConfirm:c=>{n(c[0])}}),f.jsx(Lr,{direction:"vertical",style:{height:"70%",margin:"0 0 0 5px"}})]}):null},sp=t=>{const{options:e,value:n,onChange:o,onInputChange:r}=t,s=n.split("&"),[a,l]=i.useState(!1),[c,u]=i.useState(0),d=be.dayjs().subtract(10,"year").toDate(),m=be.dayjs().add(3,"year").toDate(),v=()=>{l(!0)},b=([h,y])=>{const g=be.dayjs(h).startOf("date").toISOString(),x=be.dayjs(y).endOf("date").toISOString(),S=`"${g}"&"${x}"`;r(S),o(S),c>0&&c%2===1?(l(!1),u(0)):u(C=>C+1)};return f.jsxs(et.Item,{span:e.length>1?3:4,children:[f.jsx("div",{onClick:v,children:f.jsxs(et,{columns:5,children:[f.jsx(et.Item,{span:2,style:{textAlign:"end"},children:Il(JSON.parse(s[0]))}),f.jsx(et.Item,{span:1,style:{textAlign:"center"},children:"-"}),f.jsx(et.Item,{span:2,style:{textAlign:"start"},children:Il(JSON.parse(s[1]))})]})}),f.jsx(Ut,{visible:a,destroyOnClose:!0,mask:!0,closeOnMaskClick:!0,onMaskClick:()=>l(!1),onClose:()=>l(!1),children:f.jsx(W1,{selectionMode:"range",allowClear:!0,min:d,max:m,onChange:b})})]})},ip=t=>{const{options:e,value:n,onChange:o}=t;return f.jsx(et.Item,{style:{flex:1},span:e.length>1?2:3,children:f.jsx(Rr,{placeholder:ut("Please enter search content"),value:n,onChange:o,style:{"--font-size":"12px",marginLeft:"5px"}})})},ap=t=>{const{onClick:e}=t,{t:n}=de();return f.jsx(et.Item,{onClick:e,style:{color:"#2c6eff",textAlign:"center",cursor:"pointer"},children:n("Search")})},lp=p.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,options:o,value:r,onSelectChange:s,onInputChange:a,onButtonClick:l,customLabelKey:c,fieldInterface:u,onDateClick:d}=Pl(),{t:m}=de();return e?f.jsxs(p.SortableItem,{children:[f.jsx(n,{}),f.jsx("div",{className:p.css`
368
+ `,value:o,onChange:s})})},Ym=t=>{const{onClick:e}=t,{t:n}=de();return m.jsx(le.Col,{flex:1,children:m.jsx(le.Button,{style:{width:"100%",color:"#2c6eff"},type:"link",onClick:e,children:n("Search")})})},Gm=h.withDynamicSchemaProps(t=>{const{fieldInterface:e,collectionField:n,Designer:r,options:o,value:s,onSelectChange:a,onInputChange:l,onButtonClick:c,customLabelKey:u,onDateClick:d}=wl();return n?m.jsxs(h.SortableItem,{children:[m.jsx(r,{}),m.jsx(le.ConfigProvider,{theme:{token:{colorBgContainer:"#f9f9f9",colorBorder:"none"},components:{Input:{colorBorder:"#f9f9f9",activeShadow:"none",hoverBorderColor:"none",activeBorderColor:"none"},Divider:{colorSplit:"#c1c2c5"}}},children:m.jsxs(le.Row,{style:{marginTop:"2vh",backgroundColor:"#f9f9f9"},children:[m.jsx(Hm,{options:o,onChange:a,customLabelKey:u}),Mt(e)?m.jsx(qm,{options:o,value:s,onInputChange:l,onChange:d}):m.jsx(Um,{options:o,value:s,onChange:l}),m.jsx(Ym,{onClick:c})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),Xm=t=>{var l;const{options:e,onChange:n,customLabelKey:r}=t,o=e.map(c=>({text:c.label,key:c.value})),[s,a]=i.useState(!1);return e.length>1?m.jsxs(Re.Item,{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},onClick:()=>{a(!0)},children:[m.jsx("span",{style:{textAlign:"center",width:"100%"},children:(l=e.find(c=>c.value===r))==null?void 0:l.label}),m.jsx(ed,{}),e.length<=5?m.jsx(y1,{visible:s,actions:o,closeOnAction:!0,onClose:()=>a(!1),onAction:c=>{n(c.key)}}):m.jsx(ka,{columns:[e],visible:s,onClose:()=>{a(!1)},defaultValue:r,onConfirm:c=>{n(c[0])}}),m.jsx(Po,{direction:"vertical",style:{height:"70%",margin:"0 0 0 5px"}})]}):null},Jm=t=>{const{options:e,value:n,onChange:r,onInputChange:o}=t,s=n.split("&"),[a,l]=i.useState(!1),[c,u]=i.useState(0),d=ye.dayjs().subtract(10,"year").toDate(),f=ye.dayjs().add(3,"year").toDate(),v=()=>{l(!0)},y=([g,b])=>{const p=ye.dayjs(g).startOf("date").toISOString(),x=ye.dayjs(b).endOf("date").toISOString(),S=`"${p}"&"${x}"`;o(S),r(S),c>0&&c%2===1?(l(!1),u(0)):u(C=>C+1)};return m.jsxs(Re.Item,{span:e.length>1?3:4,children:[m.jsx("div",{onClick:v,children:m.jsxs(Re,{columns:5,children:[m.jsx(Re.Item,{span:2,style:{textAlign:"end"},children:xl(JSON.parse(s[0]))}),m.jsx(Re.Item,{span:1,style:{textAlign:"center"},children:"-"}),m.jsx(Re.Item,{span:2,style:{textAlign:"start"},children:xl(JSON.parse(s[1]))})]})}),m.jsx(Ht,{visible:a,destroyOnClose:!0,mask:!0,closeOnMaskClick:!0,onMaskClick:()=>l(!1),onClose:()=>l(!1),children:m.jsx(V1,{selectionMode:"range",allowClear:!0,min:d,max:f,onChange:y})})]})},Qm=t=>{const{options:e,value:n,onChange:r}=t;return m.jsx(Re.Item,{style:{flex:1},span:e.length>1?2:3,children:m.jsx(qo,{placeholder:ct("Please enter search content"),value:n,onChange:r,style:{"--font-size":"12px",marginLeft:"5px"}})})},Rm=t=>{const{onClick:e}=t,{t:n}=de();return m.jsx(Re.Item,{onClick:e,style:{color:"#2c6eff",textAlign:"center",cursor:"pointer"},children:n("Search")})},ep=h.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,options:r,value:o,onSelectChange:s,onInputChange:a,onButtonClick:l,customLabelKey:c,fieldInterface:u,onDateClick:d}=wl(),{t:f}=de();return e?m.jsxs(h.SortableItem,{children:[m.jsx(n,{}),m.jsx("div",{className:h.css`
369
369
  display: flex;
370
370
  flex-direction: row;
371
371
  align-items: center;
372
- `,children:f.jsxs(et,{columns:4,style:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-start",padding:"10px",backgroundColor:"#f9f9f9",borderRadius:"5px",margin:"5px 0 0 0"},children:[f.jsx(rp,{options:o,onChange:s,customLabelKey:c}),Nt(u)?f.jsx(sp,{value:r,onChange:d,onInputChange:a,options:o}):f.jsxs(f.Fragment,{children:[f.jsx(ip,{options:o,value:r,onChange:a}),f.jsx(ap,{onClick:l})]})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),cp=p.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:o,onSelect:r}=Fl(t);return e?f.jsxs(p.SortableItem,{children:[f.jsx(n,{}),f.jsx(Io,{style:{"--title-font-size":"12px",color:"#a5a5a5"},onChange:r,children:o.map(s=>f.jsx(Io.Tab,{title:s.label},s.key))})]}):null},{displayName:"TabSearchFieldItem"}),Fl=t=>{var g,x;const{list:e,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=t,{t:a}=de(),l=$.useFieldSchema(),c=p.useCollection(),u=i.useMemo(()=>c==null?void 0:c.getField(l.fieldName),[c,l.fieldName]),d=p.useDesigner(),m=o||(u==null?void 0:u.targetKey)||"id",v=r||((x=(g=l["x-component-props"])==null?void 0:g.fieldNames)==null?void 0:x.label)||m,b=S=>{var w;const C=((w=S.keyPath)==null?void 0:w[0])||S;n([C],s)},h={title:v,key:m},y=[];return e!=null&&e.length&&e.forEach(S=>{y.push({label:S[h.title],key:S[h.key]})}),y==null||y.unshift({label:a("all"),key:"all"}),{collectionField:u,Designer:d,items:y,onSelect:b}},up=p.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:o,onSelect:r}=Fl(t);return e?f.jsxs(p.SortableItem,{children:[f.jsx(n,{}),f.jsx(le.ConfigProvider,{theme:{components:{Menu:{itemColor:"#a5a5a5",itemHoverColor:"#1d2ffff18"}}},children:f.jsx(le.Menu,{items:o,mode:"horizontal",onSelect:r,defaultSelectedKeys:["all"]})})]}):null},{displayName:"TabSearchFieldItem"}),dp=()=>{var u,d,m,v,b,h;const t=$.useFieldSchema(),e=p.useCollection(),n=((u=t["x-component-props"])==null?void 0:u.currentCollection)||(e==null?void 0:e.name),o=fp(n),r=p.useCollectionManager(),s=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),{onSelected:a}=Vo(),l={list:null,valueKey:"",labelKey:"",filterKey:""};if(!e)return;l.valueKey=s!=null&&s.target?(d=r.getCollection(s.target))==null?void 0:d.getPrimaryKey():"id",l.labelKey=((v=(m=t["x-component-props"])==null?void 0:m.fieldNames)==null?void 0:v.label)||l.valueKey;const c=(b=t["x-component-props"])==null?void 0:b.interface;if(ct(c)){const y=o.find(S=>S.name===t.fieldName.split(".").findLast(Boolean)),g={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"};t.fieldName;const x=((h=y==null?void 0:y.uiSchema)==null?void 0:h.enum)||[];l.valueKey="value",l.labelKey="label",l.list=x,l.filterKey=`${t.fieldName}.${g[y==null?void 0:y.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},fp=t=>{var r;const n=p.useCollectionManager().getCollection(t);return((r=n==null?void 0:n.fields)!=null?r:[]).filter(s=>ct(s.interface)&&s.uiSchema.enum)},mp=()=>{var h,y,g,x,S;const t=$.useFieldSchema(),e=p.useCollection(),n=$.useField(),o={dataSource:"main"},r=p.useDataSourceHeaders(o==null?void 0:o.dataSource),s=p.useCollectionManager(),a=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),c=t["x-component-props"].currentCollection===(e==null?void 0:e.name)?a==null?void 0:a.name:t.fieldName,u=t["x-component-props"].interface,d={list:null,valueKey:"",labelKey:"",filterKey:""},{onSelected:m}=Vo();d.valueKey=a!=null&&a.target?(h=s.getCollection(a.target))==null?void 0:h.getPrimaryKey():"id",d.labelKey=((g=(y=t["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:g.label)||d.valueKey;const{data:v,run:b}=p.useRequest({headers:r,resource:a==null?void 0:a.target,action:"list",params:L({fields:[d.labelKey,d.valueKey],pageSize:200,page:1},(x=n.componentProps)==null?void 0:x.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{$e(u)&&(a!=null&&a.target)&&b()},[d.labelKey,d.valueKey,JSON.stringify(((S=n.componentProps)==null?void 0:S.params)||{}),$e(u)]),a?(d.filterKey=`${c}.${d.valueKey}.$in`,d.list=(v==null?void 0:v.data)||[],{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,onSelected:m,filterKey:d.filterKey}):{}},pp=t=>{const{collectionName:e,dataSource:n,blockType:o}=t;return{type:"void","x-decorator":"TabSearchProvider","x-decorator-props":{collection:e,dataSource:n,blockType:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[be.uid()]:{type:"void","x-action":"tabSearch","x-initializer":"tabSearch:configureFields","x-component":"TabSearch"}}}},hp=t=>{const{filterCollections:e,onlyCurrentDataSource:n,hideChildrenIfSingleCollection:o}=t,r=p.useSchemaInitializerItem(),{insert:s}=p.useSchemaInitializer(),a=c=>fe(this,[c],function*({item:l}){const u=pp({dataSource:l.dataSource,collectionName:l.collectionName||l.name,blockType:"filter"});s(u)});return f.jsx(p.DataBlockInitializer,ae(L({},r),{onlyCurrentDataSource:n,icon:"tab-search",componentType:"TabSearch",filter:e,hideChildrenIfSingleCollection:o,onCreateBlockSchema:a}))},fs=t=>{var l,c;const{field:e,itemComponent:n,label:o,itemUseProps:r,collection:s,type:a}=t;return{name:e.key,title:(l=e.uiSchema)==null?void 0:l.title,Component:"TabSearchFieldSchemaInitializerGadget",schema:{name:e.name+a,fieldName:e.name,title:(c=e.uiSchema)==null?void 0:c.title,type:"void","x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-component":n,"x-use-component-props":r,"x-component-props":{fieldNames:{label:o},interface:e.interface,collectionName:s==null?void 0:s.name,correlation:e.name},properties:{}}}},gp={TabSearchCollapsibleInputItem:"TabSearchCollapsibleInputMItem",useTabSearchFieldItemProps:"useTabSearchFieldItemRelatedProps",TabSearchFieldItem:"TabSearchFieldMItem"};function Ml(t){return gp[t]}const vp=()=>{const t=Nl("textField"),e=Nl("choiceField"),n=[{type:"itemGroup",title:qe("Display association Textfields",!1),children:t},{type:"itemGroup",title:qe("Display association Choicefields",!1),children:e}];return f.jsx(p.SchemaInitializerChildren,{children:n})};function Nl(t){const e=p.useCollection(),{name:n,allFields:o}=e||{},{getCollectionFields:r}=bp();p.useIsMobile();const s=p.useCollectionManager(),a=o==null?void 0:o.filter(({interface:d})=>$e(d)),l={collectionName:n,getCollectionFields:r,processedCollections:[],collectionManager:s};let c=[];return t==="textField"?c=a.map(d=>{var b;const m=$e(d.interface)?(b=s.getCollection(`${n}.${d.name}`))==null?void 0:b.titleField:d.name;return Tl(ae(L({},l),{field:d,label:m,schemaName:d.name}))}):t==="choiceField"&&(c=a.map(d=>{var b;const m=((b=s.getCollection(d.target))==null?void 0:b.getPrimaryKey())||"id";return Ol(ae(L({},l),{field:d,label:m,schemaName:d.name}))})),c.filter(Boolean)}function Tl(t,e){var v,b,h,y,g;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c}=t,{interface:u}=n,d=ct(u),m=$e(u);if(["m2o","obo"].includes(u)){if(l.includes(n.target))return null;const x=a(n.target);return{type:"subMenu",name:(v=n.uiSchema)==null?void 0:v.title,title:(b=n.uiSchema)==null?void 0:b.title,children:x.toSorted((S,C)=>+Object.hasOwn(S,"target")-+Object.hasOwn(C,"target")).map(S=>{var w;const C=$e(n.interface)?(w=c.getCollection(`${name}.${n.name}`))==null?void 0:w.titleField:n.name;return Tl({field:S,label:C,schemaName:`${r}.${S.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c})}).filter(Boolean)}}return p.isAssocField(n)||!El(u)&&!$e(u)&&!Nt(u)?null:{name:((h=n.uiSchema)==null?void 0:h.title)||n.name,title:((y=n.uiSchema)==null?void 0:y.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(g=n.uiSchema)==null?void 0:g.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Ml("TabSearchCollapsibleInputItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name},"x-use-component-props":Dl({useTabSearchFieldItemProps:d,useTabSearchFieldItemRelatedProps:m})}}}function Ol(t,e){var b,h,y,g,x;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c,currentCollection:u}=t,{interface:d}=n,m=ct(d),v=$e(d);if(["m2o","obo"].includes(d)&&!n.choiceTag){if(l.includes(n.target))return null;const S=a(n.target);return{type:"subMenu",name:(b=n.uiSchema)==null?void 0:b.title,title:(h=n.uiSchema)==null?void 0:h.title,children:S.reduce((C,w)=>(Object.hasOwn(w,"target")&&["m2o","obo"].includes(w.interface)&&C.push(ae(L({},w),{choiceTag:!0})),[...C,w]),[]).toSorted((C,w)=>+Object.hasOwn(C,"target")*2-+Object.hasOwn(C,"choiceTag")-+Object.hasOwn(w,"target")*2-+Object.hasOwn(w,"choiceTag")).map(C=>{var k;const w=((k=c.getCollection(n.target))==null?void 0:k.getPrimaryKey())||"id";return Ol({field:C,label:w,schemaName:`${r}.${C.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c,currentCollection:n.target})}).filter(Boolean)}}return p.isAssocField(n)&&!n.choiceTag||!ct(d)&&!$e(d)?null:{type:"item",name:((y=n.uiSchema)==null?void 0:y.title)||n.name,title:((g=n.uiSchema)==null?void 0:g.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(x=n.uiSchema)==null?void 0:x.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Ml("TabSearchFieldItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name,currentCollection:u},"x-use-component-props":Dl({useTabSearchFieldItemProps:m,useTabSearchFieldItemRelatedProps:v})}}}function bp(t){const e=p.useDataSourceManager(),n=p.useCollectionManager(),o=p.useDataSource(),r=(o==null?void 0:o.key)||void 0,s=i.useCallback(l=>{var c;return n&&!l?n:(c=e==null?void 0:e.getDataSource(l||r))==null?void 0:c.collectionManager},[n,e,r]);return{getCollectionFields:i.useCallback((l,c)=>{var d,m;if(!l)return[];const u=(d=s(c))==null?void 0:d.getCollection(l);return((m=u==null?void 0:u.getAllFields)==null?void 0:m.call(u))||(u==null?void 0:u.getFields())||[]},[e,s])}}function Dl(t){const e=Object.entries(t).find(([,o])=>o),[n]=e||[];return n}const yp=new p.SchemaInitializer({name:"tabSearch:configureFields",style:{marginTop:16},icon:"SettingOutlined",title:qe("Configure fields"),items:[{name:"textFields",type:"itemGroup",title:qe("Text fields"),useChildren:xp},{name:"choicesFields",type:"itemGroup",title:qe("Choices fields"),useChildren:Cp},{name:"divider",type:"divider"},{name:"associationFields",Component:vp},{name:"divider",type:"divider"},{title:qe("Add text",!1),Component:"MarkdownFormItemInitializer",name:"addText"}]});function xp(){const t=p.useCollection(),e=t.fields,n=p.useCollectionManager(),r=p.useIsMobile()?"TabSearchCollapsibleInputMItem":"TabSearchCollapsibleInputItem";return e.map(a=>{if(!a.isForeignKey&&(El(a.interface)||$e(a.interface)||Nt(a.interface))){const l=$e(a.interface)?n.getCollection(`${t.name}.${a.name}`).titleField:a.name;return fs({field:a,itemComponent:r,label:l,collection:t,type:"text"})}}).filter(Boolean)}function Cp(){const e=p.useCollection().fields,n=p.useCollectionManager(),r=p.useIsMobile()?"TabSearchFieldMItem":"TabSearchFieldItem";return e.map(a=>{var c;const l=((c=n.getCollection(a.target))==null?void 0:c.getPrimaryKey())||"id";if(ct(a.interface))return fs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemProps",type:"choices"});if($e(a.interface))return fs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemRelatedProps",type:"choices"})}).filter(Boolean)}const Sp=()=>{const t=p.useSchemaInitializerItem(),{schema:e}=t,{exists:n,remove:o}=p.useCurrentSchema(e.name,"name",t.find,t.remove),{insert:r}=p.useSchemaInitializer(),s=()=>{var l;if(n)return o();const a=$.merge(e||{},t.schema||{});(l=t==null?void 0:t.schemaInitialize)==null||l.call(t,a),r(a)};return f.jsx(p.SchemaInitializerSwitch,{checked:n,title:t.title,onClick:s})},wp=t=>f.jsx(p.DataBlockProvider,{collection:t.collection,children:t.children}),kp=new p.SchemaSettings({name:"fieldSettings:TabSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=de();return{title:t("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:p.SchemaSettingsDataScope,useComponentProps(){var l,c;const t=$.useFieldSchema(),{form:e}=p.useFormBlockContext(),n=$.useField(),o=p.useCollectionManager(),s=p.useCollection().getField(t.fieldName)||o.getCollectionField(t["x-collection-field"]),{dn:a}=p.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=t==null?void 0:t["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:e,onSubmit:({filter:u})=>{var d;Le.set(n.componentProps,"params",ae(L({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),t["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}},useVisible(){const t=$.useFieldSchema();return!Ge(t["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var y,g;const t=$.useFieldSchema(),{t:e}=de(),n=p.useCollectionManager(),o=p.useCollection(),r=t["x-component-props"]||{},{collectionName:s,currentCollection:a,correlation:l}=r,c=a||s||o.name,u=o.getField(t.fieldName)||n.getCollectionField(t["x-collection-field"])||n.getCollection(c+"."+l),d=p.useCompile(),{dn:m}=p.useDesignable(),b=(u!=null&&u.target?n.getCollectionFields(u==null?void 0:u.target):[]).filter(x=>!(x!=null&&x.target)&&x.type!=="boolean").map(x=>{var S;return{value:x==null?void 0:x.name,label:d((S=x==null?void 0:x.uiSchema)==null?void 0:S.title)||(x==null?void 0:x.name)}}),h=x=>{var w,k,E;const S={"x-uid":t["x-uid"]},C=ae(L(L({},(k=(w=u==null?void 0:u.uiSchema)==null?void 0:w["x-component-props"])==null?void 0:k.fieldNames),(E=t["x-component-props"])==null?void 0:E.fieldNames),{label:x});t["x-component-props"]=t["x-component-props"]||{},t["x-component-props"].fieldNames=C,S["x-component-props"]=t["x-component-props"],m.emit("patch",{schema:S}),m.refresh()};return{key:"title-field",title:e("Title field"),options:b,value:(g=(y=t["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:g.label,onChange:h}},useVisible(){var e;const t=$.useFieldSchema();return Ge(t["x-component"])||((e=t["x-component-props"])==null?void 0:e.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t}=de(),e=$.useFieldSchema(),{dn:n}=p.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:o=>(Ge(e["x-component"])&&(Object.values(o.properties).forEach(r=>{Ge(r["x-component"])&&r.name!==e.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),Tt=$.connect(Rr,$.mapProps(t=>ae(L({placeholder:"请输入内容",clearable:!0},t),{style:L({"--font-size":"12px"},t==null?void 0:t.style)})),$.mapReadPretty(t=>f.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:t.value}))),Ep=$.connect(pl,$.mapProps(t=>ae(L({},t),{placeholder:"请输入内容",clearable:!0,style:L({"--font-size":"12px"},t==null?void 0:t.style)})),$.mapReadPretty(t=>f.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:t.value})));Tt.TextArea=Ep;const Ip={red:"#fc9792",magenta:"#ffa3cc",volcano:"#ffb38b",orange:"#ffcf86",gold:"#ffe184",lime:"#e7ff84",green:"#aee884",cyan:"#7ce5d9",blue:"#86c3ff",geekblue:"#a3bfff",purple:"#cda3f6",default:"#d4d4d4"},ms=t=>Ip[t],ps=$.connect(Ur,$.mapProps(t=>L({},t)));ps.Group=$.connect(t=>{const e=p.useCollectionField(),n=(e==null?void 0:e.uiSchema.enum)||[],o=t.value||[];return f.jsx(Ur.Group,{value:o,children:n.map((r,s)=>f.jsx(Ur,ae(L({value:r.value,style:{"--icon-size":"12px","--font-size":"12px"},onChange:a=>{if(a)o.push(r.value);else{const l=o.findIndex(c=>{var u;return((u=r.value)==null?void 0:u.toString())===c});o.splice(l,1)}t.onChange(o)}},t),{children:r.label}),s))})},$.mapProps((t,e)=>L({},t)),$.mapReadPretty(t=>{if(!$.isValid(t.value))return f.jsx("div",{});const{value:e}=t,n=$.useField(),o=p.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===e).map((s,a)=>f.jsx(os,{color:ms(s.color),children:s.label},a))})}));const Al=$.connect(t=>{const{t:e}=p.useTranslation(),{value:n,onChange:o}=t,[r,s]=i.useState(!1),a=i.useMemo(()=>n?be.dayjs(n).format("YYYY-MM-DD"):e("please enter the date"),[n]),l=()=>s(!0),c=()=>s(!1),u=m=>{o(m),s(!1)},d=i.useMemo(()=>{const m=be.dayjs(n);if(m.isValid())return m.toDate()},[n]);return f.jsxs(f.Fragment,{children:[f.jsx(st,{onClick:l,children:a}),f.jsx(rf,{visible:r,value:d,onClose:c,onConfirm:u})]})},$.mapProps(t=>L({},t)),$.mapReadPretty(t=>{const e=L({},t);return e.value=t.value?be.dayjs(t.value).format("YYYY-MM-DD"):"",f.jsx("div",{children:e.value})})),$p=$.connect(t=>{const[e,n]=i.useState([]),[o,r]=i.useState(!1),s=t.value||[];i.useEffect(()=>{if(!o&&t.value){const l=t.value.map(c=>({url:c.url,key:c.id,thumbnailUrl:c.url}));n(l)}},[t.value]);const a=p.useAPIClient();return f.jsx(sl,{value:e,upload:l=>fe(this,null,function*(){const{name:c}=l;if(_p(c)){const d=new FormData;d.append("file",l);let m;return yield a.request({url:t.action,method:"post",data:d}).then(v=>{var b;m=(b=v==null?void 0:v.data)==null?void 0:b.data,s.push(m)}).catch(()=>{}),{url:m==null?void 0:m.url,key:m==null?void 0:m.id,thumbnailUrl:m==null?void 0:m.url}}}),onChange:l=>{n(l),r(!0),t.onChange(s)},onDelete:l=>{const c=s.findIndex(u=>u.id===l.key);s.splice(c,1),t.onChange(s)}})},$.mapProps(t=>L({},t)),$.mapReadPretty(t=>{const{showCount:e,value:n=[]}=t,o=n.slice(0,e);return f.jsx(sl,ae(L({},t),{value:o,disableUpload:!0,showUpload:!1,upload:()=>fe(this,null,function*(){return{url:""}})}))})),_p=t=>/\.(png|jpg|jpeg|gif|webp)$/i.test(t),hs=$.connect(es,$.mapProps({value:"checked",onInput:"onChange"}));hs.Group=$.connect(t=>{const e=p.useCollectionField(),n=(e==null?void 0:e.uiSchema.enum)||[];return f.jsx(es.Group,ae(L({},t),{children:n.map((o,r)=>f.jsx(es,{value:o.value,style:{"--font-size":"12px","--icon-size":"18px",marginLeft:"10px"},children:o.label},r))}))},$.mapProps((t,e)=>(i.useEffect(()=>{var o;const n=(o=e.dataSource)==null?void 0:o.find(r=>r.value===t.value);n&&e.setValue(n.value)},[t.value,e.dataSource]),L({},t))),$.mapReadPretty(t=>{if(!$.isValid(t.value))return f.jsx("div",{});const{value:e}=t,n=$.useField(),o=p.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===e).map((s,a)=>f.jsx(os,{color:ms(s.color),children:s.label},a))})}));const Pp=p.createStyles(({css:t})=>({PopupStyle:t`
372
+ `,children:m.jsxs(Re,{columns:4,style:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-start",padding:"10px",backgroundColor:"#f9f9f9",borderRadius:"5px",margin:"5px 0 0 0"},children:[m.jsx(Xm,{options:r,onChange:s,customLabelKey:c}),Mt(u)?m.jsx(Jm,{value:o,onChange:d,onInputChange:a,options:r}):m.jsxs(m.Fragment,{children:[m.jsx(Qm,{options:r,value:o,onChange:a}),m.jsx(Rm,{onClick:l})]})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),tp=h.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:r,onSelect:o}=kl(t);return e?m.jsxs(h.SortableItem,{children:[m.jsx(n,{}),m.jsx(pr,{style:{"--title-font-size":"12px",color:"#a5a5a5"},onChange:o,children:r.map(s=>m.jsx(pr.Tab,{title:s.label},s.key))})]}):null},{displayName:"TabSearchFieldItem"}),kl=t=>{var p,x;const{list:e,onSelected:n,valueKey:r,labelKey:o,filterKey:s}=t,{t:a}=de(),l=$.useFieldSchema(),c=h.useCollection(),u=i.useMemo(()=>c==null?void 0:c.getField(l.fieldName),[c,l.fieldName]),d=h.useDesigner(),f=r||(u==null?void 0:u.targetKey)||"id",v=o||((x=(p=l["x-component-props"])==null?void 0:p.fieldNames)==null?void 0:x.label)||f,y=S=>{var w;const C=((w=S.keyPath)==null?void 0:w[0])||S;n([C],s)},g={title:v,key:f},b=[];return e!=null&&e.length&&e.forEach(S=>{b.push({label:S[g.title],key:S[g.key]})}),b==null||b.unshift({label:a("all"),key:"all"}),{collectionField:u,Designer:d,items:b,onSelect:y}},np=h.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:r,onSelect:o}=kl(t);return e?m.jsxs(h.SortableItem,{children:[m.jsx(n,{}),m.jsx(le.ConfigProvider,{theme:{components:{Menu:{itemColor:"#a5a5a5",itemHoverColor:"#1d2ffff18"}}},children:m.jsx(le.Menu,{items:r,mode:"horizontal",onSelect:o,defaultSelectedKeys:["all"]})})]}):null},{displayName:"TabSearchFieldItem"}),rp=()=>{var u,d,f,v,y,g;const t=$.useFieldSchema(),e=h.useCollection(),n=((u=t["x-component-props"])==null?void 0:u.currentCollection)||(e==null?void 0:e.name),r=op(n),o=h.useCollectionManager(),s=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),{onSelected:a}=Mr(),l={list:null,valueKey:"",labelKey:"",filterKey:""};if(!e)return;l.valueKey=s!=null&&s.target?(d=o.getCollection(s.target))==null?void 0:d.getPrimaryKey():"id",l.labelKey=((v=(f=t["x-component-props"])==null?void 0:f.fieldNames)==null?void 0:v.label)||l.valueKey;const c=(y=t["x-component-props"])==null?void 0:y.interface;if(lt(c)){const b=r.find(S=>S.name===t.fieldName.split(".").findLast(Boolean)),p={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"};t.fieldName;const x=((g=b==null?void 0:b.uiSchema)==null?void 0:g.enum)||[];l.valueKey="value",l.labelKey="label",l.list=x,l.filterKey=`${t.fieldName}.${p[b==null?void 0:b.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},op=t=>{var o;const n=h.useCollectionManager().getCollection(t);return((o=n==null?void 0:n.fields)!=null?o:[]).filter(s=>lt(s.interface)&&s.uiSchema.enum)},sp=()=>{var g,b,p,x,S;const t=$.useFieldSchema(),e=h.useCollection(),n=$.useField(),r={dataSource:"main"},o=h.useDataSourceHeaders(r==null?void 0:r.dataSource),s=h.useCollectionManager(),a=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),c=t["x-component-props"].currentCollection===(e==null?void 0:e.name)?a==null?void 0:a.name:t.fieldName,u=t["x-component-props"].interface,d={list:null,valueKey:"",labelKey:"",filterKey:""},{onSelected:f}=Mr();d.valueKey=a!=null&&a.target?(g=s.getCollection(a.target))==null?void 0:g.getPrimaryKey():"id",d.labelKey=((p=(b=t["x-component-props"])==null?void 0:b.fieldNames)==null?void 0:p.label)||d.valueKey;const{data:v,run:y}=h.useRequest({headers:o,resource:a==null?void 0:a.target,action:"list",params:L({fields:[d.labelKey,d.valueKey],pageSize:200,page:1},(x=n.componentProps)==null?void 0:x.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{$e(u)&&(a!=null&&a.target)&&y()},[d.labelKey,d.valueKey,JSON.stringify(((S=n.componentProps)==null?void 0:S.params)||{}),$e(u)]),a?(d.filterKey=`${c}.${d.valueKey}.$in`,d.list=(v==null?void 0:v.data)||[],{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,onSelected:f,filterKey:d.filterKey}):{}},ip=t=>{const{collectionName:e,dataSource:n,blockType:r}=t;return{type:"void","x-decorator":"TabSearchProvider","x-decorator-props":{collection:e,dataSource:n,blockType:r},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[ye.uid()]:{type:"void","x-action":"tabSearch","x-initializer":"tabSearch:configureFields","x-component":"TabSearch"}}}},ap=t=>{const{filterCollections:e,onlyCurrentDataSource:n,hideChildrenIfSingleCollection:r}=t,o=h.useSchemaInitializerItem(),{insert:s}=h.useSchemaInitializer(),a=c=>fe(null,[c],function*({item:l}){const u=ip({dataSource:l.dataSource,collectionName:l.collectionName||l.name,blockType:"filter"});s(u)});return m.jsx(h.DataBlockInitializer,ae(L({},o),{onlyCurrentDataSource:n,icon:"tab-search",componentType:"TabSearch",filter:e,hideChildrenIfSingleCollection:r,onCreateBlockSchema:a}))},is=t=>{var l,c;const{field:e,itemComponent:n,label:r,itemUseProps:o,collection:s,type:a}=t;return{name:e.key,title:(l=e.uiSchema)==null?void 0:l.title,Component:"TabSearchFieldSchemaInitializerGadget",schema:{name:e.name+a,fieldName:e.name,title:(c=e.uiSchema)==null?void 0:c.title,type:"void","x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-component":n,"x-use-component-props":o,"x-component-props":{fieldNames:{label:r},interface:e.interface,collectionName:s==null?void 0:s.name,correlation:e.name},properties:{}}}},lp={TabSearchCollapsibleInputItem:"TabSearchCollapsibleInputMItem",useTabSearchFieldItemProps:"useTabSearchFieldItemRelatedProps",TabSearchFieldItem:"TabSearchFieldMItem"};function El(t){return lp[t]}const cp=()=>{const t=Il("textField"),e=Il("choiceField"),n=[{type:"itemGroup",title:Ye("Display association Textfields",!1),children:t},{type:"itemGroup",title:Ye("Display association Choicefields",!1),children:e}];return m.jsx(h.SchemaInitializerChildren,{children:n})};function Il(t){const e=h.useCollection(),{name:n,allFields:r}=e||{},{getCollectionFields:o}=up();h.useIsMobile();const s=h.useCollectionManager(),a=r==null?void 0:r.filter(({interface:d})=>$e(d)),l={collectionName:n,getCollectionFields:o,processedCollections:[],collectionManager:s};let c=[];return t==="textField"?c=a.map(d=>{var y;const f=$e(d.interface)?(y=s.getCollection(`${n}.${d.name}`))==null?void 0:y.titleField:d.name;return $l(ae(L({},l),{field:d,label:f,schemaName:d.name}))}):t==="choiceField"&&(c=a.map(d=>{var y;const f=((y=s.getCollection(d.target))==null?void 0:y.getPrimaryKey())||"id";return _l(ae(L({},l),{field:d,label:f,schemaName:d.name}))})),c.filter(Boolean)}function $l(t,e){var v,y,g,b,p;const{field:n,label:r,schemaName:o,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c}=t,{interface:u}=n,d=lt(u),f=$e(u);if(["m2o","obo"].includes(u)){if(l.includes(n.target))return null;const x=a(n.target);return{type:"subMenu",name:(v=n.uiSchema)==null?void 0:v.title,title:(y=n.uiSchema)==null?void 0:y.title,children:x.toSorted((S,C)=>+Object.hasOwn(S,"target")-+Object.hasOwn(C,"target")).map(S=>{var w;const C=$e(n.interface)?(w=c.getCollection(`${name}.${n.name}`))==null?void 0:w.titleField:n.name;return $l({field:S,label:C,schemaName:`${o}.${S.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c})}).filter(Boolean)}}return h.isAssocField(n)||!bl(u)&&!$e(u)&&!Mt(u)?null:{name:((g=n.uiSchema)==null?void 0:g.title)||n.name,title:((b=n.uiSchema)==null?void 0:b.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:o,title:`${(p=n.uiSchema)==null?void 0:p.title}`,fieldName:`${o}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${o}`,"x-component":El("TabSearchCollapsibleInputItem"),"x-component-props":{fieldNames:{label:r},interface:n.interface,collectionName:s,correlation:n.name},"x-use-component-props":Pl({useTabSearchFieldItemProps:d,useTabSearchFieldItemRelatedProps:f})}}}function _l(t,e){var y,g,b,p,x;const{field:n,label:r,schemaName:o,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c,currentCollection:u}=t,{interface:d}=n,f=lt(d),v=$e(d);if(["m2o","obo"].includes(d)&&!n.choiceTag){if(l.includes(n.target))return null;const S=a(n.target);return{type:"subMenu",name:(y=n.uiSchema)==null?void 0:y.title,title:(g=n.uiSchema)==null?void 0:g.title,children:S.reduce((C,w)=>(Object.hasOwn(w,"target")&&["m2o","obo"].includes(w.interface)&&C.push(ae(L({},w),{choiceTag:!0})),[...C,w]),[]).toSorted((C,w)=>+Object.hasOwn(C,"target")*2-+Object.hasOwn(C,"choiceTag")-+Object.hasOwn(w,"target")*2-+Object.hasOwn(w,"choiceTag")).map(C=>{var k;const w=((k=c.getCollection(n.target))==null?void 0:k.getPrimaryKey())||"id";return _l({field:C,label:w,schemaName:`${o}.${C.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c,currentCollection:n.target})}).filter(Boolean)}}return h.isAssocField(n)&&!n.choiceTag||!lt(d)&&!$e(d)?null:{type:"item",name:((b=n.uiSchema)==null?void 0:b.title)||n.name,title:((p=n.uiSchema)==null?void 0:p.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:o,title:`${(x=n.uiSchema)==null?void 0:x.title}`,fieldName:`${o}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${o}`,"x-component":El("TabSearchFieldItem"),"x-component-props":{fieldNames:{label:r},interface:n.interface,collectionName:s,correlation:n.name,currentCollection:u},"x-use-component-props":Pl({useTabSearchFieldItemProps:f,useTabSearchFieldItemRelatedProps:v})}}}function up(t){const e=h.useDataSourceManager(),n=h.useCollectionManager(),r=h.useDataSource(),o=(r==null?void 0:r.key)||void 0,s=i.useCallback(l=>{var c;return n&&!l?n:(c=e==null?void 0:e.getDataSource(l||o))==null?void 0:c.collectionManager},[n,e,o]);return{getCollectionFields:i.useCallback((l,c)=>{var d,f;if(!l)return[];const u=(d=s(c))==null?void 0:d.getCollection(l);return((f=u==null?void 0:u.getAllFields)==null?void 0:f.call(u))||(u==null?void 0:u.getFields())||[]},[e,s])}}function Pl(t){const e=Object.entries(t).find(([,r])=>r),[n]=e||[];return n}const dp=new h.SchemaInitializer({name:"tabSearch:configureFields",style:{marginTop:16},icon:"SettingOutlined",title:Ye("Configure fields"),items:[{name:"textFields",type:"itemGroup",title:Ye("Text fields"),useChildren:fp},{name:"choicesFields",type:"itemGroup",title:Ye("Choices fields"),useChildren:mp},{name:"divider",type:"divider"},{name:"associationFields",Component:cp},{name:"divider",type:"divider"},{title:Ye("Add text",!1),Component:"MarkdownFormItemInitializer",name:"addText"}]});function fp(){const t=h.useCollection(),e=t.fields,n=h.useCollectionManager(),o=h.useIsMobile()?"TabSearchCollapsibleInputMItem":"TabSearchCollapsibleInputItem";return e.map(a=>{if(!a.isForeignKey&&(bl(a.interface)||$e(a.interface)||Mt(a.interface))){const l=$e(a.interface)?n.getCollection(`${t.name}.${a.name}`).titleField:a.name;return is({field:a,itemComponent:o,label:l,collection:t,type:"text"})}}).filter(Boolean)}function mp(){const e=h.useCollection().fields,n=h.useCollectionManager(),o=h.useIsMobile()?"TabSearchFieldMItem":"TabSearchFieldItem";return e.map(a=>{var c;const l=((c=n.getCollection(a.target))==null?void 0:c.getPrimaryKey())||"id";if(lt(a.interface))return is({field:a,itemComponent:o,label:l,itemUseProps:"useTabSearchFieldItemProps",type:"choices"});if($e(a.interface))return is({field:a,itemComponent:o,label:l,itemUseProps:"useTabSearchFieldItemRelatedProps",type:"choices"})}).filter(Boolean)}const pp=()=>{const t=h.useSchemaInitializerItem(),{schema:e}=t,{exists:n,remove:r}=h.useCurrentSchema(e.name,"name",t.find,t.remove),{insert:o}=h.useSchemaInitializer(),s=()=>{var l;if(n)return r();const a=$.merge(e||{},t.schema||{});(l=t==null?void 0:t.schemaInitialize)==null||l.call(t,a),o(a)};return m.jsx(h.SchemaInitializerSwitch,{checked:n,title:t.title,onClick:s})},hp=t=>m.jsx(h.DataBlockProvider,{collection:t.collection,children:t.children}),gp=new h.SchemaSettings({name:"fieldSettings:TabSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=de();return{title:t("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var l,c;const t=$.useFieldSchema(),{form:e}=h.useFormBlockContext(),n=$.useField(),r=h.useCollectionManager(),s=h.useCollection().getField(t.fieldName)||r.getCollectionField(t["x-collection-field"]),{dn:a}=h.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=t==null?void 0:t["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:e,onSubmit:({filter:u})=>{var d;Le.set(n.componentProps,"params",ae(L({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),t["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}},useVisible(){const t=$.useFieldSchema();return!qe(t["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var b,p;const t=$.useFieldSchema(),{t:e}=de(),n=h.useCollectionManager(),r=h.useCollection(),o=t["x-component-props"]||{},{collectionName:s,currentCollection:a,correlation:l}=o,c=a||s||r.name,u=r.getField(t.fieldName)||n.getCollectionField(t["x-collection-field"])||n.getCollection(c+"."+l),d=h.useCompile(),{dn:f}=h.useDesignable(),y=(u!=null&&u.target?n.getCollectionFields(u==null?void 0:u.target):[]).filter(x=>!(x!=null&&x.target)&&x.type!=="boolean").map(x=>{var S;return{value:x==null?void 0:x.name,label:d((S=x==null?void 0:x.uiSchema)==null?void 0:S.title)||(x==null?void 0:x.name)}}),g=x=>{var w,k,E;const S={"x-uid":t["x-uid"]},C=ae(L(L({},(k=(w=u==null?void 0:u.uiSchema)==null?void 0:w["x-component-props"])==null?void 0:k.fieldNames),(E=t["x-component-props"])==null?void 0:E.fieldNames),{label:x});t["x-component-props"]=t["x-component-props"]||{},t["x-component-props"].fieldNames=C,S["x-component-props"]=t["x-component-props"],f.emit("patch",{schema:S}),f.refresh()};return{key:"title-field",title:e("Title field"),options:y,value:(p=(b=t["x-component-props"])==null?void 0:b.fieldNames)==null?void 0:p.label,onChange:g}},useVisible(){var e;const t=$.useFieldSchema();return qe(t["x-component"])||((e=t["x-component-props"])==null?void 0:e.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t}=de(),e=$.useFieldSchema(),{dn:n}=h.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:r=>(qe(e["x-component"])&&(Object.values(r.properties).forEach(o=>{qe(o["x-component"])&&o.name!==e.name&&delete r.properties[o.name]}),n.emit("patch",{schema:r})),r["x-component"]==="TabSearch")}}}]}),Nt=$.connect(qo,$.mapProps(t=>ae(L({placeholder:"请输入内容",clearable:!0},t),{style:L({"--font-size":"12px"},t==null?void 0:t.style)})),$.mapReadPretty(t=>m.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:t.value}))),vp=$.connect(ll,$.mapProps(t=>ae(L({},t),{placeholder:"请输入内容",clearable:!0,style:L({"--font-size":"12px"},t==null?void 0:t.style)})),$.mapReadPretty(t=>m.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:t.value})));Nt.TextArea=vp;const yp={red:"#fc9792",magenta:"#ffa3cc",volcano:"#ffb38b",orange:"#ffcf86",gold:"#ffe184",lime:"#e7ff84",green:"#aee884",cyan:"#7ce5d9",blue:"#86c3ff",geekblue:"#a3bfff",purple:"#cda3f6",default:"#d4d4d4"},as=t=>yp[t],ls=$.connect(Vo,$.mapProps(t=>L({},t)));ls.Group=$.connect(t=>{const e=h.useCollectionField(),n=(e==null?void 0:e.uiSchema.enum)||[],r=t.value||[];return m.jsx(Vo.Group,{value:r,children:n.map((o,s)=>m.jsx(Vo,ae(L({value:o.value,style:{"--icon-size":"12px","--font-size":"12px"},onChange:a=>{if(a)r.push(o.value);else{const l=r.findIndex(c=>{var u;return((u=o.value)==null?void 0:u.toString())===c});r.splice(l,1)}t.onChange(r)}},t),{children:o.label}),s))})},$.mapProps((t,e)=>L({},t)),$.mapReadPretty(t=>{if(!$.isValid(t.value))return m.jsx("div",{});const{value:e}=t,n=$.useField(),r=h.useCollectionField(),o=n.dataSource||(r==null?void 0:r.uiSchema.enum)||[];return m.jsx("div",{children:o.filter(s=>s.value===e).map((s,a)=>m.jsx(Jo,{color:as(s.color),children:s.label},a))})}));const Fl=$.connect(t=>{const{t:e}=h.useTranslation(),{value:n,onChange:r}=t,[o,s]=i.useState(!1),a=i.useMemo(()=>n?ye.dayjs(n).format("YYYY-MM-DD"):e("please enter the date"),[n]),l=()=>s(!0),c=()=>s(!1),u=f=>{r(f),s(!1)},d=i.useMemo(()=>{const f=ye.dayjs(n);if(f.isValid())return f.toDate()},[n]);return m.jsxs(m.Fragment,{children:[m.jsx(ot,{onClick:l,children:a}),m.jsx(X0,{visible:o,value:d,onClose:c,onConfirm:u})]})},$.mapProps(t=>L({},t)),$.mapReadPretty(t=>{const e=L({},t);return e.value=t.value?ye.dayjs(t.value).format("YYYY-MM-DD"):"",m.jsx("div",{children:e.value})})),bp=$.connect(t=>{const[e,n]=i.useState([]),[r,o]=i.useState(!1),s=t.value||[];i.useEffect(()=>{if(!r&&t.value){const l=t.value.map(c=>({url:c.url,key:c.id,thumbnailUrl:c.url}));n(l)}},[t.value]);const a=h.useAPIClient();return m.jsx(Ra,{value:e,upload:l=>fe(null,null,function*(){const{name:c}=l;if(xp(c)){const d=new FormData;d.append("file",l);let f;return yield a.request({url:t.action,method:"post",data:d}).then(v=>{var y;f=(y=v==null?void 0:v.data)==null?void 0:y.data,s.push(f)}).catch(()=>{}),{url:f==null?void 0:f.url,key:f==null?void 0:f.id,thumbnailUrl:f==null?void 0:f.url}}}),onChange:l=>{n(l),o(!0),t.onChange(s)},onDelete:l=>{const c=s.findIndex(u=>u.id===l.key);s.splice(c,1),t.onChange(s)}})},$.mapProps(t=>L({},t)),$.mapReadPretty(t=>{const{showCount:e,value:n=[]}=t,r=n.slice(0,e);return m.jsx(Ra,ae(L({},t),{value:r,disableUpload:!0,showUpload:!1,upload:()=>fe(null,null,function*(){return{url:""}})}))})),xp=t=>/\.(png|jpg|jpeg|gif|webp)$/i.test(t),cs=$.connect(Yo,$.mapProps({value:"checked",onInput:"onChange"}));cs.Group=$.connect(t=>{const e=h.useCollectionField(),n=(e==null?void 0:e.uiSchema.enum)||[];return m.jsx(Yo.Group,ae(L({},t),{children:n.map((r,o)=>m.jsx(Yo,{value:r.value,style:{"--font-size":"12px","--icon-size":"18px",marginLeft:"10px"},children:r.label},o))}))},$.mapProps((t,e)=>(i.useEffect(()=>{var r;const n=(r=e.dataSource)==null?void 0:r.find(o=>o.value===t.value);n&&e.setValue(n.value)},[t.value,e.dataSource]),L({},t))),$.mapReadPretty(t=>{if(!$.isValid(t.value))return m.jsx("div",{});const{value:e}=t,n=$.useField(),r=h.useCollectionField(),o=n.dataSource||(r==null?void 0:r.uiSchema.enum)||[];return m.jsx("div",{children:o.filter(s=>s.value===e).map((s,a)=>m.jsx(Jo,{color:as(s.color),children:s.label},a))})}));const Cp=h.createStyles(({css:t})=>({PopupStyle:t`
373
373
  .adm-popup-body {
374
374
  padding: 10px;
375
375
  .adm-space {
@@ -389,12 +389,12 @@
389
389
  text-align: center;
390
390
  }
391
391
  }
392
- `})),Fp=$.observer(t=>{const{fieldSchema:e}=t,[n,o]=i.useState(!1),r=e.reduceProperties((a,l)=>{const c=l.reduceProperties((u,d)=>d["x-component"]==="AssociationField.AddNewer"?d:u);return c||a},{}),s=()=>{o(!0)};return f.jsxs("div",{children:[f.jsx(st,{color:"primary",fill:"outline",onClick:s,children:"添加"}),f.jsx(Ut,{visible:n,onMaskClick:()=>{o(!1)},showCloseButton:!0,onClose:()=>{o(!1)},className:p.css`
392
+ `})),Sp=$.observer(t=>{const{fieldSchema:e}=t,[n,r]=i.useState(!1),o=e.reduceProperties((a,l)=>{const c=l.reduceProperties((u,d)=>d["x-component"]==="AssociationField.AddNewer"?d:u);return c||a},{}),s=()=>{r(!0)};return m.jsxs("div",{children:[m.jsx(ot,{color:"primary",fill:"outline",onClick:s,children:"添加"}),m.jsx(Ht,{visible:n,onMaskClick:()=>{r(!1)},showCloseButton:!0,onClose:()=>{r(!1)},className:h.css`
393
393
  .adm-popup-body {
394
394
  height: 80vh;
395
395
  overflow: auto;
396
396
  }
397
- `,children:f.jsx(p.MobileProvider,{children:f.jsx(p.ActionContextProvider,{visible:n,setVisible:o,children:f.jsx($.RecursionField,{schema:r,onlyRenderProperties:!0})})})})]})},{displayName:"CreateRecordAction"}),Mp=$.observer(t=>{const{value:e,collectionName:n,service:o,fieldNames:r,addMode:s,onChange:a,multiple:l,mode:c}=t,[u,d]=i.useState(!1),[m,v]=i.useState(""),{styles:b}=Pp(),[h,y]=i.useState([]),g=$.useFieldSchema(),x=p.useCollectionManager(),S=p.useCollection(),[C]=p.useFieldServiceFilter(o==null?void 0:o.params),[w,k]=i.useState({}),E=p.useAPIClient(),I=(r==null?void 0:r.label)||"label",T=(r==null?void 0:r.value)||"value",Z=i.useMemo(()=>be.isArray(e)?e.map(O=>O[T]):e&&typeof e=="object"?[e[T]]:[],[e,T]),[M,N]=i.useState([]),U=i.useMemo(()=>h.filter(O=>O[I].includes(m)),[h,m]),z=i.useMemo(()=>be.isArray(e)?e.map(O=>O[I]).join(", "):e&&typeof e=="object"?e[I]:"",[e,I]),{run:P}=p.useRequest({resource:n,action:"list",params:{filter:L(L({},C==null?void 0:C.filter),w)}},{manual:!0,onSuccess(O){var K;if(O){const W=(K=O.data)==null?void 0:K.map(Y=>ae(L({},Y),{label:Y[I],value:Y[T]}));y(W)}}}),F=()=>{var O;if(n)P();else if(g["x-collection-field"]){const W=(O=x.getCollectionField(g["x-collection-field"]).uiSchema)==null?void 0:O.enum;y(W)}else y(g.enum)},_=()=>fe(this,null,function*(){(yield E.request({url:n+":create",method:"post",data:{[I]:m}})).status===200?ss.show({icon:"success",content:ut("Add success")}):ss.show({icon:"fail",content:ut("Add failed")});const K=L({},w);delete K[I],k(K),v(""),d(!1)}),B=O=>v(O),D=O=>{N(O)},V=()=>{const O=L({},w);O[I]&&delete O[I];const K=h.filter(W=>M.includes(W.value));a(K),d(!1),v(""),k(O)};return i.useEffect(()=>{F()},[w,u]),i.useEffect(()=>{N(Z)},[Z]),f.jsx(p.CollectionProvider,{name:n||(S==null?void 0:S.name),children:f.jsxs(p.BlockItem,{children:[f.jsx("div",{onClick:()=>{g["x-disabled"]||(d(!0),F())},style:{color:"#c5c5c5"},children:e!=null&&e.length||e&&!be.isArray(e)?f.jsx(Tt,{style:{"--color":"#1e8bf1"},value:z,disabled:g["x-disabled"]}):f.jsx(Pn,{children:g["x-disabled"]?"":ut("Please select content")})}),f.jsx(Ut,{visible:u,className:`${b.PopupStyle}`,onMaskClick:()=>{d(!1)},children:f.jsxs(p.MobileProvider,{children:[f.jsx(ul,{placeholder:ut("Please enter search content"),value:m,onChange:B}),m&&s==="quickAdd"?f.jsxs(Pn,{justify:"center",align:"center",onClick:_,children:["+ ",ut("Add")," ",m]}):null,f.jsx(Lr,{}),l||c==="multiple"?f.jsx(Po,{multiple:!0,className:`${b.checkListStyle}`,value:M,onChange:D,children:U.map((O,K)=>f.jsx(Po.Item,{value:O.value,children:O.label},K))}):f.jsx(Kr,{columns:[U],onChange:O=>{N(O)}}),f.jsxs(Pn,{justify:"evenly",align:"center",children:[s==="modalAdd"?f.jsx(p.SchemaComponent,{components:{CreateRecordAction:Fp},schema:{type:"void",name:"CreateRecord","x-component":"CreateRecordAction","x-component-props":{fieldSchema:g}}}):null,f.jsx(st,{color:"primary",onClick:()=>{d(!1);const O=L({},w);O[I]&&delete O[I],v(""),k(O)},children:ut("Cancel")}),f.jsx(st,{color:"primary",onClick:V,children:ut("Confirm")})]})]})})]})})}),gs=$.connect(Mp,$.mapProps(t=>{const e=L({},t),n=$.useFieldSchema(),r=p.useCollectionManager().getCollection(n["x-collection-field"]),s=$.useField(),a=p.useCollectionField(),l=s.dataSource||(a==null?void 0:a.uiSchema.enum)||[];return r&&(e.collectionName=r.name),typeof e.value!="object"&&(e.value=l.filter(c=>c.value.toString()===(e==null?void 0:e.value))),L({},e)}),$.mapReadPretty(t=>{var n,o;const e=p.useCollectionField();if(typeof t.value=="object")return f.jsx(p.AssociationField.ReadPretty,L({},t));{const r=(o=(n=e==null?void 0:e.uiSchema)==null?void 0:n.enum)==null?void 0:o.find(s=>s.value===t.value);return f.jsx(os,{color:ms(r==null?void 0:r.color),children:r==null?void 0:r.label})}})),Np=p.createStyles(({css:t})=>({PopupStyle:t`
397
+ `,children:m.jsx(h.MobileProvider,{children:m.jsx(h.ActionContextProvider,{visible:n,setVisible:r,children:m.jsx($.RecursionField,{schema:o,onlyRenderProperties:!0})})})})]})},{displayName:"CreateRecordAction"}),wp=$.observer(t=>{const{value:e,collectionName:n,service:r,fieldNames:o,addMode:s,onChange:a,multiple:l,mode:c}=t,[u,d]=i.useState(!1),[f,v]=i.useState(""),{styles:y}=Cp(),[g,b]=i.useState([]),p=$.useFieldSchema(),x=h.useCollectionManager(),S=h.useCollection(),[C]=h.useFieldServiceFilter(r==null?void 0:r.params),[w,k]=i.useState({}),E=h.useAPIClient(),I=(o==null?void 0:o.label)||"label",T=(o==null?void 0:o.value)||"value",Z=i.useMemo(()=>ye.isArray(e)?e.map(O=>O[T]):e&&typeof e=="object"?[e[T]]:[],[e,T]),[M,N]=i.useState([]),U=i.useMemo(()=>g.filter(O=>O[I].includes(f)),[g,f]),z=i.useMemo(()=>ye.isArray(e)?e.map(O=>O[I]).join(", "):e&&typeof e=="object"?e[I]:"",[e,I]),{run:P}=h.useRequest({resource:n,action:"list",params:{filter:L(L({},C==null?void 0:C.filter),w)}},{manual:!0,onSuccess(O){var K;if(O){const W=(K=O.data)==null?void 0:K.map(q=>ae(L({},q),{label:q[I],value:q[T]}));b(W)}}}),F=()=>{var O;if(n)P();else if(p["x-collection-field"]){const W=(O=x.getCollectionField(p["x-collection-field"]).uiSchema)==null?void 0:O.enum;b(W)}else b(p.enum)},_=()=>fe(null,null,function*(){(yield E.request({url:n+":create",method:"post",data:{[I]:f}})).status===200?Ro.show({icon:"success",content:ct("Add success")}):Ro.show({icon:"fail",content:ct("Add failed")});const K=L({},w);delete K[I],k(K),v(""),d(!1)}),B=O=>v(O),D=O=>{N(O)},V=()=>{const O=L({},w);O[I]&&delete O[I];const K=g.filter(W=>M.includes(W.value));a(K),d(!1),v(""),k(O)};return i.useEffect(()=>{F()},[w,u]),i.useEffect(()=>{N(Z)},[Z]),m.jsx(h.CollectionProvider,{name:n||(S==null?void 0:S.name),children:m.jsxs(h.BlockItem,{children:[m.jsx("div",{onClick:()=>{p["x-disabled"]||(d(!0),F())},style:{color:"#c5c5c5"},children:e!=null&&e.length||e&&!ye.isArray(e)?m.jsx(Nt,{style:{"--color":"#1e8bf1"},value:z,disabled:p["x-disabled"]}):m.jsx($n,{children:p["x-disabled"]?"":ct("Please select content")})}),m.jsx(Ht,{visible:u,className:`${y.PopupStyle}`,onMaskClick:()=>{d(!1)},children:m.jsxs(h.MobileProvider,{children:[m.jsx(ol,{placeholder:ct("Please enter search content"),value:f,onChange:B}),f&&s==="quickAdd"?m.jsxs($n,{justify:"center",align:"center",onClick:_,children:["+ ",ct("Add")," ",f]}):null,m.jsx(Po,{}),l||c==="multiple"?m.jsx(vr,{multiple:!0,className:`${y.checkListStyle}`,value:M,onChange:D,children:U.map((O,K)=>m.jsx(vr.Item,{value:O.value,children:O.label},K))}):m.jsx(Lo,{columns:[U],onChange:O=>{N(O)}}),m.jsxs($n,{justify:"evenly",align:"center",children:[s==="modalAdd"?m.jsx(h.SchemaComponent,{components:{CreateRecordAction:Sp},schema:{type:"void",name:"CreateRecord","x-component":"CreateRecordAction","x-component-props":{fieldSchema:p}}}):null,m.jsx(ot,{color:"primary",onClick:()=>{d(!1);const O=L({},w);O[I]&&delete O[I],v(""),k(O)},children:ct("Cancel")}),m.jsx(ot,{color:"primary",onClick:V,children:ct("Confirm")})]})]})})]})})}),us=$.connect(wp,$.mapProps(t=>{const e=L({},t),n=$.useFieldSchema(),o=h.useCollectionManager().getCollection(n["x-collection-field"]),s=$.useField(),a=h.useCollectionField(),l=s.dataSource||(a==null?void 0:a.uiSchema.enum)||[];return o&&(e.collectionName=o.name),typeof e.value!="object"&&(e.value=l.filter(c=>c.value.toString()===(e==null?void 0:e.value))),L({},e)}),$.mapReadPretty(t=>{var n,r;const e=h.useCollectionField();if(typeof t.value=="object")return m.jsx(h.AssociationField.ReadPretty,L({},t));{const o=(r=(n=e==null?void 0:e.uiSchema)==null?void 0:n.enum)==null?void 0:r.find(s=>s.value===t.value);return m.jsx(Jo,{color:as(o==null?void 0:o.color),children:o==null?void 0:o.label})}})),kp=h.createStyles(({css:t})=>({PopupStyle:t`
398
398
  .adm-popup-body {
399
399
  padding: 10px;
400
400
  .adm-space {
@@ -414,13 +414,13 @@
414
414
  text-align: center;
415
415
  }
416
416
  }
417
- `})),Ll=$.observer(t=>{var ee,Ne;const{service:e,fieldNames:n,disabled:o,useLoadData:r,useDataSource:s,multiple:a,onChange:l,value:c,formCascaderValues:u,index:d}=t,m=$.useFieldSchema(),v=p.useCollectionManager(),{styles:b}=Np(),h=v.getCollectionField(m["x-collection-field"]),y=((ee=m["x-component-props"])==null?void 0:ee.changOnSelect)||!1,g=v.getCollection(m["x-collection-field"]),x=h.interface==="chinaRegion",[S,C]=i.useState([]),[w,k]=i.useState(!1),[E]=p.useFieldServiceFilter(e==null?void 0:e.params),[I,T]=i.useState(E),[Z,M]=i.useState(""),[N,U]=i.useState(c),[z,P]=i.useState(""),[F,_]=i.useState([]),B=$.useField(),{loading:D,run:V}=p.useRequest({resource:g==null?void 0:g.name,action:"list",params:{filter:I,tree:!0}},{manual:!0,onSuccess({data:X}){if(X){C(X),B.dataSource=X||[];const ue=Tp(X);_(ue),c&&P(Zo(ue,c,"",n.label))}}}),O=r==null?void 0:r(t),{loading:K,run:W}=(s==null?void 0:s({onSuccess(X){B.dataSource=(X==null?void 0:X.data)||[],C(X==null?void 0:X.data)}}))||{loading:!0,run:null};!z&&c&&x&&P(Bl(c,n)),i.useEffect(()=>{!x&&(g!=null&&g.name)&&ne()},[I]),i.useEffect(()=>{!x&&F.length&&P(Zo(F,c,"",n.label))},[(Ne=m["x-component-props"])==null?void 0:Ne.fieldNames]);const Y=X=>fe(this,null,function*(){U(X?x?X:X[X.length-1]:{})}),ne=()=>{x?W():V()};return f.jsxs(p.CollectionProvider,{name:h.collectionName,children:[f.jsxs("div",{onClick:()=>{o||(k(!0),ne())},style:{display:"flex",alignItems:"center"},children:[c&&Object.keys(c).length?f.jsx(Tt,{style:{"--color":"#1e8bf1"},value:z,disabled:o,clearable:!1}):f.jsx(Tt,{value:z?"":"请选择",style:{"--color":"#c5c5c5"}}),c&&Object.keys(c).length||u&&d!==0?f.jsx(to,{style:{margin:"5px 10px 5px 20px"},onClick:()=>{if(d){const X=[...u];u.length===1&&d===0?X[d]={}:X.splice(d,1),l(X)}else l({})}}):null]}),f.jsx(Ut,{visible:w,className:`${b.PopupStyle}`,onMaskClick:()=>{k(!1)},children:f.jsxs(p.MobileProvider,{children:[x?null:f.jsxs(f.Fragment,{children:[f.jsx(ul,{placeholder:"请输入内容",value:Z,onChange:X=>{const ue=L({},I);ue[n.label]={$includes:X},T(ue),M(X)}}),f.jsx(Lr,{})]}),f.jsx(A0,{loading:x?K:D,fieldNames:n,options:S,onChange:(X,ue)=>{if(x){const j=B.componentProps.maxLevel,q=ue.items[ue.items.length-1];j>q.level&&(q.children=[]),O(ue.items,re=>{re!=null&&re.data.length&&(q.children=re.data.map(ge=>(j>ge.level&&(ge.isLeaf=!1),ge)),C([...S]))})}Y(ue.items)}}),f.jsxs(Pn,{justify:"evenly",align:"center",children:[f.jsx(st,{color:"primary",onClick:()=>{k(!1);const X=L({},I);X[n.label]&&delete X[n.label],M(""),T(X)},children:"取消"}),f.jsx(st,{color:"primary",onClick:()=>{const X=a?Op(u,N,d):N;l(X);const ue=x?Bl(N,n):Zo(F,N,"",n.label);if(P(ue),k(!1),!x){const j=L({},I);delete j[n.label],M(""),T(j)}},disabled:y?!(N&&N!=="{}"):!(N&&N!=="{}"&&(!(N!=null&&N.children)||!(N!=null&&N.children.length))),children:"确定"})]})]})})]})}),Zo=(t,e,n,o)=>{const r=`${(e==null?void 0:e[o])||""}${n}`;if(e!=null&&e.parentId){const s=t.find(l=>l.id===e.parentId),a=`/${r}`;return Zo(t,s,a,o)}return r},Tp=t=>{const e=(o,r)=>(r.push(o),o!=null&&o.children&&o.children.forEach(s=>e(s,r)),r),n=[];return t.forEach(o=>{const r=e(o,[]);n.push(...r)}),n},Op=(t,e,n)=>{const o=[];return t&&(n||n===0)?(t[n]=e,o.push(...t)):o.push(e),o},Bl=(t,e)=>t==null?void 0:t.reduce((n,o,r)=>n+`${o[e.label]}${t.length-1===r?"":"/"}`,""),Dp=$.observer(t=>{const{value:e,onChange:n,multiple:o}=t,{t:r}=de();return f.jsxs(f.Fragment,{children:[be.isArray(e)&&o?f.jsx(f.Fragment,{children:e.map((s,a)=>{const l=ae(L({},t),{value:s,formCascaderValues:e||[],index:a});return i.createElement(Ll,ae(L({},l),{key:a}))})}):f.jsx(Ll,L({},t)),o?f.jsx(f.Fragment,{children:f.jsxs(st,{style:{textAlign:"center",width:"100%",border:"1px dashed #c5c5c5",color:"#c5c5c5",fontSize:"12px",height:"5vh",lineHeight:"2vh"},onClick:()=>{const s=e?[...e,{}]:[{},{}];n(s)},children:["+ ",r("Add new")]})}):null]})}),Ap={label:"label",value:"value",children:"children"},Lp=t=>{const{fieldNames:e=Ap}=t,n=$.toArr(t.value),o=n.length;let s=$.useField().dataSource;const a=[];for(const l of n)if(typeof l=="object")a.push(l);else{const c=s==null?void 0:s.find(u=>u[e.value]===l);s=(c==null?void 0:c[e.children])||[],a.push(c||{label:l,value:l})}return f.jsx("div",{children:a.map((l,c)=>f.jsxs("span",{children:[typeof l=="object"?l[e.label]:l,o>c+1&&" / "]},c))})},zl=$.connect(Dp,$.mapProps(t=>L({},t)),$.mapReadPretty(t=>{const e=$.useFieldSchema();return p.useCollectionManager().getCollectionField(e["x-collection-field"]).interface==="chinaRegion"?f.jsx(Lp,L({},t)):f.jsx(p.AssociationField.ReadPretty,L({},t))})),Bp=i.createContext(null),Vl=()=>i.useContext(Bp),zp=p.css`
417
+ `})),Ml=$.observer(t=>{var ee,Ne;const{service:e,fieldNames:n,disabled:r,useLoadData:o,useDataSource:s,multiple:a,onChange:l,value:c,formCascaderValues:u,index:d}=t,f=$.useFieldSchema(),v=h.useCollectionManager(),{styles:y}=kp(),g=v.getCollectionField(f["x-collection-field"]),b=((ee=f["x-component-props"])==null?void 0:ee.changOnSelect)||!1,p=v.getCollection(f["x-collection-field"]),x=g.interface==="chinaRegion",[S,C]=i.useState([]),[w,k]=i.useState(!1),[E]=h.useFieldServiceFilter(e==null?void 0:e.params),[I,T]=i.useState(E),[Z,M]=i.useState(""),[N,U]=i.useState(c),[z,P]=i.useState(""),[F,_]=i.useState([]),B=$.useField(),{loading:D,run:V}=h.useRequest({resource:p==null?void 0:p.name,action:"list",params:{filter:I,tree:!0}},{manual:!0,onSuccess({data:X}){if(X){C(X),B.dataSource=X||[];const ue=Ep(X);_(ue),c&&P(Nr(ue,c,"",n.label))}}}),O=o==null?void 0:o(t),{loading:K,run:W}=(s==null?void 0:s({onSuccess(X){B.dataSource=(X==null?void 0:X.data)||[],C(X==null?void 0:X.data)}}))||{loading:!0,run:null};!z&&c&&x&&P(Nl(c,n)),i.useEffect(()=>{!x&&(p!=null&&p.name)&&ne()},[I]),i.useEffect(()=>{!x&&F.length&&P(Nr(F,c,"",n.label))},[(Ne=f["x-component-props"])==null?void 0:Ne.fieldNames]);const q=X=>fe(null,null,function*(){U(X?x?X:X[X.length-1]:{})}),ne=()=>{x?W():V()};return m.jsxs(h.CollectionProvider,{name:g.collectionName,children:[m.jsxs("div",{onClick:()=>{r||(k(!0),ne())},style:{display:"flex",alignItems:"center"},children:[c&&Object.keys(c).length?m.jsx(Nt,{style:{"--color":"#1e8bf1"},value:z,disabled:r,clearable:!1}):m.jsx(Nt,{value:z?"":"请选择",style:{"--color":"#c5c5c5"}}),c&&Object.keys(c).length||u&&d!==0?m.jsx(Rn,{style:{margin:"5px 10px 5px 20px"},onClick:()=>{if(d){const X=[...u];u.length===1&&d===0?X[d]={}:X.splice(d,1),l(X)}else l({})}}):null]}),m.jsx(Ht,{visible:w,className:`${y.PopupStyle}`,onMaskClick:()=>{k(!1)},children:m.jsxs(h.MobileProvider,{children:[x?null:m.jsxs(m.Fragment,{children:[m.jsx(ol,{placeholder:"请输入内容",value:Z,onChange:X=>{const ue=L({},I);ue[n.label]={$includes:X},T(ue),M(X)}}),m.jsx(Po,{})]}),m.jsx(S0,{loading:x?K:D,fieldNames:n,options:S,onChange:(X,ue)=>{if(x){const j=B.componentProps.maxLevel,G=ue.items[ue.items.length-1];j>G.level&&(G.children=[]),O(ue.items,oe=>{oe!=null&&oe.data.length&&(G.children=oe.data.map(ge=>(j>ge.level&&(ge.isLeaf=!1),ge)),C([...S]))})}q(ue.items)}}),m.jsxs($n,{justify:"evenly",align:"center",children:[m.jsx(ot,{color:"primary",onClick:()=>{k(!1);const X=L({},I);X[n.label]&&delete X[n.label],M(""),T(X)},children:"取消"}),m.jsx(ot,{color:"primary",onClick:()=>{const X=a?Ip(u,N,d):N;l(X);const ue=x?Nl(N,n):Nr(F,N,"",n.label);if(P(ue),k(!1),!x){const j=L({},I);delete j[n.label],M(""),T(j)}},disabled:b?!(N&&N!=="{}"):!(N&&N!=="{}"&&(!(N!=null&&N.children)||!(N!=null&&N.children.length))),children:"确定"})]})]})})]})}),Nr=(t,e,n,r)=>{const o=`${(e==null?void 0:e[r])||""}${n}`;if(e!=null&&e.parentId){const s=t.find(l=>l.id===e.parentId),a=`/${o}`;return Nr(t,s,a,r)}return o},Ep=t=>{const e=(r,o)=>(o.push(r),r!=null&&r.children&&r.children.forEach(s=>e(s,o)),o),n=[];return t.forEach(r=>{const o=e(r,[]);n.push(...o)}),n},Ip=(t,e,n)=>{const r=[];return t&&(n||n===0)?(t[n]=e,r.push(...t)):r.push(e),r},Nl=(t,e)=>t==null?void 0:t.reduce((n,r,o)=>n+`${r[e.label]}${t.length-1===o?"":"/"}`,""),$p=$.observer(t=>{const{value:e,onChange:n,multiple:r}=t,{t:o}=de();return m.jsxs(m.Fragment,{children:[ye.isArray(e)&&r?m.jsx(m.Fragment,{children:e.map((s,a)=>{const l=ae(L({},t),{value:s,formCascaderValues:e||[],index:a});return i.createElement(Ml,ae(L({},l),{key:a}))})}):m.jsx(Ml,L({},t)),r?m.jsx(m.Fragment,{children:m.jsxs(ot,{style:{textAlign:"center",width:"100%",border:"1px dashed #c5c5c5",color:"#c5c5c5",fontSize:"12px",height:"5vh",lineHeight:"2vh"},onClick:()=>{const s=e?[...e,{}]:[{},{}];n(s)},children:["+ ",o("Add new")]})}):null]})}),_p={label:"label",value:"value",children:"children"},Pp=t=>{const{fieldNames:e=_p}=t,n=$.toArr(t.value),r=n.length;let s=$.useField().dataSource;const a=[];for(const l of n)if(typeof l=="object")a.push(l);else{const c=s==null?void 0:s.find(u=>u[e.value]===l);s=(c==null?void 0:c[e.children])||[],a.push(c||{label:l,value:l})}return m.jsx("div",{children:a.map((l,c)=>m.jsxs("span",{children:[typeof l=="object"?l[e.label]:l,r>c+1&&" / "]},c))})},Tl=$.connect($p,$.mapProps(t=>L({},t)),$.mapReadPretty(t=>{const e=$.useFieldSchema();return h.useCollectionManager().getCollectionField(e["x-collection-field"]).interface==="chinaRegion"?m.jsx(Pp,L({},t)):m.jsx(h.AssociationField.ReadPretty,L({},t))})),Fp=i.createContext(null),Ol=()=>i.useContext(Fp),Mp=h.css`
418
418
  padding: 0 var(--tb-spacing);
419
419
  & > .tb-action-bar {
420
420
  padding: unset !important;
421
421
  background: unset !important;
422
422
  }
423
- `,Vp=()=>({className:zp}),Zp={xs:1,sm:1,md:1,lg:1,xl:1,xxl:1},jp=()=>({columnCount:Vl()?Zp:null,pagination:{simple:!0}}),Kp=()=>{const t=ie.useNavigate();return window.location.pathname.split("/")[1]==="mobile"?f.jsx(Sf,{status:"empty",title:"Sorry, the page you visited does not exist.",description:f.jsx(st,{onClick:()=>t("/mobile",{replace:!0}),color:"primary",children:"Back Home"}),className:p.css`
423
+ `,Np=()=>({className:Mp}),Tp={xs:1,sm:1,md:1,lg:1,xl:1,xxl:1},Op=()=>({columnCount:Ol()?Tp:null,pagination:{simple:!0}}),Dp=()=>{const t=ie.useNavigate();return window.location.pathname.split("/")[1]==="mobile"?m.jsx(pf,{status:"empty",title:"Sorry, the page you visited does not exist.",description:m.jsx(ot,{onClick:()=>t("/mobile",{replace:!0}),color:"primary",children:"Back Home"}),className:h.css`
424
424
  .adm-error-block-image {
425
425
  height: 30vh;
426
426
  }
@@ -435,13 +435,13 @@
435
435
  height: 3.5vh;
436
436
  font-size: 50px;
437
437
  }
438
- `}):f.jsx(p.AppNotFound,{})},Zl=()=>window.JsBridge,Wp=(t,e)=>Zl().invoke(t,e),Hp=()=>!!Zl(),jl={onBackPressed:()=>{history.length===1?Wp({action:"moveTaskToBack"}):history.back()}};Object.keys(jl).forEach(t=>{window[t]=jl[t]});const Kl=i.memo(t=>{const e=ie.useLocation(),n=ie.useNavigate();return i.useEffect(()=>{Hp()&&e.pathname==="/admin"&&n("/mobile",{replace:!0})},[e.pathname,n]),f.jsx(f.Fragment,{children:t.children})});Kl.displayName="MobileClientProvider";const Up=()=>{const t=ie.useNavigate(),{token:e}=p.useToken(),{t:n}=de();return f.jsx(le.Tooltip,{title:n("Mobile UI"),children:f.jsx(le.Button,{icon:f.jsx(Te.MobileOutlined,{style:{color:e.colorTextHeaderMenu}}),title:n("Mobile UI"),onClick:()=>{t("/mobile")}})})},Yp=t=>f.jsx(p.PinnedPluginListProvider,{items:{me:{order:210,component:"MobileLink",pin:!0,isPublic:!0,belongTo:"pinnedmenu"}},children:f.jsx(p.SchemaComponentOptions,{components:{MobileLink:Up},children:t.children})}),Wl=()=>{const t=$.useFieldSchema(),{t:e}=We.useTranslation(),{duplicateData:n}=p.useFormBlockContext(),o=p.useCollectionManager();if(n)return n;const{items:r=[],display:s=!0}=qp(t);r.forEach(c=>{var u;try{c.fields=(u=c.fields)==null?void 0:u.map(d=>o.getCollectionField(`${c.collection}.${d}`)?d:"").filter(Boolean)}catch(d){be.error(d),c.fields=[]}});const a=[{key:"none",title:e("None")}].concat(r.map((c,u)=>ae(L({key:u},c),{isLeaf:c.dataId!==null&&c.dataId!==void 0,titleCollectionField:(c==null?void 0:c.titleField)&&o.getCollectionField(`${c.collection}.${c.titleField}`)}))),l=r.find(c=>c.default);return{templates:a,display:s,defaultTemplate:l,enabled:r.length>0&&r.every(c=>c.dataId||c.dataScope)}},Gp=({style:t={},templateKey:e="none",collection:n})=>{const o=$.useForm(),{templates:r,enabled:s,defaultTemplate:a}=Wl(),l=p.useCollectionManager(),c=p.compatibleDataId(r),u=e,[d,m]=i.useState(null),v=p.useAPIClient(),{t:b}=We.useTranslation();i.useEffect(()=>{s&&a&&(o.__template=!0,a.key==="duplicate"&&y(a.dataId,a))},[]),i.useEffect(()=>{c!=null&&c.some(x=>x.key===u)||h("none")},[c]);const h=i.useCallback(x=>fe(this,null,function*(){m(null),o==null||o.reset()}),[]),y=i.useCallback((x,S)=>fe(this,null,function*(){const C=ae(L({},S),{dataId:x});m(S),Xp(v,C).then(w=>(o&&w&&(o.reset(),o.__template=!0,be.forEach(w,(k,E)=>{var I;k&&(o.values[E]=k,(I=o==null?void 0:o.setInitialValuesIn)==null||I.call(o,E,k))})),w)).catch(w=>{console.error(w)})}),[]);if(!s)return null;const g=c==null?void 0:c.find(x=>x.key===u);return g&&n&&(g.collection=n),u!=="none"&&g&&f.jsx(p.RemoteSelect,{fieldNames:{label:g==null?void 0:g.titleField,value:"id"},target:g==null?void 0:g.collection,value:d,objectValue:!0,service:{resource:g==null?void 0:g.collection,params:{filter:g==null?void 0:g.dataScope}},onChange:x=>y(x==null?void 0:x.id,L(L({},x),g)),targetField:l.getCollectionField(`${g==null?void 0:g.collection}.${g.titleField}`)})};function qp(t){const e=p.findFormBlock(t);return e?Le.cloneDeep(e["x-data-templates"])||{}:{}}function Xp(t,e,n){return fe(this,null,function*(){if(!(e.fields.length===0||!e.dataId))return t.resource(e.collection).get({filterByTk:e.dataId,fields:e.fields,isTemplate:!0}).then(o=>{var r;return(r=o.data)==null?void 0:r.data})})}const Jp=new p.SchemaSettings({name:"fieldSettings:component:DataSelect",items:[{name:"templateSelect",type:"select",useComponentProps(){var a;const{templates:t}=Wl(),e=p.compatibleDataId(t),{t:n}=de(),o=$.useField(),r=$.useFieldSchema(),{dn:s}=p.useDesignable();return{title:n("Template Select"),value:((a=o.componentProps)==null?void 0:a.templateKey)||"none",fieldNames:{label:"title",value:"key"},options:e,onChange(l){const c={"x-uid":r["x-uid"]};r["x-component-props"].templateKey=l,r["x-acl-ignore"]=!0,c["x-component-props"]=r["x-component-props"],c["x-acl-ignore"]=!0,o.componentProps.templateKey=l,s.emit("patch",{schema:c})}}}},{name:"collectionSelect",type:"select",useComponentProps(){var l;const t=p.useCollectionManager(),e=p.useCompile(),n=t.getCollections().map(c=>({label:e(c.title),value:c.name})),{t:o}=de(),r=$.useField(),s=$.useFieldSchema(),{dn:a}=p.useDesignable();return{title:o("Collection Select"),value:(l=r.componentProps)==null?void 0:l.collection,options:n,onChange(c){const u={"x-uid":s["x-uid"]};s["x-component-props"].collection=c,s["x-acl-ignore"]=!0,u["x-component-props"]=s["x-component-props"],u["x-acl-ignore"]=!0,r.componentProps.collection=c,a.emit("patch",{schema:u})}}}}]});class Qp extends p.Plugin{load(){return fe(this,null,function*(){this.app.addComponents({DataSelect:Gp}),this.app.schemaSettingsManager.add(Jp);const e={name:"SelectData",title:this.t("Select Data"),Component:"BlockItemInitializer",schema:{type:"void","x-decorator":"FormItem","x-settings":"fieldSettings:FormItem","x-component":"DataSelect","x-component-props":{mode:"DataSelect"}}};this.app.schemaInitializerManager.addItem("form:configureFields",e.name,e),this.app.schemaInitializerManager.addItem("details:configureFields",e.name,e)})}}const Rp="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M338.773333%20362.666667H170.666667v298.666666h105.578666l45.013334%200.021334%2017.258666%200.426666L682.666667%20809.258667V214.890667L338.773333%20362.666667z%20m-17.578666-85.333334L768%2085.333333v853.333334l-448-191.978667L85.333333%20746.666667V277.333333h235.861334zM170.666667%20661.333333v85.333334h85.333333v-85.333334H170.666667zM853.333333%20298.666667h85.333334v426.666666h-85.333334z'%20fill='%23000000'%20%3e%3c/path%3e%3c/svg%3e",eh="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M0%20219.428571h73.142857v585.142858H0V219.428571z%20m950.857143%200h73.142857v585.142858h-73.142857V219.428571z%20m-146.285714-146.285714a73.142857%2073.142857%200%200%201%2073.142857%2073.142857v731.428572a73.142857%2073.142857%200%200%201-73.142857%2073.142857H219.428571a73.142857%2073.142857%200%200%201-73.142857-73.142857V146.285714a73.142857%2073.142857%200%200%201%2073.142857-73.142857h585.142858z%20m0%2073.142857H219.428571v731.428572h585.142858V146.285714zM365.714286%20694.857143a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z'%3e%3c/path%3e%3c/svg%3e",th="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M1263.243636%20908.939636l-156.485818-156.392727c25.6-37.050182%2039.842909-79.685818%2039.842909-128.093091%200-125.114182-102.4-227.514182-227.607272-227.514182a228.258909%20228.258909%200%200%200-227.514182%20227.514182c0%20125.207273%20102.4%20227.607273%20227.514182%20227.607273%2048.407273%200%2091.042909-14.242909%20128-39.842909l156.392727%20156.392727a41.239273%2041.239273%200%200%200%2059.764363%200c19.921455-17.035636%2019.921455-45.428364%200-59.671273zM921.786182%20766.696727a140.846545%20140.846545%200%200%201-142.242909-142.242909c0-79.592727%2062.557091-142.149818%20142.242909-142.149818%2079.592727%200%20142.242909%2062.557091%20142.242909%20142.149818%200%2079.685818-62.650182%20142.242909-142.242909%20142.242909z'%3e%3c/path%3e%3cpath%20d='M694.272%20894.696727H111.150545v-512h583.121455a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.728727H111.150545V98.304h853.364364v156.392727a43.752727%2043.752727%200%200%200%2042.635636%2042.635637%2043.752727%2043.752727%200%200%200%2042.728728-42.635637V69.818182a57.064727%2057.064727%200%200%200-56.878546-56.878546H82.757818A57.064727%2057.064727%200%200%200%2025.879273%2069.818182v853.364363c0%2031.278545%2025.6%2056.785455%2056.785454%2056.785455h611.607273a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.635637z'%3e%3c/path%3e%3cpath%20d='M637.393455%20155.182545c-22.714182%200-42.635636%2021.690182-42.635637%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635637%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635637-46.545455%200-24.855273-19.921455-46.545455-42.635637-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485819c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485819z'%3e%3c/path%3e%3c/svg%3e";let nh=t=>decodeURI(t).replace("data:image/svg+xml,","");const vs=t=>()=>f.jsx("div",{dangerouslySetInnerHTML:{__html:nh(t)}}),oh=t=>f.jsx(p.Icon,L({component:vs(Rp)},t)),rh=t=>f.jsx(p.Icon,L({component:vs(eh)},t)),sh=t=>f.jsx(p.Icon,L({component:vs(th)},t));p.Icon.register({"notice-block":oh,"swiper-block":rh,"tab-search":sh});const ih=t=>f.jsx(p.MobileProvider,{children:f.jsx(p.SchemaComponentOptions,{components:{MMenuBlockInitializer:bc,MSettingsBlockInitializer:Sm,MContainer:ls,MMenu:is,MTabBar:cs,MPage:us,MHeader:wl,MSettings:kl,SwiperBlockInitializer:Gm,SwiperBlock:Ym,SwiperPage:$l,TabSearch:Jm,TabSearchProvider:wp,TabSearchBlockInitializer:hp,TabSearchFieldItem:up,TabSearchFieldMItem:cp,TabSearchCollapsibleInputItem:op,TabSearchCollapsibleInputMItem:lp,TabSearchFieldSchemaInitializerGadget:Sp,ImageSearchView:Dm,ImageSearchInitializer:Tm,ImageSearchProvider:Om,ImageSearchItemIntializer:Lm,ImageSearchItemToolbar:zm,ImageSearchItemView:Vm,MInput:Tt,MCheckbox:ps,MDatePicker:Al,MRadio:hs,MImageUploader:$p,MCascader:zl,MSelect:gs,Input:Tt,"Input.TextArea":Tt.TextArea,"Radio.Group":hs.Group,"Checkbox.Group":ps.Group,DatePicker:Al,Select:gs,AlternativeAssociationSelect:gs,Cascader:zl},scope:{useGridCardBlockItemProps:Vp,useGridCardBlockProps:jp,useSwiperBlockProps:Xm,usePropsOptionalImageSearchItemField:Km,usePropsRelatedImageSearchItemField:Hm,useTabSearchFieldItemProps:dp,useTabSearchFieldItemRelatedProps:mp},children:t.children})}),ah=()=>{const{t}=de(),e=p.useApp(),n=()=>{const o=window.location,r=o.hash.slice(o.hash.indexOf("/"));window.open(e.getRouteUrl(r))};return f.jsx("div",{className:p.css`
438
+ `}):m.jsx(h.AppNotFound,{})},Dl=()=>window.JsBridge,Ap=(t,e)=>Dl().invoke(t,e),Lp=()=>!!Dl(),Al={onBackPressed:()=>{history.length===1?Ap({action:"moveTaskToBack"}):history.back()}};Object.keys(Al).forEach(t=>{window[t]=Al[t]});const Ll=i.memo(t=>{const e=ie.useLocation(),n=ie.useNavigate();return i.useEffect(()=>{Lp()&&e.pathname==="/admin"&&n("/mobile",{replace:!0})},[e.pathname,n]),m.jsx(m.Fragment,{children:t.children})});Ll.displayName="MobileClientProvider";const Bp=()=>{const t=ie.useNavigate(),{token:e}=h.useToken(),{t:n}=de();return m.jsx(le.Tooltip,{title:n("Mobile UI"),children:m.jsx(le.Button,{icon:m.jsx(Te.MobileOutlined,{style:{color:e.colorTextHeaderMenu}}),title:n("Mobile UI"),onClick:()=>{t("/mobile")}})})},zp=t=>m.jsx(h.PinnedPluginListProvider,{items:{me:{order:210,component:"MobileLink",pin:!0,isPublic:!0,belongTo:"pinnedmenu"}},children:m.jsx(h.SchemaComponentOptions,{components:{MobileLink:Bp},children:t.children})}),Bl=()=>{const t=$.useFieldSchema(),{t:e}=Ke.useTranslation(),{duplicateData:n}=h.useFormBlockContext(),r=h.useCollectionManager();if(n)return n;const{items:o=[],display:s=!0}=Zp(t);o.forEach(c=>{var u;try{c.fields=(u=c.fields)==null?void 0:u.map(d=>r.getCollectionField(`${c.collection}.${d}`)?d:"").filter(Boolean)}catch(d){ye.error(d),c.fields=[]}});const a=[{key:"none",title:e("None")}].concat(o.map((c,u)=>ae(L({key:u},c),{isLeaf:c.dataId!==null&&c.dataId!==void 0,titleCollectionField:(c==null?void 0:c.titleField)&&r.getCollectionField(`${c.collection}.${c.titleField}`)}))),l=o.find(c=>c.default);return{templates:a,display:s,defaultTemplate:l,enabled:o.length>0&&o.every(c=>c.dataId||c.dataScope)}},Vp=({style:t={},templateKey:e="none",collection:n})=>{const r=$.useForm(),{templates:o,enabled:s,defaultTemplate:a}=Bl(),l=h.useCollectionManager(),c=h.compatibleDataId(o),u=e,[d,f]=i.useState(null),v=h.useAPIClient(),{t:y}=Ke.useTranslation();i.useEffect(()=>{s&&a&&(r.__template=!0,a.key==="duplicate"&&b(a.dataId,a))},[]),i.useEffect(()=>{c!=null&&c.some(x=>x.key===u)||g("none")},[c]);const g=i.useCallback(x=>fe(null,null,function*(){f(null),r==null||r.reset()}),[]),b=i.useCallback((x,S)=>fe(null,null,function*(){const C=ae(L({},S),{dataId:x});f(S),jp(v,C).then(w=>(r&&w&&(r.reset(),r.__template=!0,ye.forEach(w,(k,E)=>{var I;k&&(r.values[E]=k,(I=r==null?void 0:r.setInitialValuesIn)==null||I.call(r,E,k))})),w)).catch(w=>{console.error(w)})}),[]);if(!s)return null;const p=c==null?void 0:c.find(x=>x.key===u);return p&&n&&(p.collection=n),u!=="none"&&p&&m.jsx(h.RemoteSelect,{fieldNames:{label:p==null?void 0:p.titleField,value:"id"},target:p==null?void 0:p.collection,value:d,objectValue:!0,service:{resource:p==null?void 0:p.collection,params:{filter:p==null?void 0:p.dataScope}},onChange:x=>b(x==null?void 0:x.id,L(L({},x),p)),targetField:l.getCollectionField(`${p==null?void 0:p.collection}.${p.titleField}`)})};function Zp(t){const e=h.findFormBlock(t);return e?Le.cloneDeep(e["x-data-templates"])||{}:{}}function jp(t,e,n){return fe(this,null,function*(){if(!(e.fields.length===0||!e.dataId))return t.resource(e.collection).get({filterByTk:e.dataId,fields:e.fields,isTemplate:!0}).then(r=>{var o;return(o=r.data)==null?void 0:o.data})})}const Kp=new h.SchemaSettings({name:"fieldSettings:component:DataSelect",items:[{name:"templateSelect",type:"select",useComponentProps(){var a;const{templates:t}=Bl(),e=h.compatibleDataId(t),{t:n}=de(),r=$.useField(),o=$.useFieldSchema(),{dn:s}=h.useDesignable();return{title:n("Template Select"),value:((a=r.componentProps)==null?void 0:a.templateKey)||"none",fieldNames:{label:"title",value:"key"},options:e,onChange(l){const c={"x-uid":o["x-uid"]};o["x-component-props"].templateKey=l,o["x-acl-ignore"]=!0,c["x-component-props"]=o["x-component-props"],c["x-acl-ignore"]=!0,r.componentProps.templateKey=l,s.emit("patch",{schema:c})}}}},{name:"collectionSelect",type:"select",useComponentProps(){var l;const t=h.useCollectionManager(),e=h.useCompile(),n=t.getCollections().map(c=>({label:e(c.title),value:c.name})),{t:r}=de(),o=$.useField(),s=$.useFieldSchema(),{dn:a}=h.useDesignable();return{title:r("Collection Select"),value:(l=o.componentProps)==null?void 0:l.collection,options:n,onChange(c){const u={"x-uid":s["x-uid"]};s["x-component-props"].collection=c,s["x-acl-ignore"]=!0,u["x-component-props"]=s["x-component-props"],u["x-acl-ignore"]=!0,o.componentProps.collection=c,a.emit("patch",{schema:u})}}}}]});class Wp extends h.Plugin{load(){return fe(this,null,function*(){this.app.addComponents({DataSelect:Vp}),this.app.schemaSettingsManager.add(Kp);const e={name:"SelectData",title:this.t("Select Data"),Component:"BlockItemInitializer",schema:{type:"void","x-decorator":"FormItem","x-settings":"fieldSettings:FormItem","x-component":"DataSelect","x-component-props":{mode:"DataSelect"}}};this.app.schemaInitializerManager.addItem("form:configureFields",e.name,e),this.app.schemaInitializerManager.addItem("details:configureFields",e.name,e)})}}const Hp="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M338.773333%20362.666667H170.666667v298.666666h105.578666l45.013334%200.021334%2017.258666%200.426666L682.666667%20809.258667V214.890667L338.773333%20362.666667z%20m-17.578666-85.333334L768%2085.333333v853.333334l-448-191.978667L85.333333%20746.666667V277.333333h235.861334zM170.666667%20661.333333v85.333334h85.333333v-85.333334H170.666667zM853.333333%20298.666667h85.333334v426.666666h-85.333334z'%20fill='%23000000'%20%3e%3c/path%3e%3c/svg%3e",Up="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M0%20219.428571h73.142857v585.142858H0V219.428571z%20m950.857143%200h73.142857v585.142858h-73.142857V219.428571z%20m-146.285714-146.285714a73.142857%2073.142857%200%200%201%2073.142857%2073.142857v731.428572a73.142857%2073.142857%200%200%201-73.142857%2073.142857H219.428571a73.142857%2073.142857%200%200%201-73.142857-73.142857V146.285714a73.142857%2073.142857%200%200%201%2073.142857-73.142857h585.142858z%20m0%2073.142857H219.428571v731.428572h585.142858V146.285714zM365.714286%20694.857143a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z'%3e%3c/path%3e%3c/svg%3e",qp="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M1263.243636%20908.939636l-156.485818-156.392727c25.6-37.050182%2039.842909-79.685818%2039.842909-128.093091%200-125.114182-102.4-227.514182-227.607272-227.514182a228.258909%20228.258909%200%200%200-227.514182%20227.514182c0%20125.207273%20102.4%20227.607273%20227.514182%20227.607273%2048.407273%200%2091.042909-14.242909%20128-39.842909l156.392727%20156.392727a41.239273%2041.239273%200%200%200%2059.764363%200c19.921455-17.035636%2019.921455-45.428364%200-59.671273zM921.786182%20766.696727a140.846545%20140.846545%200%200%201-142.242909-142.242909c0-79.592727%2062.557091-142.149818%20142.242909-142.149818%2079.592727%200%20142.242909%2062.557091%20142.242909%20142.149818%200%2079.685818-62.650182%20142.242909-142.242909%20142.242909z'%3e%3c/path%3e%3cpath%20d='M694.272%20894.696727H111.150545v-512h583.121455a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.728727H111.150545V98.304h853.364364v156.392727a43.752727%2043.752727%200%200%200%2042.635636%2042.635637%2043.752727%2043.752727%200%200%200%2042.728728-42.635637V69.818182a57.064727%2057.064727%200%200%200-56.878546-56.878546H82.757818A57.064727%2057.064727%200%200%200%2025.879273%2069.818182v853.364363c0%2031.278545%2025.6%2056.785455%2056.785454%2056.785455h611.607273a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.635637z'%3e%3c/path%3e%3cpath%20d='M637.393455%20155.182545c-22.714182%200-42.635636%2021.690182-42.635637%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635637%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635637-46.545455%200-24.855273-19.921455-46.545455-42.635637-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485819c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485819z'%3e%3c/path%3e%3c/svg%3e";let Yp=t=>decodeURI(t).replace("data:image/svg+xml,","");const ds=t=>()=>m.jsx("div",{dangerouslySetInnerHTML:{__html:Yp(t)}}),Gp=t=>m.jsx(h.Icon,L({component:ds(Hp)},t)),Xp=t=>m.jsx(h.Icon,L({component:ds(Up)},t)),Jp=t=>m.jsx(h.Icon,L({component:ds(qp)},t));h.Icon.register({"notice-block":Gp,"swiper-block":Xp,"tab-search":Jp});const Qp=t=>m.jsx(h.MobileProvider,{children:m.jsx(h.SchemaComponentOptions,{components:{MMenuBlockInitializer:fc,MSettingsBlockInitializer:pm,MContainer:ns,MMenu:es,MTabBar:rs,MPage:os,MHeader:vl,MSettings:yl,SwiperBlockInitializer:Vm,SwiperBlock:zm,SwiperPage:Cl,TabSearch:Km,TabSearchProvider:hp,TabSearchBlockInitializer:ap,TabSearchFieldItem:np,TabSearchFieldMItem:tp,TabSearchCollapsibleInputItem:Gm,TabSearchCollapsibleInputMItem:ep,TabSearchFieldSchemaInitializerGadget:pp,ImageSearchView:$m,ImageSearchInitializer:Em,ImageSearchProvider:Im,ImageSearchItemIntializer:Pm,ImageSearchItemToolbar:Mm,ImageSearchItemView:Nm,MInput:Nt,MCheckbox:ls,MDatePicker:Fl,MRadio:cs,MImageUploader:bp,MCascader:Tl,MSelect:us,Input:Nt,"Input.TextArea":Nt.TextArea,"Radio.Group":cs.Group,"Checkbox.Group":ls.Group,DatePicker:Fl,Select:us,AlternativeAssociationSelect:us,Cascader:Tl},scope:{useGridCardBlockItemProps:Np,useGridCardBlockProps:Op,useSwiperBlockProps:jm,usePropsOptionalImageSearchItemField:Dm,usePropsRelatedImageSearchItemField:Lm,useTabSearchFieldItemProps:rp,useTabSearchFieldItemRelatedProps:sp},children:t.children})}),Rp=()=>{const{t}=de(),e=h.useApp(),n=()=>{const r=window.location,o=r.hash.slice(r.hash.indexOf("/"));window.open(e.getRouteUrl(o))};return m.jsx("div",{className:h.css`
439
439
  position: absolute;
440
440
  top: -40px;
441
441
  right: 0;
442
- `,children:f.jsx(le.Button,{type:"dashed",onClick:n,icon:f.jsx(Te.LinkOutlined,{}),children:t("Preview")})})},lh=p.css`
442
+ `,children:m.jsx(le.Button,{type:"dashed",onClick:n,icon:m.jsx(Te.LinkOutlined,{}),children:t("Preview")})})},eh=h.css`
443
443
  --tb-spacing: 14px;
444
- `,ch=p.css``,uh=p.css`
444
+ `,th=h.css``,nh=h.css`
445
445
  --tb-designer-top: 2px;
446
446
  --tb-designer-right: 2px;
447
447
  .tb-sortable-designer:hover {
@@ -476,13 +476,13 @@
476
476
  }
477
477
  }
478
478
  }
479
- `,Hl={getContainer:".tb-mobile-application",width:"90%",style:{position:"absolute"}},dh=ae(L({},Hl),{style:{maxWidth:"calc(100% - 16px)"},maskStyle:{position:"absolute"},wrapClassName:p.css`
479
+ `,zl={getContainer:".tb-mobile-application",width:"90%",style:{position:"absolute"}},rh=ae(L({},zl),{style:{maxWidth:"calc(100% - 16px)"},maskStyle:{position:"absolute"},wrapClassName:h.css`
480
480
  position: absolute !important;
481
- `}),fh=()=>"default-admin-mobile",Ul=t=>{const e=fh(),n=ie.useParams(),o=Vl(),r=i.useMemo(()=>o?i.Fragment:p.AdminProvider,[o]);return p.useViewport(),f.jsx(r,{children:f.jsxs(ih,{children:[f.jsx(ah,{}),f.jsx(p.ActionContextProvider,{modalProps:dh,drawerProps:Hl,children:f.jsxs("div",{className:p.cx("tb-mobile-application",uh,lh,ch,p.css`
481
+ `}),oh=()=>"default-admin-mobile",Vl=t=>{const e=oh(),n=ie.useParams(),r=Ol(),o=i.useMemo(()=>r?i.Fragment:h.AdminProvider,[r]);return h.useViewport(),m.jsx(o,{children:m.jsxs(Qp,{children:[m.jsx(Rp,{}),m.jsx(h.ActionContextProvider,{modalProps:rh,drawerProps:zl,children:m.jsxs("div",{className:h.cx("tb-mobile-application",nh,eh,th,h.css`
482
482
  display: flex;
483
483
  flex-direction: column;
484
484
  width: 100%;
485
485
  height: 100%;
486
486
  position: relative;
487
487
  overflow: hidden;
488
- `),children:[n.name&&!n.name.startsWith("tab_")?f.jsx(ie.Outlet,{}):f.jsx(p.RemoteSchemaComponent,{uid:e,children:t.children},e),f.jsx("div",{id:"tb-position-container"})]})})]})})};class Yl extends p.Plugin{afterAdd(){return fe(this,null,function*(){this.pm.add(Qp,{name:"plugin-data-select"}),this.app.pm.add(gc,{name:"SearchAndJump"}),this.app.pm.add(uc,{name:"Designable"}),this.app.pm.add(ac,{name:"calculator"})})}load(){return fe(this,null,function*(){this.setMobileRouter(),this.addRoutes(),this.app.use(Kl),this.app.use(Yp),this.app.schemaInitializerManager.add(vc),this.app.schemaInitializerManager.add(Fm),this.app.schemaInitializerManager.add(yp),this.app.schemaSettingsManager.add(qm),this.app.schemaSettingsManager.add(Bm),this.app.schemaSettingsManager.add(kp)})}setMobileRouter(){const e=p.createRouterManager({type:"hash"},this.app);this.router.add("not-found",{path:"*",Component:Kp}),e.add("root",{path:"/",element:f.jsx(ie.Navigate,{replace:!0,to:"/mobile"})}),e.add("mobile",{path:"/mobile",element:f.jsx(Ul,{})}),e.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"}),this.mobileRouter=e}getMobileRouterComponent(){return this.mobileRouter.getRouterComponent()}addRoutes(){this.app.router.add("mobile",{path:"/mobile",element:f.jsx(Ul,{})}),this.app.router.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"}),this.app.router.add("mobile.swiper.page",{path:"/mobile/:name/image/:collection/:field/:fieldParams",Component:$l})}}R.ModuleWeb=Yl,R.default=Yl,Object.defineProperties(R,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
488
+ `),children:[n.name&&!n.name.startsWith("tab_")?m.jsx(ie.Outlet,{}):m.jsx(h.RemoteSchemaComponent,{uid:e,children:t.children},e),m.jsx("div",{id:"tb-position-container"})]})})]})})};class Zl extends h.Plugin{afterAdd(){return fe(this,null,function*(){this.pm.add(Wp,{name:"plugin-data-select"}),this.app.pm.add(uc,{name:"SearchAndJump"}),this.app.pm.add(oc,{name:"Designable"}),this.app.pm.add(tc,{name:"calculator"})})}load(){return fe(this,null,function*(){this.setMobileRouter(),this.addRoutes(),this.app.use(Ll),this.app.use(zp),this.app.schemaInitializerManager.add(dc),this.app.schemaInitializerManager.add(Sm),this.app.schemaInitializerManager.add(dp),this.app.schemaSettingsManager.add(Zm),this.app.schemaSettingsManager.add(Fm),this.app.schemaSettingsManager.add(gp)})}setMobileRouter(){const e=h.createRouterManager({type:"hash"},this.app);this.router.add("not-found",{path:"*",Component:Dp}),e.add("root",{path:"/",element:m.jsx(ie.Navigate,{replace:!0,to:"/mobile"})}),e.add("mobile",{path:"/mobile",element:m.jsx(Vl,{})}),e.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"}),this.mobileRouter=e}getMobileRouterComponent(){return this.mobileRouter.getRouterComponent()}addRoutes(){this.app.router.add("mobile",{path:"/mobile",element:m.jsx(Vl,{})}),this.app.router.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"}),this.app.router.add("mobile.swiper.page",{path:"/mobile/:name/image/:collection/:field/:fieldParams",Component:Cl})}}R.ModuleWeb=Zl,R.default=Zl,Object.defineProperties(R,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});