@tachybase/module-web 0.23.41 → 0.23.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/core/schema/components/antd-mobile/Cascader/Cadcader.d.ts +2 -2
- package/dist/client/core/schema/components/antd-mobile/DatePicker/DatePicker.d.ts +1 -1
- package/dist/client/core/schema/components/antd-mobile/ImageUploader/ImageUploader.d.ts +1 -1
- package/dist/client/core/schema/components/antd-mobile/Select/Select.d.ts +2 -2
- package/dist/client/index.js +28 -28
- package/dist/externalVersion.js +7 -7
- package/dist/node_modules/cronstrue/package.json +1 -1
- package/dist/server/migrations/20230620203216-admin-ui-schema-uid.js +4 -1
- package/dist/server/migrations/20231215215247-admin-menu-uid.js +4 -1
- package/dist/server/migrations/20250116160330-update-uiSchemas.js +6 -3
- package/package.json +9 -9
package/dist/client/index.js
CHANGED
|
@@ -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,h,ie,i,Ot,Ke,de,We,$,te,Ae,
|
|
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,h,ie,i,Ot,Ke,de,We,$,te,Ae,ws,xe){"use strict";var y2=Object.defineProperty,C2=Object.defineProperties;var x2=Object.getOwnPropertyDescriptors;var Wo=Object.getOwnPropertySymbols;var Rl=Object.prototype.hasOwnProperty,ec=Object.prototype.propertyIsEnumerable;var Jl=(R,f,h)=>f in R?y2(R,f,{enumerable:!0,configurable:!0,writable:!0,value:h}):R[f]=h,B=(R,f)=>{for(var h in f||(f={}))Rl.call(f,h)&&Jl(R,h,f[h]);if(Wo)for(var h of Wo(f))ec.call(f,h)&&Jl(R,h,f[h]);return R},ae=(R,f)=>C2(R,x2(f));var Ss=(R,f)=>{var h={};for(var ie in R)Rl.call(R,ie)&&f.indexOf(ie)<0&&(h[ie]=R[ie]);if(R!=null&&Wo)for(var ie of Wo(R))f.indexOf(ie)<0&&ec.call(R,ie)&&(h[ie]=R[ie]);return h};var me=(R,f,h)=>new Promise((ie,i)=>{var Ot=We=>{try{de(h.next(We))}catch($){i($)}},Ke=We=>{try{de(h.throw(We))}catch($){i($)}},de=We=>We.done?ie(We.value):Promise.resolve(We.value).then(Ot,Ke);de((h=h.apply(R,f)).next())});function ks(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const X=ks(i),tc=ks(Ot),nc=({children:e})=>{const t=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(g=>{if(m<1)return m;if(g<1)return 1})}),s=t.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:t,children:e})},oc=n=>{var o=n,{value:e}=o,t=Ss(o,["value"]);const r=navigator.language||"en-US";let s=parseFloat(e).toLocaleString(r,{useGrouping:!0,maximumFractionDigits:6});const a=e.match(/\.\d*?(0*)$/);return a&&(s+=/[1-9]/.test(a[0])?a[1]:a[0]),f.jsx("div",ae(B({},t),{className:"calculator-display",children:f.jsx(nc,{children:s})}))},be=o=>{var r=o,{onPress:e,className:t}=r,n=Ss(r,["onPress","className"]);return f.jsx("button",B({onClick:e,className:`calculator-key ${t}`},n))},Es=h.createStyles(({css:e})=>({container:e`
|
|
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
|
-
`})),$s={"/":(e,t)=>e/t,"*":(e,t)=>e*t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"=":(e,t)=>t},sc=i.forwardRef(({className:e},t)=>{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")},g=()=>{s(r.substring(0,r.length-1)||"0")},v=()=>{const S=parseFloat(r)*-1;s(String(S))},p=()=>{if(parseFloat(r)===0)return;const k=r.replace(/^-?\d*\.?/,""),I=parseFloat(r)/100;s(String(I.toFixed(k.length+2)))},y=()=>{/\./.test(r)||(s(r+"."),u(!1))},b=S=>{c?(s(String(S)),u(!1)):s(r==="0"?String(S):r+S)},C=S=>{const k=parseFloat(r);if(n==null)o(k);else if(a){const I=n||0,M=$s[a](I,k);o(M),s(String(M))}u(!0),l(S)};i.useEffect(()=>{const S=k=>{let{key:I}=k;I==="Enter"&&(I="="),/\d/.test(I)?(k.preventDefault(),b(parseInt(I,10))):I in $s?(k.preventDefault(),C(I)):I==="."?(k.preventDefault(),y()):I==="%"?(k.preventDefault(),p()):I==="Backspace"?(k.preventDefault(),g()):I==="Clear"&&(k.preventDefault(),r!=="0"?m():d())};return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}});const w=r!=="0",x=w?"C":"AC";return f.jsxs("div",{className:"calculator",ref:t,children:[f.jsx(rc,{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(be,{className:"key-clear",onPress:()=>w?m():d(),children:x}),f.jsx(be,{className:"key-sign",onPress:()=>v(),children:"±"}),f.jsx(be,{className:"key-percent",onPress:()=>p(),children:"%"})]}),f.jsxs("div",{className:"digit-keys",children:[f.jsx(be,{className:"key-0",onPress:()=>b(0),children:"0"}),f.jsx(be,{className:"key-dot",onPress:()=>y(),children:"●"}),f.jsx(be,{className:"key-1",onPress:()=>b(1),children:"1"}),f.jsx(be,{className:"key-2",onPress:()=>b(2),children:"2"}),f.jsx(be,{className:"key-3",onPress:()=>b(3),children:"3"}),f.jsx(be,{className:"key-4",onPress:()=>b(4),children:"4"}),f.jsx(be,{className:"key-5",onPress:()=>b(5),children:"5"}),f.jsx(be,{className:"key-6",onPress:()=>b(6),children:"6"}),f.jsx(be,{className:"key-7",onPress:()=>b(7),children:"7"}),f.jsx(be,{className:"key-8",onPress:()=>b(8),children:"8"}),f.jsx(be,{className:"key-9",onPress:()=>b(9),children:"9"})]})]}),f.jsxs("div",{className:"operator-keys",children:[f.jsx(be,{className:"key-divide",onPress:()=>C("/"),children:"÷"}),f.jsx(be,{className:"key-multiply",onPress:()=>C("*"),children:"×"}),f.jsx(be,{className:"key-subtract",onPress:()=>C("-"),children:"−"}),f.jsx(be,{className:"key-add",onPress:()=>C("+"),children:"+"}),f.jsx(be,{className:"key-equals",onPress:()=>C("="),children:"="})]})]})]})}),ic=i.forwardRef((e,t)=>{const{styles:n}=Is();return f.jsx(sc,{ref:t,className:n.container})}),ac=({children:e,updateTransform:t=(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,g=`translate(${d}px,${m}px)`;t(g,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)}},[t]);const r=ae(B({},e.props.style),{cursor:"move",userSelect:"none"});return i.cloneElement(i.Children.only(e),{ref:n,style:r})},_s=i.createContext({}),lc=()=>i.useContext(_s),cc=({children:e})=>{const[t,n]=i.useState(!1),{styles:o}=Is();return f.jsxs(_s.Provider,{value:{visible:t,setVisible:n},children:[e,t?Ot.createPortal(f.jsx("div",{className:o.container,children:f.jsx(ac,{children:f.jsx(ic,{})})}),document.body):null]})},uc=()=>{const{visible:e,setVisible:t}=lc();return f.jsx(de.FloatButton,{type:e?"primary":"default",icon:f.jsx(Ke.CalculatorOutlined,{}),onClick:()=>{t(n=>!n)}})},dc=e=>f.jsx(h.PinnedPluginListProvider,{items:{ca:{order:300,component:"CalculatorButton",pin:!0,isPublic:!0,belongTo:"hoverbutton"}},children:f.jsx(h.SchemaComponentOptions,{components:{CalculatorButton:uc},children:e.children})});class fc extends h.Plugin{load(){return me(this,null,function*(){this.app.use(dc),this.app.use(cc)})}}const mc=()=>{const{designable:e,setDesignable:t}=h.useDesignable();return h.useHotkeys("Ctrl+Shift+U",()=>t(!e),[e]),f.jsx(de.FloatButton,{icon:f.jsx(h.Icon,{type:"Design"}),type:e?"primary":"default",onClick:()=>t(!e)})},hc=e=>f.jsx(h.PinnedPluginListProvider,{items:{db:{order:60,component:"DesignableButton",pin:!0,snippet:"ui.*",belongTo:"hoverbutton"}},children:f.jsx(h.SchemaComponentOptions,{components:{DesignableButton:mc},children:e.children})});class pc extends h.Plugin{load(){return me(this,null,function*(){this.app.use(hc)})}}const Ps=i.createContext({open:!1,setOpen:e=>{}}),gc=({children:e})=>{const[t,n]=i.useState(!1);return f.jsxs(Ps.Provider,{value:{open:t,setOpen:n},children:[e,f.jsx(bc,{open:t,setOpen:n})]})},vc=()=>i.useContext(Ps),bc=({open:e,setOpen:t})=>{const n=i.useRef();i.useEffect(()=>{e&&n.current&&setTimeout(()=>{n.current.focus()},0)},[e,n]);const o=()=>{t(!1)},r=()=>{t(!1)};return f.jsx(de.Modal,{title:f.jsx(de.Input,{style:{width:"100%"},autoFocus:!0,ref:n}),closable:!1,open:e,onOk:o,onCancel:r,footer:null,children:f.jsx("p",{})})},yc=()=>{const{setOpen:e}=vc();return h.useHotkeys("Ctrl+K",()=>e(t=>!t),[]),h.useHotkeys("Cmd+K",()=>e(t=>!t),[]),f.jsx(de.FloatButton,{icon:f.jsx(Ke.SearchOutlined,{}),onClick:()=>e(!0)})},Cc=e=>f.jsx(h.PinnedPluginListProvider,{items:{saj:{order:30,component:"SearchAndJumpButton",pin:!0,snippet:"pm.*",belongTo:"hoverbutton"}},children:f.jsx(h.SchemaComponentOptions,{components:{SearchAndJumpButton:yc},children:e.children})});class xc extends h.Plugin{load(){return me(this,null,function*(){this.app.use(Cc),this.app.use(gc)})}}const Ho="client";function ut(e){return`{{t('${e}', { ns: '${Ho}', nsMode: 'fallback' })}}`}const qe=(e,t=!0)=>t?h.tval(e,{ns:Ho}):h.tval(e);function le(){return We.useTranslation([Ho,"core"],{nsMode:"fallback"})}const Sc=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: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:ut("Menu"),Component:"MMenuBlockInitializer"},{name:"markdown",title:qe("Demonstration text"),Component:"MarkdownBlockInitializer"},{name:"settings",title:ut("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"}]}]}),wc=()=>{const e=h.useSchemaInitializerItem(),{insert:t}=h.useSchemaInitializer();return f.jsx(h.SchemaInitializerItem,B({icon:f.jsx(Ke.MenuOutlined,{}),onClick:()=>me(this,null,function*(){t({type:"void","x-component":"MMenu","x-designer":"MMenu.Designer","x-component-props":{}})})},e))},Tt=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);Tt&&document.addEventListener("touchstart",()=>{},!0);function yt(e,t,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(e,t||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Oe="${label}不是一个有效的${type}",kc={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 Ec(){return kc.current}const Ic=i.createContext(null);function Pe(){var e;return(e=i.useContext(Ic))!==null&&e!==void 0?e:Ec()}function we(e,t){const n=e;for(const o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);return n}var Ct=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ms={exports:{}};/*!
|
|
121
|
+
`})),Is={"/":(e,t)=>e/t,"*":(e,t)=>e*t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"=":(e,t)=>t},rc=i.forwardRef(({className:e},t)=>{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")},g=()=>{s(r.substring(0,r.length-1)||"0")},v=()=>{const S=parseFloat(r)*-1;s(String(S))},p=()=>{if(parseFloat(r)===0)return;const k=r.replace(/^-?\d*\.?/,""),I=parseFloat(r)/100;s(String(I.toFixed(k.length+2)))},y=()=>{/\./.test(r)||(s(r+"."),u(!1))},b=S=>{c?(s(String(S)),u(!1)):s(r==="0"?String(S):r+S)},C=S=>{const k=parseFloat(r);if(n==null)o(k);else if(a){const I=n||0,M=Is[a](I,k);o(M),s(String(M))}u(!0),l(S)};i.useEffect(()=>{const S=k=>{let{key:I}=k;I==="Enter"&&(I="="),/\d/.test(I)?(k.preventDefault(),b(parseInt(I,10))):I in Is?(k.preventDefault(),C(I)):I==="."?(k.preventDefault(),y()):I==="%"?(k.preventDefault(),p()):I==="Backspace"?(k.preventDefault(),g()):I==="Clear"&&(k.preventDefault(),r!=="0"?m():d())};return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}});const w=r!=="0",x=w?"C":"AC";return f.jsxs("div",{className:"calculator",ref:t,children:[f.jsx(oc,{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(be,{className:"key-clear",onPress:()=>w?m():d(),children:x}),f.jsx(be,{className:"key-sign",onPress:()=>v(),children:"±"}),f.jsx(be,{className:"key-percent",onPress:()=>p(),children:"%"})]}),f.jsxs("div",{className:"digit-keys",children:[f.jsx(be,{className:"key-0",onPress:()=>b(0),children:"0"}),f.jsx(be,{className:"key-dot",onPress:()=>y(),children:"●"}),f.jsx(be,{className:"key-1",onPress:()=>b(1),children:"1"}),f.jsx(be,{className:"key-2",onPress:()=>b(2),children:"2"}),f.jsx(be,{className:"key-3",onPress:()=>b(3),children:"3"}),f.jsx(be,{className:"key-4",onPress:()=>b(4),children:"4"}),f.jsx(be,{className:"key-5",onPress:()=>b(5),children:"5"}),f.jsx(be,{className:"key-6",onPress:()=>b(6),children:"6"}),f.jsx(be,{className:"key-7",onPress:()=>b(7),children:"7"}),f.jsx(be,{className:"key-8",onPress:()=>b(8),children:"8"}),f.jsx(be,{className:"key-9",onPress:()=>b(9),children:"9"})]})]}),f.jsxs("div",{className:"operator-keys",children:[f.jsx(be,{className:"key-divide",onPress:()=>C("/"),children:"÷"}),f.jsx(be,{className:"key-multiply",onPress:()=>C("*"),children:"×"}),f.jsx(be,{className:"key-subtract",onPress:()=>C("-"),children:"−"}),f.jsx(be,{className:"key-add",onPress:()=>C("+"),children:"+"}),f.jsx(be,{className:"key-equals",onPress:()=>C("="),children:"="})]})]})]})}),sc=i.forwardRef((e,t)=>{const{styles:n}=Es();return f.jsx(rc,{ref:t,className:n.container})}),ic=({children:e,updateTransform:t=(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,g=`translate(${d}px,${m}px)`;t(g,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)}},[t]);const r=ae(B({},e.props.style),{cursor:"move",userSelect:"none"});return i.cloneElement(i.Children.only(e),{ref:n,style:r})},$s=i.createContext({}),ac=()=>i.useContext($s),lc=({children:e})=>{const[t,n]=i.useState(!1),{styles:o}=Es();return f.jsxs($s.Provider,{value:{visible:t,setVisible:n},children:[e,t?Ot.createPortal(f.jsx("div",{className:o.container,children:f.jsx(ic,{children:f.jsx(sc,{})})}),document.body):null]})},cc=()=>{const{visible:e,setVisible:t}=ac();return f.jsx(de.FloatButton,{type:e?"primary":"default",icon:f.jsx(Ke.CalculatorOutlined,{}),onClick:()=>{t(n=>!n)}})},uc=e=>f.jsx(h.PinnedPluginListProvider,{items:{ca:{order:300,component:"CalculatorButton",pin:!0,isPublic:!0,belongTo:"hoverbutton"}},children:f.jsx(h.SchemaComponentOptions,{components:{CalculatorButton:cc},children:e.children})});class dc extends h.Plugin{load(){return me(this,null,function*(){this.app.use(uc),this.app.use(lc)})}}const fc=()=>{const{designable:e,setDesignable:t}=h.useDesignable();return h.useHotkeys("Ctrl+Shift+U",()=>t(!e),[e]),f.jsx(de.FloatButton,{icon:f.jsx(h.Icon,{type:"Design"}),type:e?"primary":"default",onClick:()=>t(!e)})},mc=e=>f.jsx(h.PinnedPluginListProvider,{items:{db:{order:60,component:"DesignableButton",pin:!0,snippet:"ui.*",belongTo:"hoverbutton"}},children:f.jsx(h.SchemaComponentOptions,{components:{DesignableButton:fc},children:e.children})});class hc extends h.Plugin{load(){return me(this,null,function*(){this.app.use(mc)})}}const _s=i.createContext({open:!1,setOpen:e=>{}}),pc=({children:e})=>{const[t,n]=i.useState(!1);return f.jsxs(_s.Provider,{value:{open:t,setOpen:n},children:[e,f.jsx(vc,{open:t,setOpen:n})]})},gc=()=>i.useContext(_s),vc=({open:e,setOpen:t})=>{const n=i.useRef();i.useEffect(()=>{e&&n.current&&setTimeout(()=>{n.current.focus()},0)},[e,n]);const o=()=>{t(!1)},r=()=>{t(!1)};return f.jsx(de.Modal,{title:f.jsx(de.Input,{style:{width:"100%"},autoFocus:!0,ref:n}),closable:!1,open:e,onOk:o,onCancel:r,footer:null,children:f.jsx("p",{})})},bc=()=>{const{setOpen:e}=gc();return h.useHotkeys("Ctrl+K",()=>e(t=>!t),[]),h.useHotkeys("Cmd+K",()=>e(t=>!t),[]),f.jsx(de.FloatButton,{icon:f.jsx(Ke.SearchOutlined,{}),onClick:()=>e(!0)})},yc=e=>f.jsx(h.PinnedPluginListProvider,{items:{saj:{order:30,component:"SearchAndJumpButton",pin:!0,snippet:"pm.*",belongTo:"hoverbutton"}},children:f.jsx(h.SchemaComponentOptions,{components:{SearchAndJumpButton:bc},children:e.children})});class Cc extends h.Plugin{load(){return me(this,null,function*(){this.app.use(yc),this.app.use(pc)})}}const Ho="client";function ut(e){return`{{t('${e}', { ns: '${Ho}', nsMode: 'fallback' })}}`}const qe=(e,t=!0)=>t?h.tval(e,{ns:Ho}):h.tval(e);function le(){return We.useTranslation([Ho,"core"],{nsMode:"fallback"})}const xc=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: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:ut("Menu"),Component:"MMenuBlockInitializer"},{name:"markdown",title:qe("Demonstration text"),Component:"MarkdownBlockInitializer"},{name:"settings",title:ut("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"}]}]}),Sc=()=>{const e=h.useSchemaInitializerItem(),{insert:t}=h.useSchemaInitializer();return f.jsx(h.SchemaInitializerItem,B({icon:f.jsx(Ke.MenuOutlined,{}),onClick:()=>me(this,null,function*(){t({type:"void","x-component":"MMenu","x-designer":"MMenu.Designer","x-component-props":{}})})},e))},Tt=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);Tt&&document.addEventListener("touchstart",()=>{},!0);function yt(e,t,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(e,t||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Oe="${label}不是一个有效的${type}",wc={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 kc(){return wc.current}const Ec=i.createContext(null);function Pe(){var e;return(e=i.useContext(Ec))!==null&&e!==void 0?e:kc()}function we(e,t){const n=e;for(const o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);return n}var Ct=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ps={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(e){(function(){var t={}.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)t.call(s,l)&&s[l]&&(a=r(a,l));return a}function r(s,a){return a?s?s+" "+a:s+a:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ms);var $c=Ms.exports;const K=xt($c);function Y(e,t){const n=Object.assign({},t.props);e.className&&(n.className=K(t.props.className,e.className)),e.style&&(n.style=Object.assign(Object.assign({},n.style),e.style)),e.tabIndex!==void 0&&(n.tabIndex=e.tabIndex);for(const o in e)e.hasOwnProperty(o)&&(o.startsWith("data-")||o.startsWith("aria-"))&&(n[o]=e[o]);return i.cloneElement(t,n)}function oe(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(o=>{n[o]!==void 0&&(t[o]=n[o])})}),t}function Uo(e,...t){for(let n=t.length-1;n>=0;n-=1)if(t[n]!==void 0)return t[n];return e}const Fs=10;function _c(e,t){return e>t&&e>Fs?"horizontal":t>e&&t>Fs?"vertical":""}function Pc(){const e=i.useRef(0),t=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:g=>{const v=g.touches[0];n.current=v.clientX<0?0:v.clientX-e.current,o.current=v.clientY-t.current,r.current=Math.abs(n.current),s.current=Math.abs(o.current),a.current||(a.current=_c(r.current,s.current))},start:g=>{u(),e.current=g.touches[0].clientX,t.current=g.touches[0].clientY},reset:u,startX:e,startY:t,deltaX:n,deltaY:o,offsetX:r,offsetY:s,direction:a,isVertical:l,isHorizontal:c}}const Mc=Tt?window:void 0,Fc=["scroll","auto","overlay"];function Nc(e){return e.nodeType===1}function Oc(e,t=Mc){let n=e;for(;n&&n!==t&&Nc(n);){if(n===document.body)return t;const{overflowY:o}=window.getComputedStyle(n);if(Fc.includes(o)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return t}let On=!1;if(Tt)try{const e={};Object.defineProperty(e,"passive",{get(){On=!0}}),window.addEventListener("test-passive",null,e)}catch(e){}let en=0;const Ns="adm-overflow-hidden";function Tc(e){let t=e==null?void 0:e.parentElement;for(;t;){if(t.clientHeight<t.scrollHeight)return t;t=t.parentElement}return null}function Os(e,t){const n=Pc(),o=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=Oc(a.target,e.current);if(!c)return;if(t==="strict"){const p=Tc(a.target);if(p===document.body||p===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:d,scrollTop:m}=c,{height:g}=c.getBoundingClientRect();let v="11";m===0?v=d>=u?"00":"01":u<=Math.round(g+m)&&(v="10"),v!=="11"&&n.isVertical()&&!(parseInt(v,2)&parseInt(l,2))&&a.cancelable&&On&&a.preventDefault()},r=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,On?{passive:!1}:!1),en||document.body.classList.add(Ns),en++},s=()=>{en&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),en--,en||document.body.classList.remove(Ns))};i.useEffect(()=>{if(t)return r(),()=>{s()}},[t])}let Yo=nn();const Q=e=>tn(e,Yo);let Go=nn();Q.write=e=>tn(e,Go);let Tn=nn();Q.onStart=e=>tn(e,Tn);let qo=nn();Q.onFrame=e=>tn(e,qo);let Xo=nn();Q.onFinish=e=>tn(e,Xo);let Dt=[];Q.setTimeout=(e,t)=>{let n=Q.now()+t,o=()=>{let s=Dt.findIndex(a=>a.cancel==o);~s&&Dt.splice(s,1),ft-=~s?1:0},r={time:n,handler:e,cancel:o};return Dt.splice(Ts(n),0,r),ft+=1,Ds(),r};let Ts=e=>~(~Dt.findIndex(t=>t.time>e)||~Dt.length);Q.cancel=e=>{Tn.delete(e),qo.delete(e),Xo.delete(e),Yo.delete(e),Go.delete(e)},Q.sync=e=>{Jo=!0,Q.batchedUpdates(e),Jo=!1},Q.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...r){t=r,Q.onStart(n)}return o.handler=e,o.cancel=()=>{Tn.delete(n),t=null},o};let Qo=typeof window!="undefined"?window.requestAnimationFrame:()=>{};Q.use=e=>Qo=e,Q.now=typeof performance!="undefined"?()=>performance.now():Date.now,Q.batchedUpdates=e=>e(),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"):Ls()};let dt=-1,ft=0,Jo=!1;function tn(e,t){Jo?(t.delete(e),e(0)):(t.add(e),Ds())}function Ds(){dt<0&&(dt=0,Q.frameLoop!=="demand"&&Qo(As))}function Dc(){dt=-1}function As(){~dt&&(Qo(As),Q.batchedUpdates(Ls))}function Ls(){let e=dt;dt=Q.now();let t=Ts(dt);if(t&&(Bs(Dt.splice(0,t),n=>n.handler()),ft-=t),!ft){Dc();return}Tn.flush(),Yo.flush(e?Math.min(64,dt-e):16.667),qo.flush(),Go.flush(),Xo.flush()}function nn(){let e=new Set,t=e;return{add(n){ft+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return ft-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,ft-=t.size,Bs(t,o=>o(n)&&e.add(o)),ft+=e.size,t=e)}}}function Bs(e,t){e.forEach(n=>{try{t(n)}catch(o){Q.catch(o)}})}function Ro(){}const Ac=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),A={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function rt(e,t){if(A.arr(e)){if(!A.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const se=(e,t)=>e.forEach(t);function Xe(e,t,n){if(A.arr(e)){for(let o=0;o<e.length;o++)t.call(n,e[o],`${o}`);return}for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}const Te=e=>A.und(e)?[]:A.arr(e)?e:[e];function on(e,t){if(e.size){const n=Array.from(e);e.clear(),se(n,t)}}const rn=(e,...t)=>on(e,n=>n(...t)),er=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let tr,Vs,mt=null,zs=!1,nr=Ro;var Qe=Object.freeze({__proto__:null,get createStringInterpolator(){return tr},get to(){return Vs},get colors(){return mt},get skipAnimation(){return zs},get willAdvance(){return nr},assign:e=>{e.to&&(Vs=e.to),e.now&&(Q.now=e.now),e.colors!==void 0&&(mt=e.colors),e.skipAnimation!=null&&(zs=e.skipAnimation),e.createStringInterpolator&&(tr=e.createStringInterpolator),e.requestAnimationFrame&&Q.use(e.requestAnimationFrame),e.batchedUpdates&&(Q.batchedUpdates=e.batchedUpdates),e.willAdvance&&(nr=e.willAdvance),e.frameLoop&&(Q.frameLoop=e.frameLoop)}});const sn=new Set;let Le=[],or=[],Dn=0;const An={get idle(){return!sn.size&&!Le.length},start(e){Dn>e.priority?(sn.add(e),Q.onStart(Lc)):(Zs(e),Q(rr))},advance:rr,sort(e){if(Dn)Q.onFrame(()=>An.sort(e));else{const t=Le.indexOf(e);~t&&(Le.splice(t,1),js(e))}},clear(){Le=[],sn.clear()}};function Lc(){sn.forEach(Zs),sn.clear(),Q(rr)}function Zs(e){Le.includes(e)||js(e)}function js(e){Le.splice(Bc(Le,t=>t.priority>e.priority),0,e)}function rr(e){const t=or;for(let n=0;n<Le.length;n++){const o=Le[n];Dn=o.priority,o.idle||(nr(o),o.advance(e),o.idle||t.push(o))}return Dn=0,or=Le,or.length=0,Le=t,Le.length>0}function Bc(e,t){const n=e.findIndex(t);return n<0?e.length:n}const Vc=(e,t,n)=>Math.min(Math.max(n,e),t),zc={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+",Ln=He+"%";function Bn(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Zc=new RegExp("rgb"+Bn(He,He,He)),jc=new RegExp("rgba"+Bn(He,He,He,He)),Kc=new RegExp("hsl"+Bn(He,Ln,Ln)),Wc=new RegExp("hsla"+Bn(He,Ln,Ln,He)),Hc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Uc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Yc=/^#([0-9a-fA-F]{6})$/,Gc=/^#([0-9a-fA-F]{8})$/;function qc(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Yc.exec(e))?parseInt(t[1]+"ff",16)>>>0:mt&&mt[e]!==void 0?mt[e]:(t=Zc.exec(e))?(At(t[1])<<24|At(t[2])<<16|At(t[3])<<8|255)>>>0:(t=jc.exec(e))?(At(t[1])<<24|At(t[2])<<16|At(t[3])<<8|Hs(t[4]))>>>0:(t=Hc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Gc.exec(e))?parseInt(t[1],16)>>>0:(t=Uc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Kc.exec(e))?(Ks(Ws(t[1]),Vn(t[2]),Vn(t[3]))|255)>>>0:(t=Wc.exec(e))?(Ks(Ws(t[1]),Vn(t[2]),Vn(t[3]))|Hs(t[4]))>>>0:null}function sr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ks(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,s=sr(r,o,e+1/3),a=sr(r,o,e),l=sr(r,o,e-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function At(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ws(e){return(parseFloat(e)%360+360)%360/360}function Hs(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Vn(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Us(e){let t=qc(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,o=(t&16711680)>>>16,r=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${o}, ${r}, ${s})`}const an=(e,t,n)=>{if(A.fun(e))return e;if(A.arr(e))return an({range:e,output:t,extrapolate:n});if(A.str(e.output[0]))return tr(e);const o=e,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=Qc(u,s);return Xc(u,s[d],s[d+1],r[d],r[d+1],c,a,l,o.map)}};function Xc(e,t,n,o,r,s,a,l,c){let u=c?c(e):e;if(u<t){if(a==="identity")return u;a==="clamp"&&(u=t)}if(u>n){if(l==="identity")return u;l==="clamp"&&(u=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),o===-1/0?u=-u:r===1/0?u=u+o:u=u*(r-o)+o,u)}function Qc(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}const Jc=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const o=n*e,r=t==="end"?Math.floor(o):Math.ceil(o);return Vc(0,1,r/e)},zn=1.70158,Zn=zn*1.525,Ys=zn+1,Gs=2*Math.PI/3,qs=2*Math.PI/4.5,jn=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Rc={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Ys*e*e*e-zn*e*e,easeOutBack:e=>1+Ys*Math.pow(e-1,3)+zn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Zn+1)*2*e-Zn)/2:(Math.pow(2*e-2,2)*((Zn+1)*(e*2-2)+Zn)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Gs),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Gs)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*qs))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*qs)/2+1,easeInBounce:e=>1-jn(1-e),easeOutBounce:jn,easeInOutBounce:e=>e<.5?(1-jn(1-2*e))/2:(1+jn(2*e-1))/2,steps:Jc};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ir.apply(this,arguments)}const Lt=Symbol.for("FluidValue.get"),St=Symbol.for("FluidValue.observers"),Be=e=>!!(e&&e[Lt]),Me=e=>e&&e[Lt]?e[Lt]():e,Xs=e=>e[St]||null;function eu(e,t){e.eventObserved?e.eventObserved(t):e(t)}function ln(e,t){let n=e[St];n&&n.forEach(o=>{eu(o,t)})}class Qs{constructor(t){if(this[Lt]=void 0,this[St]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");tu(this,t)}}const tu=(e,t)=>Js(e,Lt,t);function Bt(e,t){if(e[Lt]){let n=e[St];n||Js(e,St,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function cn(e,t){let n=e[St];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[St]=null,e.observerRemoved&&e.observerRemoved(o,t)}}const Js=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Kn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,nu=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Rs=new RegExp(`(${Kn.source})(%|[a-z]+)`,"i"),ou=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Wn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ei=e=>{const[t,n]=ru(e);if(!t||er())return e;const o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(n);return r||e}else{if(n&&Wn.test(n))return ei(n);if(n)return n}return e},ru=e=>{const t=Wn.exec(e);if(!t)return[,];const[,n,o]=t;return[n,o]};let ar;const su=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,ti=e=>{ar||(ar=mt?new RegExp(`(${Object.keys(mt).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Me(s).replace(Wn,ei).replace(nu,Us).replace(ar,Us)),n=t.map(s=>s.match(Kn).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=>an(ir({},e,{output:s})));return s=>{var a;const l=!Rs.test(t[0])&&((a=t.find(u=>Rs.test(u)))==null?void 0:a.replace(Kn,""));let c=0;return t[0].replace(Kn,()=>`${r[c++](s)}${l||""}`).replace(ou,su)}},lr="react-spring: ",ni=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${lr}once requires a function parameter`);return(...o)=>{n||(t(...o),n=!0)}},iu=ni(console.warn);function au(){iu(`${lr}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const lu=ni(console.warn);function cu(){lu(`${lr}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 Hn(e){return A.str(e)&&(e[0]=="#"||/\d/.test(e)||!er()&&Wn.test(e)||e in(mt||{}))}const cr=er()?i.useEffect:i.useLayoutEffect,uu=()=>{const e=i.useRef(!1);return cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function oi(){const e=i.useState()[1],t=uu();return()=>{t.current&&e(Math.random())}}function du(e,t){const[n]=i.useState(()=>({inputs:t,result:e()})),o=i.useRef(),r=o.current;let s=r;return s?t&&s.inputs&&fu(t,s.inputs)||(s={inputs:t,result:e()}):s=n,i.useEffect(()=>{o.current=s,r==n&&(n.inputs=n.result=void 0)},[s]),s.result}function fu(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const ri=e=>i.useEffect(e,mu),mu=[];function si(e){const t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}const un=Symbol.for("Animated:node"),hu=e=>!!e&&e[un]===e,Je=e=>e&&e[un],ur=(e,t)=>Ac(e,un,t),Un=e=>e&&e[un]&&e[un].getPayload();class ii{constructor(){this.payload=void 0,ur(this,this)}getPayload(){return this.payload||[]}}class Vt extends ii{constructor(t){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=t,A.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Vt(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return A.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,A.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class zt extends Vt{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=an({output:[t,t]})}static create(t){return new zt(t)}getValue(){let t=this._string;return t==null?this._string=this._toString(this._value):t}setValue(t){if(A.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=an({output:[this.getValue(),t]})),this._value=0,super.reset()}}const Yn={dependencies:null};class Gn extends ii{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const n={};return Xe(this.source,(o,r)=>{hu(o)?n[r]=o.getValue(t):Be(o)?n[r]=Me(o):t||(n[r]=o)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&se(this.payload,t=>t.reset())}_makePayload(t){if(t){const n=new Set;return Xe(t,this._addToPayload,n),Array.from(n)}}_addToPayload(t){Yn.dependencies&&Be(t)&&Yn.dependencies.add(t);const n=Un(t);n&&se(n,o=>this.add(o))}}class dr extends Gn{constructor(t){super(t)}static create(t){return new dr(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((o,r)=>o.setValue(t[r])).some(Boolean):(super.setValue(t.map(pu)),!0)}}function pu(e){return(Hn(e)?zt:Vt).create(e)}function fr(e){const t=Je(e);return t?t.constructor:A.arr(e)?dr:Hn(e)?zt:Vt}function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qn.apply(this,arguments)}const ai=(e,t)=>{const n=!A.fun(e)||e.prototype&&e.prototype.isReactComponent;return i.forwardRef((o,r)=>{const s=i.useRef(null),a=n&&i.useCallback(p=>{s.current=bu(r,p)},[r]),[l,c]=vu(o,t),u=oi(),d=()=>{const p=s.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,l.getValue(!0)):!1)===!1&&u()},m=new gu(d,c),g=i.useRef();cr(()=>(g.current=m,se(c,p=>Bt(p,m)),()=>{g.current&&(se(g.current.deps,p=>cn(p,g.current)),Q.cancel(g.current.update))})),i.useEffect(d,[]),ri(()=>()=>{const p=g.current;se(p.deps,y=>cn(y,p))});const v=t.getComponentProps(l.getValue());return X.createElement(e,qn({},v,{ref:a}))})};class gu{constructor(t,n){this.update=t,this.deps=n}eventObserved(t){t.type=="change"&&Q.write(this.update)}}function vu(e,t){const n=new Set;return Yn.dependencies=n,e.style&&(e=qn({},e,{style:t.createAnimatedStyle(e.style)})),e=new Gn(e),Yn.dependencies=null,[e,n]}function bu(e,t){return e&&(A.fun(e)?e(t):e.current=t),t}const li=Symbol.for("AnimatedComponent"),yu=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=r=>new Gn(r),getComponentProps:o=r=>r}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},s=a=>{const l=ci(a)||"Anonymous";return A.str(a)?a=s[a]||(s[a]=ai(a,r)):a=a[li]||(a[li]=ai(a,r)),a.displayName=`Animated(${l})`,a};return Xe(e,(a,l)=>{A.arr(e)&&(l=ci(a)),s[l]=s(a)}),{animated:s}},ci=e=>A.str(e)?e:e&&A.str(e.displayName)?e.displayName:A.fun(e)&&e.name||null;function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xe.apply(this,arguments)}function wt(e,...t){return A.fun(e)?e(...t):e}const dn=(e,t)=>e===!0||!!(t&&e&&(A.fun(e)?e(t):Te(e).includes(t))),ui=(e,t)=>A.obj(e)?t&&e[t]:e,di=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Cu=e=>e,mr=(e,t=Cu)=>{let n=xu;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const o={};for(const r of n){const s=t(e[r],r);A.und(s)||(o[r]=s)}return o},xu=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Su={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 wu(e){const t={};let n=0;if(Xe(e,(o,r)=>{Su[r]||(t[r]=o,n++)}),n)return t}function fi(e){const t=wu(e);if(t){const n={to:t};return Xe(e,(o,r)=>r in t||(n[r]=o)),n}return xe({},e)}function fn(e){return e=Me(e),A.arr(e)?e.map(fn):Hn(e)?Qe.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function ku(e){for(const t in e)return!0;return!1}function hr(e){return A.fun(e)||A.arr(e)&&A.obj(e[0])}function Eu(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Iu(e,t){if(t&&e.ref!==t){var n;(n=e.ref)==null||n.delete(e),t.add(e),e.ref=t}}const pr=xe({},{default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}}.default,{mass:1,damping:1,easing:Rc.linear,clamp:!1});class $u{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,pr)}}function _u(e,t,n){n&&(n=xe({},n),mi(n,t),t=xe({},n,t)),mi(e,t),Object.assign(e,t);for(const a in pr)e[a]==null&&(e[a]=pr[a]);let{mass:o,frequency:r,damping:s}=e;return A.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*s*o/r),e}function mi(e,t){if(!A.und(t.decay))e.duration=void 0;else{const n=!A.und(t.tension)||!A.und(t.friction);(n||!A.und(t.frequency)||!A.und(t.damping)||!A.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}const hi=[];class Pu{constructor(){this.changed=!1,this.values=hi,this.toValues=null,this.fromValues=hi,this.to=void 0,this.from=void 0,this.config=new $u,this.immediate=!1}}function pi(e,{key:t,props:n,defaultProps:o,state:r,actions:s}){return new Promise((a,l)=>{var c;let u,d,m=dn((c=n.cancel)!=null?c:o==null?void 0:o.cancel,t);if(m)p();else{A.und(n.pause)||(r.paused=dn(n.pause,t));let y=o==null?void 0:o.pause;y!==!0&&(y=r.paused||dn(y,t)),u=wt(n.delay||0,t),y?(r.resumeQueue.add(v),s.pause()):(s.resume(),v())}function g(){r.resumeQueue.add(v),r.timeouts.delete(d),d.cancel(),u=d.time-Q.now()}function v(){u>0&&!Qe.skipAnimation?(r.delayed=!0,d=Q.setTimeout(p,u),r.pauseQueue.add(g),r.timeouts.add(d)):p()}function p(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(g),r.timeouts.delete(d),e<=(r.cancelId||0)&&(m=!0);try{s.start(xe({},n,{callId:e,cancel:m}),a)}catch(y){l(y)}}})}const gr=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Zt(e.get()):t.every(n=>n.noop)?gi(e.get()):Ue(e.get(),t.every(n=>n.finished)),gi=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ue=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Zt=e=>({value:e,cancelled:!0,finished:!1});function vi(e,t,n,o){const{callId:r,parentId:s,onRest:a}=t,{asyncTo:l,promise:c}=n;return!s&&e===l&&!t.reset?c:n.promise=me(this,null,function*(){n.asyncId=r,n.asyncTo=e;const u=mr(t,(b,C)=>C==="onRest"?void 0:b);let d,m;const g=new Promise((b,C)=>(d=b,m=C)),v=b=>{const C=r<=(n.cancelId||0)&&Zt(o)||r!==n.asyncId&&Ue(o,!1);if(C)throw b.result=C,m(b),b},p=(b,C)=>{const w=new bi,x=new yi;return me(this,null,function*(){if(Qe.skipAnimation)throw mn(n),x.result=Ue(o,!1),m(x),x;v(w);const S=A.obj(b)?xe({},b):xe({},C,{to:b});S.parentId=r,Xe(u,(I,M)=>{A.und(S[M])&&(S[M]=I)});const k=yield o.start(S);return v(w),n.paused&&(yield new Promise(I=>{n.resumeQueue.add(I)})),k})};let y;if(Qe.skipAnimation)return mn(n),Ue(o,!1);try{let b;A.arr(e)?b=(C=>me(this,null,function*(){for(const w of C)yield p(w)}))(e):b=Promise.resolve(e(p,o.stop.bind(o))),yield Promise.all([b.then(d),g]),y=Ue(o.get(),!0,!1)}catch(b){if(b instanceof bi)y=b.result;else if(b instanceof yi)y=b.result;else throw b}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 mn(e,t){on(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class bi 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 yi extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const vr=e=>e instanceof br;let Mu=1;class br extends Qs{constructor(...t){super(...t),this.id=Mu++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Je(this);return t&&t.getValue()}to(...t){return Qe.to(this,t)}interpolate(...t){return au(),Qe.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,n=!1){ln(this,{type:"change",parent:this,value:t,idle:n})}_onPriorityChange(t){this.idle||An.sort(this),ln(this,{type:"priority",parent:this,priority:t})}}const kt=Symbol.for("SpringPhase"),Ci=1,yr=2,Cr=4,xr=e=>(e[kt]&Ci)>0,ht=e=>(e[kt]&yr)>0,hn=e=>(e[kt]&Cr)>0,xi=(e,t)=>t?e[kt]|=yr|Ci:e[kt]&=~yr,Si=(e,t)=>t?e[kt]|=Cr:e[kt]&=~Cr;class Fu extends br{constructor(t,n){if(super(),this.key=void 0,this.animation=new Pu,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(t)||!A.und(n)){const o=A.obj(t)?xe({},t):xe({},n,{from:t});A.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(ht(this)||this._state.asyncTo)||hn(this)}get goal(){return Me(this.animation.to)}get velocity(){const t=Je(this);return t instanceof Vt?t.lastVelocity||0:t.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return xr(this)}get isAnimating(){return ht(this)}get isPaused(){return hn(this)}get isDelayed(){return this._state.delayed}advance(t){let n=!0,o=!1;const r=this.animation;let{config:s,toValues:a}=r;const l=Un(r.to);!l&&Be(r.to)&&(a=Te(Me(r.to))),r.values.forEach((d,m)=>{if(d.done)return;const g=d.constructor==zt?1:l?l[m].lastPosition:a[m];let v=r.immediate,p=g;if(!v){if(p=d.lastPosition,s.tension<=0){d.done=!0;return}let y=d.elapsedTime+=t;const b=r.fromValues[m],C=d.v0!=null?d.v0:d.v0=A.arr(s.velocity)?s.velocity[m]:s.velocity;let w;const x=s.precision||(b==g?.005:Math.min(1,Math.abs(g-b)*.001));if(A.und(s.duration))if(s.decay){const S=s.decay===!0?.998:s.decay,k=Math.exp(-(1-S)*y);p=b+C/(1-S)*(1-k),v=Math.abs(d.lastPosition-p)<=x,w=C*k}else{w=d.lastVelocity==null?C:d.lastVelocity;const S=s.restVelocity||x/10,k=s.clamp?0:s.bounce,I=!A.und(k),M=b==g?d.v0>0:b<g;let O,L=!1;const F=1,N=Math.ceil(t/F);for(let W=0;W<N&&(O=Math.abs(w)>S,!(!O&&(v=Math.abs(g-p)<=x,v)));++W){I&&(L=p==g||p>g==M,L&&(w=-w*k,p=g));const V=-s.tension*1e-6*(p-g),_=-s.friction*.001*w,P=(V+_)/s.mass;w=w+P*F,p=p+w*F}}else{let S=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,d.durationProgress>0&&(d.elapsedTime=s.duration*d.durationProgress,y=d.elapsedTime+=t)),S=(s.progress||0)+y/this._memoizedDuration,S=S>1?1:S<0?0:S,d.durationProgress=S),p=b+s.easing(S)*(g-b),w=(p-d.lastPosition)/t,v=S==1}d.lastVelocity=w,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),v=!0)}l&&!l[m].done&&(v=!1),v?d.done=!0:n=!1,d.setValue(p,s.round)&&(o=!0)});const c=Je(this),u=c.getValue();if(n){const d=Me(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(t){return Q.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ht(this)){const{to:t,config:n}=this.animation;Q.batchedUpdates(()=>{this._onStart(),n.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,n){let o;return A.und(t)?(o=this.queue||[],this.queue=[]):o=[A.obj(t)?t:xe({},n,{to:t})],Promise.all(o.map(r=>this._update(r))).then(r=>gr(this,r))}stop(t){const{to:n}=this.animation;return this._focus(this.get()),mn(this._state,t&&this._lastCallId),Q.batchedUpdates(()=>this._stop(n,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const n=this.key||"";let{to:o,from:r}=t;o=A.obj(o)?o[n]:o,(o==null||hr(o))&&(o=void 0),r=A.obj(r)?r[n]:r,r==null&&(r=void 0);const s={to:o,from:r};return xr(this)||(t.reverse&&([o,r]=[r,o]),r=Me(r),A.und(r)?Je(this)||this._set(o):this._set(r)),s}_update(t,n){let o=xe({},t);const{key:r,defaultProps:s}=this;o.default&&Object.assign(s,mr(o,(c,u)=>/^on/.test(u)?ui(c,r):c)),Ei(this,o,"onProps"),vn(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 pi(++this._lastCallId,{key:r,props:o,defaultProps:s,state:l,actions:{pause:()=>{hn(this)||(Si(this,!0),rn(l.pauseQueue),vn(this,"onPause",Ue(this,pn(this,this.animation.to)),this))},resume:()=>{hn(this)&&(Si(this,!1),ht(this)&&this._resume(),rn(l.resumeQueue),vn(this,"onResume",Ue(this,pn(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(c=>{if(o.loop&&c.finished&&!(n&&c.noop)){const u=wi(o);if(u)return this._update(u,!0)}return c})}_merge(t,n,o){if(n.cancel)return this.stop(!0),o(Zt(this));const r=!A.und(t.to),s=!A.und(t.from);if(r||s)if(n.callId>this._lastToId)this._lastToId=n.callId;else return o(Zt(this));const{key:a,defaultProps:l,animation:c}=this,{to:u,from:d}=c;let{to:m=u,from:g=d}=t;s&&!r&&(!n.default||A.und(m))&&(m=g),n.reverse&&([m,g]=[g,m]);const v=!rt(g,d);v&&(c.from=g),g=Me(g);const p=!rt(m,u);p&&this._focus(m);const y=hr(n.to),{config:b}=c,{decay:C,velocity:w}=b;(r||s)&&(b.velocity=0),n.config&&!y&&_u(b,wt(n.config,a),n.config!==l.config?wt(l.config,a):void 0);let x=Je(this);if(!x||A.und(m))return o(Ue(this,!0));const S=A.und(n.reset)?s&&!n.default:!A.und(g)&&dn(n.reset,a),k=S?g:this.get(),I=fn(m),M=A.num(I)||A.arr(I)||Hn(I),O=!y&&(!M||dn(l.immediate||n.immediate,a));if(p){const W=fr(m);if(W!==x.constructor)if(O)x=this._set(I);else throw Error(`Cannot animate between ${x.constructor.name} and ${W.name}, as the "to" prop suggests`)}const L=x.constructor;let F=Be(m),N=!1;if(!F){const W=S||!xr(this)&&v;(p||W)&&(N=rt(fn(k),I),F=!N),(!rt(c.immediate,O)&&!O||!rt(b.decay,C)||!rt(b.velocity,w))&&(F=!0)}if(N&&ht(this)&&(c.changed&&!S?F=!0:F||this._stop(u)),!y&&((F||Be(u))&&(c.values=x.getPayload(),c.toValues=Be(m)?null:L==zt?[1]:Te(I)),c.immediate!=O&&(c.immediate=O,!O&&!S&&this._set(u)),F)){const{onRest:W}=c;se(Ou,_=>Ei(this,n,_));const V=Ue(this,pn(this,u));rn(this._pendingCalls,V),this._pendingCalls.add(o),c.changed&&Q.batchedUpdates(()=>{c.changed=!S,W==null||W(V,this),S?wt(l.onRest,V):c.onStart==null||c.onStart(V,this)})}S&&this._set(k),y?o(vi(n.to,n,this._state,this)):F?this._start():ht(this)&&!p?this._pendingCalls.add(o):o(gi(k))}_focus(t){const n=this.animation;t!==n.to&&(Xs(this)&&this._detach(),n.to=t,Xs(this)&&this._attach())}_attach(){let t=0;const{to:n}=this.animation;Be(n)&&(Bt(n,this),vr(n)&&(t=n.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;Be(t)&&cn(t,this)}_set(t,n=!0){const o=Me(t);if(!A.und(o)){const r=Je(this);if(!r||!rt(o,r.getValue())){const s=fr(o);!r||r.constructor!=s?ur(this,s.create(o)):r.setValue(o),r&&Q.batchedUpdates(()=>{this._onChange(o,n)})}}return Je(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,vn(this,"onStart",Ue(this,pn(this,t.to)),this))}_onChange(t,n){n||(this._onStart(),wt(this.animation.onChange,t,this)),wt(this.defaultProps.onChange,t,this),super._onChange(t,n)}_start(){const t=this.animation;Je(this).reset(Me(t.to)),t.immediate||(t.fromValues=t.values.map(n=>n.lastPosition)),ht(this)||(xi(this,!0),hn(this)||this._resume())}_resume(){Qe.skipAnimation?this.finish():An.start(this)}_stop(t,n){if(ht(this)){xi(this,!1);const o=this.animation;se(o.values,s=>{s.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),ln(this,{type:"idle",parent:this});const r=n?Zt(this.get()):Ue(this.get(),pn(this,t!=null?t:o.to));rn(this._pendingCalls,r),o.changed&&(o.changed=!1,vn(this,"onRest",r,this))}}}function pn(e,t){const n=fn(t),o=fn(e.get());return rt(o,n)}function wi(e,t=e.loop,n=e.to){let o=wt(t);if(o){const r=o!==!0&&fi(o),s=(r||e).reverse,a=!r||r.reset;return gn(xe({},e,{loop:t,default:!1,pause:void 0,to:!s||hr(n)?n:void 0,from:a?e.from:void 0,reset:a},r))}}function gn(e){const{to:t,from:n}=e=fi(e),o=new Set;return A.obj(t)&&ki(t,o),A.obj(n)&&ki(n,o),e.keys=o.size?Array.from(o):null,e}function Nu(e){const t=gn(e);return A.und(t.default)&&(t.default=mr(t)),t}function ki(e,t){Xe(e,(n,o)=>n!=null&&t.add(o))}const Ou=["onStart","onRest","onChange","onPause","onResume"];function Ei(e,t,n){e.animation[n]=t[n]!==di(t,n)?ui(t[n],e.key):void 0}function vn(e,t,...n){var o,r,s,a;(o=(r=e.animation)[t])==null||o.call(r,...n),(s=(a=e.defaultProps)[t])==null||s.call(a,...n)}const Tu=["onStart","onChange","onRest"];let Du=1,Au=class{constructor(t,n){this.id=Du++,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),t&&this.start(xe({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((n,o)=>t[o]=n.get()),t}set(t){for(const n in t){const o=t[n];A.und(o)||this.springs[n].set(o)}}update(t){return t&&this.queue.push(gn(t)),this}start(t){let{queue:n}=this;return t?n=Te(t).map(gn):this.queue=[],this._flush?this._flush(this,n):(Fi(this,n),Sr(this,n))}stop(t,n){if(t!==!!t&&(n=t),n){const o=this.springs;se(Te(n),r=>o[r].stop(!!t))}else mn(this._state,this._lastAsyncId),this.each(o=>o.stop(!!t));return this}pause(t){if(A.und(t))this.start({pause:!0});else{const n=this.springs;se(Te(t),o=>n[o].pause())}return this}resume(t){if(A.und(t))this.start({pause:!1});else{const n=this.springs;se(Te(t),o=>n[o].resume())}return this}each(t){Xe(this.springs,t)}_onFrame(){const{onStart:t,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,on(t,([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&&on(n,([c,u])=>{u.value=l,c(u,this,this._item)}),a&&(this._started=!1,on(o,([c,u])=>{u.value=l,c(u,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;Q.onFrame(this._onFrame)}};function Sr(e,t){return Promise.all(t.map(n=>Ii(e,n))).then(n=>gr(e,n))}function Ii(e,t,n){return me(this,null,function*(){const{keys:o,to:r,from:s,loop:a,onRest:l,onResolve:c}=t,u=A.obj(t.default)&&t.default;a&&(t.loop=!1),r===!1&&(t.to=null),s===!1&&(t.from=null);const d=A.arr(r)||A.fun(r)?r:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):se(Tu,y=>{const b=t[y];if(A.fun(b)){const C=e._events[y];t[y]=({finished:w,cancelled:x})=>{const S=C.get(b);S?(w||(S.finished=!1),x&&(S.cancelled=!0)):C.set(b,{value:null,finished:w||!1,cancelled:x||!1})},u&&(u[y]=t[y])}});const m=e._state;t.pause===!m.paused?(m.paused=t.pause,rn(t.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(t.pause=!0);const g=(o||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),v=t.cancel===!0||di(t,"cancel")===!0;(d||v&&m.asyncId)&&g.push(pi(++e._lastAsyncId,{props:t,state:m,actions:{pause:Ro,resume:Ro,start(y,b){v?(mn(m,e._lastAsyncId),b(Zt(e))):(y.onRest=l,b(vi(d,y,m,e)))}}})),m.paused&&(yield new Promise(y=>{m.resumeQueue.add(y)}));const p=gr(e,yield Promise.all(g));if(a&&p.finished&&!(n&&p.noop)){const y=wi(t,a,r);if(y)return Fi(e,[y]),Ii(e,y,!0)}return c&&Q.batchedUpdates(()=>c(p,e,e.item)),p})}function $i(e,t){const n=xe({},e.springs);return t&&se(Te(t),o=>{A.und(o.keys)&&(o=gn(o)),A.obj(o.to)||(o=xe({},o,{to:void 0})),Mi(n,o,r=>Pi(r))}),_i(e,n),n}function _i(e,t){Xe(t,(n,o)=>{e.springs[o]||(e.springs[o]=n,Bt(n,e))})}function Pi(e,t){const n=new Fu;return n.key=e,t&&Bt(n,t),n}function Mi(e,t,n){t.keys&&se(t.keys,o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)})}function Fi(e,t){se(t,n=>{Mi(e.springs,n,o=>Pi(o,e))})}function Lu(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}const Bu=["children"],Xn=e=>{let{children:t}=e,n=Lu(e,Bu);const o=i.useContext(Qn),r=n.pause||!!o.pause,s=n.immediate||!!o.immediate;n=du(()=>({pause:r,immediate:s}),[r,s]);const{Provider:a}=Qn;return X.createElement(a,{value:n},t)},Qn=Vu(Xn,{});Xn.Provider=Qn.Provider,Xn.Consumer=Qn.Consumer;function Vu(e,t){return Object.assign(e,X.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}const zu=()=>{const e=[],t=function(r){cu();const s=[];return se(e,(a,l)=>{if(A.und(r))s.push(a.start());else{const c=n(r,a,l);c&&s.push(a.start(c))}}),s};t.current=e,t.add=function(o){e.includes(o)||e.push(o)},t.delete=function(o){const r=e.indexOf(o);~r&&e.splice(r,1)},t.pause=function(){return se(e,o=>o.pause(...arguments)),this},t.resume=function(){return se(e,o=>o.resume(...arguments)),this},t.set=function(o){se(e,r=>r.set(o))},t.start=function(o){const r=[];return se(e,(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},t.stop=function(){return se(e,o=>o.stop(...arguments)),this},t.update=function(o){return se(e,(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 t._getProps=n,t};function Zu(e,t,n){const o=A.fun(t)&&t;o&&!n&&(n=[]);const r=i.useMemo(()=>o||arguments.length==3?zu():void 0,[]),s=i.useRef(0),a=oi(),l=i.useMemo(()=>({ctrls:[],queue:[],flush(C,w){const x=$i(C,w);return s.current>0&&!l.queue.length&&!Object.keys(x).some(k=>!C.springs[k])?Sr(C,w):new Promise(k=>{_i(C,x),l.queue.push(()=>{k(Sr(C,w))}),a()})}}),[]),c=i.useRef([...l.ctrls]),u=[],d=si(e)||0;i.useMemo(()=>{se(c.current.slice(e,d),C=>{Eu(C,r),C.stop(!0)}),c.current.length=e,m(d,e)},[e]),i.useMemo(()=>{m(0,Math.min(d,e))},n);function m(C,w){for(let x=C;x<w;x++){const S=c.current[x]||(c.current[x]=new Au(null,l.flush)),k=o?o(x,S):t[x];k&&(u[x]=Nu(k))}}const g=c.current.map((C,w)=>$i(C,u[w])),v=i.useContext(Xn),p=si(v),y=v!==p&&ku(v);cr(()=>{s.current++,l.ctrls=c.current;const{queue:C}=l;C.length&&(l.queue=[],se(C,w=>w())),se(c.current,(w,x)=>{r==null||r.add(w),y&&w.start({default:v});const S=u[x];S&&(Iu(w,S.ref),w.ref?w.queue.push(S):w.start(S))})}),ri(()=>()=>{se(l.ctrls,C=>C.stop(!0))});const b=g.map(C=>xe({},C));return r?[b,r]:b}function Ve(e,t){const n=A.fun(e),[[o],r]=Zu(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[o,r]:o}let Ni;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(Ni||(Ni={}));class ju extends br{constructor(t,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=an(...n);const o=this._get(),r=fr(o);ur(this,r.create(o))}advance(t){const n=this._get(),o=this.get();rt(n,o)||(Je(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Oi(this._active)&&wr(this)}_get(){const t=A.arr(this.source)?this.source.map(Me):Te(Me(this.source));return this.calc(...t)}_start(){this.idle&&!Oi(this._active)&&(this.idle=!1,se(Un(this),t=>{t.done=!1}),Qe.skipAnimation?(Q.batchedUpdates(()=>this.advance()),wr(this)):An.start(this))}_attach(){let t=1;se(Te(this.source),n=>{Be(n)&&Bt(n,this),vr(n)&&(n.idle||this._active.add(n),t=Math.max(t,n.priority+1))}),this.priority=t,this._start()}_detach(){se(Te(this.source),t=>{Be(t)&&cn(t,this)}),this._active.clear(),wr(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=Te(this.source).reduce((n,o)=>Math.max(n,(vr(o)?o.priority:0)+1),0))}}function Ku(e){return e.idle!==!1}function Oi(e){return!e.size||Array.from(e).every(Ku)}function wr(e){e.idle||(e.idle=!0,se(Un(e),t=>{t.done=!0}),ln(e,{type:"idle",parent:e}))}Qe.assign({createStringInterpolator:ti,to:(e,t)=>new ju(e,t)});function kr(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}const Wu=["style","children","scrollTop","scrollLeft","viewBox"],Ti=/^--/;function Hu(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ti.test(e)&&!(bn.hasOwnProperty(e)&&bn[e])?t+"px":(""+t).trim()}const Di={};function Uu(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",o=t,{style:r,children:s,scrollTop:a,scrollLeft:l,viewBox:c}=o,u=kr(o,Wu),d=Object.values(u),m=Object.keys(u).map(g=>n||e.hasAttribute(g)?g:Di[g]||(Di[g]=g.replace(/([A-Z])/g,v=>"-"+v.toLowerCase())));s!==void 0&&(e.textContent=s);for(let g in r)if(r.hasOwnProperty(g)){const v=Hu(g,r[g]);Ti.test(g)?e.style.setProperty(g,v):e.style[g]=v}m.forEach((g,v)=>{e.setAttribute(g,d[v])}),a!==void 0&&(e.scrollTop=a),l!==void 0&&(e.scrollLeft=l),c!==void 0&&e.setAttribute("viewBox",c)}let bn={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 Yu=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Gu=["Webkit","Ms","Moz","O"];bn=Object.keys(bn).reduce((e,t)=>(Gu.forEach(n=>e[Yu(n,t)]=e[t]),e),bn);const qu=["x","y","z"],Xu=/^(matrix|translate|scale|rotate|skew)/,Qu=/^(translate)/,Ju=/^(rotate|skew)/,Er=(e,t)=>A.num(e)&&e!==0?e+t:e,Jn=(e,t)=>A.arr(e)?e.every(n=>Jn(n,t)):A.num(e)?e===t:parseFloat(e)===t;class Ru extends Gn{constructor(t){let{x:n,y:o,z:r}=t,s=kr(t,qu);const a=[],l=[];(n||o||r)&&(a.push([n||0,o||0,r||0]),l.push(c=>[`translate3d(${c.map(u=>Er(u,"px")).join(",")})`,Jn(c,0)])),Xe(s,(c,u)=>{if(u==="transform")a.push([c||""]),l.push(d=>[d,d===""]);else if(Xu.test(u)){if(delete s[u],A.und(c))return;const d=Qu.test(u)?"px":Ju.test(u)?"deg":"";a.push(Te(c)),l.push(u==="rotate3d"?([m,g,v,p])=>[`rotate3d(${m},${g},${v},${Er(p,d)})`,Jn(p,0)]:m=>[`${u}(${m.map(g=>Er(g,d)).join(",")})`,Jn(m,u.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new ed(a,l)),super(s)}}class ed extends Qs{constructor(t,n){super(),this._value=null,this.inputs=t,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let t="",n=!0;return se(this.inputs,(o,r)=>{const s=Me(o[0]),[a,l]=this.transforms[r](A.arr(s)?s:o.map(Me));t+=" "+a,n=n&&l}),n?"none":t}observerAdded(t){t==1&&se(this.inputs,n=>se(n,o=>Be(o)&&Bt(o,this)))}observerRemoved(t){t==0&&se(this.inputs,n=>se(n,o=>Be(o)&&cn(o,this)))}eventObserved(t){t.type=="change"&&(this._value=null),ln(this,t)}}const td=["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"],nd=["scrollTop","scrollLeft"];Qe.assign({batchedUpdates:Ot.unstable_batchedUpdates,createStringInterpolator:ti,colors:zc});const ke=yu(td,{applyAnimatedValues:Uu,createAnimatedStyle:e=>new Ru(e),getComponentProps:e=>kr(e,nd)}).animated;function od(e){return(typeof e=="function"?e():e)||document.body}function Rn(e,t){if(Tt&&e){const n=od(e);return Ot.createPortal(t,n)}return t}function rd(e){const t=i.useRef(e);return e&&(t.current=!0),!!t.current}const eo=e=>sd(e.active,e.forceRender,e.destroyOnClose)?e.children:null;function sd(e,t,n){const o=rd(e);return t||e?!0:o?!n:!1}const id={click:"onClick",touchstart:"onTouchStart"};function Ai(e,t){const n=Object.assign({},t.props);for(const o of e){const r=id[o];n[r]=function(s){var a,l;s.stopPropagation(),(l=(a=t.props)[r])===null||l===void 0||l.call(a,s)}}return i.cloneElement(t,n)}const Ir="adm-mask",ad={default:.55,thin:.35,thick:.75},ld={black:"0, 0, 0",white:"255, 255, 255"},cd={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},to=e=>{const t=oe(cd,e),{locale:n}=Pe(),o=i.useRef(null);Os(o,t.visible&&t.disableBodyScroll);const r=i.useMemo(()=>{var d;const m=(d=ad[t.opacity])!==null&&d!==void 0?d:t.opacity,g=ld[t.color];return g?`rgba(${g}, ${m})`:t.color},[t.color,t.opacity]),[s,a]=i.useState(t.visible),l=te.useUnmountedRef(),{opacity:c}=Ve({opacity:t.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var d,m;l.current||(a(t.visible),t.visible?(d=t.afterShow)===null||d===void 0||d.call(t):(m=t.afterClose)===null||m===void 0||m.call(t))}}),u=Ai(t.stopPropagation,Y(t,i.createElement(ke.div,{className:Ir,ref:o,"aria-hidden":!0,style:Object.assign(Object.assign({},t.style),{background:r,opacity:c,display:s?void 0:"none"}),onClick:d=>{var m;d.target===d.currentTarget&&((m=t.onMaskClick)===null||m===void 0||m.call(t,d))}},t.onMaskClick&&i.createElement("div",{className:`${Ir}-aria-button`,role:"button","aria-label":n.Mask.name,onClick:t.onMaskClick}),i.createElement("div",{className:`${Ir}-content`},t.children))));return i.createElement(eo,{active:s,forceRender:t.forceRender,destroyOnClose:t.destroyOnClose},Rn(t.getContainer,u))};function ud(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"AddOutline-AddOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"AddOutline-add"},X.createElement("rect",{id:"AddOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 Li(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CheckOutline-CheckOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CheckOutline-编组"},X.createElement("rect",{id:"CheckOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 dd(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CloseCircleFill-CloseCircleFill",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CloseCircleFill-编组"},X.createElement("rect",{id:"CloseCircleFill-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 no(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CloseOutline-编组"},X.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 fd(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"DownOutline-DownOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",null,X.createElement("rect",{id:"DownOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 md(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"LeftOutline-编组"},X.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 hd(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"RightOutline-RightOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"RightOutline-RightOutlined"},X.createElement("rect",{id:"RightOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 pd(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"SearchOutline-编组"},X.createElement("rect",{id:"SearchOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 gd={closeOnMaskClick:!1,closeIcon:i.createElement(no,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function vd(e){const[t,n]=i.useState(e);return te.useIsomorphicLayoutEffect(()=>{n(e)},[e]),t}function bd(e,t,n){return Math.max(t,Math.min(e,n))}const ve={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Bi(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Vi(e,t,n,o=.15){return o===0?bd(e,t,n):e<t?-Bi(t-e,n-t,o)+t:e>n?+Bi(e-n,n-t,o)+n:e}function yd(e,[t,n],[o,r]){const[[s,a],[l,c]]=e;return[Vi(t,s,a,o),Vi(n,l,c,r)]}function Cd(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xd(e){var t=Cd(e,"string");return typeof t=="symbol"?t:String(t)}function Ee(e,t,n){return t=xd(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zi(Object(n),!0).forEach(function(o){Ee(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}const Zi={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 ji(e){return e?e[0].toUpperCase()+e.slice(1):""}const Sd=["enter","leave"];function wd(e=!1,t){return e&&!Sd.includes(t)}function kd(e,t="",n=!1){const o=Zi[e],r=o&&o[t]||t;return"on"+ji(e)+ji(r)+(wd(n,r)?"Capture":"")}const Ed=["gotpointercapture","lostpointercapture"];function Id(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const o=Ed.includes(t)?"capturecapture":"capture",r=!!~t.indexOf(o);return r&&(t=t.replace("capture","")),{device:t,capture:r,passive:n}}function $d(e,t=""){const n=Zi[e],o=n&&n[t]||t;return e+o}function oo(e){return"touches"in e}function Ki(e){return oo(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function _d(e){return Array.from(e.touches).filter(t=>{var n,o;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(o=n.contains)===null||o===void 0?void 0:o.call(n,t.target))})}function Pd(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Wi(e){return oo(e)?Pd(e)[0]:e}function $r(e,t){try{const n=t.clientX-e.clientX,o=t.clientY-e.clientY,r=(t.clientX+e.clientX)/2,s=(t.clientY+e.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 Md(e){return _d(e).map(t=>t.identifier)}function Hi(e,t){const[n,o]=Array.from(e.touches).filter(r=>t.includes(r.identifier));return $r(n,o)}function _r(e){const t=Wi(e);return oo(e)?t.identifier:t.pointerId}function Ui(e){const t=Wi(e);return[t.clientX,t.clientY]}const Yi=40,Gi=800;function qi(e){let{deltaX:t,deltaY:n,deltaMode:o}=e;return o===1?(t*=Yi,n*=Yi):o===2&&(t*=Gi,n*=Gi),[t,n]}function Fd(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s}=e;Object.assign(t,{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s})}return t}function ro(e,...t){return typeof e=="function"?e(...t):e}function Nd(){}function Od(...e){return e.length===0?Nd:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Xi(e,t){return Object.assign({},t,e||{})}const Td=32;class Qi{constructor(t,n,o){this.ctrl=t,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(t){this.ctrl.state[this.key]=t}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:t,shared:n,ingKey:o,args:r}=this;n[o]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=r,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,o=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=o.from?ro(o.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:o,shared:r}=this;n.args=this.args;let s=0;if(t&&(n.event=t,o.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,Fd(t)),r.down=r.pressed=r.buttons%2===1||r.touches>0,s=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const I=n._delta.map(Math.abs);ve.addTo(n._distance,I)}this.axisIntent&&this.axisIntent(t);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 g=[0,0];if(o.hasCustomTransform){const[I,M]=m;g[0]=d[0]!==!1?I-d[0]:0,g[1]=d[1]!==!1?M-d[1]:0}else g[0]=d[0]!==!1?a-d[0]:0,g[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(g);const v=n.offset,p=n._active&&!n._blocked||n.active;p&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=r[this.ingKey]=n._active,t&&(n.first&&("bounds"in o&&(n._bounds=ro(o.bounds,n)),this.setup&&this.setup()),n.movement=g,this.computeOffset()));const[y,b]=n.offset,[[C,w],[x,S]]=n._bounds;n.overflow=[y<C?-1:y>w?1:0,b<x?-1:b>S?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=yd(n._bounds,n.offset,k),n.delta=ve.sub(n.offset,v),this.computeMovement(),p&&(!n.last||s>Td)){n.delta=ve.sub(n.offset,v);const I=n.delta.map(Math.abs);ve.addTo(n.distance,I),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[I[0]/s,I[1]/s],n.timeDelta=s)}}emit(){const t=this.state,n=this.shared,o=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!o.triggerAllEvents)return;const r=this.handler(pe(pe(pe({},n),t),{},{[this.aliasKey]:t.values}));r!==void 0&&(t.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Dd([e,t],n){const o=Math.abs(e),r=Math.abs(t);if(o>r&&o>n)return"x";if(r>o&&r>n)return"y"}class Ji extends Qi{constructor(...t){super(...t),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(t){const n=this.state,o=this.config;if(!n.axis&&t){const r=typeof o.axisThreshold=="object"?o.axisThreshold[Ki(t)]:o.axisThreshold;n.axis=Dd(n._movement,r)}n._blocked=(o.lockDirection||!!o.axis)&&!n.axis||!!o.axis&&o.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const Ad=e=>e,Ri=.15,ea={enabled(e=!0){return e},eventOptions(e,t,n){return pe(pe({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Ri,Ri];case!1:return[0,0];default:return ve.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return ve.toVector(e)},transform(e,t,n){const o=e||n.shared.transform;return this.hasCustomTransform=!!o,o||Ad},threshold(e){return ve.toVector(e,0)}},Ld=0,jt=pe(pe({},ea),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=Ld){return e},bounds(e={}){if(typeof e=="function")return s=>jt.bounds(e(s));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:o=-1/0,bottom:r=1/0}=e;return[[t,n],[o,r]]}}),ta={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class Bd extends Ji{constructor(...t){super(...t),Ee(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),o=t.currentTarget.getBoundingClientRect(),r={left:n.left-o.left+t.offset[0],right:n.right-o.right+t.offset[0],top:n.top-o.top+t.offset[1],bottom:n.bottom-o.bottom+t.offset[1]};t._bounds=jt.bounds(r)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._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(t){const n=this.config,o=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const r=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(r&&r.size>1&&o._pointerActive)&&(this.start(t),this.setupPointer(t),o._pointerId=_r(t),o._pointerActive=!0,this.computeValues(Ui(t)),this.computeInitial(),n.preventScrollAxis&&Ki(t)!=="mouse"?(o._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,o=this.config;if(!n._pointerActive)return;const r=_r(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;const s=Ui(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=ve.sub(s,n._values),this.computeValues(s)),ve.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);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(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch(l){}const n=this.state,o=this.config;if(!n._active||!n._pointerActive)return;const r=_r(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);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,g]=o.swipe.velocity,[v,p]=o.swipe.distance,y=o.swipe.duration;if(n.elapsedTime<y){const b=Math.abs(l/n.timeDelta),C=Math.abs(c/n.timeDelta);b>m&&Math.abs(u)>v&&(n.swipe[0]=Math.sign(l)),C>g&&Math.abs(d)>p&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,o=n.device;n.pointerLock&&t.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(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,Vd(t);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,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=ta[t.key];if(n){const o=this.state,r=t.shiftKey?10:t.altKey?.1:1;this.start(t),o._delta=n(this.config.keyboardDisplacement,r),o._keyboardActive=!0,ve.addTo(o._movement,o._delta),this.compute(t),this.emit()}}keyUp(t){t.key in ta&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Vd(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const yn=typeof window!="undefined"&&window.document&&window.document.createElement;function na(){return yn&&"ontouchstart"in window}function zd(){return na()||yn&&window.navigator.maxTouchPoints>1}function Zd(){return yn&&"onpointerdown"in window}function jd(){return yn&&"exitPointerLock"in window.document}function Kd(){try{return"constructor"in GestureEvent}catch(e){return!1}}const ze={isBrowser:yn,gesture:Kd(),touch:na(),touchscreen:zd(),pointer:Zd(),pointerLock:jd()},Wd=250,Hd=180,Ud=.5,Yd=50,Gd=250,qd=10,oa={mouse:0,touch:0,pen:8},Xd=pe(pe({},jt),{},{device(e,t,{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(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Wd:void 0,!(!ze.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:o=1,keys:r=!0}={}}){return this.pointerButtons=o,this.keys=r,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:o=3,axis:r=void 0}){const s=ve.toVector(e,n?o:r?1:0);return this.filterTaps=n,this.tapsThreshold=o,s},swipe({velocity:e=Ud,distance:t=Yd,duration:n=Gd}={}){return{velocity:this.transform(ve.toVector(e)),distance:this.transform(ve.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return Hd;case!1:return 0;default:return e}},axisThreshold(e){return e?pe(pe({},oa),e):oa},keyboardDisplacement(e=qd){return e}});function ra(e){const[t,n]=e.overflow,[o,r]=e._delta,[s,a]=e._direction;(t<0&&o>0&&s<0||t>0&&o<0&&s>0)&&(e._movement[0]=e._movementBound[0]),(n<0&&r>0&&a<0||n>0&&r<0&&a>0)&&(e._movement[1]=e._movementBound[1])}const Qd=30,Jd=100;class Rd extends Qi{constructor(...t){super(...t),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 t=this.state;t._touchIds=[],t.canceled=!1,t.cancel=this.cancel.bind(this),t.turns=0}computeOffset(){const{type:t,movement:n,lastOffset:o}=this.state;t==="wheel"?this.state.offset=ve.add(n,o):this.state.offset=[(1+n[0])*o[0],n[1]+o[1]]}computeMovement(){const{offset:t,lastOffset:n}=this.state;this.state.movement=[t[0]/n[0],t[1]-n[1]]}axisIntent(){const t=this.state,[n,o]=t._movement;if(!t.axis){const r=Math.abs(n)*Qd-Math.abs(o);r<0?t.axis="angle":r>0&&(t.axis="scale")}}restrictToAxis(t){this.config.lockDirection&&(this.state.axis==="scale"?t[1]=0:this.state.axis==="angle"&&(t[0]=0))}cancel(){const t=this.state;t.canceled||setTimeout(()=>{t.canceled=!0,t._active=!1,this.compute(),this.emit()},0)}touchStart(t){this.ctrl.setEventIds(t);const n=this.state,o=this.ctrl.touchIds;if(n._active&&n._touchIds.every(s=>o.has(s))||o.size<2)return;this.start(t),n._touchIds=Array.from(o).slice(0,2);const r=Hi(t,n._touchIds);r&&this.pinchStart(t,r)}pointerStart(t){if(t.buttons!=null&&t.buttons%2!==1)return;this.ctrl.setEventIds(t),t.target.setPointerCapture(t.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(t.pointerId,t),n._pointerEvents.size<2))return;this.start(t);const s=$r(...Array.from(o.values()));s&&this.pinchStart(t,s)}pinchStart(t,n){const o=this.state;o.origin=n.origin,this.computeValues([n.distance,n.angle]),this.computeInitial(),this.compute(t),this.emit()}touchMove(t){if(!this.state._active)return;const n=Hi(t,this.state._touchIds);n&&this.pinchMove(t,n)}pointerMove(t){const n=this.state._pointerEvents;if(n.has(t.pointerId)&&n.set(t.pointerId,t),!this.state._active)return;const o=$r(...Array.from(n.values()));o&&this.pinchMove(t,o)}pinchMove(t,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(t),this.emit()}touchEnd(t){this.ctrl.setEventIds(t),this.state._active&&this.state._touchIds.some(n=>!this.ctrl.touchIds.has(n))&&(this.state._active=!1,this.compute(t),this.emit())}pointerEnd(t){const n=this.state;this.ctrl.setEventIds(t);try{t.target.releasePointerCapture(t.pointerId)}catch(o){}n._pointerEvents.has(t.pointerId)&&n._pointerEvents.delete(t.pointerId),n._active&&n._pointerEvents.size<2&&(n._active=!1,this.compute(t),this.emit())}gestureStart(t){t.cancelable&&t.preventDefault();const n=this.state;n._active||(this.start(t),this.computeValues([t.scale,t.rotation]),n.origin=[t.clientX,t.clientY],this.compute(t),this.emit())}gestureMove(t){if(t.cancelable&&t.preventDefault(),!this.state._active)return;const n=this.state;this.computeValues([t.scale,t.rotation]),n.origin=[t.clientX,t.clientY];const o=n._movement;n._movement=[t.scale-1,t.rotation],n._delta=ve.sub(n._movement,o),this.compute(t),this.emit()}gestureEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}wheel(t){const n=this.config.modifierKey;n&&(Array.isArray(n)?!n.find(o=>t[o]):!t[n])||(this.state._active?this.wheelChange(t):this.wheelStart(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(t){this.start(t),this.wheelChange(t)}wheelChange(t){"uv"in t||t.cancelable&&t.preventDefault();const o=this.state;o._delta=[-qi(t)[1]/Jd*o.offset[0],0],ve.addTo(o._movement,o._delta),ra(o),this.state.origin=[t.clientX,t.clientY],this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){const n=this.config.device;n&&(t(n,"start",this[n+"Start"].bind(this)),t(n,"change",this[n+"Move"].bind(this)),t(n,"end",this[n+"End"].bind(this)),t(n,"cancel",this[n+"End"].bind(this)),t("lostPointerCapture","",this[n+"End"].bind(this))),this.config.pinchOnWheel&&t("wheel","",this.wheel.bind(this),{passive:!1})}}const e1=pe(pe({},ea),{},{device(e,t,{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(e,t,{scaleBounds:n={},angleBounds:o={}}){const r=a=>{const l=Xi(ro(n,a),{min:-1/0,max:1/0});return[l.min,l.max]},s=a=>{const l=Xi(ro(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(e,t,n){return this.lockDirection=n.axis==="lock",ve.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});pe(pe({},jt),{},{mouseOnly:(e=!0)=>e});class t1 extends Ji{constructor(...t){super(...t),Ee(this,"ingKey","wheeling")}wheel(t){this.state._active||this.start(t),this.wheelChange(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(t){const n=this.state;n._delta=qi(t),ve.addTo(n._movement,n._delta),ra(n),this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("wheel","",this.wheel.bind(this))}}const n1=jt;pe(pe({},jt),{},{mouseOnly:(e=!0)=>e});const Pr=new Map,Mr=new Map;function Fr(e){Pr.set(e.key,e.engine),Mr.set(e.key,e.resolver)}const sa={key:"drag",engine:Bd,resolver:Xd},o1={key:"pinch",engine:Rd,resolver:e1},r1={key:"wheel",engine:t1,resolver:n1};function s1(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function i1(e,t){if(e==null)return{};var n=s1(e,t),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}const a1={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=ze.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},l1=["target","eventOptions","window","enabled","transform"];function so(e={},t){const n={};for(const[o,r]of Object.entries(t))switch(typeof r){case"function":n[o]=r.call(n,e[o],o,e);break;case"object":n[o]=so(e[o],r);break;case"boolean":r&&(n[o]=e[o]);break}return n}function c1(e,t,n={}){const o=e,{target:r,eventOptions:s,window:a,enabled:l,transform:c}=o,u=i1(o,l1);if(n.shared=so({target:r,eventOptions:s,window:a,enabled:l,transform:c},a1),t){const d=Mr.get(t);n[t]=so(pe({shared:n.shared},u),d)}else for(const d in u){const m=Mr.get(d);m&&(n[d]=so(pe({shared:n.shared},u[d]),m))}return n}class ia{constructor(t,n){Ee(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,o,r,s){const a=this._listeners,l=$d(n,o),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=pe(pe({},c),s);t.addEventListener(l,r,u);const d=()=>{t.removeEventListener(l,r,u),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class u1{constructor(){Ee(this,"_timeouts",new Map)}add(t,n,o=140,...r){this.remove(t),this._timeouts.set(t,window.setTimeout(n,o,...r))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class d1{constructor(t){Ee(this,"gestures",new Set),Ee(this,"_targetEventStore",new ia(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}}),f1(this,t)}setEventIds(t){if(oo(t))return this.touchIds=new Set(Md(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=c1(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){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=aa(o,l.eventOptions,!!r);if(l.enabled){const u=Pr.get(a);new u(this,t,a).bind(c)}}const s=aa(o,n.eventOptions,!!r);for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](pe(pe({},this.state.shared),{},{event:l,args:t})),void 0,!0)}for(const s in o)o[s]=Od(...o[s]);if(!r)return o;for(const s in o){const{device:a,capture:l,passive:c}=Id(s);this._targetEventStore.add(r,a,"",o[s],{capture:l,passive:c})}}}}function Kt(e,t){e.gestures.add(t),e.gestureEventStores[t]=new ia(e,t),e.gestureTimeoutStores[t]=new u1}function f1(e,t){t.drag&&Kt(e,"drag"),t.wheel&&Kt(e,"wheel"),t.scroll&&Kt(e,"scroll"),t.move&&Kt(e,"move"),t.pinch&&Kt(e,"pinch"),t.hover&&Kt(e,"hover")}const aa=(e,t,n)=>(o,r,s,a={},l=!1)=>{var c,u;const d=(c=a.capture)!==null&&c!==void 0?c:t.capture,m=(u=a.passive)!==null&&u!==void 0?u:t.passive;let g=l?o:kd(o,r,d);n&&m&&(g+="Passive"),e[g]=e[g]||[],e[g].push(s)},m1=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function h1(e){const t={},n={},o=new Set;for(let r in e)m1.test(r)?(o.add(RegExp.lastMatch),n[r]=e[r]):t[r]=e[r];return[n,t,o]}function Wt(e,t,n,o,r,s){if(!e.has(n)||!Pr.has(o))return;const a=n+"Start",l=n+"End",c=u=>{let d;return u.first&&a in t&&t[a](u),n in t&&(d=t[n](u)),u.last&&l in t&&t[l](u),d};r[o]=c,s[o]=s[o]||{}}function p1(e,t){const[n,o,r]=h1(e),s={};return Wt(r,n,"onDrag","drag",s,t),Wt(r,n,"onWheel","wheel",s,t),Wt(r,n,"onScroll","scroll",s,t),Wt(r,n,"onPinch","pinch",s,t),Wt(r,n,"onMove","move",s,t),Wt(r,n,"onHover","hover",s,t),{handlers:s,config:t,nativeHandlers:o}}function Nr(e,t={},n,o){const r=i.useMemo(()=>new d1(e),[]);if(r.applyHandlers(e,o),r.applyConfig(t,n),i.useEffect(r.effect.bind(r)),i.useEffect(()=>r.clean.bind(r),[]),t.target===void 0)return r.bind.bind(r)}function io(e,t){return Fr(sa),Nr({drag:e},t||{},"drag")}function g1(e,t){return Fr(r1),Nr({wheel:e},t||{},"wheel")}function v1(e){return e.forEach(Fr),function(n,o){const{handlers:r,nativeHandlers:s,config:a}=p1(n,o||{});return Nr(r,a,void 0,s)}}const ao="adm-popup",b1=Object.assign(Object.assign({},gd),{closeOnSwipe:!1,position:"bottom"}),Ht=e=>{const{locale:t,popup:n={}}=Pe(),o=oe(b1,n,e),r=K(`${ao}-body`,o.bodyClassName,`${ao}-body-position-${o.position}`),[s,a]=i.useState(o.visible),l=i.useRef(null);Os(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 v,p;c.current||(a(o.visible),o.visible?(v=o.afterShow)===null||v===void 0||v.call(o):(p=o.afterClose)===null||p===void 0||p.call(o))}}),d=io(({swipe:[,v]})=>{var p;o.closeOnSwipe&&(v===1&&o.position==="bottom"||v===-1&&o.position==="top")&&((p=o.onClose)===null||p===void 0||p.call(o))},{axis:"y",enabled:["top","bottom"].includes(o.position)}),m=vd(s&&o.visible),g=Ai(o.stopPropagation,Y(o,i.createElement("div",Object.assign({className:ao,onClick:o.onClick,style:{display:s?void 0:"none",touchAction:["top","bottom"].includes(o.position)?"none":"auto"}},d()),o.mask&&i.createElement(to,{visible:m,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose,onMaskClick:v=>{var p,y;(p=o.onMaskClick)===null||p===void 0||p.call(o,v),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(v=>v===0?"unset":"none"),transform:u.to(v=>o.position==="bottom"?`translate(0, ${v}%)`:o.position==="top"?`translate(0, -${v}%)`:o.position==="left"?`translate(-${v}%, 0)`:o.position==="right"?`translate(${v}%, 0)`:"none")}),ref:l},o.showCloseButton&&i.createElement("a",{className:K(`${ao}-close-icon`,"adm-plain-anchor"),onClick:()=>{var v;(v=o.onClose)===null||v===void 0||v.call(o)},role:"button","aria-label":t.common.close},o.closeIcon),o.children))));return i.createElement(eo,{active:s,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose},Rn(o.getContainer,g))},la="adm-safe-area",Cn=e=>Y(e,i.createElement("div",{className:K(la,`${la}-position-${e.position}`)})),lo=Object.assign({},nc),{version:y1,render:C1,unmountComponentAtNode:x1}=lo;let co;try{Number((y1||"").split(".")[0])>=18&&lo.createRoot&&(co=lo.createRoot)}catch(e){}function ca(e){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:t}=lo;t&&typeof t=="object"&&(t.usingClientEntryPoint=e)}const uo="__antd_mobile_root__";function S1(e,t){C1(e,t)}function w1(e,t){ca(!0);const n=t[uo]||co(t);ca(!1),n.render(e),t[uo]=n}function k1(e,t){if(co){w1(e,t);return}S1(e,t)}function E1(e){return x1(e)}function I1(e){return yt(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var t;(t=e[uo])===null||t===void 0||t.unmount(),delete e[uo]})})}function $1(e){return co?I1(e):E1(e)}function Or(e){const t=document.createElement("div");document.body.appendChild(t);function n(){$1(t)&&t.parentNode&&t.parentNode.removeChild(t)}return k1(e,t),n}function xn(e){const t=i.forwardRef((r,s)=>{const[a,l]=i.useState(!1),c=i.useRef(!1),[u,d]=i.useState(e),m=i.useRef(0);i.useEffect(()=>{c.current?v():l(!0)},[]);function g(){var p,y;c.current=!0,l(!1),(y=(p=u.props).onClose)===null||y===void 0||y.call(p)}function v(){var p,y;o(),(y=(p=u.props).afterClose)===null||y===void 0||y.call(p)}return i.useImperativeHandle(s,()=>({close:g,replace:p=>{var y,b;m.current++,(b=(y=u.props).afterClose)===null||b===void 0||b.call(y),d(p)}})),i.cloneElement(u,Object.assign(Object.assign({},u.props),{key:m.current,visible:a,onClose:g,afterClose:v}))}),n=i.createRef(),o=Or(i.createElement(t,{ref:n}));return{close:()=>yt(this,void 0,void 0,function*(){var r,s,a;n.current?(a=n.current)===null||a===void 0||a.close():(o(),(s=(r=e.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",_1={visible:!1,actions:[],cancelText:"",closeOnAction:!1,closeOnMaskClick:!0,safeArea:!0,destroyOnClose:!1,forceRender:!1},ua=e=>{const t=oe(_1,e),{styles:n}=t;return i.createElement(Ht,{visible:t.visible,onMaskClick:()=>{var o,r;(o=t.onMaskClick)===null||o===void 0||o.call(t),t.closeOnMaskClick&&((r=t.onClose)===null||r===void 0||r.call(t))},afterClose:t.afterClose,className:K(`${_e}-popup`,t.popupClassName),style:t.popupStyle,getContainer:t.getContainer,destroyOnClose:t.destroyOnClose,forceRender:t.forceRender,bodyStyle:n==null?void 0:n.body,maskStyle:n==null?void 0:n.mask},Y(t,i.createElement("div",{className:_e},t.extra&&i.createElement("div",{className:`${_e}-extra`},t.extra),i.createElement("div",{className:`${_e}-button-list`},t.actions.map((o,r)=>i.createElement("div",{key:o.key,className:`${_e}-button-item-wrapper`},i.createElement("a",{className:K("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=t.onAction)===null||a===void 0||a.call(t,o,r),t.closeOnAction&&((l=t.onClose)===null||l===void 0||l.call(t))},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))))),t.cancelText&&i.createElement("div",{className:`${_e}-cancel`,role:"option","aria-label":t.cancelText},i.createElement("div",{className:`${_e}-button-item-wrapper`},i.createElement("a",{className:K("adm-plain-anchor",`${_e}-button-item`),onClick:t.onClose},i.createElement("div",{className:`${_e}-button-item-name`},t.cancelText)))),t.safeArea&&i.createElement(Cn,{position:"bottom"}))))};function P1(e){return xn(i.createElement(ua,Object.assign({},e)))}const M1=we(ua,{show:P1}),da="adm-auto-center",F1=e=>Y(e,i.createElement("div",{className:da},i.createElement("div",{className:`${da}-content`},e.children)));var Tr={},N1=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tr,"__esModule",{value:!0});var Dr=Tr.staged=void 0;const O1=N1(i);function fa(e){return typeof e=="function"?O1.default.createElement(T1,{stage:e}):e}function T1(e){const t=e.stage();return fa(t)}function D1(e){return function(n,o){const r=e(n,o);return fa(r)}}Dr=Tr.staged=D1;function Et(e){return typeof e=="number"?`${e}px`:e}const A1=e=>{const t=i.useRef(null),[n]=te.useInViewport(t);return i.useEffect(()=>{n&&e.onActive()},[n]),i.createElement("div",{ref:t})},Ar=te.createUpdateEffect(te.useIsomorphicLayoutEffect),L1=()=>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"})),B1=()=>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"})),fo="adm-image",V1={fit:"fill",placeholder:i.createElement("div",{className:`${fo}-tip`},i.createElement(L1,null)),fallback:i.createElement("div",{className:`${fo}-tip`},i.createElement(B1,null)),lazy:!1,draggable:!1},ma=Dr(e=>{const t=oe(V1,e),[n,o]=i.useState(!1),[r,s]=i.useState(!1),a=i.useRef(null),l=i.useRef(null);let c=t.src,u=t.srcSet;const[d,m]=i.useState(!t.lazy);c=d?t.src:void 0,u=d?t.srcSet:void 0,Ar(()=>{o(!1),s(!1)},[c]),i.useEffect(()=>{var p;!((p=l.current)===null||p===void 0)&&p.complete&&o(!0)},[]);function g(){if(r)return i.createElement(i.Fragment,null,t.fallback);const p=i.createElement("img",{ref:l,id:t.id,className:`${fo}-img`,src:c,alt:t.alt,onClick:t.onClick,onLoad:y=>{var b;o(!0),(b=t.onLoad)===null||b===void 0||b.call(t,y)},onError:y=>{var b;s(!0),(b=t.onError)===null||b===void 0||b.call(t,y)},style:{objectFit:t.fit,display:n?"block":"none"},crossOrigin:t.crossOrigin,decoding:t.decoding,loading:t.loading,referrerPolicy:t.referrerPolicy,sizes:t.sizes,srcSet:u,useMap:t.useMap,draggable:t.draggable});return i.createElement(i.Fragment,null,!n&&t.placeholder,p)}const v={};return t.width&&(v["--width"]=Et(t.width),v.width=Et(t.width)),t.height&&(v["--height"]=Et(t.height),v.height=Et(t.height)),Y(t,i.createElement("div",{ref:a,className:fo,style:v,onClick:t.onContainerClick},t.lazy&&!d&&i.createElement(A1,{onActive:()=>{m(!0)}}),g()))}),Ut="adm-badge",ha=i.createElement(i.Fragment,null),pa=we(e=>{const{content:t,color:n,children:o}=e,r=t===ha,s=K(Ut,{[`${Ut}-fixed`]:!!o,[`${Ut}-dot`]:r,[`${Ut}-bordered`]:e.bordered}),a=t||t===0?Y(e,i.createElement("div",{className:s,style:{"--color":n}},!r&&i.createElement("div",{className:`${Ut}-content`},t))):null;return o?i.createElement("div",{className:K(`${Ut}-wrapper`,e.wrapperClassName),style:e.wrapperStyle},o,a):a},{dot:ha}),z1="adm-dot-loading",Z1={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},j1={color:"default"},K1=i.memo(e=>{var t;const n=oe(j1,e);return Y(n,i.createElement("div",{style:{color:(t=Z1[n.color])!==null&&t!==void 0?t:n.color},className:K("adm-loading",z1)},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 W1(e){return!!e&&typeof e=="object"&&typeof e.then=="function"}function H1(){return Tt?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const Ze="adm-button",U1={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:i.createElement(K1,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},st=i.forwardRef((e,t)=>{const n=oe(U1,e),[o,r]=i.useState(!1),s=i.useRef(null),a=n.loading==="auto"?o:n.loading,l=n.disabled||a;i.useImperativeHandle(t,()=>({get nativeElement(){return s.current}}));const c=u=>yt(void 0,void 0,void 0,function*(){if(!n.onClick)return;const d=n.onClick(u);if(W1(d))try{r(!0),yield d,r(!1)}catch(m){throw r(!1),m}});return Y(n,i.createElement("button",{ref:s,type:n.type,onClick:c,className:K(Ze,{[`${Ze}-${n.color}`]:n.color,[`${Ze}-block`]:n.block,[`${Ze}-disabled`]:l,[`${Ze}-fill-outline`]:n.fill==="outline",[`${Ze}-fill-none`]:n.fill==="none",[`${Ze}-mini`]:n.size==="mini",[`${Ze}-small`]:n.size==="small",[`${Ze}-large`]:n.size==="large",[`${Ze}-loading`]:a},`${Ze}-shape-${n.shape}`),disabled:l,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onTouchStart:n.onTouchStart,onTouchEnd:n.onTouchEnd},a?i.createElement("div",{className:`${Ze}-loading-wrapper`},n.loadingIcon,n.loadingText):i.createElement("span",null,n.children)))});var ga={exports:{}};(function(e,t){(function(n,o){e.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",g="quarter",v="year",p="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,w={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(_){var P=["th","st","nd","rd"],E=_%100;return"["+_+(P[(E-20)%10]||P[E]||P[0])+"]"}},x=function(_,P,E){var D=String(_);return!D||D.length>=P?_:""+Array(P+1-D.length).join(E)+_},S={s:x,z:function(_){var P=-_.utcOffset(),E=Math.abs(P),D=Math.floor(E/60),T=E%60;return(P<=0?"+":"-")+x(D,2,"0")+":"+x(T,2,"0")},m:function _(P,E){if(P.date()<E.date())return-_(E,P);var D=12*(E.year()-P.year())+(E.month()-P.month()),T=P.clone().add(D,m),z=E-T<0,j=P.clone().add(D+(z?-1:1),m);return+(-(D+(E-T)/(z?T-j:j-T))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:m,y:v,w:d,d:u,D:p,h:c,m:l,s:a,ms:s,Q:g}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},k="en",I={};I[k]=w;var M="$isDayjsObject",O=function(_){return _ instanceof W||!(!_||!_[M])},L=function _(P,E,D){var T;if(!P)return k;if(typeof P=="string"){var z=P.toLowerCase();I[z]&&(T=z),E&&(I[z]=E,T=z);var j=P.split("-");if(!T&&j.length>1)return _(j[0])}else{var H=P.name;I[H]=P,T=H}return!D&&T&&(k=T),T||!D&&k},F=function(_,P){if(O(_))return _.clone();var E=typeof P=="object"?P:{};return E.date=_,E.args=arguments,new W(E)},N=S;N.l=L,N.i=O,N.w=function(_,P){return F(_,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var W=function(){function _(E){this.$L=L(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[M]=!0}var P=_.prototype;return P.parse=function(E){this.$d=function(D){var T=D.date,z=D.utc;if(T===null)return new Date(NaN);if(N.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var j=T.match(b);if(j){var H=j[2]-1||0,U=(j[7]||"0").substring(0,3);return z?new Date(Date.UTC(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)):new Date(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)}}return new Date(T)}(E),this.init()},P.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},P.$utils=function(){return N},P.isValid=function(){return this.$d.toString()!==y},P.isSame=function(E,D){var T=F(E);return this.startOf(D)<=T&&T<=this.endOf(D)},P.isAfter=function(E,D){return F(E)<this.startOf(D)},P.isBefore=function(E,D){return this.endOf(D)<F(E)},P.$g=function(E,D,T){return N.u(E)?this[D]:this.set(T,E)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(E,D){var T=this,z=!!N.u(D)||D,j=N.p(E),H=function(Z,G){var re=N.w(T.$u?Date.UTC(T.$y,G,Z):new Date(T.$y,G,Z),T);return z?re:re.endOf(u)},U=function(Z,G){return N.w(T.toDate()[Z].apply(T.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(G)),T)},J=this.$W,ne=this.$M,ee=this.$D,Ne="set"+(this.$u?"UTC":"");switch(j){case v:return z?H(1,0):H(31,11);case m:return z?H(1,ne):H(0,ne+1);case d:var q=this.$locale().weekStart||0,ue=(J<q?J+7:J)-q;return H(z?ee-ue:ee+(6-ue),ne);case u:case p:return U(Ne+"Hours",0);case c:return U(Ne+"Minutes",1);case l:return U(Ne+"Seconds",2);case a:return U(Ne+"Milliseconds",3);default:return this.clone()}},P.endOf=function(E){return this.startOf(E,!1)},P.$set=function(E,D){var T,z=N.p(E),j="set"+(this.$u?"UTC":""),H=(T={},T[u]=j+"Date",T[p]=j+"Date",T[m]=j+"Month",T[v]=j+"FullYear",T[c]=j+"Hours",T[l]=j+"Minutes",T[a]=j+"Seconds",T[s]=j+"Milliseconds",T)[z],U=z===u?this.$D+(D-this.$W):D;if(z===m||z===v){var J=this.clone().set(p,1);J.$d[H](U),J.init(),this.$d=J.set(p,Math.min(this.$D,J.daysInMonth())).$d}else H&&this.$d[H](U);return this.init(),this},P.set=function(E,D){return this.clone().$set(E,D)},P.get=function(E){return this[N.p(E)]()},P.add=function(E,D){var T,z=this;E=Number(E);var j=N.p(D),H=function(ne){var ee=F(z);return N.w(ee.date(ee.date()+Math.round(ne*E)),z)};if(j===m)return this.set(m,this.$M+E);if(j===v)return this.set(v,this.$y+E);if(j===u)return H(1);if(j===d)return H(7);var U=(T={},T[l]=o,T[c]=r,T[a]=n,T)[j]||1,J=this.$d.getTime()+E*U;return N.w(J,this)},P.subtract=function(E,D){return this.add(-1*E,D)},P.format=function(E){var D=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var z=E||"YYYY-MM-DDTHH:mm:ssZ",j=N.z(this),H=this.$H,U=this.$m,J=this.$M,ne=T.weekdays,ee=T.months,Ne=T.meridiem,q=function(G,re,ge,Ce){return G&&(G[re]||G(D,z))||ge[re].slice(0,Ce)},ue=function(G){return N.s(H%12||12,G,"0")},Z=Ne||function(G,re,ge){var Ce=G<12?"AM":"PM";return ge?Ce.toLowerCase():Ce};return z.replace(C,function(G,re){return re||function(ge){switch(ge){case"YY":return String(D.$y).slice(-2);case"YYYY":return N.s(D.$y,4,"0");case"M":return J+1;case"MM":return N.s(J+1,2,"0");case"MMM":return q(T.monthsShort,J,ee,3);case"MMMM":return q(ee,J);case"D":return D.$D;case"DD":return N.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return q(T.weekdaysMin,D.$W,ne,2);case"ddd":return q(T.weekdaysShort,D.$W,ne,3);case"dddd":return ne[D.$W];case"H":return String(H);case"HH":return N.s(H,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return Z(H,U,!0);case"A":return Z(H,U,!1);case"m":return String(U);case"mm":return N.s(U,2,"0");case"s":return String(D.$s);case"ss":return N.s(D.$s,2,"0");case"SSS":return N.s(D.$ms,3,"0");case"Z":return j}return null}(G)||j.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(E,D,T){var z,j=this,H=N.p(D),U=F(E),J=(U.utcOffset()-this.utcOffset())*o,ne=this-U,ee=function(){return N.m(j,U)};switch(H){case v:z=ee()/12;break;case m:z=ee();break;case g:z=ee()/3;break;case d:z=(ne-J)/6048e5;break;case u:z=(ne-J)/864e5;break;case c:z=ne/r;break;case l:z=ne/o;break;case a:z=ne/n;break;default:z=ne}return T?z:N.a(z)},P.daysInMonth=function(){return this.endOf(m).$D},P.$locale=function(){return I[this.$L]},P.locale=function(E,D){if(!E)return this.$L;var T=this.clone(),z=L(E,D,!0);return z&&(T.$L=z),T},P.clone=function(){return N.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},_}(),V=W.prototype;return F.prototype=V,[["$ms",s],["$s",a],["$m",l],["$H",c],["$W",u],["$M",m],["$y",v],["$D",p]].forEach(function(_){V[_[1]]=function(P){return this.$g(P,_[0],_[1])}}),F.extend=function(_,P){return _.$i||(_(P,W,F),_.$i=!0),F},F.locale=L,F.isDayjs=O,F.unix=function(_){return F(1e3*_)},F.en=I[k],F.Ls=I,F.p={},F})})(ga);var Y1=ga.exports;const he=xt(Y1),va=()=>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"})))))),ba=()=>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 ya={exports:{}};(function(e,t){(function(n,o){e.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,g,v,p=a(this),y=(d=this.isoWeekYear(),m=this.$u,g=(m?s.utc:s)().year(d).startOf("year"),v=4-g.isoWeekday(),g.isoWeekday()>4&&(v+=7),g.add(v,n));return p.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(),g=!!m.u(d)||d;return m.p(u)==="isoweek"?g?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)}}})})(ya);var G1=ya.exports;const Lr=xt(G1);function Ie(e){const{value:t,defaultValue:n,onChange:o}=e,r=te.useUpdate(),s=i.useRef(t!==void 0?t:n);t!==void 0&&(s.current=t);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 q1(e,t){return e.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return t[o]})}function Ca(e,t){return e===void 0||t===null?null:Array.isArray(t)?t:[t,t]}function Br(e){return he().year(e.year).month(e.month-1).date(1)}he.extend(Lr);const fe="adm-calendar",X1={weekStartsOn:"Sunday",defaultValue:null,allowClear:!0,prevMonthButton:i.createElement(va,null),prevYearButton:i.createElement(ba,null),nextMonthButton:i.createElement(va,null),nextYearButton:i.createElement(ba,null)},Q1=i.forwardRef((e,t)=>{const n=he(),o=oe(X1,e),{locale:r}=Pe(),s=[...r.Calendar.markItems];if(o.weekStartsOn==="Sunday"){const x=s.pop();x&&s.unshift(x)}const[a,l]=Ie({value:o.value===void 0?void 0:Ca(o.selectionMode,o.value),defaultValue:Ca(o.selectionMode,o.defaultValue),onChange:x=>{var S,k;o.selectionMode==="single"?(S=o.onChange)===null||S===void 0||S.call(o,x?x[0]:null):o.selectionMode==="range"&&((k=o.onChange)===null||k===void 0||k.call(o,x))}}),[c,u]=i.useState(!1),[d,m]=i.useState(()=>he(a?a[0]:n).date(1));te.useUpdateEffect(()=>{var x;(x=o.onPageChange)===null||x===void 0||x.call(o,d.year(),d.month()+1)},[d]),i.useImperativeHandle(t,()=>({jumpTo:x=>{let S;typeof x=="function"?S=x({year:d.year(),month:d.month()+1}):S=x,m(Br(S))},jumpToToday:()=>{m(he().date(1))}}));const g=(x,S,k)=>{const I=d[x](S,k);if(x==="subtract"&&o.minPage){const M=Br(o.minPage);if(I.isBefore(M,k))return}if(x==="add"&&o.maxPage){const M=Br(o.maxPage);if(I.isAfter(M,k))return}m(I)},v=i.createElement("div",{className:`${fe}-header`},i.createElement("a",{className:`${fe}-arrow-button ${fe}-arrow-button-year`,onClick:()=>{g("subtract",1,"year")}},o.prevYearButton),i.createElement("a",{className:`${fe}-arrow-button ${fe}-arrow-button-month`,onClick:()=>{g("subtract",1,"month")}},o.prevMonthButton),i.createElement("div",{className:`${fe}-title`},q1(r.Calendar.yearAndMonth,{year:d.year().toString(),month:(d.month()+1).toString()})),i.createElement("a",{className:K(`${fe}-arrow-button`,`${fe}-arrow-button-right`,`${fe}-arrow-button-right-month`),onClick:()=>{g("add",1,"month")}},o.nextMonthButton),i.createElement("a",{className:K(`${fe}-arrow-button`,`${fe}-arrow-button-right`,`${fe}-arrow-button-right-year`),onClick:()=>{g("add",1,"year")}},o.nextYearButton)),p=i.useMemo(()=>o.max&&he(o.max),[o.max]),y=i.useMemo(()=>o.min&&he(o.min),[o.min]);function b(){var x;const S=[];let k=d.subtract(d.isoWeekday(),"day");for(o.weekStartsOn==="Monday"&&(k=k.add(1,"day"));S.length<6*7;){const I=k;let M=!1,O=!1,L=!1,F=!1,N=!1;if(a){const[_,P]=a;O=I.isSame(_,"day"),L=I.isSame(P,"day"),M=O||L||I.isAfter(_,"day")&&I.isBefore(P,"day"),M&&(F=(S.length%7===0||I.isSame(I.startOf("month"),"day"))&&!O,N=(S.length%7===6||I.isSame(I.endOf("month"),"day"))&&!L)}const W=I.month()===d.month(),V=o.shouldDisableDate?o.shouldDisableDate(I.toDate()):p&&I.isAfter(p,"day")||y&&I.isBefore(y,"day");S.push(i.createElement("div",{key:I.valueOf(),className:K(`${fe}-cell`,(V||!W)&&`${fe}-cell-disabled`,W&&{[`${fe}-cell-today`]:I.isSame(n,"day"),[`${fe}-cell-selected`]:M,[`${fe}-cell-selected-begin`]:O,[`${fe}-cell-selected-end`]:L,[`${fe}-cell-selected-row-begin`]:F,[`${fe}-cell-selected-row-end`]:N}),onClick:()=>{if(!o.selectionMode||V)return;const _=I.toDate();W||m(I.clone().date(1));function P(){if(!o.allowClear||!a)return!1;const[E,D]=a;return I.isSame(E,"date")&&I.isSame(D,"day")}if(o.selectionMode==="single"){if(o.allowClear&&P()){l(null);return}l([_,_])}else if(o.selectionMode==="range"){if(!a){l([_,_]),u(!0);return}if(P()){l(null),u(!1);return}if(c){const E=a[0];l(E>_?[_,E]:[E,_]),u(!1)}else l([_,_]),u(!0)}}},i.createElement("div",{className:`${fe}-cell-top`},o.renderDate?o.renderDate(I.toDate()):I.date()),i.createElement("div",{className:`${fe}-cell-bottom`},(x=o.renderLabel)===null||x===void 0?void 0:x.call(o,I.toDate())))),k=k.add(1,"day")}return S}const C=i.createElement("div",{className:`${fe}-cells`},b()),w=i.createElement("div",{className:`${fe}-mark`},s.map((x,S)=>i.createElement("div",{key:S,className:`${fe}-mark-cell`},x)));return Y(o,i.createElement("div",{className:fe},v,w,C))});var xa={exports:{}},ce={};/**
|
|
125
|
+
*/(function(e){(function(){var t={}.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)t.call(s,l)&&s[l]&&(a=r(a,l));return a}function r(s,a){return a?s?s+" "+a:s+a:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ps);var Ic=Ps.exports;const K=xt(Ic);function Y(e,t){const n=Object.assign({},t.props);e.className&&(n.className=K(t.props.className,e.className)),e.style&&(n.style=Object.assign(Object.assign({},n.style),e.style)),e.tabIndex!==void 0&&(n.tabIndex=e.tabIndex);for(const o in e)e.hasOwnProperty(o)&&(o.startsWith("data-")||o.startsWith("aria-"))&&(n[o]=e[o]);return i.cloneElement(t,n)}function oe(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(o=>{n[o]!==void 0&&(t[o]=n[o])})}),t}function Uo(e,...t){for(let n=t.length-1;n>=0;n-=1)if(t[n]!==void 0)return t[n];return e}const Ms=10;function $c(e,t){return e>t&&e>Ms?"horizontal":t>e&&t>Ms?"vertical":""}function _c(){const e=i.useRef(0),t=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:g=>{const v=g.touches[0];n.current=v.clientX<0?0:v.clientX-e.current,o.current=v.clientY-t.current,r.current=Math.abs(n.current),s.current=Math.abs(o.current),a.current||(a.current=$c(r.current,s.current))},start:g=>{u(),e.current=g.touches[0].clientX,t.current=g.touches[0].clientY},reset:u,startX:e,startY:t,deltaX:n,deltaY:o,offsetX:r,offsetY:s,direction:a,isVertical:l,isHorizontal:c}}const Pc=Tt?window:void 0,Mc=["scroll","auto","overlay"];function Fc(e){return e.nodeType===1}function Nc(e,t=Pc){let n=e;for(;n&&n!==t&&Fc(n);){if(n===document.body)return t;const{overflowY:o}=window.getComputedStyle(n);if(Mc.includes(o)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return t}let On=!1;if(Tt)try{const e={};Object.defineProperty(e,"passive",{get(){On=!0}}),window.addEventListener("test-passive",null,e)}catch(e){}let en=0;const Fs="adm-overflow-hidden";function Oc(e){let t=e==null?void 0:e.parentElement;for(;t;){if(t.clientHeight<t.scrollHeight)return t;t=t.parentElement}return null}function Ns(e,t){const n=_c(),o=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=Nc(a.target,e.current);if(!c)return;if(t==="strict"){const p=Oc(a.target);if(p===document.body||p===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:d,scrollTop:m}=c,{height:g}=c.getBoundingClientRect();let v="11";m===0?v=d>=u?"00":"01":u<=Math.round(g+m)&&(v="10"),v!=="11"&&n.isVertical()&&!(parseInt(v,2)&parseInt(l,2))&&a.cancelable&&On&&a.preventDefault()},r=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,On?{passive:!1}:!1),en||document.body.classList.add(Fs),en++},s=()=>{en&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),en--,en||document.body.classList.remove(Fs))};i.useEffect(()=>{if(t)return r(),()=>{s()}},[t])}let Yo=nn();const Q=e=>tn(e,Yo);let Go=nn();Q.write=e=>tn(e,Go);let Tn=nn();Q.onStart=e=>tn(e,Tn);let qo=nn();Q.onFrame=e=>tn(e,qo);let Xo=nn();Q.onFinish=e=>tn(e,Xo);let Dt=[];Q.setTimeout=(e,t)=>{let n=Q.now()+t,o=()=>{let s=Dt.findIndex(a=>a.cancel==o);~s&&Dt.splice(s,1),ft-=~s?1:0},r={time:n,handler:e,cancel:o};return Dt.splice(Os(n),0,r),ft+=1,Ts(),r};let Os=e=>~(~Dt.findIndex(t=>t.time>e)||~Dt.length);Q.cancel=e=>{Tn.delete(e),qo.delete(e),Xo.delete(e),Yo.delete(e),Go.delete(e)},Q.sync=e=>{Jo=!0,Q.batchedUpdates(e),Jo=!1},Q.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...r){t=r,Q.onStart(n)}return o.handler=e,o.cancel=()=>{Tn.delete(n),t=null},o};let Qo=typeof window!="undefined"?window.requestAnimationFrame:()=>{};Q.use=e=>Qo=e,Q.now=typeof performance!="undefined"?()=>performance.now():Date.now,Q.batchedUpdates=e=>e(),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"):As()};let dt=-1,ft=0,Jo=!1;function tn(e,t){Jo?(t.delete(e),e(0)):(t.add(e),Ts())}function Ts(){dt<0&&(dt=0,Q.frameLoop!=="demand"&&Qo(Ds))}function Tc(){dt=-1}function Ds(){~dt&&(Qo(Ds),Q.batchedUpdates(As))}function As(){let e=dt;dt=Q.now();let t=Os(dt);if(t&&(Ls(Dt.splice(0,t),n=>n.handler()),ft-=t),!ft){Tc();return}Tn.flush(),Yo.flush(e?Math.min(64,dt-e):16.667),qo.flush(),Go.flush(),Xo.flush()}function nn(){let e=new Set,t=e;return{add(n){ft+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return ft-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,ft-=t.size,Ls(t,o=>o(n)&&e.add(o)),ft+=e.size,t=e)}}}function Ls(e,t){e.forEach(n=>{try{t(n)}catch(o){Q.catch(o)}})}function Ro(){}const Dc=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),A={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function rt(e,t){if(A.arr(e)){if(!A.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const se=(e,t)=>e.forEach(t);function Xe(e,t,n){if(A.arr(e)){for(let o=0;o<e.length;o++)t.call(n,e[o],`${o}`);return}for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}const Te=e=>A.und(e)?[]:A.arr(e)?e:[e];function on(e,t){if(e.size){const n=Array.from(e);e.clear(),se(n,t)}}const rn=(e,...t)=>on(e,n=>n(...t)),er=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let tr,Bs,mt=null,Vs=!1,nr=Ro;var Qe=Object.freeze({__proto__:null,get createStringInterpolator(){return tr},get to(){return Bs},get colors(){return mt},get skipAnimation(){return Vs},get willAdvance(){return nr},assign:e=>{e.to&&(Bs=e.to),e.now&&(Q.now=e.now),e.colors!==void 0&&(mt=e.colors),e.skipAnimation!=null&&(Vs=e.skipAnimation),e.createStringInterpolator&&(tr=e.createStringInterpolator),e.requestAnimationFrame&&Q.use(e.requestAnimationFrame),e.batchedUpdates&&(Q.batchedUpdates=e.batchedUpdates),e.willAdvance&&(nr=e.willAdvance),e.frameLoop&&(Q.frameLoop=e.frameLoop)}});const sn=new Set;let Le=[],or=[],Dn=0;const An={get idle(){return!sn.size&&!Le.length},start(e){Dn>e.priority?(sn.add(e),Q.onStart(Ac)):(zs(e),Q(rr))},advance:rr,sort(e){if(Dn)Q.onFrame(()=>An.sort(e));else{const t=Le.indexOf(e);~t&&(Le.splice(t,1),Zs(e))}},clear(){Le=[],sn.clear()}};function Ac(){sn.forEach(zs),sn.clear(),Q(rr)}function zs(e){Le.includes(e)||Zs(e)}function Zs(e){Le.splice(Lc(Le,t=>t.priority>e.priority),0,e)}function rr(e){const t=or;for(let n=0;n<Le.length;n++){const o=Le[n];Dn=o.priority,o.idle||(nr(o),o.advance(e),o.idle||t.push(o))}return Dn=0,or=Le,or.length=0,Le=t,Le.length>0}function Lc(e,t){const n=e.findIndex(t);return n<0?e.length:n}const Bc=(e,t,n)=>Math.min(Math.max(n,e),t),Vc={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+",Ln=He+"%";function Bn(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const zc=new RegExp("rgb"+Bn(He,He,He)),Zc=new RegExp("rgba"+Bn(He,He,He,He)),jc=new RegExp("hsl"+Bn(He,Ln,Ln)),Kc=new RegExp("hsla"+Bn(He,Ln,Ln,He)),Wc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Hc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Uc=/^#([0-9a-fA-F]{6})$/,Yc=/^#([0-9a-fA-F]{8})$/;function Gc(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Uc.exec(e))?parseInt(t[1]+"ff",16)>>>0:mt&&mt[e]!==void 0?mt[e]:(t=zc.exec(e))?(At(t[1])<<24|At(t[2])<<16|At(t[3])<<8|255)>>>0:(t=Zc.exec(e))?(At(t[1])<<24|At(t[2])<<16|At(t[3])<<8|Ws(t[4]))>>>0:(t=Wc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Yc.exec(e))?parseInt(t[1],16)>>>0:(t=Hc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=jc.exec(e))?(js(Ks(t[1]),Vn(t[2]),Vn(t[3]))|255)>>>0:(t=Kc.exec(e))?(js(Ks(t[1]),Vn(t[2]),Vn(t[3]))|Ws(t[4]))>>>0:null}function sr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function js(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,s=sr(r,o,e+1/3),a=sr(r,o,e),l=sr(r,o,e-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function At(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ks(e){return(parseFloat(e)%360+360)%360/360}function Ws(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Vn(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Hs(e){let t=Gc(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,o=(t&16711680)>>>16,r=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${o}, ${r}, ${s})`}const an=(e,t,n)=>{if(A.fun(e))return e;if(A.arr(e))return an({range:e,output:t,extrapolate:n});if(A.str(e.output[0]))return tr(e);const o=e,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=Xc(u,s);return qc(u,s[d],s[d+1],r[d],r[d+1],c,a,l,o.map)}};function qc(e,t,n,o,r,s,a,l,c){let u=c?c(e):e;if(u<t){if(a==="identity")return u;a==="clamp"&&(u=t)}if(u>n){if(l==="identity")return u;l==="clamp"&&(u=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),o===-1/0?u=-u:r===1/0?u=u+o:u=u*(r-o)+o,u)}function Xc(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}const Qc=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const o=n*e,r=t==="end"?Math.floor(o):Math.ceil(o);return Bc(0,1,r/e)},zn=1.70158,Zn=zn*1.525,Us=zn+1,Ys=2*Math.PI/3,Gs=2*Math.PI/4.5,jn=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Jc={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Us*e*e*e-zn*e*e,easeOutBack:e=>1+Us*Math.pow(e-1,3)+zn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Zn+1)*2*e-Zn)/2:(Math.pow(2*e-2,2)*((Zn+1)*(e*2-2)+Zn)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Ys),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Ys)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Gs))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Gs)/2+1,easeInBounce:e=>1-jn(1-e),easeOutBounce:jn,easeInOutBounce:e=>e<.5?(1-jn(1-2*e))/2:(1+jn(2*e-1))/2,steps:Qc};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ir.apply(this,arguments)}const Lt=Symbol.for("FluidValue.get"),St=Symbol.for("FluidValue.observers"),Be=e=>!!(e&&e[Lt]),Me=e=>e&&e[Lt]?e[Lt]():e,qs=e=>e[St]||null;function Rc(e,t){e.eventObserved?e.eventObserved(t):e(t)}function ln(e,t){let n=e[St];n&&n.forEach(o=>{Rc(o,t)})}class Xs{constructor(t){if(this[Lt]=void 0,this[St]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");eu(this,t)}}const eu=(e,t)=>Qs(e,Lt,t);function Bt(e,t){if(e[Lt]){let n=e[St];n||Qs(e,St,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function cn(e,t){let n=e[St];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[St]=null,e.observerRemoved&&e.observerRemoved(o,t)}}const Qs=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Kn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,tu=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Js=new RegExp(`(${Kn.source})(%|[a-z]+)`,"i"),nu=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Wn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Rs=e=>{const[t,n]=ou(e);if(!t||er())return e;const o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(n);return r||e}else{if(n&&Wn.test(n))return Rs(n);if(n)return n}return e},ou=e=>{const t=Wn.exec(e);if(!t)return[,];const[,n,o]=t;return[n,o]};let ar;const ru=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,ei=e=>{ar||(ar=mt?new RegExp(`(${Object.keys(mt).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Me(s).replace(Wn,Rs).replace(tu,Hs).replace(ar,Hs)),n=t.map(s=>s.match(Kn).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=>an(ir({},e,{output:s})));return s=>{var a;const l=!Js.test(t[0])&&((a=t.find(u=>Js.test(u)))==null?void 0:a.replace(Kn,""));let c=0;return t[0].replace(Kn,()=>`${r[c++](s)}${l||""}`).replace(nu,ru)}},lr="react-spring: ",ti=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${lr}once requires a function parameter`);return(...o)=>{n||(t(...o),n=!0)}},su=ti(console.warn);function iu(){su(`${lr}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const au=ti(console.warn);function lu(){au(`${lr}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 Hn(e){return A.str(e)&&(e[0]=="#"||/\d/.test(e)||!er()&&Wn.test(e)||e in(mt||{}))}const cr=er()?i.useEffect:i.useLayoutEffect,cu=()=>{const e=i.useRef(!1);return cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function ni(){const e=i.useState()[1],t=cu();return()=>{t.current&&e(Math.random())}}function uu(e,t){const[n]=i.useState(()=>({inputs:t,result:e()})),o=i.useRef(),r=o.current;let s=r;return s?t&&s.inputs&&du(t,s.inputs)||(s={inputs:t,result:e()}):s=n,i.useEffect(()=>{o.current=s,r==n&&(n.inputs=n.result=void 0)},[s]),s.result}function du(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const oi=e=>i.useEffect(e,fu),fu=[];function ri(e){const t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}const un=Symbol.for("Animated:node"),mu=e=>!!e&&e[un]===e,Je=e=>e&&e[un],ur=(e,t)=>Dc(e,un,t),Un=e=>e&&e[un]&&e[un].getPayload();class si{constructor(){this.payload=void 0,ur(this,this)}getPayload(){return this.payload||[]}}class Vt extends si{constructor(t){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=t,A.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Vt(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return A.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,A.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class zt extends Vt{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=an({output:[t,t]})}static create(t){return new zt(t)}getValue(){let t=this._string;return t==null?this._string=this._toString(this._value):t}setValue(t){if(A.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=an({output:[this.getValue(),t]})),this._value=0,super.reset()}}const Yn={dependencies:null};class Gn extends si{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const n={};return Xe(this.source,(o,r)=>{mu(o)?n[r]=o.getValue(t):Be(o)?n[r]=Me(o):t||(n[r]=o)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&se(this.payload,t=>t.reset())}_makePayload(t){if(t){const n=new Set;return Xe(t,this._addToPayload,n),Array.from(n)}}_addToPayload(t){Yn.dependencies&&Be(t)&&Yn.dependencies.add(t);const n=Un(t);n&&se(n,o=>this.add(o))}}class dr extends Gn{constructor(t){super(t)}static create(t){return new dr(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((o,r)=>o.setValue(t[r])).some(Boolean):(super.setValue(t.map(hu)),!0)}}function hu(e){return(Hn(e)?zt:Vt).create(e)}function fr(e){const t=Je(e);return t?t.constructor:A.arr(e)?dr:Hn(e)?zt:Vt}function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qn.apply(this,arguments)}const ii=(e,t)=>{const n=!A.fun(e)||e.prototype&&e.prototype.isReactComponent;return i.forwardRef((o,r)=>{const s=i.useRef(null),a=n&&i.useCallback(p=>{s.current=vu(r,p)},[r]),[l,c]=gu(o,t),u=ni(),d=()=>{const p=s.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,l.getValue(!0)):!1)===!1&&u()},m=new pu(d,c),g=i.useRef();cr(()=>(g.current=m,se(c,p=>Bt(p,m)),()=>{g.current&&(se(g.current.deps,p=>cn(p,g.current)),Q.cancel(g.current.update))})),i.useEffect(d,[]),oi(()=>()=>{const p=g.current;se(p.deps,y=>cn(y,p))});const v=t.getComponentProps(l.getValue());return X.createElement(e,qn({},v,{ref:a}))})};class pu{constructor(t,n){this.update=t,this.deps=n}eventObserved(t){t.type=="change"&&Q.write(this.update)}}function gu(e,t){const n=new Set;return Yn.dependencies=n,e.style&&(e=qn({},e,{style:t.createAnimatedStyle(e.style)})),e=new Gn(e),Yn.dependencies=null,[e,n]}function vu(e,t){return e&&(A.fun(e)?e(t):e.current=t),t}const ai=Symbol.for("AnimatedComponent"),bu=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=r=>new Gn(r),getComponentProps:o=r=>r}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},s=a=>{const l=li(a)||"Anonymous";return A.str(a)?a=s[a]||(s[a]=ii(a,r)):a=a[ai]||(a[ai]=ii(a,r)),a.displayName=`Animated(${l})`,a};return Xe(e,(a,l)=>{A.arr(e)&&(l=li(a)),s[l]=s(a)}),{animated:s}},li=e=>A.str(e)?e:e&&A.str(e.displayName)?e.displayName:A.fun(e)&&e.name||null;function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Se.apply(this,arguments)}function wt(e,...t){return A.fun(e)?e(...t):e}const dn=(e,t)=>e===!0||!!(t&&e&&(A.fun(e)?e(t):Te(e).includes(t))),ci=(e,t)=>A.obj(e)?t&&e[t]:e,ui=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,yu=e=>e,mr=(e,t=yu)=>{let n=Cu;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const o={};for(const r of n){const s=t(e[r],r);A.und(s)||(o[r]=s)}return o},Cu=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xu={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 Su(e){const t={};let n=0;if(Xe(e,(o,r)=>{xu[r]||(t[r]=o,n++)}),n)return t}function di(e){const t=Su(e);if(t){const n={to:t};return Xe(e,(o,r)=>r in t||(n[r]=o)),n}return Se({},e)}function fn(e){return e=Me(e),A.arr(e)?e.map(fn):Hn(e)?Qe.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function wu(e){for(const t in e)return!0;return!1}function hr(e){return A.fun(e)||A.arr(e)&&A.obj(e[0])}function ku(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Eu(e,t){if(t&&e.ref!==t){var n;(n=e.ref)==null||n.delete(e),t.add(e),e.ref=t}}const pr=Se({},{default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}}.default,{mass:1,damping:1,easing:Jc.linear,clamp:!1});class Iu{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,pr)}}function $u(e,t,n){n&&(n=Se({},n),fi(n,t),t=Se({},n,t)),fi(e,t),Object.assign(e,t);for(const a in pr)e[a]==null&&(e[a]=pr[a]);let{mass:o,frequency:r,damping:s}=e;return A.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*s*o/r),e}function fi(e,t){if(!A.und(t.decay))e.duration=void 0;else{const n=!A.und(t.tension)||!A.und(t.friction);(n||!A.und(t.frequency)||!A.und(t.damping)||!A.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}const mi=[];class _u{constructor(){this.changed=!1,this.values=mi,this.toValues=null,this.fromValues=mi,this.to=void 0,this.from=void 0,this.config=new Iu,this.immediate=!1}}function hi(e,{key:t,props:n,defaultProps:o,state:r,actions:s}){return new Promise((a,l)=>{var c;let u,d,m=dn((c=n.cancel)!=null?c:o==null?void 0:o.cancel,t);if(m)p();else{A.und(n.pause)||(r.paused=dn(n.pause,t));let y=o==null?void 0:o.pause;y!==!0&&(y=r.paused||dn(y,t)),u=wt(n.delay||0,t),y?(r.resumeQueue.add(v),s.pause()):(s.resume(),v())}function g(){r.resumeQueue.add(v),r.timeouts.delete(d),d.cancel(),u=d.time-Q.now()}function v(){u>0&&!Qe.skipAnimation?(r.delayed=!0,d=Q.setTimeout(p,u),r.pauseQueue.add(g),r.timeouts.add(d)):p()}function p(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(g),r.timeouts.delete(d),e<=(r.cancelId||0)&&(m=!0);try{s.start(Se({},n,{callId:e,cancel:m}),a)}catch(y){l(y)}}})}const gr=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Zt(e.get()):t.every(n=>n.noop)?pi(e.get()):Ue(e.get(),t.every(n=>n.finished)),pi=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ue=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Zt=e=>({value:e,cancelled:!0,finished:!1});function gi(e,t,n,o){const{callId:r,parentId:s,onRest:a}=t,{asyncTo:l,promise:c}=n;return!s&&e===l&&!t.reset?c:n.promise=me(this,null,function*(){n.asyncId=r,n.asyncTo=e;const u=mr(t,(b,C)=>C==="onRest"?void 0:b);let d,m;const g=new Promise((b,C)=>(d=b,m=C)),v=b=>{const C=r<=(n.cancelId||0)&&Zt(o)||r!==n.asyncId&&Ue(o,!1);if(C)throw b.result=C,m(b),b},p=(b,C)=>{const w=new vi,x=new bi;return me(this,null,function*(){if(Qe.skipAnimation)throw mn(n),x.result=Ue(o,!1),m(x),x;v(w);const S=A.obj(b)?Se({},b):Se({},C,{to:b});S.parentId=r,Xe(u,(I,M)=>{A.und(S[M])&&(S[M]=I)});const k=yield o.start(S);return v(w),n.paused&&(yield new Promise(I=>{n.resumeQueue.add(I)})),k})};let y;if(Qe.skipAnimation)return mn(n),Ue(o,!1);try{let b;A.arr(e)?b=(C=>me(this,null,function*(){for(const w of C)yield p(w)}))(e):b=Promise.resolve(e(p,o.stop.bind(o))),yield Promise.all([b.then(d),g]),y=Ue(o.get(),!0,!1)}catch(b){if(b instanceof vi)y=b.result;else if(b instanceof bi)y=b.result;else throw b}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 mn(e,t){on(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class vi 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 bi extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const vr=e=>e instanceof br;let Pu=1;class br extends Xs{constructor(...t){super(...t),this.id=Pu++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Je(this);return t&&t.getValue()}to(...t){return Qe.to(this,t)}interpolate(...t){return iu(),Qe.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,n=!1){ln(this,{type:"change",parent:this,value:t,idle:n})}_onPriorityChange(t){this.idle||An.sort(this),ln(this,{type:"priority",parent:this,priority:t})}}const kt=Symbol.for("SpringPhase"),yi=1,yr=2,Cr=4,xr=e=>(e[kt]&yi)>0,ht=e=>(e[kt]&yr)>0,hn=e=>(e[kt]&Cr)>0,Ci=(e,t)=>t?e[kt]|=yr|yi:e[kt]&=~yr,xi=(e,t)=>t?e[kt]|=Cr:e[kt]&=~Cr;class Mu extends br{constructor(t,n){if(super(),this.key=void 0,this.animation=new _u,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(t)||!A.und(n)){const o=A.obj(t)?Se({},t):Se({},n,{from:t});A.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(ht(this)||this._state.asyncTo)||hn(this)}get goal(){return Me(this.animation.to)}get velocity(){const t=Je(this);return t instanceof Vt?t.lastVelocity||0:t.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return xr(this)}get isAnimating(){return ht(this)}get isPaused(){return hn(this)}get isDelayed(){return this._state.delayed}advance(t){let n=!0,o=!1;const r=this.animation;let{config:s,toValues:a}=r;const l=Un(r.to);!l&&Be(r.to)&&(a=Te(Me(r.to))),r.values.forEach((d,m)=>{if(d.done)return;const g=d.constructor==zt?1:l?l[m].lastPosition:a[m];let v=r.immediate,p=g;if(!v){if(p=d.lastPosition,s.tension<=0){d.done=!0;return}let y=d.elapsedTime+=t;const b=r.fromValues[m],C=d.v0!=null?d.v0:d.v0=A.arr(s.velocity)?s.velocity[m]:s.velocity;let w;const x=s.precision||(b==g?.005:Math.min(1,Math.abs(g-b)*.001));if(A.und(s.duration))if(s.decay){const S=s.decay===!0?.998:s.decay,k=Math.exp(-(1-S)*y);p=b+C/(1-S)*(1-k),v=Math.abs(d.lastPosition-p)<=x,w=C*k}else{w=d.lastVelocity==null?C:d.lastVelocity;const S=s.restVelocity||x/10,k=s.clamp?0:s.bounce,I=!A.und(k),M=b==g?d.v0>0:b<g;let O,L=!1;const F=1,N=Math.ceil(t/F);for(let W=0;W<N&&(O=Math.abs(w)>S,!(!O&&(v=Math.abs(g-p)<=x,v)));++W){I&&(L=p==g||p>g==M,L&&(w=-w*k,p=g));const V=-s.tension*1e-6*(p-g),_=-s.friction*.001*w,P=(V+_)/s.mass;w=w+P*F,p=p+w*F}}else{let S=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,d.durationProgress>0&&(d.elapsedTime=s.duration*d.durationProgress,y=d.elapsedTime+=t)),S=(s.progress||0)+y/this._memoizedDuration,S=S>1?1:S<0?0:S,d.durationProgress=S),p=b+s.easing(S)*(g-b),w=(p-d.lastPosition)/t,v=S==1}d.lastVelocity=w,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),v=!0)}l&&!l[m].done&&(v=!1),v?d.done=!0:n=!1,d.setValue(p,s.round)&&(o=!0)});const c=Je(this),u=c.getValue();if(n){const d=Me(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(t){return Q.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ht(this)){const{to:t,config:n}=this.animation;Q.batchedUpdates(()=>{this._onStart(),n.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,n){let o;return A.und(t)?(o=this.queue||[],this.queue=[]):o=[A.obj(t)?t:Se({},n,{to:t})],Promise.all(o.map(r=>this._update(r))).then(r=>gr(this,r))}stop(t){const{to:n}=this.animation;return this._focus(this.get()),mn(this._state,t&&this._lastCallId),Q.batchedUpdates(()=>this._stop(n,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const n=this.key||"";let{to:o,from:r}=t;o=A.obj(o)?o[n]:o,(o==null||hr(o))&&(o=void 0),r=A.obj(r)?r[n]:r,r==null&&(r=void 0);const s={to:o,from:r};return xr(this)||(t.reverse&&([o,r]=[r,o]),r=Me(r),A.und(r)?Je(this)||this._set(o):this._set(r)),s}_update(t,n){let o=Se({},t);const{key:r,defaultProps:s}=this;o.default&&Object.assign(s,mr(o,(c,u)=>/^on/.test(u)?ci(c,r):c)),ki(this,o,"onProps"),vn(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 hi(++this._lastCallId,{key:r,props:o,defaultProps:s,state:l,actions:{pause:()=>{hn(this)||(xi(this,!0),rn(l.pauseQueue),vn(this,"onPause",Ue(this,pn(this,this.animation.to)),this))},resume:()=>{hn(this)&&(xi(this,!1),ht(this)&&this._resume(),rn(l.resumeQueue),vn(this,"onResume",Ue(this,pn(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(c=>{if(o.loop&&c.finished&&!(n&&c.noop)){const u=Si(o);if(u)return this._update(u,!0)}return c})}_merge(t,n,o){if(n.cancel)return this.stop(!0),o(Zt(this));const r=!A.und(t.to),s=!A.und(t.from);if(r||s)if(n.callId>this._lastToId)this._lastToId=n.callId;else return o(Zt(this));const{key:a,defaultProps:l,animation:c}=this,{to:u,from:d}=c;let{to:m=u,from:g=d}=t;s&&!r&&(!n.default||A.und(m))&&(m=g),n.reverse&&([m,g]=[g,m]);const v=!rt(g,d);v&&(c.from=g),g=Me(g);const p=!rt(m,u);p&&this._focus(m);const y=hr(n.to),{config:b}=c,{decay:C,velocity:w}=b;(r||s)&&(b.velocity=0),n.config&&!y&&$u(b,wt(n.config,a),n.config!==l.config?wt(l.config,a):void 0);let x=Je(this);if(!x||A.und(m))return o(Ue(this,!0));const S=A.und(n.reset)?s&&!n.default:!A.und(g)&&dn(n.reset,a),k=S?g:this.get(),I=fn(m),M=A.num(I)||A.arr(I)||Hn(I),O=!y&&(!M||dn(l.immediate||n.immediate,a));if(p){const W=fr(m);if(W!==x.constructor)if(O)x=this._set(I);else throw Error(`Cannot animate between ${x.constructor.name} and ${W.name}, as the "to" prop suggests`)}const L=x.constructor;let F=Be(m),N=!1;if(!F){const W=S||!xr(this)&&v;(p||W)&&(N=rt(fn(k),I),F=!N),(!rt(c.immediate,O)&&!O||!rt(b.decay,C)||!rt(b.velocity,w))&&(F=!0)}if(N&&ht(this)&&(c.changed&&!S?F=!0:F||this._stop(u)),!y&&((F||Be(u))&&(c.values=x.getPayload(),c.toValues=Be(m)?null:L==zt?[1]:Te(I)),c.immediate!=O&&(c.immediate=O,!O&&!S&&this._set(u)),F)){const{onRest:W}=c;se(Nu,_=>ki(this,n,_));const V=Ue(this,pn(this,u));rn(this._pendingCalls,V),this._pendingCalls.add(o),c.changed&&Q.batchedUpdates(()=>{c.changed=!S,W==null||W(V,this),S?wt(l.onRest,V):c.onStart==null||c.onStart(V,this)})}S&&this._set(k),y?o(gi(n.to,n,this._state,this)):F?this._start():ht(this)&&!p?this._pendingCalls.add(o):o(pi(k))}_focus(t){const n=this.animation;t!==n.to&&(qs(this)&&this._detach(),n.to=t,qs(this)&&this._attach())}_attach(){let t=0;const{to:n}=this.animation;Be(n)&&(Bt(n,this),vr(n)&&(t=n.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;Be(t)&&cn(t,this)}_set(t,n=!0){const o=Me(t);if(!A.und(o)){const r=Je(this);if(!r||!rt(o,r.getValue())){const s=fr(o);!r||r.constructor!=s?ur(this,s.create(o)):r.setValue(o),r&&Q.batchedUpdates(()=>{this._onChange(o,n)})}}return Je(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,vn(this,"onStart",Ue(this,pn(this,t.to)),this))}_onChange(t,n){n||(this._onStart(),wt(this.animation.onChange,t,this)),wt(this.defaultProps.onChange,t,this),super._onChange(t,n)}_start(){const t=this.animation;Je(this).reset(Me(t.to)),t.immediate||(t.fromValues=t.values.map(n=>n.lastPosition)),ht(this)||(Ci(this,!0),hn(this)||this._resume())}_resume(){Qe.skipAnimation?this.finish():An.start(this)}_stop(t,n){if(ht(this)){Ci(this,!1);const o=this.animation;se(o.values,s=>{s.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),ln(this,{type:"idle",parent:this});const r=n?Zt(this.get()):Ue(this.get(),pn(this,t!=null?t:o.to));rn(this._pendingCalls,r),o.changed&&(o.changed=!1,vn(this,"onRest",r,this))}}}function pn(e,t){const n=fn(t),o=fn(e.get());return rt(o,n)}function Si(e,t=e.loop,n=e.to){let o=wt(t);if(o){const r=o!==!0&&di(o),s=(r||e).reverse,a=!r||r.reset;return gn(Se({},e,{loop:t,default:!1,pause:void 0,to:!s||hr(n)?n:void 0,from:a?e.from:void 0,reset:a},r))}}function gn(e){const{to:t,from:n}=e=di(e),o=new Set;return A.obj(t)&&wi(t,o),A.obj(n)&&wi(n,o),e.keys=o.size?Array.from(o):null,e}function Fu(e){const t=gn(e);return A.und(t.default)&&(t.default=mr(t)),t}function wi(e,t){Xe(e,(n,o)=>n!=null&&t.add(o))}const Nu=["onStart","onRest","onChange","onPause","onResume"];function ki(e,t,n){e.animation[n]=t[n]!==ui(t,n)?ci(t[n],e.key):void 0}function vn(e,t,...n){var o,r,s,a;(o=(r=e.animation)[t])==null||o.call(r,...n),(s=(a=e.defaultProps)[t])==null||s.call(a,...n)}const Ou=["onStart","onChange","onRest"];let Tu=1,Du=class{constructor(t,n){this.id=Tu++,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),t&&this.start(Se({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((n,o)=>t[o]=n.get()),t}set(t){for(const n in t){const o=t[n];A.und(o)||this.springs[n].set(o)}}update(t){return t&&this.queue.push(gn(t)),this}start(t){let{queue:n}=this;return t?n=Te(t).map(gn):this.queue=[],this._flush?this._flush(this,n):(Mi(this,n),Sr(this,n))}stop(t,n){if(t!==!!t&&(n=t),n){const o=this.springs;se(Te(n),r=>o[r].stop(!!t))}else mn(this._state,this._lastAsyncId),this.each(o=>o.stop(!!t));return this}pause(t){if(A.und(t))this.start({pause:!0});else{const n=this.springs;se(Te(t),o=>n[o].pause())}return this}resume(t){if(A.und(t))this.start({pause:!1});else{const n=this.springs;se(Te(t),o=>n[o].resume())}return this}each(t){Xe(this.springs,t)}_onFrame(){const{onStart:t,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,on(t,([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&&on(n,([c,u])=>{u.value=l,c(u,this,this._item)}),a&&(this._started=!1,on(o,([c,u])=>{u.value=l,c(u,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;Q.onFrame(this._onFrame)}};function Sr(e,t){return Promise.all(t.map(n=>Ei(e,n))).then(n=>gr(e,n))}function Ei(e,t,n){return me(this,null,function*(){const{keys:o,to:r,from:s,loop:a,onRest:l,onResolve:c}=t,u=A.obj(t.default)&&t.default;a&&(t.loop=!1),r===!1&&(t.to=null),s===!1&&(t.from=null);const d=A.arr(r)||A.fun(r)?r:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):se(Ou,y=>{const b=t[y];if(A.fun(b)){const C=e._events[y];t[y]=({finished:w,cancelled:x})=>{const S=C.get(b);S?(w||(S.finished=!1),x&&(S.cancelled=!0)):C.set(b,{value:null,finished:w||!1,cancelled:x||!1})},u&&(u[y]=t[y])}});const m=e._state;t.pause===!m.paused?(m.paused=t.pause,rn(t.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(t.pause=!0);const g=(o||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),v=t.cancel===!0||ui(t,"cancel")===!0;(d||v&&m.asyncId)&&g.push(hi(++e._lastAsyncId,{props:t,state:m,actions:{pause:Ro,resume:Ro,start(y,b){v?(mn(m,e._lastAsyncId),b(Zt(e))):(y.onRest=l,b(gi(d,y,m,e)))}}})),m.paused&&(yield new Promise(y=>{m.resumeQueue.add(y)}));const p=gr(e,yield Promise.all(g));if(a&&p.finished&&!(n&&p.noop)){const y=Si(t,a,r);if(y)return Mi(e,[y]),Ei(e,y,!0)}return c&&Q.batchedUpdates(()=>c(p,e,e.item)),p})}function Ii(e,t){const n=Se({},e.springs);return t&&se(Te(t),o=>{A.und(o.keys)&&(o=gn(o)),A.obj(o.to)||(o=Se({},o,{to:void 0})),Pi(n,o,r=>_i(r))}),$i(e,n),n}function $i(e,t){Xe(t,(n,o)=>{e.springs[o]||(e.springs[o]=n,Bt(n,e))})}function _i(e,t){const n=new Mu;return n.key=e,t&&Bt(n,t),n}function Pi(e,t,n){t.keys&&se(t.keys,o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)})}function Mi(e,t){se(t,n=>{Pi(e.springs,n,o=>_i(o,e))})}function Au(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}const Lu=["children"],Xn=e=>{let{children:t}=e,n=Au(e,Lu);const o=i.useContext(Qn),r=n.pause||!!o.pause,s=n.immediate||!!o.immediate;n=uu(()=>({pause:r,immediate:s}),[r,s]);const{Provider:a}=Qn;return X.createElement(a,{value:n},t)},Qn=Bu(Xn,{});Xn.Provider=Qn.Provider,Xn.Consumer=Qn.Consumer;function Bu(e,t){return Object.assign(e,X.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}const Vu=()=>{const e=[],t=function(r){lu();const s=[];return se(e,(a,l)=>{if(A.und(r))s.push(a.start());else{const c=n(r,a,l);c&&s.push(a.start(c))}}),s};t.current=e,t.add=function(o){e.includes(o)||e.push(o)},t.delete=function(o){const r=e.indexOf(o);~r&&e.splice(r,1)},t.pause=function(){return se(e,o=>o.pause(...arguments)),this},t.resume=function(){return se(e,o=>o.resume(...arguments)),this},t.set=function(o){se(e,r=>r.set(o))},t.start=function(o){const r=[];return se(e,(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},t.stop=function(){return se(e,o=>o.stop(...arguments)),this},t.update=function(o){return se(e,(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 t._getProps=n,t};function zu(e,t,n){const o=A.fun(t)&&t;o&&!n&&(n=[]);const r=i.useMemo(()=>o||arguments.length==3?Vu():void 0,[]),s=i.useRef(0),a=ni(),l=i.useMemo(()=>({ctrls:[],queue:[],flush(C,w){const x=Ii(C,w);return s.current>0&&!l.queue.length&&!Object.keys(x).some(k=>!C.springs[k])?Sr(C,w):new Promise(k=>{$i(C,x),l.queue.push(()=>{k(Sr(C,w))}),a()})}}),[]),c=i.useRef([...l.ctrls]),u=[],d=ri(e)||0;i.useMemo(()=>{se(c.current.slice(e,d),C=>{ku(C,r),C.stop(!0)}),c.current.length=e,m(d,e)},[e]),i.useMemo(()=>{m(0,Math.min(d,e))},n);function m(C,w){for(let x=C;x<w;x++){const S=c.current[x]||(c.current[x]=new Du(null,l.flush)),k=o?o(x,S):t[x];k&&(u[x]=Fu(k))}}const g=c.current.map((C,w)=>Ii(C,u[w])),v=i.useContext(Xn),p=ri(v),y=v!==p&&wu(v);cr(()=>{s.current++,l.ctrls=c.current;const{queue:C}=l;C.length&&(l.queue=[],se(C,w=>w())),se(c.current,(w,x)=>{r==null||r.add(w),y&&w.start({default:v});const S=u[x];S&&(Eu(w,S.ref),w.ref?w.queue.push(S):w.start(S))})}),oi(()=>()=>{se(l.ctrls,C=>C.stop(!0))});const b=g.map(C=>Se({},C));return r?[b,r]:b}function Ve(e,t){const n=A.fun(e),[[o],r]=zu(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[o,r]:o}let Fi;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(Fi||(Fi={}));class Zu extends br{constructor(t,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=an(...n);const o=this._get(),r=fr(o);ur(this,r.create(o))}advance(t){const n=this._get(),o=this.get();rt(n,o)||(Je(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Ni(this._active)&&wr(this)}_get(){const t=A.arr(this.source)?this.source.map(Me):Te(Me(this.source));return this.calc(...t)}_start(){this.idle&&!Ni(this._active)&&(this.idle=!1,se(Un(this),t=>{t.done=!1}),Qe.skipAnimation?(Q.batchedUpdates(()=>this.advance()),wr(this)):An.start(this))}_attach(){let t=1;se(Te(this.source),n=>{Be(n)&&Bt(n,this),vr(n)&&(n.idle||this._active.add(n),t=Math.max(t,n.priority+1))}),this.priority=t,this._start()}_detach(){se(Te(this.source),t=>{Be(t)&&cn(t,this)}),this._active.clear(),wr(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=Te(this.source).reduce((n,o)=>Math.max(n,(vr(o)?o.priority:0)+1),0))}}function ju(e){return e.idle!==!1}function Ni(e){return!e.size||Array.from(e).every(ju)}function wr(e){e.idle||(e.idle=!0,se(Un(e),t=>{t.done=!0}),ln(e,{type:"idle",parent:e}))}Qe.assign({createStringInterpolator:ei,to:(e,t)=>new Zu(e,t)});function kr(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}const Ku=["style","children","scrollTop","scrollLeft","viewBox"],Oi=/^--/;function Wu(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Oi.test(e)&&!(bn.hasOwnProperty(e)&&bn[e])?t+"px":(""+t).trim()}const Ti={};function Hu(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",o=t,{style:r,children:s,scrollTop:a,scrollLeft:l,viewBox:c}=o,u=kr(o,Ku),d=Object.values(u),m=Object.keys(u).map(g=>n||e.hasAttribute(g)?g:Ti[g]||(Ti[g]=g.replace(/([A-Z])/g,v=>"-"+v.toLowerCase())));s!==void 0&&(e.textContent=s);for(let g in r)if(r.hasOwnProperty(g)){const v=Wu(g,r[g]);Oi.test(g)?e.style.setProperty(g,v):e.style[g]=v}m.forEach((g,v)=>{e.setAttribute(g,d[v])}),a!==void 0&&(e.scrollTop=a),l!==void 0&&(e.scrollLeft=l),c!==void 0&&e.setAttribute("viewBox",c)}let bn={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 Uu=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Yu=["Webkit","Ms","Moz","O"];bn=Object.keys(bn).reduce((e,t)=>(Yu.forEach(n=>e[Uu(n,t)]=e[t]),e),bn);const Gu=["x","y","z"],qu=/^(matrix|translate|scale|rotate|skew)/,Xu=/^(translate)/,Qu=/^(rotate|skew)/,Er=(e,t)=>A.num(e)&&e!==0?e+t:e,Jn=(e,t)=>A.arr(e)?e.every(n=>Jn(n,t)):A.num(e)?e===t:parseFloat(e)===t;class Ju extends Gn{constructor(t){let{x:n,y:o,z:r}=t,s=kr(t,Gu);const a=[],l=[];(n||o||r)&&(a.push([n||0,o||0,r||0]),l.push(c=>[`translate3d(${c.map(u=>Er(u,"px")).join(",")})`,Jn(c,0)])),Xe(s,(c,u)=>{if(u==="transform")a.push([c||""]),l.push(d=>[d,d===""]);else if(qu.test(u)){if(delete s[u],A.und(c))return;const d=Xu.test(u)?"px":Qu.test(u)?"deg":"";a.push(Te(c)),l.push(u==="rotate3d"?([m,g,v,p])=>[`rotate3d(${m},${g},${v},${Er(p,d)})`,Jn(p,0)]:m=>[`${u}(${m.map(g=>Er(g,d)).join(",")})`,Jn(m,u.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new Ru(a,l)),super(s)}}class Ru extends Xs{constructor(t,n){super(),this._value=null,this.inputs=t,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let t="",n=!0;return se(this.inputs,(o,r)=>{const s=Me(o[0]),[a,l]=this.transforms[r](A.arr(s)?s:o.map(Me));t+=" "+a,n=n&&l}),n?"none":t}observerAdded(t){t==1&&se(this.inputs,n=>se(n,o=>Be(o)&&Bt(o,this)))}observerRemoved(t){t==0&&se(this.inputs,n=>se(n,o=>Be(o)&&cn(o,this)))}eventObserved(t){t.type=="change"&&(this._value=null),ln(this,t)}}const ed=["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"],td=["scrollTop","scrollLeft"];Qe.assign({batchedUpdates:Ot.unstable_batchedUpdates,createStringInterpolator:ei,colors:Vc});const ke=bu(ed,{applyAnimatedValues:Hu,createAnimatedStyle:e=>new Ju(e),getComponentProps:e=>kr(e,td)}).animated;function nd(e){return(typeof e=="function"?e():e)||document.body}function Rn(e,t){if(Tt&&e){const n=nd(e);return Ot.createPortal(t,n)}return t}function od(e){const t=i.useRef(e);return e&&(t.current=!0),!!t.current}const eo=e=>rd(e.active,e.forceRender,e.destroyOnClose)?e.children:null;function rd(e,t,n){const o=od(e);return t||e?!0:o?!n:!1}const sd={click:"onClick",touchstart:"onTouchStart"};function Di(e,t){const n=Object.assign({},t.props);for(const o of e){const r=sd[o];n[r]=function(s){var a,l;s.stopPropagation(),(l=(a=t.props)[r])===null||l===void 0||l.call(a,s)}}return i.cloneElement(t,n)}const Ir="adm-mask",id={default:.55,thin:.35,thick:.75},ad={black:"0, 0, 0",white:"255, 255, 255"},ld={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},to=e=>{const t=oe(ld,e),{locale:n}=Pe(),o=i.useRef(null);Ns(o,t.visible&&t.disableBodyScroll);const r=i.useMemo(()=>{var d;const m=(d=id[t.opacity])!==null&&d!==void 0?d:t.opacity,g=ad[t.color];return g?`rgba(${g}, ${m})`:t.color},[t.color,t.opacity]),[s,a]=i.useState(t.visible),l=te.useUnmountedRef(),{opacity:c}=Ve({opacity:t.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var d,m;l.current||(a(t.visible),t.visible?(d=t.afterShow)===null||d===void 0||d.call(t):(m=t.afterClose)===null||m===void 0||m.call(t))}}),u=Di(t.stopPropagation,Y(t,i.createElement(ke.div,{className:Ir,ref:o,"aria-hidden":!0,style:Object.assign(Object.assign({},t.style),{background:r,opacity:c,display:s?void 0:"none"}),onClick:d=>{var m;d.target===d.currentTarget&&((m=t.onMaskClick)===null||m===void 0||m.call(t,d))}},t.onMaskClick&&i.createElement("div",{className:`${Ir}-aria-button`,role:"button","aria-label":n.Mask.name,onClick:t.onMaskClick}),i.createElement("div",{className:`${Ir}-content`},t.children))));return i.createElement(eo,{active:s,forceRender:t.forceRender,destroyOnClose:t.destroyOnClose},Rn(t.getContainer,u))};function cd(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"AddOutline-AddOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"AddOutline-add"},X.createElement("rect",{id:"AddOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 Ai(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CheckOutline-CheckOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CheckOutline-编组"},X.createElement("rect",{id:"CheckOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 ud(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CloseCircleFill-CloseCircleFill",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CloseCircleFill-编组"},X.createElement("rect",{id:"CloseCircleFill-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 no(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CloseOutline-编组"},X.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 dd(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"DownOutline-DownOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",null,X.createElement("rect",{id:"DownOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 fd(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"LeftOutline-编组"},X.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 md(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"RightOutline-RightOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"RightOutline-RightOutlined"},X.createElement("rect",{id:"RightOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 hd(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"SearchOutline-编组"},X.createElement("rect",{id:"SearchOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 pd={closeOnMaskClick:!1,closeIcon:i.createElement(no,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function gd(e){const[t,n]=i.useState(e);return te.useIsomorphicLayoutEffect(()=>{n(e)},[e]),t}function vd(e,t,n){return Math.max(t,Math.min(e,n))}const ve={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Li(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Bi(e,t,n,o=.15){return o===0?vd(e,t,n):e<t?-Li(t-e,n-t,o)+t:e>n?+Li(e-n,n-t,o)+n:e}function bd(e,[t,n],[o,r]){const[[s,a],[l,c]]=e;return[Bi(t,s,a,o),Bi(n,l,c,r)]}function yd(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cd(e){var t=yd(e,"string");return typeof t=="symbol"?t:String(t)}function Ee(e,t,n){return t=Cd(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vi(Object(n),!0).forEach(function(o){Ee(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}const zi={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 Zi(e){return e?e[0].toUpperCase()+e.slice(1):""}const xd=["enter","leave"];function Sd(e=!1,t){return e&&!xd.includes(t)}function wd(e,t="",n=!1){const o=zi[e],r=o&&o[t]||t;return"on"+Zi(e)+Zi(r)+(Sd(n,r)?"Capture":"")}const kd=["gotpointercapture","lostpointercapture"];function Ed(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const o=kd.includes(t)?"capturecapture":"capture",r=!!~t.indexOf(o);return r&&(t=t.replace("capture","")),{device:t,capture:r,passive:n}}function Id(e,t=""){const n=zi[e],o=n&&n[t]||t;return e+o}function oo(e){return"touches"in e}function ji(e){return oo(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function $d(e){return Array.from(e.touches).filter(t=>{var n,o;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(o=n.contains)===null||o===void 0?void 0:o.call(n,t.target))})}function _d(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Ki(e){return oo(e)?_d(e)[0]:e}function $r(e,t){try{const n=t.clientX-e.clientX,o=t.clientY-e.clientY,r=(t.clientX+e.clientX)/2,s=(t.clientY+e.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 Pd(e){return $d(e).map(t=>t.identifier)}function Wi(e,t){const[n,o]=Array.from(e.touches).filter(r=>t.includes(r.identifier));return $r(n,o)}function _r(e){const t=Ki(e);return oo(e)?t.identifier:t.pointerId}function Hi(e){const t=Ki(e);return[t.clientX,t.clientY]}const Ui=40,Yi=800;function Gi(e){let{deltaX:t,deltaY:n,deltaMode:o}=e;return o===1?(t*=Ui,n*=Ui):o===2&&(t*=Yi,n*=Yi),[t,n]}function Md(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s}=e;Object.assign(t,{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s})}return t}function ro(e,...t){return typeof e=="function"?e(...t):e}function Fd(){}function Nd(...e){return e.length===0?Fd:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function qi(e,t){return Object.assign({},t,e||{})}const Od=32;class Xi{constructor(t,n,o){this.ctrl=t,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(t){this.ctrl.state[this.key]=t}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:t,shared:n,ingKey:o,args:r}=this;n[o]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=r,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,o=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=o.from?ro(o.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:o,shared:r}=this;n.args=this.args;let s=0;if(t&&(n.event=t,o.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,Md(t)),r.down=r.pressed=r.buttons%2===1||r.touches>0,s=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const I=n._delta.map(Math.abs);ve.addTo(n._distance,I)}this.axisIntent&&this.axisIntent(t);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 g=[0,0];if(o.hasCustomTransform){const[I,M]=m;g[0]=d[0]!==!1?I-d[0]:0,g[1]=d[1]!==!1?M-d[1]:0}else g[0]=d[0]!==!1?a-d[0]:0,g[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(g);const v=n.offset,p=n._active&&!n._blocked||n.active;p&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=r[this.ingKey]=n._active,t&&(n.first&&("bounds"in o&&(n._bounds=ro(o.bounds,n)),this.setup&&this.setup()),n.movement=g,this.computeOffset()));const[y,b]=n.offset,[[C,w],[x,S]]=n._bounds;n.overflow=[y<C?-1:y>w?1:0,b<x?-1:b>S?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=bd(n._bounds,n.offset,k),n.delta=ve.sub(n.offset,v),this.computeMovement(),p&&(!n.last||s>Od)){n.delta=ve.sub(n.offset,v);const I=n.delta.map(Math.abs);ve.addTo(n.distance,I),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[I[0]/s,I[1]/s],n.timeDelta=s)}}emit(){const t=this.state,n=this.shared,o=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!o.triggerAllEvents)return;const r=this.handler(pe(pe(pe({},n),t),{},{[this.aliasKey]:t.values}));r!==void 0&&(t.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Td([e,t],n){const o=Math.abs(e),r=Math.abs(t);if(o>r&&o>n)return"x";if(r>o&&r>n)return"y"}class Qi extends Xi{constructor(...t){super(...t),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(t){const n=this.state,o=this.config;if(!n.axis&&t){const r=typeof o.axisThreshold=="object"?o.axisThreshold[ji(t)]:o.axisThreshold;n.axis=Td(n._movement,r)}n._blocked=(o.lockDirection||!!o.axis)&&!n.axis||!!o.axis&&o.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const Dd=e=>e,Ji=.15,Ri={enabled(e=!0){return e},eventOptions(e,t,n){return pe(pe({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Ji,Ji];case!1:return[0,0];default:return ve.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return ve.toVector(e)},transform(e,t,n){const o=e||n.shared.transform;return this.hasCustomTransform=!!o,o||Dd},threshold(e){return ve.toVector(e,0)}},Ad=0,jt=pe(pe({},Ri),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=Ad){return e},bounds(e={}){if(typeof e=="function")return s=>jt.bounds(e(s));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:o=-1/0,bottom:r=1/0}=e;return[[t,n],[o,r]]}}),ea={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class Ld extends Qi{constructor(...t){super(...t),Ee(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),o=t.currentTarget.getBoundingClientRect(),r={left:n.left-o.left+t.offset[0],right:n.right-o.right+t.offset[0],top:n.top-o.top+t.offset[1],bottom:n.bottom-o.bottom+t.offset[1]};t._bounds=jt.bounds(r)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._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(t){const n=this.config,o=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const r=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(r&&r.size>1&&o._pointerActive)&&(this.start(t),this.setupPointer(t),o._pointerId=_r(t),o._pointerActive=!0,this.computeValues(Hi(t)),this.computeInitial(),n.preventScrollAxis&&ji(t)!=="mouse"?(o._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,o=this.config;if(!n._pointerActive)return;const r=_r(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;const s=Hi(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=ve.sub(s,n._values),this.computeValues(s)),ve.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);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(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch(l){}const n=this.state,o=this.config;if(!n._active||!n._pointerActive)return;const r=_r(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);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,g]=o.swipe.velocity,[v,p]=o.swipe.distance,y=o.swipe.duration;if(n.elapsedTime<y){const b=Math.abs(l/n.timeDelta),C=Math.abs(c/n.timeDelta);b>m&&Math.abs(u)>v&&(n.swipe[0]=Math.sign(l)),C>g&&Math.abs(d)>p&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,o=n.device;n.pointerLock&&t.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(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,Bd(t);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,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=ea[t.key];if(n){const o=this.state,r=t.shiftKey?10:t.altKey?.1:1;this.start(t),o._delta=n(this.config.keyboardDisplacement,r),o._keyboardActive=!0,ve.addTo(o._movement,o._delta),this.compute(t),this.emit()}}keyUp(t){t.key in ea&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Bd(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const yn=typeof window!="undefined"&&window.document&&window.document.createElement;function ta(){return yn&&"ontouchstart"in window}function Vd(){return ta()||yn&&window.navigator.maxTouchPoints>1}function zd(){return yn&&"onpointerdown"in window}function Zd(){return yn&&"exitPointerLock"in window.document}function jd(){try{return"constructor"in GestureEvent}catch(e){return!1}}const ze={isBrowser:yn,gesture:jd(),touch:ta(),touchscreen:Vd(),pointer:zd(),pointerLock:Zd()},Kd=250,Wd=180,Hd=.5,Ud=50,Yd=250,Gd=10,na={mouse:0,touch:0,pen:8},qd=pe(pe({},jt),{},{device(e,t,{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(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Kd:void 0,!(!ze.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:o=1,keys:r=!0}={}}){return this.pointerButtons=o,this.keys=r,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:o=3,axis:r=void 0}){const s=ve.toVector(e,n?o:r?1:0);return this.filterTaps=n,this.tapsThreshold=o,s},swipe({velocity:e=Hd,distance:t=Ud,duration:n=Yd}={}){return{velocity:this.transform(ve.toVector(e)),distance:this.transform(ve.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return Wd;case!1:return 0;default:return e}},axisThreshold(e){return e?pe(pe({},na),e):na},keyboardDisplacement(e=Gd){return e}});function oa(e){const[t,n]=e.overflow,[o,r]=e._delta,[s,a]=e._direction;(t<0&&o>0&&s<0||t>0&&o<0&&s>0)&&(e._movement[0]=e._movementBound[0]),(n<0&&r>0&&a<0||n>0&&r<0&&a>0)&&(e._movement[1]=e._movementBound[1])}const Xd=30,Qd=100;class Jd extends Xi{constructor(...t){super(...t),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 t=this.state;t._touchIds=[],t.canceled=!1,t.cancel=this.cancel.bind(this),t.turns=0}computeOffset(){const{type:t,movement:n,lastOffset:o}=this.state;t==="wheel"?this.state.offset=ve.add(n,o):this.state.offset=[(1+n[0])*o[0],n[1]+o[1]]}computeMovement(){const{offset:t,lastOffset:n}=this.state;this.state.movement=[t[0]/n[0],t[1]-n[1]]}axisIntent(){const t=this.state,[n,o]=t._movement;if(!t.axis){const r=Math.abs(n)*Xd-Math.abs(o);r<0?t.axis="angle":r>0&&(t.axis="scale")}}restrictToAxis(t){this.config.lockDirection&&(this.state.axis==="scale"?t[1]=0:this.state.axis==="angle"&&(t[0]=0))}cancel(){const t=this.state;t.canceled||setTimeout(()=>{t.canceled=!0,t._active=!1,this.compute(),this.emit()},0)}touchStart(t){this.ctrl.setEventIds(t);const n=this.state,o=this.ctrl.touchIds;if(n._active&&n._touchIds.every(s=>o.has(s))||o.size<2)return;this.start(t),n._touchIds=Array.from(o).slice(0,2);const r=Wi(t,n._touchIds);r&&this.pinchStart(t,r)}pointerStart(t){if(t.buttons!=null&&t.buttons%2!==1)return;this.ctrl.setEventIds(t),t.target.setPointerCapture(t.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(t.pointerId,t),n._pointerEvents.size<2))return;this.start(t);const s=$r(...Array.from(o.values()));s&&this.pinchStart(t,s)}pinchStart(t,n){const o=this.state;o.origin=n.origin,this.computeValues([n.distance,n.angle]),this.computeInitial(),this.compute(t),this.emit()}touchMove(t){if(!this.state._active)return;const n=Wi(t,this.state._touchIds);n&&this.pinchMove(t,n)}pointerMove(t){const n=this.state._pointerEvents;if(n.has(t.pointerId)&&n.set(t.pointerId,t),!this.state._active)return;const o=$r(...Array.from(n.values()));o&&this.pinchMove(t,o)}pinchMove(t,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(t),this.emit()}touchEnd(t){this.ctrl.setEventIds(t),this.state._active&&this.state._touchIds.some(n=>!this.ctrl.touchIds.has(n))&&(this.state._active=!1,this.compute(t),this.emit())}pointerEnd(t){const n=this.state;this.ctrl.setEventIds(t);try{t.target.releasePointerCapture(t.pointerId)}catch(o){}n._pointerEvents.has(t.pointerId)&&n._pointerEvents.delete(t.pointerId),n._active&&n._pointerEvents.size<2&&(n._active=!1,this.compute(t),this.emit())}gestureStart(t){t.cancelable&&t.preventDefault();const n=this.state;n._active||(this.start(t),this.computeValues([t.scale,t.rotation]),n.origin=[t.clientX,t.clientY],this.compute(t),this.emit())}gestureMove(t){if(t.cancelable&&t.preventDefault(),!this.state._active)return;const n=this.state;this.computeValues([t.scale,t.rotation]),n.origin=[t.clientX,t.clientY];const o=n._movement;n._movement=[t.scale-1,t.rotation],n._delta=ve.sub(n._movement,o),this.compute(t),this.emit()}gestureEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}wheel(t){const n=this.config.modifierKey;n&&(Array.isArray(n)?!n.find(o=>t[o]):!t[n])||(this.state._active?this.wheelChange(t):this.wheelStart(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(t){this.start(t),this.wheelChange(t)}wheelChange(t){"uv"in t||t.cancelable&&t.preventDefault();const o=this.state;o._delta=[-Gi(t)[1]/Qd*o.offset[0],0],ve.addTo(o._movement,o._delta),oa(o),this.state.origin=[t.clientX,t.clientY],this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){const n=this.config.device;n&&(t(n,"start",this[n+"Start"].bind(this)),t(n,"change",this[n+"Move"].bind(this)),t(n,"end",this[n+"End"].bind(this)),t(n,"cancel",this[n+"End"].bind(this)),t("lostPointerCapture","",this[n+"End"].bind(this))),this.config.pinchOnWheel&&t("wheel","",this.wheel.bind(this),{passive:!1})}}const Rd=pe(pe({},Ri),{},{device(e,t,{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(e,t,{scaleBounds:n={},angleBounds:o={}}){const r=a=>{const l=qi(ro(n,a),{min:-1/0,max:1/0});return[l.min,l.max]},s=a=>{const l=qi(ro(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(e,t,n){return this.lockDirection=n.axis==="lock",ve.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});pe(pe({},jt),{},{mouseOnly:(e=!0)=>e});class e1 extends Qi{constructor(...t){super(...t),Ee(this,"ingKey","wheeling")}wheel(t){this.state._active||this.start(t),this.wheelChange(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(t){const n=this.state;n._delta=Gi(t),ve.addTo(n._movement,n._delta),oa(n),this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("wheel","",this.wheel.bind(this))}}const t1=jt;pe(pe({},jt),{},{mouseOnly:(e=!0)=>e});const Pr=new Map,Mr=new Map;function Fr(e){Pr.set(e.key,e.engine),Mr.set(e.key,e.resolver)}const ra={key:"drag",engine:Ld,resolver:qd},n1={key:"pinch",engine:Jd,resolver:Rd},o1={key:"wheel",engine:e1,resolver:t1};function r1(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function s1(e,t){if(e==null)return{};var n=r1(e,t),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}const i1={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=ze.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},a1=["target","eventOptions","window","enabled","transform"];function so(e={},t){const n={};for(const[o,r]of Object.entries(t))switch(typeof r){case"function":n[o]=r.call(n,e[o],o,e);break;case"object":n[o]=so(e[o],r);break;case"boolean":r&&(n[o]=e[o]);break}return n}function l1(e,t,n={}){const o=e,{target:r,eventOptions:s,window:a,enabled:l,transform:c}=o,u=s1(o,a1);if(n.shared=so({target:r,eventOptions:s,window:a,enabled:l,transform:c},i1),t){const d=Mr.get(t);n[t]=so(pe({shared:n.shared},u),d)}else for(const d in u){const m=Mr.get(d);m&&(n[d]=so(pe({shared:n.shared},u[d]),m))}return n}class sa{constructor(t,n){Ee(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,o,r,s){const a=this._listeners,l=Id(n,o),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=pe(pe({},c),s);t.addEventListener(l,r,u);const d=()=>{t.removeEventListener(l,r,u),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class c1{constructor(){Ee(this,"_timeouts",new Map)}add(t,n,o=140,...r){this.remove(t),this._timeouts.set(t,window.setTimeout(n,o,...r))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class u1{constructor(t){Ee(this,"gestures",new Set),Ee(this,"_targetEventStore",new sa(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}}),d1(this,t)}setEventIds(t){if(oo(t))return this.touchIds=new Set(Pd(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=l1(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){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=ia(o,l.eventOptions,!!r);if(l.enabled){const u=Pr.get(a);new u(this,t,a).bind(c)}}const s=ia(o,n.eventOptions,!!r);for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](pe(pe({},this.state.shared),{},{event:l,args:t})),void 0,!0)}for(const s in o)o[s]=Nd(...o[s]);if(!r)return o;for(const s in o){const{device:a,capture:l,passive:c}=Ed(s);this._targetEventStore.add(r,a,"",o[s],{capture:l,passive:c})}}}}function Kt(e,t){e.gestures.add(t),e.gestureEventStores[t]=new sa(e,t),e.gestureTimeoutStores[t]=new c1}function d1(e,t){t.drag&&Kt(e,"drag"),t.wheel&&Kt(e,"wheel"),t.scroll&&Kt(e,"scroll"),t.move&&Kt(e,"move"),t.pinch&&Kt(e,"pinch"),t.hover&&Kt(e,"hover")}const ia=(e,t,n)=>(o,r,s,a={},l=!1)=>{var c,u;const d=(c=a.capture)!==null&&c!==void 0?c:t.capture,m=(u=a.passive)!==null&&u!==void 0?u:t.passive;let g=l?o:wd(o,r,d);n&&m&&(g+="Passive"),e[g]=e[g]||[],e[g].push(s)},f1=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function m1(e){const t={},n={},o=new Set;for(let r in e)f1.test(r)?(o.add(RegExp.lastMatch),n[r]=e[r]):t[r]=e[r];return[n,t,o]}function Wt(e,t,n,o,r,s){if(!e.has(n)||!Pr.has(o))return;const a=n+"Start",l=n+"End",c=u=>{let d;return u.first&&a in t&&t[a](u),n in t&&(d=t[n](u)),u.last&&l in t&&t[l](u),d};r[o]=c,s[o]=s[o]||{}}function h1(e,t){const[n,o,r]=m1(e),s={};return Wt(r,n,"onDrag","drag",s,t),Wt(r,n,"onWheel","wheel",s,t),Wt(r,n,"onScroll","scroll",s,t),Wt(r,n,"onPinch","pinch",s,t),Wt(r,n,"onMove","move",s,t),Wt(r,n,"onHover","hover",s,t),{handlers:s,config:t,nativeHandlers:o}}function Nr(e,t={},n,o){const r=i.useMemo(()=>new u1(e),[]);if(r.applyHandlers(e,o),r.applyConfig(t,n),i.useEffect(r.effect.bind(r)),i.useEffect(()=>r.clean.bind(r),[]),t.target===void 0)return r.bind.bind(r)}function io(e,t){return Fr(ra),Nr({drag:e},t||{},"drag")}function p1(e,t){return Fr(o1),Nr({wheel:e},t||{},"wheel")}function g1(e){return e.forEach(Fr),function(n,o){const{handlers:r,nativeHandlers:s,config:a}=h1(n,o||{});return Nr(r,a,void 0,s)}}const ao="adm-popup",v1=Object.assign(Object.assign({},pd),{closeOnSwipe:!1,position:"bottom"}),Ht=e=>{const{locale:t,popup:n={}}=Pe(),o=oe(v1,n,e),r=K(`${ao}-body`,o.bodyClassName,`${ao}-body-position-${o.position}`),[s,a]=i.useState(o.visible),l=i.useRef(null);Ns(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 v,p;c.current||(a(o.visible),o.visible?(v=o.afterShow)===null||v===void 0||v.call(o):(p=o.afterClose)===null||p===void 0||p.call(o))}}),d=io(({swipe:[,v]})=>{var p;o.closeOnSwipe&&(v===1&&o.position==="bottom"||v===-1&&o.position==="top")&&((p=o.onClose)===null||p===void 0||p.call(o))},{axis:"y",enabled:["top","bottom"].includes(o.position)}),m=gd(s&&o.visible),g=Di(o.stopPropagation,Y(o,i.createElement("div",Object.assign({className:ao,onClick:o.onClick,style:{display:s?void 0:"none",touchAction:["top","bottom"].includes(o.position)?"none":"auto"}},d()),o.mask&&i.createElement(to,{visible:m,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose,onMaskClick:v=>{var p,y;(p=o.onMaskClick)===null||p===void 0||p.call(o,v),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(v=>v===0?"unset":"none"),transform:u.to(v=>o.position==="bottom"?`translate(0, ${v}%)`:o.position==="top"?`translate(0, -${v}%)`:o.position==="left"?`translate(-${v}%, 0)`:o.position==="right"?`translate(${v}%, 0)`:"none")}),ref:l},o.showCloseButton&&i.createElement("a",{className:K(`${ao}-close-icon`,"adm-plain-anchor"),onClick:()=>{var v;(v=o.onClose)===null||v===void 0||v.call(o)},role:"button","aria-label":t.common.close},o.closeIcon),o.children))));return i.createElement(eo,{active:s,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose},Rn(o.getContainer,g))},aa="adm-safe-area",Cn=e=>Y(e,i.createElement("div",{className:K(aa,`${aa}-position-${e.position}`)})),lo=Object.assign({},tc),{version:b1,render:y1,unmountComponentAtNode:C1}=lo;let co;try{Number((b1||"").split(".")[0])>=18&&lo.createRoot&&(co=lo.createRoot)}catch(e){}function la(e){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:t}=lo;t&&typeof t=="object"&&(t.usingClientEntryPoint=e)}const uo="__antd_mobile_root__";function x1(e,t){y1(e,t)}function S1(e,t){la(!0);const n=t[uo]||co(t);la(!1),n.render(e),t[uo]=n}function w1(e,t){if(co){S1(e,t);return}x1(e,t)}function k1(e){return C1(e)}function E1(e){return yt(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var t;(t=e[uo])===null||t===void 0||t.unmount(),delete e[uo]})})}function I1(e){return co?E1(e):k1(e)}function Or(e){const t=document.createElement("div");document.body.appendChild(t);function n(){I1(t)&&t.parentNode&&t.parentNode.removeChild(t)}return w1(e,t),n}function xn(e){const t=i.forwardRef((r,s)=>{const[a,l]=i.useState(!1),c=i.useRef(!1),[u,d]=i.useState(e),m=i.useRef(0);i.useEffect(()=>{c.current?v():l(!0)},[]);function g(){var p,y;c.current=!0,l(!1),(y=(p=u.props).onClose)===null||y===void 0||y.call(p)}function v(){var p,y;o(),(y=(p=u.props).afterClose)===null||y===void 0||y.call(p)}return i.useImperativeHandle(s,()=>({close:g,replace:p=>{var y,b;m.current++,(b=(y=u.props).afterClose)===null||b===void 0||b.call(y),d(p)}})),i.cloneElement(u,Object.assign(Object.assign({},u.props),{key:m.current,visible:a,onClose:g,afterClose:v}))}),n=i.createRef(),o=Or(i.createElement(t,{ref:n}));return{close:()=>yt(this,void 0,void 0,function*(){var r,s,a;n.current?(a=n.current)===null||a===void 0||a.close():(o(),(s=(r=e.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",$1={visible:!1,actions:[],cancelText:"",closeOnAction:!1,closeOnMaskClick:!0,safeArea:!0,destroyOnClose:!1,forceRender:!1},ca=e=>{const t=oe($1,e),{styles:n}=t;return i.createElement(Ht,{visible:t.visible,onMaskClick:()=>{var o,r;(o=t.onMaskClick)===null||o===void 0||o.call(t),t.closeOnMaskClick&&((r=t.onClose)===null||r===void 0||r.call(t))},afterClose:t.afterClose,className:K(`${_e}-popup`,t.popupClassName),style:t.popupStyle,getContainer:t.getContainer,destroyOnClose:t.destroyOnClose,forceRender:t.forceRender,bodyStyle:n==null?void 0:n.body,maskStyle:n==null?void 0:n.mask},Y(t,i.createElement("div",{className:_e},t.extra&&i.createElement("div",{className:`${_e}-extra`},t.extra),i.createElement("div",{className:`${_e}-button-list`},t.actions.map((o,r)=>i.createElement("div",{key:o.key,className:`${_e}-button-item-wrapper`},i.createElement("a",{className:K("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=t.onAction)===null||a===void 0||a.call(t,o,r),t.closeOnAction&&((l=t.onClose)===null||l===void 0||l.call(t))},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))))),t.cancelText&&i.createElement("div",{className:`${_e}-cancel`,role:"option","aria-label":t.cancelText},i.createElement("div",{className:`${_e}-button-item-wrapper`},i.createElement("a",{className:K("adm-plain-anchor",`${_e}-button-item`),onClick:t.onClose},i.createElement("div",{className:`${_e}-button-item-name`},t.cancelText)))),t.safeArea&&i.createElement(Cn,{position:"bottom"}))))};function _1(e){return xn(i.createElement(ca,Object.assign({},e)))}const P1=we(ca,{show:_1}),ua="adm-auto-center",M1=e=>Y(e,i.createElement("div",{className:ua},i.createElement("div",{className:`${ua}-content`},e.children)));var Tr={},F1=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tr,"__esModule",{value:!0});var Dr=Tr.staged=void 0;const N1=F1(i);function da(e){return typeof e=="function"?N1.default.createElement(O1,{stage:e}):e}function O1(e){const t=e.stage();return da(t)}function T1(e){return function(n,o){const r=e(n,o);return da(r)}}Dr=Tr.staged=T1;function Et(e){return typeof e=="number"?`${e}px`:e}const D1=e=>{const t=i.useRef(null),[n]=te.useInViewport(t);return i.useEffect(()=>{n&&e.onActive()},[n]),i.createElement("div",{ref:t})},Ar=te.createUpdateEffect(te.useIsomorphicLayoutEffect),A1=()=>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"})),L1=()=>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"})),fo="adm-image",B1={fit:"fill",placeholder:i.createElement("div",{className:`${fo}-tip`},i.createElement(A1,null)),fallback:i.createElement("div",{className:`${fo}-tip`},i.createElement(L1,null)),lazy:!1,draggable:!1},fa=Dr(e=>{const t=oe(B1,e),[n,o]=i.useState(!1),[r,s]=i.useState(!1),a=i.useRef(null),l=i.useRef(null);let c=t.src,u=t.srcSet;const[d,m]=i.useState(!t.lazy);c=d?t.src:void 0,u=d?t.srcSet:void 0,Ar(()=>{o(!1),s(!1)},[c]),i.useEffect(()=>{var p;!((p=l.current)===null||p===void 0)&&p.complete&&o(!0)},[]);function g(){if(r)return i.createElement(i.Fragment,null,t.fallback);const p=i.createElement("img",{ref:l,id:t.id,className:`${fo}-img`,src:c,alt:t.alt,onClick:t.onClick,onLoad:y=>{var b;o(!0),(b=t.onLoad)===null||b===void 0||b.call(t,y)},onError:y=>{var b;s(!0),(b=t.onError)===null||b===void 0||b.call(t,y)},style:{objectFit:t.fit,display:n?"block":"none"},crossOrigin:t.crossOrigin,decoding:t.decoding,loading:t.loading,referrerPolicy:t.referrerPolicy,sizes:t.sizes,srcSet:u,useMap:t.useMap,draggable:t.draggable});return i.createElement(i.Fragment,null,!n&&t.placeholder,p)}const v={};return t.width&&(v["--width"]=Et(t.width),v.width=Et(t.width)),t.height&&(v["--height"]=Et(t.height),v.height=Et(t.height)),Y(t,i.createElement("div",{ref:a,className:fo,style:v,onClick:t.onContainerClick},t.lazy&&!d&&i.createElement(D1,{onActive:()=>{m(!0)}}),g()))}),Ut="adm-badge",ma=i.createElement(i.Fragment,null),ha=we(e=>{const{content:t,color:n,children:o}=e,r=t===ma,s=K(Ut,{[`${Ut}-fixed`]:!!o,[`${Ut}-dot`]:r,[`${Ut}-bordered`]:e.bordered}),a=t||t===0?Y(e,i.createElement("div",{className:s,style:{"--color":n}},!r&&i.createElement("div",{className:`${Ut}-content`},t))):null;return o?i.createElement("div",{className:K(`${Ut}-wrapper`,e.wrapperClassName),style:e.wrapperStyle},o,a):a},{dot:ma}),V1="adm-dot-loading",z1={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},Z1={color:"default"},j1=i.memo(e=>{var t;const n=oe(Z1,e);return Y(n,i.createElement("div",{style:{color:(t=z1[n.color])!==null&&t!==void 0?t:n.color},className:K("adm-loading",V1)},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 K1(e){return!!e&&typeof e=="object"&&typeof e.then=="function"}function W1(){return Tt?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const Ze="adm-button",H1={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:i.createElement(j1,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},st=i.forwardRef((e,t)=>{const n=oe(H1,e),[o,r]=i.useState(!1),s=i.useRef(null),a=n.loading==="auto"?o:n.loading,l=n.disabled||a;i.useImperativeHandle(t,()=>({get nativeElement(){return s.current}}));const c=u=>yt(void 0,void 0,void 0,function*(){if(!n.onClick)return;const d=n.onClick(u);if(K1(d))try{r(!0),yield d,r(!1)}catch(m){throw r(!1),m}});return Y(n,i.createElement("button",{ref:s,type:n.type,onClick:c,className:K(Ze,{[`${Ze}-${n.color}`]:n.color,[`${Ze}-block`]:n.block,[`${Ze}-disabled`]:l,[`${Ze}-fill-outline`]:n.fill==="outline",[`${Ze}-fill-none`]:n.fill==="none",[`${Ze}-mini`]:n.size==="mini",[`${Ze}-small`]:n.size==="small",[`${Ze}-large`]:n.size==="large",[`${Ze}-loading`]:a},`${Ze}-shape-${n.shape}`),disabled:l,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onTouchStart:n.onTouchStart,onTouchEnd:n.onTouchEnd},a?i.createElement("div",{className:`${Ze}-loading-wrapper`},n.loadingIcon,n.loadingText):i.createElement("span",null,n.children)))});var pa={exports:{}};(function(e,t){(function(n,o){e.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",g="quarter",v="year",p="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,w={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(_){var P=["th","st","nd","rd"],E=_%100;return"["+_+(P[(E-20)%10]||P[E]||P[0])+"]"}},x=function(_,P,E){var D=String(_);return!D||D.length>=P?_:""+Array(P+1-D.length).join(E)+_},S={s:x,z:function(_){var P=-_.utcOffset(),E=Math.abs(P),D=Math.floor(E/60),T=E%60;return(P<=0?"+":"-")+x(D,2,"0")+":"+x(T,2,"0")},m:function _(P,E){if(P.date()<E.date())return-_(E,P);var D=12*(E.year()-P.year())+(E.month()-P.month()),T=P.clone().add(D,m),z=E-T<0,j=P.clone().add(D+(z?-1:1),m);return+(-(D+(E-T)/(z?T-j:j-T))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:m,y:v,w:d,d:u,D:p,h:c,m:l,s:a,ms:s,Q:g}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},k="en",I={};I[k]=w;var M="$isDayjsObject",O=function(_){return _ instanceof W||!(!_||!_[M])},L=function _(P,E,D){var T;if(!P)return k;if(typeof P=="string"){var z=P.toLowerCase();I[z]&&(T=z),E&&(I[z]=E,T=z);var j=P.split("-");if(!T&&j.length>1)return _(j[0])}else{var H=P.name;I[H]=P,T=H}return!D&&T&&(k=T),T||!D&&k},F=function(_,P){if(O(_))return _.clone();var E=typeof P=="object"?P:{};return E.date=_,E.args=arguments,new W(E)},N=S;N.l=L,N.i=O,N.w=function(_,P){return F(_,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var W=function(){function _(E){this.$L=L(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[M]=!0}var P=_.prototype;return P.parse=function(E){this.$d=function(D){var T=D.date,z=D.utc;if(T===null)return new Date(NaN);if(N.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var j=T.match(b);if(j){var H=j[2]-1||0,U=(j[7]||"0").substring(0,3);return z?new Date(Date.UTC(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)):new Date(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)}}return new Date(T)}(E),this.init()},P.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},P.$utils=function(){return N},P.isValid=function(){return this.$d.toString()!==y},P.isSame=function(E,D){var T=F(E);return this.startOf(D)<=T&&T<=this.endOf(D)},P.isAfter=function(E,D){return F(E)<this.startOf(D)},P.isBefore=function(E,D){return this.endOf(D)<F(E)},P.$g=function(E,D,T){return N.u(E)?this[D]:this.set(T,E)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(E,D){var T=this,z=!!N.u(D)||D,j=N.p(E),H=function(Z,G){var re=N.w(T.$u?Date.UTC(T.$y,G,Z):new Date(T.$y,G,Z),T);return z?re:re.endOf(u)},U=function(Z,G){return N.w(T.toDate()[Z].apply(T.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(G)),T)},J=this.$W,ne=this.$M,ee=this.$D,Ne="set"+(this.$u?"UTC":"");switch(j){case v:return z?H(1,0):H(31,11);case m:return z?H(1,ne):H(0,ne+1);case d:var q=this.$locale().weekStart||0,ue=(J<q?J+7:J)-q;return H(z?ee-ue:ee+(6-ue),ne);case u:case p:return U(Ne+"Hours",0);case c:return U(Ne+"Minutes",1);case l:return U(Ne+"Seconds",2);case a:return U(Ne+"Milliseconds",3);default:return this.clone()}},P.endOf=function(E){return this.startOf(E,!1)},P.$set=function(E,D){var T,z=N.p(E),j="set"+(this.$u?"UTC":""),H=(T={},T[u]=j+"Date",T[p]=j+"Date",T[m]=j+"Month",T[v]=j+"FullYear",T[c]=j+"Hours",T[l]=j+"Minutes",T[a]=j+"Seconds",T[s]=j+"Milliseconds",T)[z],U=z===u?this.$D+(D-this.$W):D;if(z===m||z===v){var J=this.clone().set(p,1);J.$d[H](U),J.init(),this.$d=J.set(p,Math.min(this.$D,J.daysInMonth())).$d}else H&&this.$d[H](U);return this.init(),this},P.set=function(E,D){return this.clone().$set(E,D)},P.get=function(E){return this[N.p(E)]()},P.add=function(E,D){var T,z=this;E=Number(E);var j=N.p(D),H=function(ne){var ee=F(z);return N.w(ee.date(ee.date()+Math.round(ne*E)),z)};if(j===m)return this.set(m,this.$M+E);if(j===v)return this.set(v,this.$y+E);if(j===u)return H(1);if(j===d)return H(7);var U=(T={},T[l]=o,T[c]=r,T[a]=n,T)[j]||1,J=this.$d.getTime()+E*U;return N.w(J,this)},P.subtract=function(E,D){return this.add(-1*E,D)},P.format=function(E){var D=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var z=E||"YYYY-MM-DDTHH:mm:ssZ",j=N.z(this),H=this.$H,U=this.$m,J=this.$M,ne=T.weekdays,ee=T.months,Ne=T.meridiem,q=function(G,re,ge,Ce){return G&&(G[re]||G(D,z))||ge[re].slice(0,Ce)},ue=function(G){return N.s(H%12||12,G,"0")},Z=Ne||function(G,re,ge){var Ce=G<12?"AM":"PM";return ge?Ce.toLowerCase():Ce};return z.replace(C,function(G,re){return re||function(ge){switch(ge){case"YY":return String(D.$y).slice(-2);case"YYYY":return N.s(D.$y,4,"0");case"M":return J+1;case"MM":return N.s(J+1,2,"0");case"MMM":return q(T.monthsShort,J,ee,3);case"MMMM":return q(ee,J);case"D":return D.$D;case"DD":return N.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return q(T.weekdaysMin,D.$W,ne,2);case"ddd":return q(T.weekdaysShort,D.$W,ne,3);case"dddd":return ne[D.$W];case"H":return String(H);case"HH":return N.s(H,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return Z(H,U,!0);case"A":return Z(H,U,!1);case"m":return String(U);case"mm":return N.s(U,2,"0");case"s":return String(D.$s);case"ss":return N.s(D.$s,2,"0");case"SSS":return N.s(D.$ms,3,"0");case"Z":return j}return null}(G)||j.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(E,D,T){var z,j=this,H=N.p(D),U=F(E),J=(U.utcOffset()-this.utcOffset())*o,ne=this-U,ee=function(){return N.m(j,U)};switch(H){case v:z=ee()/12;break;case m:z=ee();break;case g:z=ee()/3;break;case d:z=(ne-J)/6048e5;break;case u:z=(ne-J)/864e5;break;case c:z=ne/r;break;case l:z=ne/o;break;case a:z=ne/n;break;default:z=ne}return T?z:N.a(z)},P.daysInMonth=function(){return this.endOf(m).$D},P.$locale=function(){return I[this.$L]},P.locale=function(E,D){if(!E)return this.$L;var T=this.clone(),z=L(E,D,!0);return z&&(T.$L=z),T},P.clone=function(){return N.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},_}(),V=W.prototype;return F.prototype=V,[["$ms",s],["$s",a],["$m",l],["$H",c],["$W",u],["$M",m],["$y",v],["$D",p]].forEach(function(_){V[_[1]]=function(P){return this.$g(P,_[0],_[1])}}),F.extend=function(_,P){return _.$i||(_(P,W,F),_.$i=!0),F},F.locale=L,F.isDayjs=O,F.unix=function(_){return F(1e3*_)},F.en=I[k],F.Ls=I,F.p={},F})})(pa);var U1=pa.exports;const he=xt(U1),ga=()=>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"})))))),va=()=>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 ba={exports:{}};(function(e,t){(function(n,o){e.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,g,v,p=a(this),y=(d=this.isoWeekYear(),m=this.$u,g=(m?s.utc:s)().year(d).startOf("year"),v=4-g.isoWeekday(),g.isoWeekday()>4&&(v+=7),g.add(v,n));return p.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(),g=!!m.u(d)||d;return m.p(u)==="isoweek"?g?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)}}})})(ba);var Y1=ba.exports;const Lr=xt(Y1);function Ie(e){const{value:t,defaultValue:n,onChange:o}=e,r=te.useUpdate(),s=i.useRef(t!==void 0?t:n);t!==void 0&&(s.current=t);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 G1(e,t){return e.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return t[o]})}function ya(e,t){return e===void 0||t===null?null:Array.isArray(t)?t:[t,t]}function Br(e){return he().year(e.year).month(e.month-1).date(1)}he.extend(Lr);const fe="adm-calendar",q1={weekStartsOn:"Sunday",defaultValue:null,allowClear:!0,prevMonthButton:i.createElement(ga,null),prevYearButton:i.createElement(va,null),nextMonthButton:i.createElement(ga,null),nextYearButton:i.createElement(va,null)},X1=i.forwardRef((e,t)=>{const n=he(),o=oe(q1,e),{locale:r}=Pe(),s=[...r.Calendar.markItems];if(o.weekStartsOn==="Sunday"){const x=s.pop();x&&s.unshift(x)}const[a,l]=Ie({value:o.value===void 0?void 0:ya(o.selectionMode,o.value),defaultValue:ya(o.selectionMode,o.defaultValue),onChange:x=>{var S,k;o.selectionMode==="single"?(S=o.onChange)===null||S===void 0||S.call(o,x?x[0]:null):o.selectionMode==="range"&&((k=o.onChange)===null||k===void 0||k.call(o,x))}}),[c,u]=i.useState(!1),[d,m]=i.useState(()=>he(a?a[0]:n).date(1));te.useUpdateEffect(()=>{var x;(x=o.onPageChange)===null||x===void 0||x.call(o,d.year(),d.month()+1)},[d]),i.useImperativeHandle(t,()=>({jumpTo:x=>{let S;typeof x=="function"?S=x({year:d.year(),month:d.month()+1}):S=x,m(Br(S))},jumpToToday:()=>{m(he().date(1))}}));const g=(x,S,k)=>{const I=d[x](S,k);if(x==="subtract"&&o.minPage){const M=Br(o.minPage);if(I.isBefore(M,k))return}if(x==="add"&&o.maxPage){const M=Br(o.maxPage);if(I.isAfter(M,k))return}m(I)},v=i.createElement("div",{className:`${fe}-header`},i.createElement("a",{className:`${fe}-arrow-button ${fe}-arrow-button-year`,onClick:()=>{g("subtract",1,"year")}},o.prevYearButton),i.createElement("a",{className:`${fe}-arrow-button ${fe}-arrow-button-month`,onClick:()=>{g("subtract",1,"month")}},o.prevMonthButton),i.createElement("div",{className:`${fe}-title`},G1(r.Calendar.yearAndMonth,{year:d.year().toString(),month:(d.month()+1).toString()})),i.createElement("a",{className:K(`${fe}-arrow-button`,`${fe}-arrow-button-right`,`${fe}-arrow-button-right-month`),onClick:()=>{g("add",1,"month")}},o.nextMonthButton),i.createElement("a",{className:K(`${fe}-arrow-button`,`${fe}-arrow-button-right`,`${fe}-arrow-button-right-year`),onClick:()=>{g("add",1,"year")}},o.nextYearButton)),p=i.useMemo(()=>o.max&&he(o.max),[o.max]),y=i.useMemo(()=>o.min&&he(o.min),[o.min]);function b(){var x;const S=[];let k=d.subtract(d.isoWeekday(),"day");for(o.weekStartsOn==="Monday"&&(k=k.add(1,"day"));S.length<6*7;){const I=k;let M=!1,O=!1,L=!1,F=!1,N=!1;if(a){const[_,P]=a;O=I.isSame(_,"day"),L=I.isSame(P,"day"),M=O||L||I.isAfter(_,"day")&&I.isBefore(P,"day"),M&&(F=(S.length%7===0||I.isSame(I.startOf("month"),"day"))&&!O,N=(S.length%7===6||I.isSame(I.endOf("month"),"day"))&&!L)}const W=I.month()===d.month(),V=o.shouldDisableDate?o.shouldDisableDate(I.toDate()):p&&I.isAfter(p,"day")||y&&I.isBefore(y,"day");S.push(i.createElement("div",{key:I.valueOf(),className:K(`${fe}-cell`,(V||!W)&&`${fe}-cell-disabled`,W&&{[`${fe}-cell-today`]:I.isSame(n,"day"),[`${fe}-cell-selected`]:M,[`${fe}-cell-selected-begin`]:O,[`${fe}-cell-selected-end`]:L,[`${fe}-cell-selected-row-begin`]:F,[`${fe}-cell-selected-row-end`]:N}),onClick:()=>{if(!o.selectionMode||V)return;const _=I.toDate();W||m(I.clone().date(1));function P(){if(!o.allowClear||!a)return!1;const[E,D]=a;return I.isSame(E,"date")&&I.isSame(D,"day")}if(o.selectionMode==="single"){if(o.allowClear&&P()){l(null);return}l([_,_])}else if(o.selectionMode==="range"){if(!a){l([_,_]),u(!0);return}if(P()){l(null),u(!1);return}if(c){const E=a[0];l(E>_?[_,E]:[E,_]),u(!1)}else l([_,_]),u(!0)}}},i.createElement("div",{className:`${fe}-cell-top`},o.renderDate?o.renderDate(I.toDate()):I.date()),i.createElement("div",{className:`${fe}-cell-bottom`},(x=o.renderLabel)===null||x===void 0?void 0:x.call(o,I.toDate())))),k=k.add(1,"day")}return S}const C=i.createElement("div",{className:`${fe}-cells`},b()),w=i.createElement("div",{className:`${fe}-mark`},s.map((x,S)=>i.createElement("div",{key:S,className:`${fe}-mark-cell`},x)));return Y(o,i.createElement("div",{className:fe},v,w,C))});var Ca={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 Vr=Symbol.for("react.element"),zr=Symbol.for("react.portal"),mo=Symbol.for("react.fragment"),ho=Symbol.for("react.strict_mode"),po=Symbol.for("react.profiler"),go=Symbol.for("react.provider"),vo=Symbol.for("react.context"),J1=Symbol.for("react.server_context"),bo=Symbol.for("react.forward_ref"),yo=Symbol.for("react.suspense"),Co=Symbol.for("react.suspense_list"),xo=Symbol.for("react.memo"),So=Symbol.for("react.lazy"),R1=Symbol.for("react.offscreen"),Sa;Sa=Symbol.for("react.module.reference");function je(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Vr:switch(e=e.type,e){case mo:case po:case ho:case yo:case Co:return e;default:switch(e=e&&e.$$typeof,e){case J1:case vo:case bo:case So:case xo:case go:return e;default:return t}}case zr:return t}}}ce.ContextConsumer=vo,ce.ContextProvider=go,ce.Element=Vr,ce.ForwardRef=bo,ce.Fragment=mo,ce.Lazy=So,ce.Memo=xo,ce.Portal=zr,ce.Profiler=po,ce.StrictMode=ho,ce.Suspense=yo,ce.SuspenseList=Co,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(e){return je(e)===vo},ce.isContextProvider=function(e){return je(e)===go},ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vr},ce.isForwardRef=function(e){return je(e)===bo},ce.isFragment=function(e){return je(e)===mo},ce.isLazy=function(e){return je(e)===So},ce.isMemo=function(e){return je(e)===xo},ce.isPortal=function(e){return je(e)===zr},ce.isProfiler=function(e){return je(e)===po},ce.isStrictMode=function(e){return je(e)===ho},ce.isSuspense=function(e){return je(e)===yo},ce.isSuspenseList=function(e){return je(e)===Co},ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mo||e===po||e===ho||e===yo||e===Co||e===R1||typeof e=="object"&&e!==null&&(e.$$typeof===So||e.$$typeof===xo||e.$$typeof===go||e.$$typeof===vo||e.$$typeof===bo||e.$$typeof===Sa||e.getModuleId!==void 0)},ce.typeOf=je,xa.exports=ce;var e0=xa.exports;const wo="adm-divider",t0={contentPosition:"center",direction:"horizontal"},Zr=e=>{const t=oe(t0,e);return Y(t,i.createElement("div",{className:K(wo,`${wo}-${t.direction}`,`${wo}-${t.contentPosition}`)},t.children&&i.createElement("div",{className:`${wo}-content`},t.children)))};function wa(e,t){const n=te.useMemoizedFn(e);te.useIsomorphicLayoutEffect(()=>{const o=t.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)},[t])}function n0(e,t,n){if(e&&typeof MutationObserver!="undefined"){let o=new MutationObserver(()=>{n()});return o.observe(e,t),()=>{o&&(o.disconnect(),o=null)}}return()=>{}}function ka(e,t,n){const o=te.useMemoizedFn(e);i.useEffect(()=>n0(t.current,n,o),[t])}function ye(e,t,n){let o=e;return t!==void 0&&(o=Math.max(e,t)),n!==void 0&&(o=Math.min(o,n)),o}const o0=(e,t)=>{const[{scrollLeft:n},o]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}}));function r(s=!1){const a=e.current;if(!a||t===void 0)return;const c=a.children.item(t).children.item(0),u=c.offsetLeft,d=c.offsetWidth,m=a.offsetWidth,g=a.scrollWidth,v=a.scrollLeft;if(g-m<=0)return;const y=ye(u-(m-d)/2,0,g-m);o.start({scrollLeft:y,from:{scrollLeft:v},immediate:s&&!n.isAnimating})}return te.useIsomorphicLayoutEffect(()=>{r(!0)},[]),Ar(()=>{r()},[t]),ka(()=>{r(!0)},e,{subtree:!0,childList:!0,characterData:!0}),{scrollLeft:n,animate:r}},ko="adm-scroll-mask",r0=e=>{const t=i.useRef(null),[{leftMaskOpacity:n,rightMaskOpacity:o},r]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}})),{run:s}=te.useThrottleFn((a=!1)=>{if(!t.current)return;const c=e.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=e.scrollTrackRef.current;if(a)return a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)},[]),i.createElement(i.Fragment,null,i.createElement(ke.div,{ref:t,className:K(ko,`${ko}-left`),style:{opacity:n}}),i.createElement(ke.div,{className:K(ko,`${ko}-right`),style:{opacity:o}}))};function jr(e,t){let n=0;function o(r){i.Children.forEach(r,s=>{e0.isFragment(s)?o(s.props.children):(t(s,n),n+=1)})}o(e)}function Ea(e,t,n){return e*t*n/(t+n*e)}function Eo(e,t,n,o,r=.15){return r===0?ye(e,t,n):e<t?-Ea(t-e,o,r)+t:e>n?+Ea(e-n,o,r)+n:e}var s0=typeof Element!="undefined",i0=typeof Map=="function",a0=typeof Set=="function",l0=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Io(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,o,r;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!Io(e[o],t[o]))return!1;return!0}var s;if(i0&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(o=s.next()).done;)if(!t.has(o.value[0]))return!1;for(s=e.entries();!(o=s.next()).done;)if(!Io(o.value[1],t.get(o.value[0])))return!1;return!0}if(a0&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(o=s.next()).done;)if(!t.has(o.value[0]))return!1;return!0}if(l0&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[o]))return!1;if(s0&&e instanceof Element)return!1;for(o=n;o--!==0;)if(!((r[o]==="_owner"||r[o]==="__v"||r[o]==="__o")&&e.$$typeof)&&!Io(e[r[o]],t[r[o]]))return!1;return!0}return e!==e&&t!==t}var c0=function(t,n){try{return Io(t,n)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const Kr=xt(c0);function Ia(e){if(e==null||e==="")return 0;const t=e.trim();return t.endsWith("px")?parseFloat(t):t.endsWith("rem")?parseFloat(t)*parseFloat(window.getComputedStyle(document.documentElement).fontSize):t.endsWith("vw")?parseFloat(t)*window.innerWidth/100:0}const Re="adm-picker-view",$a=i.memo(e=>{const{value:t,column:n,renderLabel:o}=e;function r(C){e.onSelect(C,e.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 C=u.current;C&&(d.current=Ia(window.getComputedStyle(C).getPropertyValue("height")))}),te.useIsomorphicLayoutEffect(()=>{if(l.current||t===null)return;const C=n.findIndex(x=>x.value===t);if(C<0)return;const w=C*-d.current;a.start({y:w,immediate:s.goal!==w})},[t,n]),te.useIsomorphicLayoutEffect(()=>{if(n.length===0)t!==null&&r(null);else if(!n.some(C=>C.value===t)){const C=n[0];r(C.value)}},[n,t]);function m(C){const w=C*-d.current;a.start({y:w});const x=n[C];x&&r(x.value)}const g=C=>{const{direction:[,w],distance:[,x],velocity:[,S],offset:[,k],last:I}=C;return{direction:w,distance:x,velocity:S,offset:k,last:I}},v=C=>{l.current=!0;const w=-((n.length-1)*d.current),x=0,{direction:S,last:k,velocity:I,offset:M}=g(C);if(k){l.current=!1;const O=M+I*S*50,L=ye(O,w,x),F=-Math.round(L/d.current);m(F)}else{const O=M;a.start({y:Eo(O,w,x,d.current*50,.2)})}},p=C=>{l.current=!0;const w=-((n.length-1)*d.current),x=0,{direction:S,last:k,velocity:I,distance:M}=g(C),O=-S,L=s.get();if(k){l.current=!1;const F=I*O*50,N=L+M*O+F,W=ye(N,w,x),V=-Math.round(W/d.current);m(V)}else{const F=L+M*O;a.start({y:Eo(F,w,x,d.current*50,.2)})}};io(C=>{C.event.stopPropagation(),v(C)},{axis:"y",from:()=>[0,s.get()],filterTaps:!0,pointer:{touch:!0},target:c}),g1(C=>{C.event.stopPropagation(),p(C)},{target:e.mouseWheel?c:void 0,axis:"y",from:()=>[0,s.get()],preventDefault:!0,eventOptions:On?{passive:!1}:void 0});let y=null;function b(){if(y===null)return null;const C=n[y],w=y-1,x=y+1,S=n[w],k=n[x];return i.createElement("div",{className:`${Re}-column-accessible`},i.createElement("div",{className:`${Re}-column-accessible-current`,role:"button","aria-label":C?`当前选择的是:${C.label}`:"当前未选择"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{S&&m(w)},role:S?"button":"text","aria-label":S?`选择上一项:${S.label}`:"没有上一项"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{k&&m(x)},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((C,w)=>{var x;const S=e.value===C.value;S&&(y=w);function k(){l.current=!1,m(w)}return i.createElement("div",{key:(x=C.key)!==null&&x!==void 0?x:C.value,"data-selected":S,className:K(`${Re}-column-item`,{[`${Re}-column-item-active`]:S}),onClick:k,"aria-hidden":!S,"aria-label":S?"active":""},i.createElement("div",{className:`${Re}-column-item-label`},o(C)))})),b())},(e,t)=>!(e.index!==t.index||e.value!==t.value||e.onSelect!==t.onSelect||e.renderLabel!==t.renderLabel||e.mouseWheel!==t.mouseWheel||!Kr(e.column,t.column)));$a.displayName="Wheel";function _a(e){let t=null;return()=>(t===null&&(t=e()),t)}function Pa(e,t){const n=_a(()=>(typeof e=="function"?e(t):e).map(a=>a.map(l=>typeof l=="string"?{label:l,value:l}:l))),o=_a(()=>t.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 Ma(e,t){return i.useMemo(()=>Pa(e,t),[e,t])}const Fa=e=>e.label;var Na={exports:{}},Oa={};/**
|
|
133
|
+
*/var Vr=Symbol.for("react.element"),zr=Symbol.for("react.portal"),mo=Symbol.for("react.fragment"),ho=Symbol.for("react.strict_mode"),po=Symbol.for("react.profiler"),go=Symbol.for("react.provider"),vo=Symbol.for("react.context"),Q1=Symbol.for("react.server_context"),bo=Symbol.for("react.forward_ref"),yo=Symbol.for("react.suspense"),Co=Symbol.for("react.suspense_list"),xo=Symbol.for("react.memo"),So=Symbol.for("react.lazy"),J1=Symbol.for("react.offscreen"),xa;xa=Symbol.for("react.module.reference");function je(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Vr:switch(e=e.type,e){case mo:case po:case ho:case yo:case Co:return e;default:switch(e=e&&e.$$typeof,e){case Q1:case vo:case bo:case So:case xo:case go:return e;default:return t}}case zr:return t}}}ce.ContextConsumer=vo,ce.ContextProvider=go,ce.Element=Vr,ce.ForwardRef=bo,ce.Fragment=mo,ce.Lazy=So,ce.Memo=xo,ce.Portal=zr,ce.Profiler=po,ce.StrictMode=ho,ce.Suspense=yo,ce.SuspenseList=Co,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(e){return je(e)===vo},ce.isContextProvider=function(e){return je(e)===go},ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vr},ce.isForwardRef=function(e){return je(e)===bo},ce.isFragment=function(e){return je(e)===mo},ce.isLazy=function(e){return je(e)===So},ce.isMemo=function(e){return je(e)===xo},ce.isPortal=function(e){return je(e)===zr},ce.isProfiler=function(e){return je(e)===po},ce.isStrictMode=function(e){return je(e)===ho},ce.isSuspense=function(e){return je(e)===yo},ce.isSuspenseList=function(e){return je(e)===Co},ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mo||e===po||e===ho||e===yo||e===Co||e===J1||typeof e=="object"&&e!==null&&(e.$$typeof===So||e.$$typeof===xo||e.$$typeof===go||e.$$typeof===vo||e.$$typeof===bo||e.$$typeof===xa||e.getModuleId!==void 0)},ce.typeOf=je,Ca.exports=ce;var R1=Ca.exports;const wo="adm-divider",e0={contentPosition:"center",direction:"horizontal"},Zr=e=>{const t=oe(e0,e);return Y(t,i.createElement("div",{className:K(wo,`${wo}-${t.direction}`,`${wo}-${t.contentPosition}`)},t.children&&i.createElement("div",{className:`${wo}-content`},t.children)))};function Sa(e,t){const n=te.useMemoizedFn(e);te.useIsomorphicLayoutEffect(()=>{const o=t.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)},[t])}function t0(e,t,n){if(e&&typeof MutationObserver!="undefined"){let o=new MutationObserver(()=>{n()});return o.observe(e,t),()=>{o&&(o.disconnect(),o=null)}}return()=>{}}function wa(e,t,n){const o=te.useMemoizedFn(e);i.useEffect(()=>t0(t.current,n,o),[t])}function ye(e,t,n){let o=e;return t!==void 0&&(o=Math.max(e,t)),n!==void 0&&(o=Math.min(o,n)),o}const n0=(e,t)=>{const[{scrollLeft:n},o]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}}));function r(s=!1){const a=e.current;if(!a||t===void 0)return;const c=a.children.item(t).children.item(0),u=c.offsetLeft,d=c.offsetWidth,m=a.offsetWidth,g=a.scrollWidth,v=a.scrollLeft;if(g-m<=0)return;const y=ye(u-(m-d)/2,0,g-m);o.start({scrollLeft:y,from:{scrollLeft:v},immediate:s&&!n.isAnimating})}return te.useIsomorphicLayoutEffect(()=>{r(!0)},[]),Ar(()=>{r()},[t]),wa(()=>{r(!0)},e,{subtree:!0,childList:!0,characterData:!0}),{scrollLeft:n,animate:r}},ko="adm-scroll-mask",o0=e=>{const t=i.useRef(null),[{leftMaskOpacity:n,rightMaskOpacity:o},r]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}})),{run:s}=te.useThrottleFn((a=!1)=>{if(!t.current)return;const c=e.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=e.scrollTrackRef.current;if(a)return a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)},[]),i.createElement(i.Fragment,null,i.createElement(ke.div,{ref:t,className:K(ko,`${ko}-left`),style:{opacity:n}}),i.createElement(ke.div,{className:K(ko,`${ko}-right`),style:{opacity:o}}))};function jr(e,t){let n=0;function o(r){i.Children.forEach(r,s=>{R1.isFragment(s)?o(s.props.children):(t(s,n),n+=1)})}o(e)}function ka(e,t,n){return e*t*n/(t+n*e)}function Eo(e,t,n,o,r=.15){return r===0?ye(e,t,n):e<t?-ka(t-e,o,r)+t:e>n?+ka(e-n,o,r)+n:e}var r0=typeof Element!="undefined",s0=typeof Map=="function",i0=typeof Set=="function",a0=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Io(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,o,r;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!Io(e[o],t[o]))return!1;return!0}var s;if(s0&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(o=s.next()).done;)if(!t.has(o.value[0]))return!1;for(s=e.entries();!(o=s.next()).done;)if(!Io(o.value[1],t.get(o.value[0])))return!1;return!0}if(i0&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(o=s.next()).done;)if(!t.has(o.value[0]))return!1;return!0}if(a0&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[o]))return!1;if(r0&&e instanceof Element)return!1;for(o=n;o--!==0;)if(!((r[o]==="_owner"||r[o]==="__v"||r[o]==="__o")&&e.$$typeof)&&!Io(e[r[o]],t[r[o]]))return!1;return!0}return e!==e&&t!==t}var l0=function(t,n){try{return Io(t,n)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const Kr=xt(l0);function Ea(e){if(e==null||e==="")return 0;const t=e.trim();return t.endsWith("px")?parseFloat(t):t.endsWith("rem")?parseFloat(t)*parseFloat(window.getComputedStyle(document.documentElement).fontSize):t.endsWith("vw")?parseFloat(t)*window.innerWidth/100:0}const Re="adm-picker-view",Ia=i.memo(e=>{const{value:t,column:n,renderLabel:o}=e;function r(C){e.onSelect(C,e.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 C=u.current;C&&(d.current=Ea(window.getComputedStyle(C).getPropertyValue("height")))}),te.useIsomorphicLayoutEffect(()=>{if(l.current||t===null)return;const C=n.findIndex(x=>x.value===t);if(C<0)return;const w=C*-d.current;a.start({y:w,immediate:s.goal!==w})},[t,n]),te.useIsomorphicLayoutEffect(()=>{if(n.length===0)t!==null&&r(null);else if(!n.some(C=>C.value===t)){const C=n[0];r(C.value)}},[n,t]);function m(C){const w=C*-d.current;a.start({y:w});const x=n[C];x&&r(x.value)}const g=C=>{const{direction:[,w],distance:[,x],velocity:[,S],offset:[,k],last:I}=C;return{direction:w,distance:x,velocity:S,offset:k,last:I}},v=C=>{l.current=!0;const w=-((n.length-1)*d.current),x=0,{direction:S,last:k,velocity:I,offset:M}=g(C);if(k){l.current=!1;const O=M+I*S*50,L=ye(O,w,x),F=-Math.round(L/d.current);m(F)}else{const O=M;a.start({y:Eo(O,w,x,d.current*50,.2)})}},p=C=>{l.current=!0;const w=-((n.length-1)*d.current),x=0,{direction:S,last:k,velocity:I,distance:M}=g(C),O=-S,L=s.get();if(k){l.current=!1;const F=I*O*50,N=L+M*O+F,W=ye(N,w,x),V=-Math.round(W/d.current);m(V)}else{const F=L+M*O;a.start({y:Eo(F,w,x,d.current*50,.2)})}};io(C=>{C.event.stopPropagation(),v(C)},{axis:"y",from:()=>[0,s.get()],filterTaps:!0,pointer:{touch:!0},target:c}),p1(C=>{C.event.stopPropagation(),p(C)},{target:e.mouseWheel?c:void 0,axis:"y",from:()=>[0,s.get()],preventDefault:!0,eventOptions:On?{passive:!1}:void 0});let y=null;function b(){if(y===null)return null;const C=n[y],w=y-1,x=y+1,S=n[w],k=n[x];return i.createElement("div",{className:`${Re}-column-accessible`},i.createElement("div",{className:`${Re}-column-accessible-current`,role:"button","aria-label":C?`当前选择的是:${C.label}`:"当前未选择"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{S&&m(w)},role:S?"button":"text","aria-label":S?`选择上一项:${S.label}`:"没有上一项"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{k&&m(x)},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((C,w)=>{var x;const S=e.value===C.value;S&&(y=w);function k(){l.current=!1,m(w)}return i.createElement("div",{key:(x=C.key)!==null&&x!==void 0?x:C.value,"data-selected":S,className:K(`${Re}-column-item`,{[`${Re}-column-item-active`]:S}),onClick:k,"aria-hidden":!S,"aria-label":S?"active":""},i.createElement("div",{className:`${Re}-column-item-label`},o(C)))})),b())},(e,t)=>!(e.index!==t.index||e.value!==t.value||e.onSelect!==t.onSelect||e.renderLabel!==t.renderLabel||e.mouseWheel!==t.mouseWheel||!Kr(e.column,t.column)));Ia.displayName="Wheel";function $a(e){let t=null;return()=>(t===null&&(t=e()),t)}function _a(e,t){const n=$a(()=>(typeof e=="function"?e(t):e).map(a=>a.map(l=>typeof l=="string"?{label:l,value:l}:l))),o=$a(()=>t.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 Pa(e,t){return i.useMemo(()=>_a(e,t),[e,t])}const Ma=e=>e.label;var Fa={exports:{}},Na={};/**
|
|
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 Yt=i;function u0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var d0=typeof Object.is=="function"?Object.is:u0,f0=Yt.useState,m0=Yt.useEffect,h0=Yt.useLayoutEffect,p0=Yt.useDebugValue;function g0(e,t){var n=t(),o=f0({inst:{value:n,getSnapshot:t}}),r=o[0].inst,s=o[1];return h0(function(){r.value=n,r.getSnapshot=t,Wr(r)&&s({inst:r})},[e,n,t]),m0(function(){return Wr(r)&&s({inst:r}),e(function(){Wr(r)&&s({inst:r})})},[e]),p0(n),n}function Wr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!d0(e,n)}catch(o){return!0}}function v0(e,t){return t()}var b0=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?v0:g0;Oa.useSyncExternalStore=Yt.useSyncExternalStore!==void 0?Yt.useSyncExternalStore:b0,Na.exports=Oa;var y0=Na.exports;let C0=!1;const Ta=new Set;function Da(){return C0}function x0(e){return Ta.add(e),()=>{Ta.delete(e)}}function S0(){return y0.useSyncExternalStore(x0,Da,Da)}const Hr="adm-spin-loading",w0={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},k0={color:"default"},E0=15*3.14159265358979*2,Ur=i.memo(e=>{var t;const n=oe(k0,e),o=S0(),{percent:r}=Ve({cancel:o,loop:{reverse:!0},from:{percent:80},to:{percent:30},config:{duration:1200}});return Y(n,i.createElement(ke.div,{className:Hr,style:{"--color":(t=w0[n.color])!==null&&t!==void 0?t:n.color,"--percent":r}},i.createElement("svg",{className:`${Hr}-svg`,viewBox:"0 0 32 32"},i.createElement(ke.circle,{className:`${Hr}-fill`,fill:"transparent",strokeWidth:"2",strokeDasharray:E0,strokeDashoffset:r,strokeLinecap:"square",r:15,cx:16,cy:16}))))}),Gt="adm-picker-view",I0={defaultValue:[],renderLabel:Fa,mouseWheel:!1,loadingContent:i.createElement("div",{className:`${Gt}-loading-content`},i.createElement(Ur,null))},Yr=i.memo(e=>{const t=oe(I0,e),[n,o]=i.useState(t.value===void 0?t.defaultValue:t.value);i.useEffect(()=>{t.value!==void 0&&t.value!==n&&o(t.value)},[t.value]),i.useEffect(()=>{if(t.value===n)return;const l=window.setTimeout(()=>{t.value!==void 0&&t.value!==n&&o(t.value)},1e3);return()=>{window.clearTimeout(l)}},[t.value,n]);const r=Ma(t.columns,n),s=r.columns;te.useDebounceEffect(()=>{var l;t.value!==n&&((l=t.onChange)===null||l===void 0||l.call(t,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 Y(t,i.createElement("div",{className:`${Gt}`},t.loading?t.loadingContent:i.createElement(i.Fragment,null,s.map((l,c)=>i.createElement($a,{key:c,index:c,column:l,value:n[c],onSelect:a,renderLabel:t.renderLabel,mouseWheel:t.mouseWheel})),i.createElement("div",{className:`${Gt}-mask`},i.createElement("div",{className:`${Gt}-mask-top`}),i.createElement("div",{className:`${Gt}-mask-middle`}),i.createElement("div",{className:`${Gt}-mask-bottom`})))))});Yr.displayName="PickerView";const pt="adm-picker",$0={defaultValue:[],closeOnMaskClick:!0,renderLabel:Fa,destroyOnClose:!1,forceRender:!1},Gr=i.memo(i.forwardRef((e,t)=>{var n;const{locale:o}=Pe(),r=oe($0,{confirmText:o.common.confirm,cancelText:o.common.cancel},e),[s,a]=Ie({value:r.visible,defaultValue:!1,onChange:b=>{var C;b===!1&&((C=r.onClose)===null||C===void 0||C.call(r))}}),l={toggle:()=>{a(b=>!b)},open:()=>{a(!0)},close:()=>{a(!1)}};i.useImperativeHandle(t,()=>l);const[c,u]=Ie(Object.assign(Object.assign({},r),{onChange:b=>{var C;const w=Pa(r.columns,b);(C=r.onConfirm)===null||C===void 0||C.call(r,b,w)}})),d=Ma(r.columns,c),[m,g]=i.useState(c);i.useEffect(()=>{m!==c&&g(c)},[s]),i.useEffect(()=>{s||g(c)},[c]);const v=te.useMemoizedFn((b,C)=>{var w;g(b),s&&((w=r.onSelect)===null||w===void 0||w.call(r,b,C))}),p=Y(r,i.createElement("div",{className:pt},i.createElement("div",{className:`${pt}-header`},i.createElement("a",{role:"button",className:`${pt}-header-button`,onClick:()=>{var b;(b=r.onCancel)===null||b===void 0||b.call(r),a(!1)}},r.cancelText),i.createElement("div",{className:`${pt}-header-title`},r.title),i.createElement("a",{role:"button",className:K(`${pt}-header-button`,r.loading&&`${pt}-header-button-disabled`),onClick:()=>{r.loading||(u(m,!0),a(!1))},"aria-disabled":r.loading},r.confirmText)),i.createElement("div",{className:`${pt}-body`},i.createElement(Yr,{loading:r.loading,loadingContent:r.loadingContent,columns:r.columns,renderLabel:r.renderLabel,value:m,mouseWheel:r.mouseWheel,onChange:v})))),y=i.createElement(Ht,{style:r.popupStyle,className:K(`${pt}-popup`,r.popupClassName),visible:s,position:"bottom",onMaskClick:()=>{var b;r.closeOnMaskClick&&((b=r.onCancel)===null||b===void 0||b.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},p,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))}));Gr.displayName="Picker";function _0(e){return new Promise(t=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Gr,Object.assign({},e,{visible:r,onConfirm:(a,l)=>{var c;(c=e.onConfirm)===null||c===void 0||c.call(e,a,l),t(a)},onClose:()=>{var a;(a=e.onClose)===null||a===void 0||a.call(e),s(!1),t(null)},afterClose:()=>{var a;(a=e.afterClose)===null||a===void 0||a.call(e),o()}}))},o=Or(i.createElement(n,null))})}const Aa=we(Gr,{prompt:_0}),Fe="adm-tabs",P0=()=>null,M0={activeLineMode:"auto",stretch:!0,direction:"ltr"},$o=we(e=>{var t;const n=oe(M0,e),o=i.useRef(null),r=i.useRef(null),s={};let a=null;const l=[],c=n.direction==="rtl";jr(n.children,(k,I)=>{if(!i.isValidElement(k))return;const M=k.key;if(typeof M!="string")return;I===0&&(a=M);const O=l.push(k);s[M]=O-1});const[u,d]=Ie({value:n.activeKey,defaultValue:(t=n.defaultActiveKey)!==null&&t!==void 0?t:a,onChange:k=>{var I;k!==null&&((I=n.onChange)===null||I===void 0||I.call(n,k))}}),[{x:m,width:g},v]=Ve(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:p},y]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:b,rightMaskOpacity:C},w]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function x(k=!1,I=!1){const M=o.current;if(!M)return;const O=s[u];if(O===void 0){v.start({x:0,width:0,immediate:!0});return}const L=r.current;if(!L)return;const F=M.children.item(O+1),N=F.children.item(0),W=N.offsetLeft,V=N.offsetWidth,_=F.offsetLeft,P=F.offsetWidth,E=M.offsetWidth,D=M.scrollWidth,T=M.scrollLeft,z=L.offsetWidth;let j=0,H=0;if(n.activeLineMode==="auto"?(j=W,H=V):n.activeLineMode==="full"?(j=_,H=P):j=W+(V-z)/2,c){const ne=["auto","full"].includes(n.activeLineMode)?H:z;j=-(E-j-ne)}v.start({x:j,width:H,immediate:k});const U=D-E;if(U<=0)return;let J=0;c?J=-ye(E/2-W+V/2-z,0,U):J=ye(W-(E-V)/2,0,U),(!I||n.autoScroll!==!1)&&y.start({scrollLeft:J,from:{scrollLeft:T},immediate:k})}te.useIsomorphicLayoutEffect(()=>{x(!m.isAnimating)},[]),Ar(()=>{x()},[u,c,n.activeLineMode]),wa(()=>{x(!m.isAnimating)},o),ka(()=>{x(!m.isAnimating,!0)},o,{subtree:!0,childList:!0,characterData:!0});const{run:S}=te.useThrottleFn((k=!1)=>{const I=o.current;if(!I)return;const M=I.scrollLeft;let O=!1,L=!1;c?(O=Math.round(-M)+I.offsetWidth<I.scrollWidth,L=M<0):(O=M>0,L=M+I.offsetWidth<I.scrollWidth),w.start({leftMaskOpacity:O?1:0,rightMaskOpacity:L?1:0,immediate:k})},{wait:100,trailing:!0,leading:!0});return te.useIsomorphicLayoutEffect(()=>{S(!0)},[]),Y(n,i.createElement("div",{className:Fe,style:{direction:n.direction}},i.createElement("div",{className:`${Fe}-header`},i.createElement(ke.div,{className:K(`${Fe}-header-mask`,`${Fe}-header-mask-left`),style:{opacity:b}}),i.createElement(ke.div,{className:K(`${Fe}-header-mask`,`${Fe}-header-mask-right`),style:{opacity:C}}),i.createElement(ke.div,{className:`${Fe}-tab-list`,ref:o,scrollLeft:p,onScroll:S,role:"tablist"},i.createElement(ke.div,{ref:r,className:`${Fe}-tab-line`,style:{width:n.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":g,x:m}}),l.map(k=>Y(k.props,i.createElement("div",{key:k.key,className:K(`${Fe}-tab-wrapper`,{[`${Fe}-tab-wrapper-stretch`]:n.stretch})},i.createElement("div",{onClick:()=>{const{key:I}=k;k.props.disabled||I!=null&&d(I.toString())},className:K(`${Fe}-tab`,{[`${Fe}-tab-active`]:k.key===u,[`${Fe}-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 I=k.key===u;return i.createElement(eo,{key:k.key,active:I,forceRender:k.props.forceRender,destroyOnClose:k.props.destroyOnClose},i.createElement("div",{className:`${Fe}-content`,style:{display:I?"block":"none"}},k.props.children))})))},{Tab:P0}),Sn="adm-list",F0={mode:"default"},N0=i.forwardRef((e,t)=>{const n=oe(F0,e),o=i.useRef(null);return i.useImperativeHandle(t,()=>({get nativeElement(){return o.current}})),Y(n,i.createElement("div",{className:K(Sn,`${Sn}-${n.mode}`),ref:o},n.header&&i.createElement("div",{className:`${Sn}-header`},n.header),i.createElement("div",{className:`${Sn}-body`},i.createElement("div",{className:`${Sn}-body-inner`},n.children))))});function _o(e){return e!=null&&e!==!1}const it="adm-list-item",qt=we(N0,{Item:e=>{var t,n;const{arrow:o,arrowIcon:r}=e,{list:s={}}=Pe(),a=(t=e.clickable)!==null&&t!==void 0?t:!!e.onClick,l=(n=o!=null?o:r)!==null&&n!==void 0?n:a,c=Uo(s.arrowIcon,o!==!0?o:null,r!==!0?r:null),u=i.createElement("div",{className:`${it}-content`},_o(e.prefix)&&i.createElement("div",{className:`${it}-content-prefix`},e.prefix),i.createElement("div",{className:`${it}-content-main`},_o(e.title)&&i.createElement("div",{className:`${it}-title`},e.title),e.children,_o(e.description)&&i.createElement("div",{className:`${it}-description`},e.description)),_o(e.extra)&&i.createElement("div",{className:`${it}-content-extra`},e.extra),l&&i.createElement("div",{className:`${it}-content-arrow`},c||i.createElement(hd,null)));return Y(e,i.createElement(a?"a":"div",{className:K(`${it}`,a?["adm-plain-anchor"]:[],e.disabled&&`${it}-disabled`),onClick:e.disabled?void 0:e.onClick},u))}}),La=i.createContext(null),O0="adm-check-list",T0={multiple:!1,defaultValue:[],activeIcon:i.createElement(Li,null)},D0=e=>{const{checkList:t={}}=Pe(),n=oe(T0,t,e),[o,r]=Ie(n);function s(m){n.multiple?r([...o,m]):r([m])}function a(m){r(o.filter(g=>g!==m))}const{activeIcon:l,extra:c,disabled:u,readOnly:d}=n;return i.createElement(La.Provider,{value:{value:o,check:s,uncheck:a,activeIcon:l,extra:c,disabled:u,readOnly:d}},Y(n,i.createElement(qt,{mode:n.mode,className:O0},n.children)))},Po="adm-check-list-item",Mo=we(D0,{Item:e=>{const t=i.useContext(La);if(t===null)return null;const n=t.value.includes(e.value),o=e.readOnly||t.readOnly,r=n?t.activeIcon:null,s=t.extra?t.extra(n):r,a=i.createElement("div",{className:`${Po}-extra`},s);return Y(e,i.createElement(qt.Item,{title:e.title,className:K(Po,o&&`${Po}-readonly`,n&&`${Po}-active`),description:e.description,prefix:e.prefix,onClick:l=>{var c;o||(n?t.uncheck(e.value):t.check(e.value),(c=e.onClick)===null||c===void 0||c.call(e,l))},arrow:!1,clickable:!o,extra:a,disabled:e.disabled||t.disabled},e.children))}});function A0(e){var t=e+"",n=t.indexOf("...");return n>=0&&(n<t.indexOf(")")||t.indexOf("arguments")>=0)}function Ba(e,t){t||(t={});var n=t.vargs||A0(e),o=[],r=new Map,s,a,l=function(v){return a=setTimeout(function(){if(s){r.delete(v);return}o.splice(v,1)},t.maxAge)},c=t.maxAge>0&&t.maxAge<1/0?l:0,u=t.equals?t.equals:0,d=t.maxArgs,m=t.serializer,g;return e.length===1&&!t.equals&&!n?(g=function(v){m&&(v=m(v));var p;return r.get(v)||(!c||c(v),r.set(v,p=e.call(this,v)),p)},s=1):u?g=function(){for(var v=d||arguments.length,p=o.length,y=-1;++y<p;)if(o[y].length===v){for(var b=-1;++b<v&&u(arguments[b],o[y][b]););if(b===v)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=e.apply(this,o[y])}:g=function(){for(var v=d||arguments.length,p=o.length,y=-1;++y<p;)if(o[y].length===v){for(var b=-1;++b<v&&arguments[b]===o[y][b];);if(b===v)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=e.apply(this,o[y])},g.clear=function(){a&&clearTimeout(a),r.clear(),o=[]},g.keys=function(){return s?[...r.keys()]:o.slice()},g.values=function(){return s?[...r.values()]:o.map(v=>v.val)},g}function L0(e,t){const{valueName:n,childrenName:o}=t,r=i.useMemo(()=>Ba(l=>{const c=[];let u=e;for(const d of l){const m=u.find(g=>g[n]===d);if(!m||(c.push(m),!m[o]))break;u=m[o]}return c},{equals:Kr}),[e]),s=i.useMemo(()=>Ba(l=>l.reduce((u,d)=>{var m;return((m=u.find(g=>g[n]===d))===null||m===void 0?void 0:m[o])||[]},e).length===0,{equals:Kr}),[e]);function a(l){return{get items(){return r(l)},get isLeaf(){return s(l)}}}return a}const Va=[];function B0(e,t){const n=[];for(let o=e;o<=t;o++)n.push(o);return n}const wn="adm-skeleton",qr=e=>Y(e,i.createElement("div",{className:K(wn,{[`${wn}-animated`]:e.animated})})),V0=e=>Y(e,i.createElement(qr,{animated:e.animated,className:`${wn}-title`})),z0={lineCount:3},Fo=we(qr,{Title:V0,Paragraph:e=>{const t=oe(z0,e),n=B0(1,t.lineCount),o=i.createElement("div",{className:`${wn}-paragraph`},n.map(r=>i.createElement(qr,{key:r,animated:t.animated,className:`${wn}-paragraph-line`})));return Y(t,o)}}),Z0=(e={})=>i.useMemo(()=>{const{label:n="label",value:o="value",disabled:r="disabled",children:s="children"}=e;return[n,o,s,r]},[JSON.stringify(e)]),Ye="adm-cascader-view",j0={defaultValue:[]},K0=we(e=>{const t=oe(j0,e),{locale:n}=Pe(),[o,r,s,a]=Z0(t.fieldNames),l=L0(t.options,{valueName:r,childrenName:s}),[c,u]=Ie(Object.assign(Object.assign({},t),{onChange:b=>{var C;(C=t.onChange)===null||C===void 0||C.call(t,b,l(b))}})),[d,m]=i.useState(0),g=i.useMemo(()=>{const b=[];let C=t.options,w=!1;for(const x of c){const S=C.find(k=>k[r]===x);if(b.push({selected:S,options:C}),!S||!S[s]){w=!0;break}C=S[s]}return w||b.push({selected:void 0,options:C}),b},[c,t.options]);te.useUpdateEffect(()=>{var b;(b=t.onTabsChange)===null||b===void 0||b.call(t,d)},[d]),i.useEffect(()=>{m(g.length-1)},[c]),i.useEffect(()=>{const b=g.length-1;d>b&&m(b)},[d,g]);const v=(b,C)=>{const w=c.slice(0,C);b!==void 0&&(w[C]=b),u(w)},p=b=>t.loading||b===Va,y=t.placeholder||n.Cascader.placeholder;return Y(t,i.createElement("div",{className:Ye},i.createElement($o,{activeKey:d.toString(),onChange:b=>{const C=parseInt(b);m(C)},stretch:!1,className:`${Ye}-tabs`},g.map((b,C)=>{const w=b.selected;return i.createElement($o.Tab,{key:C.toString(),title:i.createElement("div",{className:`${Ye}-header-title`},w?w[o]:typeof y=="function"?y(C):y),forceRender:!0},i.createElement("div",{className:`${Ye}-content`},p(b.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(Mo,{value:[c[C]],onChange:x=>v(x[0],C),activeIcon:t.activeIcon},b.options.map(x=>{const S=c[C]===x[r];return i.createElement(Mo.Item,{value:x[r],key:x[r],disabled:x[a],className:K(`${Ye}-item`,{[`${Ye}-item-active`]:S})},x[o])}))))}))))},{optionSkeleton:Va}),za=i.createContext(null),W0={disabled:!1,defaultValue:[]},H0=e=>{const t=oe(W0,e),[n,o]=Ie(t);return i.createElement(za.Provider,{value:{value:n,disabled:t.disabled,check:r=>{o([...n,r])},uncheck:r=>{o(n.filter(s=>s!==r))}}},t.children)},Za=i.memo(e=>Y(e,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"})))),U0=i.memo(e=>Y(e,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"})))),ja=e=>{const t=i.useRef(null),n=te.useMemoizedFn(o=>{o.stopPropagation(),o.stopImmediatePropagation();const r=o.target.checked;r!==e.checked&&e.onChange(r)});return i.useEffect(()=>{if(e.disabled||!t.current)return;const o=t.current;return o.addEventListener("click",n),()=>{o.removeEventListener("click",n)}},[e.disabled,e.onChange]),i.createElement("input",{ref:t,type:e.type,checked:e.checked,onChange:()=>{},disabled:e.disabled,id:e.id})},gt="adm-checkbox",Y0={defaultChecked:!1,indeterminate:!1},G0=i.forwardRef((e,t)=>{const n=i.useContext(za),o=oe(Y0,e);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(t,()=>({check:()=>{s(!0)},uncheck:()=>{s(!1)},toggle:()=>{s(!r)}}));const c=()=>o.icon?i.createElement("div",{className:`${gt}-custom-icon`},o.icon(r,o.indeterminate)):i.createElement("div",{className:`${gt}-icon`},o.indeterminate?i.createElement(U0,null):r&&i.createElement(Za,null));return Y(o,i.createElement("label",{onClick:o.onClick,className:K(gt,{[`${gt}-checked`]:r&&!o.indeterminate,[`${gt}-indeterminate`]:o.indeterminate,[`${gt}-disabled`]:a,[`${gt}-block`]:o.block})},i.createElement(ja,{type:"checkbox",checked:r,onChange:s,disabled:a,id:o.id}),c(),o.children&&i.createElement("div",{className:`${gt}-content`},o.children)))}),Xr=we(G0,{Group:H0});var Ka={exports:{}};(function(e,t){(function(n,o){e.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}}})})(Ka);var q0=Ka.exports;const Wa=xt(q0);var Ha={exports:{}};(function(e,t){(function(n,o){e.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}}})})(Ha);var X0=Ha.exports;const Ua=xt(X0),kn="TILL_NOW";he.extend(Lr),he.extend(Wa),he.extend(Ua);const vt={year:0,month:1,day:2,hour:3,minute:4,second:5};function Q0(e,t,n,o,r,s,a){const l=[],c=t.getFullYear(),u=t.getMonth()+1,d=t.getDate(),m=t.getHours(),g=t.getMinutes(),v=t.getSeconds(),p=n.getFullYear(),y=n.getMonth()+1,b=n.getDate(),C=n.getHours(),w=n.getMinutes(),x=n.getSeconds(),S=vt[o],k=parseInt(e[0]),I=he(Qr([e[0],e[1],"1"])),M=parseInt(e[1]),O=parseInt(e[2]),L=parseInt(e[3]),F=parseInt(e[4]),N=k===c,W=k===p,V=N&&M===u,_=W&&M===y,P=V&&O===d,E=_&&O===b,D=P&&L===m,T=E&&L===C,z=D&&F===g,j=T&&F===w,H=(U,J,ne)=>{let ee=[];for(let ue=U;ue<=J;ue++)ee.push(ue);const Ne=e.slice(0,vt[ne]),q=s==null?void 0:s[ne];return q&&typeof q=="function"&&(ee=ee.filter(ue=>q(ue,{get date(){const Z=[...Ne,ue.toString()];return Qr(Z)}}))),ee};if(S>=vt.year){const ne=H(c,p,"year");l.push(ne.map(ee=>({label:r("year",ee),value:ee.toString()})))}if(S>=vt.month){const ne=H(N?u:1,W?y:12,"month");l.push(ne.map(ee=>({label:r("month",ee),value:ee.toString()})))}if(S>=vt.day){const U=V?d:1,J=_?b:I.daysInMonth(),ne=H(U,J,"day");l.push(ne.map(ee=>({label:r("day",ee),value:ee.toString()})))}if(S>=vt.hour){const ne=H(P?m:0,E?C:23,"hour");l.push(ne.map(ee=>({label:r("hour",ee),value:ee.toString()})))}if(S>=vt.minute){const ne=H(D?g:0,T?w:59,"minute");l.push(ne.map(ee=>({label:r("minute",ee),value:ee.toString()})))}if(S>=vt.second){const ne=H(z?v:0,j?x:59,"second");l.push(ne.map(ee=>({label:r("second",ee),value:ee.toString()})))}if(a&&(l[0].push({label:r("now",null),value:kn}),kn===(e==null?void 0:e[0])))for(let U=1;U<l.length;U+=1)l[U]=[];return l}function J0(e){return e?[e.getFullYear().toString(),(e.getMonth()+1).toString(),e.getDate().toString(),e.getHours().toString(),e.getMinutes().toString(),e.getSeconds().toString()]:[]}function Qr(e){var t,n,o,r,s,a;const l=(t=e[0])!==null&&t!==void 0?t:"1900",c=(n=e[1])!==null&&n!==void 0?n:"1",u=(o=e[2])!==null&&o!==void 0?o:"1",d=(r=e[3])!==null&&r!==void 0?r:"0",m=(s=e[4])!==null&&s!==void 0?s:"0",g=(a=e[5])!==null&&a!==void 0?a:"0";return new Date(parseInt(l),parseInt(c)-1,parseInt(u),parseInt(d),parseInt(m),parseInt(g))}var Ya={exports:{}};(function(e,t){(function(n,o){e.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(),g=!!m.u(d)||d;if(m.p(u)===o){var v=this.quarter()-1;return g?this.month(3*v).startOf(n).startOf("day"):this.month(3*v+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}})})(Ya);var R0=Ya.exports;const ef=xt(R0);he.extend(ef);const No={year:0,quarter:1};function tf(e,t,n,o,r,s){const a=[],l=t.getFullYear(),c=n.getFullYear(),u=No[o],d=parseInt(e[0]),m=d===l,g=d===c,v=he(t),p=he(n),y=v.quarter(),b=p.quarter(),C=(w,x,S)=>{let k=[];for(let O=w;O<=x;O++)k.push(O);const I=e.slice(0,No[S]),M=s==null?void 0:s[S];return M&&typeof M=="function"&&(k=k.filter(O=>M(O,{get date(){const L=[...I,O.toString()];return Ga(L)}}))),k};if(u>=No.year){const S=C(l,c,"year");a.push(S.map(k=>({label:r("year",k),value:k.toString()})))}if(u>=No.quarter){const S=C(m?y:1,g?b:4,"quarter");a.push(S.map(k=>({label:r("quarter",k),value:k.toString()})))}return a}function nf(e){if(!e)return[];const t=he(e);return[t.year().toString(),t.quarter().toString()]}function Ga(e){var t,n;const o=(t=e[0])!==null&&t!==void 0?t:"1900",r=(n=e[1])!==null&&n!==void 0?n:"1";return he().year(parseInt(o)).quarter(parseInt(r)).hour(0).minute(0).second(0).toDate()}he.extend(Lr),he.extend(Wa),he.extend(Ua);const En={year:0,week:1,"week-day":2};function of(e,t,n,o,r,s){const a=[],l=t.getFullYear(),c=n.getFullYear(),u=En[o],d=parseInt(e[0]),m=d===l,g=d===c,v=he(t),p=he(n),y=v.isoWeek(),b=p.isoWeek(),C=v.isoWeekday(),w=p.isoWeekday(),x=parseInt(e[1]),S=m&&x===y,k=g&&x===b,I=he(`${d}-01-01`).isoWeeksInYear(),M=(O,L,F)=>{let N=[];for(let _=O;_<=L;_++)N.push(_);const W=e.slice(0,En[F]),V=s==null?void 0:s[F];return V&&typeof V=="function"&&(N=N.filter(_=>V(_,{get date(){const P=[...W,_.toString()];return qa(P)}}))),N};if(u>=En.year){const F=M(l,c,"year");a.push(F.map(N=>({label:r("year",N),value:N.toString()})))}if(u>=En.week){const F=M(m?y:1,g?b:I,"week");a.push(F.map(N=>({label:r("week",N),value:N.toString()})))}if(u>=En["week-day"]){const F=M(S?C:1,k?w:7,"week-day");a.push(F.map(N=>({label:r("week-day",N),value:N.toString()})))}return a}function rf(e){if(!e)return[];const t=he(e);return[t.isoWeekYear().toString(),t.isoWeek().toString(),t.isoWeekday().toString()]}function qa(e){var t,n,o;const r=(t=e[0])!==null&&t!==void 0?t:"1900",s=(n=e[1])!==null&&n!==void 0?n:"1",a=(o=e[2])!==null&&o!==void 0?o:"1";return he().year(parseInt(r)).isoWeek(parseInt(s)).isoWeekday(parseInt(a)).hour(0).minute(0).second(0).toDate()}const sf={year:1,month:2,day:3,hour:4,minute:5,second:6},af=(e,t)=>{if(t.includes("week"))return rf(e);if(t.includes("quarter"))return nf(e);{const n=t;return J0(e).slice(0,sf[n])}},Xa=(e,t)=>{if((e==null?void 0:e[0])===kn){const n=new Date;return n.tillNow=!0,n}return t.includes("week")?qa(e):t.includes("quarter")?Ga(e):Qr(e)},lf=(e,t,n,o,r,s,a)=>o.startsWith("week")?of(e,t,n,o,r,s):o.startsWith("quarter")?tf(e,t,n,o,r,s):Q0(e,t,n,o,r,s,a);function cf(e){const{locale:t}=Pe();return i.useCallback((n,o)=>{if(e)return e(n,o);switch(n){case"minute":case"second":case"hour":return("0"+o.toString()).slice(-2);case"now":return t.DatePicker.tillNow;default:return o.toString()}},[e])}const Qa=new Date().getFullYear(),uf={min:new Date(new Date().setFullYear(Qa-10)),max:new Date(new Date().setFullYear(Qa+10)),precision:"day",defaultValue:null},Ja=i.forwardRef((e,t)=>{const n=oe(uf,e),{renderLabel:o}=n,[r,s]=Ie({value:n.value,defaultValue:n.defaultValue,onChange:g=>{var v;g!==null&&((v=n.onConfirm)===null||v===void 0||v.call(n,g))}}),a=i.useMemo(()=>new Date,[]),l=cf(o),c=i.useMemo(()=>{let g=r!=null?r:a;return g.tillNow?[kn]:(g=new Date(ye(g.getTime(),n.min.getTime(),n.max.getTime())),af(g,n.precision))},[r,n.precision,n.min,n.max]),u=i.useCallback(g=>{const v=Xa(g,n.precision);s(v,!0)},[s,n.precision]),d=te.useMemoizedFn(g=>{var v;const p=Xa(g,n.precision);(v=n.onSelect)===null||v===void 0||v.call(n,p)}),m=i.useCallback(g=>lf(g,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(Aa,{ref:t,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},(g,v)=>{var p;return(p=n.children)===null||p===void 0?void 0:p.call(n,r,v)}))});function df(e){return new Promise(t=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Ja,Object.assign({},e,{visible:r,onConfirm:a=>{var l;(l=e.onConfirm)===null||l===void 0||l.call(e,a),t(a)},onClose:()=>{var a;(a=e.onClose)===null||a===void 0||a.call(e),s(!1),t(null)},afterClose:()=>{var a;(a=e.afterClose)===null||a===void 0||a.call(e),o()}}))},o=Or(i.createElement(n,null))})}const ff=we(Ja,{prompt:df,DATE_NOW:kn});var Ra;(function(e){e[e.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",e[e.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",e[e.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",e[e.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",e[e.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",e[e.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",e[e.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",e[e.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",e[e.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",e[e.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",e[e.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",e[e.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",e[e.TAGS_START=917504]="TAGS_START",e[e.TAGS_END=917631]="TAGS_END",e[e.ZWJ=8205]="ZWJ"})(Ra||(Ra={}));const mf=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var el;function Jr(e){if(typeof e!="string")throw new TypeError("string cannot be undefined or null");const t=[];let n=0,o=0;for(;n<e.length;)o+=hf(n+o,e),xf(e[n+o])&&o++,bf(e[n+o])&&o++,yf(e[n+o])&&o++,Sf(e[n+o])?o++:(t.push(e.substring(n,n+o)),n+=o,o=0);return t}function hf(e,t){const n=t[e];if(!pf(n)||e===t.length-1)return 1;const o=n+t[e+1];let r=t.substring(e+2,e+5);return tl(o)&&tl(r)?4:gf(o)&&Cf(r)?t.slice(e).indexOf(String.fromCodePoint(917631))+2:vf(r)?4:2}function pf(e){return e&&It(e[0].charCodeAt(0),55296,56319)}function tl(e){return It(Rr(e),127462,127487)}function gf(e){return It(Rr(e),127988,127988)}function vf(e){return It(Rr(e),127995,127999)}function bf(e){return typeof e=="string"&&It(e.charCodeAt(0),65024,65039)}function yf(e){return typeof e=="string"&&It(e.charCodeAt(0),8400,8447)}function Cf(e){const t=e.codePointAt(0);return typeof e=="string"&&typeof t=="number"&&It(t,917504,917631)}function xf(e){return typeof e=="string"&&mf.includes(e.charCodeAt(0))}function Sf(e){return typeof e=="string"&&e.charCodeAt(0)===8205}function Rr(e){return(e.charCodeAt(0)-55296<<10)+(e.charCodeAt(1)-56320)+65536}function It(e,t,n){return e>=t&&e<=n}(function(e){e[e.unit_1=1]="unit_1",e[e.unit_2=2]="unit_2",e[e.unit_4=4]="unit_4"})(el||(el={}));const $t="adm-error-block",wf={status:"default"};function kf(e){return n=>{var o;const r=oe(wf,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:e[r.status],d=typeof u=="string"?i.createElement("img",{src:u,alt:"error block image"}):u;return Y(r,i.createElement("div",{className:K($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 Ef=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"}))),If=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)"})))),$f=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"})))),_f=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=kf({default:Ef,disconnected:If,empty:$f,busy:_f});let Xt=null,Qt=null;Tt&&(Xt=document.createElement("div"),Xt.className="adm-px-tester",Xt.style.setProperty("--size","10"),document.body.appendChild(Xt),Qt=document.createElement("div"),Qt.className="adm-px-tester",document.body.appendChild(Qt));function Mf(e){return Xt===null||Qt===null||Xt.getBoundingClientRect().height===10?e:(Qt.style.setProperty("--size",e.toString()),Qt.getBoundingClientRect().height)}const nl="adm-grid",et=we(e=>{const t={"--columns":e.columns.toString()},{gap:n}=e;return n!==void 0&&(Array.isArray(n)?(t["--gap-horizontal"]=Et(n[0]),t["--gap-vertical"]=Et(n[1])):t["--gap"]=Et(n)),Y(e,i.createElement("div",{className:nl,style:t},e.children))},{Item:e=>{const t=oe({span:1},e),n={"--item-span":t.span};return Y(t,i.createElement("div",{className:`${nl}-item`,style:n,onClick:t.onClick},t.children))}}),Ff=v1([sa,o1]),Oo=()=>[1,0,0,1,0,0],ol=e=>e[4],rl=e=>e[5],In=e=>e[0],$n=(e,t,n)=>sl([1,0,0,1,t,n],e),Nf=(e,t,n=t)=>sl([t,0,0,n,0,0],e),Of=(e,[t,n])=>[e[0]*t+e[2]*n+e[4],e[1]*t+e[3]*n+e[5]],sl=(e,t)=>[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]],es="adm-image-viewer",il=e=>{const{dragLockRef:t,maxZoom:n}=e,o=i.useRef([]),r=i.useRef(null),s=i.useRef(null),[{matrix:a},l]=Ve(()=>({matrix:Oo(),config:{tension:200}})),c=te.useSize(r),u=te.useSize(s),d=i.useRef(!1),m=p=>{if(!c||!u)return{x:{position:0,minX:0,maxX:0},y:{position:0,minY:0,maxY:0}};const y=-c.width/2,b=-c.height/2,C=-u.width/2,w=-u.height/2,x=In(p),S=x*u.width,k=x*u.height,I=y-(S-c.width),M=y,O=b-(k-c.height),L=b,[F,N]=Of(p,[C,w]);return{x:{position:F,minX:I,maxX:M},y:{position:N,minY:O,maxY:L}}},g=(p,y,b,C=0)=>[p<=y-C,p>=b+C],v=(p,y,b=!1)=>{if(!c||!u)return p;const C=In(p),w=C*u.width,x=C*u.height,{x:{position:S,minX:k,maxX:I},y:{position:M,minY:O,maxY:L}}=m(p);if(y==="translate"){let F=S,N=M;return w>c.width?F=b?ye(S,k,I):Eo(S,k,I,C*50):F=-w/2,x>c.height?N=b?ye(M,O,L):Eo(M,O,L,C*50):N=-x/2,$n(p,F-S,N-M)}if(y==="scale"&&b){const[F,N]=[w>c.width?ye(S,k,I):-w/2,x>c.height?ye(M,O,L):-x/2];return $n(p,F-S,N-M)}return p};return Ff({onDrag:p=>{var y;if(p.first){const{x:{position:C,minX:w,maxX:x}}=m(a.get());o.current=g(C,w,x);return}if(p.pinching)return p.cancel();if(p.tap&&p.elapsedTime>0&&p.elapsedTime<1e3){(y=e.onTap)===null||y===void 0||y.call(e);return}const b=In(a.get());if(t&&(t.current=b!==1),!d.current&&b<=1)l.start({matrix:Oo()});else{const C=a.get(),w=[p.offset[0]-ol(C),p.offset[1]-rl(C)],x=$n(C,...p.last?[w[0]+p.velocity[0]*p.direction[0]*200,w[1]+p.velocity[1]*p.direction[1]*200]:w);l.start({matrix:v(x,"translate",p.last),immediate:!p.last});const{x:{position:S,minX:k,maxX:I}}=m(x);p.last&&o.current.some(M=>M)&&g(S,k,I).some(M=>M)&&(t&&(t.current=!1),l.start({matrix:Oo()}))}},onPinch:p=>{var y;d.current=!p.last;const[b]=p.offset;if(b<0)return;let C;n==="auto"?C=c&&u?Math.max(c.height/u.height,c.width/u.width):1:C=n;const w=p.last?ye(b,1,C):b;if((y=e.onZoomChange)===null||y===void 0||y.call(e,w),p.last&&w<=1)l.start({matrix:Oo()}),t&&(t.current=!1);else{if(!c)return;const x=a.get(),S=In(x),k=p.origin[0]-c.width/2,I=p.origin[1]-c.height/2;let M=$n(x,-k,-I);M=Nf(M,w/S),M=$n(M,k,I),l.start({matrix:v(M,"scale",p.last),immediate:!p.last}),t&&(t.current=!0)}}},{target:r,drag:{from:()=>[ol(a.get()),rl(a.get())],pointer:{touch:!0}},pinch:{from:()=>[In(a.get()),0],pointer:{touch:!0}}}),i.createElement("div",{className:`${es}-slide`},i.createElement("div",{className:`${es}-control`,ref:r},i.createElement(ke.div,{className:`${es}-image-wrapper`,style:{matrix:a}},i.createElement("img",{ref:s,src:e.image,draggable:!1,alt:e.image}))))},ts="adm-image-viewer",Tf=i.forwardRef((e,t)=>{const n=window.innerWidth+Mf(16),[{x:o},r]=Ve(()=>({x:e.defaultIndex*n,config:{tension:250,clamp:!0}})),s=e.images.length;function a(u,d=!1){var m;const g=ye(u,0,s-1);(m=e.onIndexChange)===null||m===void 0||m.call(e,g),r.start({x:g*n,immediate:d})}i.useImperativeHandle(t,()=>({swipeTo:a}));const l=i.useRef(!1),c=io(u=>{if(l.current)return;const[d]=u.offset;if(u.last){const m=Math.floor(d/n),g=m+1,v=Math.min(u.velocity[0]*2e3,n)*u.direction[0];a(ye(Math.round((d+v)/n),m,g))}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:`${ts}-slides`},c()),i.createElement(ke.div,{className:`${ts}-indicator`},o.to(u=>`${ye(Math.round(u/n),0,s-1)+1} / ${s}`)),i.createElement(ke.div,{className:`${ts}-slides-inner`,style:{x:o.to(u=>-u)}},e.images.map((u,d)=>i.createElement(il,{key:d,image:u,onTap:e.onTap,maxZoom:e.maxZoom,onZoomChange:m=>{if(m!==1){const g=Math.round(o.get()/n);r.start({x:g*n})}},dragLockRef:l}))))}),To="adm-image-viewer",al={maxZoom:3,getContainer:null,visible:!1},ll=e=>{var t,n,o;const r=oe(al,e),s=i.createElement(to,{visible:r.visible,disableBodyScroll:!1,opacity:"thick",afterClose:r.afterClose,destroyOnClose:!0,className:(t=r==null?void 0:r.classNames)===null||t===void 0?void 0:t.mask},i.createElement("div",{className:K(`${To}-content`,(n=r==null?void 0:r.classNames)===null||n===void 0?void 0:n.body)},r.image&&i.createElement(il,{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 Rn(r.getContainer,s)},Df=Object.assign(Object.assign({},al),{defaultIndex:0}),cl=i.forwardRef((e,t)=>{var n,o,r;const s=oe(Df,e),[a,l]=i.useState(s.defaultIndex),c=i.useRef(null);i.useImperativeHandle(t,()=>({swipeTo:(m,g)=>{var v;l(m),(v=c.current)===null||v===void 0||v.swipeTo(m,g)}}));const u=i.useCallback(m=>{var g;m!==a&&(l(m),(g=s.onIndexChange)===null||g===void 0||g.call(s,m))},[s.onIndexChange,a]),d=i.createElement(to,{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:K(`${To}-content`,(o=s==null?void 0:s.classNames)===null||o===void 0?void 0:o.body)},s.images&&i.createElement(Tf,{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 Rn(s.getContainer,d)}),Jt=new Set;function Af(e){ns();const t=xn(i.createElement(ll,Object.assign({},e,{afterClose:()=>{var n;Jt.delete(t),(n=e.afterClose)===null||n===void 0||n.call(e)}})));return Jt.add(t),t}function Lf(e){ns();const t=xn(i.createElement(cl,Object.assign({},e,{afterClose:()=>{var n;Jt.delete(t),(n=e.afterClose)===null||n===void 0||n.call(e)}})));return Jt.add(t),t}function ns(){Jt.forEach(e=>{e.close()}),Jt.clear()}const Bf=we(cl,{show:Lf}),Vf=we(ll,{Multi:Bf,show:Af,clear:ns}),_t="adm-image-uploader",ul=e=>{const{locale:t}=Pe(),{url:n,file:o,deletable:r,deleteIcon:s,onDelete:a,imageFit:l}=e,c=i.useMemo(()=>n||(o?URL.createObjectURL(o):""),[n,o]);i.useEffect(()=>()=>{o&&URL.revokeObjectURL(c)},[c,o]);function u(){return e.status==="pending"&&i.createElement("div",{className:`${_t}-cell-mask`},i.createElement("span",{className:`${_t}-cell-loading`},i.createElement(Ur,{color:"white"}),i.createElement("span",{className:`${_t}-cell-mask-message`},t.ImageUploader.uploading)))}function d(){return r&&i.createElement("span",{className:`${_t}-cell-delete`,onClick:a},s)}return i.createElement("div",{className:K(`${_t}-cell`,e.status==="fail"&&`${_t}-cell-fail`)},i.createElement(ma,{className:`${_t}-cell-image`,src:c,fit:l,onClick:e.onClick}),u(),d())},Pt="adm-space",zf={direction:"horizontal"},_n=e=>{const t=oe(zf,e),{direction:n,onClick:o}=t;return Y(t,i.createElement("div",{className:K(Pt,{[`${Pt}-wrap`]:t.wrap,[`${Pt}-block`]:t.block,[`${Pt}-${n}`]:!0,[`${Pt}-align-${t.align}`]:!!t.align,[`${Pt}-justify-${t.justify}`]:!!t.justify}),onClick:o},i.Children.map(t.children,r=>r!=null&&i.createElement("div",{className:`${Pt}-item`},r))))},tt="adm-image-uploader",Zf={disableUpload:!1,deletable:!0,deleteIcon:i.createElement(no,{className:`${tt}-cell-delete-icon`}),showUpload:!0,multiple:!1,maxCount:0,defaultValue:[],accept:"image/*",preview:!0,showFailed:!0,imageFit:"cover"},dl=i.forwardRef((e,t)=>{const{locale:n}=Pe(),o=oe(Zf,e),{columns:r}=o,[s,a]=Ie(o),[l,c]=i.useState([]),u=i.useRef(null),d=te.useSize(u),m=i.useRef(null),[g,v]=i.useState(80),p=i.useRef(null);te.useIsomorphicLayoutEffect(()=>{const V=m.current;if(r&&d&&V){const _=d.width,P=Ia(window.getComputedStyle(V).getPropertyValue("height"));v((_-P*(r-1))/r)}},[d==null?void 0:d.width]);const y={"--cell-size":g+"px"};te.useIsomorphicLayoutEffect(()=>{c(V=>V.filter(_=>_.url===void 0?!0:!s.some(P=>P.url===_.url)))},[s]),te.useIsomorphicLayoutEffect(()=>{var V;(V=o.onUploadQueueChange)===null||V===void 0||V.call(o,l.map(_=>({id:_.id,status:_.status})))},[l]);const b=i.useRef(0),{maxCount:C,onPreview:w,renderItem:x}=o;function S(V,_){return yt(this,void 0,void 0,function*(){const{beforeUpload:P}=o;let E=V;return E=yield P==null?void 0:P(V,_),E})}function k(V){return o.showFailed?V:V.filter(_=>_.status!=="fail")}function I(V){var _;return yt(this,void 0,void 0,function*(){V.persist();const{files:P}=V.target;if(!P)return;let E=[].slice.call(P);if(V.target.value="",o.beforeUpload){const z=E.map(j=>S(j,E));yield Promise.all(z).then(j=>{E=j.filter(Boolean)})}if(E.length===0)return;if(C>0){const z=s.length+E.length-C;z>0&&(E=E.slice(0,E.length-z),(_=o.onCountExceed)===null||_===void 0||_.call(o,z))}const D=E.map(z=>({id:b.current++,status:"pending",file:z}));c(z=>[...k(z),...D]);const T=[];yield Promise.all(D.map((z,j)=>yt(this,void 0,void 0,function*(){try{const H=yield o.upload(z.file);T[j]=H,c(U=>U.map(J=>J.id===z.id?Object.assign(Object.assign({},J),{status:"success",url:H.url}):J))}catch(H){throw c(U=>U.map(J=>J.id===z.id?Object.assign(Object.assign({},J),{status:"fail"}):J)),H}}))).catch(z=>console.error(z)),a(z=>z.concat(T))})}const M=i.useRef(null);function O(V){M.current=Vf.Multi.show({images:s.map(_=>_.url),defaultIndex:V,onClose:()=>{M.current=null}})}te.useUnmount(()=>{var V;(V=M.current)===null||V===void 0||V.close()});const L=k(l),F=o.showUpload&&(C===0||s.length+L.length<C),N=()=>s.map((V,_)=>{var P,E;const D=i.createElement(ul,{key:(P=V.key)!==null&&P!==void 0?P:_,url:(E=V.thumbnailUrl)!==null&&E!==void 0?E:V.url,deletable:o.deletable,deleteIcon:o.deleteIcon,imageFit:o.imageFit,onClick:()=>{o.preview&&O(_),w&&w(_,V)},onDelete:()=>yt(void 0,void 0,void 0,function*(){var T;(yield(T=o.onDelete)===null||T===void 0?void 0:T.call(o,V))!==!1&&a(s.filter((j,H)=>H!==_))})});return x?x(D,V,s):D}),W=i.createElement(i.Fragment,null,N(),l.map(V=>!o.showFailed&&V.status==="fail"?null:i.createElement(ul,{key:V.id,file:V.file,deletable:V.status!=="pending",deleteIcon:o.deleteIcon,status:V.status,imageFit:o.imageFit,onDelete:()=>{c(l.filter(_=>_.id!==V.id))}})),i.createElement("div",{className:`${tt}-upload-button-wrap`,style:F?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(ud,null))),!o.disableUpload&&i.createElement("input",{"aria-label":n.ImageUploader.upload,ref:p,capture:o.capture,accept:o.accept,multiple:o.multiple,type:"file",className:`${tt}-input`,onChange:I})));return i.useImperativeHandle(t,()=>({get nativeElement(){return p.current}})),Y(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}),W.props.children):i.createElement(_n,{className:`${tt}-space`,wrap:!0,block:!0},W.props.children)))});function fl({onEnterPress:e,onKeyDown:t,nativeInputRef:n,enterKeyHint:o}){const r=s=>{e&&(s.code==="Enter"||s.keyCode===13)&&e(s),t==null||t(s)};return te.useIsomorphicLayoutEffect(()=>{const s=n.current;if(!(!o||!s))return s.setAttribute("enterkeyhint",o),()=>{s.removeAttribute("enterkeyhint")}},[o]),r}const Do="adm-input",jf={defaultValue:"",clearIcon:i.createElement(dd,null),onlyShowClearWhenFocus:!0},os=i.forwardRef((e,t)=>{const{locale:n,input:o={}}=Pe(),r=oe(jf,o,e),[s,a]=Ie(r),[l,c]=i.useState(!1),u=i.useRef(!1),d=i.useRef(null),m=fl({onEnterPress:r.onEnterPress,onKeyDown:r.onKeyDown,nativeInputRef:d,enterKeyHint:r.enterKeyHint});i.useImperativeHandle(t,()=>({clear:()=>{a("")},focus:()=>{var p;(p=d.current)===null||p===void 0||p.focus()},blur:()=>{var p;(p=d.current)===null||p===void 0||p.blur()},get nativeElement(){return d.current}}));function g(){let p=s;if(r.type==="number"){const y=p&&ye(parseFloat(p),r.min,r.max).toString();Number(p)!==Number(y)&&(p=y)}p!==s&&a(p)}const v=!r.clearable||!s||r.readOnly?!1:r.onlyShowClearWhenFocus?l:!0;return Y(r,i.createElement("div",{className:K(`${Do}`,r.disabled&&`${Do}-disabled`)},i.createElement("input",{ref:d,className:`${Do}-element`,value:s,onChange:p=>{a(p.target.value)},onFocus:p=>{var y;c(!0),(y=r.onFocus)===null||y===void 0||y.call(r,p)},onBlur:p=>{var y;c(!1),g(),(y=r.onBlur)===null||y===void 0||y.call(r,p)},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:p=>{var y;u.current=!0,(y=r.onCompositionStart)===null||y===void 0||y.call(r,p)},onCompositionEnd:p=>{var y;u.current=!1,(y=r.onCompositionEnd)===null||y===void 0||y.call(r,p)},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"]}),v&&i.createElement("div",{className:`${Do}-clear`,onMouseDown:p=>{p.preventDefault()},onClick:()=>{var p,y;a(""),(p=r.onClear)===null||p===void 0||p.call(r),H1()&&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",ml=we(e=>{var t;const n=i.useRef(null),o=i.useRef(null),r={};let s=null;const a=[];jr(e.children,(m,g)=>{if(!i.isValidElement(m))return;const v=m.key;if(typeof v!="string")return;g===0&&(s=v);const p=a.push(m);r[v]=p-1});const[l,c]=Ie({value:e.activeKey,defaultValue:(t=e.defaultActiveKey)!==null&&t!==void 0?t:s,onChange:m=>{var g;m!==null&&((g=e.onChange)===null||g===void 0||g.call(e,m))}}),{scrollLeft:u,animate:d}=o0(n,r[l]);return wa(()=>{d(!0)},o),Y(e,i.createElement("div",{className:nt,ref:o},i.createElement("div",{className:`${nt}-header`},i.createElement(r0,{scrollTrackRef:n}),i.createElement(ke.div,{className:`${nt}-tab-list`,ref:n,scrollLeft:u},a.map(m=>Y(m.props,i.createElement("div",{key:m.key,className:`${nt}-tab-wrapper`},i.createElement("div",{onClick:()=>{const{key:g}=m;m.props.disabled||g!=null&&c(g.toString())},className:K(`${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 g=m.key===l;return i.createElement(eo,{key:m.key,active:g,forceRender:m.props.forceRender,destroyOnClose:m.props.destroyOnClose},i.createElement("div",{className:`${nt}-content`,style:{display:g?"block":"none"}},m.props.children))})))},{Tab:()=>null}),Rt="adm-nav-bar",hl=i.createElement(md,null),Kf=e=>{const{navBar:t={}}=Pe(),n=oe(t,e),{back:o,backIcon:r,backArrow:s}=n,a=t.backIcon||hl,l=Uo(hl,t.backIcon,s===!0?a:s,r===!0?a:r);return Y(n,i.createElement("div",{className:K(Rt)},i.createElement("div",{className:`${Rt}-left`,role:"button"},o!==null&&i.createElement("div",{className:`${Rt}-back`,onClick:n.onBack},l&&i.createElement("span",{className:`${Rt}-back-arrow`},l),i.createElement("span",{"aria-hidden":"true"},o)),n.left),i.createElement("div",{className:`${Rt}-title`},n.children),i.createElement("div",{className:`${Rt}-right`},n.right)))},Pn="adm-page-indicator",Wf={color:"primary",direction:"horizontal"},Hf=i.memo(e=>{const t=oe(Wf,e),n=[];for(let o=0;o<t.total;o++)n.push(i.createElement("div",{key:o,className:K(`${Pn}-dot`,{[`${Pn}-dot-active`]:t.current===o})}));return Y(t,i.createElement("div",{className:K(Pn,`${Pn}-${t.direction}`,`${Pn}-color-${t.color}`)},n))}),pl=i.createContext(null),Uf={disabled:!1,defaultValue:null},Yf=e=>{const t=oe(Uf,e),[n,o]=Ie({value:t.value,defaultValue:t.defaultValue,onChange:r=>{var s;r!==null&&((s=t.onChange)===null||s===void 0||s.call(t,r))}});return i.createElement(pl.Provider,{value:{value:n===null?[]:[n],check:r=>{o(r)},uncheck:()=>{},disabled:t.disabled}},t.children)},Mt="adm-radio",Gf={defaultChecked:!1},rs=we(e=>{const t=oe(Gf,e),n=i.useContext(pl);let[o,r]=Ie({value:t.checked,defaultValue:t.defaultChecked,onChange:t.onChange}),s=t.disabled;const{value:a}=t;n&&a!==void 0&&(o=n.value.includes(a),r=c=>{var u;c?n.check(a):n.uncheck(a),(u=t.onChange)===null||u===void 0||u.call(t,c)},s=s||n.disabled);const l=()=>t.icon?i.createElement("div",{className:`${Mt}-custom-icon`},t.icon(o)):i.createElement("div",{className:`${Mt}-icon`},o&&i.createElement(Za,null));return Y(t,i.createElement("label",{onClick:t.onClick,className:K(Mt,{[`${Mt}-checked`]:o,[`${Mt}-disabled`]:s,[`${Mt}-block`]:t.block})},i.createElement(ja,{type:"radio",checked:o,onChange:r,disabled:s,id:t.id}),l(),t.children&&i.createElement("div",{className:`${Mt}-content`},t.children)))},{Group:Yf}),bt="adm-search-bar",qf={clearable:!0,onlyShowClearWhenFocus:!1,showCancelButton:!1,defaultValue:"",clearOnCancel:!0},gl=i.forwardRef((e,t)=>{const{locale:n,searchBar:o={}}=Pe(),r=oe(qf,o,{cancelText:n.common.cancel},e),s=Uo(i.createElement(pd,null),o.searchIcon,e.icon,e.searchIcon),[a,l]=Ie(r),[c,u]=i.useState(!1),d=i.useRef(null),m=i.useRef(!1);i.useImperativeHandle(t,()=>({clear:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.clear()},focus:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.focus()},blur:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.blur()},get nativeElement(){var v,p;return(p=(v=d.current)===null||v===void 0?void 0:v.nativeElement)!==null&&p!==void 0?p:null}}));const g=()=>{let v;return typeof r.showCancelButton=="function"?v=r.showCancelButton(c,a):v=r.showCancelButton&&c,v&&i.createElement("div",{className:`${bt}-suffix`},i.createElement(st,{fill:"none",className:`${bt}-cancel-button`,onClick:()=>{var p,y,b;r.clearOnCancel&&((p=d.current)===null||p===void 0||p.clear()),(y=d.current)===null||y===void 0||y.blur(),(b=r.onCancel)===null||b===void 0||b.call(r)},onMouseDown:p=>{p.preventDefault()}},r.cancelText))};return Y(r,i.createElement("div",{className:K(bt,{[`${bt}-active`]:c})},i.createElement("div",{className:`${bt}-input-box`},s&&i.createElement("div",{className:`${bt}-input-box-icon`},s),i.createElement(os,{ref:d,className:K(`${bt}-input`,{[`${bt}-input-without-icon`]:!s}),value:a,onChange:l,maxLength:r.maxLength,autoFocus:r.autoFocus,placeholder:r.placeholder,clearable:r.clearable,onlyShowClearWhenFocus:r.onlyShowClearWhenFocus,onFocus:v=>{var p;u(!0),(p=r.onFocus)===null||p===void 0||p.call(r,v)},onBlur:v=>{var p;u(!1),(p=r.onBlur)===null||p===void 0||p.call(r,v)},onClear:r.onClear,type:"search",enterKeyHint:"search",onEnterPress:()=>{var v,p;m.current||((v=d.current)===null||v===void 0||v.blur(),(p=r.onSearch)===null||p===void 0||p.call(r,a))},"aria-label":n.SearchBar.name,onCompositionStart:v=>{var p;m.current=!0,(p=r.onCompositionStart)===null||p===void 0||p.call(r,v)},onCompositionEnd:v=>{var p;m.current=!1,(p=r.onCompositionEnd)===null||p===void 0||p.call(r,v)}})),g()))}),vl=e=>Y(e,i.createElement("div",{className:"adm-swiper-item",onClick:e.onClick},e.children));function Xf(e){const[t,n]=i.useState(e),o=i.useRef(t);return i.useEffect(()=>{o.current=t},[t]),[t,n,o]}function Qf(e,t){const n=Object.keys(e),o=Object.keys(t),r=new Set([...n,...o]),s={};return r.forEach(a=>{const l=e[a],c=t[a];typeof l=="function"&&typeof c=="function"?s[a]=function(...u){l(...u),c(...u)}:s[a]=l||c}),s}const ot="adm-swiper",Jf={mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp"},Rf={defaultIndex:0,allowTouchMove:!0,autoplay:!1,autoplayInterval:3e3,loop:!1,direction:"horizontal",slideSize:100,trackOffset:0,stuckAtBoundary:!0,rubberband:!0,stopPropagation:[]};let Ao;const em=i.forwardRef(Dr((e,t)=>{const n=oe(Rf,e),{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:g,count:v,renderChildren:p}=i.useMemo(()=>{let b=0,C,w;return typeof s=="function"?C=s:w=i.Children.map(s,x=>!i.isValidElement(x)||x.type!==vl?null:(b++,x)),{renderChildren:C,validChildren:w,count:b}},[s]),y=r!=null?r:v;return y===0||!g&&!p?null:()=>{let b=n.loop;d*(y-1)<1&&(b=!1);const C=i.useRef(null);function w(){const Z=C.current;return Z?(u?Z.offsetHeight:Z.offsetWidth)*n.slideSize/100:0}const[x,S,k]=te.useGetState(n.defaultIndex),[I,M,O]=Xf(!1);function L(Z){let G=0,re=y-1;return n.stuckAtBoundary&&(G+=m/d,re-=(1-d-m)/d),ye(Z,G,re)}const[{position:F},N]=Ve(()=>({position:L(x)*100,config:{tension:200,friction:30},onRest:()=>{if(O.current||!b)return;const Z=F.get(),G=100*y,re=ss(Z,G);re!==Z&&N.start({position:re,immediate:!0})}}),[y]),W=i.useRef(null);function V(){var Z;(Z=W.current)===null||Z===void 0||Z.call(W),O.current=!1}const _=io(Z=>{if(W.current=Z.cancel,!Z.intentional||(Z.first&&!Ao&&(Ao=l),Ao!==l))return;Ao=Z.last?void 0:l;const G=w();if(!G)return;const re=u?1:0,ge=Z.offset[re],Ce=Z.direction[re],Ko=Z.velocity[re];if(M(!0),!Z.last)N.start({position:ge*100/G,immediate:!0});else{const Nn=Math.floor(ge/G),b2=Nn+1,y2=Math.round((ge+Ko*2e3*Ce)/G);P(ye(y2,Nn,b2)),window.setTimeout(()=>{M(!1)})}},{transform:([Z,G])=>[-Z,-G],from:()=>{const Z=w();return[F.get()/100*Z,F.get()/100*Z]},triggerAllEvents:!0,bounds:()=>{if(b)return{};const Z=w(),G=L(0)*Z,re=L(y-1)*Z;return u?{top:G,bottom:re}:{left:G,right:re}},rubberband:n.rubberband,axis:u?"y":"x",preventScroll:!u,pointer:{touch:!0}});function P(Z,G=!1){var re;const ge=Math.round(Z),Ce=b?ss(ge,y):ye(ge,0,y-1);Ce!==k()&&((re=n.onIndexChange)===null||re===void 0||re.call(n,Ce)),S(Ce),N.start({position:(b?ge:L(ge))*100,immediate:G})}function E(){P(Math.round(F.get()/100)+1)}function D(){P(Math.round(F.get()/100)-1)}i.useImperativeHandle(t,()=>({swipeTo:P,swipeNext:E,swipePrev:D})),te.useIsomorphicLayoutEffect(()=>{const Z=y-1;x>Z&&P(Z,!0)});const{autoplay:T,autoplayInterval:z}=n,j=()=>{c.current=window.setTimeout(()=>{T==="reverse"?D():E(),j()},z)};i.useEffect(()=>{if(!(!T||I))return j(),()=>{c.current&&window.clearTimeout(c.current)}},[T,z,I,y]);function H(Z,G){let re={};return b&&(re={[u?"y":"x"]:F.to(ge=>{let Ce=-ge+Z*100;const Ko=y*100,Nn=Ko/2;return Ce=ss(Ce+Nn,Ko)-Nn,`${Ce}%`}),[u?"top":"left"]:`-${Z*100}%`}),i.createElement(ke.div,{className:K(`${ot}-slide`,{[`${ot}-slide-active`]:x===Z}),style:re,key:Z},G)}function U(){if(p&&r){const G=Math.max(x-2,0),re=Math.min(x+2,r-1),ge=[];for(let Ce=G;Ce<=re;Ce+=1)ge.push(H(Ce,p(Ce)));return i.createElement(i.Fragment,null,i.createElement("div",{className:`${ot}-slide-placeholder`,style:{width:`${G*100}%`}}),ge)}return i.Children.map(g,(Z,G)=>H(G,Z))}function J(){return b?i.createElement("div",{className:`${ot}-track-inner`},U()):i.createElement(ke.div,{className:`${ot}-track-inner`,style:{[u?"y":"x"]:F.to(Z=>`${-Z}%`)}},U())}const ne={"--slide-size":`${n.slideSize}%`,"--track-offset":`${n.trackOffset}%`},ee=Object.assign({},n.allowTouchMove?_():{}),Ne={};for(const Z of n.stopPropagation){const G=Jf[Z];Ne[G]=function(re){re.stopPropagation()}}const q=Qf(ee,Ne);let ue=null;return typeof a=="function"?ue=a(y,x):a!==!1&&(ue=i.createElement("div",{className:`${ot}-indicator`},i.createElement(Hf,Object.assign({},n.indicatorProps,{total:y,current:x,direction:o})))),Y(n,i.createElement("div",{className:K(ot,`${ot}-${o}`),style:ne},i.createElement("div",Object.assign({ref:C,className:K(`${ot}-track`,{[`${ot}-track-allow-touch-move`]:n.allowTouchMove}),onClickCapture:Z=>{O.current&&Z.stopPropagation(),V()}},q),J()),ue))}}));function ss(e,t){const n=e%t;return n<0?n+t:n}const Lo=we(em,{Item:vl}),tm=()=>null,at="adm-tab-bar",nm={safeArea:!1},is=we(e=>{var t;const n=oe(nm,e);let o=null;const r=[];jr(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:(t=n.defaultActiveKey)!==null&&t!==void 0?t:o,onChange:l=>{var c;l!==null&&((c=n.onChange)===null||c===void 0||c.call(n,l))}});return Y(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:K(`${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(pa,{content:l.props.badge,className:`${at}-icon-badge`},d),m):m?i.createElement(pa,{content:l.props.badge,className:`${at}-title-badge`},m):null}return Y(l.props,i.createElement("div",{key:l.key,onClick:()=>{var d,m;const{key:g}=l;g!=null&&(a(g.toString()),(m=(d=l.props).onClick)===null||m===void 0||m.call(d))},className:K(`${at}-item`,{[`${at}-item-active`]:c})},u()))})),n.safeArea&&i.createElement(Cn,{position:"bottom"})))},{Item:tm}),bl="adm-tag",om={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)"},rm={color:"default",fill:"solid",round:!1},as=e=>{var t;const n=oe(rm,e),o=(t=om[n.color])!==null&&t!==void 0?t:n.color,r={"--border-color":o,"--text-color":n.fill==="outline"?o:"#ffffff","--background-color":n.fill==="outline"?"transparent":o};return Y(n,i.createElement("span",{style:r,onClick:n.onClick,className:K(bl,{[`${bl}-round`]:n.round})},n.children))},Mn="adm-text-area",yl={rows:2,showCount:!1,autoSize:!1,defaultValue:""},Cl=i.forwardRef((e,t)=>{const n=oe(yl,e),{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=fl({onEnterPress:n.onEnterPress,onKeyDown:n.onKeyDown,nativeInputRef:c,enterKeyHint:n.enterKeyHint});i.useImperativeHandle(t,()=>({clear:()=>{l("")},focus:()=>{var b;(b=c.current)===null||b===void 0||b.focus()},blur:()=>{var b;(b=c.current)===null||b===void 0||b.blur()},get nativeElement(){return c.current}})),te.useIsomorphicLayoutEffect(()=>{if(!o)return;const b=c.current,C=d.current;if(!b||(b.style.height=u.current,!C))return;let w=C.scrollHeight;if(typeof o=="object"){const x=window.getComputedStyle(b),S=parseFloat(x.lineHeight);o.minRows&&(w=Math.max(w,o.minRows*S)),o.maxRows&&(w=Math.min(w,o.maxRows*S))}u.current=`${w}px`,b.style.height=`${w}px`},[a,o]);const g=i.useRef(!1);let v;const p=Jr(a).length;typeof r=="function"?v=r(p,s):r&&(v=i.createElement("div",{className:`${Mn}-count`},s===void 0?p:p+"/"+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)),Y(n,i.createElement("div",{className:Mn},i.createElement("textarea",{ref:c,className:`${Mn}-element`,rows:y,value:a,placeholder:n.placeholder,onChange:b=>{let C=b.target.value;s&&!g.current&&(C=Jr(C).slice(0,s).join("")),l(C)},id:n.id,onCompositionStart:b=>{var C;g.current=!0,(C=n.onCompositionStart)===null||C===void 0||C.call(n,b)},onCompositionEnd:b=>{var C;if(g.current=!1,s){const w=b.target.value;l(Jr(w).slice(0,s).join(""))}(C=n.onCompositionEnd)===null||C===void 0||C.call(n,b)},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}),v,o&&i.createElement("textarea",{ref:d,className:`${Mn}-element ${Mn}-element-hidden`,value:a,rows:y,"aria-hidden":!0,readOnly:!0})))});Cl.defaultProps=yl;const lt="adm-toast",sm={maskClickable:!0,stopPropagation:["click"]},im=e=>{const t=oe(sm,e),{maskClickable:n,content:o,icon:r,position:s}=t,a=i.useMemo(()=>{if(r==null)return null;switch(r){case"success":return i.createElement(Li,{className:`${lt}-icon-success`});case"fail":return i.createElement(no,{className:`${lt}-icon-fail`});case"loading":return i.createElement(Ur,{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(to,{visible:t.visible,destroyOnClose:!0,opacity:0,disableBodyScroll:!n,getContainer:t.getContainer,afterClose:t.afterClose,style:Object.assign({pointerEvents:n?"none":"auto"},t.maskStyle),className:K(`${lt}-mask`,t.maskClassName),stopPropagation:t.stopPropagation},i.createElement("div",{className:K(`${lt}-wrap`)},i.createElement("div",{style:{top:l},className:K(`${lt}-main`,r?`${lt}-main-icon`:`${lt}-main-text`)},a&&i.createElement("div",{className:`${lt}-icon`},a),i.createElement(F1,null,o))))};let De=null,ls=null;const Bo={duration:2e3,position:"center",maskClickable:!0},am=e=>i.createElement(im,Object.assign({},e));function lm(e){var t;const n=oe(Bo,typeof e=="string"?{content:e}:e),o=i.createElement(am,Object.assign({},n,{onClose:()=>{De=null}}));return De?!((t=De.isRendered)===null||t===void 0)&&t.call(De)?De.replace(o):(De.close(),De=xn(o)):De=xn(o),ls&&window.clearTimeout(ls),n.duration!==0&&(ls=window.setTimeout(()=>{xl()},n.duration)),De}function xl(){De==null||De.close(),De=null}function cm(e){e.duration!==void 0&&(Bo.duration=e.duration),e.position!==void 0&&(Bo.position=e.position),e.maskClickable!==void 0&&(Bo.maskClickable=e.maskClickable)}const cs={show:lm,clear:xl,config:cm},Sl={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}}}},um=e=>{const{t}=le(),n=$.useFieldSchema(),{dn:o}=h.useDesignable(),r=$.useField(),s={dn:o,field:r,fieldSchema:n};return f.jsx(h.SchemaSettingsDropdown,ae(B({title:f.jsx(de.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)"},icon:f.jsx(Ke.MenuOutlined,{}),type:"dashed",children:t("Menu configuration")})},s),{children:f.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete menu block")},breakRemoveOn:{"x-component":"Grid"}},"remove")}))},Fn=()=>{const{dn:e}=h.useDesignable(),t=$.useFieldSchema(),n=$.useField();return{onUpdateComponentProps:te.useMemoizedFn(r=>me(this,null,function*(){Ae.set(t,"x-component-props",r),n.componentProps=B(B({},n.componentProps),r),yield e.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"],"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}}),yield e.refresh()}))}},wl={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":{}}}},dm=e=>{const{icon:t,name:n}=e,o=h.useDesigner(),r=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;r(c.name?`/mobile/${a["x-uid"]}`:`${d}/${a["x-uid"]}`)};return f.jsxs(h.SortableItem,{className:h.cx("tb-mobile-menu-item",h.css`
|
|
141
|
+
*/var Yt=i;function c0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var u0=typeof Object.is=="function"?Object.is:c0,d0=Yt.useState,f0=Yt.useEffect,m0=Yt.useLayoutEffect,h0=Yt.useDebugValue;function p0(e,t){var n=t(),o=d0({inst:{value:n,getSnapshot:t}}),r=o[0].inst,s=o[1];return m0(function(){r.value=n,r.getSnapshot=t,Wr(r)&&s({inst:r})},[e,n,t]),f0(function(){return Wr(r)&&s({inst:r}),e(function(){Wr(r)&&s({inst:r})})},[e]),h0(n),n}function Wr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!u0(e,n)}catch(o){return!0}}function g0(e,t){return t()}var v0=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?g0:p0;Na.useSyncExternalStore=Yt.useSyncExternalStore!==void 0?Yt.useSyncExternalStore:v0,Fa.exports=Na;var b0=Fa.exports;let y0=!1;const Oa=new Set;function Ta(){return y0}function C0(e){return Oa.add(e),()=>{Oa.delete(e)}}function x0(){return b0.useSyncExternalStore(C0,Ta,Ta)}const Hr="adm-spin-loading",S0={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},w0={color:"default"},k0=15*3.14159265358979*2,Ur=i.memo(e=>{var t;const n=oe(w0,e),o=x0(),{percent:r}=Ve({cancel:o,loop:{reverse:!0},from:{percent:80},to:{percent:30},config:{duration:1200}});return Y(n,i.createElement(ke.div,{className:Hr,style:{"--color":(t=S0[n.color])!==null&&t!==void 0?t:n.color,"--percent":r}},i.createElement("svg",{className:`${Hr}-svg`,viewBox:"0 0 32 32"},i.createElement(ke.circle,{className:`${Hr}-fill`,fill:"transparent",strokeWidth:"2",strokeDasharray:k0,strokeDashoffset:r,strokeLinecap:"square",r:15,cx:16,cy:16}))))}),Gt="adm-picker-view",E0={defaultValue:[],renderLabel:Ma,mouseWheel:!1,loadingContent:i.createElement("div",{className:`${Gt}-loading-content`},i.createElement(Ur,null))},Yr=i.memo(e=>{const t=oe(E0,e),[n,o]=i.useState(t.value===void 0?t.defaultValue:t.value);i.useEffect(()=>{t.value!==void 0&&t.value!==n&&o(t.value)},[t.value]),i.useEffect(()=>{if(t.value===n)return;const l=window.setTimeout(()=>{t.value!==void 0&&t.value!==n&&o(t.value)},1e3);return()=>{window.clearTimeout(l)}},[t.value,n]);const r=Pa(t.columns,n),s=r.columns;te.useDebounceEffect(()=>{var l;t.value!==n&&((l=t.onChange)===null||l===void 0||l.call(t,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 Y(t,i.createElement("div",{className:`${Gt}`},t.loading?t.loadingContent:i.createElement(i.Fragment,null,s.map((l,c)=>i.createElement(Ia,{key:c,index:c,column:l,value:n[c],onSelect:a,renderLabel:t.renderLabel,mouseWheel:t.mouseWheel})),i.createElement("div",{className:`${Gt}-mask`},i.createElement("div",{className:`${Gt}-mask-top`}),i.createElement("div",{className:`${Gt}-mask-middle`}),i.createElement("div",{className:`${Gt}-mask-bottom`})))))});Yr.displayName="PickerView";const pt="adm-picker",I0={defaultValue:[],closeOnMaskClick:!0,renderLabel:Ma,destroyOnClose:!1,forceRender:!1},Gr=i.memo(i.forwardRef((e,t)=>{var n;const{locale:o}=Pe(),r=oe(I0,{confirmText:o.common.confirm,cancelText:o.common.cancel},e),[s,a]=Ie({value:r.visible,defaultValue:!1,onChange:b=>{var C;b===!1&&((C=r.onClose)===null||C===void 0||C.call(r))}}),l={toggle:()=>{a(b=>!b)},open:()=>{a(!0)},close:()=>{a(!1)}};i.useImperativeHandle(t,()=>l);const[c,u]=Ie(Object.assign(Object.assign({},r),{onChange:b=>{var C;const w=_a(r.columns,b);(C=r.onConfirm)===null||C===void 0||C.call(r,b,w)}})),d=Pa(r.columns,c),[m,g]=i.useState(c);i.useEffect(()=>{m!==c&&g(c)},[s]),i.useEffect(()=>{s||g(c)},[c]);const v=te.useMemoizedFn((b,C)=>{var w;g(b),s&&((w=r.onSelect)===null||w===void 0||w.call(r,b,C))}),p=Y(r,i.createElement("div",{className:pt},i.createElement("div",{className:`${pt}-header`},i.createElement("a",{role:"button",className:`${pt}-header-button`,onClick:()=>{var b;(b=r.onCancel)===null||b===void 0||b.call(r),a(!1)}},r.cancelText),i.createElement("div",{className:`${pt}-header-title`},r.title),i.createElement("a",{role:"button",className:K(`${pt}-header-button`,r.loading&&`${pt}-header-button-disabled`),onClick:()=>{r.loading||(u(m,!0),a(!1))},"aria-disabled":r.loading},r.confirmText)),i.createElement("div",{className:`${pt}-body`},i.createElement(Yr,{loading:r.loading,loadingContent:r.loadingContent,columns:r.columns,renderLabel:r.renderLabel,value:m,mouseWheel:r.mouseWheel,onChange:v})))),y=i.createElement(Ht,{style:r.popupStyle,className:K(`${pt}-popup`,r.popupClassName),visible:s,position:"bottom",onMaskClick:()=>{var b;r.closeOnMaskClick&&((b=r.onCancel)===null||b===void 0||b.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},p,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))}));Gr.displayName="Picker";function $0(e){return new Promise(t=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Gr,Object.assign({},e,{visible:r,onConfirm:(a,l)=>{var c;(c=e.onConfirm)===null||c===void 0||c.call(e,a,l),t(a)},onClose:()=>{var a;(a=e.onClose)===null||a===void 0||a.call(e),s(!1),t(null)},afterClose:()=>{var a;(a=e.afterClose)===null||a===void 0||a.call(e),o()}}))},o=Or(i.createElement(n,null))})}const Da=we(Gr,{prompt:$0}),Fe="adm-tabs",_0=()=>null,P0={activeLineMode:"auto",stretch:!0,direction:"ltr"},$o=we(e=>{var t;const n=oe(P0,e),o=i.useRef(null),r=i.useRef(null),s={};let a=null;const l=[],c=n.direction==="rtl";jr(n.children,(k,I)=>{if(!i.isValidElement(k))return;const M=k.key;if(typeof M!="string")return;I===0&&(a=M);const O=l.push(k);s[M]=O-1});const[u,d]=Ie({value:n.activeKey,defaultValue:(t=n.defaultActiveKey)!==null&&t!==void 0?t:a,onChange:k=>{var I;k!==null&&((I=n.onChange)===null||I===void 0||I.call(n,k))}}),[{x:m,width:g},v]=Ve(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:p},y]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:b,rightMaskOpacity:C},w]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function x(k=!1,I=!1){const M=o.current;if(!M)return;const O=s[u];if(O===void 0){v.start({x:0,width:0,immediate:!0});return}const L=r.current;if(!L)return;const F=M.children.item(O+1),N=F.children.item(0),W=N.offsetLeft,V=N.offsetWidth,_=F.offsetLeft,P=F.offsetWidth,E=M.offsetWidth,D=M.scrollWidth,T=M.scrollLeft,z=L.offsetWidth;let j=0,H=0;if(n.activeLineMode==="auto"?(j=W,H=V):n.activeLineMode==="full"?(j=_,H=P):j=W+(V-z)/2,c){const ne=["auto","full"].includes(n.activeLineMode)?H:z;j=-(E-j-ne)}v.start({x:j,width:H,immediate:k});const U=D-E;if(U<=0)return;let J=0;c?J=-ye(E/2-W+V/2-z,0,U):J=ye(W-(E-V)/2,0,U),(!I||n.autoScroll!==!1)&&y.start({scrollLeft:J,from:{scrollLeft:T},immediate:k})}te.useIsomorphicLayoutEffect(()=>{x(!m.isAnimating)},[]),Ar(()=>{x()},[u,c,n.activeLineMode]),Sa(()=>{x(!m.isAnimating)},o),wa(()=>{x(!m.isAnimating,!0)},o,{subtree:!0,childList:!0,characterData:!0});const{run:S}=te.useThrottleFn((k=!1)=>{const I=o.current;if(!I)return;const M=I.scrollLeft;let O=!1,L=!1;c?(O=Math.round(-M)+I.offsetWidth<I.scrollWidth,L=M<0):(O=M>0,L=M+I.offsetWidth<I.scrollWidth),w.start({leftMaskOpacity:O?1:0,rightMaskOpacity:L?1:0,immediate:k})},{wait:100,trailing:!0,leading:!0});return te.useIsomorphicLayoutEffect(()=>{S(!0)},[]),Y(n,i.createElement("div",{className:Fe,style:{direction:n.direction}},i.createElement("div",{className:`${Fe}-header`},i.createElement(ke.div,{className:K(`${Fe}-header-mask`,`${Fe}-header-mask-left`),style:{opacity:b}}),i.createElement(ke.div,{className:K(`${Fe}-header-mask`,`${Fe}-header-mask-right`),style:{opacity:C}}),i.createElement(ke.div,{className:`${Fe}-tab-list`,ref:o,scrollLeft:p,onScroll:S,role:"tablist"},i.createElement(ke.div,{ref:r,className:`${Fe}-tab-line`,style:{width:n.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":g,x:m}}),l.map(k=>Y(k.props,i.createElement("div",{key:k.key,className:K(`${Fe}-tab-wrapper`,{[`${Fe}-tab-wrapper-stretch`]:n.stretch})},i.createElement("div",{onClick:()=>{const{key:I}=k;k.props.disabled||I!=null&&d(I.toString())},className:K(`${Fe}-tab`,{[`${Fe}-tab-active`]:k.key===u,[`${Fe}-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 I=k.key===u;return i.createElement(eo,{key:k.key,active:I,forceRender:k.props.forceRender,destroyOnClose:k.props.destroyOnClose},i.createElement("div",{className:`${Fe}-content`,style:{display:I?"block":"none"}},k.props.children))})))},{Tab:_0}),Sn="adm-list",M0={mode:"default"},F0=i.forwardRef((e,t)=>{const n=oe(M0,e),o=i.useRef(null);return i.useImperativeHandle(t,()=>({get nativeElement(){return o.current}})),Y(n,i.createElement("div",{className:K(Sn,`${Sn}-${n.mode}`),ref:o},n.header&&i.createElement("div",{className:`${Sn}-header`},n.header),i.createElement("div",{className:`${Sn}-body`},i.createElement("div",{className:`${Sn}-body-inner`},n.children))))});function _o(e){return e!=null&&e!==!1}const it="adm-list-item",qt=we(F0,{Item:e=>{var t,n;const{arrow:o,arrowIcon:r}=e,{list:s={}}=Pe(),a=(t=e.clickable)!==null&&t!==void 0?t:!!e.onClick,l=(n=o!=null?o:r)!==null&&n!==void 0?n:a,c=Uo(s.arrowIcon,o!==!0?o:null,r!==!0?r:null),u=i.createElement("div",{className:`${it}-content`},_o(e.prefix)&&i.createElement("div",{className:`${it}-content-prefix`},e.prefix),i.createElement("div",{className:`${it}-content-main`},_o(e.title)&&i.createElement("div",{className:`${it}-title`},e.title),e.children,_o(e.description)&&i.createElement("div",{className:`${it}-description`},e.description)),_o(e.extra)&&i.createElement("div",{className:`${it}-content-extra`},e.extra),l&&i.createElement("div",{className:`${it}-content-arrow`},c||i.createElement(md,null)));return Y(e,i.createElement(a?"a":"div",{className:K(`${it}`,a?["adm-plain-anchor"]:[],e.disabled&&`${it}-disabled`),onClick:e.disabled?void 0:e.onClick},u))}}),Aa=i.createContext(null),N0="adm-check-list",O0={multiple:!1,defaultValue:[],activeIcon:i.createElement(Ai,null)},T0=e=>{const{checkList:t={}}=Pe(),n=oe(O0,t,e),[o,r]=Ie(n);function s(m){n.multiple?r([...o,m]):r([m])}function a(m){r(o.filter(g=>g!==m))}const{activeIcon:l,extra:c,disabled:u,readOnly:d}=n;return i.createElement(Aa.Provider,{value:{value:o,check:s,uncheck:a,activeIcon:l,extra:c,disabled:u,readOnly:d}},Y(n,i.createElement(qt,{mode:n.mode,className:N0},n.children)))},Po="adm-check-list-item",Mo=we(T0,{Item:e=>{const t=i.useContext(Aa);if(t===null)return null;const n=t.value.includes(e.value),o=e.readOnly||t.readOnly,r=n?t.activeIcon:null,s=t.extra?t.extra(n):r,a=i.createElement("div",{className:`${Po}-extra`},s);return Y(e,i.createElement(qt.Item,{title:e.title,className:K(Po,o&&`${Po}-readonly`,n&&`${Po}-active`),description:e.description,prefix:e.prefix,onClick:l=>{var c;o||(n?t.uncheck(e.value):t.check(e.value),(c=e.onClick)===null||c===void 0||c.call(e,l))},arrow:!1,clickable:!o,extra:a,disabled:e.disabled||t.disabled},e.children))}});function D0(e){var t=e+"",n=t.indexOf("...");return n>=0&&(n<t.indexOf(")")||t.indexOf("arguments")>=0)}function La(e,t){t||(t={});var n=t.vargs||D0(e),o=[],r=new Map,s,a,l=function(v){return a=setTimeout(function(){if(s){r.delete(v);return}o.splice(v,1)},t.maxAge)},c=t.maxAge>0&&t.maxAge<1/0?l:0,u=t.equals?t.equals:0,d=t.maxArgs,m=t.serializer,g;return e.length===1&&!t.equals&&!n?(g=function(v){m&&(v=m(v));var p;return r.get(v)||(!c||c(v),r.set(v,p=e.call(this,v)),p)},s=1):u?g=function(){for(var v=d||arguments.length,p=o.length,y=-1;++y<p;)if(o[y].length===v){for(var b=-1;++b<v&&u(arguments[b],o[y][b]););if(b===v)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=e.apply(this,o[y])}:g=function(){for(var v=d||arguments.length,p=o.length,y=-1;++y<p;)if(o[y].length===v){for(var b=-1;++b<v&&arguments[b]===o[y][b];);if(b===v)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=e.apply(this,o[y])},g.clear=function(){a&&clearTimeout(a),r.clear(),o=[]},g.keys=function(){return s?[...r.keys()]:o.slice()},g.values=function(){return s?[...r.values()]:o.map(v=>v.val)},g}function A0(e,t){const{valueName:n,childrenName:o}=t,r=i.useMemo(()=>La(l=>{const c=[];let u=e;for(const d of l){const m=u.find(g=>g[n]===d);if(!m||(c.push(m),!m[o]))break;u=m[o]}return c},{equals:Kr}),[e]),s=i.useMemo(()=>La(l=>l.reduce((u,d)=>{var m;return((m=u.find(g=>g[n]===d))===null||m===void 0?void 0:m[o])||[]},e).length===0,{equals:Kr}),[e]);function a(l){return{get items(){return r(l)},get isLeaf(){return s(l)}}}return a}const Ba=[];function L0(e,t){const n=[];for(let o=e;o<=t;o++)n.push(o);return n}const wn="adm-skeleton",qr=e=>Y(e,i.createElement("div",{className:K(wn,{[`${wn}-animated`]:e.animated})})),B0=e=>Y(e,i.createElement(qr,{animated:e.animated,className:`${wn}-title`})),V0={lineCount:3},Fo=we(qr,{Title:B0,Paragraph:e=>{const t=oe(V0,e),n=L0(1,t.lineCount),o=i.createElement("div",{className:`${wn}-paragraph`},n.map(r=>i.createElement(qr,{key:r,animated:t.animated,className:`${wn}-paragraph-line`})));return Y(t,o)}}),z0=(e={})=>i.useMemo(()=>{const{label:n="label",value:o="value",disabled:r="disabled",children:s="children"}=e;return[n,o,s,r]},[JSON.stringify(e)]),Ye="adm-cascader-view",Z0={defaultValue:[]},j0=we(e=>{const t=oe(Z0,e),{locale:n}=Pe(),[o,r,s,a]=z0(t.fieldNames),l=A0(t.options,{valueName:r,childrenName:s}),[c,u]=Ie(Object.assign(Object.assign({},t),{onChange:b=>{var C;(C=t.onChange)===null||C===void 0||C.call(t,b,l(b))}})),[d,m]=i.useState(0),g=i.useMemo(()=>{const b=[];let C=t.options,w=!1;for(const x of c){const S=C.find(k=>k[r]===x);if(b.push({selected:S,options:C}),!S||!S[s]){w=!0;break}C=S[s]}return w||b.push({selected:void 0,options:C}),b},[c,t.options]);te.useUpdateEffect(()=>{var b;(b=t.onTabsChange)===null||b===void 0||b.call(t,d)},[d]),i.useEffect(()=>{m(g.length-1)},[c]),i.useEffect(()=>{const b=g.length-1;d>b&&m(b)},[d,g]);const v=(b,C)=>{const w=c.slice(0,C);b!==void 0&&(w[C]=b),u(w)},p=b=>t.loading||b===Ba,y=t.placeholder||n.Cascader.placeholder;return Y(t,i.createElement("div",{className:Ye},i.createElement($o,{activeKey:d.toString(),onChange:b=>{const C=parseInt(b);m(C)},stretch:!1,className:`${Ye}-tabs`},g.map((b,C)=>{const w=b.selected;return i.createElement($o.Tab,{key:C.toString(),title:i.createElement("div",{className:`${Ye}-header-title`},w?w[o]:typeof y=="function"?y(C):y),forceRender:!0},i.createElement("div",{className:`${Ye}-content`},p(b.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(Mo,{value:[c[C]],onChange:x=>v(x[0],C),activeIcon:t.activeIcon},b.options.map(x=>{const S=c[C]===x[r];return i.createElement(Mo.Item,{value:x[r],key:x[r],disabled:x[a],className:K(`${Ye}-item`,{[`${Ye}-item-active`]:S})},x[o])}))))}))))},{optionSkeleton:Ba}),Va=i.createContext(null),K0={disabled:!1,defaultValue:[]},W0=e=>{const t=oe(K0,e),[n,o]=Ie(t);return i.createElement(Va.Provider,{value:{value:n,disabled:t.disabled,check:r=>{o([...n,r])},uncheck:r=>{o(n.filter(s=>s!==r))}}},t.children)},za=i.memo(e=>Y(e,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"})))),H0=i.memo(e=>Y(e,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"})))),Za=e=>{const t=i.useRef(null),n=te.useMemoizedFn(o=>{o.stopPropagation(),o.stopImmediatePropagation();const r=o.target.checked;r!==e.checked&&e.onChange(r)});return i.useEffect(()=>{if(e.disabled||!t.current)return;const o=t.current;return o.addEventListener("click",n),()=>{o.removeEventListener("click",n)}},[e.disabled,e.onChange]),i.createElement("input",{ref:t,type:e.type,checked:e.checked,onChange:()=>{},disabled:e.disabled,id:e.id})},gt="adm-checkbox",U0={defaultChecked:!1,indeterminate:!1},Y0=i.forwardRef((e,t)=>{const n=i.useContext(Va),o=oe(U0,e);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(t,()=>({check:()=>{s(!0)},uncheck:()=>{s(!1)},toggle:()=>{s(!r)}}));const c=()=>o.icon?i.createElement("div",{className:`${gt}-custom-icon`},o.icon(r,o.indeterminate)):i.createElement("div",{className:`${gt}-icon`},o.indeterminate?i.createElement(H0,null):r&&i.createElement(za,null));return Y(o,i.createElement("label",{onClick:o.onClick,className:K(gt,{[`${gt}-checked`]:r&&!o.indeterminate,[`${gt}-indeterminate`]:o.indeterminate,[`${gt}-disabled`]:a,[`${gt}-block`]:o.block})},i.createElement(Za,{type:"checkbox",checked:r,onChange:s,disabled:a,id:o.id}),c(),o.children&&i.createElement("div",{className:`${gt}-content`},o.children)))}),Xr=we(Y0,{Group:W0});var ja={exports:{}};(function(e,t){(function(n,o){e.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}}})})(ja);var G0=ja.exports;const Ka=xt(G0);var Wa={exports:{}};(function(e,t){(function(n,o){e.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}}})})(Wa);var q0=Wa.exports;const Ha=xt(q0),kn="TILL_NOW";he.extend(Lr),he.extend(Ka),he.extend(Ha);const vt={year:0,month:1,day:2,hour:3,minute:4,second:5};function X0(e,t,n,o,r,s,a){const l=[],c=t.getFullYear(),u=t.getMonth()+1,d=t.getDate(),m=t.getHours(),g=t.getMinutes(),v=t.getSeconds(),p=n.getFullYear(),y=n.getMonth()+1,b=n.getDate(),C=n.getHours(),w=n.getMinutes(),x=n.getSeconds(),S=vt[o],k=parseInt(e[0]),I=he(Qr([e[0],e[1],"1"])),M=parseInt(e[1]),O=parseInt(e[2]),L=parseInt(e[3]),F=parseInt(e[4]),N=k===c,W=k===p,V=N&&M===u,_=W&&M===y,P=V&&O===d,E=_&&O===b,D=P&&L===m,T=E&&L===C,z=D&&F===g,j=T&&F===w,H=(U,J,ne)=>{let ee=[];for(let ue=U;ue<=J;ue++)ee.push(ue);const Ne=e.slice(0,vt[ne]),q=s==null?void 0:s[ne];return q&&typeof q=="function"&&(ee=ee.filter(ue=>q(ue,{get date(){const Z=[...Ne,ue.toString()];return Qr(Z)}}))),ee};if(S>=vt.year){const ne=H(c,p,"year");l.push(ne.map(ee=>({label:r("year",ee),value:ee.toString()})))}if(S>=vt.month){const ne=H(N?u:1,W?y:12,"month");l.push(ne.map(ee=>({label:r("month",ee),value:ee.toString()})))}if(S>=vt.day){const U=V?d:1,J=_?b:I.daysInMonth(),ne=H(U,J,"day");l.push(ne.map(ee=>({label:r("day",ee),value:ee.toString()})))}if(S>=vt.hour){const ne=H(P?m:0,E?C:23,"hour");l.push(ne.map(ee=>({label:r("hour",ee),value:ee.toString()})))}if(S>=vt.minute){const ne=H(D?g:0,T?w:59,"minute");l.push(ne.map(ee=>({label:r("minute",ee),value:ee.toString()})))}if(S>=vt.second){const ne=H(z?v:0,j?x:59,"second");l.push(ne.map(ee=>({label:r("second",ee),value:ee.toString()})))}if(a&&(l[0].push({label:r("now",null),value:kn}),kn===(e==null?void 0:e[0])))for(let U=1;U<l.length;U+=1)l[U]=[];return l}function Q0(e){return e?[e.getFullYear().toString(),(e.getMonth()+1).toString(),e.getDate().toString(),e.getHours().toString(),e.getMinutes().toString(),e.getSeconds().toString()]:[]}function Qr(e){var t,n,o,r,s,a;const l=(t=e[0])!==null&&t!==void 0?t:"1900",c=(n=e[1])!==null&&n!==void 0?n:"1",u=(o=e[2])!==null&&o!==void 0?o:"1",d=(r=e[3])!==null&&r!==void 0?r:"0",m=(s=e[4])!==null&&s!==void 0?s:"0",g=(a=e[5])!==null&&a!==void 0?a:"0";return new Date(parseInt(l),parseInt(c)-1,parseInt(u),parseInt(d),parseInt(m),parseInt(g))}var Ua={exports:{}};(function(e,t){(function(n,o){e.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(),g=!!m.u(d)||d;if(m.p(u)===o){var v=this.quarter()-1;return g?this.month(3*v).startOf(n).startOf("day"):this.month(3*v+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}})})(Ua);var J0=Ua.exports;const R0=xt(J0);he.extend(R0);const No={year:0,quarter:1};function ef(e,t,n,o,r,s){const a=[],l=t.getFullYear(),c=n.getFullYear(),u=No[o],d=parseInt(e[0]),m=d===l,g=d===c,v=he(t),p=he(n),y=v.quarter(),b=p.quarter(),C=(w,x,S)=>{let k=[];for(let O=w;O<=x;O++)k.push(O);const I=e.slice(0,No[S]),M=s==null?void 0:s[S];return M&&typeof M=="function"&&(k=k.filter(O=>M(O,{get date(){const L=[...I,O.toString()];return Ya(L)}}))),k};if(u>=No.year){const S=C(l,c,"year");a.push(S.map(k=>({label:r("year",k),value:k.toString()})))}if(u>=No.quarter){const S=C(m?y:1,g?b:4,"quarter");a.push(S.map(k=>({label:r("quarter",k),value:k.toString()})))}return a}function tf(e){if(!e)return[];const t=he(e);return[t.year().toString(),t.quarter().toString()]}function Ya(e){var t,n;const o=(t=e[0])!==null&&t!==void 0?t:"1900",r=(n=e[1])!==null&&n!==void 0?n:"1";return he().year(parseInt(o)).quarter(parseInt(r)).hour(0).minute(0).second(0).toDate()}he.extend(Lr),he.extend(Ka),he.extend(Ha);const En={year:0,week:1,"week-day":2};function nf(e,t,n,o,r,s){const a=[],l=t.getFullYear(),c=n.getFullYear(),u=En[o],d=parseInt(e[0]),m=d===l,g=d===c,v=he(t),p=he(n),y=v.isoWeek(),b=p.isoWeek(),C=v.isoWeekday(),w=p.isoWeekday(),x=parseInt(e[1]),S=m&&x===y,k=g&&x===b,I=he(`${d}-01-01`).isoWeeksInYear(),M=(O,L,F)=>{let N=[];for(let _=O;_<=L;_++)N.push(_);const W=e.slice(0,En[F]),V=s==null?void 0:s[F];return V&&typeof V=="function"&&(N=N.filter(_=>V(_,{get date(){const P=[...W,_.toString()];return Ga(P)}}))),N};if(u>=En.year){const F=M(l,c,"year");a.push(F.map(N=>({label:r("year",N),value:N.toString()})))}if(u>=En.week){const F=M(m?y:1,g?b:I,"week");a.push(F.map(N=>({label:r("week",N),value:N.toString()})))}if(u>=En["week-day"]){const F=M(S?C:1,k?w:7,"week-day");a.push(F.map(N=>({label:r("week-day",N),value:N.toString()})))}return a}function of(e){if(!e)return[];const t=he(e);return[t.isoWeekYear().toString(),t.isoWeek().toString(),t.isoWeekday().toString()]}function Ga(e){var t,n,o;const r=(t=e[0])!==null&&t!==void 0?t:"1900",s=(n=e[1])!==null&&n!==void 0?n:"1",a=(o=e[2])!==null&&o!==void 0?o:"1";return he().year(parseInt(r)).isoWeek(parseInt(s)).isoWeekday(parseInt(a)).hour(0).minute(0).second(0).toDate()}const rf={year:1,month:2,day:3,hour:4,minute:5,second:6},sf=(e,t)=>{if(t.includes("week"))return of(e);if(t.includes("quarter"))return tf(e);{const n=t;return Q0(e).slice(0,rf[n])}},qa=(e,t)=>{if((e==null?void 0:e[0])===kn){const n=new Date;return n.tillNow=!0,n}return t.includes("week")?Ga(e):t.includes("quarter")?Ya(e):Qr(e)},af=(e,t,n,o,r,s,a)=>o.startsWith("week")?nf(e,t,n,o,r,s):o.startsWith("quarter")?ef(e,t,n,o,r,s):X0(e,t,n,o,r,s,a);function lf(e){const{locale:t}=Pe();return i.useCallback((n,o)=>{if(e)return e(n,o);switch(n){case"minute":case"second":case"hour":return("0"+o.toString()).slice(-2);case"now":return t.DatePicker.tillNow;default:return o.toString()}},[e])}const Xa=new Date().getFullYear(),cf={min:new Date(new Date().setFullYear(Xa-10)),max:new Date(new Date().setFullYear(Xa+10)),precision:"day",defaultValue:null},Qa=i.forwardRef((e,t)=>{const n=oe(cf,e),{renderLabel:o}=n,[r,s]=Ie({value:n.value,defaultValue:n.defaultValue,onChange:g=>{var v;g!==null&&((v=n.onConfirm)===null||v===void 0||v.call(n,g))}}),a=i.useMemo(()=>new Date,[]),l=lf(o),c=i.useMemo(()=>{let g=r!=null?r:a;return g.tillNow?[kn]:(g=new Date(ye(g.getTime(),n.min.getTime(),n.max.getTime())),sf(g,n.precision))},[r,n.precision,n.min,n.max]),u=i.useCallback(g=>{const v=qa(g,n.precision);s(v,!0)},[s,n.precision]),d=te.useMemoizedFn(g=>{var v;const p=qa(g,n.precision);(v=n.onSelect)===null||v===void 0||v.call(n,p)}),m=i.useCallback(g=>af(g,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(Da,{ref:t,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},(g,v)=>{var p;return(p=n.children)===null||p===void 0?void 0:p.call(n,r,v)}))});function uf(e){return new Promise(t=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Qa,Object.assign({},e,{visible:r,onConfirm:a=>{var l;(l=e.onConfirm)===null||l===void 0||l.call(e,a),t(a)},onClose:()=>{var a;(a=e.onClose)===null||a===void 0||a.call(e),s(!1),t(null)},afterClose:()=>{var a;(a=e.afterClose)===null||a===void 0||a.call(e),o()}}))},o=Or(i.createElement(n,null))})}const df=we(Qa,{prompt:uf,DATE_NOW:kn});var Ja;(function(e){e[e.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",e[e.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",e[e.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",e[e.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",e[e.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",e[e.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",e[e.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",e[e.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",e[e.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",e[e.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",e[e.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",e[e.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",e[e.TAGS_START=917504]="TAGS_START",e[e.TAGS_END=917631]="TAGS_END",e[e.ZWJ=8205]="ZWJ"})(Ja||(Ja={}));const ff=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var Ra;function Jr(e){if(typeof e!="string")throw new TypeError("string cannot be undefined or null");const t=[];let n=0,o=0;for(;n<e.length;)o+=mf(n+o,e),Cf(e[n+o])&&o++,vf(e[n+o])&&o++,bf(e[n+o])&&o++,xf(e[n+o])?o++:(t.push(e.substring(n,n+o)),n+=o,o=0);return t}function mf(e,t){const n=t[e];if(!hf(n)||e===t.length-1)return 1;const o=n+t[e+1];let r=t.substring(e+2,e+5);return el(o)&&el(r)?4:pf(o)&&yf(r)?t.slice(e).indexOf(String.fromCodePoint(917631))+2:gf(r)?4:2}function hf(e){return e&&It(e[0].charCodeAt(0),55296,56319)}function el(e){return It(Rr(e),127462,127487)}function pf(e){return It(Rr(e),127988,127988)}function gf(e){return It(Rr(e),127995,127999)}function vf(e){return typeof e=="string"&&It(e.charCodeAt(0),65024,65039)}function bf(e){return typeof e=="string"&&It(e.charCodeAt(0),8400,8447)}function yf(e){const t=e.codePointAt(0);return typeof e=="string"&&typeof t=="number"&&It(t,917504,917631)}function Cf(e){return typeof e=="string"&&ff.includes(e.charCodeAt(0))}function xf(e){return typeof e=="string"&&e.charCodeAt(0)===8205}function Rr(e){return(e.charCodeAt(0)-55296<<10)+(e.charCodeAt(1)-56320)+65536}function It(e,t,n){return e>=t&&e<=n}(function(e){e[e.unit_1=1]="unit_1",e[e.unit_2=2]="unit_2",e[e.unit_4=4]="unit_4"})(Ra||(Ra={}));const $t="adm-error-block",Sf={status:"default"};function wf(e){return n=>{var o;const r=oe(Sf,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:e[r.status],d=typeof u=="string"?i.createElement("img",{src:u,alt:"error block image"}):u;return Y(r,i.createElement("div",{className:K($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 kf=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"}))),Ef=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)"})))),If=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"})))),$f=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})))),_f=wf({default:kf,disconnected:Ef,empty:If,busy:$f});let Xt=null,Qt=null;Tt&&(Xt=document.createElement("div"),Xt.className="adm-px-tester",Xt.style.setProperty("--size","10"),document.body.appendChild(Xt),Qt=document.createElement("div"),Qt.className="adm-px-tester",document.body.appendChild(Qt));function Pf(e){return Xt===null||Qt===null||Xt.getBoundingClientRect().height===10?e:(Qt.style.setProperty("--size",e.toString()),Qt.getBoundingClientRect().height)}const tl="adm-grid",et=we(e=>{const t={"--columns":e.columns.toString()},{gap:n}=e;return n!==void 0&&(Array.isArray(n)?(t["--gap-horizontal"]=Et(n[0]),t["--gap-vertical"]=Et(n[1])):t["--gap"]=Et(n)),Y(e,i.createElement("div",{className:tl,style:t},e.children))},{Item:e=>{const t=oe({span:1},e),n={"--item-span":t.span};return Y(t,i.createElement("div",{className:`${tl}-item`,style:n,onClick:t.onClick},t.children))}}),Mf=g1([ra,n1]),Oo=()=>[1,0,0,1,0,0],nl=e=>e[4],ol=e=>e[5],In=e=>e[0],$n=(e,t,n)=>rl([1,0,0,1,t,n],e),Ff=(e,t,n=t)=>rl([t,0,0,n,0,0],e),Nf=(e,[t,n])=>[e[0]*t+e[2]*n+e[4],e[1]*t+e[3]*n+e[5]],rl=(e,t)=>[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]],es="adm-image-viewer",sl=e=>{const{dragLockRef:t,maxZoom:n}=e,o=i.useRef([]),r=i.useRef(null),s=i.useRef(null),[{matrix:a},l]=Ve(()=>({matrix:Oo(),config:{tension:200}})),c=te.useSize(r),u=te.useSize(s),d=i.useRef(!1),m=p=>{if(!c||!u)return{x:{position:0,minX:0,maxX:0},y:{position:0,minY:0,maxY:0}};const y=-c.width/2,b=-c.height/2,C=-u.width/2,w=-u.height/2,x=In(p),S=x*u.width,k=x*u.height,I=y-(S-c.width),M=y,O=b-(k-c.height),L=b,[F,N]=Nf(p,[C,w]);return{x:{position:F,minX:I,maxX:M},y:{position:N,minY:O,maxY:L}}},g=(p,y,b,C=0)=>[p<=y-C,p>=b+C],v=(p,y,b=!1)=>{if(!c||!u)return p;const C=In(p),w=C*u.width,x=C*u.height,{x:{position:S,minX:k,maxX:I},y:{position:M,minY:O,maxY:L}}=m(p);if(y==="translate"){let F=S,N=M;return w>c.width?F=b?ye(S,k,I):Eo(S,k,I,C*50):F=-w/2,x>c.height?N=b?ye(M,O,L):Eo(M,O,L,C*50):N=-x/2,$n(p,F-S,N-M)}if(y==="scale"&&b){const[F,N]=[w>c.width?ye(S,k,I):-w/2,x>c.height?ye(M,O,L):-x/2];return $n(p,F-S,N-M)}return p};return Mf({onDrag:p=>{var y;if(p.first){const{x:{position:C,minX:w,maxX:x}}=m(a.get());o.current=g(C,w,x);return}if(p.pinching)return p.cancel();if(p.tap&&p.elapsedTime>0&&p.elapsedTime<1e3){(y=e.onTap)===null||y===void 0||y.call(e);return}const b=In(a.get());if(t&&(t.current=b!==1),!d.current&&b<=1)l.start({matrix:Oo()});else{const C=a.get(),w=[p.offset[0]-nl(C),p.offset[1]-ol(C)],x=$n(C,...p.last?[w[0]+p.velocity[0]*p.direction[0]*200,w[1]+p.velocity[1]*p.direction[1]*200]:w);l.start({matrix:v(x,"translate",p.last),immediate:!p.last});const{x:{position:S,minX:k,maxX:I}}=m(x);p.last&&o.current.some(M=>M)&&g(S,k,I).some(M=>M)&&(t&&(t.current=!1),l.start({matrix:Oo()}))}},onPinch:p=>{var y;d.current=!p.last;const[b]=p.offset;if(b<0)return;let C;n==="auto"?C=c&&u?Math.max(c.height/u.height,c.width/u.width):1:C=n;const w=p.last?ye(b,1,C):b;if((y=e.onZoomChange)===null||y===void 0||y.call(e,w),p.last&&w<=1)l.start({matrix:Oo()}),t&&(t.current=!1);else{if(!c)return;const x=a.get(),S=In(x),k=p.origin[0]-c.width/2,I=p.origin[1]-c.height/2;let M=$n(x,-k,-I);M=Ff(M,w/S),M=$n(M,k,I),l.start({matrix:v(M,"scale",p.last),immediate:!p.last}),t&&(t.current=!0)}}},{target:r,drag:{from:()=>[nl(a.get()),ol(a.get())],pointer:{touch:!0}},pinch:{from:()=>[In(a.get()),0],pointer:{touch:!0}}}),i.createElement("div",{className:`${es}-slide`},i.createElement("div",{className:`${es}-control`,ref:r},i.createElement(ke.div,{className:`${es}-image-wrapper`,style:{matrix:a}},i.createElement("img",{ref:s,src:e.image,draggable:!1,alt:e.image}))))},ts="adm-image-viewer",Of=i.forwardRef((e,t)=>{const n=window.innerWidth+Pf(16),[{x:o},r]=Ve(()=>({x:e.defaultIndex*n,config:{tension:250,clamp:!0}})),s=e.images.length;function a(u,d=!1){var m;const g=ye(u,0,s-1);(m=e.onIndexChange)===null||m===void 0||m.call(e,g),r.start({x:g*n,immediate:d})}i.useImperativeHandle(t,()=>({swipeTo:a}));const l=i.useRef(!1),c=io(u=>{if(l.current)return;const[d]=u.offset;if(u.last){const m=Math.floor(d/n),g=m+1,v=Math.min(u.velocity[0]*2e3,n)*u.direction[0];a(ye(Math.round((d+v)/n),m,g))}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:`${ts}-slides`},c()),i.createElement(ke.div,{className:`${ts}-indicator`},o.to(u=>`${ye(Math.round(u/n),0,s-1)+1} / ${s}`)),i.createElement(ke.div,{className:`${ts}-slides-inner`,style:{x:o.to(u=>-u)}},e.images.map((u,d)=>i.createElement(sl,{key:d,image:u,onTap:e.onTap,maxZoom:e.maxZoom,onZoomChange:m=>{if(m!==1){const g=Math.round(o.get()/n);r.start({x:g*n})}},dragLockRef:l}))))}),To="adm-image-viewer",il={maxZoom:3,getContainer:null,visible:!1},al=e=>{var t,n,o;const r=oe(il,e),s=i.createElement(to,{visible:r.visible,disableBodyScroll:!1,opacity:"thick",afterClose:r.afterClose,destroyOnClose:!0,className:(t=r==null?void 0:r.classNames)===null||t===void 0?void 0:t.mask},i.createElement("div",{className:K(`${To}-content`,(n=r==null?void 0:r.classNames)===null||n===void 0?void 0:n.body)},r.image&&i.createElement(sl,{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 Rn(r.getContainer,s)},Tf=Object.assign(Object.assign({},il),{defaultIndex:0}),ll=i.forwardRef((e,t)=>{var n,o,r;const s=oe(Tf,e),[a,l]=i.useState(s.defaultIndex),c=i.useRef(null);i.useImperativeHandle(t,()=>({swipeTo:(m,g)=>{var v;l(m),(v=c.current)===null||v===void 0||v.swipeTo(m,g)}}));const u=i.useCallback(m=>{var g;m!==a&&(l(m),(g=s.onIndexChange)===null||g===void 0||g.call(s,m))},[s.onIndexChange,a]),d=i.createElement(to,{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:K(`${To}-content`,(o=s==null?void 0:s.classNames)===null||o===void 0?void 0:o.body)},s.images&&i.createElement(Of,{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 Rn(s.getContainer,d)}),Jt=new Set;function Df(e){ns();const t=xn(i.createElement(al,Object.assign({},e,{afterClose:()=>{var n;Jt.delete(t),(n=e.afterClose)===null||n===void 0||n.call(e)}})));return Jt.add(t),t}function Af(e){ns();const t=xn(i.createElement(ll,Object.assign({},e,{afterClose:()=>{var n;Jt.delete(t),(n=e.afterClose)===null||n===void 0||n.call(e)}})));return Jt.add(t),t}function ns(){Jt.forEach(e=>{e.close()}),Jt.clear()}const Lf=we(ll,{show:Af}),Bf=we(al,{Multi:Lf,show:Df,clear:ns}),_t="adm-image-uploader",cl=e=>{const{locale:t}=Pe(),{url:n,file:o,deletable:r,deleteIcon:s,onDelete:a,imageFit:l}=e,c=i.useMemo(()=>n||(o?URL.createObjectURL(o):""),[n,o]);i.useEffect(()=>()=>{o&&URL.revokeObjectURL(c)},[c,o]);function u(){return e.status==="pending"&&i.createElement("div",{className:`${_t}-cell-mask`},i.createElement("span",{className:`${_t}-cell-loading`},i.createElement(Ur,{color:"white"}),i.createElement("span",{className:`${_t}-cell-mask-message`},t.ImageUploader.uploading)))}function d(){return r&&i.createElement("span",{className:`${_t}-cell-delete`,onClick:a},s)}return i.createElement("div",{className:K(`${_t}-cell`,e.status==="fail"&&`${_t}-cell-fail`)},i.createElement(fa,{className:`${_t}-cell-image`,src:c,fit:l,onClick:e.onClick}),u(),d())},Pt="adm-space",Vf={direction:"horizontal"},_n=e=>{const t=oe(Vf,e),{direction:n,onClick:o}=t;return Y(t,i.createElement("div",{className:K(Pt,{[`${Pt}-wrap`]:t.wrap,[`${Pt}-block`]:t.block,[`${Pt}-${n}`]:!0,[`${Pt}-align-${t.align}`]:!!t.align,[`${Pt}-justify-${t.justify}`]:!!t.justify}),onClick:o},i.Children.map(t.children,r=>r!=null&&i.createElement("div",{className:`${Pt}-item`},r))))},tt="adm-image-uploader",zf={disableUpload:!1,deletable:!0,deleteIcon:i.createElement(no,{className:`${tt}-cell-delete-icon`}),showUpload:!0,multiple:!1,maxCount:0,defaultValue:[],accept:"image/*",preview:!0,showFailed:!0,imageFit:"cover"},ul=i.forwardRef((e,t)=>{const{locale:n}=Pe(),o=oe(zf,e),{columns:r}=o,[s,a]=Ie(o),[l,c]=i.useState([]),u=i.useRef(null),d=te.useSize(u),m=i.useRef(null),[g,v]=i.useState(80),p=i.useRef(null);te.useIsomorphicLayoutEffect(()=>{const V=m.current;if(r&&d&&V){const _=d.width,P=Ea(window.getComputedStyle(V).getPropertyValue("height"));v((_-P*(r-1))/r)}},[d==null?void 0:d.width]);const y={"--cell-size":g+"px"};te.useIsomorphicLayoutEffect(()=>{c(V=>V.filter(_=>_.url===void 0?!0:!s.some(P=>P.url===_.url)))},[s]),te.useIsomorphicLayoutEffect(()=>{var V;(V=o.onUploadQueueChange)===null||V===void 0||V.call(o,l.map(_=>({id:_.id,status:_.status})))},[l]);const b=i.useRef(0),{maxCount:C,onPreview:w,renderItem:x}=o;function S(V,_){return yt(this,void 0,void 0,function*(){const{beforeUpload:P}=o;let E=V;return E=yield P==null?void 0:P(V,_),E})}function k(V){return o.showFailed?V:V.filter(_=>_.status!=="fail")}function I(V){var _;return yt(this,void 0,void 0,function*(){V.persist();const{files:P}=V.target;if(!P)return;let E=[].slice.call(P);if(V.target.value="",o.beforeUpload){const z=E.map(j=>S(j,E));yield Promise.all(z).then(j=>{E=j.filter(Boolean)})}if(E.length===0)return;if(C>0){const z=s.length+E.length-C;z>0&&(E=E.slice(0,E.length-z),(_=o.onCountExceed)===null||_===void 0||_.call(o,z))}const D=E.map(z=>({id:b.current++,status:"pending",file:z}));c(z=>[...k(z),...D]);const T=[];yield Promise.all(D.map((z,j)=>yt(this,void 0,void 0,function*(){try{const H=yield o.upload(z.file);T[j]=H,c(U=>U.map(J=>J.id===z.id?Object.assign(Object.assign({},J),{status:"success",url:H.url}):J))}catch(H){throw c(U=>U.map(J=>J.id===z.id?Object.assign(Object.assign({},J),{status:"fail"}):J)),H}}))).catch(z=>console.error(z)),a(z=>z.concat(T))})}const M=i.useRef(null);function O(V){M.current=Bf.Multi.show({images:s.map(_=>_.url),defaultIndex:V,onClose:()=>{M.current=null}})}te.useUnmount(()=>{var V;(V=M.current)===null||V===void 0||V.close()});const L=k(l),F=o.showUpload&&(C===0||s.length+L.length<C),N=()=>s.map((V,_)=>{var P,E;const D=i.createElement(cl,{key:(P=V.key)!==null&&P!==void 0?P:_,url:(E=V.thumbnailUrl)!==null&&E!==void 0?E:V.url,deletable:o.deletable,deleteIcon:o.deleteIcon,imageFit:o.imageFit,onClick:()=>{o.preview&&O(_),w&&w(_,V)},onDelete:()=>yt(void 0,void 0,void 0,function*(){var T;(yield(T=o.onDelete)===null||T===void 0?void 0:T.call(o,V))!==!1&&a(s.filter((j,H)=>H!==_))})});return x?x(D,V,s):D}),W=i.createElement(i.Fragment,null,N(),l.map(V=>!o.showFailed&&V.status==="fail"?null:i.createElement(cl,{key:V.id,file:V.file,deletable:V.status!=="pending",deleteIcon:o.deleteIcon,status:V.status,imageFit:o.imageFit,onDelete:()=>{c(l.filter(_=>_.id!==V.id))}})),i.createElement("div",{className:`${tt}-upload-button-wrap`,style:F?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(cd,null))),!o.disableUpload&&i.createElement("input",{"aria-label":n.ImageUploader.upload,ref:p,capture:o.capture,accept:o.accept,multiple:o.multiple,type:"file",className:`${tt}-input`,onChange:I})));return i.useImperativeHandle(t,()=>({get nativeElement(){return p.current}})),Y(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}),W.props.children):i.createElement(_n,{className:`${tt}-space`,wrap:!0,block:!0},W.props.children)))});function dl({onEnterPress:e,onKeyDown:t,nativeInputRef:n,enterKeyHint:o}){const r=s=>{e&&(s.code==="Enter"||s.keyCode===13)&&e(s),t==null||t(s)};return te.useIsomorphicLayoutEffect(()=>{const s=n.current;if(!(!o||!s))return s.setAttribute("enterkeyhint",o),()=>{s.removeAttribute("enterkeyhint")}},[o]),r}const Do="adm-input",Zf={defaultValue:"",clearIcon:i.createElement(ud,null),onlyShowClearWhenFocus:!0},os=i.forwardRef((e,t)=>{const{locale:n,input:o={}}=Pe(),r=oe(Zf,o,e),[s,a]=Ie(r),[l,c]=i.useState(!1),u=i.useRef(!1),d=i.useRef(null),m=dl({onEnterPress:r.onEnterPress,onKeyDown:r.onKeyDown,nativeInputRef:d,enterKeyHint:r.enterKeyHint});i.useImperativeHandle(t,()=>({clear:()=>{a("")},focus:()=>{var p;(p=d.current)===null||p===void 0||p.focus()},blur:()=>{var p;(p=d.current)===null||p===void 0||p.blur()},get nativeElement(){return d.current}}));function g(){let p=s;if(r.type==="number"){const y=p&&ye(parseFloat(p),r.min,r.max).toString();Number(p)!==Number(y)&&(p=y)}p!==s&&a(p)}const v=!r.clearable||!s||r.readOnly?!1:r.onlyShowClearWhenFocus?l:!0;return Y(r,i.createElement("div",{className:K(`${Do}`,r.disabled&&`${Do}-disabled`)},i.createElement("input",{ref:d,className:`${Do}-element`,value:s,onChange:p=>{a(p.target.value)},onFocus:p=>{var y;c(!0),(y=r.onFocus)===null||y===void 0||y.call(r,p)},onBlur:p=>{var y;c(!1),g(),(y=r.onBlur)===null||y===void 0||y.call(r,p)},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:p=>{var y;u.current=!0,(y=r.onCompositionStart)===null||y===void 0||y.call(r,p)},onCompositionEnd:p=>{var y;u.current=!1,(y=r.onCompositionEnd)===null||y===void 0||y.call(r,p)},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"]}),v&&i.createElement("div",{className:`${Do}-clear`,onMouseDown:p=>{p.preventDefault()},onClick:()=>{var p,y;a(""),(p=r.onClear)===null||p===void 0||p.call(r),W1()&&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",fl=we(e=>{var t;const n=i.useRef(null),o=i.useRef(null),r={};let s=null;const a=[];jr(e.children,(m,g)=>{if(!i.isValidElement(m))return;const v=m.key;if(typeof v!="string")return;g===0&&(s=v);const p=a.push(m);r[v]=p-1});const[l,c]=Ie({value:e.activeKey,defaultValue:(t=e.defaultActiveKey)!==null&&t!==void 0?t:s,onChange:m=>{var g;m!==null&&((g=e.onChange)===null||g===void 0||g.call(e,m))}}),{scrollLeft:u,animate:d}=n0(n,r[l]);return Sa(()=>{d(!0)},o),Y(e,i.createElement("div",{className:nt,ref:o},i.createElement("div",{className:`${nt}-header`},i.createElement(o0,{scrollTrackRef:n}),i.createElement(ke.div,{className:`${nt}-tab-list`,ref:n,scrollLeft:u},a.map(m=>Y(m.props,i.createElement("div",{key:m.key,className:`${nt}-tab-wrapper`},i.createElement("div",{onClick:()=>{const{key:g}=m;m.props.disabled||g!=null&&c(g.toString())},className:K(`${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 g=m.key===l;return i.createElement(eo,{key:m.key,active:g,forceRender:m.props.forceRender,destroyOnClose:m.props.destroyOnClose},i.createElement("div",{className:`${nt}-content`,style:{display:g?"block":"none"}},m.props.children))})))},{Tab:()=>null}),Rt="adm-nav-bar",ml=i.createElement(fd,null),jf=e=>{const{navBar:t={}}=Pe(),n=oe(t,e),{back:o,backIcon:r,backArrow:s}=n,a=t.backIcon||ml,l=Uo(ml,t.backIcon,s===!0?a:s,r===!0?a:r);return Y(n,i.createElement("div",{className:K(Rt)},i.createElement("div",{className:`${Rt}-left`,role:"button"},o!==null&&i.createElement("div",{className:`${Rt}-back`,onClick:n.onBack},l&&i.createElement("span",{className:`${Rt}-back-arrow`},l),i.createElement("span",{"aria-hidden":"true"},o)),n.left),i.createElement("div",{className:`${Rt}-title`},n.children),i.createElement("div",{className:`${Rt}-right`},n.right)))},Pn="adm-page-indicator",Kf={color:"primary",direction:"horizontal"},Wf=i.memo(e=>{const t=oe(Kf,e),n=[];for(let o=0;o<t.total;o++)n.push(i.createElement("div",{key:o,className:K(`${Pn}-dot`,{[`${Pn}-dot-active`]:t.current===o})}));return Y(t,i.createElement("div",{className:K(Pn,`${Pn}-${t.direction}`,`${Pn}-color-${t.color}`)},n))}),hl=i.createContext(null),Hf={disabled:!1,defaultValue:null},Uf=e=>{const t=oe(Hf,e),[n,o]=Ie({value:t.value,defaultValue:t.defaultValue,onChange:r=>{var s;r!==null&&((s=t.onChange)===null||s===void 0||s.call(t,r))}});return i.createElement(hl.Provider,{value:{value:n===null?[]:[n],check:r=>{o(r)},uncheck:()=>{},disabled:t.disabled}},t.children)},Mt="adm-radio",Yf={defaultChecked:!1},rs=we(e=>{const t=oe(Yf,e),n=i.useContext(hl);let[o,r]=Ie({value:t.checked,defaultValue:t.defaultChecked,onChange:t.onChange}),s=t.disabled;const{value:a}=t;n&&a!==void 0&&(o=n.value.includes(a),r=c=>{var u;c?n.check(a):n.uncheck(a),(u=t.onChange)===null||u===void 0||u.call(t,c)},s=s||n.disabled);const l=()=>t.icon?i.createElement("div",{className:`${Mt}-custom-icon`},t.icon(o)):i.createElement("div",{className:`${Mt}-icon`},o&&i.createElement(za,null));return Y(t,i.createElement("label",{onClick:t.onClick,className:K(Mt,{[`${Mt}-checked`]:o,[`${Mt}-disabled`]:s,[`${Mt}-block`]:t.block})},i.createElement(Za,{type:"radio",checked:o,onChange:r,disabled:s,id:t.id}),l(),t.children&&i.createElement("div",{className:`${Mt}-content`},t.children)))},{Group:Uf}),bt="adm-search-bar",Gf={clearable:!0,onlyShowClearWhenFocus:!1,showCancelButton:!1,defaultValue:"",clearOnCancel:!0},pl=i.forwardRef((e,t)=>{const{locale:n,searchBar:o={}}=Pe(),r=oe(Gf,o,{cancelText:n.common.cancel},e),s=Uo(i.createElement(hd,null),o.searchIcon,e.icon,e.searchIcon),[a,l]=Ie(r),[c,u]=i.useState(!1),d=i.useRef(null),m=i.useRef(!1);i.useImperativeHandle(t,()=>({clear:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.clear()},focus:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.focus()},blur:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.blur()},get nativeElement(){var v,p;return(p=(v=d.current)===null||v===void 0?void 0:v.nativeElement)!==null&&p!==void 0?p:null}}));const g=()=>{let v;return typeof r.showCancelButton=="function"?v=r.showCancelButton(c,a):v=r.showCancelButton&&c,v&&i.createElement("div",{className:`${bt}-suffix`},i.createElement(st,{fill:"none",className:`${bt}-cancel-button`,onClick:()=>{var p,y,b;r.clearOnCancel&&((p=d.current)===null||p===void 0||p.clear()),(y=d.current)===null||y===void 0||y.blur(),(b=r.onCancel)===null||b===void 0||b.call(r)},onMouseDown:p=>{p.preventDefault()}},r.cancelText))};return Y(r,i.createElement("div",{className:K(bt,{[`${bt}-active`]:c})},i.createElement("div",{className:`${bt}-input-box`},s&&i.createElement("div",{className:`${bt}-input-box-icon`},s),i.createElement(os,{ref:d,className:K(`${bt}-input`,{[`${bt}-input-without-icon`]:!s}),value:a,onChange:l,maxLength:r.maxLength,autoFocus:r.autoFocus,placeholder:r.placeholder,clearable:r.clearable,onlyShowClearWhenFocus:r.onlyShowClearWhenFocus,onFocus:v=>{var p;u(!0),(p=r.onFocus)===null||p===void 0||p.call(r,v)},onBlur:v=>{var p;u(!1),(p=r.onBlur)===null||p===void 0||p.call(r,v)},onClear:r.onClear,type:"search",enterKeyHint:"search",onEnterPress:()=>{var v,p;m.current||((v=d.current)===null||v===void 0||v.blur(),(p=r.onSearch)===null||p===void 0||p.call(r,a))},"aria-label":n.SearchBar.name,onCompositionStart:v=>{var p;m.current=!0,(p=r.onCompositionStart)===null||p===void 0||p.call(r,v)},onCompositionEnd:v=>{var p;m.current=!1,(p=r.onCompositionEnd)===null||p===void 0||p.call(r,v)}})),g()))}),gl=e=>Y(e,i.createElement("div",{className:"adm-swiper-item",onClick:e.onClick},e.children));function qf(e){const[t,n]=i.useState(e),o=i.useRef(t);return i.useEffect(()=>{o.current=t},[t]),[t,n,o]}function Xf(e,t){const n=Object.keys(e),o=Object.keys(t),r=new Set([...n,...o]),s={};return r.forEach(a=>{const l=e[a],c=t[a];typeof l=="function"&&typeof c=="function"?s[a]=function(...u){l(...u),c(...u)}:s[a]=l||c}),s}const ot="adm-swiper",Qf={mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp"},Jf={defaultIndex:0,allowTouchMove:!0,autoplay:!1,autoplayInterval:3e3,loop:!1,direction:"horizontal",slideSize:100,trackOffset:0,stuckAtBoundary:!0,rubberband:!0,stopPropagation:[]};let Ao;const Rf=i.forwardRef(Dr((e,t)=>{const n=oe(Jf,e),{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:g,count:v,renderChildren:p}=i.useMemo(()=>{let b=0,C,w;return typeof s=="function"?C=s:w=i.Children.map(s,x=>!i.isValidElement(x)||x.type!==gl?null:(b++,x)),{renderChildren:C,validChildren:w,count:b}},[s]),y=r!=null?r:v;return y===0||!g&&!p?null:()=>{let b=n.loop;d*(y-1)<1&&(b=!1);const C=i.useRef(null);function w(){const Z=C.current;return Z?(u?Z.offsetHeight:Z.offsetWidth)*n.slideSize/100:0}const[x,S,k]=te.useGetState(n.defaultIndex),[I,M,O]=qf(!1);function L(Z){let G=0,re=y-1;return n.stuckAtBoundary&&(G+=m/d,re-=(1-d-m)/d),ye(Z,G,re)}const[{position:F},N]=Ve(()=>({position:L(x)*100,config:{tension:200,friction:30},onRest:()=>{if(O.current||!b)return;const Z=F.get(),G=100*y,re=ss(Z,G);re!==Z&&N.start({position:re,immediate:!0})}}),[y]),W=i.useRef(null);function V(){var Z;(Z=W.current)===null||Z===void 0||Z.call(W),O.current=!1}const _=io(Z=>{if(W.current=Z.cancel,!Z.intentional||(Z.first&&!Ao&&(Ao=l),Ao!==l))return;Ao=Z.last?void 0:l;const G=w();if(!G)return;const re=u?1:0,ge=Z.offset[re],Ce=Z.direction[re],Ko=Z.velocity[re];if(M(!0),!Z.last)N.start({position:ge*100/G,immediate:!0});else{const Nn=Math.floor(ge/G),v2=Nn+1,b2=Math.round((ge+Ko*2e3*Ce)/G);P(ye(b2,Nn,v2)),window.setTimeout(()=>{M(!1)})}},{transform:([Z,G])=>[-Z,-G],from:()=>{const Z=w();return[F.get()/100*Z,F.get()/100*Z]},triggerAllEvents:!0,bounds:()=>{if(b)return{};const Z=w(),G=L(0)*Z,re=L(y-1)*Z;return u?{top:G,bottom:re}:{left:G,right:re}},rubberband:n.rubberband,axis:u?"y":"x",preventScroll:!u,pointer:{touch:!0}});function P(Z,G=!1){var re;const ge=Math.round(Z),Ce=b?ss(ge,y):ye(ge,0,y-1);Ce!==k()&&((re=n.onIndexChange)===null||re===void 0||re.call(n,Ce)),S(Ce),N.start({position:(b?ge:L(ge))*100,immediate:G})}function E(){P(Math.round(F.get()/100)+1)}function D(){P(Math.round(F.get()/100)-1)}i.useImperativeHandle(t,()=>({swipeTo:P,swipeNext:E,swipePrev:D})),te.useIsomorphicLayoutEffect(()=>{const Z=y-1;x>Z&&P(Z,!0)});const{autoplay:T,autoplayInterval:z}=n,j=()=>{c.current=window.setTimeout(()=>{T==="reverse"?D():E(),j()},z)};i.useEffect(()=>{if(!(!T||I))return j(),()=>{c.current&&window.clearTimeout(c.current)}},[T,z,I,y]);function H(Z,G){let re={};return b&&(re={[u?"y":"x"]:F.to(ge=>{let Ce=-ge+Z*100;const Ko=y*100,Nn=Ko/2;return Ce=ss(Ce+Nn,Ko)-Nn,`${Ce}%`}),[u?"top":"left"]:`-${Z*100}%`}),i.createElement(ke.div,{className:K(`${ot}-slide`,{[`${ot}-slide-active`]:x===Z}),style:re,key:Z},G)}function U(){if(p&&r){const G=Math.max(x-2,0),re=Math.min(x+2,r-1),ge=[];for(let Ce=G;Ce<=re;Ce+=1)ge.push(H(Ce,p(Ce)));return i.createElement(i.Fragment,null,i.createElement("div",{className:`${ot}-slide-placeholder`,style:{width:`${G*100}%`}}),ge)}return i.Children.map(g,(Z,G)=>H(G,Z))}function J(){return b?i.createElement("div",{className:`${ot}-track-inner`},U()):i.createElement(ke.div,{className:`${ot}-track-inner`,style:{[u?"y":"x"]:F.to(Z=>`${-Z}%`)}},U())}const ne={"--slide-size":`${n.slideSize}%`,"--track-offset":`${n.trackOffset}%`},ee=Object.assign({},n.allowTouchMove?_():{}),Ne={};for(const Z of n.stopPropagation){const G=Qf[Z];Ne[G]=function(re){re.stopPropagation()}}const q=Xf(ee,Ne);let ue=null;return typeof a=="function"?ue=a(y,x):a!==!1&&(ue=i.createElement("div",{className:`${ot}-indicator`},i.createElement(Wf,Object.assign({},n.indicatorProps,{total:y,current:x,direction:o})))),Y(n,i.createElement("div",{className:K(ot,`${ot}-${o}`),style:ne},i.createElement("div",Object.assign({ref:C,className:K(`${ot}-track`,{[`${ot}-track-allow-touch-move`]:n.allowTouchMove}),onClickCapture:Z=>{O.current&&Z.stopPropagation(),V()}},q),J()),ue))}}));function ss(e,t){const n=e%t;return n<0?n+t:n}const Lo=we(Rf,{Item:gl}),em=()=>null,at="adm-tab-bar",tm={safeArea:!1},is=we(e=>{var t;const n=oe(tm,e);let o=null;const r=[];jr(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:(t=n.defaultActiveKey)!==null&&t!==void 0?t:o,onChange:l=>{var c;l!==null&&((c=n.onChange)===null||c===void 0||c.call(n,l))}});return Y(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:K(`${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(ha,{content:l.props.badge,className:`${at}-icon-badge`},d),m):m?i.createElement(ha,{content:l.props.badge,className:`${at}-title-badge`},m):null}return Y(l.props,i.createElement("div",{key:l.key,onClick:()=>{var d,m;const{key:g}=l;g!=null&&(a(g.toString()),(m=(d=l.props).onClick)===null||m===void 0||m.call(d))},className:K(`${at}-item`,{[`${at}-item-active`]:c})},u()))})),n.safeArea&&i.createElement(Cn,{position:"bottom"})))},{Item:em}),vl="adm-tag",nm={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)"},om={color:"default",fill:"solid",round:!1},as=e=>{var t;const n=oe(om,e),o=(t=nm[n.color])!==null&&t!==void 0?t:n.color,r={"--border-color":o,"--text-color":n.fill==="outline"?o:"#ffffff","--background-color":n.fill==="outline"?"transparent":o};return Y(n,i.createElement("span",{style:r,onClick:n.onClick,className:K(vl,{[`${vl}-round`]:n.round})},n.children))},Mn="adm-text-area",bl={rows:2,showCount:!1,autoSize:!1,defaultValue:""},yl=i.forwardRef((e,t)=>{const n=oe(bl,e),{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=dl({onEnterPress:n.onEnterPress,onKeyDown:n.onKeyDown,nativeInputRef:c,enterKeyHint:n.enterKeyHint});i.useImperativeHandle(t,()=>({clear:()=>{l("")},focus:()=>{var b;(b=c.current)===null||b===void 0||b.focus()},blur:()=>{var b;(b=c.current)===null||b===void 0||b.blur()},get nativeElement(){return c.current}})),te.useIsomorphicLayoutEffect(()=>{if(!o)return;const b=c.current,C=d.current;if(!b||(b.style.height=u.current,!C))return;let w=C.scrollHeight;if(typeof o=="object"){const x=window.getComputedStyle(b),S=parseFloat(x.lineHeight);o.minRows&&(w=Math.max(w,o.minRows*S)),o.maxRows&&(w=Math.min(w,o.maxRows*S))}u.current=`${w}px`,b.style.height=`${w}px`},[a,o]);const g=i.useRef(!1);let v;const p=Jr(a).length;typeof r=="function"?v=r(p,s):r&&(v=i.createElement("div",{className:`${Mn}-count`},s===void 0?p:p+"/"+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)),Y(n,i.createElement("div",{className:Mn},i.createElement("textarea",{ref:c,className:`${Mn}-element`,rows:y,value:a,placeholder:n.placeholder,onChange:b=>{let C=b.target.value;s&&!g.current&&(C=Jr(C).slice(0,s).join("")),l(C)},id:n.id,onCompositionStart:b=>{var C;g.current=!0,(C=n.onCompositionStart)===null||C===void 0||C.call(n,b)},onCompositionEnd:b=>{var C;if(g.current=!1,s){const w=b.target.value;l(Jr(w).slice(0,s).join(""))}(C=n.onCompositionEnd)===null||C===void 0||C.call(n,b)},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}),v,o&&i.createElement("textarea",{ref:d,className:`${Mn}-element ${Mn}-element-hidden`,value:a,rows:y,"aria-hidden":!0,readOnly:!0})))});yl.defaultProps=bl;const lt="adm-toast",rm={maskClickable:!0,stopPropagation:["click"]},sm=e=>{const t=oe(rm,e),{maskClickable:n,content:o,icon:r,position:s}=t,a=i.useMemo(()=>{if(r==null)return null;switch(r){case"success":return i.createElement(Ai,{className:`${lt}-icon-success`});case"fail":return i.createElement(no,{className:`${lt}-icon-fail`});case"loading":return i.createElement(Ur,{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(to,{visible:t.visible,destroyOnClose:!0,opacity:0,disableBodyScroll:!n,getContainer:t.getContainer,afterClose:t.afterClose,style:Object.assign({pointerEvents:n?"none":"auto"},t.maskStyle),className:K(`${lt}-mask`,t.maskClassName),stopPropagation:t.stopPropagation},i.createElement("div",{className:K(`${lt}-wrap`)},i.createElement("div",{style:{top:l},className:K(`${lt}-main`,r?`${lt}-main-icon`:`${lt}-main-text`)},a&&i.createElement("div",{className:`${lt}-icon`},a),i.createElement(M1,null,o))))};let De=null,ls=null;const Bo={duration:2e3,position:"center",maskClickable:!0},im=e=>i.createElement(sm,Object.assign({},e));function am(e){var t;const n=oe(Bo,typeof e=="string"?{content:e}:e),o=i.createElement(im,Object.assign({},n,{onClose:()=>{De=null}}));return De?!((t=De.isRendered)===null||t===void 0)&&t.call(De)?De.replace(o):(De.close(),De=xn(o)):De=xn(o),ls&&window.clearTimeout(ls),n.duration!==0&&(ls=window.setTimeout(()=>{Cl()},n.duration)),De}function Cl(){De==null||De.close(),De=null}function lm(e){e.duration!==void 0&&(Bo.duration=e.duration),e.position!==void 0&&(Bo.position=e.position),e.maskClickable!==void 0&&(Bo.maskClickable=e.maskClickable)}const cs={show:am,clear:Cl,config:lm},xl={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}}}},cm=e=>{const{t}=le(),n=$.useFieldSchema(),{dn:o}=h.useDesignable(),r=$.useField(),s={dn:o,field:r,fieldSchema:n};return f.jsx(h.SchemaSettingsDropdown,ae(B({title:f.jsx(de.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)"},icon:f.jsx(Ke.MenuOutlined,{}),type:"dashed",children:t("Menu configuration")})},s),{children:f.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete menu block")},breakRemoveOn:{"x-component":"Grid"}},"remove")}))},Fn=()=>{const{dn:e}=h.useDesignable(),t=$.useFieldSchema(),n=$.useField();return{onUpdateComponentProps:te.useMemoizedFn(r=>me(this,null,function*(){Ae.set(t,"x-component-props",r),n.componentProps=B(B({},n.componentProps),r),yield e.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"],"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}}),yield e.refresh()}))}},Sl={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":{}}}},um=e=>{const{icon:t,name:n}=e,o=h.useDesigner(),r=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;r(c.name?`/mobile/${a["x-uid"]}`:`${d}/${a["x-uid"]}`)};return f.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(qt.Item,ae(B({arrow:!0,clickable:!0},e),{prefix:f.jsx(h.Icon,{type:t}),onClick:u,children:l(n)})),f.jsx(o,{})]})},
|
|
147
|
+
`),children:[f.jsx(qt.Item,ae(B({arrow:!0,clickable:!0},e),{prefix:f.jsx(h.Icon,{type:t}),onClick:u,children:l(n)})),f.jsx(o,{})]})},dm=()=>{const{t:e}=le(),{onUpdateComponentProps:t}=Fn(),n=$.useField();return f.jsxs(h.GeneralSchemaDesigner,{children:[f.jsx(h.SchemaSettingsModalItem,{title:e("Edit menu info"),initialValues:n.componentProps,schema:Sl,onSubmit:t}),f.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:e("Delete menu item?")},breakRemoveOn:{"x-component":"MMenu"}},"remove")]})},wl=um;wl.Designer=dm;const fm=h.createStyles(({token:e,css:t})=>({mobileMenu:t`
|
|
148
148
|
--adm-color-primary: ${e.colorPrimary};
|
|
149
149
|
--adm-color-primary-hover: ${e.colorPrimaryHover};
|
|
150
150
|
--adm-color-primary-active: ${e.colorPrimaryActive};
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
background: ${e.colorBgContainer};
|
|
156
156
|
width: 100%;
|
|
157
157
|
margin-bottom: var(--tb-spacing);
|
|
158
|
-
`})),us=e=>{const{styles:t}=
|
|
158
|
+
`})),us=e=>{const{styles:t}=fm(),n=h.useDesigner(),o=$.useFieldSchema(),{insertBeforeEnd:r,designable:s}=h.useDesignable(),{t:a}=le(),l=c=>{const u={page:xl};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(h.SortableItem,{className:h.cx("tb-mobile-menu",t.mobileMenu),children:f.jsxs(qt,{children:[s&&f.jsx(qt.Item,{children:f.jsx(n,{})}),f.jsx(h.DndContext,{children:f.jsx(h.SchemaComponent,{onlyRenderProperties:!0,schema:o})}),s?f.jsx(qt.Item,{children:f.jsx(h.SchemaInitializerActionModal,{buttonText:a("Add menu item"),title:a("Add menu item"),schema:Sl,onSubmit:l})}):null]})})};us.Item=wl,us.Designer=cm;const Vo=(e,t)=>e.reduceProperties((o,r)=>o||r["x-component"]===t&&r),mm=e=>Vo(e,"Grid"),hm=["Grid","Grid.Row"],pm=["Grid.Col"],ds=(e,t)=>{if(!e)return 0;let n=0;return pm.includes(e["x-component"])&&(n+=1),n>=t||hm.includes(e["x-component"])&&e.mapProperties(o=>{n+=ds(o,t)}),n},gm=()=>{const{t:e}=le(),t=$.useFieldSchema(),{onUpdateComponentProps:n}=Fn(),o=$.useField(),{dn:r}=h.useDesignable(),s=ie.useNavigate(),a=Vo(t,"MTabBar"),l=a&&o.componentProps.tabBarEnabled!==!1,c={dn:r,field:o,fieldSchema:t};return f.jsx(h.SchemaSettingsDropdown,ae(B({title:f.jsx(de.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:f.jsx(Ke.MenuOutlined,{}),type:"dashed",children:e("App level Configuration")})},c),{children:f.jsx(h.SchemaSettingsSwitchItem,{checked:l,title:e("Enable TabBar"),onChange:u=>me(this,null,function*(){if(u&&!a){const d=Vo(t,"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:ut("Untitled")},properties:{page:d.toJSON()}}}})}yield n({tabBarEnabled:u}),u===!1&&s("../")})})}))},vm=h.createStyles(({token:e,css:t})=>({mobileContainer:t`
|
|
159
159
|
--adm-color-primary: ${e.colorPrimary};
|
|
160
160
|
|
|
161
161
|
& > .general-schema-designer > .general-schema-designer-icons {
|
|
@@ -179,13 +179,13 @@
|
|
|
179
179
|
bottom: 0;
|
|
180
180
|
left: 0;
|
|
181
181
|
z-index: 1000;
|
|
182
|
-
`})),
|
|
182
|
+
`})),kl=(e,t)=>e.reduceProperties((n,o)=>{if(n)return n;if(o["x-component"]==="MTabBar")return kl(o,t);if(o["x-component"]==="MTabBar.Item"&&t===o["x-uid"])return o}),bm=()=>{const{name:e}=ie.useParams(),t=$.useFieldSchema();if(!e)return f.jsx(f.Fragment,{});const n=kl(t.properties.tabBar,e.replace("tab_",""));return n?f.jsx(h.SchemaComponent,{schema:n}):f.jsx(ie.Navigate,{replace:!0,to:"../"})},fs=e=>{var v,p;const{styles:t}=vm(),{token:n}=h.useToken(),o=h.useDesigner(),r=$.useFieldSchema(),s=ie.useNavigate(),a=ie.useParams(),l=ie.useLocation(),u=$.useField().componentProps.tabBarEnabled!==!1,d=(v=r==null?void 0:r.properties)==null?void 0:v.tabBar,m=d!=null&&d.properties?Object.keys(d.properties)[0]:null;let g=null;return m&&(g=(p=d==null?void 0:d.properties[m])==null?void 0:p["x-uid"]),i.useEffect(()=>{if(g&&!a.name){const y=l.pathname.endsWith("/")?l.pathname.slice(0,-1):l.pathname;s(`${y}/tab_${g}`,{replace:!0})}},[l.pathname,s,a.name,g]),f.jsx(h.MobileProvider,{children:f.jsxs(h.SortableItem,{eid:"tb-mobile-scroll-wrapper",className:h.cx("tb-mobile-container",t.mobileContainer),children:[f.jsx(o,{}),f.jsx("div",{style:{paddingBottom:g?n.paddingLG*2:0},className:"tb-mobile-container-content",children:g?f.jsx(bm,{}):f.jsx(h.SchemaComponent,{filterProperties:y=>y["x-component"]!=="MTabBar",schema:r})}),u&&f.jsx("div",{className:h.cx("tb-mobile-container-tab-bar",t.tabBar),children:f.jsx(h.SchemaComponent,{onlyRenderProperties:!0,filterProperties:y=>y["x-component"]==="MTabBar",schema:r})})]})})};fs.Designer=gm,fs.displayName="MContainer";const El={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":{}}}},ym=()=>{const e=h.useDesigner();return f.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(e,{})})},
|
|
188
|
+
`),children:f.jsx(e,{})})},Cm=()=>{const{t:e}=le(),t=$.useFieldSchema(),{onUpdateComponentProps:n}=Fn(),o=$.useField(),r=Object.keys(t.parent.properties).length;return f.jsxs(h.GeneralSchemaDesigner,{children:[f.jsx(h.SchemaSettingsModalItem,{title:e("Edit info"),initialValues:o.componentProps,schema:El,onSubmit:n}),r>1?f.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:e("Delete tab item?")},breakRemoveOn:{"x-component":"MTabBar"}},"remove"):null]})},Il=ym;Il.Designer=Cm;const ms=e=>{const t=$.useFieldSchema(),{designable:n}=h.useDesignable(),{t:o}=le(),{insertBeforeEnd:r}=h.useDesignable(),s=ie.useNavigate(),a=ie.useParams(),l=h.useCompile(),c=i.useCallback(u=>r({type:"void","x-component":"MTabBar.Item","x-component-props":u,"x-designer":"MTabBar.Item.Designer",properties:{[$.uid()]:xl},"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}),[]);return f.jsx(h.SortableItem,{className:h.cx("tb-mobile-tab-bar",h.css`
|
|
189
189
|
position: relative;
|
|
190
190
|
width: 100%;
|
|
191
191
|
display: flex;
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
.adm-tab-bar-item-icon {
|
|
197
197
|
height: auto;
|
|
198
198
|
}
|
|
199
|
-
`,icon:f.jsx(h.SchemaInitializerActionModal,{title:o("Add tab"),onSubmit:c,schema:
|
|
199
|
+
`,icon:f.jsx(h.SchemaInitializerActionModal,{title:o("Add tab"),onSubmit:c,schema:El})},"add-tab"):null]})})})};ms.Item=Il,ms.displayName="MTabBar";const xm=e=>{var g,v,p,y;const{showBack:t}=e,{t:n}=le(),o=$.useField(),r=$.useFieldSchema(),{dn:s}=h.useDesignable(),{onUpdateComponentProps:a}=Fn(),l=(g=r==null?void 0:r.properties)==null?void 0:g.header,c=!!l&&((v=o.componentProps)==null?void 0:v.headerEnabled)!==!1,u=(p=r==null?void 0:r.properties)==null?void 0:p.tabs,d=!!u&&((y=o.componentProps)==null?void 0:y.tabsEnabled)!==!1,m={dn:s,field:o,fieldSchema:r};return f.jsxs(h.SchemaSettingsDropdown,ae(B({title:f.jsx(de.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:f.jsx(Ke.MenuOutlined,{}),type:"dashed",children:n("Page configuration")})},m),{children:[f.jsx(h.SchemaSettingsSwitchItem,{checked:c,title:n("Enable Header"),onChange:b=>me(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:t}})),yield a({headerEnabled:b})})}),f.jsx(h.SchemaSettingsSwitchItem,{checked:d,title:n("Enable Tabs"),onChange:b=>me(this,null,function*(){if(!u){const C=mm(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:ut("Untitled"),"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:ae(B({},C),{"x-uid":$.uid()})}}}})}yield a({tabsEnabled:b})})})]}))},Sm=h.createStyles(({token:e,css:t})=>({globalActionCSS:t`
|
|
200
200
|
#tb-position-container > & {
|
|
201
201
|
height: ${e.sizeXXL}px;
|
|
202
202
|
border-top: 1px solid var(--tb-box-bg);
|
|
@@ -226,13 +226,13 @@
|
|
|
226
226
|
}
|
|
227
227
|
display: flex;
|
|
228
228
|
flex-direction: column;
|
|
229
|
-
`})),
|
|
229
|
+
`})),wm=e=>{var y,b,C,w;const{styles:t}=Sm(),n=h.useDesigner(),o=$.useField(),r=$.useFieldSchema(),[s,a]=ie.useSearchParams(),l=(y=r.properties)==null?void 0:y.tabs,c=o.componentProps.headerEnabled!==!1,u=o.componentProps.tabsEnabled!==!1&&l;let d=Vo(r,"MPage");if(!u&&!d&&l){const x=Object.values(l.properties||{}).sort((S,k)=>S["x-index"]-k["x-index"]);x.length!==0&&(d=x[0])}const m=r.root===r.parent;let g=!1;if(!l&&r.properties)g=ds(r.properties.grid,2)===1;else if(s.has("tab")&&((b=l==null?void 0:l.properties)!=null&&b[s.get("tab")]))g=ds((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 x=Object.values(l.properties).sort((S,k)=>S["x-index"]-k["x-index"])[0];x&&setTimeout(()=>{a([["tab",x.name.toString()]],{replace:!0})})}const v=i.useCallback(x=>{a([["tab",x]],{replace:!0})},[a]),p=i.useCallback(x=>f.jsx(h.TabsContextProvider,{children:g?f.jsx(h.ActionBarProvider,{container:(typeof x.active=="undefined"||x.active)&&m?document.getElementById("tb-position-container"):null,forceProps:{layout:"one-column",className:t.globalActionCSS},children:x.children}):x.children}),[g,m,t.globalActionCSS]);return f.jsxs(h.SortableItem,{eid:"tb-mobile-scroll-wrapper",className:h.cx("tb-mobile-page",t.mobilePage),children:[f.jsx(n,B({},r==null?void 0:r["x-designer-props"])),f.jsxs("div",{style:{paddingBottom:l?null:"var(--tb-spacing)"},className:h.cx("tb-mobile-page-header",t.mobilePageHeader,{[h.css`
|
|
230
230
|
& > .ant-tb-grid {
|
|
231
231
|
margin-top: 14px;
|
|
232
232
|
}
|
|
233
|
-
`]:l&&!u||!l}),children:[c&&f.jsx($.RecursionField,{schema:r,filterProperties:x=>x["x-component"]==="MHeader"}),f.jsx(h.TabsContextProvider,{PaneRoot:p,activeKey:s.get("tab"),onChange:v,children:f.jsx($.RecursionField,{schema:u?r:d,filterProperties:x=>x["x-component"]==="Tabs"||x["x-component"]==="Grid"||x["x-component"]==="Grid.Row"})})]}),f.jsx(p,{children:!l&&f.jsx($.RecursionField,{schema:r,filterProperties:x=>x["x-component"]!=="MHeader"})})]})},hs=e=>f.jsx(h.FilterBlockProvider,{children:f.jsx(
|
|
233
|
+
`]:l&&!u||!l}),children:[c&&f.jsx($.RecursionField,{schema:r,filterProperties:x=>x["x-component"]==="MHeader"}),f.jsx(h.TabsContextProvider,{PaneRoot:p,activeKey:s.get("tab"),onChange:v,children:f.jsx($.RecursionField,{schema:u?r:d,filterProperties:x=>x["x-component"]==="Tabs"||x["x-component"]==="Grid"||x["x-component"]==="Grid.Row"})})]}),f.jsx(p,{children:!l&&f.jsx($.RecursionField,{schema:r,filterProperties:x=>x["x-component"]!=="MHeader"})})]})},hs=e=>f.jsx(h.FilterBlockProvider,{children:f.jsx(wm,B({},e))});hs.Designer=xm,hs.displayName="MPage";const km=()=>{const e=$.useField(),{onUpdateComponentProps:t}=Fn(),{t:n}=le();return f.jsx(h.GeneralSchemaDesigner,{draggable:!1,children:f.jsx(h.SchemaSettingsModalItem,{title:n("Edit info"),components:{Switch:ws.Switch},initialValues:e.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:t})})},$l=e=>{const t=$.useField(),{title:n=ut("Untitled"),showBack:o=!1}=B(B({},e),t==null?void 0:t.componentProps),r=h.useDesigner(),a=h.useCompile()(n),l=ie.useNavigate(),{setTitle:c}=h.useDocumentTitle(),{token:u}=h.useToken();i.useEffect(()=>{c(a)},[a]);const d=i.useMemo(()=>({width:"100%",background:u.colorBgContainer}),[u.colorBgContainer]);return f.jsxs(h.SortableItem,{className:h.cx("tb-mobile-header"),style:d,children:[f.jsx(jf,{backArrow:o,onBack:()=>l(-1),children:a}),f.jsx(r,{})]})};$l.Designer=km;const Em=()=>{const{t:e}=le();return f.jsx(h.GeneralSchemaDesigner,{children:f.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:e("Delete settings block")},breakRemoveOn:{"x-component":"Grid"}},"remove")})},_l=()=>{const e=h.useDesigner();return f.jsxs(h.SortableItem,{className:h.cx("tb-mobile-setting",h.css`
|
|
234
234
|
margin-bottom: var(--tb-spacing);
|
|
235
|
-
`),children:[f.jsx(e,{}),f.jsx(h.SettingsMenu,{redirectUrl:"/mobile"})]})};
|
|
235
|
+
`),children:[f.jsx(e,{}),f.jsx(h.SettingsMenu,{redirectUrl:"/mobile"})]})};_l.Designer=Em;const Im=()=>{const e=h.useSchemaInitializerItem(),{insert:t}=h.useSchemaInitializer();return f.jsx(h.SchemaInitializerItem,B({icon:f.jsx(Ke.SettingOutlined,{}),onClick:()=>me(this,null,function*(){t({type:"void","x-component":"MSettings","x-designer":"MSettings.Designer","x-component-props":{}})})},e))},$m=["select","multipleSelect","radioGroup","checkboxGroup"],_m=["oho","obo","o2m","m2o","m2m"],Pm=["datetime"],Mm=["input","textarea","phone","email","url","percent","password","color","icon","formula","sequence"],Fm=["integer","number"],Ge=e=>e==="TabSearchCollapsibleInputItem"||e==="TabSearchCollapsibleInputMItem",ct=e=>$m.includes(e),$e=e=>_m.includes(e),Ft=e=>Pm.includes(e),Pl=e=>Mm.includes(e),Nm=e=>Fm.includes(e),Ml=e=>xe.dayjs(e).format("YYYY-MM-DD"),zo=e=>JSON.stringify(xe.dayjs(e));function Om(e){const{field:t,isMobile:n,label:o,isCanBeOptional:r,isCanBeRelated:s,collection:a}=e,{key:l,name:c,uiSchema:u,interface:d}=t,m=u==null?void 0:u.title,g=[r,s].indexOf(!0);return{name:l,title:m,Component:"ImageSearchItemIntializer",schema:{name:`${c}-choice`,fieldName:c,title:m,type:"void","x-toolbar":"ImageSearchItemToolbar","x-settings":"fieldSettings:component:ImageSearchItem","x-component":"ImageSearchItemView","x-component-props":{fieldNames:{label:o,imageShow:"image_show"},interface:d,collectionName:a==null?void 0:a.name,correlation:c},"x-use-component-props":["usePropsOptionalImageSearchItemField","usePropsRelatedImageSearchItemField"][g],properties:{}}}}const Tm=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:Dm}]});function Dm(){const e=h.useCollection(),t=e==null?void 0:e.fields,n=h.useCollectionManager(),o=h.useIsMobile();return t.map(s=>{var m,g;const{interface:a,target:l}=s,c=(g=(m=n.getCollection(l))==null?void 0:m.getPrimaryKey())!=null?g:"id",u=ct(a),d=$e(a);return u||d?Om({collection:e,field:s,isMobile:o,label:c,isCanBeOptional:u,isCanBeRelated:d}):null}).filter(Boolean)}function Am(e){const{collection:t,dataSource:n,blockType:o}=e;return{type:"void","x-decorator":"ImageSearchProvider","x-decorator-props":{collection:t,dataSource:n,blockType:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[xe.uid()]:{type:"void","x-action":"imageSearch","x-initializer":"ImageSearchView:configureFields","x-component":"ImageSearchView"}}}}function Lm(e){const{filterCollections:t}=e,n=h.useSchemaInitializerItem(),{insert:o}=h.useSchemaInitializer(),r=a=>me(this,[a],function*({item:s}){const{dataSource:l,collectionName:c,name:u}=s,d=Am({dataSource:l,collection:c||u,blockType:"filter"});o(d)});return f.jsx(h.DataBlockInitializer,ae(B({},n),{componentType:"ImageSearch",filter:t,onCreateBlockSchema:r}))}const Bm=({collection:e,children:t})=>f.jsx(h.DataBlockProvider,{collection:e,children:t}),Vm=()=>{const e=h.useDesigner(),t=$.useFieldSchema(),{render:n}=h.useSchemaInitializerRender(t["x-initializer"],t["x-initializer-props"]);return f.jsxs(f.Fragment,{children:[f.jsx(e,{}),f.jsx($.RecursionField,{schema:t,onlyRenderProperties:!0}),f.jsx(i.Fragment,{children:n()})]})},zm=()=>{const e=$.useFieldSchema(),t=h.useCollection(),{getDataBlocks:n}=h.useFilterBlock();return i.useMemo(()=>t==null?void 0:t.getField(e.name),[t,e.name]),{onSelected:(r,s)=>{const{targets:a,uid:l}=h.findFilterTargets(e);n().forEach(c=>{var p,y,b;if(!a.find(C=>C.uid===c.uid))return;const d=`${l}${e.name}`,m=((p=c.service.params)==null?void 0:p[0])||{};let g=((b=(y=c.service.params)==null?void 0:y[1])==null?void 0:b.filters)||{};if(r.length)g[d]={[s]:r};else{if(c.dataLoadingMode==="manual")return c.clearData();delete g[d]}const v=h.mergeFilter([...Object.values(g),c.defaultFilter]);if(r.length===1&&r[0]==="all"){const C=Object.keys(g[d]);v.$and?(C.forEach(w=>{v.$and.forEach((x,S)=>{x[w]&&v.$and.splice(S,1)})}),v.$and=v.$and.filter(Boolean)):delete v[C[0]],g[d]={}}return g=Ae.omitBy(g,C=>C==null||Ae.isObject(C)&&Ae.isEmpty(C)),c.doFilter(ae(B({},m),{page:1,filter:v}),{filters:g})})}}},Zm=()=>{const e=h.useSchemaInitializerItem(),{insert:t}=h.useSchemaInitializer(),{schema:n,title:o}=e,{exists:r,remove:s}=h.useCurrentSchema(n.name,"name",e.find,e.remove),a=()=>{if(r)return s();const{schema:l}=e,c=$.merge(n||{},l||{});t(c)};return f.jsx(h.SchemaInitializerSwitch,{checked:r,title:o,onClick:a})},jm=new h.SchemaSettings({name:"fieldSettings:component:ImageSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t:e}=le();return{title:e("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var l,c;const e=$.useFieldSchema(),{form:t}=h.useFormBlockContext(),n=$.useField(),o=h.useCollectionManager(),s=h.useCollection().getField(e.name)||o.getCollectionField(e["x-collection-field"]),{dn:a}=h.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=e==null?void 0:e["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:t,onSubmit:({filter:u})=>{var d;Ae.set(n.componentProps,"params",ae(B({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),e["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"]}})}}},useVisible(){const e=$.useFieldSchema();return!Ge(e["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var g,v,p,y;const e=$.useFieldSchema(),{t}=le(),n=h.useCollectionManager(),o=h.useCollection(),r=(g=e["x-component-props"])==null?void 0:g.collectionName,s=(v=e["x-component-props"])==null?void 0:v.correlation,a=o.getField(e.fieldName)||n.getCollectionField(e["x-collection-field"])||n.getCollection(r+"."+s),l=h.useCompile(),{dn:c}=h.useDesignable(),d=(a!=null&&a.target?n.getCollectionFields(a==null?void 0:a.target):[]).filter(b=>!(b!=null&&b.target)&&b.type!=="boolean").map(b=>{var C;return{value:b==null?void 0:b.name,label:l((C=b==null?void 0:b.uiSchema)==null?void 0:C.title)||(b==null?void 0:b.name)}}),m=b=>{var x,S,k;const C={"x-uid":e["x-uid"]},w=ae(B(B({},(S=(x=a==null?void 0:a.uiSchema)==null?void 0:x["x-component-props"])==null?void 0:S.fieldNames),(k=e["x-component-props"])==null?void 0:k.fieldNames),{label:b});e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=w,C["x-component-props"]=e["x-component-props"],c.emit("patch",{schema:C}),c.refresh()};return{key:"title-field",title:t("Title field"),options:d,value:(y=(p=e["x-component-props"])==null?void 0:p.fieldNames)==null?void 0:y.label,onChange:m}},useVisible(){var t;const e=$.useFieldSchema();return Ge(e["x-component"])||((t=e["x-component-props"])==null?void 0:t.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t:e}=le(),t=$.useFieldSchema(),{dn:n}=h.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:e("Delete field")},breakRemoveOn:o=>(Ge(t["x-component"])&&(Object.values(o.properties).forEach(r=>{Ge(r["x-component"])&&r.name!==t.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),Km=e=>f.jsx(h.SchemaToolbar,B({draggable:!0,showBorder:!0,showBackground:!0,initializer:!1},e)),Wm=h.withDynamicSchemaProps(e=>{const{collectionField:t,Designer:n,items:o,onSelect:r}=Hm(e);return t?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx(fl,{onChange:r,children:o.map(({key:s,label:a,imageUrl:l})=>f.jsx(fl.Tab,{title:"",description:f.jsx(Um,{srcUrl:l,label:a})},s))})]}):null},{displayName:"ImageSearchItemView"});function Hm(e){var b,C;const{list:t,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=e,a=$.useFieldSchema(),l=h.useCollection(),{t:c}=le(),u=i.useMemo(()=>l==null?void 0:l.getField(a.fieldName),[l,a.fieldName]),d=h.useDesigner(),m=o||(u==null?void 0:u.targetKey)||"id",g=r||((C=(b=a["x-component-props"])==null?void 0:b.fieldNames)==null?void 0:C.label)||m,v=w=>{var S;const x=((S=w.keyPath)==null?void 0:S[0])||w;n([x],s)},p={title:g||m,key:m},y=(t||[]).map(w=>{var F;const{type:x,["image_show"]:S,[p.title]:k,[p.key]:I}=w,M=(location==null?void 0:location.origin)||"",O=(F=S==null?void 0:S[0])==null?void 0:F.url;let L=O!=null?O:"";return L.includes("http")||(L=`${M}${O}`),x==="all"?{label:c("AllProducts"),key:"all",imageUrl:L}:{label:k,key:I,imageUrl:L}});return{collectionField:u,Designer:d,items:y,onSelect:v}}const Um=e=>{const{srcUrl:t,label:n}=e;return f.jsxs("div",{className:h.css`
|
|
236
236
|
display: 'flex';
|
|
237
237
|
flex-direction: 'column';
|
|
238
238
|
width: '100%';
|
|
@@ -240,11 +240,11 @@
|
|
|
240
240
|
:active {
|
|
241
241
|
background-color: transparent;
|
|
242
242
|
}
|
|
243
|
-
`,children:[f.jsx(
|
|
243
|
+
`,children:[f.jsx(fa,{src:t,width:100,height:100,fit:"fill"}),f.jsx("p",{className:h.css`
|
|
244
244
|
font-weight: 400;
|
|
245
245
|
font-size: 17.6px;
|
|
246
246
|
line-height: 1;
|
|
247
|
-
`,children:n})]})},Zo=()=>{const e=$.useFieldSchema();h.useCollection();const{getDataBlocks:t}=h.useFilterBlock();return{onSelected:(o,r,s={canBeCalculatedField:!1,customLabelKey:"",needSort:!1})=>{const{canBeCalculatedField:a,customLabelKey:l,needSort:c=!0}=s,{targets:u,uid:d}=h.findFilterTargets(e);t().forEach(m=>{var w,x,S,k,I;if(!u.find(M=>M.uid===m.uid))return;const v=`${d}${e.name}`,p=((w=m.service.params)==null?void 0:w[0])||{};let y=((S=(x=m.service.params)==null?void 0:x[1])==null?void 0:S.filters)||{};if(o.length)o[0]?y[v]={[r]:o}:(k=y[v])==null||delete k[r],a&&(y[v]={[r]:Number((I=o==null?void 0:o[0])!=null?I:0)});else{if(m.dataLoadingMode==="manual")return m.clearData();delete y[v]}const b=h.mergeFilter([...Object.values(y),m.defaultFilter]);if(o.length===1&&o[0]==="all"){const M=Object.keys(y[v]);b.$and?(M.forEach(O=>{b.$and.forEach((L,F)=>{L[O]&&b.$and.splice(F,1)})}),b.$and=b.$and.filter(Boolean)):delete b[M[0]],y[v]={}}y=Ae.omitBy(y,M=>M==null||Ae.isObject(M)&&Ae.isEmpty(M));let C=ae(B({},p),{page:1,filter:b});return c?C=ae(B({},C),{"sort[]":`-${l}`}):C=Ae.omit(C,["sort[]"]),m.doFilter(C,{filters:y})})}}},
|
|
247
|
+
`,children:n})]})},Zo=()=>{const e=$.useFieldSchema();h.useCollection();const{getDataBlocks:t}=h.useFilterBlock();return{onSelected:(o,r,s={canBeCalculatedField:!1,customLabelKey:"",needSort:!1})=>{const{canBeCalculatedField:a,customLabelKey:l,needSort:c=!0}=s,{targets:u,uid:d}=h.findFilterTargets(e);t().forEach(m=>{var w,x,S,k,I;if(!u.find(M=>M.uid===m.uid))return;const v=`${d}${e.name}`,p=((w=m.service.params)==null?void 0:w[0])||{};let y=((S=(x=m.service.params)==null?void 0:x[1])==null?void 0:S.filters)||{};if(o.length)o[0]?y[v]={[r]:o}:(k=y[v])==null||delete k[r],a&&(y[v]={[r]:Number((I=o==null?void 0:o[0])!=null?I:0)});else{if(m.dataLoadingMode==="manual")return m.clearData();delete y[v]}const b=h.mergeFilter([...Object.values(y),m.defaultFilter]);if(o.length===1&&o[0]==="all"){const M=Object.keys(y[v]);b.$and?(M.forEach(O=>{b.$and.forEach((L,F)=>{L[O]&&b.$and.splice(F,1)})}),b.$and=b.$and.filter(Boolean)):delete b[M[0]],y[v]={}}y=Ae.omitBy(y,M=>M==null||Ae.isObject(M)&&Ae.isEmpty(M));let C=ae(B({},p),{page:1,filter:b});return c?C=ae(B({},C),{"sort[]":`-${l}`}):C=Ae.omit(C,["sort[]"]),m.doFilter(C,{filters:y})})}}},Ym=()=>{var u,d,m,g;const e=$.useFieldSchema(),t=h.useCollection(),n=h.useCollectionManager(),o=Gm({collection:t}),r=e.fieldName,s=i.useMemo(()=>t==null?void 0:t.getField(r),[t,r]),{onSelected:a}=Zo();if(!t)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=e["x-component-props"])==null?void 0:d.fieldNames)==null?void 0:m.label)||l.valueKey;const c=e["x-component-props"].interface;if(ct(c)){const v=o.find(b=>b.name===e.fieldName),p={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"},y=((g=v==null?void 0:v.uiSchema)==null?void 0:g.enum)||[];l.valueKey="value",l.labelKey="label",l.list=y,l.filterKey=`${v.name}.${p[v.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},Gm=({collection:e})=>{var n;return((n=e==null?void 0:e.fields)!=null?n:[]).filter(o=>ct(o.interface)&&o.uiSchema.enum)},qm=()=>{var v,p,y,b,C;const e=$.useFieldSchema(),t=h.useCollection(),n=$.useField(),o={dataSource:"main"},r=h.useDataSourceHeaders(o==null?void 0:o.dataSource),s=h.useCollectionManager(),a=i.useMemo(()=>t==null?void 0:t.getField(e.fieldName),[t,e.fieldName]),l=a==null?void 0:a.name,c=e["x-component-props"].interface,{onSelected:u}=zm(),d={list:null,valueKey:"",labelKey:"",filterKey:""};d.valueKey=a!=null&&a.target?(v=s.getCollection(a.target))==null?void 0:v.getPrimaryKey():"id",d.labelKey=((y=(p=e["x-component-props"])==null?void 0:p.fieldNames)==null?void 0:y.label)||d.valueKey;const m=((C=(b=e["x-component-props"])==null?void 0:b.fieldNames)==null?void 0:C.imageShow)||"imageShow",{data:g}=Xm({headers:r,collectionField:a,result:d,imageShow:m,field:n,fieldInterface:c});if(d.filterKey=`${l}.${d.valueKey}.$in`,d.list=(g==null?void 0:g.data)||[],!!a)return{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,filterKey:d.filterKey,onSelected:u}},Xm=({headers:e,collectionField:t,result:n,imageShow:o,field:r,fieldInterface:s})=>{var c,u;const{data:a,run:l}=h.useRequest({headers:e,resource:t==null?void 0:t.target,action:"list",params:B({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)&&(t!=null&&t.target)&&l()},[n.labelKey,n.valueKey,JSON.stringify(((u=r.componentProps)==null?void 0:u.params)||{}),$e(s)]),{data:a}},Qm=h.withDynamicSchemaProps(e=>{const{fieldValue:t,data:n,changeNav:o}=e;if(!n)return;const r=n.data.length?n.data.map((s,a)=>{var l,c;return(l=s[t][0])!=null&&l.url?f.jsx(Lo.Item,{children:f.jsx("div",{className:ps,style:{backgroundImage:`url(${(c=s[t][0])==null?void 0:c.url})`,backgroundSize:"100% 100%",backgroundAttachment:"fixed"},onClick:()=>{o(s)}})},a):f.jsx(Lo.Item,{children:f.jsx("div",{className:ps,style:{backgroundColor:"#e0e0e0"},children:"无法加载此内容"})},a)}).filter(Boolean):[f.jsx(Lo.Item,{children:f.jsx("div",{className:ps,style:{backgroundColor:"#e0e0e0"},children:"当前卡片没有可加载数据"})},0)];return f.jsx(h.BlockItem,{children:f.jsx(Lo,{loop:!0,autoplay:!0,children:r})})}),ps=h.css`
|
|
248
248
|
height: 20vh;
|
|
249
249
|
color: #ffffff;
|
|
250
250
|
display: flex;
|
|
@@ -252,17 +252,17 @@
|
|
|
252
252
|
align-items: center;
|
|
253
253
|
font-size: 25px;
|
|
254
254
|
user-select: none;
|
|
255
|
-
`,
|
|
255
|
+
`,Jm=()=>{const{insert:e}=h.useSchemaInitializer(),t=h.useCollectionManager(),n=h.useSchemaInitializerItem(),o=s=>me(this,[s],function*({item:r}){const a=t.getCollection(r.name),l=a.fields.find(u=>u.interface==="attachment");if(!l){cs.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}};e(c)});return f.jsx(h.DataBlockInitializer,ae(B({},n),{icon:"swiper-block",componentType:"Swiper",onCreateBlockSchema:o}))},Rm=new h.SchemaSettings({name:"SwiperFieldSettings",items:[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var s,a;const e=$.useFieldSchema(),{form:t}=h.useFormBlockContext(),n=$.useField(),o=h.useCollection(),{dn:r}=h.useDesignable();return{collectionName:o.getOptions().name,defaultFilter:((a=(s=e==null?void 0:e["x-component-props"])==null?void 0:s.params)==null?void 0:a.filter)||{},form:t,onSubmit:({filter:l})=>{var c;Ae.set(n.componentProps,"params",ae(B({},(c=n.componentProps)==null?void 0:c.params),{filter:l})),e["x-component-props"].params=n.componentProps.params,r.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"]}})}}}},{name:"setShowField",type:"select",useComponentProps(){const e=$.useFieldSchema(),{t}=le(),n=h.useCollection(),o=h.useCompile(),{dn:r}=h.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":e["x-uid"]};e["x-component-props"].fieldValue=l,c["x-component-props"]=e["x-component-props"],r.emit("patch",{schema:c}),r.refresh()};return{title:t("Set show field"),options:s,value:e["x-component-props"].fieldValue,onChange:a}}},{name:"setFieldCount",type:"select",useComponentProps(){const e=$.useFieldSchema(),{dn:t}=h.useDesignable(),{t:n}=le(),o=[];for(let s=1;s<=20;s++)o.push({label:s,value:s});const r=s=>{e["x-component-props"].pageSize=s,t.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"]}}),t.refresh()};return{title:n("Set field count"),options:o,value:e["x-component-props"].pageSize||5,onChange:r}}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100}]}),Fl=()=>{const e=ie.useParams(),{name:t,collection:n,field:o,fieldParams:r}=e,s={};return s[o]=r,f.jsx(h.DataBlockProvider,{collection:n,dataSource:"main",children:f.jsx(h.CollectionRecordProvider,{record:s,parentRecord:null,children:f.jsx(h.RemoteSchemaComponent,{uid:t})})})},eh=()=>{const e=$.useFieldSchema(),t=ie.useNavigate(),n=e.properties?Object.values(e.properties):null,{insertAdjacent:o}=h.useDesignable(),s=h.useCollection().targetKey||"id",{filter:a,pageSize:l,fieldValue:c,resourceName:u}=e["x-component-props"],{data:d,run:m}=h.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:v=>{if(v.isIdentical){const p=n==null?void 0:n.find(y=>y["x-component-props"].fixedComponent);p?t(`/mobile/${p["x-uid"]}/image/${u}/${s}/${v[s]}`):o("beforeEnd",Nl(v,"fixedComponent"),{onSuccess(y){y&&t(`/mobile/${y["x-uid"]}`)}})}else{const p=n==null?void 0:n.find(y=>y.name===String(v.id));p?t(`/mobile/${p["x-uid"]}`):o("beforeEnd",Nl(v),{onSuccess(y){y&&t(`/mobile/${y["x-uid"]}`)}})}}}},Nl=(e,t)=>({type:"void",title:e.title,name:e.id,"x-component":"MMenu.Item","x-component-props":{imgItem:e,fixedComponent:t},"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"}}}}}),th=()=>{const{fieldSchema:e,Designer:t,render:n,filterProperties:o}=nh();return f.jsxs(f.Fragment,{children:[f.jsx(t,{}),f.jsx($.RecursionField,{schema:e,onlyRenderProperties:!0,filterProperties:o}),f.jsx(i.Fragment,{children:n()})]})},nh=()=>{const e=h.useDesigner(),t=$.useFieldSchema(),{render:n}=h.useSchemaInitializerRender(t["x-initializer"],t["x-initializer-props"]);return{fieldSchema:t,Designer:e,render:n,filterProperties:r=>Ge(r["x-component"])?r===Object.values(r.parent.properties).filter(s=>Ge(s["x-component"]))[0]:!0}},Ol=e=>{const{onSelected:t}=Zo(),n=$.useFieldSchema(),o=h.useCollection(),r=h.useCollectionManager(),{dn:s}=h.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=h.useDesigner(),[m,g]=i.useState(n.fieldName),[v,p]=i.useState(n["x-component-props"].interface),y=Ft(v)?zo(xe.dayjs(new Date).startOf("date"))+"&"+zo(xe.dayjs(new Date).endOf("date")):"",[b,C]=i.useState(y),w=Object.values(u).map(O=>{if(Ge(O["x-component"]))return{label:O.title,value:O.fieldName,interface:O["x-component-props"].interface}}).filter(Boolean),x=O=>{let L,F=`${m}.$includes`;const N=Nm(v);if(N&&(F=`${m}.$notEmpty`),Ft(v)&&(L=O.split("&").map(W=>JSON.parse(W)),F=`${m}.$dateBetween`),$e(v)){const W=n["x-component-props"].fieldNames.label;F=`${n["x-component-props"].correlation}.${W}.$includes`}t(L||[O],F,{canBeCalculatedField:N,customLabelKey:m,needSort:a})};return{collectionField:c,Designer:d,options:w,value:b,onSelectChange:O=>{const L=Object.values(u).find(F=>F.fieldName===O)["x-component-props"].interface;if($e(L)){const F=r.getCollection(o.name+"."+O).titleField;n["x-component-props"].correlation=O,n["x-component-props"].fieldNames={label:F},s.emit("patch",{schema:{"u-id":n["u-id"],"x-component-props":n["x-component-props"]}}),s.refresh()}p(L),Ft(L)?C(zo(new Date)+"&"+zo(new Date)):C(""),g(O)},onInputChange:O=>{var N,W;const L={current:null};clearTimeout(L.current);const F=(W=(N=O.target)==null?void 0:N.value)!=null?W:O;C(F),F===""&&(L.current=setTimeout(()=>{x(F)},2e3))},onButtonClick:()=>{x(b)},customLabelKey:m,fieldInterface:v,onDateClick:O=>{x(O)},needSort:a,setNeedSort:l}},oh=e=>{const{options:t,onChange:n}=e;return t.length>1?f.jsxs(de.Col,{flex:1,style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[f.jsx(de.Select,{style:{width:"100%"},options:t,defaultValue:t[0].value,onChange:n}),f.jsx(de.Divider,{type:"vertical",style:{height:"70%"}})]}):null},rh=e=>{const{options:t,value:n,onChange:o}=e,{t:r}=le();return f.jsx(de.Col,{flex:t.length>1?3:4,children:f.jsx(de.Input,{placeholder:r("Please enter search content"),value:n,onChange:o})})},sh=e=>{const{options:t,value:n,onInputChange:o}=e,r=n.split("&"),s=a=>{const l=`"${a[0]}"&"${a[1]}"`;o(l)};return f.jsx(de.Col,{flex:t.length>1?3:4,children:f.jsx(ws.DatePicker.RangePicker,{className:h.css`
|
|
256
256
|
width: 100%;
|
|
257
257
|
border: none;
|
|
258
258
|
input {
|
|
259
259
|
text-align: center;
|
|
260
260
|
}
|
|
261
|
-
`,value:r,onChange:s})})},
|
|
261
|
+
`,value:r,onChange:s})})},ih=e=>{const{onClick:t}=e,{t:n}=le();return f.jsx(de.Col,{flex:1,children:f.jsx(de.Button,{style:{width:"100%",color:"#2c6eff"},type:"link",onClick:t,children:n("Search")})})},ah=h.withDynamicSchemaProps(e=>{const{fieldInterface:t,collectionField:n,Designer:o,options:r,value:s,onSelectChange:a,onInputChange:l,onButtonClick:c,customLabelKey:u,onDateClick:d}=Ol();return n?f.jsxs(h.SortableItem,{children:[f.jsx(o,{}),f.jsx(de.ConfigProvider,{theme:{token:{colorBgContainer:"#f9f9f9",colorBorder:"none"},components:{Input:{colorBorder:"#f9f9f9",activeShadow:"none",hoverBorderColor:"none",activeBorderColor:"none"},Divider:{colorSplit:"#c1c2c5"}}},children:f.jsxs(de.Row,{style:{marginTop:"2vh",backgroundColor:"#f9f9f9"},children:[f.jsx(oh,{options:r,onChange:a,customLabelKey:u}),Ft(t)?f.jsx(sh,{options:r,value:s,onInputChange:l,onChange:d}):f.jsx(rh,{options:r,value:s,onChange:l}),f.jsx(ih,{onClick:c})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),lh=e=>{var l;const{options:t,onChange:n,customLabelKey:o}=e,r=t.map(c=>({text:c.label,key:c.value})),[s,a]=i.useState(!1);return t.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=t.find(c=>c.value===o))==null?void 0:l.label}),f.jsx(dd,{}),t.length<=5?f.jsx(P1,{visible:s,actions:r,closeOnAction:!0,onClose:()=>a(!1),onAction:c=>{n(c.key)}}):f.jsx(Da,{columns:[t],visible:s,onClose:()=>{a(!1)},defaultValue:o,onConfirm:c=>{n(c[0])}}),f.jsx(Zr,{direction:"vertical",style:{height:"70%",margin:"0 0 0 5px"}})]}):null},ch=e=>{const{options:t,value:n,onChange:o,onInputChange:r}=e,s=n.split("&"),[a,l]=i.useState(!1),[c,u]=i.useState(0),d=xe.dayjs().subtract(10,"year").toDate(),m=xe.dayjs().add(3,"year").toDate(),g=()=>{l(!0)},v=([p,y])=>{const b=xe.dayjs(p).startOf("date").toISOString(),C=xe.dayjs(y).endOf("date").toISOString(),w=`"${b}"&"${C}"`;r(w),o(w),c>0&&c%2===1?(l(!1),u(0)):u(x=>x+1)};return f.jsxs(et.Item,{span:t.length>1?3:4,children:[f.jsx("div",{onClick:g,children:f.jsxs(et,{columns:5,children:[f.jsx(et.Item,{span:2,style:{textAlign:"end"},children:Ml(JSON.parse(s[0]))}),f.jsx(et.Item,{span:1,style:{textAlign:"center"},children:"-"}),f.jsx(et.Item,{span:2,style:{textAlign:"start"},children:Ml(JSON.parse(s[1]))})]})}),f.jsx(Ht,{visible:a,destroyOnClose:!0,mask:!0,closeOnMaskClick:!0,onMaskClick:()=>l(!1),onClose:()=>l(!1),children:f.jsx(X1,{selectionMode:"range",allowClear:!0,min:d,max:m,onChange:v})})]})},uh=e=>{const{options:t,value:n,onChange:o}=e,{t:r}=le();return f.jsx(et.Item,{style:{flex:1},span:t.length>1?2:3,children:f.jsx(os,{placeholder:r("Please enter search content"),value:n,onChange:o,style:{"--font-size":"12px",marginLeft:"5px"}})})},dh=e=>{const{onClick:t}=e,{t:n}=le();return f.jsx(et.Item,{onClick:t,style:{color:"#2c6eff",textAlign:"center",cursor:"pointer"},children:n("Search")})},fh=h.withDynamicSchemaProps(e=>{const{collectionField:t,Designer:n,options:o,value:r,needSort:s,onSelectChange:a,onInputChange:l,onButtonClick:c,customLabelKey:u,fieldInterface:d,onDateClick:m,setNeedSort:g}=Ol();return le(),t?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx("div",{className:h.css`
|
|
262
262
|
display: flex;
|
|
263
263
|
flex-direction: row;
|
|
264
264
|
align-items: center;
|
|
265
|
-
`,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(ch,{options:o,onChange:a,customLabelKey:u}),Ft(d)?f.jsx(uh,{value:r,onChange:m,onInputChange:l,options:o}):f.jsxs(f.Fragment,{children:[f.jsx(dh,{options:o,value:r,onChange:l}),f.jsx(fh,{onClick:c})]})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),hh=h.withDynamicSchemaProps(e=>{const{collectionField:t,Designer:n,items:o,onSelect:r}=Dl(e);return t?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx($o,{style:{"--title-font-size":"12px",color:"#a5a5a5"},onChange:r,children:o.map(s=>f.jsx($o.Tab,{title:s.label},s.key))})]}):null},{displayName:"TabSearchFieldItem"}),Dl=e=>{var b,C;const{list:t,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=e,{t:a}=le(),l=$.useFieldSchema(),c=h.useCollection(),u=i.useMemo(()=>c==null?void 0:c.getField(l.fieldName),[c,l.fieldName]),d=h.useDesigner(),m=o||(u==null?void 0:u.targetKey)||"id",g=r||((C=(b=l["x-component-props"])==null?void 0:b.fieldNames)==null?void 0:C.label)||m,v=w=>{var S;const x=((S=w.keyPath)==null?void 0:S[0])||w;n([x],s)},p={title:g||m,key:m},y=[];return t!=null&&t.length&&t.forEach(w=>{y.push({label:w[p.title],key:w[p.key]})}),y==null||y.unshift({label:a("all"),key:"all"}),{collectionField:u,Designer:d,items:y,onSelect:v}},ph=h.withDynamicSchemaProps(e=>{const{collectionField:t,Designer:n,items:o,onSelect:r}=Dl(e);return t?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx(de.ConfigProvider,{theme:{components:{Menu:{itemColor:"#a5a5a5",itemHoverColor:"#1d2ffff18"}}},children:f.jsx(de.Menu,{items:o,mode:"horizontal",onSelect:r,defaultSelectedKeys:["all"]})})]}):null},{displayName:"TabSearchFieldItem"}),gh=()=>{var u,d,m,g,v,p;const e=$.useFieldSchema(),t=h.useCollection(),n=((u=e["x-component-props"])==null?void 0:u.currentCollection)||(t==null?void 0:t.name),o=vh(n),r=h.useCollectionManager(),s=i.useMemo(()=>t==null?void 0:t.getField(e.fieldName),[t,e.fieldName]),{onSelected:a}=Zo(),l={list:null,valueKey:"",labelKey:"",filterKey:""};if(!t)return;l.valueKey=s!=null&&s.target?(d=r.getCollection(s.target))==null?void 0:d.getPrimaryKey():"id",l.labelKey=((g=(m=e["x-component-props"])==null?void 0:m.fieldNames)==null?void 0:g.label)||l.valueKey;const c=(v=e["x-component-props"])==null?void 0:v.interface;if(ct(c)){const y=o.find(w=>w.name===e.fieldName.split(".").findLast(Boolean)),b={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"};e.fieldName;const C=((p=y==null?void 0:y.uiSchema)==null?void 0:p.enum)||[];l.valueKey="value",l.labelKey="label",l.list=C,l.filterKey=`${e.fieldName}.${b[y==null?void 0:y.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},vh=e=>{var r;const n=h.useCollectionManager().getCollection(e);return((r=n==null?void 0:n.fields)!=null?r:[]).filter(s=>ct(s.interface)&&s.uiSchema.enum)},bh=()=>{var p,y,b,C,w;const e=$.useFieldSchema(),t=h.useCollection(),n=$.useField(),o={dataSource:"main"},r=h.useDataSourceHeaders(o==null?void 0:o.dataSource),s=h.useCollectionManager(),a=i.useMemo(()=>t==null?void 0:t.getField(e.fieldName),[t,e.fieldName]),c=e["x-component-props"].currentCollection===(t==null?void 0:t.name)?a==null?void 0:a.name:e.fieldName,u=e["x-component-props"].interface,d={list:null,valueKey:"",labelKey:"",filterKey:""},{onSelected:m}=Zo();d.valueKey=a!=null&&a.target?(p=s.getCollection(a.target))==null?void 0:p.getPrimaryKey():"id",d.labelKey=((b=(y=e["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:b.label)||d.valueKey;const{data:g,run:v}=h.useRequest({headers:r,resource:a==null?void 0:a.target,action:"list",params:B({fields:[d.labelKey,d.valueKey],pageSize:200,page:1},(C=n.componentProps)==null?void 0:C.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{$e(u)&&(a!=null&&a.target)&&v()},[d.labelKey,d.valueKey,JSON.stringify(((w=n.componentProps)==null?void 0:w.params)||{}),$e(u)]),a?(d.filterKey=`${c}.${d.valueKey}.$in`,d.list=(g==null?void 0:g.data)||[],{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,onSelected:m,filterKey:d.filterKey}):{}},yh=e=>{const{collectionName:t,dataSource:n,blockType:o}=e;return{type:"void","x-decorator":"TabSearchProvider","x-decorator-props":{collection:t,dataSource:n,blockType:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[Se.uid()]:{type:"void","x-action":"tabSearch","x-initializer":"tabSearch:configureFields","x-component":"TabSearch"}}}},Ch=e=>{const{filterCollections:t,onlyCurrentDataSource:n,hideChildrenIfSingleCollection:o}=e,r=h.useSchemaInitializerItem(),{insert:s}=h.useSchemaInitializer(),a=c=>me(this,[c],function*({item:l}){const u=yh({dataSource:l.dataSource,collectionName:l.collectionName||l.name,blockType:"filter"});s(u)});return f.jsx(h.DataBlockInitializer,ae(B({},r),{onlyCurrentDataSource:n,icon:"tab-search",componentType:"TabSearch",filter:t,hideChildrenIfSingleCollection:o,onCreateBlockSchema:a}))},gs=e=>{var l,c;const{field:t,itemComponent:n,label:o,itemUseProps:r,collection:s,type:a}=e;return{name:t.key,title:(l=t.uiSchema)==null?void 0:l.title,Component:"TabSearchFieldSchemaInitializerGadget",schema:{name:t.name+a,fieldName:t.name,title:(c=t.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:t.interface,collectionName:s==null?void 0:s.name,correlation:t.name},properties:{}}}},xh={TabSearchCollapsibleInputItem:"TabSearchCollapsibleInputMItem",useTabSearchFieldItemProps:"useTabSearchFieldItemRelatedProps",TabSearchFieldItem:"TabSearchFieldMItem"};function Al(e){return xh[e]}const Sh=()=>{const e=Ll("textField"),t=Ll("choiceField"),n=[{type:"itemGroup",title:qe("Display association Textfields",!1),children:e},{type:"itemGroup",title:qe("Display association Choicefields",!1),children:t}];return f.jsx(h.SchemaInitializerChildren,{children:n})};function Ll(e){const t=h.useCollection(),{name:n,allFields:o}=t||{},{getCollectionFields:r}=wh();h.useIsMobile();const s=h.useCollectionManager(),a=o==null?void 0:o.filter(({interface:d})=>$e(d)),l={collectionName:n,getCollectionFields:r,processedCollections:[],collectionManager:s};let c=[];return e==="textField"?c=a.map(d=>{var v;const m=$e(d.interface)?(v=s.getCollection(`${n}.${d.name}`))==null?void 0:v.titleField:d.name;return Bl(ae(B({},l),{field:d,label:m,schemaName:d.name}))}):e==="choiceField"&&(c=a.map(d=>{var v;const m=((v=s.getCollection(d.target))==null?void 0:v.getPrimaryKey())||"id";return Vl(ae(B({},l),{field:d,label:m,schemaName:d.name}))})),c.filter(Boolean)}function Bl(e,t){var g,v,p,y,b;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c}=e,{interface:u}=n,d=ct(u),m=$e(u);if(["m2o","obo"].includes(u)){if(l.includes(n.target))return null;const C=a(n.target);return{type:"subMenu",name:(g=n.uiSchema)==null?void 0:g.title,title:(v=n.uiSchema)==null?void 0:v.title,children:C.toSorted((w,x)=>+Object.hasOwn(w,"target")-+Object.hasOwn(x,"target")).map(w=>{var S;const x=$e(n.interface)?(S=c.getCollection(`${name}.${n.name}`))==null?void 0:S.titleField:n.name;return Bl({field:w,label:x,schemaName:`${r}.${w.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c})}).filter(Boolean)}}return h.isAssocField(n)||!Ml(u)&&!$e(u)&&!Ft(u)?null:{name:((p=n.uiSchema)==null?void 0:p.title)||n.name,title:((y=n.uiSchema)==null?void 0:y.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(b=n.uiSchema)==null?void 0:b.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Al("TabSearchCollapsibleInputItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name},"x-use-component-props":zl({useTabSearchFieldItemProps:d,useTabSearchFieldItemRelatedProps:m})}}}function Vl(e,t){var v,p,y,b,C;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c,currentCollection:u}=e,{interface:d}=n,m=ct(d),g=$e(d);if(["m2o","obo"].includes(d)&&!n.choiceTag){if(l.includes(n.target))return null;const w=a(n.target);return{type:"subMenu",name:(v=n.uiSchema)==null?void 0:v.title,title:(p=n.uiSchema)==null?void 0:p.title,children:w.reduce((x,S)=>(Object.hasOwn(S,"target")&&["m2o","obo"].includes(S.interface)&&x.push(ae(B({},S),{choiceTag:!0})),[...x,S]),[]).toSorted((x,S)=>+Object.hasOwn(x,"target")*2-+Object.hasOwn(x,"choiceTag")-+Object.hasOwn(S,"target")*2-+Object.hasOwn(S,"choiceTag")).map(x=>{var k;const S=((k=c.getCollection(n.target))==null?void 0:k.getPrimaryKey())||"id";return Vl({field:x,label:S,schemaName:`${r}.${x.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c,currentCollection:n.target})}).filter(Boolean)}}return h.isAssocField(n)&&!n.choiceTag||!ct(d)&&!$e(d)?null:{type:"item",name:((y=n.uiSchema)==null?void 0:y.title)||n.name,title:((b=n.uiSchema)==null?void 0:b.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(C=n.uiSchema)==null?void 0:C.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Al("TabSearchFieldItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name,currentCollection:u},"x-use-component-props":zl({useTabSearchFieldItemProps:m,useTabSearchFieldItemRelatedProps:g})}}}function wh(e){const t=h.useDataSourceManager(),n=h.useCollectionManager(),o=h.useDataSource(),r=(o==null?void 0:o.key)||void 0,s=i.useCallback(l=>{var c;return n&&!l?n:(c=t==null?void 0:t.getDataSource(l||r))==null?void 0:c.collectionManager},[n,t,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())||[]},[t,s])}}function zl(e){const t=Object.entries(e).find(([,o])=>o),[n]=t||[];return n}const kh=new h.SchemaInitializer({name:"tabSearch:configureFields",style:{marginTop:16},icon:"SettingOutlined",title:qe("Configure fields"),items:[{name:"textFields",type:"itemGroup",title:qe("Text fields"),useChildren:Eh},{name:"choicesFields",type:"itemGroup",title:qe("Choices fields"),useChildren:Ih},{name:"divider",type:"divider"},{name:"associationFields",Component:Sh},{name:"divider",type:"divider"},{title:qe("Add text",!1),Component:"MarkdownFormItemInitializer",name:"addText"}]});function Eh(){const e=h.useCollection(),t=e.fields,n=h.useCollectionManager(),r=h.useIsMobile()?"TabSearchCollapsibleInputMItem":"TabSearchCollapsibleInputItem";return t.map(a=>{if(!a.isForeignKey&&(Ml(a.interface)||$e(a.interface)||Ft(a.interface))){const l=$e(a.interface)?n.getCollection(`${e.name}.${a.name}`).titleField:a.name;return gs({field:a,itemComponent:r,label:l,collection:e,type:"text"})}}).filter(Boolean)}function Ih(){const t=h.useCollection().fields,n=h.useCollectionManager(),r=h.useIsMobile()?"TabSearchFieldMItem":"TabSearchFieldItem";return t.map(a=>{var c;const l=((c=n.getCollection(a.target))==null?void 0:c.getPrimaryKey())||"id";if(ct(a.interface))return gs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemProps",type:"choices"});if($e(a.interface))return gs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemRelatedProps",type:"choices"})}).filter(Boolean)}const $h=()=>{const e=h.useSchemaInitializerItem(),{schema:t}=e,{exists:n,remove:o}=h.useCurrentSchema(t.name,"name",e.find,e.remove),{insert:r}=h.useSchemaInitializer(),s=()=>{var l;if(n)return o();const a=$.merge(t||{},e.schema||{});(l=e==null?void 0:e.schemaInitialize)==null||l.call(e,a),r(a)};return f.jsx(h.SchemaInitializerSwitch,{checked:n,title:e.title,onClick:s})},_h=e=>f.jsx(h.DataBlockProvider,{collection:e.collection,children:e.children}),Ph=new h.SchemaSettings({name:"fieldSettings:TabSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t:e}=le();return{title:e("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var l,c;const e=$.useFieldSchema(),{form:t}=h.useFormBlockContext(),n=$.useField(),o=h.useCollectionManager(),s=h.useCollection().getField(e.fieldName)||o.getCollectionField(e["x-collection-field"]),{dn:a}=h.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=e==null?void 0:e["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:t,onSubmit:({filter:u})=>{var d;Ae.set(n.componentProps,"params",ae(B({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),e["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"]}})}}},useVisible(){const e=$.useFieldSchema();return!Ge(e["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var y,b;const e=$.useFieldSchema(),{t}=le(),n=h.useCollectionManager(),o=h.useCollection(),r=e["x-component-props"]||{},{collectionName:s,currentCollection:a,correlation:l}=r,c=a||s||o.name,u=o.getField(e.fieldName)||n.getCollectionField(e["x-collection-field"])||n.getCollection(c+"."+l),d=h.useCompile(),{dn:m}=h.useDesignable(),v=(u!=null&&u.target?n.getCollectionFields(u==null?void 0:u.target):[]).filter(C=>!(C!=null&&C.target)&&C.type!=="boolean").map(C=>{var w;return{value:C==null?void 0:C.name,label:d((w=C==null?void 0:C.uiSchema)==null?void 0:w.title)||(C==null?void 0:C.name)}}),p=C=>{var S,k,I;const w={"x-uid":e["x-uid"]},x=ae(B(B({},(k=(S=u==null?void 0:u.uiSchema)==null?void 0:S["x-component-props"])==null?void 0:k.fieldNames),(I=e["x-component-props"])==null?void 0:I.fieldNames),{label:C});e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=x,w["x-component-props"]=e["x-component-props"],m.emit("patch",{schema:w}),m.refresh()};return{key:"title-field",title:t("Title field"),options:v,value:(b=(y=e["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:b.label,onChange:p}},useVisible(){var t;const e=$.useFieldSchema();return Ge(e["x-component"])||((t=e["x-component-props"])==null?void 0:t.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t:e}=le(),t=$.useFieldSchema(),{dn:n}=h.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:e("Delete field")},breakRemoveOn:o=>(Ge(t["x-component"])&&(Object.values(o.properties).forEach(r=>{Ge(r["x-component"])&&r.name!==t.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),Nt=$.connect(os,$.mapProps(e=>ae(B({placeholder:"请输入内容",clearable:!0},e),{style:B({"--font-size":"12px"},e==null?void 0:e.style)})),$.mapReadPretty(e=>f.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:e.value}))),Mh=$.connect(Cl,$.mapProps(e=>ae(B({},e),{placeholder:"请输入内容",clearable:!0,style:B({"--font-size":"12px"},e==null?void 0:e.style)})),$.mapReadPretty(e=>f.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:e.value})));Nt.TextArea=Mh;const Fh={red:"#fc9792",magenta:"#ffa3cc",volcano:"#ffb38b",orange:"#ffcf86",gold:"#ffe184",lime:"#e7ff84",green:"#aee884",cyan:"#7ce5d9",blue:"#86c3ff",geekblue:"#a3bfff",purple:"#cda3f6",default:"#d4d4d4"},vs=e=>Fh[e],bs=$.connect(Xr,$.mapProps(e=>B({},e)));bs.Group=$.connect(e=>{const t=h.useCollectionField(),n=(t==null?void 0:t.uiSchema.enum)||[],o=e.value||[];return f.jsx(Xr.Group,{value:o,children:n.map((r,s)=>f.jsx(Xr,ae(B({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)}e.onChange(o)}},e),{children:r.label}),s))})},$.mapProps((e,t)=>B({},e)),$.mapReadPretty(e=>{if(!$.isValid(e.value))return f.jsx("div",{});const{value:t}=e,n=$.useField(),o=h.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===t).map((s,a)=>f.jsx(as,{color:vs(s.color),children:s.label},a))})}));const Zl=$.connect(e=>{const{t}=h.useTranslation(),{value:n,onChange:o}=e,[r,s]=i.useState(!1),[a,l]=i.useState(n),c=a?Se.dayjs(a).format("YYYY-MM-DD"):t("please enter the date"),u=()=>s(!0),d=()=>s(!1),m=g=>{l(g),o(g),s(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(st,{onClick:u,children:c}),f.jsx(ff,{visible:r,value:a,onClose:d,onConfirm:m})]})},$.mapProps(e=>B({},e)),$.mapReadPretty(e=>{const t=B({},e);return t.value=e.value?Se.dayjs(e.value).format("YYYY-MM-DD"):"",f.jsx("div",{children:t.value})})),Nh=$.connect(e=>{const[t,n]=i.useState([]),[o,r]=i.useState(!1),s=e.value||[];i.useEffect(()=>{if(!o&&e.value){const l=e.value.map(c=>({url:c.url,key:c.id,thumbnailUrl:c.url}));n(l)}},[e.value]);const a=h.useAPIClient();return f.jsx(dl,{value:t,upload:l=>me(this,null,function*(){const{name:c}=l;if(Oh(c)){const d=new FormData;d.append("file",l);let m;return yield a.request({url:e.action,method:"post",data:d}).then(g=>{var v;m=(v=g==null?void 0:g.data)==null?void 0:v.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),e.onChange(s)},onDelete:l=>{const c=s.findIndex(u=>u.id===l.key);s.splice(c,1),e.onChange(s)}})},$.mapProps(e=>B({},e)),$.mapReadPretty(e=>{const{showCount:t,value:n=[]}=e,o=n.slice(0,t);return f.jsx(dl,ae(B({},e),{value:o,disableUpload:!0,showUpload:!1,upload:()=>me(this,null,function*(){return{url:""}})}))})),Oh=e=>/\.(png|jpg|jpeg|gif|webp)$/i.test(e),ys=$.connect(rs,$.mapProps({value:"checked",onInput:"onChange"}));ys.Group=$.connect(e=>{const t=h.useCollectionField(),n=(t==null?void 0:t.uiSchema.enum)||[];return f.jsx(rs.Group,ae(B({},e),{children:n.map((o,r)=>f.jsx(rs,{value:o.value,style:{"--font-size":"12px","--icon-size":"18px",marginLeft:"10px"},children:o.label},r))}))},$.mapProps((e,t)=>(i.useEffect(()=>{var o;const n=(o=t.dataSource)==null?void 0:o.find(r=>r.value===e.value);n&&t.setValue(n.value)},[e.value,t.dataSource]),B({},e))),$.mapReadPretty(e=>{if(!$.isValid(e.value))return f.jsx("div",{});const{value:t}=e,n=$.useField(),o=h.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===t).map((s,a)=>f.jsx(as,{color:vs(s.color),children:s.label},a))})}));const Th=h.createStyles(({css:e})=>({PopupStyle:e`
|
|
265
|
+
`,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(lh,{options:o,onChange:a,customLabelKey:u}),Ft(d)?f.jsx(ch,{value:r,onChange:m,onInputChange:l,options:o}):f.jsxs(f.Fragment,{children:[f.jsx(uh,{options:o,value:r,onChange:l}),f.jsx(dh,{onClick:c})]})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),mh=h.withDynamicSchemaProps(e=>{const{collectionField:t,Designer:n,items:o,onSelect:r}=Tl(e);return t?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx($o,{style:{"--title-font-size":"12px",color:"#a5a5a5"},onChange:r,children:o.map(s=>f.jsx($o.Tab,{title:s.label},s.key))})]}):null},{displayName:"TabSearchFieldItem"}),Tl=e=>{var b,C;const{list:t,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=e,{t:a}=le(),l=$.useFieldSchema(),c=h.useCollection(),u=i.useMemo(()=>c==null?void 0:c.getField(l.fieldName),[c,l.fieldName]),d=h.useDesigner(),m=o||(u==null?void 0:u.targetKey)||"id",g=r||((C=(b=l["x-component-props"])==null?void 0:b.fieldNames)==null?void 0:C.label)||m,v=w=>{var S;const x=((S=w.keyPath)==null?void 0:S[0])||w;n([x],s)},p={title:g||m,key:m},y=[];return t!=null&&t.length&&t.forEach(w=>{y.push({label:w[p.title],key:w[p.key]})}),y==null||y.unshift({label:a("all"),key:"all"}),{collectionField:u,Designer:d,items:y,onSelect:v}},hh=h.withDynamicSchemaProps(e=>{const{collectionField:t,Designer:n,items:o,onSelect:r}=Tl(e);return t?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx(de.ConfigProvider,{theme:{components:{Menu:{itemColor:"#a5a5a5",itemHoverColor:"#1d2ffff18"}}},children:f.jsx(de.Menu,{items:o,mode:"horizontal",onSelect:r,defaultSelectedKeys:["all"]})})]}):null},{displayName:"TabSearchFieldItem"}),ph=()=>{var u,d,m,g,v,p;const e=$.useFieldSchema(),t=h.useCollection(),n=((u=e["x-component-props"])==null?void 0:u.currentCollection)||(t==null?void 0:t.name),o=gh(n),r=h.useCollectionManager(),s=i.useMemo(()=>t==null?void 0:t.getField(e.fieldName),[t,e.fieldName]),{onSelected:a}=Zo(),l={list:null,valueKey:"",labelKey:"",filterKey:""};if(!t)return;l.valueKey=s!=null&&s.target?(d=r.getCollection(s.target))==null?void 0:d.getPrimaryKey():"id",l.labelKey=((g=(m=e["x-component-props"])==null?void 0:m.fieldNames)==null?void 0:g.label)||l.valueKey;const c=(v=e["x-component-props"])==null?void 0:v.interface;if(ct(c)){const y=o.find(w=>w.name===e.fieldName.split(".").findLast(Boolean)),b={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"};e.fieldName;const C=((p=y==null?void 0:y.uiSchema)==null?void 0:p.enum)||[];l.valueKey="value",l.labelKey="label",l.list=C,l.filterKey=`${e.fieldName}.${b[y==null?void 0:y.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},gh=e=>{var r;const n=h.useCollectionManager().getCollection(e);return((r=n==null?void 0:n.fields)!=null?r:[]).filter(s=>ct(s.interface)&&s.uiSchema.enum)},vh=()=>{var p,y,b,C,w;const e=$.useFieldSchema(),t=h.useCollection(),n=$.useField(),o={dataSource:"main"},r=h.useDataSourceHeaders(o==null?void 0:o.dataSource),s=h.useCollectionManager(),a=i.useMemo(()=>t==null?void 0:t.getField(e.fieldName),[t,e.fieldName]),c=e["x-component-props"].currentCollection===(t==null?void 0:t.name)?a==null?void 0:a.name:e.fieldName,u=e["x-component-props"].interface,d={list:null,valueKey:"",labelKey:"",filterKey:""},{onSelected:m}=Zo();d.valueKey=a!=null&&a.target?(p=s.getCollection(a.target))==null?void 0:p.getPrimaryKey():"id",d.labelKey=((b=(y=e["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:b.label)||d.valueKey;const{data:g,run:v}=h.useRequest({headers:r,resource:a==null?void 0:a.target,action:"list",params:B({fields:[d.labelKey,d.valueKey],pageSize:200,page:1},(C=n.componentProps)==null?void 0:C.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{$e(u)&&(a!=null&&a.target)&&v()},[d.labelKey,d.valueKey,JSON.stringify(((w=n.componentProps)==null?void 0:w.params)||{}),$e(u)]),a?(d.filterKey=`${c}.${d.valueKey}.$in`,d.list=(g==null?void 0:g.data)||[],{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,onSelected:m,filterKey:d.filterKey}):{}},bh=e=>{const{collectionName:t,dataSource:n,blockType:o}=e;return{type:"void","x-decorator":"TabSearchProvider","x-decorator-props":{collection:t,dataSource:n,blockType:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[xe.uid()]:{type:"void","x-action":"tabSearch","x-initializer":"tabSearch:configureFields","x-component":"TabSearch"}}}},yh=e=>{const{filterCollections:t,onlyCurrentDataSource:n,hideChildrenIfSingleCollection:o}=e,r=h.useSchemaInitializerItem(),{insert:s}=h.useSchemaInitializer(),a=c=>me(this,[c],function*({item:l}){const u=bh({dataSource:l.dataSource,collectionName:l.collectionName||l.name,blockType:"filter"});s(u)});return f.jsx(h.DataBlockInitializer,ae(B({},r),{onlyCurrentDataSource:n,icon:"tab-search",componentType:"TabSearch",filter:t,hideChildrenIfSingleCollection:o,onCreateBlockSchema:a}))},gs=e=>{var l,c;const{field:t,itemComponent:n,label:o,itemUseProps:r,collection:s,type:a}=e;return{name:t.key,title:(l=t.uiSchema)==null?void 0:l.title,Component:"TabSearchFieldSchemaInitializerGadget",schema:{name:t.name+a,fieldName:t.name,title:(c=t.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:t.interface,collectionName:s==null?void 0:s.name,correlation:t.name},properties:{}}}},Ch={TabSearchCollapsibleInputItem:"TabSearchCollapsibleInputMItem",useTabSearchFieldItemProps:"useTabSearchFieldItemRelatedProps",TabSearchFieldItem:"TabSearchFieldMItem"};function Dl(e){return Ch[e]}const xh=()=>{const e=Al("textField"),t=Al("choiceField"),n=[{type:"itemGroup",title:qe("Display association Textfields",!1),children:e},{type:"itemGroup",title:qe("Display association Choicefields",!1),children:t}];return f.jsx(h.SchemaInitializerChildren,{children:n})};function Al(e){const t=h.useCollection(),{name:n,allFields:o}=t||{},{getCollectionFields:r}=Sh();h.useIsMobile();const s=h.useCollectionManager(),a=o==null?void 0:o.filter(({interface:d})=>$e(d)),l={collectionName:n,getCollectionFields:r,processedCollections:[],collectionManager:s};let c=[];return e==="textField"?c=a.map(d=>{var v;const m=$e(d.interface)?(v=s.getCollection(`${n}.${d.name}`))==null?void 0:v.titleField:d.name;return Ll(ae(B({},l),{field:d,label:m,schemaName:d.name}))}):e==="choiceField"&&(c=a.map(d=>{var v;const m=((v=s.getCollection(d.target))==null?void 0:v.getPrimaryKey())||"id";return Bl(ae(B({},l),{field:d,label:m,schemaName:d.name}))})),c.filter(Boolean)}function Ll(e,t){var g,v,p,y,b;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c}=e,{interface:u}=n,d=ct(u),m=$e(u);if(["m2o","obo"].includes(u)){if(l.includes(n.target))return null;const C=a(n.target);return{type:"subMenu",name:(g=n.uiSchema)==null?void 0:g.title,title:(v=n.uiSchema)==null?void 0:v.title,children:C.toSorted((w,x)=>+Object.hasOwn(w,"target")-+Object.hasOwn(x,"target")).map(w=>{var S;const x=$e(n.interface)?(S=c.getCollection(`${name}.${n.name}`))==null?void 0:S.titleField:n.name;return Ll({field:w,label:x,schemaName:`${r}.${w.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c})}).filter(Boolean)}}return h.isAssocField(n)||!Pl(u)&&!$e(u)&&!Ft(u)?null:{name:((p=n.uiSchema)==null?void 0:p.title)||n.name,title:((y=n.uiSchema)==null?void 0:y.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(b=n.uiSchema)==null?void 0:b.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Dl("TabSearchCollapsibleInputItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name},"x-use-component-props":Vl({useTabSearchFieldItemProps:d,useTabSearchFieldItemRelatedProps:m})}}}function Bl(e,t){var v,p,y,b,C;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c,currentCollection:u}=e,{interface:d}=n,m=ct(d),g=$e(d);if(["m2o","obo"].includes(d)&&!n.choiceTag){if(l.includes(n.target))return null;const w=a(n.target);return{type:"subMenu",name:(v=n.uiSchema)==null?void 0:v.title,title:(p=n.uiSchema)==null?void 0:p.title,children:w.reduce((x,S)=>(Object.hasOwn(S,"target")&&["m2o","obo"].includes(S.interface)&&x.push(ae(B({},S),{choiceTag:!0})),[...x,S]),[]).toSorted((x,S)=>+Object.hasOwn(x,"target")*2-+Object.hasOwn(x,"choiceTag")-+Object.hasOwn(S,"target")*2-+Object.hasOwn(S,"choiceTag")).map(x=>{var k;const S=((k=c.getCollection(n.target))==null?void 0:k.getPrimaryKey())||"id";return Bl({field:x,label:S,schemaName:`${r}.${x.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c,currentCollection:n.target})}).filter(Boolean)}}return h.isAssocField(n)&&!n.choiceTag||!ct(d)&&!$e(d)?null:{type:"item",name:((y=n.uiSchema)==null?void 0:y.title)||n.name,title:((b=n.uiSchema)==null?void 0:b.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(C=n.uiSchema)==null?void 0:C.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Dl("TabSearchFieldItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name,currentCollection:u},"x-use-component-props":Vl({useTabSearchFieldItemProps:m,useTabSearchFieldItemRelatedProps:g})}}}function Sh(e){const t=h.useDataSourceManager(),n=h.useCollectionManager(),o=h.useDataSource(),r=(o==null?void 0:o.key)||void 0,s=i.useCallback(l=>{var c;return n&&!l?n:(c=t==null?void 0:t.getDataSource(l||r))==null?void 0:c.collectionManager},[n,t,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())||[]},[t,s])}}function Vl(e){const t=Object.entries(e).find(([,o])=>o),[n]=t||[];return n}const wh=new h.SchemaInitializer({name:"tabSearch:configureFields",style:{marginTop:16},icon:"SettingOutlined",title:qe("Configure fields"),items:[{name:"textFields",type:"itemGroup",title:qe("Text fields"),useChildren:kh},{name:"choicesFields",type:"itemGroup",title:qe("Choices fields"),useChildren:Eh},{name:"divider",type:"divider"},{name:"associationFields",Component:xh},{name:"divider",type:"divider"},{title:qe("Add text",!1),Component:"MarkdownFormItemInitializer",name:"addText"}]});function kh(){const e=h.useCollection(),t=e.fields,n=h.useCollectionManager(),r=h.useIsMobile()?"TabSearchCollapsibleInputMItem":"TabSearchCollapsibleInputItem";return t.map(a=>{if(!a.isForeignKey&&(Pl(a.interface)||$e(a.interface)||Ft(a.interface))){const l=$e(a.interface)?n.getCollection(`${e.name}.${a.name}`).titleField:a.name;return gs({field:a,itemComponent:r,label:l,collection:e,type:"text"})}}).filter(Boolean)}function Eh(){const t=h.useCollection().fields,n=h.useCollectionManager(),r=h.useIsMobile()?"TabSearchFieldMItem":"TabSearchFieldItem";return t.map(a=>{var c;const l=((c=n.getCollection(a.target))==null?void 0:c.getPrimaryKey())||"id";if(ct(a.interface))return gs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemProps",type:"choices"});if($e(a.interface))return gs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemRelatedProps",type:"choices"})}).filter(Boolean)}const Ih=()=>{const e=h.useSchemaInitializerItem(),{schema:t}=e,{exists:n,remove:o}=h.useCurrentSchema(t.name,"name",e.find,e.remove),{insert:r}=h.useSchemaInitializer(),s=()=>{var l;if(n)return o();const a=$.merge(t||{},e.schema||{});(l=e==null?void 0:e.schemaInitialize)==null||l.call(e,a),r(a)};return f.jsx(h.SchemaInitializerSwitch,{checked:n,title:e.title,onClick:s})},$h=e=>f.jsx(h.DataBlockProvider,{collection:e.collection,children:e.children}),_h=new h.SchemaSettings({name:"fieldSettings:TabSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t:e}=le();return{title:e("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var l,c;const e=$.useFieldSchema(),{form:t}=h.useFormBlockContext(),n=$.useField(),o=h.useCollectionManager(),s=h.useCollection().getField(e.fieldName)||o.getCollectionField(e["x-collection-field"]),{dn:a}=h.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=e==null?void 0:e["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:t,onSubmit:({filter:u})=>{var d;Ae.set(n.componentProps,"params",ae(B({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),e["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"]}})}}},useVisible(){const e=$.useFieldSchema();return!Ge(e["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var y,b;const e=$.useFieldSchema(),{t}=le(),n=h.useCollectionManager(),o=h.useCollection(),r=e["x-component-props"]||{},{collectionName:s,currentCollection:a,correlation:l}=r,c=a||s||o.name,u=o.getField(e.fieldName)||n.getCollectionField(e["x-collection-field"])||n.getCollection(c+"."+l),d=h.useCompile(),{dn:m}=h.useDesignable(),v=(u!=null&&u.target?n.getCollectionFields(u==null?void 0:u.target):[]).filter(C=>!(C!=null&&C.target)&&C.type!=="boolean").map(C=>{var w;return{value:C==null?void 0:C.name,label:d((w=C==null?void 0:C.uiSchema)==null?void 0:w.title)||(C==null?void 0:C.name)}}),p=C=>{var S,k,I;const w={"x-uid":e["x-uid"]},x=ae(B(B({},(k=(S=u==null?void 0:u.uiSchema)==null?void 0:S["x-component-props"])==null?void 0:k.fieldNames),(I=e["x-component-props"])==null?void 0:I.fieldNames),{label:C});e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=x,w["x-component-props"]=e["x-component-props"],m.emit("patch",{schema:w}),m.refresh()};return{key:"title-field",title:t("Title field"),options:v,value:(b=(y=e["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:b.label,onChange:p}},useVisible(){var t;const e=$.useFieldSchema();return Ge(e["x-component"])||((t=e["x-component-props"])==null?void 0:t.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t:e}=le(),t=$.useFieldSchema(),{dn:n}=h.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:e("Delete field")},breakRemoveOn:o=>(Ge(t["x-component"])&&(Object.values(o.properties).forEach(r=>{Ge(r["x-component"])&&r.name!==t.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),Nt=$.connect(os,$.mapProps(e=>ae(B({placeholder:"请输入内容",clearable:!0},e),{style:B({"--font-size":"12px"},e==null?void 0:e.style)})),$.mapReadPretty(e=>f.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:e.value}))),Ph=$.connect(yl,$.mapProps(e=>ae(B({},e),{placeholder:"请输入内容",clearable:!0,style:B({"--font-size":"12px"},e==null?void 0:e.style)})),$.mapReadPretty(e=>f.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:e.value})));Nt.TextArea=Ph;const Mh={red:"#fc9792",magenta:"#ffa3cc",volcano:"#ffb38b",orange:"#ffcf86",gold:"#ffe184",lime:"#e7ff84",green:"#aee884",cyan:"#7ce5d9",blue:"#86c3ff",geekblue:"#a3bfff",purple:"#cda3f6",default:"#d4d4d4"},vs=e=>Mh[e],bs=$.connect(Xr,$.mapProps(e=>B({},e)));bs.Group=$.connect(e=>{const t=h.useCollectionField(),n=(t==null?void 0:t.uiSchema.enum)||[],o=e.value||[];return f.jsx(Xr.Group,{value:o,children:n.map((r,s)=>f.jsx(Xr,ae(B({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)}e.onChange(o)}},e),{children:r.label}),s))})},$.mapProps((e,t)=>B({},e)),$.mapReadPretty(e=>{if(!$.isValid(e.value))return f.jsx("div",{});const{value:t}=e,n=$.useField(),o=h.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===t).map((s,a)=>f.jsx(as,{color:vs(s.color),children:s.label},a))})}));const zl=$.connect(e=>{const{t}=h.useTranslation(),{value:n,onChange:o}=e,[r,s]=i.useState(!1),[a,l]=i.useState(n),c=a?xe.dayjs(a).format("YYYY-MM-DD"):t("please enter the date"),u=()=>s(!0),d=()=>s(!1),m=v=>{l(v),o(v),s(!1)},g=i.useMemo(()=>{const v=xe.dayjs(a);if(v.isValid())return v.toDate()},[a]);return f.jsxs(f.Fragment,{children:[f.jsx(st,{onClick:u,children:c}),f.jsx(df,{visible:r,value:g,onClose:d,onConfirm:m})]})},$.mapProps(e=>B({},e)),$.mapReadPretty(e=>{const t=B({},e);return t.value=e.value?xe.dayjs(e.value).format("YYYY-MM-DD"):"",f.jsx("div",{children:t.value})})),Fh=$.connect(e=>{const[t,n]=i.useState([]),[o,r]=i.useState(!1),s=e.value||[];i.useEffect(()=>{if(!o&&e.value){const l=e.value.map(c=>({url:c.url,key:c.id,thumbnailUrl:c.url}));n(l)}},[e.value]);const a=h.useAPIClient();return f.jsx(ul,{value:t,upload:l=>me(this,null,function*(){const{name:c}=l;if(Nh(c)){const d=new FormData;d.append("file",l);let m;return yield a.request({url:e.action,method:"post",data:d}).then(g=>{var v;m=(v=g==null?void 0:g.data)==null?void 0:v.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),e.onChange(s)},onDelete:l=>{const c=s.findIndex(u=>u.id===l.key);s.splice(c,1),e.onChange(s)}})},$.mapProps(e=>B({},e)),$.mapReadPretty(e=>{const{showCount:t,value:n=[]}=e,o=n.slice(0,t);return f.jsx(ul,ae(B({},e),{value:o,disableUpload:!0,showUpload:!1,upload:()=>me(this,null,function*(){return{url:""}})}))})),Nh=e=>/\.(png|jpg|jpeg|gif|webp)$/i.test(e),ys=$.connect(rs,$.mapProps({value:"checked",onInput:"onChange"}));ys.Group=$.connect(e=>{const t=h.useCollectionField(),n=(t==null?void 0:t.uiSchema.enum)||[];return f.jsx(rs.Group,ae(B({},e),{children:n.map((o,r)=>f.jsx(rs,{value:o.value,style:{"--font-size":"12px","--icon-size":"18px",marginLeft:"10px"},children:o.label},r))}))},$.mapProps((e,t)=>(i.useEffect(()=>{var o;const n=(o=t.dataSource)==null?void 0:o.find(r=>r.value===e.value);n&&t.setValue(n.value)},[e.value,t.dataSource]),B({},e))),$.mapReadPretty(e=>{if(!$.isValid(e.value))return f.jsx("div",{});const{value:t}=e,n=$.useField(),o=h.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===t).map((s,a)=>f.jsx(as,{color:vs(s.color),children:s.label},a))})}));const Oh=h.createStyles(({css:e})=>({PopupStyle:e`
|
|
266
266
|
.adm-popup-body {
|
|
267
267
|
padding: 10px;
|
|
268
268
|
.adm-space {
|
|
@@ -282,12 +282,12 @@
|
|
|
282
282
|
text-align: center;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
`})),
|
|
285
|
+
`})),Th=$.observer(e=>{const{fieldSchema:t}=e,[n,o]=i.useState(!1),r=t.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(Ht,{visible:n,onMaskClick:()=>{o(!1)},showCloseButton:!0,onClose:()=>{o(!1)},className:h.css`
|
|
286
286
|
.adm-popup-body {
|
|
287
287
|
height: 80vh;
|
|
288
288
|
overflow: auto;
|
|
289
289
|
}
|
|
290
|
-
`,children:f.jsx(h.MobileProvider,{children:f.jsx(h.ActionContextProvider,{visible:n,setVisible:o,children:f.jsx($.RecursionField,{schema:r,onlyRenderProperties:!0})})})})]})},{displayName:"CreateRecordAction"}),
|
|
290
|
+
`,children:f.jsx(h.MobileProvider,{children:f.jsx(h.ActionContextProvider,{visible:n,setVisible:o,children:f.jsx($.RecursionField,{schema:r,onlyRenderProperties:!0})})})})]})},{displayName:"CreateRecordAction"}),Dh=$.observer(e=>{const{value:t,collectionName:n,service:o,fieldNames:r,addMode:s,onChange:a,multiple:l,mode:c}=e,[u,d]=i.useState(!1),[m,g]=i.useState(""),{styles:v}=Oh(),[p,y]=i.useState([]),b=$.useFieldSchema(),C=h.useCollectionManager(),w=h.useCollection(),[x]=h.useFieldServiceFilter(o==null?void 0:o.params),[S,k]=i.useState({}),I=h.useAPIClient(),[M,O]=i.useState(t),L=(r==null?void 0:r.label)||"label",F=(r==null?void 0:r.value)||"value";let N="";xe.isArray(t)?t.forEach((E,D)=>{N+=`${E[L]}${t.length-1===D?"":", "}`}):t&&typeof t=="object"&&(N=t[L]);const{run:W}=h.useRequest({resource:n,action:"list",params:{filter:B(B({},x==null?void 0:x.filter),S)}},{manual:!0,onSuccess(E){var D;if(E){const T=(D=E.data)==null?void 0:D.map(z=>ae(B({},z),{label:z[L],value:z[F]}));y(T)}}});i.useEffect(()=>{V()},[S,u]);const V=()=>{var E;if(n)W();else if(b["x-collection-field"]){const T=(E=C.getCollectionField(b["x-collection-field"]).uiSchema)==null?void 0:E.enum;y(T)}else y(b.enum)},_=E=>{E[L]=I.request({url:n+":create",method:"post",data:E}).then(D=>{D.status===200?cs.show({icon:"success",content:"添加成功"}):cs.show({icon:"fail",content:"失败成功"});const T=B({},S);delete T[L],k(T),g(""),d(!1)}).catch(()=>{})},P=()=>{const E={};E[L]=m,_(E)};return f.jsx(h.CollectionProvider,{name:n||(w==null?void 0:w.name),children:f.jsxs(h.BlockItem,{children:[f.jsx("div",{onClick:()=>{b["x-disabled"]||(d(!0),V())},style:{color:"#c5c5c5"},children:t!=null&&t.length||t&&!xe.isArray(t)?f.jsx(Nt,{style:{"--color":"#1e8bf1"},value:N,disabled:b["x-disabled"]}):f.jsx(_n,{children:b["x-disabled"]?"":"请选择内容"})}),f.jsx(Ht,{visible:u,className:`${v.PopupStyle}`,onMaskClick:()=>{d(!1)},children:f.jsxs(h.MobileProvider,{children:[f.jsx(pl,{placeholder:"请输入内容",value:m,onChange:E=>{const D=B({},S);D[L]={$includes:E},k(D),g(E)}}),m&&s==="quickAdd"?f.jsxs(_n,{justify:"center",align:"center",onClick:P,children:["+ 创建",m]}):null,f.jsx(Zr,{}),l||c==="multiple"?f.jsx(Mo,{multiple:!0,className:`${v.checkListStyle}`,onChange:E=>{if(!E.length){O(null);return}const D=p.filter(T=>E.includes(T.value));O(D)},children:p.map((E,D)=>f.jsx(Mo.Item,{value:E.value,children:E.label},D))}):f.jsx(Yr,{columns:[p],onChange:E=>{const D=p.find(T=>T.value===E[0]);O(D)}}),f.jsxs(_n,{justify:"evenly",align:"center",children:[s==="modalAdd"?f.jsx(h.SchemaComponent,{components:{CreateRecordAction:Th},schema:{type:"void",name:"CreateRecord","x-component":"CreateRecordAction","x-component-props":{fieldSchema:b}}}):null,f.jsx(st,{color:"primary",onClick:()=>{d(!1);const E=B({},S);E[L]&&delete E[L],g(""),k(E)},children:"取消"}),f.jsx(st,{color:"primary",onClick:()=>{a(M),d(!1);const E=B({},S);E[L]&&delete E[L],g(""),k(E)},children:"确定"})]})]})})]})})}),Cs=$.connect(Dh,$.mapProps(e=>{const t=B({},e),n=$.useFieldSchema(),r=h.useCollectionManager().getCollection(n["x-collection-field"]),s=$.useField(),a=h.useCollectionField(),l=s.dataSource||(a==null?void 0:a.uiSchema.enum)||[];return r&&(t.collectionName=r.name),typeof t.value!="object"&&(t.value=l.filter(c=>c.value.toString()===(t==null?void 0:t.value))),B({},t)}),$.mapReadPretty(e=>{var n,o;const t=h.useCollectionField();if(typeof e.value=="object")return f.jsx(h.AssociationField.ReadPretty,B({},e));{const r=(o=(n=t==null?void 0:t.uiSchema)==null?void 0:n.enum)==null?void 0:o.find(s=>s.value===e.value);return f.jsx(as,{color:vs(r==null?void 0:r.color),children:r==null?void 0:r.label})}})),Ah=h.createStyles(({css:e})=>({PopupStyle:e`
|
|
291
291
|
.adm-popup-body {
|
|
292
292
|
padding: 10px;
|
|
293
293
|
.adm-space {
|
|
@@ -307,13 +307,13 @@
|
|
|
307
307
|
text-align: center;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
`})),
|
|
310
|
+
`})),Zl=$.observer(e=>{var ee,Ne;const{service:t,fieldNames:n,disabled:o,useLoadData:r,useDataSource:s,multiple:a,onChange:l,value:c,formCascaderValues:u,index:d}=e,m=$.useFieldSchema(),g=h.useCollectionManager(),{styles:v}=Ah(),p=g.getCollectionField(m["x-collection-field"]),y=((ee=m["x-component-props"])==null?void 0:ee.changOnSelect)||!1,b=g.getCollection(m["x-collection-field"]),C=p.interface==="chinaRegion",[w,x]=i.useState([]),[S,k]=i.useState(!1),[I]=h.useFieldServiceFilter(t==null?void 0:t.params),[M,O]=i.useState(I),[L,F]=i.useState(""),[N,W]=i.useState(c),[V,_]=i.useState(""),[P,E]=i.useState([]),D=$.useField(),{loading:T,run:z}=h.useRequest({resource:b==null?void 0:b.name,action:"list",params:{filter:M,tree:!0}},{manual:!0,onSuccess({data:q}){if(q){x(q),D.dataSource=q||[];const ue=Lh(q);E(ue),c&&_(jo(ue,c,"",n.label))}}}),j=r==null?void 0:r(e),{loading:H,run:U}=(s==null?void 0:s({onSuccess(q){D.dataSource=(q==null?void 0:q.data)||[],x(q==null?void 0:q.data)}}))||{loading:!0,run:null};!V&&c&&C&&_(jl(c,n)),i.useEffect(()=>{!C&&(b!=null&&b.name)&&ne()},[M]),i.useEffect(()=>{!C&&P.length&&_(jo(P,c,"",n.label))},[(Ne=m["x-component-props"])==null?void 0:Ne.fieldNames]);const J=q=>me(this,null,function*(){W(q?C?q:q[q.length-1]:{})}),ne=()=>{C?U():z()};return f.jsxs(h.CollectionProvider,{name:p.collectionName,children:[f.jsxs("div",{onClick:()=>{o||(k(!0),ne())},style:{display:"flex",alignItems:"center"},children:[c&&Object.keys(c).length?f.jsx(Nt,{style:{"--color":"#1e8bf1"},value:V,disabled:o,clearable:!1}):f.jsx(Nt,{value:V?"":"请选择",style:{"--color":"#c5c5c5"}}),c&&Object.keys(c).length||u&&d!==0?f.jsx(no,{style:{margin:"5px 10px 5px 20px"},onClick:()=>{if(d){const q=[...u];u.length===1&&d===0?q[d]={}:q.splice(d,1),l(q)}else l({})}}):null]}),f.jsx(Ht,{visible:S,className:`${v.PopupStyle}`,onMaskClick:()=>{k(!1)},children:f.jsxs(h.MobileProvider,{children:[C?null:f.jsxs(f.Fragment,{children:[f.jsx(pl,{placeholder:"请输入内容",value:L,onChange:q=>{const ue=B({},M);ue[n.label]={$includes:q},O(ue),F(q)}}),f.jsx(Zr,{})]}),f.jsx(j0,{loading:C?H:T,fieldNames:n,options:w,onChange:(q,ue)=>{if(C){const Z=D.componentProps.maxLevel,G=ue.items[ue.items.length-1];Z>G.level&&(G.children=[]),j(ue.items,re=>{re!=null&&re.data.length&&(G.children=re.data.map(ge=>(Z>ge.level&&(ge.isLeaf=!1),ge)),x([...w]))})}J(ue.items)}}),f.jsxs(_n,{justify:"evenly",align:"center",children:[f.jsx(st,{color:"primary",onClick:()=>{k(!1);const q=B({},M);q[n.label]&&delete q[n.label],F(""),O(q)},children:"取消"}),f.jsx(st,{color:"primary",onClick:()=>{const q=a?Bh(u,N,d):N;l(q);const ue=C?jl(N,n):jo(P,N,"",n.label);if(_(ue),k(!1),!C){const Z=B({},M);delete Z[n.label],F(""),O(Z)}},disabled:y?!(N&&N!=="{}"):!(N&&N!=="{}"&&(!(N!=null&&N.children)||!(N!=null&&N.children.length))),children:"确定"})]})]})})]})}),jo=(e,t,n,o)=>{const r=`${(t==null?void 0:t[o])||""}${n}`;if(t!=null&&t.parentId){const s=e.find(l=>l.id===t.parentId),a=`/${r}`;return jo(e,s,a,o)}return r},Lh=e=>{const t=(o,r)=>(r.push(o),o!=null&&o.children&&o.children.forEach(s=>t(s,r)),r),n=[];return e.forEach(o=>{const r=t(o,[]);n.push(...r)}),n},Bh=(e,t,n)=>{const o=[];return e&&(n||n===0)?(e[n]=t,o.push(...e)):o.push(t),o},jl=(e,t)=>e==null?void 0:e.reduce((n,o,r)=>n+`${o[t.label]}${e.length-1===r?"":"/"}`,""),Vh=$.observer(e=>{const{value:t,onChange:n,multiple:o}=e,{t:r}=le();return f.jsxs(f.Fragment,{children:[xe.isArray(t)&&o?f.jsx(f.Fragment,{children:t.map((s,a)=>{const l=ae(B({},e),{value:s,formCascaderValues:t||[],index:a});return i.createElement(Zl,ae(B({},l),{key:a}))})}):f.jsx(Zl,B({},e)),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=t?[...t,{}]:[{},{}];n(s)},children:["+ ",r("Add new")]})}):null]})}),zh={label:"label",value:"value",children:"children"},Zh=e=>{const{fieldNames:t=zh}=e,n=$.toArr(e.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[t.value]===l);s=(c==null?void 0:c[t.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[t.label]:l,o>c+1&&" / "]},c))})},Kl=$.connect(Vh,$.mapProps(e=>B({},e)),$.mapReadPretty(e=>{const t=$.useFieldSchema();return h.useCollectionManager().getCollectionField(t["x-collection-field"]).interface==="chinaRegion"?f.jsx(Zh,B({},e)):f.jsx(h.AssociationField.ReadPretty,B({},e))})),jh=i.createContext(null),Wl=()=>i.useContext(jh),Kh=h.css`
|
|
311
311
|
padding: 0 var(--tb-spacing);
|
|
312
312
|
& > .tb-action-bar {
|
|
313
313
|
padding: unset !important;
|
|
314
314
|
background: unset !important;
|
|
315
315
|
}
|
|
316
|
-
`,
|
|
316
|
+
`,Wh=()=>({className:Kh}),Hh={xs:1,sm:1,md:1,lg:1,xl:1,xxl:1},Uh=()=>({columnCount:Wl()?Hh:null,pagination:{simple:!0}}),Yh=()=>{const e=ie.useNavigate();return window.location.pathname.split("/")[1]==="mobile"?f.jsx(_f,{status:"empty",title:"Sorry, the page you visited does not exist.",description:f.jsx(st,{onClick:()=>e("/mobile",{replace:!0}),color:"primary",children:"Back Home"}),className:h.css`
|
|
317
317
|
.adm-error-block-image {
|
|
318
318
|
height: 30vh;
|
|
319
319
|
}
|
|
@@ -328,13 +328,13 @@
|
|
|
328
328
|
height: 3.5vh;
|
|
329
329
|
font-size: 50px;
|
|
330
330
|
}
|
|
331
|
-
`}):f.jsx(h.AppNotFound,{})},Ul=()=>window.JsBridge,qh=(e,t)=>Ul().invoke(e,t),Xh=()=>!!Ul(),Yl={onBackPressed:()=>{history.length===1?qh({action:"moveTaskToBack"}):history.back()}};Object.keys(Yl).forEach(e=>{window[e]=Yl[e]});const Gl=i.memo(e=>{const t=ie.useLocation(),n=ie.useNavigate();return i.useEffect(()=>{Xh()&&t.pathname==="/admin"&&n("/mobile",{replace:!0})},[t.pathname,n]),f.jsx(f.Fragment,{children:e.children})});Gl.displayName="MobileClientProvider";const Qh=()=>{const e=ie.useNavigate(),{token:t}=h.useToken(),{t:n}=le();return f.jsx(de.Tooltip,{title:n("Mobile UI"),children:f.jsx(de.Button,{icon:f.jsx(Ke.MobileOutlined,{style:{color:t.colorTextHeaderMenu}}),title:n("Mobile UI"),onClick:()=>{e("/mobile")}})})},Jh=e=>f.jsx(h.PinnedPluginListProvider,{items:{me:{order:210,component:"MobileLink",pin:!0,isPublic:!0,belongTo:"pinnedmenu"}},children:f.jsx(h.SchemaComponentOptions,{components:{MobileLink:Qh},children:e.children})}),ql=()=>{const e=$.useFieldSchema(),{t}=We.useTranslation(),{duplicateData:n}=h.useFormBlockContext(),o=h.useCollectionManager();if(n)return n;const{items:r=[],display:s=!0}=e2(e);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){Se.error(d),c.fields=[]}});const a=[{key:"none",title:t("None")}].concat(r.map((c,u)=>ae(B({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)}},Rh=({style:e={},templateKey:t="none",collection:n})=>{const o=$.useForm(),{templates:r,enabled:s,defaultTemplate:a}=ql(),l=h.useCollectionManager(),c=h.compatibleDataId(r),u=t,[d,m]=i.useState(null),g=h.useAPIClient();We.useTranslation(),i.useEffect(()=>{s&&a&&(o.__template=!0,a.key==="duplicate"&&p(a.dataId,a))},[]),i.useEffect(()=>{c!=null&&c.some(b=>b.key===u)||v("none")},[c]);const v=i.useCallback(b=>me(this,null,function*(){m(null),o==null||o.reset()}),[]),p=i.useCallback((b,C)=>me(this,null,function*(){const w=ae(B({},C),{dataId:b});m(C),t2(g,w).then(x=>(o&&x&&(o.reset(),o.__template=!0,Se.forEach(x,(S,k)=>{var I;S&&(o.values[k]=S,(I=o==null?void 0:o.setInitialValuesIn)==null||I.call(o,k,S))})),x)).catch(x=>{console.error(x)})}),[]);if(!s)return null;const y=c==null?void 0:c.find(b=>b.key===u);return y&&n&&(y.collection=n),u!=="none"&&y&&f.jsx(h.RemoteSelect,{fieldNames:{label:y==null?void 0:y.titleField,value:"id"},target:y==null?void 0:y.collection,value:d,objectValue:!0,service:{resource:y==null?void 0:y.collection,params:{filter:y==null?void 0:y.dataScope}},onChange:b=>p(b==null?void 0:b.id,B(B({},b),y)),targetField:l.getCollectionField(`${y==null?void 0:y.collection}.${y.titleField}`)})};function e2(e){const t=h.findFormBlock(e);return t?Ae.cloneDeep(t["x-data-templates"])||{}:{}}function t2(e,t,n){return me(this,null,function*(){if(!(t.fields.length===0||!t.dataId))return e.resource(t.collection).get({filterByTk:t.dataId,fields:t.fields,isTemplate:!0}).then(o=>{var r;return(r=o.data)==null?void 0:r.data})})}const n2=new h.SchemaSettings({name:"fieldSettings:component:DataSelect",items:[{name:"templateSelect",type:"select",useComponentProps(){var a;const{templates:e}=ql(),t=h.compatibleDataId(e),{t:n}=le(),o=$.useField(),r=$.useFieldSchema(),{dn:s}=h.useDesignable();return{title:n("Template Select"),value:((a=o.componentProps)==null?void 0:a.templateKey)||"none",fieldNames:{label:"title",value:"key"},options:t,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 e=h.useCollectionManager(),t=h.useCompile(),n=e.getCollections().map(c=>({label:t(c.title),value:c.name})),{t:o}=le(),r=$.useField(),s=$.useFieldSchema(),{dn:a}=h.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 o2 extends h.Plugin{load(){return me(this,null,function*(){this.app.addComponents({DataSelect:Rh}),this.app.schemaSettingsManager.add(n2);const t={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",t.name,t),this.app.schemaInitializerManager.addItem("details:configureFields",t.name,t)})}}const r2="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",s2="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",i2="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 a2=e=>decodeURI(e).replace("data:image/svg+xml,","");const xs=e=>()=>f.jsx("div",{dangerouslySetInnerHTML:{__html:a2(e)}}),l2=e=>f.jsx(h.Icon,B({component:xs(r2)},e)),c2=e=>f.jsx(h.Icon,B({component:xs(s2)},e)),u2=e=>f.jsx(h.Icon,B({component:xs(i2)},e));h.Icon.register({"notice-block":l2,"swiper-block":c2,"tab-search":u2});const d2=e=>f.jsx(h.MobileProvider,{children:f.jsx(h.SchemaComponentOptions,{components:{MMenuBlockInitializer:wc,MSettingsBlockInitializer:$m,MContainer:fs,MMenu:us,MTabBar:ms,MPage:hs,MHeader:_l,MSettings:Pl,SwiperBlockInitializer:Rm,SwiperBlock:Jm,SwiperPage:Nl,TabSearch:nh,TabSearchProvider:_h,TabSearchBlockInitializer:Ch,TabSearchFieldItem:ph,TabSearchFieldMItem:hh,TabSearchCollapsibleInputItem:lh,TabSearchCollapsibleInputMItem:mh,TabSearchFieldSchemaInitializerGadget:$h,ImageSearchView:zm,ImageSearchInitializer:Bm,ImageSearchProvider:Vm,ImageSearchItemIntializer:jm,ImageSearchItemToolbar:Wm,ImageSearchItemView:Hm,MInput:Nt,MCheckbox:bs,MDatePicker:Zl,MRadio:ys,MImageUploader:Nh,MCascader:Wl,MSelect:Cs,Input:Nt,"Input.TextArea":Nt.TextArea,"Radio.Group":ys.Group,"Checkbox.Group":bs.Group,DatePicker:Zl,Select:Cs,AlternativeAssociationSelect:Cs,Cascader:Wl},scope:{useGridCardBlockItemProps:Hh,useGridCardBlockProps:Yh,useSwiperBlockProps:th,usePropsOptionalImageSearchItemField:Gm,usePropsRelatedImageSearchItemField:Xm,useTabSearchFieldItemProps:gh,useTabSearchFieldItemRelatedProps:bh},children:e.children})}),f2=()=>{const{t:e}=le(),t=h.useApp(),n=()=>{const o=window.location,r=o.hash.slice(o.hash.indexOf("/"));window.open(t.getRouteUrl(r))};return f.jsx("div",{className:h.css`
|
|
331
|
+
`}):f.jsx(h.AppNotFound,{})},Hl=()=>window.JsBridge,Gh=(e,t)=>Hl().invoke(e,t),qh=()=>!!Hl(),Ul={onBackPressed:()=>{history.length===1?Gh({action:"moveTaskToBack"}):history.back()}};Object.keys(Ul).forEach(e=>{window[e]=Ul[e]});const Yl=i.memo(e=>{const t=ie.useLocation(),n=ie.useNavigate();return i.useEffect(()=>{qh()&&t.pathname==="/admin"&&n("/mobile",{replace:!0})},[t.pathname,n]),f.jsx(f.Fragment,{children:e.children})});Yl.displayName="MobileClientProvider";const Xh=()=>{const e=ie.useNavigate(),{token:t}=h.useToken(),{t:n}=le();return f.jsx(de.Tooltip,{title:n("Mobile UI"),children:f.jsx(de.Button,{icon:f.jsx(Ke.MobileOutlined,{style:{color:t.colorTextHeaderMenu}}),title:n("Mobile UI"),onClick:()=>{e("/mobile")}})})},Qh=e=>f.jsx(h.PinnedPluginListProvider,{items:{me:{order:210,component:"MobileLink",pin:!0,isPublic:!0,belongTo:"pinnedmenu"}},children:f.jsx(h.SchemaComponentOptions,{components:{MobileLink:Xh},children:e.children})}),Gl=()=>{const e=$.useFieldSchema(),{t}=We.useTranslation(),{duplicateData:n}=h.useFormBlockContext(),o=h.useCollectionManager();if(n)return n;const{items:r=[],display:s=!0}=Rh(e);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){xe.error(d),c.fields=[]}});const a=[{key:"none",title:t("None")}].concat(r.map((c,u)=>ae(B({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)}},Jh=({style:e={},templateKey:t="none",collection:n})=>{const o=$.useForm(),{templates:r,enabled:s,defaultTemplate:a}=Gl(),l=h.useCollectionManager(),c=h.compatibleDataId(r),u=t,[d,m]=i.useState(null),g=h.useAPIClient();We.useTranslation(),i.useEffect(()=>{s&&a&&(o.__template=!0,a.key==="duplicate"&&p(a.dataId,a))},[]),i.useEffect(()=>{c!=null&&c.some(b=>b.key===u)||v("none")},[c]);const v=i.useCallback(b=>me(this,null,function*(){m(null),o==null||o.reset()}),[]),p=i.useCallback((b,C)=>me(this,null,function*(){const w=ae(B({},C),{dataId:b});m(C),e2(g,w).then(x=>(o&&x&&(o.reset(),o.__template=!0,xe.forEach(x,(S,k)=>{var I;S&&(o.values[k]=S,(I=o==null?void 0:o.setInitialValuesIn)==null||I.call(o,k,S))})),x)).catch(x=>{console.error(x)})}),[]);if(!s)return null;const y=c==null?void 0:c.find(b=>b.key===u);return y&&n&&(y.collection=n),u!=="none"&&y&&f.jsx(h.RemoteSelect,{fieldNames:{label:y==null?void 0:y.titleField,value:"id"},target:y==null?void 0:y.collection,value:d,objectValue:!0,service:{resource:y==null?void 0:y.collection,params:{filter:y==null?void 0:y.dataScope}},onChange:b=>p(b==null?void 0:b.id,B(B({},b),y)),targetField:l.getCollectionField(`${y==null?void 0:y.collection}.${y.titleField}`)})};function Rh(e){const t=h.findFormBlock(e);return t?Ae.cloneDeep(t["x-data-templates"])||{}:{}}function e2(e,t,n){return me(this,null,function*(){if(!(t.fields.length===0||!t.dataId))return e.resource(t.collection).get({filterByTk:t.dataId,fields:t.fields,isTemplate:!0}).then(o=>{var r;return(r=o.data)==null?void 0:r.data})})}const t2=new h.SchemaSettings({name:"fieldSettings:component:DataSelect",items:[{name:"templateSelect",type:"select",useComponentProps(){var a;const{templates:e}=Gl(),t=h.compatibleDataId(e),{t:n}=le(),o=$.useField(),r=$.useFieldSchema(),{dn:s}=h.useDesignable();return{title:n("Template Select"),value:((a=o.componentProps)==null?void 0:a.templateKey)||"none",fieldNames:{label:"title",value:"key"},options:t,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 e=h.useCollectionManager(),t=h.useCompile(),n=e.getCollections().map(c=>({label:t(c.title),value:c.name})),{t:o}=le(),r=$.useField(),s=$.useFieldSchema(),{dn:a}=h.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 n2 extends h.Plugin{load(){return me(this,null,function*(){this.app.addComponents({DataSelect:Jh}),this.app.schemaSettingsManager.add(t2);const t={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",t.name,t),this.app.schemaInitializerManager.addItem("details:configureFields",t.name,t)})}}const o2="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",r2="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",s2="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 i2=e=>decodeURI(e).replace("data:image/svg+xml,","");const xs=e=>()=>f.jsx("div",{dangerouslySetInnerHTML:{__html:i2(e)}}),a2=e=>f.jsx(h.Icon,B({component:xs(o2)},e)),l2=e=>f.jsx(h.Icon,B({component:xs(r2)},e)),c2=e=>f.jsx(h.Icon,B({component:xs(s2)},e));h.Icon.register({"notice-block":a2,"swiper-block":l2,"tab-search":c2});const u2=e=>f.jsx(h.MobileProvider,{children:f.jsx(h.SchemaComponentOptions,{components:{MMenuBlockInitializer:Sc,MSettingsBlockInitializer:Im,MContainer:fs,MMenu:us,MTabBar:ms,MPage:hs,MHeader:$l,MSettings:_l,SwiperBlockInitializer:Jm,SwiperBlock:Qm,SwiperPage:Fl,TabSearch:th,TabSearchProvider:$h,TabSearchBlockInitializer:yh,TabSearchFieldItem:hh,TabSearchFieldMItem:mh,TabSearchCollapsibleInputItem:ah,TabSearchCollapsibleInputMItem:fh,TabSearchFieldSchemaInitializerGadget:Ih,ImageSearchView:Vm,ImageSearchInitializer:Lm,ImageSearchProvider:Bm,ImageSearchItemIntializer:Zm,ImageSearchItemToolbar:Km,ImageSearchItemView:Wm,MInput:Nt,MCheckbox:bs,MDatePicker:zl,MRadio:ys,MImageUploader:Fh,MCascader:Kl,MSelect:Cs,Input:Nt,"Input.TextArea":Nt.TextArea,"Radio.Group":ys.Group,"Checkbox.Group":bs.Group,DatePicker:zl,Select:Cs,AlternativeAssociationSelect:Cs,Cascader:Kl},scope:{useGridCardBlockItemProps:Wh,useGridCardBlockProps:Uh,useSwiperBlockProps:eh,usePropsOptionalImageSearchItemField:Ym,usePropsRelatedImageSearchItemField:qm,useTabSearchFieldItemProps:ph,useTabSearchFieldItemRelatedProps:vh},children:e.children})}),d2=()=>{const{t:e}=le(),t=h.useApp(),n=()=>{const o=window.location,r=o.hash.slice(o.hash.indexOf("/"));window.open(t.getRouteUrl(r))};return f.jsx("div",{className:h.css`
|
|
332
332
|
position: absolute;
|
|
333
333
|
top: -40px;
|
|
334
334
|
right: 0;
|
|
335
|
-
`,children:f.jsx(de.Button,{type:"dashed",onClick:n,icon:f.jsx(Ke.LinkOutlined,{}),children:e("Preview")})})},
|
|
335
|
+
`,children:f.jsx(de.Button,{type:"dashed",onClick:n,icon:f.jsx(Ke.LinkOutlined,{}),children:e("Preview")})})},f2=h.css`
|
|
336
336
|
--tb-spacing: 14px;
|
|
337
|
-
`,
|
|
337
|
+
`,m2=h.css``,h2=h.css`
|
|
338
338
|
--tb-designer-top: 2px;
|
|
339
339
|
--tb-designer-right: 2px;
|
|
340
340
|
.tb-sortable-designer:hover {
|
|
@@ -369,13 +369,13 @@
|
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
`,
|
|
372
|
+
`,ql={getContainer:".tb-mobile-application",width:"90%",style:{position:"absolute"}},p2=ae(B({},ql),{style:{maxWidth:"calc(100% - 16px)"},maskStyle:{position:"absolute"},wrapClassName:h.css`
|
|
373
373
|
position: absolute !important;
|
|
374
|
-
`}),
|
|
374
|
+
`}),g2=()=>"default-admin-mobile",Xl=e=>{const t=g2(),n=ie.useParams(),o=Wl(),r=i.useMemo(()=>o?i.Fragment:h.AdminProvider,[o]);return h.useViewport(),f.jsx(r,{children:f.jsxs(u2,{children:[f.jsx(d2,{}),f.jsx(h.ActionContextProvider,{modalProps:p2,drawerProps:ql,children:f.jsxs("div",{className:h.cx("tb-mobile-application",h2,f2,m2,h.css`
|
|
375
375
|
display: flex;
|
|
376
376
|
flex-direction: column;
|
|
377
377
|
width: 100%;
|
|
378
378
|
height: 100%;
|
|
379
379
|
position: relative;
|
|
380
380
|
overflow: hidden;
|
|
381
|
-
`),children:[n.name&&!n.name.startsWith("tab_")?f.jsx(ie.Outlet,{}):f.jsx(h.RemoteSchemaComponent,{uid:t,children:e.children},t),f.jsx("div",{id:"tb-position-container"})]})})]})})};class
|
|
381
|
+
`),children:[n.name&&!n.name.startsWith("tab_")?f.jsx(ie.Outlet,{}):f.jsx(h.RemoteSchemaComponent,{uid:t,children:e.children},t),f.jsx("div",{id:"tb-position-container"})]})})]})})};class Ql extends h.Plugin{afterAdd(){return me(this,null,function*(){this.pm.add(n2,{name:"plugin-data-select"}),this.app.pm.add(Cc,{name:"SearchAndJump"}),this.app.pm.add(hc,{name:"Designable"}),this.app.pm.add(dc,{name:"calculator"})})}load(){return me(this,null,function*(){this.setMobileRouter(),this.addRoutes(),this.app.use(Yl),this.app.use(Qh),this.app.schemaInitializerManager.add(xc),this.app.schemaInitializerManager.add(Tm),this.app.schemaInitializerManager.add(wh),this.app.schemaSettingsManager.add(Rm),this.app.schemaSettingsManager.add(jm),this.app.schemaSettingsManager.add(_h)})}setMobileRouter(){const t=h.createRouterManager({type:"hash"},this.app);this.router.add("not-found",{path:"*",Component:Yh}),t.add("root",{path:"/",element:f.jsx(ie.Navigate,{replace:!0,to:"/mobile"})}),t.add("mobile",{path:"/mobile",element:f.jsx(Xl,{})}),t.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"}),this.mobileRouter=t}getMobileRouterComponent(){return this.mobileRouter.getRouterComponent()}addRoutes(){this.app.router.add("mobile",{path:"/mobile",element:f.jsx(Xl,{})}),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:Fl})}}R.ModuleWeb=Ql,R.default=Ql,Object.defineProperties(R,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|