@nocobase/plugin-mobile 1.4.0-alpha.7 → 1.4.0-alpha.9
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/index.js
CHANGED
|
@@ -7,339 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
(function(){"use strict";try{if(typeof document!="undefined"){var a=document.createElement("style");a.id="@nocobase/plugin-mobile",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-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-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-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-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-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-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-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}')),document.head.appendChild(a)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
11
|
-
(function(x,d){typeof exports=="object"&&typeof module!="undefined"?d(exports,require("react/jsx-runtime"),require("@nocobase/client"),require("react-router-dom"),require("react-i18next"),require("react"),require("@formily/react"),require("antd"),require("ahooks"),require("react-dom"),require("lodash"),require("antd-style"),require("@formily/shared"),require("@emotion/css"),require("@ant-design/icons"),require("@nocobase/utils/client"),require("@formily/antd-v5"),require("@nocobase/plugin-acl/client"),require("@formily/core")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@nocobase/client","react-router-dom","react-i18next","react","@formily/react","antd","ahooks","react-dom","lodash","antd-style","@formily/shared","@emotion/css","@ant-design/icons","@nocobase/utils/client","@formily/antd-v5","@nocobase/plugin-acl/client","@formily/core"],d):(x=typeof globalThis!="undefined"?globalThis:x||self,d(x["@nocobase/plugin-mobile"]={},x.jsxRuntime,x["@nocobase/client"],x["react-router-dom"],x["react-i18next"],x.react,x["@formily/react"],x.antd,x.ahooks,x["react-dom"],x.lodash,x["antd-style"],x["@formily/shared"],x["@emotion/css"],x["@ant-design/icons"],x["@nocobase/utils"],x["@formily/antd-v5"],x["@nocobase/plugin-acl"],x["@formily/core"]))})(this,function(x,d,g,V,Je,a,D,F,X,$e,Ue,lt,ei,un,Lr,Al,Ol,Dr,Zr){"use strict";var F0=Object.defineProperty,B0=Object.defineProperties;var z0=Object.getOwnPropertyDescriptors;var dn=Object.getOwnPropertySymbols;var _l=Object.prototype.hasOwnProperty,Il=Object.prototype.propertyIsEnumerable;var zr=(x,d,g)=>d in x?F0(x,d,{enumerable:!0,configurable:!0,writable:!0,value:g}):x[d]=g,B=(x,d)=>{for(var g in d||(d={}))_l.call(d,g)&&zr(x,g,d[g]);if(dn)for(var g of dn(d))Il.call(d,g)&&zr(x,g,d[g]);return x},R=(x,d)=>B0(x,z0(d));var Rt=(x,d)=>{var g={};for(var V in x)_l.call(x,V)&&d.indexOf(V)<0&&(g[V]=x[V]);if(x!=null&&dn)for(var V of dn(x))d.indexOf(V)<0&&Il.call(x,V)&&(g[V]=x[V]);return g};var Nr=(x,d,g)=>(zr(x,typeof d!="symbol"?d+"":d,g),g);var Q=(x,d,g)=>new Promise((V,Je)=>{var a=X=>{try{F(g.next(X))}catch($e){Je($e)}},D=X=>{try{F(g.throw(X))}catch($e){Je($e)}},F=X=>X.done?V(X.value):Promise.resolve(X.value).then(a,D);F((g=g.apply(x,d)).next())});function Fl(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const ee=Fl(a),Vr="@nocobase/plugin-mobile",fn={name:Vr,version:"1.4.0-alpha.7",main:"dist/server/index.js",homepage:"https://docs.nocobase.com/handbook/mobile","homepage.zh-CN":"https://docs-cn.nocobase.com/handbook/mobile",license:"AGPL-3.0",displayName:"Mobile","displayName.zh-CN":"移动端",description:"Provides the ability to configure mobile pages.","description.zh-CN":"提供移动端页面配置的能力。",peerDependencies:{"@nocobase/client":"1.x","@nocobase/plugin-acl":"1.x","@nocobase/server":"1.x","@nocobase/test":"1.x"},devDependencies:{"@ant-design/icons":"5.x","@emotion/css":"11.x","@formily/antd-v5":"1.x","@formily/core":"2.x","@formily/react":"2.x","@formily/shared":"2.x","@types/react":"17.x","@types/react-dom":"17.x",ahooks:"3.x",antd:"5.x","antd-mobile":"^5.38",lodash:"4.x","re-resizable":"6.6.0","react-device-detect":"2.2.3","react-i18next":"11.x"}};function de(){return Je.useTranslation([fn.name,"client"],{nsMode:"fallback"})}function Z(t){return`{{t('${t}', { ns: ['${fn.name}', 'client'], nsMode: 'fallback' })}}`}var Bl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function jr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var M={},hn={exports:{}};(function(t,e){(function(i,n){var r="1.0.38",o="",s="?",l="function",h="undefined",u="object",p="string",y="major",c="model",m="name",f="type",b="vendor",v="version",C="architecture",S="console",w="mobile",k="tablet",P="smarttv",T="wearable",L="embedded",q=500,ne="Amazon",K="Apple",ue="ASUS",$="BlackBerry",Y="Browser",Te="Chrome",Xt="Edge",Ze="Firefox",kt="Google",on="Huawei",st="LG",ze="Microsoft",at="Motorola",Ve="Opera",Xe="Samsung",sn="Sharp",an="Sony",Ir="Xiaomi",Ar="Zebra",Sl="Facebook",kl="Chromium OS",El="Mac OS",I0=function(N,W){var O={};for(var G in N)W[G]&&W[G].length%2===0?O[G]=W[G].concat(N[G]):O[G]=N[G];return O},ln=function(N){for(var W={},O=0;O<N.length;O++)W[N[O].toUpperCase()]=N[O];return W},Cl=function(N,W){return typeof N===p?Jt(W).indexOf(Jt(N))!==-1:!1},Jt=function(N){return N.toLowerCase()},A0=function(N){return typeof N===p?N.replace(/[^\d\.]/g,o).split(".")[0]:n},Or=function(N,W){if(typeof N===p)return N=N.replace(/^\s\s*/,o),typeof W===h?N:N.substring(0,q)},$t=function(N,W){for(var O=0,G,je,Ne,j,I,Le;O<W.length&&!I;){var Br=W[O],Tl=W[O+1];for(G=je=0;G<Br.length&&!I&&Br[G];)if(I=Br[G++].exec(N),I)for(Ne=0;Ne<Tl.length;Ne++)Le=I[++je],j=Tl[Ne],typeof j===u&&j.length>0?j.length===2?typeof j[1]==l?this[j[0]]=j[1].call(this,Le):this[j[0]]=j[1]:j.length===3?typeof j[1]===l&&!(j[1].exec&&j[1].test)?this[j[0]]=Le?j[1].call(this,Le,j[2]):n:this[j[0]]=Le?Le.replace(j[1],j[2]):n:j.length===4&&(this[j[0]]=Le?j[3].call(this,Le.replace(j[1],j[2])):n):this[j]=Le||n;O+=2}},Fr=function(N,W){for(var O in W)if(typeof W[O]===u&&W[O].length>0){for(var G=0;G<W[O].length;G++)if(Cl(W[O][G],N))return O===s?n:O}else if(Cl(W[O],N))return O===s?n:O;return N},O0={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Pl={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ml={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,v],[/opios[\/ ]+([\w\.]+)/i],[v,[m,Ve+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[v,[m,Ve+" GX"]],[/\bopr\/([\w\.]+)/i],[v,[m,Ve]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[m,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[m,v],[/\bddg\/([\w\.]+)/i],[v,[m,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[m,"UC"+Y]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[m,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[m,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[m,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[m,"Smart Lenovo "+Y]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+)/,"$1 Secure "+Y],v],[/\bfocus\/([\w\.]+)/i],[v,[m,Ze+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[m,Ve+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[m,Ve+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[m,"MIUI "+Y]],[/fxios\/([-\w\.]+)/i],[v,[m,Ze]],[/\bqihu|(qi?ho?o?|360)browser/i],[[m,"360 "+Y]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1 "+Y],v],[/samsungbrowser\/([\w\.]+)/i],[v,[m,Xe+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],v],[/metasr[\/ ]?([\d\.]+)/i],[v,[m,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[m,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[m,v],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,Sl],v],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[m,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[m,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[m,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[m,Te+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,Te+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[m,"Android "+Y]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[m,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[v,Fr,O0]],[/(webkit|khtml)\/([\w\.]+)/i],[m,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[m,Ze+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[m,v],[/(cobalt)\/([\w\.]+)/i],[m,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[C,"amd64"]],[/(ia32(?=;))/i],[[C,Jt]],[/((?:i[346]|x)86)[;\)]/i],[[C,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[C,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[C,"armhf"]],[/windows (ce|mobile); ppc;/i],[[C,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[C,/ower/,o,Jt]],[/(sun4\w)[;\)]/i],[[C,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[C,Jt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[b,Xe],[f,k]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[b,Xe],[f,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[b,K],[f,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[b,K],[f,k]],[/(macintosh);/i],[c,[b,K]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[b,sn],[f,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[b,on],[f,k]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[b,on],[f,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[b,Ir],[f,w]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[b,Ir],[f,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[b,"OPPO"],[f,w]],[/\b(opd2\d{3}a?) bui/i],[c,[b,"OPPO"],[f,k]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[b,"Vivo"],[f,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[b,"Realme"],[f,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[b,at],[f,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[b,at],[f,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[b,st],[f,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[b,st],[f,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[b,"Lenovo"],[f,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[b,"Nokia"],[f,w]],[/(pixel c)\b/i],[c,[b,kt],[f,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[b,kt],[f,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[b,an],[f,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[b,an],[f,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[b,"OnePlus"],[f,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[b,ne],[f,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[b,ne],[f,w]],[/(playbook);[-\w\),; ]+(rim)/i],[c,b,[f,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[b,$],[f,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[b,ue],[f,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[b,ue],[f,w]],[/(nexus 9)/i],[c,[b,"HTC"],[f,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[c,/_/g," "],[f,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[b,"Acer"],[f,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[b,"Meizu"],[f,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[b,"Ulefone"],[f,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[b,c,[f,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[b,c,[f,k]],[/(surface duo)/i],[c,[b,ze],[f,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[b,"Fairphone"],[f,w]],[/(u304aa)/i],[c,[b,"AT&T"],[f,w]],[/\bsie-(\w*)/i],[c,[b,"Siemens"],[f,w]],[/\b(rct\w+) b/i],[c,[b,"RCA"],[f,k]],[/\b(venue[\d ]{2,7}) b/i],[c,[b,"Dell"],[f,k]],[/\b(q(?:mv|ta)\w+) b/i],[c,[b,"Verizon"],[f,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[b,"Barnes & Noble"],[f,k]],[/\b(tm\d{3}\w+) b/i],[c,[b,"NuVision"],[f,k]],[/\b(k88) b/i],[c,[b,"ZTE"],[f,k]],[/\b(nx\d{3}j) b/i],[c,[b,"ZTE"],[f,w]],[/\b(gen\d{3}) b.+49h/i],[c,[b,"Swiss"],[f,w]],[/\b(zur\d{3}) b/i],[c,[b,"Swiss"],[f,k]],[/\b((zeki)?tb.*\b) b/i],[c,[b,"Zeki"],[f,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],c,[f,k]],[/\b(ns-?\w{0,9}) b/i],[c,[b,"Insignia"],[f,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[b,"NextBook"],[f,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],c,[f,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],c,[f,w]],[/\b(ph-1) /i],[c,[b,"Essential"],[f,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[b,"Envizen"],[f,k]],[/\b(trio[-\w\. ]+) b/i],[c,[b,"MachSpeed"],[f,k]],[/\btu_(1491) b/i],[c,[b,"Rotor"],[f,k]],[/(shield[\w ]+) b/i],[c,[b,"Nvidia"],[f,k]],[/(sprint) (\w+)/i],[b,c,[f,w]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[b,ze],[f,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[b,Ar],[f,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[b,Ar],[f,w]],[/smart-tv.+(samsung)/i],[b,[f,P]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[b,Xe],[f,P]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,st],[f,P]],[/(apple) ?tv/i],[b,[c,K+" TV"],[f,P]],[/crkey/i],[[c,Te+"cast"],[b,kt],[f,P]],[/droid.+aft(\w+)( bui|\))/i],[c,[b,ne],[f,P]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[b,sn],[f,P]],[/(bravia[\w ]+)( bui|\))/i],[c,[b,an],[f,P]],[/(mitv-\w{5}) bui/i],[c,[b,Ir],[f,P]],[/Hbbtv.*(technisat) (.*);/i],[b,c,[f,P]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,Or],[c,Or],[f,P]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,P]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,c,[f,S]],[/droid.+; (shield) bui/i],[c,[b,"Nvidia"],[f,S]],[/(playstation [345portablevi]+)/i],[c,[b,an],[f,S]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[b,ze],[f,S]],[/((pebble))app/i],[b,c,[f,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[b,K],[f,T]],[/droid.+; (glass) \d/i],[c,[b,kt],[f,T]],[/droid.+; (wt63?0{2,3})\)/i],[c,[b,Ar],[f,T]],[/(quest( \d| pro)?)/i],[c,[b,Sl],[f,T]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[f,L]],[/(aeobc)\b/i],[c,[b,ne],[f,L]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[f,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,w]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[m,Xt+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[m,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[m,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[m,[v,Fr,Pl]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,Fr,Pl],[m,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,El],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,m],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[m,v],[/\(bb(10);/i],[v,[m,$]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[m,Ze+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[m,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[m,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[m,Te+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[m,kl],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[m,v],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[m,v]]},_e=function(N,W){if(typeof N===u&&(W=N,N=n),!(this instanceof _e))return new _e(N,W).getResult();var O=typeof i!==h&&i.navigator?i.navigator:n,G=N||(O&&O.userAgent?O.userAgent:o),je=O&&O.userAgentData?O.userAgentData:n,Ne=W?I0(Ml,W):Ml,j=O&&O.userAgent==G;return this.getBrowser=function(){var I={};return I[m]=n,I[v]=n,$t.call(I,G,Ne.browser),I[y]=A0(I[v]),j&&O&&O.brave&&typeof O.brave.isBrave==l&&(I[m]="Brave"),I},this.getCPU=function(){var I={};return I[C]=n,$t.call(I,G,Ne.cpu),I},this.getDevice=function(){var I={};return I[b]=n,I[c]=n,I[f]=n,$t.call(I,G,Ne.device),j&&!I[f]&&je&&je.mobile&&(I[f]=w),j&&I[c]=="Macintosh"&&O&&typeof O.standalone!==h&&O.maxTouchPoints&&O.maxTouchPoints>2&&(I[c]="iPad",I[f]=k),I},this.getEngine=function(){var I={};return I[m]=n,I[v]=n,$t.call(I,G,Ne.engine),I},this.getOS=function(){var I={};return I[m]=n,I[v]=n,$t.call(I,G,Ne.os),j&&!I[m]&&je&&je.platform&&je.platform!="Unknown"&&(I[m]=je.platform.replace(/chrome os/i,kl).replace(/macos/i,El)),I},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return G},this.setUA=function(I){return G=typeof I===p&&I.length>q?Or(I,q):I,this},this.setUA(G),this};_e.VERSION=r,_e.BROWSER=ln([m,v,y]),_e.CPU=ln([C]),_e.DEVICE=ln([c,b,f,S,w,P,k,T,L]),_e.ENGINE=_e.OS=ln([m,v]),t.exports&&(e=t.exports=_e),e.UAParser=_e;var Et=typeof i!==h&&(i.jQuery||i.Zepto);if(Et&&!Et.ua){var cn=new _e;Et.ua=cn.getResult(),Et.ua.get=function(){return cn.getUA()},Et.ua.set=function(N){cn.setUA(N);var W=cn.getResult();for(var O in W)Et.ua[O]=W[O]}}})(typeof window=="object"?window:Bl)})(hn,hn.exports);var zl=hn.exports;Object.defineProperty(M,"__esModule",{value:!0});function Nl(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var oe=a,H=Nl(oe),Ur=zl,We=new Ur,se=We.getBrowser(),Ll=We.getCPU(),be=We.getDevice(),pn=We.getEngine(),qe=We.getOS(),Ct=We.getUA(),Wr=function(e){return We.setUA(e)},Pt=function(e){if(!e){console.error("No userAgent string was provided");return}var i=new Ur(e);return{UA:i,browser:i.getBrowser(),cpu:i.getCPU(),device:i.getDevice(),engine:i.getEngine(),os:i.getOS(),ua:i.getUA(),setUserAgent:function(r){return i.setUA(r)}}},qr=Object.freeze({ClientUAInstance:We,browser:se,cpu:Ll,device:be,engine:pn,os:qe,ua:Ct,setUa:Wr,parseUserAgent:Pt});function Hr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,n)}return i}function Dl(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?Hr(Object(i),!0).forEach(function(n){Ul(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Hr(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function Mt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mt=function(e){return typeof e}:Mt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(t)}function Zl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vl(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function jl(t,e,i){return e&&Vl(t.prototype,e),t}function Ul(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function mn(){return mn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},mn.apply(this,arguments)}function Wl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gn(t,e)}function bn(t){return bn=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},bn(t)}function gn(t,e){return gn=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},gn(t,e)}function ql(t,e){if(t==null)return{};var i={},n=Object.keys(t),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(i[r]=t[r]);return i}function ye(t,e){if(t==null)return{};var i=ql(t,e),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ti(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hl(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ti(t)}function Kl(t,e){return Gl(t)||Yl(t,e)||Ql(t,e)||Xl()}function Gl(t){if(Array.isArray(t))return t}function Yl(t,e){var i=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var n=[],r=!0,o=!1,s,l;try{for(i=i.call(t);!(r=(s=i.next()).done)&&(n.push(s.value),!(e&&n.length===e));r=!0);}catch(h){o=!0,l=h}finally{try{!r&&i.return!=null&&i.return()}finally{if(o)throw l}}return n}}function Ql(t,e){if(t){if(typeof t=="string")return Kr(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Kr(t,e)}}function Kr(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Xl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ae={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},fe={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},ct={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},Jl={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},$l=function(e){switch(e){case ae.Mobile:return{isMobile:!0};case ae.Tablet:return{isTablet:!0};case ae.SmartTv:return{isSmartTV:!0};case ae.Console:return{isConsole:!0};case ae.Wearable:return{isWearable:!0};case ae.Browser:return{isBrowser:!0};case ae.Embedded:return{isEmbedded:!0};default:return Jl}},Rl=function(e){return Wr(e)},_=function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return e||i},vn=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},yn=function(e){var i=vn();return i&&i.platform&&(i.platform.indexOf(e)!==-1||i.platform==="MacIntel"&&i.maxTouchPoints>1&&!window.MSStream)},ec=function(e,i,n,r,o){return{isBrowser:e,browserMajorVersion:_(i.major),browserFullVersion:_(i.version),browserName:_(i.name),engineName:_(n.name),engineVersion:_(n.version),osName:_(r.name),osVersion:_(r.version),userAgent:_(o)}},Gr=function(e,i,n,r){return Dl({},e,{vendor:_(i.vendor),model:_(i.model),os:_(n.name),osVersion:_(n.version),ua:_(r)})},tc=function(e,i,n,r){return{isSmartTV:e,engineName:_(i.name),engineVersion:_(i.version),osName:_(n.name),osVersion:_(n.version),userAgent:_(r)}},ic=function(e,i,n,r){return{isConsole:e,engineName:_(i.name),engineVersion:_(i.version),osName:_(n.name),osVersion:_(n.version),userAgent:_(r)}},nc=function(e,i,n,r){return{isWearable:e,engineName:_(i.name),engineVersion:_(i.version),osName:_(n.name),osVersion:_(n.version),userAgent:_(r)}},rc=function(e,i,n,r,o){return{isEmbedded:e,vendor:_(i.vendor),model:_(i.model),engineName:_(n.name),engineVersion:_(n.version),osName:_(r.name),osVersion:_(r.version),userAgent:_(o)}};function oc(t){var e=t?Pt(t):qr,i=e.device,n=e.browser,r=e.engine,o=e.os,s=e.ua,l=$l(i.type),h=l.isBrowser,u=l.isMobile,p=l.isTablet,y=l.isSmartTV,c=l.isConsole,m=l.isWearable,f=l.isEmbedded;if(h)return ec(h,n,r,o,s);if(y)return tc(y,r,o,s);if(c)return ic(c,r,o,s);if(u||p)return Gr(l,i,o,s);if(m)return nc(m,r,o,s);if(f)return rc(f,i,r,o,s)}var Yr=function(e){var i=e.type;return i===ae.Mobile},Qr=function(e){var i=e.type;return i===ae.Tablet},Xr=function(e){var i=e.type;return i===ae.Mobile||i===ae.Tablet},Jr=function(e){var i=e.type;return i===ae.SmartTv},ii=function(e){var i=e.type;return i===ae.Browser},$r=function(e){var i=e.type;return i===ae.Wearable},Rr=function(e){var i=e.type;return i===ae.Console},eo=function(e){var i=e.type;return i===ae.Embedded},to=function(e){var i=e.vendor;return _(i)},io=function(e){var i=e.model;return _(i)},no=function(e){var i=e.type;return _(i,"browser")},ro=function(e){var i=e.name;return i===ct.Android},oo=function(e){var i=e.name;return i===ct.Windows},so=function(e){var i=e.name;return i===ct.MAC_OS},ao=function(e){var i=e.name;return i===ct.WindowsPhone},lo=function(e){var i=e.name;return i===ct.IOS},co=function(e){var i=e.version;return _(i)},uo=function(e){var i=e.name;return _(i)},fo=function(e){var i=e.name;return i===fe.Chrome},ho=function(e){var i=e.name;return i===fe.Firefox},po=function(e){var i=e.name;return i===fe.Chromium},ni=function(e){var i=e.name;return i===fe.Edge},mo=function(e){var i=e.name;return i===fe.Yandex},bo=function(e){var i=e.name;return i===fe.Safari||i===fe.MobileSafari},go=function(e){var i=e.name;return i===fe.MobileSafari},vo=function(e){var i=e.name;return i===fe.Opera},yo=function(e){var i=e.name;return i===fe.InternetExplorer||i===fe.Ie},wo=function(e){var i=e.name;return i===fe.MIUI},xo=function(e){var i=e.name;return i===fe.SamsungBrowser},So=function(e){var i=e.version;return _(i)},ko=function(e){var i=e.major;return _(i)},Eo=function(e){var i=e.name;return _(i)},Co=function(e){var i=e.name;return _(i)},Po=function(e){var i=e.version;return _(i)},Mo=function(){var e=vn(),i=e&&e.userAgent&&e.userAgent.toLowerCase();return typeof i=="string"?/electron/.test(i):!1},dt=function(e){return typeof e=="string"&&e.indexOf("Edg/")!==-1},To=function(){var e=vn();return e&&(/iPad|iPhone|iPod/.test(e.platform)||e.platform==="MacIntel"&&e.maxTouchPoints>1)&&!window.MSStream},Ie=function(){return yn("iPad")},_o=function(){return yn("iPhone")},Io=function(){return yn("iPod")},Ao=function(e){return _(e)};function Oo(t){var e=t||qr,i=e.device,n=e.browser,r=e.os,o=e.engine,s=e.ua;return{isSmartTV:Jr(i),isConsole:Rr(i),isWearable:$r(i),isEmbedded:eo(i),isMobileSafari:go(n)||Ie(),isChromium:po(n),isMobile:Xr(i)||Ie(),isMobileOnly:Yr(i),isTablet:Qr(i)||Ie(),isBrowser:ii(i),isDesktop:ii(i),isAndroid:ro(r),isWinPhone:ao(r),isIOS:lo(r)||Ie(),isChrome:fo(n),isFirefox:ho(n),isSafari:bo(n),isOpera:vo(n),isIE:yo(n),osVersion:co(r),osName:uo(r),fullBrowserVersion:So(n),browserVersion:ko(n),browserName:Eo(n),mobileVendor:to(i),mobileModel:io(i),engineName:Co(o),engineVersion:Po(o),getUA:Ao(s),isEdge:ni(n)||dt(s),isYandex:mo(n),deviceType:no(i),isIOS13:To(),isIPad13:Ie(),isIPhone13:_o(),isIPod13:Io(),isElectron:Mo(),isEdgeChromium:dt(s),isLegacyEdge:ni(n)&&!dt(s),isWindows:oo(r),isMacOs:so(r),isMIUI:wo(n),isSamsungBrowser:xo(n)}}var Fo=Jr(be),Bo=Rr(be),zo=$r(be),sc=eo(be),ac=go(se)||Ie(),lc=po(se),ri=Xr(be)||Ie(),No=Yr(be),Lo=Qr(be)||Ie(),Do=ii(be),cc=ii(be),Zo=ro(qe),Vo=ao(qe),jo=lo(qe)||Ie(),dc=fo(se),uc=ho(se),fc=bo(se),hc=vo(se),Uo=yo(se),pc=co(qe),mc=uo(qe),bc=So(se),gc=ko(se),vc=Eo(se),yc=to(be),wc=io(be),xc=Co(pn),Sc=Po(pn),kc=Ao(Ct),Ec=ni(se)||dt(Ct),Cc=mo(se),Pc=no(be),Mc=To(),Tc=Ie(),_c=_o(),Ic=Io(),Ac=Mo(),Oc=dt(Ct),Fc=ni(se)&&!dt(Ct),Bc=oo(qe),zc=so(qe),Nc=wo(se),Lc=xo(se),Dc=function(e){if(!e||typeof e!="string"){console.error("No valid user agent string was provided");return}var i=Pt(e),n=i.device,r=i.browser,o=i.os,s=i.engine,l=i.ua;return Oo({device:n,browser:r,os:o,engine:s,ua:l})},Zc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Zo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Vc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Do?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},jc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Uo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Uc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return jo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Wc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return ri?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},qc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Lo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Hc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Vo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Kc=function(e){var i=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=ye(e,["renderWithFragment","children","viewClassName","style"]);return No?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Gc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Fo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Yc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return Bo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Qc=function(e){var i=e.renderWithFragment,n=e.children,r=ye(e,["renderWithFragment","children"]);return zo?i?H.createElement(oe.Fragment,null,n):H.createElement("div",r,n):null},Xc=function(e){var i=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var r=e.condition,o=ye(e,["renderWithFragment","children","viewClassName","style","condition"]);return r?i?H.createElement(oe.Fragment,null,n):H.createElement("div",o,n):null};function Jc(t){return function(e){Wl(i,e);function i(n){var r;return Zl(this,i),r=Hl(this,bn(i).call(this,n)),r.isEventListenerAdded=!1,r.handleOrientationChange=r.handleOrientationChange.bind(ti(r)),r.onOrientationChange=r.onOrientationChange.bind(ti(r)),r.onPageLoad=r.onPageLoad.bind(ti(r)),r.state={isLandscape:!1,isPortrait:!1},r}return jl(i,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var r=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:r===0,isLandscape:r===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":Mt(window))!==void 0&&ri&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return H.createElement(t,mn({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),i}(H.Component)}function $c(){var t=oe.useState(function(){var o=window.innerWidth>window.innerHeight?90:0;return{isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"}}),e=Kl(t,2),i=e[0],n=e[1],r=oe.useCallback(function(){var o=window.innerWidth>window.innerHeight?90:0,s={isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"};i.orientation!==s.orientation&&n(s)},[i.orientation]);return oe.useEffect(function(){return(typeof window=="undefined"?"undefined":Mt(window))!==void 0&&ri&&(r(),window.addEventListener("load",r,!1),window.addEventListener("resize",r,!1)),function(){window.removeEventListener("resize",r,!1),window.removeEventListener("load",r,!1)}},[r]),i}function Wo(t){var e=t||window.navigator.userAgent;return Pt(e)}function Rc(t){var e=t||window.navigator.userAgent,i=Wo(e),n=Oo(i);return[n,i]}M.AndroidView=Zc,M.BrowserTypes=fe,M.BrowserView=Vc,M.ConsoleView=Yc,M.CustomView=Xc,M.IEView=jc,M.IOSView=Uc,M.MobileOnlyView=Kc,M.MobileView=Wc,M.OsTypes=ct,M.SmartTVView=Gc,M.TabletView=qc,M.WearableView=Qc,M.WinPhoneView=Hc,M.browserName=vc,M.browserVersion=gc,M.deviceDetect=oc,M.deviceType=Pc,M.engineName=xc,M.engineVersion=Sc,M.fullBrowserVersion=bc,M.getSelectorsByUserAgent=Dc,M.getUA=kc,M.isAndroid=Zo,M.isBrowser=Do,M.isChrome=dc,M.isChromium=lc,M.isConsole=Bo;var qo=M.isDesktop=cc;M.isEdge=Ec,M.isEdgeChromium=Oc,M.isElectron=Ac,M.isEmbedded=sc,M.isFirefox=uc,M.isIE=Uo,M.isIOS=jo,M.isIOS13=Mc,M.isIPad13=Tc,M.isIPhone13=_c,M.isIPod13=Ic,M.isLegacyEdge=Fc,M.isMIUI=Nc,M.isMacOs=zc;var ed=M.isMobile=ri;M.isMobileOnly=No,M.isMobileSafari=ac,M.isOpera=hc,M.isSafari=fc,M.isSamsungBrowser=Lc,M.isSmartTV=Fo,M.isTablet=Lo,M.isWearable=zo,M.isWinPhone=Vo,M.isWindows=Bc,M.isYandex=Cc,M.mobileModel=wc,M.mobileVendor=yc,M.osName=mc,M.osVersion=pc,M.parseUserAgent=Pt,M.setUserAgent=Rl,M.useDeviceData=Wo,M.useDeviceSelectors=Rc,M.useMobileOrientation=$c,M.withOrientationChange=Jc;const oi=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);oi&&document.addEventListener("touchstart",()=>{},!0);function td(t,e,i,n){function r(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function l(p){try{u(n.next(p))}catch(y){s(y)}}function h(p){try{u(n.throw(p))}catch(y){s(y)}}function u(p){p.done?o(p.value):r(p.value).then(l,h)}u((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const ge="${label}不是一个有效的${type}",id={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:ge,method:ge,array:ge,object:ge,number:ge,date:ge,boolean:ge,integer:ge,float:ge,regexp:ge,email:ge,url:ge,hex:ge},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 nd(){return id.current}const rd=a.createContext(null);function si(){var t;return(t=a.useContext(rd))!==null&&t!==void 0?t:nd()}function Ho(t,e){const i=t;for(const n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);return i}var Ko={exports:{}};/*!
|
|
13
|
-
Copyright (c) 2018 Jed Watson.
|
|
14
|
-
Licensed under the MIT License (MIT), see
|
|
15
|
-
http://jedwatson.github.io/classnames
|
|
16
|
-
*/(function(t){(function(){var e={}.hasOwnProperty;function i(){for(var o="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(o=r(o,n(l)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return i.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var l in o)e.call(o,l)&&o[l]&&(s=r(s,l));return s}function r(o,s){return s?o?o+" "+s:o+s:o}t.exports?(i.default=i,t.exports=i):window.classNames=i})()})(Ko);var od=Ko.exports;const te=jr(od);function Ce(t,e){const i=Object.assign({},e.props);t.className&&(i.className=te(e.props.className,t.className)),t.style&&(i.style=Object.assign(Object.assign({},i.style),t.style)),t.tabIndex!==void 0&&(i.tabIndex=t.tabIndex);for(const n in t)t.hasOwnProperty(n)&&(n.startsWith("data-")||n.startsWith("aria-"))&&(i[n]=t[n]);return a.cloneElement(e,i)}function He(...t){const e={};return t.forEach(i=>{i&&Object.keys(i).forEach(n=>{i[n]!==void 0&&(e[n]=i[n])})}),e}function sd(t,...e){for(let i=e.length-1;i>=0;i-=1)if(e[i]!==void 0)return e[i];return t}const Go=10;function ad(t,e){return t>e&&t>Go?"horizontal":e>t&&e>Go?"vertical":""}function ld(){const t=a.useRef(0),e=a.useRef(0),i=a.useRef(0),n=a.useRef(0),r=a.useRef(0),o=a.useRef(0),s=a.useRef(""),l=()=>s.current==="vertical",h=()=>s.current==="horizontal",u=()=>{i.current=0,n.current=0,r.current=0,o.current=0,s.current=""};return{move:c=>{const m=c.touches[0];i.current=m.clientX<0?0:m.clientX-t.current,n.current=m.clientY-e.current,r.current=Math.abs(i.current),o.current=Math.abs(n.current),s.current||(s.current=ad(r.current,o.current))},start:c=>{u(),t.current=c.touches[0].clientX,e.current=c.touches[0].clientY},reset:u,startX:t,startY:e,deltaX:i,deltaY:n,offsetX:r,offsetY:o,direction:s,isVertical:l,isHorizontal:h}}const cd=oi?window:void 0,dd=["scroll","auto","overlay"];function ud(t){return t.nodeType===1}function fd(t,e=cd){let i=t;for(;i&&i!==e&&ud(i);){if(i===document.body)return e;const{overflowY:n}=window.getComputedStyle(i);if(dd.includes(n)&&i.scrollHeight>i.clientHeight)return i;i=i.parentNode}return e}let wn=!1;if(oi)try{const t={};Object.defineProperty(t,"passive",{get(){wn=!0}}),window.addEventListener("test-passive",null,t)}catch(t){}let Tt=0;const Yo="adm-overflow-hidden";function hd(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function Qo(t,e){const i=ld(),n=s=>{i.move(s);const l=i.deltaY.current>0?"10":"01",h=fd(s.target,t.current);if(!h)return;if(e==="strict"){const f=hd(s.target);if(f===document.body||f===document.documentElement){s.preventDefault();return}}const{scrollHeight:u,offsetHeight:p,scrollTop:y}=h,{height:c}=h.getBoundingClientRect();let m="11";y===0?m=p>=u?"00":"01":u<=Math.round(c+y)&&(m="10"),m!=="11"&&i.isVertical()&&!(parseInt(m,2)&parseInt(l,2))&&s.cancelable&&wn&&s.preventDefault()},r=()=>{document.addEventListener("touchstart",i.start),document.addEventListener("touchmove",n,wn?{passive:!1}:!1),Tt||document.body.classList.add(Yo),Tt++},o=()=>{Tt&&(document.removeEventListener("touchstart",i.start),document.removeEventListener("touchmove",n),Tt--,Tt||document.body.classList.remove(Yo))};a.useEffect(()=>{if(e)return r(),()=>{o()}},[e])}let xn=It();const A=t=>_t(t,xn);let Sn=It();A.write=t=>_t(t,Sn);let ai=It();A.onStart=t=>_t(t,ai);let kn=It();A.onFrame=t=>_t(t,kn);let En=It();A.onFinish=t=>_t(t,En);let ut=[];A.setTimeout=(t,e)=>{let i=A.now()+e,n=()=>{let o=ut.findIndex(s=>s.cancel==n);~o&&ut.splice(o,1),Ge-=~o?1:0},r={time:i,handler:t,cancel:n};return ut.splice(Xo(i),0,r),Ge+=1,Jo(),r};let Xo=t=>~(~ut.findIndex(e=>e.time>t)||~ut.length);A.cancel=t=>{ai.delete(t),kn.delete(t),En.delete(t),xn.delete(t),Sn.delete(t)},A.sync=t=>{Pn=!0,A.batchedUpdates(t),Pn=!1},A.throttle=t=>{let e;function i(){try{t(...e)}finally{e=null}}function n(...r){e=r,A.onStart(i)}return n.handler=t,n.cancel=()=>{ai.delete(i),e=null},n};let Cn=typeof window!="undefined"?window.requestAnimationFrame:()=>{};A.use=t=>Cn=t,A.now=typeof performance!="undefined"?()=>performance.now():Date.now,A.batchedUpdates=t=>t(),A.catch=console.error,A.frameLoop="always",A.advance=()=>{A.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ro()};let Ke=-1,Ge=0,Pn=!1;function _t(t,e){Pn?(e.delete(t),t(0)):(e.add(t),Jo())}function Jo(){Ke<0&&(Ke=0,A.frameLoop!=="demand"&&Cn($o))}function pd(){Ke=-1}function $o(){~Ke&&(Cn($o),A.batchedUpdates(Ro))}function Ro(){let t=Ke;Ke=A.now();let e=Xo(Ke);if(e&&(es(ut.splice(0,e),i=>i.handler()),Ge-=e),!Ge){pd();return}ai.flush(),xn.flush(t?Math.min(64,Ke-t):16.667),kn.flush(),Sn.flush(),En.flush()}function It(){let t=new Set,e=t;return{add(i){Ge+=e==t&&!t.has(i)?1:0,t.add(i)},delete(i){return Ge-=e==t&&t.has(i)?1:0,t.delete(i)},flush(i){e.size&&(t=new Set,Ge-=e.size,es(e,n=>n(i)&&t.add(n)),Ge+=t.size,e=t)}}}function es(t,e){t.forEach(i=>{try{e(i)}catch(n){A.catch(n)}})}function Mn(){}const md=(t,e,i)=>Object.defineProperty(t,e,{value:i,writable:!0,configurable:!0}),E={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function De(t,e){if(E.arr(t)){if(!E.arr(e)||t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}return t===e}const z=(t,e)=>t.forEach(e);function Ae(t,e,i){if(E.arr(t)){for(let n=0;n<t.length;n++)e.call(i,t[n],`${n}`);return}for(const n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n)}const ve=t=>E.und(t)?[]:E.arr(t)?t:[t];function At(t,e){if(t.size){const i=Array.from(t);t.clear(),z(i,e)}}const Ot=(t,...e)=>At(t,i=>i(...e)),Tn=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let _n,ts,Ye=null,is=!1,In=Mn;var Oe=Object.freeze({__proto__:null,get createStringInterpolator(){return _n},get to(){return ts},get colors(){return Ye},get skipAnimation(){return is},get willAdvance(){return In},assign:t=>{t.to&&(ts=t.to),t.now&&(A.now=t.now),t.colors!==void 0&&(Ye=t.colors),t.skipAnimation!=null&&(is=t.skipAnimation),t.createStringInterpolator&&(_n=t.createStringInterpolator),t.requestAnimationFrame&&A.use(t.requestAnimationFrame),t.batchedUpdates&&(A.batchedUpdates=t.batchedUpdates),t.willAdvance&&(In=t.willAdvance),t.frameLoop&&(A.frameLoop=t.frameLoop)}});const Ft=new Set;let we=[],An=[],li=0;const ci={get idle(){return!Ft.size&&!we.length},start(t){li>t.priority?(Ft.add(t),A.onStart(bd)):(ns(t),A(On))},advance:On,sort(t){if(li)A.onFrame(()=>ci.sort(t));else{const e=we.indexOf(t);~e&&(we.splice(e,1),rs(t))}},clear(){we=[],Ft.clear()}};function bd(){Ft.forEach(ns),Ft.clear(),A(On)}function ns(t){we.includes(t)||rs(t)}function rs(t){we.splice(gd(we,e=>e.priority>t.priority),0,t)}function On(t){const e=An;for(let i=0;i<we.length;i++){const n=we[i];li=n.priority,n.idle||(In(n),n.advance(t),n.idle||e.push(n))}return li=0,An=we,An.length=0,we=e,we.length>0}function gd(t,e){const i=t.findIndex(e);return i<0?t.length:i}const vd=(t,e,i)=>Math.min(Math.max(i,t),e),yd={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},Pe="[-+]?\\d*\\.?\\d+",di=Pe+"%";function ui(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const wd=new RegExp("rgb"+ui(Pe,Pe,Pe)),xd=new RegExp("rgba"+ui(Pe,Pe,Pe,Pe)),Sd=new RegExp("hsl"+ui(Pe,di,di)),kd=new RegExp("hsla"+ui(Pe,di,di,Pe)),Ed=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Cd=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Pd=/^#([0-9a-fA-F]{6})$/,Md=/^#([0-9a-fA-F]{8})$/;function Td(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Pd.exec(t))?parseInt(e[1]+"ff",16)>>>0:Ye&&Ye[t]!==void 0?Ye[t]:(e=wd.exec(t))?(ft(e[1])<<24|ft(e[2])<<16|ft(e[3])<<8|255)>>>0:(e=xd.exec(t))?(ft(e[1])<<24|ft(e[2])<<16|ft(e[3])<<8|as(e[4]))>>>0:(e=Ed.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Md.exec(t))?parseInt(e[1],16)>>>0:(e=Cd.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Sd.exec(t))?(os(ss(e[1]),fi(e[2]),fi(e[3]))|255)>>>0:(e=kd.exec(t))?(os(ss(e[1]),fi(e[2]),fi(e[3]))|as(e[4]))>>>0:null}function Fn(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function os(t,e,i){const n=i<.5?i*(1+e):i+e-i*e,r=2*i-n,o=Fn(r,n,t+1/3),s=Fn(r,n,t),l=Fn(r,n,t-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(l*255)<<8}function ft(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function ss(t){return(parseFloat(t)%360+360)%360/360}function as(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function fi(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function ls(t){let e=Td(t);if(e===null)return t;e=e||0;let i=(e&4278190080)>>>24,n=(e&16711680)>>>16,r=(e&65280)>>>8,o=(e&255)/255;return`rgba(${i}, ${n}, ${r}, ${o})`}const Bt=(t,e,i)=>{if(E.fun(t))return t;if(E.arr(t))return Bt({range:t,output:e,extrapolate:i});if(E.str(t.output[0]))return _n(t);const n=t,r=n.output,o=n.range||[0,1],s=n.extrapolateLeft||n.extrapolate||"extend",l=n.extrapolateRight||n.extrapolate||"extend",h=n.easing||(u=>u);return u=>{const p=Id(u,o);return _d(u,o[p],o[p+1],r[p],r[p+1],h,s,l,n.map)}};function _d(t,e,i,n,r,o,s,l,h){let u=h?h(t):t;if(u<e){if(s==="identity")return u;s==="clamp"&&(u=e)}if(u>i){if(l==="identity")return u;l==="clamp"&&(u=i)}return n===r?n:e===i?t<=e?n:r:(e===-1/0?u=-u:i===1/0?u=u-e:u=(u-e)/(i-e),u=o(u),n===-1/0?u=-u:r===1/0?u=u+n:u=u*(r-n)+n,u)}function Id(t,e){for(var i=1;i<e.length-1&&!(e[i]>=t);++i);return i-1}const Ad=(t,e="end")=>i=>{i=e==="end"?Math.min(i,.999):Math.max(i,.001);const n=i*t,r=e==="end"?Math.floor(n):Math.ceil(n);return vd(0,1,r/t)},hi=1.70158,pi=hi*1.525,cs=hi+1,ds=2*Math.PI/3,us=2*Math.PI/4.5,mi=t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,Od={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>t===0?0:Math.pow(2,10*t-10),easeOutExpo:t=>t===1?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>cs*t*t*t-hi*t*t,easeOutBack:t=>1+cs*Math.pow(t-1,3)+hi*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*((pi+1)*2*t-pi)/2:(Math.pow(2*t-2,2)*((pi+1)*(t*2-2)+pi)+2)/2,easeInElastic:t=>t===0?0:t===1?1:-Math.pow(2,10*t-10)*Math.sin((t*10-10.75)*ds),easeOutElastic:t=>t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t*10-.75)*ds)+1,easeInOutElastic:t=>t===0?0:t===1?1:t<.5?-(Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*us))/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*us)/2+1,easeInBounce:t=>1-mi(1-t),easeOutBounce:mi,easeInOutBounce:t=>t<.5?(1-mi(1-2*t))/2:(1+mi(2*t-1))/2,steps:Ad};function Bn(){return Bn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Bn.apply(this,arguments)}const ht=Symbol.for("FluidValue.get"),Re=Symbol.for("FluidValue.observers"),xe=t=>!!(t&&t[ht]),he=t=>t&&t[ht]?t[ht]():t,fs=t=>t[Re]||null;function Fd(t,e){t.eventObserved?t.eventObserved(e):t(e)}function zt(t,e){let i=t[Re];i&&i.forEach(n=>{Fd(n,e)})}class hs{constructor(e){if(this[ht]=void 0,this[Re]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Bd(this,e)}}const Bd=(t,e)=>ps(t,ht,e);function pt(t,e){if(t[ht]){let i=t[Re];i||ps(t,Re,i=new Set),i.has(e)||(i.add(e),t.observerAdded&&t.observerAdded(i.size,e))}return e}function Nt(t,e){let i=t[Re];if(i&&i.has(e)){const n=i.size-1;n?i.delete(e):t[Re]=null,t.observerRemoved&&t.observerRemoved(n,e)}}const ps=(t,e,i)=>Object.defineProperty(t,e,{value:i,writable:!0,configurable:!0}),bi=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,zd=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ms=new RegExp(`(${bi.source})(%|[a-z]+)`,"i"),Nd=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,gi=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,bs=t=>{const[e,i]=Ld(t);if(!e||Tn())return t;const n=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(n)return n.trim();if(i&&i.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(i);return r||t}else{if(i&&gi.test(i))return bs(i);if(i)return i}return t},Ld=t=>{const e=gi.exec(t);if(!e)return[,];const[,i,n]=e;return[i,n]};let zn;const Dd=(t,e,i,n,r)=>`rgba(${Math.round(e)}, ${Math.round(i)}, ${Math.round(n)}, ${r})`,gs=t=>{zn||(zn=Ye?new RegExp(`(${Object.keys(Ye).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(o=>he(o).replace(gi,bs).replace(zd,ls).replace(zn,ls)),i=e.map(o=>o.match(bi).map(Number)),r=i[0].map((o,s)=>i.map(l=>{if(!(s in l))throw Error('The arity of each "output" value must be equal');return l[s]})).map(o=>Bt(Bn({},t,{output:o})));return o=>{var s;const l=!ms.test(e[0])&&((s=e.find(u=>ms.test(u)))==null?void 0:s.replace(bi,""));let h=0;return e[0].replace(bi,()=>`${r[h++](o)}${l||""}`).replace(Nd,Dd)}},Nn="react-spring: ",vs=t=>{const e=t;let i=!1;if(typeof e!="function")throw new TypeError(`${Nn}once requires a function parameter`);return(...n)=>{i||(e(...n),i=!0)}},Zd=vs(console.warn);function Vd(){Zd(`${Nn}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const jd=vs(console.warn);function Ud(){jd(`${Nn}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 vi(t){return E.str(t)&&(t[0]=="#"||/\d/.test(t)||!Tn()&&gi.test(t)||t in(Ye||{}))}const Ln=Tn()?a.useEffect:a.useLayoutEffect,Wd=()=>{const t=a.useRef(!1);return Ln(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function ys(){const t=a.useState()[1],e=Wd();return()=>{e.current&&t(Math.random())}}function qd(t,e){const[i]=a.useState(()=>({inputs:e,result:t()})),n=a.useRef(),r=n.current;let o=r;return o?e&&o.inputs&&Hd(e,o.inputs)||(o={inputs:e,result:t()}):o=i,a.useEffect(()=>{n.current=o,r==i&&(i.inputs=i.result=void 0)},[o]),o.result}function Hd(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}const ws=t=>a.useEffect(t,Kd),Kd=[];function xs(t){const e=a.useRef();return a.useEffect(()=>{e.current=t}),e.current}const Lt=Symbol.for("Animated:node"),Gd=t=>!!t&&t[Lt]===t,Fe=t=>t&&t[Lt],Dn=(t,e)=>md(t,Lt,e),yi=t=>t&&t[Lt]&&t[Lt].getPayload();class Ss{constructor(){this.payload=void 0,Dn(this,this)}getPayload(){return this.payload||[]}}class mt extends Ss{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,E.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new mt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,i){return E.num(e)&&(this.lastPosition=e,i&&(e=Math.round(e/i)*i,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,E.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class bt extends mt{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Bt({output:[e,e]})}static create(e){return new bt(e)}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(E.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Bt({output:[this.getValue(),e]})),this._value=0,super.reset()}}const wi={dependencies:null};class xi extends Ss{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const i={};return Ae(this.source,(n,r)=>{Gd(n)?i[r]=n.getValue(e):xe(n)?i[r]=he(n):e||(i[r]=n)}),i}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&z(this.payload,e=>e.reset())}_makePayload(e){if(e){const i=new Set;return Ae(e,this._addToPayload,i),Array.from(i)}}_addToPayload(e){wi.dependencies&&xe(e)&&wi.dependencies.add(e);const i=yi(e);i&&z(i,n=>this.add(n))}}class Zn extends xi{constructor(e){super(e)}static create(e){return new Zn(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const i=this.getPayload();return e.length==i.length?i.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Yd)),!0)}}function Yd(t){return(vi(t)?bt:mt).create(t)}function Vn(t){const e=Fe(t);return e?e.constructor:E.arr(t)?Zn:vi(t)?bt:mt}function Si(){return Si=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Si.apply(this,arguments)}const ks=(t,e)=>{const i=!E.fun(t)||t.prototype&&t.prototype.isReactComponent;return a.forwardRef((n,r)=>{const o=a.useRef(null),s=i&&a.useCallback(f=>{o.current=Jd(r,f)},[r]),[l,h]=Xd(n,e),u=ys(),p=()=>{const f=o.current;if(i&&!f)return;(f?e.applyAnimatedValues(f,l.getValue(!0)):!1)===!1&&u()},y=new Qd(p,h),c=a.useRef();Ln(()=>(c.current=y,z(h,f=>pt(f,y)),()=>{c.current&&(z(c.current.deps,f=>Nt(f,c.current)),A.cancel(c.current.update))})),a.useEffect(p,[]),ws(()=>()=>{const f=c.current;z(f.deps,b=>Nt(b,f))});const m=e.getComponentProps(l.getValue());return ee.createElement(t,Si({},m,{ref:s}))})};class Qd{constructor(e,i){this.update=e,this.deps=i}eventObserved(e){e.type=="change"&&A.write(this.update)}}function Xd(t,e){const i=new Set;return wi.dependencies=i,t.style&&(t=Si({},t,{style:e.createAnimatedStyle(t.style)})),t=new xi(t),wi.dependencies=null,[t,i]}function Jd(t,e){return t&&(E.fun(t)?t(e):t.current=e),e}const Es=Symbol.for("AnimatedComponent"),$d=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:i=r=>new xi(r),getComponentProps:n=r=>r}={})=>{const r={applyAnimatedValues:e,createAnimatedStyle:i,getComponentProps:n},o=s=>{const l=Cs(s)||"Anonymous";return E.str(s)?s=o[s]||(o[s]=ks(s,r)):s=s[Es]||(s[Es]=ks(s,r)),s.displayName=`Animated(${l})`,s};return Ae(t,(s,l)=>{E.arr(t)&&(l=Cs(s)),o[l]=o(s)}),{animated:o}},Cs=t=>E.str(t)?t:t&&E.str(t.displayName)?t.displayName:E.fun(t)&&t.name||null;function ie(){return ie=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},ie.apply(this,arguments)}function et(t,...e){return E.fun(t)?t(...e):t}const Dt=(t,e)=>t===!0||!!(e&&t&&(E.fun(t)?t(e):ve(t).includes(e))),Ps=(t,e)=>E.obj(t)?e&&t[e]:t,Ms=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,Rd=t=>t,jn=(t,e=Rd)=>{let i=eu;t.default&&t.default!==!0&&(t=t.default,i=Object.keys(t));const n={};for(const r of i){const o=e(t[r],r);E.und(o)||(n[r]=o)}return n},eu=["config","onProps","onStart","onChange","onPause","onResume","onRest"],tu={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 iu(t){const e={};let i=0;if(Ae(t,(n,r)=>{tu[r]||(e[r]=n,i++)}),i)return e}function Ts(t){const e=iu(t);if(e){const i={to:e};return Ae(t,(n,r)=>r in e||(i[r]=n)),i}return ie({},t)}function Zt(t){return t=he(t),E.arr(t)?t.map(Zt):vi(t)?Oe.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function nu(t){for(const e in t)return!0;return!1}function Un(t){return E.fun(t)||E.arr(t)&&E.obj(t[0])}function ru(t,e){var i;(i=t.ref)==null||i.delete(t),e==null||e.delete(t)}function ou(t,e){if(e&&t.ref!==e){var i;(i=t.ref)==null||i.delete(t),e.add(t),t.ref=e}}const Wn=ie({},{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:Od.linear,clamp:!1});class su{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,Wn)}}function au(t,e,i){i&&(i=ie({},i),_s(i,e),e=ie({},i,e)),_s(t,e),Object.assign(t,e);for(const s in Wn)t[s]==null&&(t[s]=Wn[s]);let{mass:n,frequency:r,damping:o}=t;return E.und(r)||(r<.01&&(r=.01),o<0&&(o=0),t.tension=Math.pow(2*Math.PI/r,2)*n,t.friction=4*Math.PI*o*n/r),t}function _s(t,e){if(!E.und(e.decay))t.duration=void 0;else{const i=!E.und(e.tension)||!E.und(e.friction);(i||!E.und(e.frequency)||!E.und(e.damping)||!E.und(e.mass))&&(t.duration=void 0,t.decay=void 0),i&&(t.frequency=void 0)}}const Is=[];class lu{constructor(){this.changed=!1,this.values=Is,this.toValues=null,this.fromValues=Is,this.to=void 0,this.from=void 0,this.config=new su,this.immediate=!1}}function As(t,{key:e,props:i,defaultProps:n,state:r,actions:o}){return new Promise((s,l)=>{var h;let u,p,y=Dt((h=i.cancel)!=null?h:n==null?void 0:n.cancel,e);if(y)f();else{E.und(i.pause)||(r.paused=Dt(i.pause,e));let b=n==null?void 0:n.pause;b!==!0&&(b=r.paused||Dt(b,e)),u=et(i.delay||0,e),b?(r.resumeQueue.add(m),o.pause()):(o.resume(),m())}function c(){r.resumeQueue.add(m),r.timeouts.delete(p),p.cancel(),u=p.time-A.now()}function m(){u>0&&!Oe.skipAnimation?(r.delayed=!0,p=A.setTimeout(f,u),r.pauseQueue.add(c),r.timeouts.add(p)):f()}function f(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(c),r.timeouts.delete(p),t<=(r.cancelId||0)&&(y=!0);try{o.start(ie({},i,{callId:t,cancel:y}),s)}catch(b){l(b)}}})}const qn=(t,e)=>e.length==1?e[0]:e.some(i=>i.cancelled)?gt(t.get()):e.every(i=>i.noop)?Os(t.get()):Me(t.get(),e.every(i=>i.finished)),Os=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),Me=(t,e,i=!1)=>({value:t,finished:e,cancelled:i}),gt=t=>({value:t,cancelled:!0,finished:!1});function Fs(t,e,i,n){const{callId:r,parentId:o,onRest:s}=e,{asyncTo:l,promise:h}=i;return!o&&t===l&&!e.reset?h:i.promise=Q(this,null,function*(){i.asyncId=r,i.asyncTo=t;const u=jn(e,(v,C)=>C==="onRest"?void 0:v);let p,y;const c=new Promise((v,C)=>(p=v,y=C)),m=v=>{const C=r<=(i.cancelId||0)&>(n)||r!==i.asyncId&&Me(n,!1);if(C)throw v.result=C,y(v),v},f=(v,C)=>{const S=new Bs,w=new zs;return Q(this,null,function*(){if(Oe.skipAnimation)throw Vt(i),w.result=Me(n,!1),y(w),w;m(S);const k=E.obj(v)?ie({},v):ie({},C,{to:v});k.parentId=r,Ae(u,(T,L)=>{E.und(k[L])&&(k[L]=T)});const P=yield n.start(k);return m(S),i.paused&&(yield new Promise(T=>{i.resumeQueue.add(T)})),P})};let b;if(Oe.skipAnimation)return Vt(i),Me(n,!1);try{let v;E.arr(t)?v=(C=>Q(this,null,function*(){for(const S of C)yield f(S)}))(t):v=Promise.resolve(t(f,n.stop.bind(n))),yield Promise.all([v.then(p),c]),b=Me(n.get(),!0,!1)}catch(v){if(v instanceof Bs)b=v.result;else if(v instanceof zs)b=v.result;else throw v}finally{r==i.asyncId&&(i.asyncId=o,i.asyncTo=o?l:void 0,i.promise=o?h:void 0)}return E.fun(s)&&A.batchedUpdates(()=>{s(b,n,n.item)}),b})}function Vt(t,e){At(t.timeouts,i=>i.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class Bs 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 zs extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Hn=t=>t instanceof Kn;let cu=1;class Kn extends hs{constructor(...e){super(...e),this.id=cu++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Fe(this);return e&&e.getValue()}to(...e){return Oe.to(this,e)}interpolate(...e){return Vd(),Oe.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,i=!1){zt(this,{type:"change",parent:this,value:e,idle:i})}_onPriorityChange(e){this.idle||ci.sort(this),zt(this,{type:"priority",parent:this,priority:e})}}const tt=Symbol.for("SpringPhase"),Ns=1,Gn=2,Yn=4,Qn=t=>(t[tt]&Ns)>0,Qe=t=>(t[tt]&Gn)>0,jt=t=>(t[tt]&Yn)>0,Ls=(t,e)=>e?t[tt]|=Gn|Ns:t[tt]&=~Gn,Ds=(t,e)=>e?t[tt]|=Yn:t[tt]&=~Yn;class du extends Kn{constructor(e,i){if(super(),this.key=void 0,this.animation=new lu,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,!E.und(e)||!E.und(i)){const n=E.obj(e)?ie({},e):ie({},i,{from:e});E.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Qe(this)||this._state.asyncTo)||jt(this)}get goal(){return he(this.animation.to)}get velocity(){const e=Fe(this);return e instanceof mt?e.lastVelocity||0:e.getPayload().map(i=>i.lastVelocity||0)}get hasAnimated(){return Qn(this)}get isAnimating(){return Qe(this)}get isPaused(){return jt(this)}get isDelayed(){return this._state.delayed}advance(e){let i=!0,n=!1;const r=this.animation;let{config:o,toValues:s}=r;const l=yi(r.to);!l&&xe(r.to)&&(s=ve(he(r.to))),r.values.forEach((p,y)=>{if(p.done)return;const c=p.constructor==bt?1:l?l[y].lastPosition:s[y];let m=r.immediate,f=c;if(!m){if(f=p.lastPosition,o.tension<=0){p.done=!0;return}let b=p.elapsedTime+=e;const v=r.fromValues[y],C=p.v0!=null?p.v0:p.v0=E.arr(o.velocity)?o.velocity[y]:o.velocity;let S;const w=o.precision||(v==c?.005:Math.min(1,Math.abs(c-v)*.001));if(E.und(o.duration))if(o.decay){const k=o.decay===!0?.998:o.decay,P=Math.exp(-(1-k)*b);f=v+C/(1-k)*(1-P),m=Math.abs(p.lastPosition-f)<=w,S=C*P}else{S=p.lastVelocity==null?C:p.lastVelocity;const k=o.restVelocity||w/10,P=o.clamp?0:o.bounce,T=!E.und(P),L=v==c?p.v0>0:v<c;let q,ne=!1;const K=1,ue=Math.ceil(e/K);for(let $=0;$<ue&&(q=Math.abs(S)>k,!(!q&&(m=Math.abs(c-f)<=w,m)));++$){T&&(ne=f==c||f>c==L,ne&&(S=-S*P,f=c));const Y=-o.tension*1e-6*(f-c),Te=-o.friction*.001*S,Xt=(Y+Te)/o.mass;S=S+Xt*K,f=f+S*K}}else{let k=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,p.durationProgress>0&&(p.elapsedTime=o.duration*p.durationProgress,b=p.elapsedTime+=e)),k=(o.progress||0)+b/this._memoizedDuration,k=k>1?1:k<0?0:k,p.durationProgress=k),f=v+o.easing(k)*(c-v),S=(f-p.lastPosition)/e,m=k==1}p.lastVelocity=S,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),m=!0)}l&&!l[y].done&&(m=!1),m?p.done=!0:i=!1,p.setValue(f,o.round)&&(n=!0)});const h=Fe(this),u=h.getValue();if(i){const p=he(r.to);(u!==p||n)&&!o.decay?(h.setValue(p),this._onChange(p)):n&&o.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return A.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Qe(this)){const{to:e,config:i}=this.animation;A.batchedUpdates(()=>{this._onStart(),i.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,i){let n;return E.und(e)?(n=this.queue||[],this.queue=[]):n=[E.obj(e)?e:ie({},i,{to:e})],Promise.all(n.map(r=>this._update(r))).then(r=>qn(this,r))}stop(e){const{to:i}=this.animation;return this._focus(this.get()),Vt(this._state,e&&this._lastCallId),A.batchedUpdates(()=>this._stop(i,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const i=this.key||"";let{to:n,from:r}=e;n=E.obj(n)?n[i]:n,(n==null||Un(n))&&(n=void 0),r=E.obj(r)?r[i]:r,r==null&&(r=void 0);const o={to:n,from:r};return Qn(this)||(e.reverse&&([n,r]=[r,n]),r=he(r),E.und(r)?Fe(this)||this._set(n):this._set(r)),o}_update(e,i){let n=ie({},e);const{key:r,defaultProps:o}=this;n.default&&Object.assign(o,jn(n,(h,u)=>/^on/.test(u)?Ps(h,r):h)),js(this,n,"onProps"),qt(this,"onProps",n,this);const s=this._prepareNode(n);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 As(++this._lastCallId,{key:r,props:n,defaultProps:o,state:l,actions:{pause:()=>{jt(this)||(Ds(this,!0),Ot(l.pauseQueue),qt(this,"onPause",Me(this,Ut(this,this.animation.to)),this))},resume:()=>{jt(this)&&(Ds(this,!1),Qe(this)&&this._resume(),Ot(l.resumeQueue),qt(this,"onResume",Me(this,Ut(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(h=>{if(n.loop&&h.finished&&!(i&&h.noop)){const u=Zs(n);if(u)return this._update(u,!0)}return h})}_merge(e,i,n){if(i.cancel)return this.stop(!0),n(gt(this));const r=!E.und(e.to),o=!E.und(e.from);if(r||o)if(i.callId>this._lastToId)this._lastToId=i.callId;else return n(gt(this));const{key:s,defaultProps:l,animation:h}=this,{to:u,from:p}=h;let{to:y=u,from:c=p}=e;o&&!r&&(!i.default||E.und(y))&&(y=c),i.reverse&&([y,c]=[c,y]);const m=!De(c,p);m&&(h.from=c),c=he(c);const f=!De(y,u);f&&this._focus(y);const b=Un(i.to),{config:v}=h,{decay:C,velocity:S}=v;(r||o)&&(v.velocity=0),i.config&&!b&&au(v,et(i.config,s),i.config!==l.config?et(l.config,s):void 0);let w=Fe(this);if(!w||E.und(y))return n(Me(this,!0));const k=E.und(i.reset)?o&&!i.default:!E.und(c)&&Dt(i.reset,s),P=k?c:this.get(),T=Zt(y),L=E.num(T)||E.arr(T)||vi(T),q=!b&&(!L||Dt(l.immediate||i.immediate,s));if(f){const $=Vn(y);if($!==w.constructor)if(q)w=this._set(T);else throw Error(`Cannot animate between ${w.constructor.name} and ${$.name}, as the "to" prop suggests`)}const ne=w.constructor;let K=xe(y),ue=!1;if(!K){const $=k||!Qn(this)&&m;(f||$)&&(ue=De(Zt(P),T),K=!ue),(!De(h.immediate,q)&&!q||!De(v.decay,C)||!De(v.velocity,S))&&(K=!0)}if(ue&&Qe(this)&&(h.changed&&!k?K=!0:K||this._stop(u)),!b&&((K||xe(u))&&(h.values=w.getPayload(),h.toValues=xe(y)?null:ne==bt?[1]:ve(T)),h.immediate!=q&&(h.immediate=q,!q&&!k&&this._set(u)),K)){const{onRest:$}=h;z(fu,Te=>js(this,i,Te));const Y=Me(this,Ut(this,u));Ot(this._pendingCalls,Y),this._pendingCalls.add(n),h.changed&&A.batchedUpdates(()=>{h.changed=!k,$==null||$(Y,this),k?et(l.onRest,Y):h.onStart==null||h.onStart(Y,this)})}k&&this._set(P),b?n(Fs(i.to,i,this._state,this)):K?this._start():Qe(this)&&!f?this._pendingCalls.add(n):n(Os(P))}_focus(e){const i=this.animation;e!==i.to&&(fs(this)&&this._detach(),i.to=e,fs(this)&&this._attach())}_attach(){let e=0;const{to:i}=this.animation;xe(i)&&(pt(i,this),Hn(i)&&(e=i.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;xe(e)&&Nt(e,this)}_set(e,i=!0){const n=he(e);if(!E.und(n)){const r=Fe(this);if(!r||!De(n,r.getValue())){const o=Vn(n);!r||r.constructor!=o?Dn(this,o.create(n)):r.setValue(n),r&&A.batchedUpdates(()=>{this._onChange(n,i)})}}return Fe(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,qt(this,"onStart",Me(this,Ut(this,e.to)),this))}_onChange(e,i){i||(this._onStart(),et(this.animation.onChange,e,this)),et(this.defaultProps.onChange,e,this),super._onChange(e,i)}_start(){const e=this.animation;Fe(this).reset(he(e.to)),e.immediate||(e.fromValues=e.values.map(i=>i.lastPosition)),Qe(this)||(Ls(this,!0),jt(this)||this._resume())}_resume(){Oe.skipAnimation?this.finish():ci.start(this)}_stop(e,i){if(Qe(this)){Ls(this,!1);const n=this.animation;z(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),zt(this,{type:"idle",parent:this});const r=i?gt(this.get()):Me(this.get(),Ut(this,e!=null?e:n.to));Ot(this._pendingCalls,r),n.changed&&(n.changed=!1,qt(this,"onRest",r,this))}}}function Ut(t,e){const i=Zt(e),n=Zt(t.get());return De(n,i)}function Zs(t,e=t.loop,i=t.to){let n=et(e);if(n){const r=n!==!0&&Ts(n),o=(r||t).reverse,s=!r||r.reset;return Wt(ie({},t,{loop:e,default:!1,pause:void 0,to:!o||Un(i)?i:void 0,from:s?t.from:void 0,reset:s},r))}}function Wt(t){const{to:e,from:i}=t=Ts(t),n=new Set;return E.obj(e)&&Vs(e,n),E.obj(i)&&Vs(i,n),t.keys=n.size?Array.from(n):null,t}function uu(t){const e=Wt(t);return E.und(e.default)&&(e.default=jn(e)),e}function Vs(t,e){Ae(t,(i,n)=>i!=null&&e.add(n))}const fu=["onStart","onRest","onChange","onPause","onResume"];function js(t,e,i){t.animation[i]=e[i]!==Ms(e,i)?Ps(e[i],t.key):void 0}function qt(t,e,...i){var n,r,o,s;(n=(r=t.animation)[e])==null||n.call(r,...i),(o=(s=t.defaultProps)[e])==null||o.call(s,...i)}const hu=["onStart","onChange","onRest"];let pu=1,mu=class{constructor(e,i){this.id=pu++,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),i&&(this._flush=i),e&&this.start(ie({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((i,n)=>e[n]=i.get()),e}set(e){for(const i in e){const n=e[i];E.und(n)||this.springs[i].set(n)}}update(e){return e&&this.queue.push(Wt(e)),this}start(e){let{queue:i}=this;return e?i=ve(e).map(Wt):this.queue=[],this._flush?this._flush(this,i):(Gs(this,i),Xn(this,i))}stop(e,i){if(e!==!!e&&(i=e),i){const n=this.springs;z(ve(i),r=>n[r].stop(!!e))}else Vt(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(E.und(e))this.start({pause:!0});else{const i=this.springs;z(ve(e),n=>i[n].pause())}return this}resume(e){if(E.und(e))this.start({pause:!1});else{const i=this.springs;z(ve(e),n=>i[n].resume())}return this}each(e){Ae(this.springs,e)}_onFrame(){const{onStart:e,onChange:i,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,At(e,([h,u])=>{u.value=this.get(),h(u,this,this._item)}));const s=!r&&this._started,l=o||s&&n.size?this.get():null;o&&i.size&&At(i,([h,u])=>{u.value=l,h(u,this,this._item)}),s&&(this._started=!1,At(n,([h,u])=>{u.value=l,h(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;A.onFrame(this._onFrame)}};function Xn(t,e){return Promise.all(e.map(i=>Us(t,i))).then(i=>qn(t,i))}function Us(t,e,i){return Q(this,null,function*(){const{keys:n,to:r,from:o,loop:s,onRest:l,onResolve:h}=e,u=E.obj(e.default)&&e.default;s&&(e.loop=!1),r===!1&&(e.to=null),o===!1&&(e.from=null);const p=E.arr(r)||E.fun(r)?r:void 0;p?(e.to=void 0,e.onRest=void 0,u&&(u.onRest=void 0)):z(hu,b=>{const v=e[b];if(E.fun(v)){const C=t._events[b];e[b]=({finished:S,cancelled:w})=>{const k=C.get(v);k?(S||(k.finished=!1),w&&(k.cancelled=!0)):C.set(v,{value:null,finished:S||!1,cancelled:w||!1})},u&&(u[b]=e[b])}});const y=t._state;e.pause===!y.paused?(y.paused=e.pause,Ot(e.pause?y.pauseQueue:y.resumeQueue)):y.paused&&(e.pause=!0);const c=(n||Object.keys(t.springs)).map(b=>t.springs[b].start(e)),m=e.cancel===!0||Ms(e,"cancel")===!0;(p||m&&y.asyncId)&&c.push(As(++t._lastAsyncId,{props:e,state:y,actions:{pause:Mn,resume:Mn,start(b,v){m?(Vt(y,t._lastAsyncId),v(gt(t))):(b.onRest=l,v(Fs(p,b,y,t)))}}})),y.paused&&(yield new Promise(b=>{y.resumeQueue.add(b)}));const f=qn(t,yield Promise.all(c));if(s&&f.finished&&!(i&&f.noop)){const b=Zs(e,s,r);if(b)return Gs(t,[b]),Us(t,b,!0)}return h&&A.batchedUpdates(()=>h(f,t,t.item)),f})}function Ws(t,e){const i=ie({},t.springs);return e&&z(ve(e),n=>{E.und(n.keys)&&(n=Wt(n)),E.obj(n.to)||(n=ie({},n,{to:void 0})),Ks(i,n,r=>Hs(r))}),qs(t,i),i}function qs(t,e){Ae(e,(i,n)=>{t.springs[n]||(t.springs[n]=i,pt(i,t))})}function Hs(t,e){const i=new du;return i.key=t,e&&pt(i,e),i}function Ks(t,e,i){e.keys&&z(e.keys,n=>{(t[n]||(t[n]=i(n)))._prepareNode(e)})}function Gs(t,e){z(e,i=>{Ks(t.springs,i,n=>Hs(n,t))})}function bu(t,e){if(t==null)return{};var i={},n=Object.keys(t),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(i[r]=t[r]);return i}const gu=["children"],ki=t=>{let{children:e}=t,i=bu(t,gu);const n=a.useContext(Ei),r=i.pause||!!n.pause,o=i.immediate||!!n.immediate;i=qd(()=>({pause:r,immediate:o}),[r,o]);const{Provider:s}=Ei;return ee.createElement(s,{value:i},e)},Ei=vu(ki,{});ki.Provider=Ei.Provider,ki.Consumer=Ei.Consumer;function vu(t,e){return Object.assign(t,ee.createContext(e)),t.Provider._context=t,t.Consumer._context=t,t}const yu=()=>{const t=[],e=function(r){Ud();const o=[];return z(t,(s,l)=>{if(E.und(r))o.push(s.start());else{const h=i(r,s,l);h&&o.push(s.start(h))}}),o};e.current=t,e.add=function(n){t.includes(n)||t.push(n)},e.delete=function(n){const r=t.indexOf(n);~r&&t.splice(r,1)},e.pause=function(){return z(t,n=>n.pause(...arguments)),this},e.resume=function(){return z(t,n=>n.resume(...arguments)),this},e.set=function(n){z(t,r=>r.set(n))},e.start=function(n){const r=[];return z(t,(o,s)=>{if(E.und(n))r.push(o.start());else{const l=this._getProps(n,o,s);l&&r.push(o.start(l))}}),r},e.stop=function(){return z(t,n=>n.stop(...arguments)),this},e.update=function(n){return z(t,(r,o)=>r.update(this._getProps(n,r,o))),this};const i=function(r,o,s){return E.fun(r)?r(s,o):r};return e._getProps=i,e};function wu(t,e,i){const n=E.fun(e)&&e;n&&!i&&(i=[]);const r=a.useMemo(()=>n||arguments.length==3?yu():void 0,[]),o=a.useRef(0),s=ys(),l=a.useMemo(()=>({ctrls:[],queue:[],flush(C,S){const w=Ws(C,S);return o.current>0&&!l.queue.length&&!Object.keys(w).some(P=>!C.springs[P])?Xn(C,S):new Promise(P=>{qs(C,w),l.queue.push(()=>{P(Xn(C,S))}),s()})}}),[]),h=a.useRef([...l.ctrls]),u=[],p=xs(t)||0;a.useMemo(()=>{z(h.current.slice(t,p),C=>{ru(C,r),C.stop(!0)}),h.current.length=t,y(p,t)},[t]),a.useMemo(()=>{y(0,Math.min(p,t))},i);function y(C,S){for(let w=C;w<S;w++){const k=h.current[w]||(h.current[w]=new mu(null,l.flush)),P=n?n(w,k):e[w];P&&(u[w]=uu(P))}}const c=h.current.map((C,S)=>Ws(C,u[S])),m=a.useContext(ki),f=xs(m),b=m!==f&&nu(m);Ln(()=>{o.current++,l.ctrls=h.current;const{queue:C}=l;C.length&&(l.queue=[],z(C,S=>S())),z(h.current,(S,w)=>{r==null||r.add(S),b&&S.start({default:m});const k=u[w];k&&(ou(S,k.ref),S.ref?S.queue.push(k):S.start(k))})}),ws(()=>()=>{z(l.ctrls,C=>C.stop(!0))});const v=c.map(C=>ie({},C));return r?[v,r]:v}function Ht(t,e){const i=E.fun(t),[[n],r]=wu(1,i?t:[t],i?[]:e);return i||arguments.length==2?[n,r]:n}let Ys;(function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"})(Ys||(Ys={}));class xu extends Kn{constructor(e,i){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Bt(...i);const n=this._get(),r=Vn(n);Dn(this,r.create(n))}advance(e){const i=this._get(),n=this.get();De(i,n)||(Fe(this).setValue(i),this._onChange(i,this.idle)),!this.idle&&Qs(this._active)&&Jn(this)}_get(){const e=E.arr(this.source)?this.source.map(he):ve(he(this.source));return this.calc(...e)}_start(){this.idle&&!Qs(this._active)&&(this.idle=!1,z(yi(this),e=>{e.done=!1}),Oe.skipAnimation?(A.batchedUpdates(()=>this.advance()),Jn(this)):ci.start(this))}_attach(){let e=1;z(ve(this.source),i=>{xe(i)&&pt(i,this),Hn(i)&&(i.idle||this._active.add(i),e=Math.max(e,i.priority+1))}),this.priority=e,this._start()}_detach(){z(ve(this.source),e=>{xe(e)&&Nt(e,this)}),this._active.clear(),Jn(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=ve(this.source).reduce((i,n)=>Math.max(i,(Hn(n)?n.priority:0)+1),0))}}function Su(t){return t.idle!==!1}function Qs(t){return!t.size||Array.from(t).every(Su)}function Jn(t){t.idle||(t.idle=!0,z(yi(t),e=>{e.done=!0}),zt(t,{type:"idle",parent:t}))}Oe.assign({createStringInterpolator:gs,to:(t,e)=>new xu(t,e)});function $n(t,e){if(t==null)return{};var i={},n=Object.keys(t),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(i[r]=t[r]);return i}const ku=["style","children","scrollTop","scrollLeft","viewBox"],Xs=/^--/;function Eu(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!Xs.test(t)&&!(Kt.hasOwnProperty(t)&&Kt[t])?e+"px":(""+e).trim()}const Js={};function Cu(t,e){if(!t.nodeType||!t.setAttribute)return!1;const i=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",n=e,{style:r,children:o,scrollTop:s,scrollLeft:l,viewBox:h}=n,u=$n(n,ku),p=Object.values(u),y=Object.keys(u).map(c=>i||t.hasAttribute(c)?c:Js[c]||(Js[c]=c.replace(/([A-Z])/g,m=>"-"+m.toLowerCase())));o!==void 0&&(t.textContent=o);for(let c in r)if(r.hasOwnProperty(c)){const m=Eu(c,r[c]);Xs.test(c)?t.style.setProperty(c,m):t.style[c]=m}y.forEach((c,m)=>{t.setAttribute(c,p[m])}),s!==void 0&&(t.scrollTop=s),l!==void 0&&(t.scrollLeft=l),h!==void 0&&t.setAttribute("viewBox",h)}let Kt={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 Pu=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),Mu=["Webkit","Ms","Moz","O"];Kt=Object.keys(Kt).reduce((t,e)=>(Mu.forEach(i=>t[Pu(i,e)]=t[e]),t),Kt);const Tu=["x","y","z"],_u=/^(matrix|translate|scale|rotate|skew)/,Iu=/^(translate)/,Au=/^(rotate|skew)/,Rn=(t,e)=>E.num(t)&&t!==0?t+e:t,Ci=(t,e)=>E.arr(t)?t.every(i=>Ci(i,e)):E.num(t)?t===e:parseFloat(t)===e;class Ou extends xi{constructor(e){let{x:i,y:n,z:r}=e,o=$n(e,Tu);const s=[],l=[];(i||n||r)&&(s.push([i||0,n||0,r||0]),l.push(h=>[`translate3d(${h.map(u=>Rn(u,"px")).join(",")})`,Ci(h,0)])),Ae(o,(h,u)=>{if(u==="transform")s.push([h||""]),l.push(p=>[p,p===""]);else if(_u.test(u)){if(delete o[u],E.und(h))return;const p=Iu.test(u)?"px":Au.test(u)?"deg":"";s.push(ve(h)),l.push(u==="rotate3d"?([y,c,m,f])=>[`rotate3d(${y},${c},${m},${Rn(f,p)})`,Ci(f,0)]:y=>[`${u}(${y.map(c=>Rn(c,p)).join(",")})`,Ci(y,u.startsWith("scale")?1:0)])}}),s.length&&(o.transform=new Fu(s,l)),super(o)}}class Fu extends hs{constructor(e,i){super(),this._value=null,this.inputs=e,this.transforms=i}get(){return this._value||(this._value=this._get())}_get(){let e="",i=!0;return z(this.inputs,(n,r)=>{const o=he(n[0]),[s,l]=this.transforms[r](E.arr(o)?o:n.map(he));e+=" "+s,i=i&&l}),i?"none":e}observerAdded(e){e==1&&z(this.inputs,i=>z(i,n=>xe(n)&&pt(n,this)))}observerRemoved(e){e==0&&z(this.inputs,i=>z(i,n=>xe(n)&&Nt(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),zt(this,e)}}const Bu=["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"],zu=["scrollTop","scrollLeft"];Oe.assign({batchedUpdates:$e.unstable_batchedUpdates,createStringInterpolator:gs,colors:yd});const vt=$d(Bu,{applyAnimatedValues:Cu,createAnimatedStyle:t=>new Ou(t),getComponentProps:t=>$n(t,zu)}).animated;function Nu(t){return(typeof t=="function"?t():t)||document.body}function $s(t,e){if(oi&&t){const i=Nu(t);return $e.createPortal(e,i)}return e}function Lu(t){const e=a.useRef(t);return t&&(e.current=!0),!!e.current}const er=t=>Du(t.active,t.forceRender,t.destroyOnClose)?t.children:null;function Du(t,e,i){const n=Lu(t);return e||t?!0:n?!i:!1}const Zu={click:"onClick",touchstart:"onTouchStart"};function Rs(t,e){const i=Object.assign({},e.props);for(const n of t){const r=Zu[n];i[r]=function(o){var s,l;o.stopPropagation(),(l=(s=e.props)[r])===null||l===void 0||l.call(s,o)}}return a.cloneElement(e,i)}const tr="adm-mask",Vu={default:.55,thin:.35,thick:.75},ju={black:"0, 0, 0",white:"255, 255, 255"},Uu={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},Wu=t=>{const e=He(Uu,t),{locale:i}=si(),n=a.useRef(null);Qo(n,e.visible&&e.disableBodyScroll);const r=a.useMemo(()=>{var p;const y=(p=Vu[e.opacity])!==null&&p!==void 0?p:e.opacity,c=ju[e.color];return c?`rgba(${c}, ${y})`:e.color},[e.color,e.opacity]),[o,s]=a.useState(e.visible),l=X.useUnmountedRef(),{opacity:h}=Ht({opacity:e.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{s(!0)},onRest:()=>{var p,y;l.current||(s(e.visible),e.visible?(p=e.afterShow)===null||p===void 0||p.call(e):(y=e.afterClose)===null||y===void 0||y.call(e))}}),u=Rs(e.stopPropagation,Ce(e,a.createElement(vt.div,{className:tr,ref:n,"aria-hidden":!0,style:Object.assign(Object.assign({},e.style),{background:r,opacity:h,display:o?void 0:"none"}),onClick:p=>{var y;p.target===p.currentTarget&&((y=e.onMaskClick)===null||y===void 0||y.call(e,p))}},e.onMaskClick&&a.createElement("div",{className:`${tr}-aria-button`,role:"button","aria-label":i.Mask.name,onClick:e.onMaskClick}),a.createElement("div",{className:`${tr}-content`},e.children))));return a.createElement(er,{active:o,forceRender:e.forceRender,destroyOnClose:e.destroyOnClose},$s(e.getContainer,u))};function it(t){return ee.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),ee.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},ee.createElement("g",{id:"CloseOutline-编组"},ee.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),ee.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 ea(t){return ee.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),ee.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},ee.createElement("g",{id:"LeftOutline-编组"},ee.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),ee.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"}))))}const qu={closeOnMaskClick:!1,closeIcon:a.createElement(it,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function Hu(t){const[e,i]=a.useState(t);return X.useIsomorphicLayoutEffect(()=>{i(t)},[t]),e}function Ku(t,e,i){return Math.max(e,Math.min(t,i))}const le={toVector(t,e){return t===void 0&&(t=e),Array.isArray(t)?t:[t,t]},add(t,e){return[t[0]+e[0],t[1]+e[1]]},sub(t,e){return[t[0]-e[0],t[1]-e[1]]},addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function ta(t,e,i){return e===0||Math.abs(e)===1/0?Math.pow(t,i*5):t*e*i/(e+i*t)}function ia(t,e,i,n=.15){return n===0?Ku(t,e,i):t<e?-ta(e-t,i-e,n)+e:t>i?+ta(t-i,i-e,n)+i:t}function Gu(t,[e,i],[n,r]){const[[o,s],[l,h]]=t;return[ia(e,o,s,n),ia(i,l,h,r)]}function Yu(t,e){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Qu(t){var e=Yu(t,"string");return typeof e=="symbol"?e:String(e)}function pe(t,e,i){return e=Qu(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function na(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,n)}return i}function J(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?na(Object(i),!0).forEach(function(n){pe(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):na(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}const ra={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 oa(t){return t?t[0].toUpperCase()+t.slice(1):""}const Xu=["enter","leave"];function Ju(t=!1,e){return t&&!Xu.includes(e)}function $u(t,e="",i=!1){const n=ra[t],r=n&&n[e]||e;return"on"+oa(t)+oa(r)+(Ju(i,r)?"Capture":"")}const Ru=["gotpointercapture","lostpointercapture"];function ef(t){let e=t.substring(2).toLowerCase();const i=!!~e.indexOf("passive");i&&(e=e.replace("passive",""));const n=Ru.includes(e)?"capturecapture":"capture",r=!!~e.indexOf(n);return r&&(e=e.replace("capture","")),{device:e,capture:r,passive:i}}function tf(t,e=""){const i=ra[t],n=i&&i[e]||e;return t+n}function Pi(t){return"touches"in t}function sa(t){return Pi(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function nf(t){return Array.from(t.touches).filter(e=>{var i,n;return e.target===t.currentTarget||((i=t.currentTarget)===null||i===void 0||(n=i.contains)===null||n===void 0?void 0:n.call(i,e.target))})}function rf(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function aa(t){return Pi(t)?rf(t)[0]:t}function of(t){return nf(t).map(e=>e.identifier)}function ir(t){const e=aa(t);return Pi(t)?e.identifier:e.pointerId}function la(t){const e=aa(t);return[e.clientX,e.clientY]}function sf(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:i,altKey:n,metaKey:r,ctrlKey:o}=t;Object.assign(e,{shiftKey:i,altKey:n,metaKey:r,ctrlKey:o})}return e}function Mi(t,...e){return typeof t=="function"?t(...e):t}function af(){}function lf(...t){return t.length===0?af:t.length===1?t[0]:function(){let e;for(const i of t)e=i.apply(this,arguments)||e;return e}}function ca(t,e){return Object.assign({},e,t||{})}const cf=32;class df{constructor(e,i,n){this.ctrl=e,this.args=i,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:i,ingKey:n,args:r}=this;i[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const i=this.state,n=this.config;i._active||(this.reset(),this.computeInitial(),i._active=!0,i.target=e.target,i.currentTarget=e.currentTarget,i.lastOffset=n.from?Mi(n.from,i):i.offset,i.offset=i.lastOffset,i.startTime=i.timeStamp=e.timeStamp)}computeValues(e){const i=this.state;i._values=e,i.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:i,config:n,shared:r}=this;i.args=this.args;let o=0;if(e&&(i.event=e,n.preventDefault&&e.cancelable&&i.event.preventDefault(),i.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,sf(e)),r.down=r.pressed=r.buttons%2===1||r.touches>0,o=e.timeStamp-i.timeStamp,i.timeStamp=e.timeStamp,i.elapsedTime=i.timeStamp-i.startTime),i._active){const T=i._delta.map(Math.abs);le.addTo(i._distance,T)}this.axisIntent&&this.axisIntent(e);const[s,l]=i._movement,[h,u]=n.threshold,{_step:p,values:y}=i;if(n.hasCustomTransform?(p[0]===!1&&(p[0]=Math.abs(s)>=h&&y[0]),p[1]===!1&&(p[1]=Math.abs(l)>=u&&y[1])):(p[0]===!1&&(p[0]=Math.abs(s)>=h&&Math.sign(s)*h),p[1]===!1&&(p[1]=Math.abs(l)>=u&&Math.sign(l)*u)),i.intentional=p[0]!==!1||p[1]!==!1,!i.intentional)return;const c=[0,0];if(n.hasCustomTransform){const[T,L]=y;c[0]=p[0]!==!1?T-p[0]:0,c[1]=p[1]!==!1?L-p[1]:0}else c[0]=p[0]!==!1?s-p[0]:0,c[1]=p[1]!==!1?l-p[1]:0;this.restrictToAxis&&!i._blocked&&this.restrictToAxis(c);const m=i.offset,f=i._active&&!i._blocked||i.active;f&&(i.first=i._active&&!i.active,i.last=!i._active&&i.active,i.active=r[this.ingKey]=i._active,e&&(i.first&&("bounds"in n&&(i._bounds=Mi(n.bounds,i)),this.setup&&this.setup()),i.movement=c,this.computeOffset()));const[b,v]=i.offset,[[C,S],[w,k]]=i._bounds;i.overflow=[b<C?-1:b>S?1:0,v<w?-1:v>k?1:0],i._movementBound[0]=i.overflow[0]?i._movementBound[0]===!1?i._movement[0]:i._movementBound[0]:!1,i._movementBound[1]=i.overflow[1]?i._movementBound[1]===!1?i._movement[1]:i._movementBound[1]:!1;const P=i._active?n.rubberband||[0,0]:[0,0];if(i.offset=Gu(i._bounds,i.offset,P),i.delta=le.sub(i.offset,m),this.computeMovement(),f&&(!i.last||o>cf)){i.delta=le.sub(i.offset,m);const T=i.delta.map(Math.abs);le.addTo(i.distance,T),i.direction=i.delta.map(Math.sign),i._direction=i._delta.map(Math.sign),!i.first&&o>0&&(i.velocity=[T[0]/o,T[1]/o],i.timeDelta=o)}}emit(){const e=this.state,i=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(J(J(J({},i),e),{},{[this.aliasKey]:e.values}));r!==void 0&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function uf([t,e],i){const n=Math.abs(t),r=Math.abs(e);if(n>r&&n>i)return"x";if(r>n&&r>i)return"y"}class ff extends df{constructor(...e){super(...e),pe(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=le.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=le.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const i=this.state,n=this.config;if(!i.axis&&e){const r=typeof n.axisThreshold=="object"?n.axisThreshold[sa(e)]:n.axisThreshold;i.axis=uf(i._movement,r)}i._blocked=(n.lockDirection||!!n.axis)&&!i.axis||!!n.axis&&n.axis!==i.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const hf=t=>t,da=.15,ua={enabled(t=!0){return t},eventOptions(t,e,i){return J(J({},i.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[da,da];case!1:return[0,0];default:return le.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return le.toVector(t)},transform(t,e,i){const n=t||i.shared.transform;return this.hasCustomTransform=!!n,n||hf},threshold(t){return le.toVector(t,0)}},pf=0,Gt=J(J({},ua),{},{axis(t,e,{axis:i}){if(this.lockDirection=i==="lock",!this.lockDirection)return i},axisThreshold(t=pf){return t},bounds(t={}){if(typeof t=="function")return o=>Gt.bounds(t(o));if("current"in t)return()=>t.current;if(typeof HTMLElement=="function"&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:i=1/0,top:n=-1/0,bottom:r=1/0}=t;return[[e,i],[n,r]]}}),fa={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};class mf extends ff{constructor(...e){super(...e),pe(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const i=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:i.left-n.left+e.offset[0],right:i.right-n.right+e.offset[0],top:i.top-n.top+e.offset[1],bottom:i.bottom-n.bottom+e.offset[1]};e._bounds=Gt.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const i=this.config,n=this.state;if(e.buttons!=null&&(Array.isArray(i.pointerButtons)?!i.pointerButtons.includes(e.buttons):i.pointerButtons!==-1&&i.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);i.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(r&&r.size>1&&n._pointerActive)&&(this.start(e),this.setupPointer(e),n._pointerId=ir(e),n._pointerActive=!0,this.computeValues(la(e)),this.computeInitial(),i.preventScrollAxis&&sa(e)!=="mouse"?(n._active=!1,this.setupScrollPrevention(e)):i.delay>0?(this.setupDelayTrigger(e),i.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const i=this.state;i._active=!0,i._preventScroll=!0,i._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const i=this.state,n=this.config;if(!i._pointerActive)return;const r=ir(e);if(i._pointerId!==void 0&&r!==i._pointerId)return;const o=la(e);if(document.pointerLockElement===e.target?i._delta=[e.movementX,e.movementY]:(i._delta=le.sub(o,i._values),this.computeValues(o)),le.addTo(i._movement,i._delta),this.compute(e),i._delayed&&i.intentional){this.timeoutStore.remove("dragDelay"),i.active=!1,this.startPointerDrag(e);return}if(n.preventScrollAxis&&!i._preventScroll)if(i.axis)if(i.axis===n.preventScrollAxis||n.preventScrollAxis==="xy"){i._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(l){}const i=this.state,n=this.config;if(!i._active||!i._pointerActive)return;const r=ir(e);if(i._pointerId!==void 0&&r!==i._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,s]=i._distance;if(i.tap=o<=n.tapsThreshold&&s<=n.tapsThreshold,i.tap&&n.filterTaps)i._force=!0;else{const[l,h]=i._delta,[u,p]=i._movement,[y,c]=n.swipe.velocity,[m,f]=n.swipe.distance,b=n.swipe.duration;if(i.elapsedTime<b){const v=Math.abs(l/i.timeDelta),C=Math.abs(h/i.timeDelta);v>y&&Math.abs(u)>m&&(i.swipe[0]=Math.sign(l)),C>c&&Math.abs(p)>f&&(i.swipe[1]=Math.sign(h))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const i=this.config,n=i.device;i.pointerLock&&e.currentTarget.requestPointerLock(),i.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,bf(e);const i=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",i),this.eventStore.add(this.sharedConfig.window,"touch","cancel",i),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const i=fa[e.key];if(i){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=i(this.config.keyboardDisplacement,r),n._keyboardActive=!0,le.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in fa&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const i=this.config.device;e(i,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(i,"change",this.pointerMove.bind(this)),e(i,"end",this.pointerUp.bind(this)),e(i,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function bf(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const Yt=typeof window!="undefined"&&window.document&&window.document.createElement;function ha(){return Yt&&"ontouchstart"in window}function gf(){return ha()||Yt&&window.navigator.maxTouchPoints>1}function vf(){return Yt&&"onpointerdown"in window}function yf(){return Yt&&"exitPointerLock"in window.document}function wf(){try{return"constructor"in GestureEvent}catch(t){return!1}}const Se={isBrowser:Yt,gesture:wf(),touch:ha(),touchscreen:gf(),pointer:vf(),pointerLock:yf()},xf=250,Sf=180,kf=.5,Ef=50,Cf=250,Pf=10,pa={mouse:0,touch:0,pen:8},Mf=J(J({},Gt),{},{device(t,e,{pointer:{touch:i=!1,lock:n=!1,mouse:r=!1}={}}){return this.pointerLock=n&&Se.pointerLock,Se.touch&&i?"touch":this.pointerLock?"mouse":Se.pointer&&!r?"pointer":Se.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:i}){if(this.preventScrollDelay=typeof i=="number"?i:i||i===void 0&&t?xf:void 0,!(!Se.touchscreen||i===!1))return t||(i!==void 0?"y":void 0)},pointerCapture(t,e,{pointer:{capture:i=!0,buttons:n=1,keys:r=!0}={}}){return this.pointerButtons=n,this.keys=r,!this.pointerLock&&this.device==="pointer"&&i},threshold(t,e,{filterTaps:i=!1,tapsThreshold:n=3,axis:r=void 0}){const o=le.toVector(t,i?n:r?1:0);return this.filterTaps=i,this.tapsThreshold=n,o},swipe({velocity:t=kf,distance:e=Ef,duration:i=Cf}={}){return{velocity:this.transform(le.toVector(t)),distance:this.transform(le.toVector(e)),duration:i}},delay(t=0){switch(t){case!0:return Sf;case!1:return 0;default:return t}},axisThreshold(t){return t?J(J({},pa),t):pa},keyboardDisplacement(t=Pf){return t}});J(J({},ua),{},{device(t,e,{shared:i,pointer:{touch:n=!1}={}}){if(i.target&&!Se.touch&&Se.gesture)return"gesture";if(Se.touch&&n)return"touch";if(Se.touchscreen){if(Se.pointer)return"pointer";if(Se.touch)return"touch"}},bounds(t,e,{scaleBounds:i={},angleBounds:n={}}){const r=s=>{const l=ca(Mi(i,s),{min:-1/0,max:1/0});return[l.min,l.max]},o=s=>{const l=ca(Mi(n,s),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof i!="function"&&typeof n!="function"?[r(),o()]:s=>[r(s),o(s)]},threshold(t,e,i){return this.lockDirection=i.axis==="lock",le.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t},pinchOnWheel(t=!0){return t}}),J(J({},Gt),{},{mouseOnly:(t=!0)=>t}),J(J({},Gt),{},{mouseOnly:(t=!0)=>t});const ma=new Map,nr=new Map;function Tf(t){ma.set(t.key,t.engine),nr.set(t.key,t.resolver)}const _f={key:"drag",engine:mf,resolver:Mf};function If(t,e){if(t==null)return{};var i={},n=Object.keys(t),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(i[r]=t[r]);return i}function Af(t,e){if(t==null)return{};var i=If(t,e),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}const Of={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=Se.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},Ff=["target","eventOptions","window","enabled","transform"];function Ti(t={},e){const i={};for(const[n,r]of Object.entries(e))switch(typeof r){case"function":i[n]=r.call(i,t[n],n,t);break;case"object":i[n]=Ti(t[n],r);break;case"boolean":r&&(i[n]=t[n]);break}return i}function Bf(t,e,i={}){const n=t,{target:r,eventOptions:o,window:s,enabled:l,transform:h}=n,u=Af(n,Ff);if(i.shared=Ti({target:r,eventOptions:o,window:s,enabled:l,transform:h},Of),e){const p=nr.get(e);i[e]=Ti(J({shared:i.shared},u),p)}else for(const p in u){const y=nr.get(p);y&&(i[p]=Ti(J({shared:i.shared},u[p]),y))}return i}class ba{constructor(e,i){pe(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=i}add(e,i,n,r,o){const s=this._listeners,l=tf(i,n),h=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=J(J({},h),o);e.addEventListener(l,r,u);const p=()=>{e.removeEventListener(l,r,u),s.delete(p)};return s.add(p),p}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class zf{constructor(){pe(this,"_timeouts",new Map)}add(e,i,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(i,n,...r))}remove(e){const i=this._timeouts.get(e);i&&window.clearTimeout(i)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class Nf{constructor(e){pe(this,"gestures",new Set),pe(this,"_targetEventStore",new ba(this)),pe(this,"gestureEventStores",{}),pe(this,"gestureTimeoutStores",{}),pe(this,"handlers",{}),pe(this,"config",{}),pe(this,"pointerIds",new Set),pe(this,"touchIds",new Set),pe(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Lf(this,e)}setEventIds(e){if(Pi(e))return this.touchIds=new Set(of(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,i){this.handlers=e,this.nativeHandlers=i}applyConfig(e,i){this.config=Bf(e,i,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const i=this.config.shared,n={};let r;if(!(i.target&&(r=i.target(),!r))){if(i.enabled){for(const s of this.gestures){const l=this.config[s],h=ga(n,l.eventOptions,!!r);if(l.enabled){const u=ma.get(s);new u(this,e,s).bind(h)}}const o=ga(n,i.eventOptions,!!r);for(const s in this.nativeHandlers)o(s,"",l=>this.nativeHandlers[s](J(J({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const o in n)n[o]=lf(...n[o]);if(!r)return n;for(const o in n){const{device:s,capture:l,passive:h}=ef(o);this._targetEventStore.add(r,s,"",n[o],{capture:l,passive:h})}}}}function yt(t,e){t.gestures.add(e),t.gestureEventStores[e]=new ba(t,e),t.gestureTimeoutStores[e]=new zf}function Lf(t,e){e.drag&&yt(t,"drag"),e.wheel&&yt(t,"wheel"),e.scroll&&yt(t,"scroll"),e.move&&yt(t,"move"),e.pinch&&yt(t,"pinch"),e.hover&&yt(t,"hover")}const ga=(t,e,i)=>(n,r,o,s={},l=!1)=>{var h,u;const p=(h=s.capture)!==null&&h!==void 0?h:e.capture,y=(u=s.passive)!==null&&u!==void 0?u:e.passive;let c=l?n:$u(n,r,p);i&&y&&(c+="Passive"),t[c]=t[c]||[],t[c].push(o)};function Df(t,e={},i,n){const r=a.useMemo(()=>new Nf(t),[]);if(r.applyHandlers(t,n),r.applyConfig(e,i),a.useEffect(r.effect.bind(r)),a.useEffect(()=>r.clean.bind(r),[]),e.target===void 0)return r.bind.bind(r)}function Zf(t,e){return Tf(_f),Df({drag:t},e||{},"drag")}const _i="adm-popup",Vf=Object.assign(Object.assign({},qu),{closeOnSwipe:!1,position:"bottom"}),rr=t=>{const{locale:e,popup:i={}}=si(),n=He(Vf,i,t),r=te(`${_i}-body`,n.bodyClassName,`${_i}-body-position-${n.position}`),[o,s]=a.useState(n.visible),l=a.useRef(null);Qo(l,n.disableBodyScroll&&o?"strict":!1),X.useIsomorphicLayoutEffect(()=>{n.visible&&s(!0)},[n.visible]);const h=X.useUnmountedRef(),{percent:u}=Ht({percent:n.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var m,f;h.current||(s(n.visible),n.visible?(m=n.afterShow)===null||m===void 0||m.call(n):(f=n.afterClose)===null||f===void 0||f.call(n))}}),p=Zf(({swipe:[,m]})=>{var f;n.closeOnSwipe&&(m===1&&n.position==="bottom"||m===-1&&n.position==="top")&&((f=n.onClose)===null||f===void 0||f.call(n))},{axis:"y",enabled:["top","bottom"].includes(n.position)}),y=Hu(o&&n.visible),c=Rs(n.stopPropagation,Ce(n,a.createElement("div",Object.assign({className:_i,onClick:n.onClick,style:{display:o?void 0:"none",touchAction:["top","bottom"].includes(n.position)?"none":"auto"}},p()),n.mask&&a.createElement(Wu,{visible:y,forceRender:n.forceRender,destroyOnClose:n.destroyOnClose,onMaskClick:m=>{var f,b;(f=n.onMaskClick)===null||f===void 0||f.call(n,m),n.closeOnMaskClick&&((b=n.onClose)===null||b===void 0||b.call(n))},className:n.maskClassName,style:n.maskStyle,disableBodyScroll:!1,stopPropagation:n.stopPropagation}),a.createElement(vt.div,{className:r,style:Object.assign(Object.assign({},n.bodyStyle),{pointerEvents:u.to(m=>m===0?"unset":"none"),transform:u.to(m=>n.position==="bottom"?`translate(0, ${m}%)`:n.position==="top"?`translate(0, -${m}%)`:n.position==="left"?`translate(-${m}%, 0)`:n.position==="right"?`translate(${m}%, 0)`:"none")}),ref:l},n.showCloseButton&&a.createElement("a",{className:te(`${_i}-close-icon`,"adm-plain-anchor"),onClick:()=>{var m;(m=n.onClose)===null||m===void 0||m.call(n)},role:"button","aria-label":e.common.close},n.closeIcon),n.children))));return a.createElement(er,{active:o,forceRender:n.forceRender,destroyOnClose:n.destroyOnClose},$s(n.getContainer,c))},va="adm-safe-area",ya=t=>Ce(t,a.createElement("div",{className:te(va,`${va}-position-${t.position}`)})),jf=X.createUpdateEffect(X.useIsomorphicLayoutEffect),wt="adm-badge",wa=a.createElement(a.Fragment,null),Uf=Ho(t=>{const{content:e,color:i,children:n}=t,r=e===wa,o=te(wt,{[`${wt}-fixed`]:!!n,[`${wt}-dot`]:r,[`${wt}-bordered`]:t.bordered}),s=e||e===0?Ce(t,a.createElement("div",{className:o,style:{"--color":i}},!r&&a.createElement("div",{className:`${wt}-content`},e))):null;return n?a.createElement("div",{className:te(`${wt}-wrapper`,t.wrapperClassName),style:t.wrapperStyle},n,s):s},{dot:wa}),Wf="adm-dot-loading",qf={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},Hf={color:"default"},Kf=a.memo(t=>{var e;const i=He(Hf,t);return Ce(i,a.createElement("div",{style:{color:(e=qf[i.color])!==null&&e!==void 0?e:i.color},className:te("adm-loading",Wf)},a.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(-100.000000, -71.000000)"},a.createElement("g",{transform:"translate(95.000000, 71.000000)"},a.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(n=>a.createElement("rect",{key:n,fill:"currentColor",x:20+n*26,y:"16",width:"8",height:"8",rx:"2"},a.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${n*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"}))))))))))});function Gf(t){return!!t&&typeof t=="object"&&typeof t.then=="function"}const ke="adm-button",Yf={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:a.createElement(Kf,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},Ii=a.forwardRef((t,e)=>{const i=He(Yf,t),[n,r]=a.useState(!1),o=a.useRef(null),s=i.loading==="auto"?n:i.loading,l=i.disabled||s;a.useImperativeHandle(e,()=>({get nativeElement(){return o.current}}));const h=u=>td(void 0,void 0,void 0,function*(){if(!i.onClick)return;const p=i.onClick(u);if(Gf(p))try{r(!0),yield p,r(!1)}catch(y){throw r(!1),y}});return Ce(i,a.createElement("button",{ref:o,type:i.type,onClick:h,className:te(ke,{[`${ke}-${i.color}`]:i.color,[`${ke}-block`]:i.block,[`${ke}-disabled`]:l,[`${ke}-fill-outline`]:i.fill==="outline",[`${ke}-fill-none`]:i.fill==="none",[`${ke}-mini`]:i.size==="mini",[`${ke}-small`]:i.size==="small",[`${ke}-large`]:i.size==="large",[`${ke}-loading`]:s},`${ke}-shape-${i.shape}`),disabled:l,onMouseDown:i.onMouseDown,onMouseUp:i.onMouseUp,onTouchStart:i.onTouchStart,onTouchEnd:i.onTouchEnd},s?a.createElement("div",{className:`${ke}-loading-wrapper`},i.loadingIcon,i.loadingText):a.createElement("span",null,i.children)))});function Qf(t){const{value:e,defaultValue:i,onChange:n}=t,r=X.useUpdate(),o=a.useRef(e!==void 0?e:i);e!==void 0&&(o.current=e);const s=X.useMemoizedFn((l,h=!1)=>{const u=typeof l=="function"?l(o.current):l;if(!(!h&&u===o.current))return o.current=u,r(),n==null?void 0:n(u)});return[o.current,s]}function Xf(t,e){const i=X.useMemoizedFn(t);X.useIsomorphicLayoutEffect(()=>{const n=e.current;if(n)if(window.ResizeObserver){let r;const o=new ResizeObserver(()=>{r=window.requestAnimationFrame(()=>i(n))});return o.observe(n),()=>{window.cancelAnimationFrame(r),o.disconnect()}}else i(n)},[e])}function Jf(t,e,i){if(t&&typeof MutationObserver!="undefined"){let n=new MutationObserver(()=>{i()});return n.observe(t,e),()=>{n&&(n.disconnect(),n=null)}}return()=>{}}function $f(t,e,i){const n=X.useMemoizedFn(t);a.useEffect(()=>Jf(e.current,i,n),[e])}function xa(t,e,i){let n=t;return n=Math.max(t,e),i!==void 0&&(n=Math.min(n,i)),n}var Sa={exports:{}},U={};/**
|
|
17
|
-
* @license React
|
|
18
|
-
* react-is.production.min.js
|
|
19
|
-
*
|
|
20
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
-
*
|
|
22
|
-
* This source code is licensed under the MIT license found in the
|
|
23
|
-
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/var or=Symbol.for("react.element"),sr=Symbol.for("react.portal"),Ai=Symbol.for("react.fragment"),Oi=Symbol.for("react.strict_mode"),Fi=Symbol.for("react.profiler"),Bi=Symbol.for("react.provider"),zi=Symbol.for("react.context"),Rf=Symbol.for("react.server_context"),Ni=Symbol.for("react.forward_ref"),Li=Symbol.for("react.suspense"),Di=Symbol.for("react.suspense_list"),Zi=Symbol.for("react.memo"),Vi=Symbol.for("react.lazy"),e1=Symbol.for("react.offscreen"),ka;ka=Symbol.for("react.module.reference");function Ee(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case or:switch(t=t.type,t){case Ai:case Fi:case Oi:case Li:case Di:return t;default:switch(t=t&&t.$$typeof,t){case Rf:case zi:case Ni:case Vi:case Zi:case Bi:return t;default:return e}}case sr:return e}}}U.ContextConsumer=zi,U.ContextProvider=Bi,U.Element=or,U.ForwardRef=Ni,U.Fragment=Ai,U.Lazy=Vi,U.Memo=Zi,U.Portal=sr,U.Profiler=Fi,U.StrictMode=Oi,U.Suspense=Li,U.SuspenseList=Di,U.isAsyncMode=function(){return!1},U.isConcurrentMode=function(){return!1},U.isContextConsumer=function(t){return Ee(t)===zi},U.isContextProvider=function(t){return Ee(t)===Bi},U.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===or},U.isForwardRef=function(t){return Ee(t)===Ni},U.isFragment=function(t){return Ee(t)===Ai},U.isLazy=function(t){return Ee(t)===Vi},U.isMemo=function(t){return Ee(t)===Zi},U.isPortal=function(t){return Ee(t)===sr},U.isProfiler=function(t){return Ee(t)===Fi},U.isStrictMode=function(t){return Ee(t)===Oi},U.isSuspense=function(t){return Ee(t)===Li},U.isSuspenseList=function(t){return Ee(t)===Di},U.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Ai||t===Fi||t===Oi||t===Li||t===Di||t===e1||typeof t=="object"&&t!==null&&(t.$$typeof===Vi||t.$$typeof===Zi||t.$$typeof===Bi||t.$$typeof===zi||t.$$typeof===Ni||t.$$typeof===ka||t.getModuleId!==void 0)},U.typeOf=Ee,Sa.exports=U;var t1=Sa.exports;function i1(t,e){let i=0;function n(r){a.Children.forEach(r,o=>{t1.isFragment(o)?n(o.props.children):(e(o,i),i+=1)})}n(t)}const me="adm-tabs",n1=()=>null,r1={activeLineMode:"auto",stretch:!0,direction:"ltr"},ji=Ho(t=>{var e;const i=He(r1,t),n=a.useRef(null),r=a.useRef(null),o={};let s=null;const l=[],h=i.direction==="rtl";i1(i.children,(P,T)=>{if(!a.isValidElement(P))return;const L=P.key;if(typeof L!="string")return;T===0&&(s=L);const q=l.push(P);o[L]=q-1});const[u,p]=Qf({value:i.activeKey,defaultValue:(e=i.defaultActiveKey)!==null&&e!==void 0?e:s,onChange:P=>{var T;P!==null&&((T=i.onChange)===null||T===void 0||T.call(i,P))}}),[{x:y,width:c},m]=Ht(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:f},b]=Ht(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:v,rightMaskOpacity:C},S]=Ht(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function w(P=!1,T=!1){const L=n.current;if(!L)return;const q=o[u];if(q===void 0){m.start({x:0,width:0,immediate:!0});return}const ne=r.current;if(!ne)return;const K=L.children.item(q+1),ue=K.children.item(0),$=ue.offsetLeft,Y=ue.offsetWidth,Te=K.offsetLeft,Xt=K.offsetWidth,Ze=L.offsetWidth,kt=L.scrollWidth,on=L.scrollLeft,st=ne.offsetWidth;let ze=0,at=0;if(i.activeLineMode==="auto"?(ze=$,at=Y):i.activeLineMode==="full"?(ze=Te,at=Xt):ze=$+(Y-st)/2,h){const sn=["auto","full"].includes(i.activeLineMode)?at:st;ze=-(Ze-ze-sn)}m.start({x:ze,width:at,immediate:P});const Ve=kt-Ze;if(Ve<=0)return;let Xe=0;h?Xe=-xa(Ze/2-$+Y/2-st,0,Ve):Xe=xa($-(Ze-Y)/2,0,Ve),(!T||i.autoScroll!==!1)&&b.start({scrollLeft:Xe,from:{scrollLeft:on},immediate:P})}X.useIsomorphicLayoutEffect(()=>{w(!y.isAnimating)},[]),jf(()=>{w()},[u,h,i.activeLineMode]),Xf(()=>{w(!y.isAnimating)},n),$f(()=>{w(!y.isAnimating,!0)},n,{subtree:!0,childList:!0,characterData:!0});const{run:k}=X.useThrottleFn((P=!1)=>{const T=n.current;if(!T)return;const L=T.scrollLeft;let q=!1,ne=!1;h?(q=Math.round(-L)+T.offsetWidth<T.scrollWidth,ne=L<0):(q=L>0,ne=L+T.offsetWidth<T.scrollWidth),S.start({leftMaskOpacity:q?1:0,rightMaskOpacity:ne?1:0,immediate:P})},{wait:100,trailing:!0,leading:!0});return X.useIsomorphicLayoutEffect(()=>{k(!0)},[]),Ce(i,a.createElement("div",{className:me,style:{direction:i.direction}},a.createElement("div",{className:`${me}-header`},a.createElement(vt.div,{className:te(`${me}-header-mask`,`${me}-header-mask-left`),style:{opacity:v}}),a.createElement(vt.div,{className:te(`${me}-header-mask`,`${me}-header-mask-right`),style:{opacity:C}}),a.createElement(vt.div,{className:`${me}-tab-list`,ref:n,scrollLeft:f,onScroll:k,role:"tablist"},a.createElement(vt.div,{ref:r,className:`${me}-tab-line`,style:{width:i.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":c,x:y}}),l.map(P=>Ce(P.props,a.createElement("div",{key:P.key,className:te(`${me}-tab-wrapper`,{[`${me}-tab-wrapper-stretch`]:i.stretch})},a.createElement("div",{onClick:()=>{const{key:T}=P;P.props.disabled||T!=null&&p(T.toString())},className:te(`${me}-tab`,{[`${me}-tab-active`]:P.key===u,[`${me}-tab-disabled`]:P.props.disabled}),role:"tab","aria-selected":P.key===u},P.props.title)))))),l.map(P=>{if(P.props.children===void 0)return null;const T=P.key===u;return a.createElement(er,{key:P.key,active:T,forceRender:P.props.forceRender,destroyOnClose:P.props.destroyOnClose},a.createElement("div",{className:`${me}-content`,style:{display:T?"block":"none"}},P.props.children))})))},{Tab:n1}),nt="adm-error-block",o1={status:"default"};function s1(t){return i=>{var n;const r=He(o1,i),{locale:o}=si(),s=o.ErrorBlock[r.status],l="description"in r?r.description:s.description,h="title"in r?r.title:s.title,u=(n=r.image)!==null&&n!==void 0?n:t[r.status],p=typeof u=="string"?a.createElement("img",{src:u,alt:"error block image"}):u;return Ce(r,a.createElement("div",{className:te(nt,{[`${nt}-full-page`]:r.fullPage})},a.createElement("div",{className:`${nt}-image`},p),a.createElement("div",{className:`${nt}-description`},![void 0,null].includes(h)&&a.createElement("div",{className:`${nt}-description-title`},h),![void 0,null].includes(l)&&a.createElement("div",{className:`${nt}-description-subtitle`},l)),r.children&&a.createElement("div",{className:`${nt}-content`},r.children)))}}const a1=a.createElement("svg",{viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a.createElement("defs",null,a.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-default-a"},a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),a.createElement("circle",{id:"error-block-image-default-d",cx:18.823,cy:18.823,r:18.823}),a.createElement("rect",{id:"error-block-image-default-b",x:3.5,y:9,width:51.429,height:88,rx:4.571})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.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)"}),a.createElement("g",{transform:"rotate(-90 102.429 55.357)"},a.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"}),a.createElement("mask",{id:"error-block-image-default-c",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-default-b"})),a.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-default-b"}),a.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)"}),a.createElement("path",{stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"M36.774 5.474H21.523"}),a.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"})),a.createElement("circle",{cx:8.571,cy:8.571,r:8.571,transform:"translate(22.857 142)",fill:"#FFCD6B",fillRule:"nonzero"}),a.createElement("g",{transform:"translate(132.857 124)"},a.createElement("mask",{id:"error-block-image-default-e",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-default-d"})),a.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-default-d"}),a.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:13.886,cy:15.12,r:18.823}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:23.4,cy:29.057,r:1}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.343,cy:29.829,r:1}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:18.771,cy:32.657,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:29.571,cy:25.971,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:19.286,cy:7.971,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:26.486,cy:5.914,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:11.057,cy:6.943,r:1}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.086,cy:15.686,r:1.286}),a.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:22.886,cy:14.657,r:1})),a.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"}))),l1=a.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a.createElement("title",null,"@反馈/异常/网络服务异常"),a.createElement("defs",null,a.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-disconnected-c"},a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),a.createElement("circle",{id:"error-block-image-disconnected-d",cx:22.309,cy:22.309,r:22.309}),a.createElement("path",{id:"error-block-image-disconnected-a",d:"M0 0h400v400H0z"})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("mask",{id:"error-block-image-disconnected-b",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-disconnected-a"})),a.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"url(#error-block-image-disconnected-c)"},a.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"})),a.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},a.createElement("g",{transform:"translate(85.858 150.644)"},a.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"}),a.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"}),a.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"}),a.createElement("ellipse",{fill:"#7EACFF",transform:"rotate(10 147 41.933)",cx:147,cy:41.933,rx:9.143,ry:10.286}),a.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"}),a.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"}),a.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"}))),a.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},a.createElement("g",{transform:"translate(275.143 302.571)"},a.createElement("mask",{id:"error-block-image-disconnected-e",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-disconnected-d"})),a.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-disconnected-d"}),a.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:16.457,cy:17.92,r:22.309}),a.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:14.263,cy:12.069,r:2.194}))),a.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"#FBBE47",fillRule:"nonzero"},a.createElement("circle",{cx:12,cy:12,r:12,transform:"translate(84 297.714)"})))),c1=a.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a.createElement("defs",null,a.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-empty-a"},a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),a.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"})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.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)"}),a.createElement("g",{transform:"translate(108.571 189.886)"},a.createElement("mask",{id:"error-block-image-empty-c",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-empty-b"})),a.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-empty-b"}),a.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)"})),a.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"}),a.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"}),a.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"}),a.createElement("g",{transform:"translate(283.429 177.143)",fillRule:"nonzero"},a.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"}),a.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"}),a.createElement("circle",{fill:"#FFB400",cx:26.4,cy:56.869,r:1.45}),a.createElement("circle",{fill:"#FFB400",cx:39.453,cy:58.319,r:1}),a.createElement("circle",{fill:"#FFB400",cx:17.698,cy:63.637,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:38.002,cy:51.068,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:18.665,cy:17.228,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:32.201,cy:13.36,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:26.83,cy:20.666,r:1.45}),a.createElement("circle",{fill:"#FFB400",cx:38.969,cy:31.731,r:2.417}),a.createElement("circle",{fill:"#FFB400",cx:25.433,cy:29.797,r:1.45}),a.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"})))),d1=a.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a.createElement("defs",null,a.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-busy-a"},a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),a.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),a.createElement("circle",{id:"error-block-image-busy-b",cx:34.857,cy:34.857,r:34.857})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.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)"}),a.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"}),a.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"}),a.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"}),a.createElement("path",{stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"m196.824 197.298 52.216-.506M193.329 330.5h52.215"}),a.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"}),a.createElement("circle",{cx:14.857,cy:14.857,r:14.857,transform:"translate(106.857 248.571)",fill:"#FFCD6B",fillRule:"nonzero"}),a.createElement("g",{transform:"translate(236.571 284.571)"},a.createElement("mask",{id:"error-block-image-busy-c",fill:"#fff"},a.createElement("use",{xlinkHref:"#error-block-image-busy-b"})),a.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-busy-b"}),a.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:25.714,cy:28,r:34.857}),a.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:22.286,cy:18.857,r:3.429})))),u1=s1({default:a1,disconnected:l1,empty:c1,busy:d1}),rt="adm-space",f1={direction:"horizontal"},Ui=t=>{const e=He(f1,t),{direction:i,onClick:n}=e;return Ce(e,a.createElement("div",{className:te(rt,{[`${rt}-wrap`]:e.wrap,[`${rt}-block`]:e.block,[`${rt}-${i}`]:!0,[`${rt}-align-${e.align}`]:!!e.align,[`${rt}-justify-${e.justify}`]:!!e.justify}),onClick:n},a.Children.map(e.children,r=>r!=null&&a.createElement("div",{className:`${rt}-item`},r))))},xt="adm-nav-bar",Ea=a.createElement(ea,null),h1=t=>{const{navBar:e={}}=si(),i=He(e,t),{back:n,backIcon:r,backArrow:o}=i,s=e.backIcon||Ea,l=sd(Ea,e.backIcon,o===!0?s:o,r===!0?s:r);return Ce(i,a.createElement("div",{className:te(xt)},a.createElement("div",{className:`${xt}-left`,role:"button"},n!==null&&a.createElement("div",{className:`${xt}-back`,onClick:i.onBack},l&&a.createElement("span",{className:`${xt}-back-arrow`},l),a.createElement("span",{"aria-hidden":"true"},n)),i.left),a.createElement("div",{className:`${xt}-title`},i.children),a.createElement("div",{className:`${xt}-right`},i.right)))},Ca=g.createStyles(({css:t,token:e})=>({header:t`
|
|
25
|
-
height: var(--nb-mobile-page-header-height);
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
justify-content: space-between;
|
|
29
|
-
border-bottom: 1px solid ${e.colorSplit};
|
|
30
|
-
position: sticky;
|
|
31
|
-
top: 0;
|
|
32
|
-
background-color: white;
|
|
33
|
-
z-index: 1000;
|
|
34
|
-
|
|
35
|
-
// to match the button named 'Add block'
|
|
36
|
-
& + .nb-grid-container > .nb-grid > .nb-grid-warp > .ant-btn {
|
|
37
|
-
margin: 12px;
|
|
38
|
-
}
|
|
39
|
-
`,placeholder:t`
|
|
40
|
-
display: inline-block;
|
|
41
|
-
padding: 12px;
|
|
42
|
-
visibility: hidden;
|
|
43
|
-
`,closeIcon:t`
|
|
44
|
-
display: inline-block;
|
|
45
|
-
padding: 12px;
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
`,body:t`
|
|
48
|
-
border-top-left-radius: 8px;
|
|
49
|
-
border-top-right-radius: 8px;
|
|
50
|
-
max-height: calc(100% - var(--nb-mobile-page-header-height));
|
|
51
|
-
overflow-y: auto;
|
|
52
|
-
overflow-x: hidden;
|
|
53
|
-
background-color: ${e.colorBgLayout};
|
|
54
|
-
|
|
55
|
-
// clear the margin-bottom of the last block
|
|
56
|
-
& > .nb-grid-container > .nb-grid > .nb-grid-warp > .nb-grid-row:nth-last-child(2) .noco-card-item {
|
|
57
|
-
margin-bottom: 0;
|
|
58
|
-
|
|
59
|
-
& > .ant-card {
|
|
60
|
-
margin-bottom: 0 !important;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
`,footer:t`
|
|
64
|
-
padding: 8px var(--nb-mobile-page-tabs-content-padding);
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
justify-content: flex-end;
|
|
68
|
-
position: sticky;
|
|
69
|
-
bottom: 0;
|
|
70
|
-
left: 0;
|
|
71
|
-
right: 0;
|
|
72
|
-
z-index: 1000;
|
|
73
|
-
border-top: 1px solid ${e.colorSplit};
|
|
74
|
-
background-color: ${e.colorBgLayout};
|
|
75
|
-
|
|
76
|
-
.ant-btn {
|
|
77
|
-
margin-left: 8px;
|
|
78
|
-
}
|
|
79
|
-
`})),Qt=10,p1=g.Filter.Action,Pa=g.withDynamicSchemaProps(t=>d.jsx(p1,R(B({},t),{Container:e=>{const{visiblePopup:i,popupContainerRef:n}=ar(e.open),r=g.useZIndexContext(),{styles:o}=Ca(),{t:s}=Je.useTranslation(),l=r+Qt,h=a.useCallback(()=>{e.onOpenChange(!1)},[e]),u=a.useMemo(()=>({token:{zIndexPopupBase:l}}),[l]),p=a.useMemo(()=>({borderTopLeftRadius:"8px",borderTopRightRadius:"8px",maxHeight:"calc(100% - var(--nb-mobile-page-header-height))",overflow:"auto",zIndex:l}),[l]),y=a.useMemo(()=>({zIndex:l}),[l]),c=a.useCallback(()=>n.current,[n]);return d.jsxs(F.ConfigProvider,{theme:u,children:[e.children,d.jsxs(rr,{visible:i,onClose:h,onMaskClick:h,getContainer:c,bodyStyle:p,maskStyle:y,closeOnSwipe:!0,children:[d.jsxs("div",{className:o.header,children:[d.jsx("span",{className:o.placeholder,children:d.jsx(it,{})}),d.jsx("span",{children:s("Filter")}),d.jsx("span",{className:o.closeIcon,onClick:h,children:d.jsx(it,{})})]}),d.jsx("div",{style:{padding:12},children:e.content}),d.jsx("div",{style:{height:150}})]})]})}})));Pa.displayName="FilterAction";const m1=g.Filter.Action,b1=()=>{g.Filter.Action=Pa,a.useEffect(()=>()=>{g.Filter.Action=m1},[])},ar=t=>{const[e]=a.useState(()=>document.querySelector(".mobile-container")),[i,n]=a.useState(!1),r=a.useRef(null),s=g.useZIndexContext()+Qt;return a.useEffect(()=>{if(!t){n(!1),r.current&&setTimeout(()=>{e.contains(r.current)&&e.removeChild(r.current),r.current=null},300);return}const l=document.createElement("div");return l.style.transform="translateZ(0)",l.style.position="absolute",l.style.top="0",l.style.left="0",l.style.right="0",l.style.bottom="0",l.style.overflow="hidden",l.style.zIndex=s.toString(),e.appendChild(l),r.current=l,n(!0),()=>{r.current&&setTimeout(()=>{e.contains(r.current)&&e.removeChild(r.current),r.current=null},300)}},[e,s,t]),{visiblePopup:i,popupContainerRef:r}},lr=D.observer(t=>{const e=D.useFieldSchema(),i=D.useField(),{visible:n,setVisible:r}=g.useActionContext(),{popupContainerRef:o,visiblePopup:s}=ar(n),{styles:l}=Ca(),h=g.useZIndexContext(),u=w1(e)||y1(e),p=u?"Action.Drawer.Footer":t.footerNodeName,y=u?{backgroundColor:"white"}:{},c=h+Qt,m=a.useMemo(()=>({zIndex:c}),[c]),f=e.reduceProperties((w,k)=>k["x-component"]===p?k:w),b=i.title||"",v=18,C=a.useCallback(()=>{r(!1)},[r]),S=a.useMemo(()=>({token:{marginBlock:v,borderRadiusBlock:0,boxShadowTertiary:"none",zIndexPopupBase:c}}),[c]);return d.jsx(g.zIndexContext.Provider,{value:c,children:d.jsx(F.ConfigProvider,{theme:S,children:d.jsxs(rr,{visible:s,onClose:C,onMaskClick:C,getContainer:()=>o.current,bodyClassName:l.body,bodyStyle:m,maskStyle:m,closeOnSwipe:!0,children:[d.jsxs("div",{className:l.header,children:[d.jsx("span",{className:l.placeholder,children:d.jsx(it,{})}),d.jsx("span",{children:b}),d.jsx("span",{className:l.closeIcon,onClick:C,children:d.jsx(it,{})})]}),u?d.jsx("div",{style:B({padding:12},y),children:d.jsx(g.SchemaComponent,{schema:e,filterProperties:w=>w["x-component"]!==p})}):d.jsx(g.SchemaComponent,{schema:e,onlyRenderProperties:!0,filterProperties:w=>w["x-component"]!==p}),f?d.jsx("div",{className:l.footer,style:u?y:null,children:d.jsx(D.RecursionField,{basePath:i.address,schema:e,onlyRenderProperties:!0,filterProperties:w=>w["x-component"]===p})}):null]})})})});lr.displayName="ActionDrawerUsedInMobile";const g1=g.Action.Drawer,v1=()=>{g.Action.Drawer=lr,a.useEffect(()=>()=>{g.Action.Drawer=g1},[])};function y1(t){return t.title==='{{t("Edit profile")}}'}function w1(t){return t.title==='{{t("Change password")}}'}const x1=g.createStyles(({css:t,token:e})=>({header:t`
|
|
80
|
-
height: var(--nb-mobile-page-header-height);
|
|
81
|
-
display: flex;
|
|
82
|
-
align-items: center;
|
|
83
|
-
justify-content: space-between;
|
|
84
|
-
border-bottom: 1px solid ${e.colorSplit};
|
|
85
|
-
position: sticky;
|
|
86
|
-
top: 0;
|
|
87
|
-
background-color: white;
|
|
88
|
-
z-index: 1000;
|
|
89
|
-
|
|
90
|
-
// to match the button named 'Add block'
|
|
91
|
-
& + .nb-grid-container > .nb-grid > .nb-grid-warp > .ant-btn {
|
|
92
|
-
// 18px is the token marginBlock value
|
|
93
|
-
margin: 12px 12px calc(12px + 18px);
|
|
94
|
-
}
|
|
95
|
-
`,placeholder:t`
|
|
96
|
-
display: inline-block;
|
|
97
|
-
padding: 12px;
|
|
98
|
-
visibility: hidden;
|
|
99
|
-
`,closeIcon:t`
|
|
100
|
-
display: inline-block;
|
|
101
|
-
padding: 12px;
|
|
102
|
-
cursor: pointer;
|
|
103
|
-
`,body:t`
|
|
104
|
-
border-top-left-radius: 8px;
|
|
105
|
-
border-top-right-radius: 8px;
|
|
106
|
-
max-height: calc(100% - var(--nb-mobile-page-header-height));
|
|
107
|
-
overflow-y: auto;
|
|
108
|
-
overflow-x: hidden;
|
|
109
|
-
// background-color: ${e.colorBgLayout};
|
|
110
|
-
|
|
111
|
-
.popover-subform-container {
|
|
112
|
-
min-width: initial;
|
|
113
|
-
max-width: initial;
|
|
114
|
-
max-height: initial;
|
|
115
|
-
overflow: hidden;
|
|
116
|
-
.ant-card {
|
|
117
|
-
border-radius: 0;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
`,footer:t`
|
|
121
|
-
padding: 8px var(--nb-mobile-page-tabs-content-padding);
|
|
122
|
-
display: flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
justify-content: flex-end;
|
|
125
|
-
position: sticky;
|
|
126
|
-
bottom: 0;
|
|
127
|
-
left: 0;
|
|
128
|
-
right: 0;
|
|
129
|
-
z-index: 1000;
|
|
130
|
-
border-top: 1px solid ${e.colorSplit};
|
|
131
|
-
background-color: ${e.colorBgLayout};
|
|
132
|
-
`})),S1=t=>{const{onOpenChange:e}=t,{visiblePopup:i,popupContainerRef:n}=ar(t.open),{styles:r}=x1(),o=D.useField(),l=g.useZIndexContext()+Qt,h=o.title||"",u=a.useMemo(()=>({zIndex:l}),[l]),p=a.useCallback(()=>{e(!1)},[e]),y=a.useCallback(()=>{e(!0)},[e]),c=a.useMemo(()=>({token:{zIndexPopupBase:l}}),[l]);return d.jsx(g.zIndexContext.Provider,{value:l,children:d.jsxs(F.ConfigProvider,{theme:c,children:[d.jsx("div",{onClick:y,children:t.children}),d.jsxs(rr,{visible:i,onClose:p,onMaskClick:p,getContainer:()=>n.current,bodyClassName:r.body,bodyStyle:u,maskStyle:u,showCloseButton:!0,closeOnSwipe:!0,children:[d.jsxs("div",{className:r.header,children:[d.jsx("span",{className:r.placeholder,children:d.jsx(it,{})}),d.jsx("span",{children:h}),d.jsx("span",{className:r.closeIcon,onClick:p,children:d.jsx(it,{})})]}),t.content,d.jsx("div",{style:{height:50}})]})]})})},k1=t=>{const{OriginComponent:e}=t;return d.jsx(e,R(B({},t),{Container:S1}))},E1=t=>{const e=t.options.items.find(r=>r.name==="dataBlocks"),i=t.options.items.find(r=>r.name==="otherBlocks"),n=["details","editForm","createForm","table","gridCard"];return new g.SchemaInitializer(R(B({},t.options),{name:"mobile:popup:common:addBlock",items:[R(B({},e),{children:[],useChildren:()=>e.useChildren().filter(r=>n.includes(r.name)),title:'{{t("Desktop data blocks")}}'}),R(B({},i),{title:'{{t("Other desktop blocks")}}'})]}))},C1=()=>{const t=g.useApp(),e=t.schemaInitializerManager.get("popup:common:addBlock");if(!e)return;const i=E1(e);t.schemaInitializerManager.add(i)},P1=g.createStyles(({css:t,token:e})=>({container:t`
|
|
133
|
-
position: absolute !important;
|
|
134
|
-
top: 0;
|
|
135
|
-
left: 0;
|
|
136
|
-
right: 0;
|
|
137
|
-
bottom: 0;
|
|
138
|
-
background-color: ${e.colorBgLayout};
|
|
139
|
-
|
|
140
|
-
.mobile-page-content > .nb-grid-container > .nb-grid > .nb-grid-warp > .ant-btn {
|
|
141
|
-
margin: 20px;
|
|
142
|
-
}
|
|
143
|
-
`,footer:t`
|
|
144
|
-
height: var(--nb-mobile-page-header-height);
|
|
145
|
-
padding-right: var(--nb-mobile-page-tabs-content-padding);
|
|
146
|
-
display: flex;
|
|
147
|
-
align-items: center;
|
|
148
|
-
justify-content: flex-end;
|
|
149
|
-
position: fixed;
|
|
150
|
-
bottom: 0;
|
|
151
|
-
left: 0;
|
|
152
|
-
right: 0;
|
|
153
|
-
background-color: white;
|
|
154
|
-
z-index: 1000;
|
|
155
|
-
`})),Ma=()=>{const{pageSchemaUid:t}=V.useParams(),[e,i]=a.useState(!1),n=a.useCallback(()=>{i(!0)},[]);return e?d.jsx(g.RemoteSchemaComponent,{uid:t,NotFoundPage:"MobileNotFoundPage",memoized:!1,onPageNotFind:n}):d.jsxs(d.Fragment,{children:[d.jsx(g.RemoteSchemaComponent,{uid:t,NotFoundPage:"MobileNotFoundPage",memoized:!1,onPageNotFind:n}),d.jsx(V.Outlet,{}),d.jsx("div",{className:"nb-mobile-subpages-slot"})]})},Wi=a.createContext(null);Wi.displayName="MobileTitleContext";const Ta=({children:t,title:e})=>{const[i,n]=a.useState(e);return d.jsx(Wi.Provider,{value:{title:i,setTitle:n},children:t})},cr=()=>a.useContext(Wi),qi=a.createContext(null);qi.displayName="MobileRoutesContext";const ce=()=>a.useContext(qi);function M1(t){const{pathname:e}=V.useLocation(),i=t.reduce((r,o)=>{var l;const s=o.schemaUid?`/${o.type}/${o.schemaUid}`:(l=o.options)==null?void 0:l.url;return s&&(r[s]=o),o.children&&o.children.forEach(h=>{var p;const u=h.schemaUid?`${s}/${h.type}/${h.schemaUid}`:(p=h.options)==null?void 0:p.url;u&&(r[u]=h)}),r},{}),n=Object.values(i).find(r=>r.schemaUid?e.includes(`/${r.schemaUid}`):r.options.url?e.includes(r.options.url):!1);return{activeTabBarItem:n,activeTabItem:i[e]||n}}function T1(t){const e=cr();a.useEffect(()=>{e&&t&&(e.setTitle(t.title),document.title=t.title)},[t,e])}const dr=({children:t,refreshRef:e,manual:i,action:n="listAccessible"})=>{const r=g.useAPIClient(),o=a.useMemo(()=>r.resource("mobileRoutes"),[r]),s=a.useMemo(()=>r.resource("uiSchemas"),[r]),{data:l,runAsync:h,loading:u}=g.useRequest(()=>o[n]({tree:!0,sort:"sort"}).then(f=>f.data),{manual:i});e&&(e.current=h);const p=a.useMemo(()=>(l==null?void 0:l.data)||[],[l]),{activeTabBarItem:y,activeTabItem:c}=M1(p);T1(y);const m=a.useMemo(()=>({api:r,activeTabBarItem:y,activeTabItem:c,routeList:p,refresh:h,resource:o,schemaResource:s}),[y,c,r,h,o,p,s]);return u?d.jsx("div",{"data-testid":"mobile-loading",style:{textAlign:"center",margin:"20px 0"},children:d.jsx(F.Spin,{})}):d.jsx(qi.Provider,{value:m,children:t})},_1=({children:t})=>{const{designable:e}=g.useDesignable(),{routeList:i}=ce(),{t:n}=de();return(!e||ed)&&Ue.isEmpty(i)?d.jsx(u1,{status:"empty",fullPage:!0,title:n("No accessible pages found"),description:n("This might be due to permission configuration issues")}):d.jsx(d.Fragment,{children:t})},_a=({children:t})=>(a.useEffect(()=>{document.body.style.setProperty("--nb-mobile-page-tabs-content-padding","12px"),document.body.style.setProperty("--nb-mobile-page-header-height","50px")},[]),d.jsx(Ta,{children:d.jsx(dr,{children:d.jsx(_1,{children:t})})})),I1=lt.createStyles(()=>({mobilePageContent:{maxWidth:"100%",overflowX:"hidden"}})),ur=({children:t,hideTabBar:e})=>{const{styles:i}=I1(),[n,r]=a.useState(0),[o,s]=a.useState(0);return a.useEffect(()=>{const l=Ue.last(document.querySelectorAll(".mobile-page-header"));if(s(l==null?void 0:l.offsetHeight),!e){const h=document.querySelector(".mobile-tab-bar");r(h==null?void 0:h.offsetHeight)}}),d.jsxs(d.Fragment,{children:[o?d.jsx("div",{style:{height:o}}):null,d.jsx("div",{className:`${i.mobilePageContent} mobile-page-content`,"data-testid":"mobile-page-content",style:{height:`calc(100% - ${(n||0)+(o||0)}px)`,boxSizing:"border-box"},children:t}),n?d.jsx("div",{style:{height:n}}):null]})},Ia=()=>{var i,n;const{tabSchemaUid:t}=V.useParams(),{activeTabBarItem:e}=ce();return d.jsx(ur,{children:d.jsx(g.RemoteSchemaComponent,{uid:t||((n=(i=e==null?void 0:e.children)==null?void 0:i[0])==null?void 0:n.schemaUid),NotFoundPage:"MobileNotFoundPage",memoized:!1})})},fr=new g.SchemaInitializer({title:'{{t("Add block")}}',name:"mobile:addBlock",icon:"PlusOutlined",wrap:g.gridRowColWrap,style:{margin:20},items:[{name:"dataBlocks",title:'{{t("Desktop data blocks")}}',type:"itemGroup",children:[{name:"table",title:'{{t("Table")}}',Component:"TableBlockInitializer"},{name:"form",title:'{{t("Form")}}',Component:"FormBlockInitializer"},{name:"details",title:'{{t("Details")}}',Component:"DetailsBlockInitializer"},{name:"gridCard",title:'{{t("Grid Card")}}',Component:"GridCardBlockInitializer"}]},{name:"filterBlocks",title:'{{t("Desktop filter blocks")}}',type:"itemGroup",children:[{name:"filterForm",title:'{{t("Form")}}',Component:"FilterFormBlockInitializer"}]},{name:"otherBlocks",type:"itemGroup",title:'{{t("Other desktop blocks")}}',children:[{name:"markdown",title:'{{t("Markdown")}}',Component:"MarkdownBlockInitializer"},{name:"settings",title:Z("Settings"),Component:"MobileSettingsBlockInitializer"}]}]});function Aa(t){return{type:"void","x-component":"MobilePageContent",properties:{[t]:hr(t)}}}function hr(t){return{type:"void","x-uid":t,"x-async":!0,"x-component":"Grid","x-component-props":{showDivider:!1},"x-initializer":fr.name}}const Hi=a.createContext(null);Hi.displayName="MobilePageContext";const Oa=i=>{var n=i,{children:t}=n,e=Rt(n,["children"]);return d.jsx(Hi.Provider,{value:e,children:t})},Ki=()=>a.useContext(Hi),A1=lt.createStyles(()=>({mobilePageHeader:{position:"absolute",top:0,left:0,right:0,borderBottom:"1px solid var(--adm-color-border)",backgroundColor:"var(--adm-color-background)"}})),pr=({children:t})=>{const{displayPageHeader:e=!0}=Ki()||{},{styles:i}=A1();return e?d.jsxs("div",{className:g.cx(i.mobilePageHeader,"mobile-page-header"),"data-testid":"mobile-page-header",children:[d.jsx(ya,{position:"top"}),t]}):null},mr=new g.SchemaInitializer({name:"mobile:tabs",Component:()=>{const{refresh:t,resource:e,activeTabBarItem:i}=ce(),{insert:n}=g.useSchemaInitializer(),{t:r}=de(),{message:o}=F.App.useApp();return d.jsx(g.SchemaInitializerActionModal,{title:Z("Add tab"),btnStyles:{width:32,padding:0,marginRight:12},onSubmit:h=>Q(this,[h],function*({title:s,icon:l}){if(s&&s.trim().length==0)return o.error(r("Title field is required")),Promise.reject(new Error("Title field is required"));const u=ei.uid();yield e.create({values:{type:"tabs",title:s,icon:l,schemaUid:u,parentId:i.id}}),n(hr(u)),yield t()}),schema:{title:{type:"string",title:Z("Title"),required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{title:Z("Icon"),type:"string","x-decorator":"FormItem","x-component":"IconPicker"}}})}}),Fa=()=>{const{render:t}=g.useSchemaInitializerRender(mr.name);return t()},O1=g.createTextSettingsItem({name:"remove",title:Z("Delete"),useTextClick:()=>{const{t}=de(),{tab:e}=g.useSchemaToolbar(),{refresh:i,resource:n,activeTabBarItem:r,api:o}=ce(),s=V.useNavigate(),{modal:l,message:h}=F.App.useApp();return()=>Q(this,null,function*(){l.confirm({title:t("Delete action"),content:t("Are you sure you want to delete it?"),onOk:()=>Q(this,null,function*(){yield n.destroy({filterByTk:e.id}),yield i(),yield o.request({url:`/uiSchemas:remove/${e.schemaUid}`,method:"delete"});const u=r.children.find(p=>p.id!==e.id);s(`/${r.type}/${r.schemaUid}/${u.type}/${u.schemaUid}`),h.success({content:"Delete successfully"})})})})},useVisible(){var e;const{activeTabBarItem:t}=ce();return((e=t.children)==null?void 0:e.length)>1}}),F1={name:"title",type:"actionModal",useComponentProps(){const{t}=de(),{tab:e}=g.useSchemaToolbar(),{refresh:i,resource:n}=ce(),{message:r}=F.App.useApp();return{title:t("Edit"),schema:{type:"object",properties:{title:{type:"string",title:Z("Title"),default:e.title,"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{title:Z("Icon"),type:"string","x-decorator":"FormItem",default:e.icon,"x-component":"IconPicker"}}},onSubmit(h){return Q(this,arguments,function*({title:s,icon:l}){if(s&&s.trim().length==0)return r.error(t("Title field is required")),Promise.reject(new Error("Title field is required"));yield n.update({filterByTk:e.id,values:{title:s,icon:l}}),i()})}}}},br=new g.SchemaSettings({name:"mobile:tabs",items:[F1,O1]}),Ba=({tab:t})=>d.jsx(g.SchemaToolbarProvider,{tab:t,children:d.jsx(g.SchemaToolbar,{settings:br,showBackground:!0,showBorder:!1,toolbarStyle:{inset:"-15px -12px"},spaceWrapperStyle:{top:3}})}),gr=lt.createStyles(()=>({mobilePageTabs:{display:"flex",alignItems:"center",justifyContent:"space-between"},mobilePageTabsList:{".adm-tabs-header":{borderBottomWidth:0},".adm-tabs-tab":{height:49,padding:"10px 0 10px"}}})),za=()=>{var y;const{activeTabBarItem:t,resource:e,refresh:i}=ce(),{displayTabs:n=!1}=Ki(),r=V.useNavigate(),{styles:o}=gr(),{tabSchemaUid:s}=V.useParams(),[l,h]=a.useState(()=>{var c,m;return s||((m=(c=t==null?void 0:t.children)==null?void 0:c[0])==null?void 0:m.schemaUid)}),u=c=>{h(c),r(`/${t.type}/${t.schemaUid}/tabs/${c}`)},p=a.useCallback(c=>Q(this,null,function*(){const{active:m,over:f}=c,b=m==null?void 0:m.id,v=f==null?void 0:f.id;!b||!v||b===v||(yield e.move({sourceId:b,targetId:v,sortField:"sort"}),yield i())}),[e,i]);return t?n?d.jsxs("div",{className:o.mobilePageTabs,"data-testid":"mobile-page-tabs",children:[d.jsx(g.DndContext,{onDragEnd:p,children:d.jsx(ji,{activeKey:l,onChange:u,className:o.mobilePageTabsList,children:(y=t.children)==null?void 0:y.map(c=>d.jsx(ji.Tab,{"data-testid":`mobile-page-tabs-${c.title}`,title:d.jsxs(g.SortableItem,{id:c.id,children:[d.jsx(Ba,{tab:c}),c.icon?d.jsxs(Ui,{children:[d.jsx(g.Icon,{type:c.icon}),c.title]}):c.title]})},String(c.schemaUid)))})}),d.jsx("div",{children:d.jsx(Fa,{})})]}):null:d.jsx(V.Navigate,{replace:!0,to:"/"})},B1=["default","primary","success","danger","warning"],Na=D.connect(t=>d.jsx(F.Radio.Group,R(B({},t),{children:B1.map(e=>d.jsx(F.Radio,{value:e,children:d.jsx(Ii,{color:e,size:"mini",style:{width:10,height:18},onClick:()=>t.onChange(e)})},e))}))),z1=["solid","outline"],La=D.connect(t=>d.jsx(F.Radio.Group,R(B({},t),{children:z1.map(e=>d.jsx(F.Radio,{value:e,children:d.jsx(Ii,{color:"primary",size:"mini",fill:e,style:{width:10,height:18},onClick:()=>t.onChange(e)})},e))}))),N1=t=>g.createModalSettingsItem({title:Z("Edit button"),name:"action",parentSchemaKey:"x-component-props",schema:e=>({type:"object",title:Z("Edit"),properties:{title:{title:Z("Title"),type:"string",default:e.title,"x-decorator":"FormItem","x-component":"Input","x-reactions":{target:"icon",fulfill:{state:{required:"{{!$self.value}}"}}}},icon:{title:Z("Icon"),type:"string",default:e.icon,"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":{target:"title",fulfill:{state:{required:"{{!$self.value}}"}}}},color:{type:"string",default:e.color,title:Z("Color"),"x-decorator":"FormItem","x-component":Na},fill:{type:"boolean",default:e.fill,title:Z("Fill"),"x-decorator":"FormItem","x-component":La,"x-reactions":[{dependencies:["title","icon"],fulfill:{state:{visible:"{{!!$deps[0] && !!$deps[1]}}"}}}]}}})}),L1={title:{type:"string",title:Z("Title"),"x-decorator":"FormItem","x-component":"Input","x-reactions":[{target:"icon",fulfill:{state:{required:"{{!$self.value}}"}}}]},icon:{type:"string",title:Z("Icon"),"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":[{target:"title",fulfill:{state:{required:"{{!$self.value}}"}}}]},color:{type:"string",title:Z("Color"),"x-decorator":"FormItem","x-component":Na},fill:{type:"boolean",title:Z("Fill"),"x-decorator":"FormItem","x-component":La,"x-reactions":[{dependencies:["title","icon"],fulfill:{state:{visible:"{{!!$deps[0] && !!$deps[1]}}"}}}]}},vr=new g.SchemaSettings({name:"mobile:navigation-bar:actions:link",items:[N1(),{name:"editLink",Component:g.SchemaSettingsActionLinkItem},{name:"remove",type:"remove",componentProps:{title:Z("Delete action")}}]}),Da=()=>{const{onClick:t}=g.useLinkActionProps();return{onClick:t}},Za=t=>({type:"void","x-component":"Action","x-toolbar":"ActionSchemaToolbar","x-settings":vr.name,"x-use-component-props":"useMobileNavigationBarLink","x-component-props":R(B({},t),{component:"MobileNavigationBarAction"})}),Va={name:"link",type:"actionModal",useComponentProps(){const{insert:t}=g.useSchemaInitializer(),{t:e}=de(),{message:i}=F.App.useApp();return{title:e("Add link"),buttonText:e("Link"),schema:L1,isItem:!0,onSubmit(n){if((!n.title||n.title.trim().length===0)&&!n.icon)return i.error(e("Please enter title or select icon")),Promise.reject(new Error("Please enter title or select icon"));t(Za(n))}}}},yr=new g.SchemaInitializer({name:"mobile:navigation-bar:actions",icon:"PlusOutlined",items:[Va]}),D1=lt.createStyles(()=>({navigationBarAction:{maxWidth:"10em",".adm-space":{maxWidth:"100%",overflow:"hidden"}},navigationBarActionIcon:{width:24,height:24,lineHeight:"24px",fontSize:24,padding:0,display:"flex",alignItems:"center",justifyContent:"center",".schema-toolbar":{inset:"-15px -8px"}},navigationBarActionTitle:{fontSize:17,padding:0,".schema-toolbar":{inset:"-15px -8px"}},navigationBarActionIconAndTitle:{height:"32px !important",fontSize:"17px !important",padding:"0 6px !important",".schema-toolbar":{inset:"-15px"}}})),wr=a.forwardRef((t,e)=>{const{icon:i,color:n,fill:r,children:o,style:s={},className:l,onClick:h}=t,{position:u}=g.useSchemaToolbar(),p=o[0],y=o[1],c=[i,p].filter(Boolean).length,m=a.useMemo(()=>typeof i=="string"?d.jsx(g.Icon,{type:i}):i,[i]),{styles:f}=D1();return d.jsx("div",{ref:e,children:d.jsxs(Ii,{onClick:h,color:n,size:c<=1?void 0:"mini",className:g.cx(l,f.navigationBarAction,{[f.navigationBarActionIconAndTitle]:c>1,[f.navigationBarActionTitle]:c===1&&p,[f.navigationBarActionIcon]:c===1&&i}),style:s,fill:c<=1?"none":r,children:[y,c>1?u==="left"?d.jsxs(Ui,{style:{"--gap":"6px"},children:[m,d.jsx("span",{children:p})]}):d.jsxs(Ui,{style:{"--gap":"6px"},children:[d.jsx("span",{children:p}),m]}):d.jsx(Ui,{children:m||p})]})})});wr.displayName="MobileNavigationBarAction";const ja=a.createContext({container:void 0}),Z1=i=>{var n=i,{children:t}=n,e=Rt(n,["children"]);return d.jsx(ja.Provider,{value:e,children:t})},Ua=()=>a.useContext(ja),Wa=g.withDynamicSchemaProps(D.observer(t=>{const{forceProps:e={}}=Ua(),h=B(B({},g.useProps(t)),e),{style:i,spaceProps:n}=h,r=Rt(h,["style","spaceProps"]),{position:o}=g.useSchemaToolbar(),s=D.useFieldSchema(),{render:l}=g.useSchemaInitializerRender(s["x-initializer"],R(B({},s["x-initializer-props"]),{wrap(u){return B({"x-position":o},u)}}));return d.jsx(g.DndContext,{children:o!=="bottom"?d.jsxs("div",R(B({style:R(B({display:"flex",alignItems:"center",gap:12},i),{marginTop:0,justifyContent:o==="left"?"flex-start":"flex-end"})},r),{"data-testid":`mobile-navigation-action-bar-${o}`,className:un.cx(r.className,"nb-action-bar"),children:[o==="left"&&l({}),t.children&&d.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:d.jsx(D.RecursionField,{onlyRenderProperties:!0,schema:s,filterProperties:u=>u["x-position"]===o})}),o==="right"&&l({})]})):d.jsx(D.RecursionField,{onlyRenderProperties:!0,schema:s,filterProperties:u=>u["x-position"]===o})})}),{displayName:"MobileNavigationActionBar"}),V1=lt.createStyles(()=>({mobilePageNavigationBar:{".adm-nav-bar":{maxWidth:"100%",height:49,overflow:"hidden",".adm-nav-bar-left":{display:"flex",alignItems:"center",justifyContent:"flex-start"},".adm-nav-bar-right":{display:"flex",alignItems:"center",justifyContent:"flex-end"}}}})),qa=()=>{const{title:t}=cr(),{displayNavigationBar:e=!0,displayPageTitle:i=!0}=Ki(),n=D.useFieldSchema(),{styles:r}=V1();return e?d.jsxs("div",{className:g.cx("mobile-page-navigation-bar",r.mobilePageNavigationBar),"data-testid":"mobile-page-navigation-bar",children:[d.jsx(h1,{backArrow:!1,back:null,left:d.jsx(g.SchemaToolbarProvider,{position:"left",children:d.jsx(D.RecursionField,{name:"actionBarLeft",schema:n,onlyRenderProperties:!0})}),right:d.jsx(g.SchemaToolbarProvider,{position:"right",children:d.jsx(D.RecursionField,{name:"actionBarRight",schema:n,onlyRenderProperties:!0})}),children:i?t:null}),d.jsx(g.SchemaToolbarProvider,{position:"bottom",children:d.jsx(D.RecursionField,{name:"actionBarBottom",schema:n,onlyRenderProperties:!0})})]}):null},Ha={type:"void","x-component":"MobilePageHeader",properties:{pageNavigationBar:{type:"void","x-component":"MobilePageNavigationBar",properties:{actionBar:{type:"void","x-component":"MobileNavigationActionBar","x-initializer":yr.name,"x-component-props":{spaceProps:{style:{flexWrap:"nowrap"}}},properties:{}}}},pageTabs:{type:"void","x-component":"MobilePageTabs"}}},xr=new g.SchemaSettings({name:"mobile:page",items:[{type:"itemGroup",name:"app",useComponentProps(){const{t}=de();return{title:t("App settings")}},useVisible(){return!!en()},children:[{name:"enableTabBar",type:"switch",useComponentProps(){const{t}=de(),{showTabBar:e,setShowTabBar:i}=en(),{refresh:n}=g.useDesignable();return{title:t("Display tab bar"),checked:e,onChange(r){i(r),n()}}}}]},{type:"itemGroup",name:"page",useComponentProps(){const{t}=de();return{title:t("Page settings")}},children:[g.createSwitchSettingsItem({name:"displayPageHeader",title:Z("Display page header"),defaultValue:!0,schemaKey:"x-component-props.displayPageHeader"}),g.createSwitchSettingsItem({name:"displayNavigationBar",title:Z("Display navigation bar"),defaultValue:!0,schemaKey:"x-component-props.displayNavigationBar",useVisible(){var e;return((e=D.useFieldSchema()["x-component-props"])==null?void 0:e.displayPageHeader)!==!1}}),g.createSwitchSettingsItem({name:"displayPageTitle",title:Z("Display page title"),defaultValue:!0,schemaKey:"x-component-props.displayPageTitle",useVisible(){var e,i;const t=D.useFieldSchema();return((e=t["x-component-props"])==null?void 0:e.displayNavigationBar)!==!1&&((i=t["x-component-props"])==null?void 0:i.displayPageHeader)!==!1}}),g.createSwitchSettingsItem({name:"displayTabs",title:Z("Display tabs"),defaultValue:!1,schemaKey:"x-component-props.displayTabs",useVisible(){var e;return((e=D.useFieldSchema()["x-component-props"])==null?void 0:e.displayPageHeader)!==!1}})]}]}),j1=g.css(`
|
|
156
|
-
&:first-child {
|
|
157
|
-
.ant-space-item {
|
|
158
|
-
width: 30px;
|
|
159
|
-
height: 30px;
|
|
160
|
-
transform: rotate(45deg);
|
|
161
|
-
span {
|
|
162
|
-
position: relative;
|
|
163
|
-
bottom: -15px;
|
|
164
|
-
right: -8px;
|
|
165
|
-
transform: rotate(-45deg);
|
|
166
|
-
font-size: 10px;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
`);function Ka(t,e){return{schema:{type:"void",name:t,"x-uid":t,"x-component":"MobilePageProvider","x-settings":xr.name,"x-decorator":"BlockItem","x-decorator-props":{style:{height:"100%"}},"x-toolbar-props":{draggable:!1,spaceWrapperStyle:{right:-15,top:-15},spaceClassName:j1,toolbarStyle:{overflowX:"hidden"}},properties:{header:Ha,content:Aa(e)}}}}function U1(t){return t==null||t.mapProperties(e=>{e["x-component"]==="Grid"&&(e["x-component-props"]=R(B({},e["x-component-props"]),{showDivider:!1}))}),t}const W1=g.createStyles(({css:t,token:e})=>({container:t`
|
|
171
|
-
cursor: pointer;
|
|
172
|
-
text-align: right;
|
|
173
|
-
flex: 1;
|
|
174
|
-
padding-right: var(--nb-mobile-page-tabs-content-padding);
|
|
175
|
-
|
|
176
|
-
.ant-btn {
|
|
177
|
-
width: 32px;
|
|
178
|
-
height: 32px;
|
|
179
|
-
padding: 0;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.ant-btn > span {
|
|
183
|
-
display: none;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
span.ant-btn-icon {
|
|
187
|
-
display: inline-block;
|
|
188
|
-
font-size: 16px;
|
|
189
|
-
margin: 0 !important;
|
|
190
|
-
}
|
|
191
|
-
`,backButton:t`
|
|
192
|
-
display: flex;
|
|
193
|
-
align-items: center;
|
|
194
|
-
justify-content: center;
|
|
195
|
-
font-size: 24px;
|
|
196
|
-
height: 50px;
|
|
197
|
-
width: 50px;
|
|
198
|
-
`})),Sr=D.observer(t=>{const e=D.useFieldSchema(),{render:i}=g.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]),{activeKey:n,onChange:r}=g.useTabsContext()||{},[o,s]=a.useState(n),{styles:l}=gr(),{styles:h}=W1(),{goBack:u}=g.useBackButton(),p=a.useRef({}),y=a.useCallback(f=>{s(f),r==null||r(f)},[r]);a.useEffect(()=>{s(n)},[n]);const c=a.useMemo(()=>e.mapProperties((b,v)=>(p.current[v]=d.jsx(g.SchemaComponent,{name:v,schema:b,onlyRenderProperties:!0,distributed:!0}),d.jsx(ji.Tab,{title:d.jsx(D.RecursionField,{name:v,schema:b,onlyRenderSelf:!0})},v))),[e.mapProperties((f,b)=>b).join()]),m=a.useMemo(()=>{var b,v;const f=e.mapProperties((C,S)=>(C=U1(C),{key:S,node:d.jsx(g.SchemaComponent,{name:S,schema:C,onlyRenderProperties:!0,distributed:!0})}));return o?(v=f.find(C=>C.key===o))==null?void 0:v.node:(b=f[0])==null?void 0:b.node},[o,e]);return d.jsxs(d.Fragment,{children:[d.jsx(pr,{children:d.jsxs("div",{className:l.mobilePageTabs,"data-testid":"mobile-action-page-tabs",children:[d.jsx("div",{className:h.backButton,onClick:u,children:d.jsx(ea,{})}),d.jsx(g.DndContext,{children:d.jsx(ji,{activeKey:o,onChange:y,className:l.mobilePageTabsList,children:c})}),d.jsx("div",{className:h.container,children:i()})]})}),d.jsx(ur,{hideTabBar:!0,children:m})]})},{displayName:"MobileTabsForMobileActionPage"}),q1=g.css`
|
|
199
|
-
position: relative;
|
|
200
|
-
&:hover {
|
|
201
|
-
> .general-schema-designer {
|
|
202
|
-
display: block;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
&.nb-action-link {
|
|
206
|
-
> .general-schema-designer {
|
|
207
|
-
top: -10px;
|
|
208
|
-
bottom: -10px;
|
|
209
|
-
left: -10px;
|
|
210
|
-
right: -10px;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
> .general-schema-designer {
|
|
214
|
-
position: absolute;
|
|
215
|
-
z-index: 999;
|
|
216
|
-
top: 0;
|
|
217
|
-
bottom: 0;
|
|
218
|
-
left: 0;
|
|
219
|
-
right: 0;
|
|
220
|
-
display: none;
|
|
221
|
-
background: var(--colorBgSettingsHover);
|
|
222
|
-
border: 0;
|
|
223
|
-
top: 0;
|
|
224
|
-
bottom: 0;
|
|
225
|
-
left: 0;
|
|
226
|
-
right: 0;
|
|
227
|
-
pointer-events: none;
|
|
228
|
-
> .general-schema-designer-icons {
|
|
229
|
-
position: absolute;
|
|
230
|
-
right: 2px;
|
|
231
|
-
top: 2px;
|
|
232
|
-
line-height: 16px;
|
|
233
|
-
pointer-events: all;
|
|
234
|
-
.ant-space-item {
|
|
235
|
-
background-color: var(--colorSettings);
|
|
236
|
-
color: #fff;
|
|
237
|
-
line-height: 16px;
|
|
238
|
-
width: 16px;
|
|
239
|
-
padding-left: 1px;
|
|
240
|
-
align-self: stretch;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
`;Sr.TabPane=D.observer(t=>{const e=g.useDesigner(),i=D.useField();return d.jsxs(g.SortableItem,{className:te("nb-action-link",q1,t.className),children:[t.icon&&d.jsx(g.Icon,{style:{marginRight:2},type:t.icon})," ",t.tab||i.title,d.jsx(e,{})]})},{displayName:"MobileTabsForMobileActionPage.TabPane"}),Sr.Designer=g.Tabs.Designer;const H1={Tabs:Sr},K1=({level:t,footerNodeName:e})=>{const i=D.useField(),n=D.useFieldSchema(),r=g.useActionContext(),{styles:o}=P1(),s=g.useTabsContext(),l=a.useMemo(()=>document.querySelector(".nb-mobile-subpages-slot"),[]),u=g.useZIndexContext()+Qt+(t||1),p=n.reduceProperties((m,f)=>f["x-component"]===e?f:m),y=a.useMemo(()=>({zIndex:u}),[u]);if(!r.visible)return null;const c=d.jsx(g.zIndexContext.Provider,{value:u,children:d.jsxs("div",{className:o.container,style:y,children:[d.jsx(g.TabsContextProvider,R(B({},s),{tabBarExtraContent:d.jsx(g.BackButtonUsedInSubPage,{}),tabBarGutter:48,children:d.jsx(g.SchemaComponent,{components:H1,schema:n,onlyRenderProperties:!0})})),p&&d.jsx("div",{className:o.footer,style:y,children:d.jsx(D.RecursionField,{basePath:i.address,schema:n,onlyRenderProperties:!0,filterProperties:m=>m["x-component"]===e})})]})});return l?$e.createPortal(c,l):c},G1=(t,e)=>{const i=e(t);return R(B({},i),{columnCount:{lg:1,md:1,xs:1,xxl:1}})},Y1=t=>{const{scope:e}=g.useSchemaOptionsContext(),i=a.useMemo(()=>({useGridCardBlockDecoratorProps:n=>G1(n,e==null?void 0:e.useGridCardBlockDecoratorProps)}),[e==null?void 0:e.useGridCardBlockDecoratorProps]);return d.jsx(g.SchemaComponentOptions,{scope:i,children:t.children})},Q1=50,Ga="#f5f5f5",kr=a.createContext(null);kr.displayName="SizeContext";function Ya(){return a.useContext(kr)}const X1=({children:t})=>{const[e,i]=a.useState({width:375,height:667});return d.jsx(kr.Provider,{value:{size:e,setSize:i},children:t})},J1=()=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("title",{children:"pad icon"}),d.jsx("rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2"}),d.jsx("line",{x1:"12",x2:"12.01",y1:"18",y2:"18"})]}),$1=()=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("title",{children:"mobile icon"}),d.jsx("rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}),d.jsx("path",{d:"M12 18h.01"})]}),R1=t=>d.jsx(g.Icon,B({type:"",component:J1},t)),e0=t=>d.jsx(g.Icon,B({type:"",component:$1},t)),Qa=()=>{const{t}=de(),e=g.useApp(),{setSize:i}=Ya(),[n,r]=a.useState(!1),{allowConfigUI:o}=g.useUIConfigurationPermissions(),s=l=>{r(l)};return d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",color:"white",height:"100%"},className:g.css`
|
|
245
|
-
.ant-btn {
|
|
246
|
-
border: 0;
|
|
247
|
-
height: 46px;
|
|
248
|
-
width: 46px;
|
|
249
|
-
border-radius: 0;
|
|
250
|
-
background: none;
|
|
251
|
-
color: rgba(255, 255, 255, 0.65);
|
|
252
|
-
padding: 0;
|
|
253
|
-
display: flex;
|
|
254
|
-
justify-content: center;
|
|
255
|
-
align-items: center;
|
|
256
|
-
&:hover {
|
|
257
|
-
background: rgba(255, 255, 255, 0.1) !important;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
svg {
|
|
261
|
-
width: 20px !important;
|
|
262
|
-
height
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
.ant-btn-default {
|
|
266
|
-
box-shadow: none;
|
|
267
|
-
}
|
|
268
|
-
`,children:[d.jsx(F.Button,{style:{color:"white"},href:e.getRouteUrl("/admin"),children:t("Back")}),d.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o?d.jsx(g.DesignableSwitch,{}):null,d.jsx(F.Button,{onClick:()=>{i({width:768,height:667})},"data-testid":"desktop-mode-size-pad",icon:d.jsx(R1,{})}),d.jsx(F.Button,{onClick:()=>{i({width:375,height:667})},"data-testid":"desktop-mode-size-mobile",icon:d.jsx(e0,{})}),d.jsx(F.Popover,{trigger:"hover",open:n,onOpenChange:s,content:n?d.jsx(F.QRCode,{value:window.location.href,bordered:!1}):" ",children:d.jsx(F.Button,{icon:d.jsx(Lr.QrcodeOutlined,{style:{fontSize:"24px",cursor:"pointer"},"data-testid":"desktop-mode-qrcode"})})})]})]})};var t0=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},t(e,i)};return function(e,i){t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}(),Gi=function(){return Gi=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Gi.apply(this,arguments)},i0={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},n0=function(t){t0(e,t);function e(){var i=t!==null&&t.apply(this,arguments)||this;return i.onMouseDown=function(n){i.props.onResizeStart(n,i.props.direction)},i.onTouchStart=function(n){i.props.onResizeStart(n,i.props.direction)},i}return e.prototype.render=function(){return ee.createElement("div",{className:this.props.className||"",style:Gi(Gi({position:"absolute",userSelect:"none"},i0[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},e}(ee.PureComponent),Er={exports:{}};function r0(t,e){var i=e&&e.cache?e.cache:d0,n=e&&e.serializer?e.serializer:c0,r=e&&e.strategy?e.strategy:s0;return r(t,{cache:i,serializer:n})}function o0(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Xa(t,e,i,n){var r=o0(n)?n:i(n),o=e.get(r);return typeof o=="undefined"&&(o=t.call(this,n),e.set(r,o)),o}function Ja(t,e,i){var n=Array.prototype.slice.call(arguments,3),r=i(n),o=e.get(r);return typeof o=="undefined"&&(o=t.apply(this,n),e.set(r,o)),o}function Cr(t,e,i,n,r){return i.bind(e,t,n,r)}function s0(t,e){var i=t.length===1?Xa:Ja;return Cr(t,this,i,e.cache.create(),e.serializer)}function a0(t,e){var i=Ja;return Cr(t,this,i,e.cache.create(),e.serializer)}function l0(t,e){var i=Xa;return Cr(t,this,i,e.cache.create(),e.serializer)}function c0(){return JSON.stringify(arguments)}function Yi(){this.cache=Object.create(null)}Yi.prototype.has=function(t){return t in this.cache},Yi.prototype.get=function(t){return this.cache[t]},Yi.prototype.set=function(t,e){this.cache[t]=e};var d0={create:function(){return new Yi}};Er.exports=r0,Er.exports.strategies={variadic:a0,monadic:l0};var u0=Er.exports;const ot=jr(u0);var f0=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},t(e,i)};return function(e,i){t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}(),Be=function(){return Be=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Be.apply(this,arguments)},h0={width:"auto",height:"auto"},Qi=ot(function(t,e,i){return Math.max(Math.min(t,i),e)}),$a=ot(function(t,e){return Math.round(t/e)*e}),Xi=ot(function(t,e){return new RegExp(t,"i").test(e)}),Ji=function(t){return!!(t.touches&&t.touches.length)},p0=function(t){return!!((t.clientX||t.clientX===0)&&(t.clientY||t.clientY===0))},Ra=ot(function(t,e,i){i===void 0&&(i=0);var n=e.reduce(function(o,s,l){return Math.abs(s-t)<Math.abs(e[o]-t)?l:o},0),r=Math.abs(e[n]-t);return i===0||r<i?e[n]:t}),re=ot(function(t,e){return t.substr(t.length-e.length,e.length)===e}),Pr=ot(function(t){return t=t.toString(),t==="auto"||re(t,"px")||re(t,"%")||re(t,"vh")||re(t,"vw")||re(t,"vmax")||re(t,"vmin")?t:t+"px"}),$i=function(t,e,i,n){if(t&&typeof t=="string"){if(re(t,"%")){var r=Number(t.replace("%",""))/100;return e*r}else if(re(t,"vw")){var r=Number(t.replace("vw",""))/100;return i*r}else if(re(t,"vh")){var r=Number(t.replace("vh",""))/100;return n*r}}return t},m0=ot(function(t,e,i,n,r,o,s){return n=$i(n,t.width,e,i),r=$i(r,t.height,e,i),o=$i(o,t.width,e,i),s=$i(s,t.height,e,i),{maxWidth:typeof n=="undefined"?void 0:Number(n),maxHeight:typeof r=="undefined"?void 0:Number(r),minWidth:typeof o=="undefined"?void 0:Number(o),minHeight:typeof s=="undefined"?void 0:Number(s)}}),b0=["as","style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],el="__resizable_base__",g0=function(t){f0(e,t);function e(i){var n=t.call(this,i)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var r=n.parentNode;if(!r)return null;var o=n.window.document.createElement("div");return o.style.width="100%",o.style.height="100%",o.style.position="absolute",o.style.transform="scale(0, 0)",o.style.left="0",o.style.flex="0",o.classList?o.classList.add(el):o.className+=el,r.appendChild(o),o},n.removeBase=function(r){var o=n.parentNode;o&&o.removeChild(r)},n.ref=function(r){r&&(n.resizable=r)},n.state={isResizing:!1,width:typeof(n.propsSize&&n.propsSize.width)=="undefined"?"auto":n.propsSize&&n.propsSize.width,height:typeof(n.propsSize&&n.propsSize.height)=="undefined"?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||h0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){var i=0,n=0;if(this.resizable&&this.window){var r=this.resizable.offsetWidth,o=this.resizable.offsetHeight,s=this.resizable.style.position;s!=="relative"&&(this.resizable.style.position="relative"),i=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:r,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:o,this.resizable.style.position=s}return{width:i,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeStyle",{get:function(){var i=this,n=this.props.size,r=function(l){if(typeof i.state[l]=="undefined"||i.state[l]==="auto")return"auto";if(i.propsSize&&i.propsSize[l]&&re(i.propsSize[l].toString(),"%")){if(re(i.state[l].toString(),"%"))return i.state[l].toString();var h=i.getParentSize(),u=Number(i.state[l].toString().replace("px","")),p=u/h[l]*100;return p+"%"}return Pr(i.state[l])},o=n&&typeof n.width!="undefined"&&!this.state.isResizing?Pr(n.width):r("width"),s=n&&typeof n.height!="undefined"&&!this.state.isResizing?Pr(n.height):r("height");return{width:o,height:s}},enumerable:!1,configurable:!0}),e.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var i=this.appendBase();if(!i)return{width:0,height:0};var n=!1,r=this.parentNode.style.flexWrap;r!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),i.style.position="relative",i.style.minWidth="100%";var o={width:i.offsetWidth,height:i.offsetHeight};return n&&(this.parentNode.style.flexWrap=r),this.removeBase(i),o},e.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},e.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},e.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var i=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:i.flexBasis!=="auto"?i.flexBasis:void 0})}},e.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},e.prototype.createSizeForCssProperty=function(i,n){var r=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===i&&(typeof r=="undefined"||r==="auto")?"auto":i},e.prototype.calculateNewMaxFromBoundary=function(i,n){if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var o=r.offsetWidth+(this.parentLeft-this.resizableLeft),s=r.offsetHeight+(this.parentTop-this.resizableTop);i=i&&i<o?i:o,n=n&&n<s?n:s}}else if(this.props.bounds==="window"){if(this.window){var o=this.window.innerWidth-this.resizableLeft,s=this.window.innerHeight-this.resizableTop;i=i&&i<o?i:o,n=n&&n<s?n:s}}else if(this.props.bounds){var o=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),s=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);i=i&&i<o?i:o,n=n&&n<s?n:s}return{maxWidth:i,maxHeight:n}},e.prototype.calculateNewSizeFromDirection=function(i,n){var r=this.props.scale||1,o=this.props.resizeRatio||1,s=this.state,l=s.direction,h=s.original,u=this.props,p=u.lockAspectRatio,y=u.lockAspectRatioExtraHeight,c=u.lockAspectRatioExtraWidth,m=h.width,f=h.height,b=y||0,v=c||0;return Xi("right",l)&&(m=h.width+(i-h.x)*o/r,p&&(f=(m-v)/this.ratio+b)),Xi("left",l)&&(m=h.width-(i-h.x)*o/r,p&&(f=(m-v)/this.ratio+b)),Xi("bottom",l)&&(f=h.height+(n-h.y)*o/r,p&&(m=(f-b)*this.ratio+v)),Xi("top",l)&&(f=h.height-(n-h.y)*o/r,p&&(m=(f-b)*this.ratio+v)),{newWidth:m,newHeight:f}},e.prototype.calculateNewSizeFromAspectRatio=function(i,n,r,o){var s=this.props,l=s.lockAspectRatio,h=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,p=typeof o.width=="undefined"?10:o.width,y=typeof r.width=="undefined"||r.width<0?i:r.width,c=typeof o.height=="undefined"?10:o.height,m=typeof r.height=="undefined"||r.height<0?n:r.height,f=h||0,b=u||0;if(l){var v=(c-f)*this.ratio+b,C=(m-f)*this.ratio+b,S=(p-b)/this.ratio+f,w=(y-b)/this.ratio+f,k=Math.max(p,v),P=Math.min(y,C),T=Math.max(c,S),L=Math.min(m,w);i=Qi(i,k,P),n=Qi(n,T,L)}else i=Qi(i,p,y),n=Qi(n,c,m);return{newWidth:i,newHeight:n}},e.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var i=this.parentNode;if(i){var n=i.getBoundingClientRect();this.parentLeft=n.left,this.parentTop=n.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left,this.targetTop=r.top}if(this.resizable){var o=this.resizable.getBoundingClientRect(),s=o.left,l=o.top;this.resizableLeft=s,this.resizableTop=l}},e.prototype.onResizeStart=function(i,n){if(!(!this.resizable||!this.window)){var r=0,o=0;if(i.nativeEvent&&p0(i.nativeEvent)){if(r=i.nativeEvent.clientX,o=i.nativeEvent.clientY,i.nativeEvent.which===3)return}else i.nativeEvent&&Ji(i.nativeEvent)&&(r=i.nativeEvent.touches[0].clientX,o=i.nativeEvent.touches[0].clientY);if(this.props.onResizeStart&&this.resizable){var s=this.props.onResizeStart(i,n,this.resizable);if(s===!1)return}this.props.size&&(typeof this.props.size.height!="undefined"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width!="undefined"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var l,h=this.window.getComputedStyle(this.resizable);if(h.flexBasis!=="auto"){var u=this.parentNode;if(u){var p=this.window.getComputedStyle(u).flexDirection;this.flexDir=p.startsWith("row")?"row":"column",l=h.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var y={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Be(Be({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(i.target).cursor||"auto"}),direction:n,flexBasis:l};this.setState(y)}},e.prototype.onMouseMove=function(i){if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Ji(i))try{i.preventDefault(),i.stopPropagation()}catch(Te){}var n=this.props,r=n.maxWidth,o=n.maxHeight,s=n.minWidth,l=n.minHeight,h=Ji(i)?i.touches[0].clientX:i.clientX,u=Ji(i)?i.touches[0].clientY:i.clientY,p=this.state,y=p.direction,c=p.original,m=p.width,f=p.height,b=this.getParentSize(),v=m0(b,this.window.innerWidth,this.window.innerHeight,r,o,s,l);r=v.maxWidth,o=v.maxHeight,s=v.minWidth,l=v.minHeight;var C=this.calculateNewSizeFromDirection(h,u),S=C.newHeight,w=C.newWidth,k=this.calculateNewMaxFromBoundary(r,o),P=this.calculateNewSizeFromAspectRatio(w,S,{width:k.maxWidth,height:k.maxHeight},{width:s,height:l});if(w=P.newWidth,S=P.newHeight,this.props.grid){var T=$a(w,this.props.grid[0]),L=$a(S,this.props.grid[1]),q=this.props.snapGap||0;w=q===0||Math.abs(T-w)<=q?T:w,S=q===0||Math.abs(L-S)<=q?L:S}this.props.snap&&this.props.snap.x&&(w=Ra(w,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(S=Ra(S,this.props.snap.y,this.props.snapGap));var ne={width:w-c.width,height:S-c.height};if(m&&typeof m=="string"){if(re(m,"%")){var K=w/b.width*100;w=K+"%"}else if(re(m,"vw")){var ue=w/this.window.innerWidth*100;w=ue+"vw"}else if(re(m,"vh")){var $=w/this.window.innerHeight*100;w=$+"vh"}}if(f&&typeof f=="string"){if(re(f,"%")){var K=S/b.height*100;S=K+"%"}else if(re(f,"vw")){var ue=S/this.window.innerWidth*100;S=ue+"vw"}else if(re(f,"vh")){var $=S/this.window.innerHeight*100;S=$+"vh"}}var Y={width:this.createSizeForCssProperty(w,"width"),height:this.createSizeForCssProperty(S,"height")};this.flexDir==="row"?Y.flexBasis=Y.width:this.flexDir==="column"&&(Y.flexBasis=Y.height),this.setState(Y),this.props.onResize&&this.props.onResize(i,y,this.resizable,ne)}},e.prototype.onMouseUp=function(i){var n=this.state,r=n.isResizing,o=n.direction,s=n.original;if(!(!r||!this.resizable)){var l={width:this.size.width-s.width,height:this.size.height-s.height};this.props.onResizeStop&&this.props.onResizeStop(i,o,this.resizable,l),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Be(Be({},this.state.backgroundStyle),{cursor:"auto"})})}},e.prototype.updateSize=function(i){this.setState({width:i.width,height:i.height})},e.prototype.renderResizer=function(){var i=this,n=this.props,r=n.enable,o=n.handleStyles,s=n.handleClasses,l=n.handleWrapperStyle,h=n.handleWrapperClass,u=n.handleComponent;if(!r)return null;var p=Object.keys(r).map(function(y){return r[y]!==!1?ee.createElement(n0,{key:y,direction:y,onResizeStart:i.onResizeStart,replaceStyles:o&&o[y],className:s&&s[y]},u&&u[y]?u[y]:null):null});return ee.createElement("span",{className:h,style:l},p)},e.prototype.render=function(){var i=this,n=Object.keys(this.props).reduce(function(s,l){return b0.indexOf(l)!==-1||(s[l]=i.props[l]),s},{}),r=Be(Be(Be({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(r.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return ee.createElement(o,Be({ref:this.ref,style:r,className:this.props.className},n),this.state.isResizing&&ee.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},e.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},e}(ee.PureComponent);const tl=({children:t})=>{const{size:e,setSize:i}=Ya();return d.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",boxSizing:"border-box",overflow:"auto",padding:80},className:un.css`
|
|
269
|
-
.adm-error-block-full-page {
|
|
270
|
-
padding-top: 100px;
|
|
271
|
-
}
|
|
272
|
-
`,children:d.jsx(g0,{style:{boxShadow:"0 0 15px rgba(0, 0, 0, 0.3)"},"data-testid":"desktop-mode-resizable",size:{width:e.width,height:e.height},onResizeStop:(n,r,o,s)=>{i({width:e.width+s.width,height:e.height+s.height})},children:t})})},il=({children:t})=>qo?d.jsx(X1,{children:d.jsxs(F.Layout,{style:{height:"100%",background:Ga},children:[d.jsx(F.Layout.Header,{style:{height:46},children:d.jsx(Qa,{})}),d.jsx(F.Layout.Content,{children:d.jsx(tl,{children:t})})]})}):d.jsx(d.Fragment,{children:t}),Ri=a.createContext(void 0);Ri.displayName="MobileAppContext";const nl=({children:t})=>{var o,s;const e=g.usePlugin(rn),[i,n]=a.useState((s=(o=e.getPluginOptions())==null?void 0:o.showTabBar)!=null?s:!0),r=l=>{n(l),e.updateOptions({showTabBar:l})};return d.jsx(Ri.Provider,{value:{showTabBar:i,setShowTabBar:r},children:t})},en=()=>a.useContext(Ri),v0=g.createStyles(({token:t,css:e})=>({nbMobile:e`
|
|
273
|
-
-webkit-overflow-scrolling: touch;
|
|
274
|
-
display: initial;
|
|
275
|
-
|
|
276
|
-
& ::-webkit-scrollbar {
|
|
277
|
-
display: none;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.ant-table-thead button[aria-label*='schema-initializer-TableV2-table:configureColumns'] > span:last-child {
|
|
281
|
-
display: none !important;
|
|
282
|
-
}
|
|
283
|
-
.ant-table-thead button[aria-label*='schema-initializer-TableV2-table:configureColumns'] > .ant-btn-icon {
|
|
284
|
-
margin: 0px;
|
|
285
|
-
}
|
|
286
|
-
.ant-table-tbody .nb-column-initializer {
|
|
287
|
-
min-width: 40px !important;
|
|
288
|
-
}
|
|
289
|
-
// reset Select record popup
|
|
290
|
-
.ant-table-thead
|
|
291
|
-
button[aria-label*='schema-initializer-TableV2.Selector-table:configureColumns']
|
|
292
|
-
> span:last-child {
|
|
293
|
-
display: none !important;
|
|
294
|
-
}
|
|
295
|
-
.ant-table-thead
|
|
296
|
-
button[aria-label*='schema-initializer-TableV2.Selector-table:configureColumns']
|
|
297
|
-
> .ant-btn-icon {
|
|
298
|
-
margin: 0px;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.ant-pagination .ant-pagination-total-text {
|
|
302
|
-
display: none;
|
|
303
|
-
}
|
|
304
|
-
.ant-pagination .ant-pagination-options {
|
|
305
|
-
display: none;
|
|
306
|
-
}
|
|
307
|
-
.ant-pagination .ant-pagination-item {
|
|
308
|
-
display: none;
|
|
309
|
-
}
|
|
310
|
-
.ant-card-body .nb-action-bar .ant-btn {
|
|
311
|
-
justify-content: space-between;
|
|
312
|
-
display: flex;
|
|
313
|
-
align-items: center;
|
|
314
|
-
gap: 8px;
|
|
315
|
-
|
|
316
|
-
span {
|
|
317
|
-
display: contents;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
.ant-card-body .nb-action-bar .ant-btn-icon {
|
|
321
|
-
margin-inline-end: 0px !important;
|
|
322
|
-
}
|
|
323
|
-
.ant-card-body .nb-table-container {
|
|
324
|
-
margin-right: -20px;
|
|
325
|
-
margin-left: -10px;
|
|
326
|
-
}
|
|
327
|
-
.nb-action-bar button[aria-label*='schema-initializer-ActionBar-table:configureActions'] > span:last-child {
|
|
328
|
-
display: none !important;
|
|
329
|
-
}
|
|
330
|
-
.nb-action-bar button[aria-label*='schema-initializer-ActionBar-table:configureActions'] > .ant-btn-icon {
|
|
331
|
-
margin: 0px;
|
|
332
|
-
}
|
|
333
|
-
.nb-card-list .ant-row > div {
|
|
334
|
-
width: 100% !important;
|
|
335
|
-
max-width: 100% !important;
|
|
336
|
-
}
|
|
337
|
-
`})),rl=()=>{var s,l;b1(),v1(),C1();const{styles:t}=v0(),e=g.usePlugin(rn),i=e.getRouterComponent(),n=(l=(s=e==null?void 0:e.options)==null?void 0:s.config)!=null&&l.skipLogin?a.Fragment:g.AdminProvider;a.useEffect(()=>{if(!qo){let h=document.querySelector('meta[name="viewport"]');h||(h=document.createElement("meta"),h.setAttribute("name","viewport"),document.head.appendChild(h)),h.setAttribute("content","width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"),document.body.style.backgroundColor=Ga,document.body.style.overflow="hidden";const u=document.createElement("div");document.body.appendChild(u),document.body.removeChild(u)}},[]);const r=e.desktopMode===!1?a.Fragment:il,o=a.useMemo(()=>({PopoverNester:h=>{const{getDefaultComponent:u}=g.useAssociationFieldModeContext(),p=u(g.AssociationFieldMode.PopoverNester);return d.jsx(k1,R(B({},h),{OriginComponent:p}))}}),[]);return d.jsx(n,{children:d.jsx(r,{children:d.jsx(g.GlobalThemeProvider,{theme:{token:{marginBlock:18,borderRadiusBlock:0,boxShadowTertiary:"none"}},children:d.jsx(g.AntdAppProvider,{className:`mobile-container ${t.nbMobile}`,children:d.jsx(g.OpenModeProvider,{defaultOpenMode:"page",isMobile:!0,hideOpenMode:!0,openModeToComponent:{page:K1,drawer:lr,modal:g.Action.Modal},children:d.jsx(g.BlockTemplateProvider,{componentNamePrefix:"mobile-",children:d.jsx(nl,{children:d.jsx(Y1,{children:d.jsx(g.AssociationFieldModeProvider,{modeToComponent:o,children:d.jsx(g.zIndexContext.Provider,{value:100,children:d.jsx(i,{})})})})})})})})})})})},y0=lt.createStyles(()=>({mobileTabBar:{position:"absolute",bottom:0,left:0,right:0,height:Q1,boxSizing:"border-box",borderTop:"1px solid var(--adm-color-border)",backgroundColor:"var(--adm-color-background)"},mobileTabBarContent:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1em",height:"100%"},mobileTabBarList:{display:"flex",justifyContent:"space-around",flex:1,alignItems:"center",overflowX:"auto",".adm-tab-bar-item":{maxWidth:"100%",".adm-tab-bar-item-title":{maxWidth:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},"&>div":{flex:1,display:"flex",justifyContent:"center",alignItems:"center"},".ant-btn-icon":{marginInlineEnd:"0 !important"}}}));function ol(t){return t?t.startsWith("/")&&!t.startsWith("//"):!1}function w0(t,e){const{icon:i,selectedIcon:n}=t,r=e&&n?n:i;if(r)return typeof r=="string"?d.jsx(g.Icon,{type:r}):i}const tn=t=>{const{title:e,onClick:i,selected:n,badge:r}=t,o=w0(t,n);return d.jsxs("div",{onClick:i,"data-testid":`mobile-tab-bar-${e}`,className:te("adm-tab-bar-item",{"adm-tab-bar-item-active":n}),style:{lineHeight:1},children:[d.jsx(Uf,{content:r,style:{"--top":"5px"},children:d.jsx("span",{className:"adm-tab-bar-item-icon",children:o})}),d.jsx("span",{className:te("adm-tab-bar-item-title",{"adm-tab-bar-item-title-with-icon":o}),children:e})]})};function sl(){const{refresh:t,resource:e}=ce(),i=D.useFieldSchema(),{t:n}=de(),{message:r}=F.App.useApp();return o=>Q(this,null,function*(){if(!o.title||o.title.trim()==="")return r.error(n("Title field is required")),Promise.reject(new Error(n("Title field is required")));if(!o.icon)return r.error(n("Icon field is required")),Promise.reject(new Error(n("Icon field is required")));const s=i.toJSON(),l=Number(s.name),h=s["x-component-props"].title,u=s["x-component-props"].icon,p=Ue.omit(s["x-component-props"],"title","icon");yield e.update({filterByTk:l,values:{title:h,icon:u,options:p}}),t()})}const nn=(t={})=>({title:{title:Z("Title"),type:"string",default:t.title,"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{title:Z("Icon"),type:"string",default:t.icon,"x-decorator":"FormItem","x-component":"IconPicker",required:!0}}),Mr=t=>g.createModalSettingsItem({title:Z("Edit button"),name:"tabBarItem",parentSchemaKey:"x-component-props",schema:e=>({type:"object",title:"Edit button",properties:B(B({},nn(e)),t?t(e):{})}),useSubmit:sl}),Tr=g.createTextSettingsItem({name:"remove",title:Z("Delete"),useTextClick:()=>{const t=D.useFieldSchema(),e=Number(t.toJSON().name),{refresh:i,resource:n,routeList:r,api:o}=ce(),s=V.useNavigate(),{t:l}=de(),{modal:h,message:u}=F.App.useApp();return()=>Q(this,null,function*(){h.confirm({title:l("Delete action"),content:l("Are you sure you want to delete it?"),onOk:()=>Q(this,null,function*(){yield n.destroy({filterByTk:e}),yield n.destroy({filter:{parentId:e}});const p=r.find(y=>y.id===e);yield o.request({url:`/uiSchemas:remove/${p.schemaUid}`,method:"delete"}),yield i(),s("/"),u.success({content:"Delete successfully"})})})})}});function al(t){var i,n;const e={name:t.id,type:"void","x-decorator":"BlockItem","x-settings":`mobile:tab-bar:${t.type}`,"x-component":`MobileTabBar.${Ue.upperFirst(t.type)}`,"x-toolbar-props":{showBorder:!1,showBackground:!0},"x-component-props":B({title:t.title,icon:t.icon,schemaUid:t.schemaUid},t.options||{})};return Al.merge(e,(n=(i=t.options)==null?void 0:i.schema)!=null?n:{})}const ll=t=>{const e=V.useLocation(),{onClick:i}=g.useLinkActionProps(t),n=e.pathname===t.url;return d.jsx(tn,R(B({},t),{onClick:i,selected:n}))},x0=()=>{const t=D.useFieldSchema(),{t:e}=Je.useTranslation(),{urlSchema:i,paramsSchema:n,openInNewWindowSchema:r}=g.useURLAndHTMLSchema(),{resource:o,refresh:s}=ce(),l=t["x-component-props"]||{},h={url:l.url,params:l.params||[{}],openInNewWindow:l.openInNewWindow};return d.jsx(g.SchemaSettingsModalItem,{title:e("Edit link"),components:{ArrayItems:Ol.ArrayItems},schema:{type:"object",title:e("Edit link"),properties:{url:R(B({},i),{required:!0}),params:n,openInNewWindow:r}},onSubmit:c=>Q(this,[c],function*({url:u,params:p,openInNewWindow:y}){const m=t.toJSON(),f=Number(m.name);yield o.update({filterByTk:f,values:{options:R(B({},m["x-component-props"]),{url:u,params:p,openInNewWindow:y})}}),s()}),initialValues:h})},cl=new g.SchemaSettings({name:"mobile:tab-bar:link",items:[Mr(),{name:"editLink",Component:x0},{name:"divider",type:"divider"},Tr]}),dl={name:"link",type:"actionModal",useComponentProps(){const{resource:t,refresh:e}=ce(),{t:i}=de(),{message:n}=F.App.useApp();return{isItem:!0,title:Z("Add link"),buttonText:Z("Link"),schema:nn(),onSubmit(o){return Q(this,null,function*(){if(!o.title||o.title.trim()==="")return n.error(i("Title field is required")),Promise.reject(new Error(i("Title field is required")));if(!o.icon)return n.error(i("Icon field is required")),Promise.reject(new Error(i("Icon field is required")));yield t.create({values:{type:"link",title:o.title,icon:o.icon}}),yield e()})}}}},ul=t=>{const h=t,{schemaUid:e}=h,i=Rt(h,["schemaUid"]),n=V.useNavigate(),r=V.useLocation(),o=a.useMemo(()=>e?`/page/${e}`:i.url?`${i.url}`:"/",[e,i.url]),s=a.useCallback(()=>{n(o)},[o,n]),l=r.pathname.startsWith(o);return d.jsx(tn,R(B({},i),{onClick:s,selected:l}))},fl=new g.SchemaSettings({name:"mobile:tab-bar:page",items:[Mr(),{name:"divider",type:"divider"},Tr]}),hl=()=>{var n;const{routeList:t}=ce(),e=t.find(r=>{var o;return r.schemaUid||ol((o=r.options)==null?void 0:o.url)});if(!e)return null;const i=((n=e==null?void 0:e.options)==null?void 0:n.url)||`/${e.type}/${e.schemaUid}`;return i?d.jsx(V.Navigate,{to:i,replace:!0}):null},pl=()=>{const t=V.useNavigate(),{t:e}=de();return d.jsx(F.Result,{status:"404",title:"404",subTitle:e("Sorry, the page you visited does not exist."),extra:d.jsx(Ii,{onClick:()=>t("/",{replace:!0}),color:"primary",fill:"solid",children:e("Back Home")})})},ml={name:"schema",type:"actionModal",useComponentProps(){const{resource:t,refresh:e,schemaResource:i}=ce(),n=V.useNavigate(),{t:r}=de(),{message:o}=F.App.useApp();return{isItem:!0,title:Z("Add page"),buttonText:Z("Page"),schema:nn(),onSubmit(l){return Q(this,null,function*(){if(!l.title||l.title.trim()==="")return o.error(r("Title field is required")),Promise.reject(new Error(r("Title field is required")));if(!l.icon)return o.error(r("Icon field is required")),Promise.reject(new Error(r("Icon field is required")));const h=ei.uid(),u=ei.uid(),p=`/page/${h}`,{data:y}=yield t.create({values:{type:"page",schemaUid:h,title:l.title,icon:l.icon}});yield i.insertAdjacent({resourceIndex:"mobile",position:"beforeEnd",values:Ka(h,u)});const c=y.data.id;yield t.create({values:{type:"tabs",parentId:c,title:"Unnamed",schemaUid:u}}),yield e(),n(p)})}}}},_r=new g.SchemaInitializer({name:"mobile:tab-bar",icon:"PlusOutlined",style:{marginRight:12},items:[ml,dl]}),bl=()=>{const{render:t}=g.useSchemaInitializerRender(_r.name);return t({"data-testid":"schema-initializer-MobileTabBar"})},St=({enableTabBar:t=!0})=>{const{styles:e}=y0(),{designable:i}=g.useDesignable(),{routeList:n,activeTabBarItem:r,resource:o,refresh:s}=ce(),l=n.filter(u=>{var p;return u.schemaUid||ol((p=u.options)==null?void 0:p.url)}),h=a.useCallback(u=>Q(this,null,function*(){const{active:p,over:y}=u,c=p==null?void 0:p.id,m=y==null?void 0:y.id;if(!c||!m||c===m)return;const f=Number(c.replace("nocobase-mobile.tabBar.","")),b=Number(m.replace("nocobase-mobile.tabBar.",""));yield o.move({sourceId:f,targetId:b,sortField:"sort"}),yield s()}),[o,s]);return!t||!r&&l.length>0?null:d.jsxs("div",{className:g.cx(e.mobileTabBar,"mobile-tab-bar"),"data-testid":"mobile-tab-bar",children:[d.jsxs("div",{className:e.mobileTabBarContent,children:[d.jsx(g.DndContext,{onDragEnd:h,children:d.jsx("div",{className:g.cx(e.mobileTabBarList,g.css({maxWidth:i?"calc(100% - 58px)":"100%"})),children:n.map(u=>d.jsx(g.SchemaComponent,{schema:al(u)},u.id))})}),d.jsx(bl,{})]}),d.jsx(ya,{position:"bottom"})]})};St.Item=tn,St.Link=ll,St.Page=ul;const gl=()=>{const{showTabBar:t}=en();return d.jsxs(_a,{children:[d.jsx(V.Outlet,{}),d.jsx(St,{enableTabBar:t})]})},S0=un.css`
|
|
338
|
-
.ant-table-cell {
|
|
339
|
-
> .ant-space-horizontal {
|
|
340
|
-
.ant-space-item-split:has(+ .ant-space-item:empty) {
|
|
341
|
-
display: none;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
`,vl=(t,e)=>t.map(i=>{const n=e(i.title);return i.children?R(B({},i),{title:n,children:vl(i.children,e)}):R(B({},i),{title:n})}),yl=t=>{if(!Array.isArray(t))return[];const e=[];for(const i of t)e.push(i.id),i.hideChildren&&!Ue.isNil(i.firstTabId)&&e.push(i.firstTabId),e.push(...yl(i.children));return e},wl=(t,e)=>Array.isArray(t)?t.map(i=>{var o;const n=wl(i.children,i),r=n.length<=1;return{title:i.title,id:i.id,children:r?null:n,hideChildren:r,firstTabId:(o=n[0])==null?void 0:o.id,parent:e}}):[],k0=({active:t})=>{const{routeList:e}=ce(),i=wl(e),{role:n,setRole:r}=a.useContext(Dr.RolesManagerContext),o=g.useAPIClient(),{t:s}=Je.useTranslation(),l=yl(i),[h,u]=a.useState([]),{loading:p,refresh:y}=g.useRequest({resource:"roles.mobileRoutes",resourceOf:n.name,action:"list",params:{paginate:!1}},{ready:!!n&&t,refreshDeps:[n==null?void 0:n.name],onSuccess(C){var S;u(((S=C==null?void 0:C.data)==null?void 0:S.map(w=>w.id))||[])}}),c=o.resource("roles.mobileRoutes",n.name),m=l.length===h.length,f=(C,S)=>Q(this,null,function*(){if(C){let w=h.filter(P=>P!==S.id);const k=[S.id];S.parent&&S.parent.children.filter(T=>w.includes(T.id)).length===0&&(w=w.filter(T=>T!==S.parent.id),k.push(S.parent.id)),S.children&&(w=w.filter(P=>!S.children.map(T=>T.id).includes(P)),k.push(...S.children.map(P=>P.id))),S.hideChildren&&!Ue.isNil(S.firstTabId)&&(k.push(S.firstTabId),w=w.filter(P=>P!==S.firstTabId)),u(w),yield c.remove({values:k})}else{const w=[...h,S.id],k=[S.id];if(S.parent&&(w.includes(S.parent.id)||(w.push(S.parent.id),k.push(S.parent.id))),S.children){const P=S.children.map(T=>T.id);w.push(...P),k.push(...P)}S.hideChildren&&!Ue.isNil(S.firstTabId)&&(k.push(S.firstTabId),w.push(S.firstTabId)),u(Ue.uniq(w)),yield c.add({values:k})}F.message.success(s("Saved successfully"))}),b=X.useMemoizedFn(C=>Q(this,null,function*(){yield o.resource("roles").update({filterByTk:n.name,values:C.values}),r(B(B({},n),C.values)),F.message.success(s("Saved successfully"))})),v=a.useMemo(()=>Zr.createForm({values:n,effects(){Zr.onFormValuesChange(C=>Q(this,null,function*(){yield b(C)}))}}),[n,b]);return d.jsxs(d.Fragment,{children:[d.jsx(g.SchemaComponent,{schema:{type:"void",name:ei.uid(),"x-component":"FormV2","x-component-props":{form:v},properties:{allowNewMobileMenu:{title:s("Menu permissions"),"x-decorator":"FormItem","x-component":"Checkbox","x-content":s("New menu items are allowed to be accessed by default.")}}}}),d.jsx(F.Table,{className:S0,loading:p,rowKey:"id",pagination:!1,expandable:{defaultExpandAllRows:!0},columns:[{dataIndex:"title",title:s("Menu item title")},{dataIndex:"accessible",title:d.jsxs(d.Fragment,{children:[d.jsx(F.Checkbox,{checked:m,onChange:C=>Q(this,null,function*(){m?yield c.set({values:[]}):yield c.set({values:l}),y(),F.message.success(s("Saved successfully"))})})," ",s("Accessible")]}),render:(C,S)=>{const w=h.includes(S.id);return d.jsx(F.Checkbox,{checked:w,onChange:()=>f(w,S)})}}],dataSource:vl(i,s)})]})},E0=({children:t,active:e})=>{const i=a.useRef(()=>{});return a.useEffect(()=>{var n;e&&((n=i.current)==null||n.call(i))},[e]),d.jsx(dr,{action:"list",refreshRef:i,manual:!0,children:t})},C0=()=>window.JsBridge,P0=(t,e)=>C0().invoke(t,e),xl={onBackPressed:()=>{history.length===1?P0({action:"moveTaskToBack"}):history.back()}};Object.keys(xl).forEach(t=>{window[t]=xl[t]});const M0=()=>{const t=g.useDesigner(),{token:e}=g.useToken(),i=a.useMemo(()=>({marginBottom:e.marginBlock}),[e.marginBlock]);return d.jsxs(g.SortableItem,{className:g.cx("nb-mobile-setting"),style:i,children:[d.jsx(t,{}),d.jsx(g.SettingsMenu,{})]})},T0=()=>{const t=g.useSchemaInitializerItem(),{insert:e}=g.useSchemaInitializer();return d.jsx(g.SchemaInitializerItem,B({icon:d.jsx(Lr.SettingOutlined,{}),onClick:()=>Q(this,null,function*(){e({type:"void","x-component":"MobileSettings","x-settings":"blockSettings:mobileSettings","x-component-props":{}})})},t))},_0=new g.SchemaSettings({name:"blockSettings:mobileSettings",items:[{name:"delete",type:"remove",useComponentProps(){const{t}=de();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete settings block")},breakRemoveOn:{"x-component":"Grid"}}}}]});class rn extends g.Plugin{constructor(){super(...arguments);Nr(this,"mobileRouter");Nr(this,"mobilePath","/m")}get desktopMode(){var i,n,r;return(r=(n=(i=this.options)==null?void 0:i.config)==null?void 0:n.desktopMode)!=null?r:!0}get mobileBasename(){return`${this.router.getBasename()}m`}updateOptions(i){return Q(this,null,function*(){var n;return this.options||(this.options={}),this.options.options=B(B({},(n=this.options)==null?void 0:n.options),i),this.app.apiClient.request({url:"applicationPlugins:update",method:"post",params:{filter:{packageName:Vr}},data:{options:this.options.options}})})}getPluginOptions(){var i;return(i=this.options)==null?void 0:i.options}afterAdd(){return Q(this,null,function*(){this.setMobileRouter()})}load(){return Q(this,null,function*(){this.addComponents(),this.addAppRoutes(),this.addRoutes(),this.addInitializers(),this.addSettings(),this.addScopes(),this.addPermissionsSettingsUI(),this.app.pluginSettingsManager.add("mobile",{title:Z("Mobile"),icon:"MobileOutlined",link:this.mobileBasename})})}addScopes(){this.app.addScopes({useMobileNavigationBarLink:Da})}addInitializers(){this.app.schemaInitializerManager.add(fr,_r,mr,yr)}addSettings(){this.app.schemaSettingsManager.add(xr,fl,cl,br,vr,_0)}addComponents(){this.app.addComponents({MobilePageProvider:Oa,MobileNavigationBarAction:wr,MobilePageNavigationBar:qa,MobileHomePage:hl,MobilePageContent:Ia,MobileTabBar:St,MobilePageHeader:pr,MobilePageTabs:za,MobileNavigationActionBar:Wa,MobileNotFoundPage:pl,MobileSettingsBlockInitializer:T0,MobileSettings:M0})}setMobileRouter(){var n,r;const i=g.createRouterManager(((r=(n=this.options)==null?void 0:n.config)==null?void 0:r.router)||{type:"browser",basename:this.mobileBasename},this.app);this.mobileRouter=i}addRoutes(){this.app.addComponents({MobileLayout:gl,MobilePage:Ma}),this.mobileRouter.add("mobile",{Component:"MobileLayout"}),this.mobileRouter.add("mobile.home",{path:"/",Component:"MobileHomePage"}),this.mobileRouter.add("signin",{path:"/signin",Component:()=>(window.location.href=window.location.href.replace(this.mobilePath+"/","/").replace("redirect=",`redirect=${this.mobilePath}`),null)}),this.mobileRouter.add("admin",{path:"/admin/*",Component:()=>(window.location.pathname.includes(`${this.mobilePath}/admin/`)&&window.location.replace(window.location.href.replace(this.mobilePath+"/","/")),null)}),this.mobileRouter.add("mobile.schema",{element:d.jsx(V.Outlet,{})}),this.mobileRouter.add("mobile.schema.page",{path:"/page/:pageSchemaUid",Component:"MobilePage"}),this.mobileRouter.add("mobile.schema.page.popup",{path:"/page/:pageSchemaUid/popups/*",Component:g.PagePopups}),this.mobileRouter.add("mobile.schema.tabs",{element:d.jsx(V.Outlet,{})}),this.mobileRouter.add("mobile.schema.tabs.page",{path:"/page/:pageSchemaUid/tabs/:tabSchemaUid",Component:"MobilePage"}),this.mobileRouter.add("mobile.schema.tabs.page.popup",{path:"/page/:pageSchemaUid/tabs/:tabSchemaUid/popups/*",Component:g.PagePopups}),this.mobileRouter.add("not-found",{path:"*",Component:"MobileNotFoundPage"})}addAppRoutes(){this.app.addComponents({Mobile:rl}),this.app.router.add("m",{path:`${this.mobilePath}/*`,Component:"Mobile"})}getRouterComponent(){return this.mobileRouter.getRouterComponent()}addPermissionsSettingsUI(){var i;(i=this.app.pm.get(Dr))==null||i.settingsUI.addPermissionsTab(({t:n,TabLayout:r,activeKey:o,currentUserRole:s})=>s&&(!s.snippets.includes("pm.mobile")&&!s.snippets.includes("pm.*")||s.snippets.includes("!pm.mobile"))?null:{key:"mobile-menu",label:n("Mobile menu",{ns:fn.name}),children:d.jsx(r,{children:d.jsx(E0,{active:o==="mobile-menu",children:d.jsx(k0,{active:o==="mobile-menu"})})})})}}x.ActionBarProvider=Z1,x.DesktopMode=il,x.DesktopModeContent=tl,x.DesktopModeHeader=Qa,x.Mobile=rl,x.MobileAppContext=Ri,x.MobileAppProvider=nl,x.MobileHomePage=hl,x.MobileLayout=gl,x.MobileNavigationActionBar=Wa,x.MobileNavigationBarAction=wr,x.MobileNotFoundPage=pl,x.MobilePage=Ma,x.MobilePageContent=Ia,x.MobilePageContentContainer=ur,x.MobilePageContext=Hi,x.MobilePageHeader=pr,x.MobilePageNavigationBar=qa,x.MobilePageProvider=Oa,x.MobilePageTabInitializer=Fa,x.MobilePageTabs=za,x.MobilePageTabsSettings=Ba,x.MobileProviders=_a,x.MobileRoutesContext=qi,x.MobileRoutesProvider=dr,x.MobileTabBar=St,x.MobileTabBarInitializer=bl,x.MobileTabBarItem=tn,x.MobileTabBarLink=ll,x.MobileTabBarPage=ul,x.MobileTitleContext=Wi,x.MobileTitleProvider=Ta,x.PluginMobileClient=rn,x.default=rn,x.editTabItemSettingsItem=Mr,x.getMobileNavigationBarLinkSchema=Za,x.getMobilePageContentSchema=Aa,x.getMobilePageSchema=Ka,x.getMobileTabBarItemSchema=al,x.getMobileTabBarItemSchemaFields=nn,x.getPageContentTabSchema=hr,x.mobileAddBlockInitializer=fr,x.mobileNavigationBarActionsInitializer=yr,x.mobileNavigationBarLinkInitializerItem=Va,x.mobileNavigationBarLinkSettings=vr,x.mobilePageHeaderSchema=Ha,x.mobilePageSettings=xr,x.mobilePageTabsSettings=br,x.mobilePagesTabInitializer=mr,x.mobileTabBarInitializer=_r,x.mobileTabBarLinkInitializerItem=dl,x.mobileTabBarLinkSettings=cl,x.mobileTabBarPageSettings=fl,x.mobileTabBarSchemaInitializerItem=ml,x.removeTabItemSettingsItem=Tr,x.useActionBarContext=Ua,x.useMobileApp=en,x.useMobileNavigationBarLink=Da,x.useMobilePage=Ki,x.useMobileRoutes=ce,x.useMobileTitle=cr,x.useStyles=gr,x.useUpdateTabBarItem=sl,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@nocobase/client"),require("@nocobase/plugin-acl"),require("react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("@ant-design/icons"),require("@formily/shared"),require("@formily/core"),require("@formily/react"),require("@nocobase/utils"),require("@emotion/css"),require("antd"),require("antd-style"),require("@formily/antd-v5"),require("lodash"),require("ahooks")):"function"==typeof define&&define.amd?define("@nocobase/plugin-mobile",["@nocobase/client","@nocobase/plugin-acl","react","react-dom","react-i18next","react-router-dom","@ant-design/icons","@formily/shared","@formily/core","@formily/react","@nocobase/utils","@emotion/css","antd","antd-style","@formily/antd-v5","lodash","ahooks"],t):"object"==typeof exports?exports["@nocobase/plugin-mobile"]=t(require("@nocobase/client"),require("@nocobase/plugin-acl"),require("react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("@ant-design/icons"),require("@formily/shared"),require("@formily/core"),require("@formily/react"),require("@nocobase/utils"),require("@emotion/css"),require("antd"),require("antd-style"),require("@formily/antd-v5"),require("lodash"),require("ahooks")):e["@nocobase/plugin-mobile"]=t(e["@nocobase/client"],e["@nocobase/plugin-acl"],e.react,e["react-dom"],e["react-i18next"],e["react-router-dom"],e["@ant-design/icons"],e["@formily/shared"],e["@formily/core"],e["@formily/react"],e["@nocobase/utils"],e["@emotion/css"],e.antd,e["antd-style"],e["@formily/antd-v5"],e.lodash,e.ahooks)}(self,function(e,t,n,r,i,o,a,l,s,c,u,d,f,p,m,h,b){return function(){var g={730:function(e,t){"use strict";var n,r,i=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case a:case s:case l:case p:case m:return e;default:switch(e=e&&e.$$typeof){case d:case u:case f:case b:case h:case c:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference");t.isFragment=function(e){return v(e)===a}},600:function(e,t,n){"use strict";e.exports=n(730)},652:function(e,t,n){"use strict";var r=n(589),i=n.n(r),o=n(758),a=n.n(o)()(i());a.push([e.id,".adm-badge-wrapper {\n display: inline-block;\n position: relative;\n}\n.adm-badge {\n display: -webkit-inline-box;\n display: -webkit-inline-flex;\n display: -moz-inline-box;\n display: inline-flex;\n vertical-align: middle;\n box-sizing: content-box;\n border-radius: 100px;\n background-color: var(--color);\n --right: 0;\n --top: 0;\n --color: var(--adm-badge-color, var(--adm-color-highlight));\n}\n.adm-badge-content {\n color: var(--adm-color-text-light-solid);\n box-sizing: border-box;\n min-width: 8px;\n padding: 1px 4px;\n font-size: var(--adm-font-size-1);\n line-height: 12px;\n white-space: nowrap;\n font-weight: normal;\n text-align: center;\n}\n.adm-badge-fixed {\n position: absolute;\n right: var(--right);\n top: var(--top);\n transform: translate(50%, -50%);\n}\n.adm-badge-dot {\n min-width: 10px;\n width: 10px;\n height: 10px;\n border-radius: 5px;\n}\n.adm-badge-bordered {\n border: solid 1px var(--adm-color-text-light-solid);\n}\n",""]),t.Z=a},555:function(e,t,n){"use strict";var r=n(589),i=n.n(r),o=n(758),a=n.n(o)()(i());a.push([e.id,".adm-button {\n --color: var(--adm-color-text-light-solid);\n --text-color: var(--adm-button-text-color, var(--adm-color-text));\n --background-color: var(--adm-button-background-color, var(--adm-color-background));\n --border-radius: var(--adm-button-border-radius, 4px);\n --border-width: var(--adm-button-border-width, 1px);\n --border-style: var(--adm-button-border-style, solid);\n --border-color: var(--adm-button-border-color, var(--adm-color-border));\n color: var(--text-color);\n background-color: var(--background-color);\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n height: auto;\n padding: 7px 12px;\n margin: 0;\n font-size: var(--adm-font-size-9);\n line-height: 1.4;\n text-align: center;\n border: var(--border-width) var(--border-style) var(--border-color);\n border-radius: var(--border-radius);\n cursor: pointer;\n transition: opacity ease 0.15s;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.adm-button:focus {\n outline: none;\n}\n.adm-button::before {\n position: absolute;\n top: 0;\n left: 0;\n transform: translate(-webkit-calc(var(--border-width) * -1), -webkit-calc(var(--border-width) * -1));\n transform: translate(-moz-calc(var(--border-width) * -1), -moz-calc(var(--border-width) * -1));\n transform: translate(calc(var(--border-width) * -1), calc(var(--border-width) * -1));\n width: 100%;\n height: 100%;\n background-color: var(--adm-color-text-dark-solid);\n border: var(--border-width) var(--border-style) var(--adm-color-text-dark-solid);\n border-radius: var(--border-radius);\n opacity: 0;\n content: ' ';\n box-sizing: content-box;\n}\n.adm-button:active::before {\n opacity: 0.08;\n}\n.adm-button-default.adm-button-fill-outline {\n --background-color: transparent;\n --border-color: var(--adm-color-text);\n}\n.adm-button-default.adm-button-fill-none {\n --background-color: transparent;\n --border-width: 0px;\n}\n.adm-button:not(.adm-button-default) {\n --text-color: var(--adm-color-text-light-solid);\n --background-color: var(--color);\n --border-color: var(--color);\n}\n.adm-button:not(.adm-button-default).adm-button-fill-outline {\n --text-color: var(--color);\n --background-color: transparent;\n}\n.adm-button:not(.adm-button-default).adm-button-fill-none {\n --text-color: var(--color);\n --background-color: transparent;\n --border-width: 0px;\n}\n.adm-button-primary {\n --color: var(--adm-color-primary);\n}\n.adm-button-success {\n --color: var(--adm-color-success);\n}\n.adm-button-danger {\n --color: var(--adm-color-danger);\n}\n.adm-button-warning {\n --color: var(--adm-color-warning);\n}\n.adm-button-block {\n display: block;\n width: 100%;\n}\n.adm-button-disabled {\n cursor: not-allowed;\n opacity: 0.4;\n}\n.adm-button-disabled:active::before {\n display: none;\n}\n.adm-button.adm-button-mini {\n padding-top: 3px;\n padding-bottom: 3px;\n font-size: var(--adm-font-size-main);\n}\n.adm-button.adm-button-mini.adm-button-shape-rounded {\n padding-left: 9px;\n padding-right: 9px;\n}\n.adm-button.adm-button-small {\n padding-top: 3px;\n padding-bottom: 3px;\n font-size: var(--adm-font-size-7);\n}\n.adm-button.adm-button-large {\n padding-top: 11px;\n padding-bottom: 11px;\n font-size: var(--adm-font-size-10);\n}\n.adm-button.adm-button-shape-rounded {\n --border-radius: 1000px;\n}\n.adm-button.adm-button-shape-rectangular {\n --border-radius: 0;\n}\n.adm-button-loading {\n vertical-align: bottom;\n}\n.adm-button-loading-wrapper {\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n height: 1.4em;\n align-items: center;\n justify-content: center;\n}\n.adm-button-loading-wrapper > .adm-loading {\n opacity: 0.6;\n}\n",""]),t.Z=a},155:function(e,t,n){"use strict";var r=n(589),i=n.n(r),o=n(758),a=n.n(o)()(i());a.push([e.id,".adm-dot-loading {\n display: inline-block;\n}\n",""]),t.Z=a},394:function(e,t,n){"use strict";var r=n(589),i=n.n(r),o=n(758),a=n.n(o)()(i());a.push([e.id,".adm-error-block {\n --color: var(--adm-color-text);\n --image-height: var(--adm-error-block-image-height, 100px);\n --image-height-full-page: var(--adm-error-block-image-height-full-page, 200px);\n --image-width: var(--adm-error-block-image-width, auto);\n --image-width-full-page: var(--adm-error-block-image-width-full-page, auto);\n box-sizing: border-box;\n text-align: center;\n}\n.adm-error-block-image {\n height: var(--image-height);\n width: var(--image-width);\n max-width: 100%;\n}\n.adm-error-block-image svg,\n.adm-error-block-image img {\n height: 100%;\n}\n.adm-error-block-description {\n font-size: var(--adm-font-size-4);\n color: var(--adm-color-weak);\n line-height: 1.4;\n margin-top: 12px;\n}\n.adm-error-block-description-title {\n font-size: var(--adm-font-size-7);\n}\n.adm-error-block-description-subtitle {\n margin-top: 8px;\n}\n.adm-error-block-content {\n margin-top: 12px;\n}\n.adm-error-block-full-page {\n padding-top: -webkit-calc(50vh - var(--image-height-full-page));\n padding-top: -moz-calc(50vh - var(--image-height-full-page));\n padding-top: calc(50vh - var(--image-height-full-page));\n}\n.adm-error-block-full-page .adm-error-block-image {\n height: var(--image-height-full-page);\n width: var(--image-width-full-page);\n}\n.adm-error-block-full-page .adm-error-block-description {\n margin-top: 20px;\n font-size: var(--adm-font-size-main);\n}\n.adm-error-block-full-page .adm-error-block-description-title {\n font-size: 20px;\n color: var(--adm-color-text);\n}\n",""]),t.Z=a},546:function(e,t,n){"use strict";var r=n(589),i=n.n(r),o=n(758),a=n.n(o)()(i());a.push([e.id,".adm-mask {\n --z-index: var(--adm-mask-z-index, 1000);\n position: fixed;\n top: 0;\n left: 0;\n z-index: var(--z-index);\n display: block;\n width: 100%;\n height: 100%;\n}\n.adm-mask-aria-button {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n.adm-mask-content {\n z-index: 1;\n}\n",""]),t.Z=a},266:function(e,t,n){"use strict";var r=n(589),i=n.n(r),o=n(758),a=n.n(o)()(i());a.push([e.id,".adm-nav-bar {\n --height: 45px;\n --border-bottom: none;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n align-items: center;\n height: var(--height);\n border-bottom: var(--border-bottom);\n padding: 0 12px;\n white-space: nowrap;\n}\n.adm-nav-bar-left,\n.adm-nav-bar-right {\n flex: 1;\n}\n.adm-nav-bar-title {\n flex: auto;\n text-align: center;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.adm-nav-bar-back {\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n align-items: center;\n margin-right: 16px;\n padding: 6px 0;\n cursor: pointer;\n}\n.adm-nav-bar-back-arrow {\n font-size: 24px;\n margin-right: 4px;\n}\n.adm-nav-bar-left {\n font-size: var(--adm-font-size-7);\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n}\n.adm-nav-bar-title {\n justify-content: center;\n white-space: nowrap;\n font-size: var(--adm-font-size-10);\n padding: 0 12px;\n}\n.adm-nav-bar-right {\n text-align: right;\n}\n",""]),t.Z=a},332:function(e,t,n){"use strict";var r=n(589),i=n.n(r),o=n(758),a=n.n(o)()(i());a.push([e.id,".adm-popup {\n --z-index: var(--adm-popup-z-index, 1000);\n position: fixed;\n z-index: var(--z-index);\n}\n.adm-popup-body {\n position: fixed;\n background-color: var(--adm-color-background);\n z-index: -webkit-calc(var(--z-index) + 10);\n z-index: -moz-calc(var(--z-index) + 10);\n z-index: calc(var(--z-index) + 10);\n}\n.adm-popup-body .adm-popup-close-icon {\n position: absolute;\n z-index: 100;\n}\n.adm-popup-body-position-bottom {\n width: 100%;\n bottom: 0;\n left: 0;\n}\n.adm-popup-body-position-bottom .adm-popup-close-icon {\n right: 8px;\n top: 8px;\n}\n.adm-popup-body-position-top {\n width: 100%;\n top: 0;\n left: 0;\n}\n.adm-popup-body-position-top .adm-popup-close-icon {\n right: 8px;\n bottom: 8px;\n}\n.adm-popup-body-position-left {\n height: 100%;\n top: 0;\n left: 0;\n}\n.adm-popup-body-position-left .adm-popup-close-icon {\n right: 8px;\n top: 8px;\n}\n.adm-popup-body-position-right {\n height: 100%;\n top: 0;\n right: 0;\n}\n.adm-popup-body-position-right .adm-popup-close-icon {\n left: 8px;\n top: 8px;\n}\n.adm-popup-close-icon {\n cursor: pointer;\n padding: 4px;\n font-size: 18px;\n line-height: 1;\n color: var(--adm-color-weak);\n}\n",""]),t.Z=a},862:function(e,t,n){"use strict";var r=n(589),i=n.n(r),o=n(758),a=n.n(o)()(i());a.push([e.id,".adm-safe-area {\n --multiple: var(--adm-safe-area-multiple, 1);\n display: block;\n width: 100%;\n}\n.adm-safe-area-position-top {\n padding-top: -webkit-calc(env(safe-area-inset-top) * var(--multiple));\n padding-top: -moz-calc(env(safe-area-inset-top) * var(--multiple));\n padding-top: calc(env(safe-area-inset-top) * var(--multiple));\n}\n.adm-safe-area-position-bottom {\n padding-bottom: -webkit-calc(env(safe-area-inset-bottom) * var(--multiple));\n padding-bottom: -moz-calc(env(safe-area-inset-bottom) * var(--multiple));\n padding-bottom: calc(env(safe-area-inset-bottom) * var(--multiple));\n}\n",""]),t.Z=a},13:function(e,t,n){"use strict";var r=n(589),i=n.n(r),o=n(758),a=n.n(o)()(i());a.push([e.id,".adm-space-item {\n flex: none;\n}\n.adm-space {\n display: -webkit-inline-box;\n display: -webkit-inline-flex;\n display: -moz-inline-box;\n display: inline-flex;\n --gap: 8px;\n --gap-vertical: var(--gap);\n --gap-horizontal: var(--gap);\n}\n.adm-space-vertical {\n flex-direction: column;\n}\n.adm-space-vertical > .adm-space-item {\n margin-bottom: var(--gap-vertical);\n}\n.adm-space-vertical > .adm-space-item:last-child {\n margin-bottom: 0;\n}\n.adm-space-horizontal {\n flex-direction: row;\n}\n.adm-space-horizontal > .adm-space-item {\n margin-right: var(--gap-horizontal);\n}\n.adm-space-horizontal > .adm-space-item:last-child {\n margin-right: 0;\n}\n.adm-space-horizontal.adm-space-wrap {\n flex-wrap: wrap;\n margin-bottom: -webkit-calc(var(--gap-vertical) * -1);\n margin-bottom: -moz-calc(var(--gap-vertical) * -1);\n margin-bottom: calc(var(--gap-vertical) * -1);\n}\n.adm-space-horizontal.adm-space-wrap > .adm-space-item {\n padding-bottom: var(--gap-vertical);\n}\n.adm-space.adm-space-block {\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n}\n.adm-space-align-center {\n align-items: center;\n}\n.adm-space-align-start {\n align-items: flex-start;\n}\n.adm-space-align-end {\n align-items: flex-end;\n}\n.adm-space-align-baseline {\n align-items: baseline;\n}\n.adm-space-justify-center {\n justify-content: center;\n}\n.adm-space-justify-start {\n justify-content: flex-start;\n}\n.adm-space-justify-end {\n justify-content: flex-end;\n}\n.adm-space-justify-between {\n justify-content: space-between;\n}\n.adm-space-justify-around {\n justify-content: space-around;\n}\n.adm-space-justify-evenly {\n justify-content: space-evenly;\n}\n.adm-space-justify-stretch {\n justify-content: stretch;\n}\n",""]),t.Z=a},663:function(e,t,n){"use strict";var r=n(589),i=n.n(r),o=n(758),a=n.n(o)()(i());a.push([e.id,".adm-tab-bar-wrap {\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-items: stretch;\n overflow: hidden;\n min-height: 48px;\n}\n.adm-tab-bar-item {\n flex: 1;\n color: var(--adm-color-text-secondary);\n white-space: nowrap;\n padding: 4px 8px;\n width: -moz-min-content;\n width: -webkit-min-content;\n width: min-content;\n position: relative;\n cursor: pointer;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n}\n.adm-tab-bar-item-icon {\n font-size: 24px;\n height: 24px;\n line-height: 1;\n}\n.adm-tab-bar-item-title {\n font-size: var(--adm-font-size-2);\n line-height: 15px;\n}\n.adm-tab-bar-item-title-with-icon {\n margin-top: 2px;\n}\n.adm-tab-bar-item-active {\n color: var(--adm-color-primary);\n}\n.adm-tab-bar-icon-badge {\n --top: 6px;\n}\n.adm-tab-bar-title-badge {\n --right: -2px;\n --top: -2px;\n}\n",""]),t.Z=a},902:function(e,t,n){"use strict";var r=n(589),i=n.n(r),o=n(758),a=n.n(o)()(i());a.push([e.id,".adm-tabs {\n --title-font-size: var(--adm-font-size-9);\n --content-padding: 12px;\n --active-line-height: 2px;\n --active-line-border-radius: var(--active-line-height);\n --active-line-color: var(--adm-color-primary);\n --active-title-color: var(--adm-color-primary);\n position: relative;\n min-width: 0;\n}\n.adm-tabs-header {\n position: relative;\n border-bottom: solid 1px var(--adm-color-border);\n}\n.adm-tabs-tab-list {\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-items: center;\n position: relative;\n overflow-x: scroll;\n scrollbar-width: none;\n}\n.adm-tabs-tab-list::-webkit-scrollbar {\n display: none;\n}\n.adm-tabs-tab-wrapper {\n padding: 0 12px;\n}\n.adm-tabs-tab-wrapper-stretch {\n flex: auto;\n}\n.adm-tabs-tab {\n white-space: nowrap;\n padding: 8px 0 10px;\n width: -moz-min-content;\n width: -webkit-min-content;\n width: min-content;\n margin: 0 auto;\n font-size: var(--title-font-size);\n position: relative;\n cursor: pointer;\n}\n.adm-tabs-tab-active {\n color: var(--active-title-color);\n}\n.adm-tabs-tab-disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.adm-tabs-tab-line {\n position: absolute;\n bottom: 0;\n height: var(--active-line-height);\n background: var(--active-line-color);\n border-radius: var(--active-line-border-radius);\n}\n.adm-tabs-content {\n padding: var(--content-padding);\n}\n.adm-tabs-header-mask {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n width: 30px;\n height: 100%;\n pointer-events: none;\n}\n.adm-tabs-header-mask-left {\n left: 0;\n background: -webkit-gradient(linear, left top, right top, from(var(--adm-color-background)), to(rgba(255, 255, 255, 0)));\n background: -webkit-linear-gradient(left, var(--adm-color-background), rgba(255, 255, 255, 0));\n background: -moz-linear-gradient(left, var(--adm-color-background), rgba(255, 255, 255, 0));\n background: linear-gradient(to right, var(--adm-color-background), rgba(255, 255, 255, 0));\n}\n.adm-tabs-header-mask-right {\n right: 0;\n background: -webkit-gradient(linear, right top, left top, from(var(--adm-color-background)), to(rgba(255, 255, 255, 0)));\n background: -webkit-linear-gradient(right, var(--adm-color-background), rgba(255, 255, 255, 0));\n background: -moz-linear-gradient(right, var(--adm-color-background), rgba(255, 255, 255, 0));\n background: linear-gradient(to left, var(--adm-color-background), rgba(255, 255, 255, 0));\n}\n",""]),t.Z=a},46:function(e,t,n){"use strict";var r=n(589),i=n.n(r),o=n(758),a=n.n(o)()(i());a.push([e.id,":root {\n --adm-radius-s: 4px;\n --adm-radius-m: 8px;\n --adm-radius-l: 12px;\n --adm-font-size-1: 9px;\n --adm-font-size-2: 10px;\n --adm-font-size-3: 11px;\n --adm-font-size-4: 12px;\n --adm-font-size-5: 13px;\n --adm-font-size-6: 14px;\n --adm-font-size-7: 15px;\n --adm-font-size-8: 16px;\n --adm-font-size-9: 17px;\n --adm-font-size-10: 18px;\n --adm-color-primary: #1677ff;\n --adm-color-success: #00b578;\n --adm-color-warning: #ff8f1f;\n --adm-color-danger: #ff3141;\n --adm-color-yellow: #ff9f18;\n --adm-color-orange: #ff6430;\n --adm-color-wathet: #e7f1ff;\n --adm-color-text: #333333;\n --adm-color-text-secondary: #666666;\n --adm-color-weak: #999999;\n --adm-color-light: #cccccc;\n --adm-color-border: #eeeeee;\n --adm-color-background: #ffffff;\n --adm-color-highlight: var(--adm-color-danger);\n --adm-color-white: #ffffff;\n --adm-color-box: #f5f5f5;\n --adm-color-text-light-solid: var(--adm-color-white);\n --adm-color-text-dark-solid: #000000;\n --adm-color-fill-content: var(--adm-color-box);\n --adm-font-size-main: var(--adm-font-size-5);\n --adm-font-family: -apple-system, blinkmacsystemfont, 'Helvetica Neue',\n helvetica, segoe ui, arial, roboto, 'PingFang SC', 'miui',\n 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;\n --adm-border-color: var(--adm-color-border);\n}\nhtml[data-prefers-color-scheme='dark'] {\n --adm-color-primary: #3086ff;\n --adm-color-success: #34b368;\n --adm-color-warning: #ffa930;\n --adm-color-danger: #ff4a58;\n --adm-color-yellow: #ffa930;\n --adm-color-orange: #e65a2b;\n --adm-color-wathet: #0d2543;\n --adm-color-text: #e6e6e6;\n --adm-color-text-secondary: #b3b3b3;\n --adm-color-weak: #808080;\n --adm-color-light: #4d4d4d;\n --adm-color-border: #2b2b2b;\n --adm-color-box: #0a0a0a;\n --adm-color-background: #1a1a1a;\n --adm-color-background-body: var(--adm-color-background);\n --adm-border-color: var(--adm-color-border);\n}\n:root {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\nhtml {\n background-color: var(--adm-color-background-body);\n}\nbody {\n color: #333333;\n color: var(--adm-color-text);\n font-size: 13px;\n font-size: var(--adm-font-size-main);\n font-family: -apple-system, blinkmacsystemfont, 'Helvetica Neue',\n helvetica, segoe ui, arial, roboto, 'PingFang SC', 'miui',\n 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;\n font-family: var(--adm-font-family);\n}\na,\nbutton {\n cursor: pointer;\n}\na {\n color: #1677ff;\n color: var(--adm-color-primary);\n transition: opacity ease-in-out 0.2s;\n}\na:active {\n opacity: 0.8;\n}\n.adm-plain-anchor {\n color: inherit;\n transition: none;\n}\n.adm-plain-anchor:active {\n opacity: 1;\n opacity: initial;\n}\nbody.adm-overflow-hidden {\n overflow: hidden !important;\n}\ndiv.adm-px-tester {\n --size: 1;\n height: -webkit-calc(var(--size) / 2 * 2px);\n height: -moz-calc(var(--size) / 2 * 2px);\n height: calc(var(--size) / 2 * 2px);\n width: 0;\n position: fixed;\n left: -100vw;\n top: -100vh;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n pointer-events: none;\n}\n",""]),t.Z=a},758:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);if(!r||!a[u[0]])void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]&&(u[1]="@media ".concat(u[2]," {").concat(u[1],"}")),u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u)}},t}},589:function(e){"use strict";e.exports=function(e){return e[1]}},590:function(e){function t(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),a=t.get(o);return void 0===a&&(a=e.call(this,r),t.set(o,a)),a}function n(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function r(e,t,n,r,i){return n.bind(t,e,r,i)}function i(e,r){var i,o,a,l,s,c=1===e.length?t:n;return i=e,o=this,a=c,l=r.cache.create(),s=r.serializer,a.bind(o,i,l,s)}function o(){return JSON.stringify(arguments)}function a(){this.cache=Object.create(null)}a.prototype.has=function(e){return e in this.cache},a.prototype.get=function(e){return this.cache[e]},a.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new a}};e.exports=function(e,t){var n=t&&t.cache?t.cache:l,r=t&&t.serializer?t.serializer:o;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){var r,i,o,a,l;return r=e,i=this,o=n,a=t.cache.create(),l=t.serializer,o.bind(i,r,a,l)},monadic:function(e,n){var r,i,o,a,l;return r=e,i=this,o=t,a=n.cache.create(),l=n.serializer,o.bind(i,r,a,l)}}},135:function(e,t,n){"use strict";var r,i,o=n(156);var a=(r=o)&&"object"==typeof r&&"default"in r?r.default:r,l=n(412),s=new l,c=s.getBrowser(),u=s.getCPU(),d=s.getDevice(),f=s.getEngine(),p=s.getOS(),m=s.getUA(),h=function(e){return s.setUA(e)},b=function(e){if(!e){console.error("No userAgent string was provided");return}var t=new l(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}},g=Object.freeze({ClientUAInstance:s,browser:c,cpu:u,device:d,engine:f,os:p,ua:m,setUa:h,parseUserAgent:b});function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++){if(n=o[r],!(t.indexOf(n)>=0))Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}}return i}function E(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var j={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},C={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},z={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},M={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},I=function(e){switch(e){case j.Mobile:return{isMobile:!0};case j.Tablet:return{isTablet:!0};case j.SmartTv:return{isSmartTV:!0};case j.Console:return{isConsole:!0};case j.Wearable:return{isWearable:!0};case j.Browser:return{isBrowser:!0};case j.Embedded:return{isEmbedded:!0};default:return M}},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return e||t},T=function(){return!!("undefined"!=typeof window&&(window.navigator||navigator))&&(window.navigator||navigator)},_=function(e){var t=T();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},B=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){(function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{vendor:A(t.vendor),model:A(t.model),os:A(n.name),osVersion:A(n.version),ua:A(r)})},R=function(e){return e.type===j.Mobile},F=function(e){return e.type===j.Tablet},Z=function(e){var t=e.type;return t===j.Mobile||t===j.Tablet},N=function(e){return e.type===j.SmartTv},D=function(e){return e.type===j.Browser},L=function(e){return e.type===j.Wearable},$=function(e){return e.type===j.Console},U=function(e){return e.type===j.Embedded},q=function(e){return A(e.vendor)},W=function(e){return A(e.model)},V=function(e){return A(e.type,"browser")},H=function(e){return e.name===z.Android},G=function(e){return e.name===z.Windows},K=function(e){return e.name===z.MAC_OS},X=function(e){return e.name===z.WindowsPhone},Q=function(e){return e.name===z.IOS},Y=function(e){return A(e.version)},J=function(e){return A(e.name)},ee=function(e){return e.name===C.Chrome},et=function(e){return e.name===C.Firefox},en=function(e){return e.name===C.Chromium},er=function(e){return e.name===C.Edge},ei=function(e){return e.name===C.Yandex},eo=function(e){var t=e.name;return t===C.Safari||t===C.MobileSafari},ea=function(e){return e.name===C.MobileSafari},el=function(e){return e.name===C.Opera},es=function(e){var t=e.name;return t===C.InternetExplorer||t===C.Ie},ec=function(e){return e.name===C.MIUI},eu=function(e){return e.name===C.SamsungBrowser},ed=function(e){return A(e.version)},ef=function(e){return A(e.major)},ep=function(e){return A(e.name)},em=function(e){return A(e.name)},eh=function(e){return A(e.version)},eb=function(){var e=T(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},eg=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},ev=function(){var e=T();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},ey=function(){return _("iPad")},ew=function(){return _("iPhone")},ex=function(){return _("iPod")},ek=function(e){return A(e)};function eO(e){var t=e||g,n=t.device,r=t.browser,i=t.os,o=t.engine,a=t.ua;return{isSmartTV:N(n),isConsole:$(n),isWearable:L(n),isEmbedded:U(n),isMobileSafari:ea(r)||ey(),isChromium:en(r),isMobile:Z(n)||ey(),isMobileOnly:R(n),isTablet:F(n)||ey(),isBrowser:D(n),isDesktop:D(n),isAndroid:H(i),isWinPhone:X(i),isIOS:Q(i)||ey(),isChrome:ee(r),isFirefox:et(r),isSafari:eo(r),isOpera:el(r),isIE:es(r),osVersion:Y(i),osName:J(i),fullBrowserVersion:ed(r),browserVersion:ef(r),browserName:ep(r),mobileVendor:q(n),mobileModel:W(n),engineName:em(o),engineVersion:eh(o),getUA:ek(a),isEdge:er(r)||eg(a),isYandex:ei(r),deviceType:V(n),isIOS13:ev(),isIPad13:ey(),isIPhone13:ew(),isIPod13:ex(),isElectron:eb(),isEdgeChromium:eg(a),isLegacyEdge:er(r)&&!eg(a),isWindows:G(i),isMacOs:K(i),isMIUI:ec(r),isSamsungBrowser:eu(r)}}var eS=N(d),eE=$(d),eP=L(d),ej=U(d),eC=ea(c)||ey(),ez=en(c),eM=Z(d)||ey(),eI=R(d),eA=F(d)||ey(),eT=D(d),e_=D(d),eB=H(p),eR=X(p),eF=Q(p)||ey(),eZ=ee(c),eN=et(c),eD=eo(c),eL=el(c),e$=es(c),eU=Y(p),eq=J(p),eW=ed(c),eV=ef(c),eH=ep(c),eG=q(d),eK=W(d),eX=em(f),eQ=eh(f),eY=ek(m),eJ=er(c)||eg(m),e0=ei(c),e1=V(d),e2=ev(),e4=ey(),e3=ew(),e5=ex(),e6=eb(),e7=eg(m),e8=er(c)&&!eg(m),e9=G(p),te=K(p),tt=ec(c),tn=eu(c);function tr(e){return b(e||window.navigator.userAgent)}t.isDesktop=e_;t.isMobile=eM},278:function(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},o=[],a=0;a<e.length;a++){var l=e[a],s=r.base?l[0]+r.base:l[0],c=i[s]||0,u="".concat(s," ").concat(c);i[s]=c+1;var d=n(u),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var p=function(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css!==e.css||t.media!==e.media||t.sourceMap!==e.sourceMap||t.supports!==e.supports||t.layer!==e.layer)n.update(e=t)}else n.remove()}}(f,r);r.byIndex=a,t.splice(a,0,{identifier:u,updater:p,references:1})}o.push(u)}return o}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var l=n(o[a]);t[l].references--}for(var s=r(e,i),c=0;c<o.length;c++){var u=n(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=s}}},547:function(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},593:function(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},604:function(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},391:function(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){var r,i,o,a,l,s;r=t,i=e,a="",(o=n).supports&&(a+="@supports (".concat(o.supports,") {")),o.media&&(a+="@media ".concat(o.media," {")),(l=void 0!==o.layer)&&(a+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),a+=o.css,l&&(a+="}"),o.media&&(a+="}"),o.supports&&(a+="}"),(s=o.sourceMap)&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),i.styleTagTransform(a,r,i.options)},remove:function(){!function(e){if(null===e.parentNode)return;e.parentNode.removeChild(e)}(t)}}}},784:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},412:function(e,t){!function(n,r){"use strict";var i="function",o="undefined",a="object",l="string",s="major",c="model",u="name",d="type",f="vendor",p="version",m="architecture",h="console",b="mobile",g="tablet",v="smarttv",y="wearable",w="embedded",x="Amazon",k="Apple",O="ASUS",S="BlackBerry",E="Browser",P="Chrome",j="Firefox",C="Google",z="Huawei",M="Microsoft",I="Motorola",A="Opera",T="Samsung",_="Sharp",B="Sony",R="Xiaomi",F="Zebra",Z="Facebook",N="Chromium OS",D="Mac OS",L=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},$=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},U=function(e,t){return typeof e===l&&-1!==q(t).indexOf(q(e))},q=function(e){return e.toLowerCase()},W=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},V=function(e,t){for(var n,o,l,s,c,u,d=0;d<t.length&&!c;){var f=t[d],p=t[d+1];for(n=o=0;n<f.length&&!c&&f[n];){;if(c=f[n++].exec(e))for(l=0;l<p.length;l++)u=c[++o],typeof(s=p[l])===a&&s.length>0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):void 0:this[s[0]]=u?s[1].call(this,u,s[2]):r:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):r):this[s]=u||r}d+=2}},H=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(U(t[n][i],e))return"?"===n?r:n}else if(U(t[n],e))return"?"===n?r:n;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},K={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,A+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[p,[u,A+" GX"]],[/\bopr\/([\w\.]+)/i],[p,[u,A]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[u,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/\bddg\/([\w\.]+)/i],[p,[u,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[u,"Smart Lenovo "+E]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+E],p],[/\bfocus\/([\w\.]+)/i],[p,[u,j+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,A+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,A+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[p,[u,j]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+E]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+E],p],[/samsungbrowser\/([\w\.]+)/i],[p,[u,T+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,Z],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,P+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,H,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,j+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,p],[/(cobalt)\/([\w\.]+)/i],[u,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,q]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",q]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,q]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,T],[d,g]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,T],[d,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[f,k],[d,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,k],[d,g]],[/(macintosh);/i],[c,[f,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,_],[d,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[f,z],[d,g]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,z],[d,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[f,R],[d,b]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,R],[d,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[f,"OPPO"],[d,b]],[/\b(opd2\d{3}a?) bui/i],[c,[f,"OPPO"],[d,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[d,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[d,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,I],[d,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,I],[d,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,"LG"],[d,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,"LG"],[d,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[f,"Lenovo"],[d,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[f,"Nokia"],[d,b]],[/(pixel c)\b/i],[c,[f,C],[d,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,C],[d,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,B],[d,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,B],[d,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,"OnePlus"],[d,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,x],[d,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,x],[d,b]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[d,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,S],[d,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,O],[d,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,O],[d,b]],[/(nexus 9)/i],[c,[f,"HTC"],[d,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[d,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[d,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[d,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[f,"Ulefone"],[d,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[d,b]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[d,g]],[/(surface duo)/i],[c,[f,M],[d,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[d,b]],[/(u304aa)/i],[c,[f,"AT&T"],[d,b]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[d,b]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[d,g]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[d,g]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[d,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[d,g]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[d,g]],[/\b(k88) b/i],[c,[f,"ZTE"],[d,g]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[d,b]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[d,b]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[d,g]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[d,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[d,g]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[d,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[d,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[d,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[d,b]],[/\b(ph-1) /i],[c,[f,"Essential"],[d,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[d,g]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[d,g]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[d,g]],[/(shield[\w ]+) b/i],[c,[f,"Nvidia"],[d,g]],[/(sprint) (\w+)/i],[f,c,[d,b]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,M],[d,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,F],[d,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,F],[d,b]],[/smart-tv.+(samsung)/i],[f,[d,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,T],[d,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,"LG"],[d,v]],[/(apple) ?tv/i],[f,[c,k+" TV"],[d,v]],[/crkey/i],[[c,P+"cast"],[f,C],[d,v]],[/droid.+aft(\w+)( bui|\))/i],[c,[f,x],[d,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,_],[d,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,B],[d,v]],[/(mitv-\w{5}) bui/i],[c,[f,R],[d,v]],[/Hbbtv.*(technisat) (.*);/i],[f,c,[d,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,W],[c,W],[d,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[d,h]],[/droid.+; (shield) bui/i],[c,[f,"Nvidia"],[d,h]],[/(playstation [345portablevi]+)/i],[c,[f,B],[d,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,M],[d,h]],[/((pebble))app/i],[f,c,[d,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[f,k],[d,y]],[/droid.+; (glass) \d/i],[c,[f,C],[d,y]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,F],[d,y]],[/(quest( \d| pro)?)/i],[c,[f,Z],[d,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[d,w]],[/(aeobc)\b/i],[c,[f,x],[d,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[d,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[d,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,b]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[p,H,G]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,H,G],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,D],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,j+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[u,P+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,N],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,p]]},X=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof X))return new X(e,t).getResult();var h=typeof n!==o&&n.navigator?n.navigator:r,v=e||(h&&h.userAgent?h.userAgent:""),y=h&&h.userAgentData?h.userAgentData:r,w=t?L(K,t):K,x=h&&h.userAgent==v;return this.getBrowser=function(){var e,t={};return t[u]=r,t[p]=r,V.call(t,v,w.browser),t[s]=typeof(e=t[p])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:r,x&&h&&h.brave&&typeof h.brave.isBrave==i&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[m]=r,V.call(e,v,w.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[d]=r,V.call(e,v,w.device),x&&!e[d]&&y&&y.mobile&&(e[d]=b),x&&"Macintosh"==e[c]&&h&&typeof h.standalone!==o&&h.maxTouchPoints&&h.maxTouchPoints>2&&(e[c]="iPad",e[d]=g),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,V.call(e,v,w.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,V.call(e,v,w.os),x&&!e[u]&&y&&y.platform&&"Unknown"!=y.platform&&(e[u]=y.platform.replace(/chrome os/i,N).replace(/macos/i,D)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(e){return v=typeof e===l&&e.length>500?W(e,500):e,this},this.setUA(v),this};X.VERSION="1.0.38",X.BROWSER=$([u,p,s]),X.CPU=$([m]),X.DEVICE=$([c,f,d,h,b,v,g,y,w]),X.ENGINE=X.OS=$([u,p]),typeof t!==o?(e.exports&&(t=e.exports=X),t.UAParser=X):typeof define===i&&define.amd?define(function(){return X}):typeof n!==o&&(n.UAParser=X);var Q=typeof n!==o&&(n.jQuery||n.Zepto);if(Q&&!Q.ua){var Y=new X;Q.ua=Y.getResult(),Q.ua.get=function(){return Y.getUA()},Q.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:this)},482:function(e){"use strict";e.exports=a},964:function(e){"use strict";e.exports=d},632:function(e){"use strict";e.exports=m},563:function(e){"use strict";e.exports=s},505:function(e){"use strict";e.exports=c},875:function(e){"use strict";e.exports=l},772:function(t){"use strict";t.exports=e},974:function(e){"use strict";e.exports=t},473:function(e){"use strict";e.exports=u},749:function(e){"use strict";e.exports=b},721:function(e){"use strict";e.exports=f},202:function(e){"use strict";e.exports=p},467:function(e){"use strict";e.exports=h},156:function(e){"use strict";e.exports=n},111:function(e){"use strict";e.exports=r},238:function(e){"use strict";e.exports=i},128:function(e){"use strict";e.exports=o},527:function(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",i=0;i<arguments.length;i++){var o=arguments[i];o&&(e=r(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var i="";for(var o in e)t.call(e,o)&&e[o]&&(i=r(i,o));return i}(o)))}return e}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()}},v={};function y(e){var t=v[e];if(void 0!==t)return t.exports;var n=v[e]={id:e,exports:{}};return g[e].call(n.exports,n,n.exports,y),n.exports}y.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return y.d(t,{a:t}),t},y.d=function(e,t){for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},y.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.nc=void 0;var w={};return!function(){"use strict";let e,t,n,r;y.r(w),y.d(w,{MobilePageTabsSettings:function(){return o0},MobileTabBar:function(){return lG},MobileTabBarLink:function(){return lI},mobileNavigationBarLinkSettings:function(){return ae},MobileTabBarPage:function(){return lN},MobileProviders:function(){return oM},mobileTabBarInitializer:function(){return lW},mobileTabBarLinkSettings:function(){return lR},useActionBarContext:function(){return am},useMobilePage:function(){return o$},useMobileRoutes:function(){return oj},mobileTabBarLinkInitializerItem:function(){return lZ},MobileAppContext:function(){return lc},MobileTabBarItem:function(){return lw},getMobileTabBarItemSchemaFields:function(){return lO},MobileTabBarInitializer:function(){return lV},MobileLayout:function(){return lK},MobilePageContext:function(){return oD},mobilePageSettings:function(){return ay},MobilePageNavigationBar:function(){return ag},MobileAppProvider:function(){return lu},MobileNavigationBarAction:function(){return al},mobileNavigationBarLinkInitializerItem:function(){return ar},MobilePageTabInitializer:function(){return oG},MobileTitleProvider:function(){return oS},editTabItemSettingsItem:function(){return lj},getMobilePageSchema:function(){return ax},getMobilePageContentSchema:function(){return oZ},mobileTabBarPageSettings:function(){return lD},useMobileApp:function(){return ld},useStyles:function(){return o1},MobileRoutesProvider:function(){return oC},PluginMobileClient:function(){return sy},useUpdateTabBarItem:function(){return lk},MobilePageContent:function(){return oR},MobileRoutesContext:function(){return oP},mobilePagesTabInitializer:function(){return oH},useMobileTitle:function(){return oE},MobileHomePage:function(){return lL},MobilePageProvider:function(){return oL},removeTabItemSettingsItem:function(){return lC},mobileAddBlockInitializer:function(){return oF},MobilePage:function(){return oy},useMobileNavigationBarLink:function(){return at},DesktopModeContent:function(){return la},default:function(){return sw},mobilePageHeaderSchema:function(){return av},MobileNotFoundPage:function(){return l$},getMobileNavigationBarLinkSchema:function(){return an},MobileNavigationActionBar:function(){return ah},DesktopMode:function(){return ll},getMobileTabBarItemSchema:function(){return lM},MobilePageContentContainer:function(){return oB},ActionBarProvider:function(){return ap},MobilePageTabs:function(){return o3},DesktopModeHeader:function(){return aH},mobilePageTabsSettings:function(){return oJ},Mobile:function(){return lm},MobileTitleContext:function(){return oO},getPageContentTabSchema:function(){return oN},mobileNavigationBarActionsInitializer:function(){return ai},MobilePageHeader:function(){return oq},mobileTabBarSchemaInitializerItem:function(){return lq}});var i,o,a,l,s,c=y("772"),u=y("156"),d=y.n(u),f=JSON.parse('{"u2":"@nocobase/plugin-mobile"}'),p=y("128"),m=y("238");function h(){return(0,m.useTranslation)([f.u2,"client"],{nsMode:"fallback"})}function b(e){return"{{t('".concat(e,"', { ns: ['").concat(f.u2,"', 'client'], nsMode: 'fallback' })}}")}var g=y("135"),v=y("505"),x=y("721"),k=y("278"),O=y.n(k),S=y("391"),E=y.n(S),P=y("547"),j=y.n(P),C=y("604"),z=y.n(C),M=y("593"),I=y.n(M),A=y("784"),T=y.n(A),_=y("46"),B={};B.styleTagTransform=T(),B.setAttributes=z(),B.insert=j().bind(null,"head"),B.domAPI=E(),B.insertStyleElement=I(),O()(_.Z,B),_.Z&&_.Z.locals&&_.Z.locals;let R=!!("undefined"!=typeof window&&"undefined"!=typeof document&&window.document&&window.document.createElement);R&&document.addEventListener("touchstart",()=>{},!0);var F=y("652"),Z={};Z.styleTagTransform=T(),Z.setAttributes=z(),Z.insert=j().bind(null,"head"),Z.domAPI=E(),Z.insertStyleElement=I(),O()(F.Z,Z),F.Z&&F.Z.locals&&F.Z.locals;var N=y("527"),D=y.n(N);function L(e,t){let n=Object.assign({},t.props);for(let r in e.className&&(n.className=D()(t.props.className,e.className)),e.style&&(n.style=Object.assign(Object.assign({},n.style),e.style)),void 0!==e.tabIndex&&(n.tabIndex=e.tabIndex),e)e.hasOwnProperty(r)&&(r.startsWith("data-")||r.startsWith("aria-"))&&(n[r]=e[r]);return d().cloneElement(t,n)}let $="adm-badge",U=d().createElement(d().Fragment,null);function q(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var W=q(e=>{let{content:t,color:n,children:r}=e,i=t===U,o=D()($,{[`${$}-fixed`]:!!r,[`${$}-dot`]:i,[`${$}-bordered`]:e.bordered}),a=t||0===t?L(e,d().createElement("div",{className:o,style:{"--color":n}},!i&&d().createElement("div",{className:`${$}-content`},t))):null;return r?d().createElement("div",{className:D()(`${$}-wrapper`,e.wrapperClassName),style:e.wrapperStyle},r,a):a},{dot:U}),V=y("555"),H={};H.styleTagTransform=T(),H.setAttributes=z(),H.insert=j().bind(null,"head"),H.domAPI=E(),H.insertStyleElement=I(),O()(V.Z,H),V.Z&&V.Z.locals&&V.Z.locals;var G=y("155"),K={};function X(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{void 0!==e[n]&&(t[n]=e[n])})}),t}K.styleTagTransform=T(),K.setAttributes=z(),K.insert=j().bind(null,"head"),K.domAPI=E(),K.insertStyleElement=I(),O()(G.Z,K),G.Z&&G.Z.locals&&G.Z.locals;let Q={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},Y={color:"default"},J=(0,u.memo)(e=>{var t;let n=X(Y,e);return L(n,d().createElement("div",{style:{color:null!==(t=Q[n.color])&&void 0!==t?t:n.color},className:D()("adm-loading","adm-dot-loading")},d().createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},d().createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},d().createElement("g",{transform:"translate(-100.000000, -71.000000)"},d().createElement("g",{transform:"translate(95.000000, 71.000000)"},d().createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(e=>d().createElement("rect",{key:e,fill:"currentColor",x:20+26*e,y:"16",width:"8",height:"8",rx:"2"},d().createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${.2*e}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"}))))))))))}),ee="adm-button",et={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:d().createElement(J,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},en=(0,u.forwardRef)((e,t)=>{let n=X(et,e),[r,i]=(0,u.useState)(!1),o=(0,u.useRef)(null),a="auto"===n.loading?r:n.loading,l=n.disabled||a;return(0,u.useImperativeHandle)(t,()=>({get nativeElement(){return o.current}})),L(n,d().createElement("button",{ref:o,type:n.type,onClick:e=>{var t,r,o,a;return t=void 0,r=void 0,o=void 0,a=function*(){var t;if(!n.onClick)return;let r=n.onClick(e);if((t=r)&&"object"==typeof t&&"function"==typeof t.then)try{i(!0),yield r,i(!1)}catch(e){throw i(!1),e}},new(o||(o=Promise))(function(e,n){function i(e){try{s(a.next(e))}catch(e){n(e)}}function l(e){try{s(a.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):((n=t.value)instanceof o?n:new o(function(e){e(n)})).then(i,l)}s((a=a.apply(t,r||[])).next())})},className:D()(ee,{[`${ee}-${n.color}`]:n.color,[`${ee}-block`]:n.block,[`${ee}-disabled`]:l,[`${ee}-fill-outline`]:"outline"===n.fill,[`${ee}-fill-none`]:"none"===n.fill,[`${ee}-mini`]:"mini"===n.size,[`${ee}-small`]:"small"===n.size,[`${ee}-large`]:"large"===n.size,[`${ee}-loading`]:a},`${ee}-shape-${n.shape}`),disabled:l,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onTouchStart:n.onTouchStart,onTouchEnd:n.onTouchEnd},a?d().createElement("div",{className:`${ee}-loading-wrapper`},n.loadingIcon,n.loadingText):d().createElement("span",null,n.children)))}),er="${label}不是一个有效的${type}",ei={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:er,method:er,array:er,object:er,number:er,date:er,boolean:er,integer:er,float:er,regexp:er,email:er,url:er,hex:er},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:"选择组"}}},eo=d().createContext(null);function ea(){var e;return null!==(e=(0,u.useContext)(eo))&&void 0!==e?e:ei}var el=y("394"),es={};es.styleTagTransform=T(),es.setAttributes=z(),es.insert=j().bind(null,"head"),es.domAPI=E(),es.insertStyleElement=I(),O()(el.Z,es),el.Z&&el.Z.locals&&el.Z.locals;let ec="adm-error-block",eu={status:"default"},ed=d().createElement("svg",{viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},d().createElement("defs",null,d().createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-default-a"},d().createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),d().createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),d().createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),d().createElement("circle",{id:"error-block-image-default-d",cx:18.823,cy:18.823,r:18.823}),d().createElement("rect",{id:"error-block-image-default-b",x:3.5,y:9,width:51.429,height:88,rx:4.571})),d().createElement("g",{fill:"none",fillRule:"evenodd"},d().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)"}),d().createElement("g",{transform:"rotate(-90 102.429 55.357)"},d().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"}),d().createElement("mask",{id:"error-block-image-default-c",fill:"#fff"},d().createElement("use",{xlinkHref:"#error-block-image-default-b"})),d().createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-default-b"}),d().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)"}),d().createElement("path",{stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"M36.774 5.474H21.523"}),d().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"})),d().createElement("circle",{cx:8.571,cy:8.571,r:8.571,transform:"translate(22.857 142)",fill:"#FFCD6B",fillRule:"nonzero"}),d().createElement("g",{transform:"translate(132.857 124)"},d().createElement("mask",{id:"error-block-image-default-e",fill:"#fff"},d().createElement("use",{xlinkHref:"#error-block-image-default-d"})),d().createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-default-d"}),d().createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:13.886,cy:15.12,r:18.823}),d().createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:23.4,cy:29.057,r:1}),d().createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.343,cy:29.829,r:1}),d().createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:18.771,cy:32.657,r:1.286}),d().createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:29.571,cy:25.971,r:1.286}),d().createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:19.286,cy:7.971,r:1.286}),d().createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:26.486,cy:5.914,r:1.286}),d().createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:11.057,cy:6.943,r:1}),d().createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.086,cy:15.686,r:1.286}),d().createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:22.886,cy:14.657,r:1})),d().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=d().createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},d().createElement("title",null,"@反馈/异常/网络服务异常"),d().createElement("defs",null,d().createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-disconnected-c"},d().createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),d().createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),d().createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),d().createElement("circle",{id:"error-block-image-disconnected-d",cx:22.309,cy:22.309,r:22.309}),d().createElement("path",{id:"error-block-image-disconnected-a",d:"M0 0h400v400H0z"})),d().createElement("g",{fill:"none",fillRule:"evenodd"},d().createElement("mask",{id:"error-block-image-disconnected-b",fill:"#fff"},d().createElement("use",{xlinkHref:"#error-block-image-disconnected-a"})),d().createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"url(#error-block-image-disconnected-c)"},d().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"})),d().createElement("g",{mask:"url(#error-block-image-disconnected-b)"},d().createElement("g",{transform:"translate(85.858 150.644)"},d().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"}),d().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"}),d().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"}),d().createElement("ellipse",{fill:"#7EACFF",transform:"rotate(10 147 41.933)",cx:147,cy:41.933,rx:9.143,ry:10.286}),d().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"}),d().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"}),d().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"}))),d().createElement("g",{mask:"url(#error-block-image-disconnected-b)"},d().createElement("g",{transform:"translate(275.143 302.571)"},d().createElement("mask",{id:"error-block-image-disconnected-e",fill:"#fff"},d().createElement("use",{xlinkHref:"#error-block-image-disconnected-d"})),d().createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-disconnected-d"}),d().createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:16.457,cy:17.92,r:22.309}),d().createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:14.263,cy:12.069,r:2.194}))),d().createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"#FBBE47",fillRule:"nonzero"},d().createElement("circle",{cx:12,cy:12,r:12,transform:"translate(84 297.714)"})))),ep=d().createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},d().createElement("defs",null,d().createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-empty-a"},d().createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),d().createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),d().createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),d().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"})),d().createElement("g",{fill:"none",fillRule:"evenodd"},d().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)"}),d().createElement("g",{transform:"translate(108.571 189.886)"},d().createElement("mask",{id:"error-block-image-empty-c",fill:"#fff"},d().createElement("use",{xlinkHref:"#error-block-image-empty-b"})),d().createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-empty-b"}),d().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)"})),d().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"}),d().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"}),d().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"}),d().createElement("g",{transform:"translate(283.429 177.143)",fillRule:"nonzero"},d().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"}),d().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"}),d().createElement("circle",{fill:"#FFB400",cx:26.4,cy:56.869,r:1.45}),d().createElement("circle",{fill:"#FFB400",cx:39.453,cy:58.319,r:1}),d().createElement("circle",{fill:"#FFB400",cx:17.698,cy:63.637,r:2.417}),d().createElement("circle",{fill:"#FFB400",cx:38.002,cy:51.068,r:2.417}),d().createElement("circle",{fill:"#FFB400",cx:18.665,cy:17.228,r:2.417}),d().createElement("circle",{fill:"#FFB400",cx:32.201,cy:13.36,r:2.417}),d().createElement("circle",{fill:"#FFB400",cx:26.83,cy:20.666,r:1.45}),d().createElement("circle",{fill:"#FFB400",cx:38.969,cy:31.731,r:2.417}),d().createElement("circle",{fill:"#FFB400",cx:25.433,cy:29.797,r:1.45}),d().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"})))),em=d().createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},d().createElement("defs",null,d().createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-busy-a"},d().createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),d().createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),d().createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),d().createElement("circle",{id:"error-block-image-busy-b",cx:34.857,cy:34.857,r:34.857})),d().createElement("g",{fill:"none",fillRule:"evenodd"},d().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)"}),d().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"}),d().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"}),d().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"}),d().createElement("path",{stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"m196.824 197.298 52.216-.506M193.329 330.5h52.215"}),d().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"}),d().createElement("circle",{cx:14.857,cy:14.857,r:14.857,transform:"translate(106.857 248.571)",fill:"#FFCD6B",fillRule:"nonzero"}),d().createElement("g",{transform:"translate(236.571 284.571)"},d().createElement("mask",{id:"error-block-image-busy-c",fill:"#fff"},d().createElement("use",{xlinkHref:"#error-block-image-busy-b"})),d().createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-busy-b"}),d().createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:25.714,cy:28,r:34.857}),d().createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:22.286,cy:18.857,r:3.429}))));let eh=(i={default:ed,disconnected:ef,empty:ep,busy:em},e=>{var t;let n=X(eu,e),{locale:r}=ea(),o=r.ErrorBlock[n.status],a="description"in n?n.description:o.description,l="title"in n?n.title:o.title,s=null!==(t=n.image)&&void 0!==t?t:i[n.status],c="string"==typeof s?d().createElement("img",{src:s,alt:"error block image"}):s;return L(n,d().createElement("div",{className:D()(ec,{[`${ec}-full-page`]:n.fullPage})},d().createElement("div",{className:`${ec}-image`},c),d().createElement("div",{className:`${ec}-description`},![void 0,null].includes(l)&&d().createElement("div",{className:`${ec}-description-title`},l),![void 0,null].includes(a)&&d().createElement("div",{className:`${ec}-description-subtitle`},a)),n.children&&d().createElement("div",{className:`${ec}-content`},n.children)))});var eb=y("266"),eg={};eg.styleTagTransform=T(),eg.setAttributes=z(),eg.insert=j().bind(null,"head"),eg.domAPI=E(),eg.insertStyleElement=I(),O()(eb.Z,eg),eb.Z&&eb.Z.locals&&eb.Z.locals;var ev=function(e){return u.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(" ")}),u.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"LeftOutline-编组"},u.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),u.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"}))))};let ey="adm-nav-bar",ew=d().createElement(ev,null);var ex=e=>{let{navBar:t={}}=ea(),n=X(t,e),{back:r,backIcon:i,backArrow:o}=n,a=t.backIcon||ew,l=function(e,...t){for(let e=t.length-1;e>=0;e-=1)if(void 0!==t[e])return t[e];return e}(ew,t.backIcon,!0===o?a:o,!0===i?a:i);return L(n,d().createElement("div",{className:D()(ey)},d().createElement("div",{className:`${ey}-left`,role:"button"},null!==r&&d().createElement("div",{className:`${ey}-back`,onClick:n.onBack},l&&d().createElement("span",{className:`${ey}-back-arrow`},l),d().createElement("span",{"aria-hidden":"true"},r)),n.left),d().createElement("div",{className:`${ey}-title`},n.children),d().createElement("div",{className:`${ey}-right`},n.right)))},ek=y("332"),eO={};eO.styleTagTransform=T(),eO.setAttributes=z(),eO.insert=j().bind(null,"head"),eO.domAPI=E(),eO.insertStyleElement=I(),O()(ek.Z,eO),ek.Z&&ek.Z.locals&&ek.Z.locals;var eS=y("749"),eE=y("546"),eP={};eP.styleTagTransform=T(),eP.setAttributes=z(),eP.insert=j().bind(null,"head"),eP.domAPI=E(),eP.insertStyleElement=I(),O()(eE.Z,eP),eE.Z&&eE.Z.locals&&eE.Z.locals;let ej=R?window:void 0,eC=["scroll","auto","overlay"],ez=!1;if(R)try{let e={};Object.defineProperty(e,"passive",{get(){ez=!0}}),window.addEventListener("test-passive",null,e)}catch(e){}let eM=0,eI="adm-overflow-hidden";function eA(e,t){let n=function(){let e=(0,u.useRef)(0),t=(0,u.useRef)(0),n=(0,u.useRef)(0),r=(0,u.useRef)(0),i=(0,u.useRef)(0),o=(0,u.useRef)(0),a=(0,u.useRef)(""),l=()=>{n.current=0,r.current=0,i.current=0,o.current=0,a.current=""};return{move:l=>{let s=l.touches[0];if(n.current=s.clientX<0?0:s.clientX-e.current,r.current=s.clientY-t.current,i.current=Math.abs(n.current),o.current=Math.abs(r.current),!a.current){var c,u;a.current=(c=i.current,c>(u=o.current)&&c>10?"horizontal":u>c&&u>10?"vertical":"")}},start:n=>{l(),e.current=n.touches[0].clientX,t.current=n.touches[0].clientY},reset:l,startX:e,startY:t,deltaX:n,deltaY:r,offsetX:i,offsetY:o,direction:a,isVertical:()=>"vertical"===a.current,isHorizontal:()=>"horizontal"===a.current}}(),r=r=>{n.move(r);let i=n.deltaY.current>0?"10":"01",o=function(e,t=ej){let n=e;for(;n&&n!==t&&1===n.nodeType&&n!==document.body;){;let{overflowY:e}=window.getComputedStyle(n);if(eC.includes(e)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return t}(r.target,e.current);if(!o)return;if("strict"===t){let e=function(e){let t=null==e?void 0:e.parentElement;for(;t;){if(t.clientHeight<t.scrollHeight)return t;t=t.parentElement}return null}(r.target);if(e===document.body||e===document.documentElement){r.preventDefault();return}}let{scrollHeight:a,offsetHeight:l,scrollTop:s}=o,{height:c}=o.getBoundingClientRect(),u="11";0===s?u=l>=a?"00":"01":a<=Math.round(c+s)&&(u="10"),"11"!==u&&n.isVertical()&&!(parseInt(u,2)&parseInt(i,2))&&r.cancelable&&ez&&r.preventDefault()},i=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,!!ez&&{passive:!1}),!eM&&document.body.classList.add(eI),eM++},o=()=>{eM&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),!--eM&&document.body.classList.remove(eI))};(0,u.useEffect)(()=>{if(t)return i(),()=>{o()}},[t])}let eT=eK(),e_=e=>eW(e,eT),eB=eK();e_.write=e=>eW(e,eB);let eR=eK();e_.onStart=e=>eW(e,eR);let eF=eK();e_.onFrame=e=>eW(e,eF);let eZ=eK();e_.onFinish=e=>eW(e,eZ);let eN=[];e_.setTimeout=(e,t)=>{let n=e_.now()+t,r=()=>{let e=eN.findIndex(e=>e.cancel==r);~e&&eN.splice(e,1),eU-=~e?1:0},i={time:n,handler:e,cancel:r};return eN.splice(eD(n),0,i),eU+=1,eV(),i};let eD=e=>~(~eN.findIndex(t=>t.time>e)||~eN.length);e_.cancel=e=>{eR.delete(e),eF.delete(e),eZ.delete(e),eT.delete(e),eB.delete(e)},e_.sync=e=>{eq=!0,e_.batchedUpdates(e),eq=!1},e_.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,e_.onStart(n)}return r.handler=e,r.cancel=()=>{eR.delete(n),t=null},r};let eL="undefined"!=typeof window?window.requestAnimationFrame:()=>{};e_.use=e=>eL=e,e_.now="undefined"!=typeof performance?()=>performance.now():Date.now,e_.batchedUpdates=e=>e(),e_.catch=console.error,e_.frameLoop="always",e_.advance=()=>{"demand"!==e_.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):eG()};let e$=-1,eU=0,eq=!1;function eW(e,t){eq?(t.delete(e),e(0)):(t.add(e),eV())}function eV(){e$<0&&(e$=0,"demand"!==e_.frameLoop&&eL(eH))}function eH(){~e$&&(eL(eH),e_.batchedUpdates(eG))}function eG(){let e=e$,t=eD(e$=e_.now());if(t&&(eX(eN.splice(0,t),e=>e.handler()),eU-=t),!eU){e$=-1;return}eR.flush(),eT.flush(e?Math.min(64,e$-e):16.667),eF.flush(),eB.flush(),eZ.flush()}function eK(){let e=new Set,t=e;return{add(n){eU+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(eU-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,eU-=t.size,eX(t,t=>t(n)&&e.add(t)),eU+=e.size,t=e)}}}function eX(e,t){e.forEach(e=>{try{t(e)}catch(e){e_.catch(e)}})}function eQ(){}let eY=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eJ={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function e0(e,t){if(eJ.arr(e)){if(!eJ.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}let e1=(e,t)=>e.forEach(t);function e2(e,t,n){if(eJ.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}let e4=e=>eJ.und(e)?[]:eJ.arr(e)?e:[e];function e3(e,t){if(e.size){let n=Array.from(e);e.clear(),e1(n,t)}}let e5=(e,...t)=>e3(e,e=>e(...t)),e6=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),e7=null,e8=!1,e9=eQ;var te=Object.freeze({__proto__:null,get createStringInterpolator(){return e},get to(){return t},get colors(){return e7},get skipAnimation(){return e8},get willAdvance(){return e9},assign:n=>{n.to&&(t=n.to),n.now&&(e_.now=n.now),void 0!==n.colors&&(e7=n.colors),null!=n.skipAnimation&&(e8=n.skipAnimation),n.createStringInterpolator&&(e=n.createStringInterpolator),n.requestAnimationFrame&&e_.use(n.requestAnimationFrame),n.batchedUpdates&&(e_.batchedUpdates=n.batchedUpdates),n.willAdvance&&(e9=n.willAdvance),n.frameLoop&&(e_.frameLoop=n.frameLoop)}});let tt=new Set,tn=[],tr=[],ti=0,to={get idle(){return!tt.size&&!tn.length},start(e){ti>e.priority?(tt.add(e),e_.onStart(ta)):(tl(e),e_(tc))},advance:tc,sort(e){if(ti)e_.onFrame(()=>to.sort(e));else{let t=tn.indexOf(e);~t&&(tn.splice(t,1),ts(e))}},clear(){tn=[],tt.clear()}};function ta(){tt.forEach(tl),tt.clear(),e_(tc)}function tl(e){!tn.includes(e)&&ts(e)}function ts(e){tn.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(tn,t=>t.priority>e.priority),0,e)}function tc(e){let t=tr;for(let n=0;n<tn.length;n++){let r=tn[n];ti=r.priority,!r.idle&&(e9(r),r.advance(e),!r.idle&&t.push(r))}return ti=0,(tr=tn).length=0,(tn=t).length>0}let tu=(e,t,n)=>Math.min(Math.max(n,e),t),td="[-+]?\\d*\\.?\\d+",tf=td+"%";function tp(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}let tm=RegExp("rgb"+tp(td,td,td)),th=RegExp("rgba"+tp(td,td,td,td)),tb=RegExp("hsl"+tp(td,tf,tf)),tg=RegExp("hsla"+tp(td,tf,tf,td)),tv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ty=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,tw=/^#([0-9a-fA-F]{6})$/,tx=/^#([0-9a-fA-F]{8})$/;function tk(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tO(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=tk(i,r,e+1/3),a=tk(i,r,e);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*tk(i,r,e-1/3))<<8}function tS(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function tE(e){return(parseFloat(e)%360+360)%360/360}function tP(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function tj(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function tC(e){var t;let n;let r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=0xffffffff?t:null:(n=tw.exec(t))?parseInt(n[1]+"ff",16)>>>0:e7&&void 0!==e7[t]?e7[t]:(n=tm.exec(t))?(tS(n[1])<<24|tS(n[2])<<16|tS(n[3])<<8|255)>>>0:(n=th.exec(t))?(tS(n[1])<<24|tS(n[2])<<16|tS(n[3])<<8|tP(n[4]))>>>0:(n=tv.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=tx.exec(t))?parseInt(n[1],16)>>>0:(n=ty.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=tb.exec(t))?(255|tO(tE(n[1]),tj(n[2]),tj(n[3])))>>>0:(n=tg.exec(t))?(tO(tE(n[1]),tj(n[2]),tj(n[3]))|tP(n[4]))>>>0:null;if(null===r)return e;let i=(0xff000000&(r=r||0))>>>24,o=(0xff0000&r)>>>16,a=(65280&r)>>>8,l=(255&r)/255;return`rgba(${i}, ${o}, ${a}, ${l})`}let tz=(t,n,r)=>{if(eJ.fun(t))return t;if(eJ.arr(t))return tz({range:t,output:n,extrapolate:r});if(eJ.str(t.output[0]))return e(t);let i=t.output,o=t.range||[0,1],a=t.extrapolateLeft||t.extrapolate||"extend",l=t.extrapolateRight||t.extrapolate||"extend",s=t.easing||(e=>e);return e=>{let n=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r,c)}(e,o[n],o[n+1],i[n],i[n+1],s,a,l,t.map)}},tM=2.5949095,tI=2.70158,tA=2*Math.PI/3,tT=2*Math.PI/4.5,t_=e=>{if(e<.36363636363636365)return 7.5625*e*e;if(e<.7272727272727273)return 7.5625*(e-=.5454545454545454)*e+.75;if(e<.9090909090909091)return 7.5625*(e-=.8181818181818182)*e+.9375;else return 7.5625*(e-=.9545454545454546)*e+.984375};function tB(){return(tB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let tR=Symbol.for("FluidValue.get"),tF=Symbol.for("FluidValue.observers"),tZ=e=>!!(e&&e[tR]),tN=e=>e&&e[tR]?e[tR]():e,tD=e=>e[tF]||null;function tL(e,t){let n=e[tF];n&&n.forEach(e=>{var n,r;n=e,r=t,n.eventObserved?n.eventObserved(r):n(r)})}class t${constructor(e){if(this[tR]=void 0,this[tF]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");tU(this,e)}}let tU=(e,t)=>tV(e,tR,t);function tq(e,t){if(e[tR]){let n=e[tF];!n&&tV(e,tF,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function tW(e,t){let n=e[tF];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[tF]=null,e.observerRemoved&&e.observerRemoved(r,t)}}let tV=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),tH=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,tG=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,tK=RegExp(`(${tH.source})(%|[a-z]+)`,"i"),tX=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,tQ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,tY=e=>{let[t,n]=tJ(e);if(!t||e6())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&tQ.test(n))return tY(n);else if(n)return n;return e},tJ=e=>{let t=tQ.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},t0=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,t1=e=>{!n&&(n=e7?RegExp(`(${Object.keys(e7).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>tN(e).replace(tQ,tY).replace(tG,tC).replace(n,tC)),r=t.map(e=>e.match(tH).map(Number)),i=r[0].map((e,t)=>r.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>tz(tB({},e,{output:t})));return e=>{var n;let r=!tK.test(t[0])&&(null==(n=t.find(e=>tK.test(e)))?void 0:n.replace(tH,"")),o=0;return t[0].replace(tH,()=>`${i[o++](e)}${r||""}`).replace(tX,t0)}},t2="react-spring: ",t4=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${t2}once requires a function parameter`);return(...n)=>{!t&&(e(...n),t=!0)}},t3=t4(console.warn),t5=t4(console.warn);function t6(e){return eJ.str(e)&&("#"==e[0]||/\d/.test(e)||!e6()&&tQ.test(e)||e in(e7||{}))}new WeakMap,new WeakMap,new WeakMap,new WeakMap;let t7=e6()?u.useEffect:u.useLayoutEffect,t8=()=>{let e=(0,u.useRef)(!1);return t7(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function t9(){let e=(0,u.useState)()[1],t=t8();return()=>{t.current&&e(Math.random())}}let ne=e=>(0,u.useEffect)(e,nt),nt=[];function nn(e){let t=(0,u.useRef)();return(0,u.useEffect)(()=>{t.current=e}),t.current}let nr=Symbol.for("Animated:node"),ni=e=>!!e&&e[nr]===e,no=e=>e&&e[nr],na=(e,t)=>eY(e,nr,t),nl=e=>e&&e[nr]&&e[nr].getPayload();class ns{constructor(){this.payload=void 0,na(this,this)}getPayload(){return this.payload||[]}}class nc extends ns{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,eJ.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new nc(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return eJ.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,eJ.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class nu extends nc{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=tz({output:[e,e]})}static create(e){return new nu(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(eJ.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=tz({output:[this.getValue(),e]})),this._value=0,super.reset()}}let nd={dependencies:null};class nf extends ns{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return e2(this.source,(n,r)=>{ni(n)?t[r]=n.getValue(e):tZ(n)?t[r]=tN(n):!e&&(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&e1(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return e2(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){nd.dependencies&&tZ(e)&&nd.dependencies.add(e);let t=nl(e);t&&e1(t,e=>this.add(e))}}class np extends nf{constructor(e){super(e)}static create(e){return new np(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(nm)),!0)}}function nm(e){return(t6(e)?nu:nc).create(e)}function nh(e){let t=no(e);return t?t.constructor:eJ.arr(e)?np:t6(e)?nu:nc}function nb(){return(nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let ng=(e,t)=>{let n=!eJ.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,u.forwardRef)((r,i)=>{let o=(0,u.useRef)(null),a=n&&(0,u.useCallback)(e=>{o.current=function(e,t){return e&&(eJ.fun(e)?e(t):e.current=t),t}(i,e)},[i]),[l,s]=function(e,t){let n=new Set;return nd.dependencies=n,e.style&&(e=nb({},e,{style:t.createAnimatedStyle(e.style)})),e=new nf(e),nd.dependencies=null,[e,n]}(r,t),c=t9(),d=()=>{let e=o.current;if(!n||!!e)!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&c()},f=new nv(d,s),p=(0,u.useRef)();t7(()=>(p.current=f,e1(s,e=>tq(e,f)),()=>{p.current&&(e1(p.current.deps,e=>tW(e,p.current)),e_.cancel(p.current.update))})),(0,u.useEffect)(d,[]),ne(()=>()=>{let e=p.current;e1(e.deps,t=>tW(t,e))});let m=t.getComponentProps(l.getValue());return u.createElement(e,nb({},m,{ref:a}))})};class nv{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&e_.write(this.update)}}let ny=Symbol.for("AnimatedComponent"),nw=e=>eJ.str(e)?e:e&&eJ.str(e.displayName)?e.displayName:eJ.fun(e)&&e.name||null;function nx(){return(nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function nk(e,...t){return eJ.fun(e)?e(...t):e}let nO=(e,t)=>!0===e||!!(t&&e&&(eJ.fun(e)?e(t):e4(e).includes(t))),nS=(e,t)=>eJ.obj(e)?t&&e[t]:e,nE=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,nP=e=>e,nj=(e,t=nP)=>{let n=nC;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);!eJ.und(n)&&(r[i]=n)}return r},nC=["config","onProps","onStart","onChange","onPause","onResume","onRest"],nz={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 nM(e){let t=function(e){let t={},n=0;if(e2(e,(e,r)=>{!nz[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return e2(e,(e,r)=>r in t||(n[r]=e)),n}return nx({},e)}function nI(e){return e=tN(e),eJ.arr(e)?e.map(nI):t6(e)?te.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function nA(e){return eJ.fun(e)||eJ.arr(e)&&eJ.obj(e[0])}let nT=nx({},{tension:170,friction:26},{mass:1,damping:1,easing:e=>e,clamp:!1});class n_{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,nT)}}function nB(e,t){if(eJ.und(t.decay)){let n=!eJ.und(t.tension)||!eJ.und(t.friction);(n||!eJ.und(t.frequency)||!eJ.und(t.damping)||!eJ.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}let nR=[];class nF{constructor(){this.changed=!1,this.values=nR,this.toValues=null,this.fromValues=nR,this.to=void 0,this.from=void 0,this.config=new n_,this.immediate=!1}}function nZ(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,l)=>{var s;let c,u;let d=nO(null!=(s=n.cancel)?s:null==r?void 0:r.cancel,t);if(d)m();else{!eJ.und(n.pause)&&(i.paused=nO(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=i.paused||nO(e,t)),c=nk(n.delay||0,t),e?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function f(){i.resumeQueue.add(p),i.timeouts.delete(u),u.cancel(),c=u.time-e_.now()}function p(){c>0&&!te.skipAnimation?(i.delayed=!0,u=e_.setTimeout(m,c),i.pauseQueue.add(f),i.timeouts.add(u)):m()}function m(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(f),i.timeouts.delete(u),e<=(i.cancelId||0)&&(d=!0);try{o.start(nx({},n,{callId:e,cancel:d}),a)}catch(e){l(e)}}})}let nN=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?n$(e.get()):t.every(e=>e.noop)?nD(e.get()):nL(e.get(),t.every(e=>e.finished)),nD=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),nL=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),n$=e=>({value:e,cancelled:!0,finished:!1});function nU(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:l,promise:s}=n;return o||e!==l||t.reset?n.promise=(async()=>{let c,u,d;n.asyncId=i,n.asyncTo=e;let f=nj(t,(e,t)=>"onRest"===t?void 0:e),p=new Promise((e,t)=>(c=e,u=t)),m=e=>{let t=i<=(n.cancelId||0)&&n$(r)||i!==n.asyncId&&nL(r,!1);if(t)throw e.result=t,u(e),e},h=(e,t)=>{let o=new nW,a=new nV;return(async()=>{if(te.skipAnimation)throw nq(n),a.result=nL(r,!1),u(a),a;m(o);let l=eJ.obj(e)?nx({},e):nx({},t,{to:e});l.parentId=i,e2(f,(e,t)=>{eJ.und(l[t])&&(l[t]=e)});let s=await r.start(l);return m(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),s})()};if(te.skipAnimation)return nq(n),nL(r,!1);try{let t;t=eJ.arr(e)?(async e=>{for(let t of e)await h(t)})(e):Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([t.then(c),p]),d=nL(r.get(),!0,!1)}catch(e){if(e instanceof nW)d=e.result;else if(e instanceof nV)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?l:void 0,n.promise=o?s:void 0)}return eJ.fun(a)&&e_.batchedUpdates(()=>{a(d,r,r.item)}),d})():s}function nq(e,t){e3(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class nW 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 nV extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}let nH=e=>e instanceof nK,nG=1;class nK extends t${constructor(...e){super(...e),this.id=nG++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=no(this);return e&&e.getValue()}to(...e){return te.to(this,e)}interpolate(...e){return t3(`${t2}The "interpolate" function is deprecated in v9 (use "to" instead)`),te.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){tL(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){!this.idle&&to.sort(this),tL(this,{type:"priority",parent:this,priority:e})}}let nX=Symbol.for("SpringPhase"),nQ=e=>(1&e[nX])>0,nY=e=>(2&e[nX])>0,nJ=e=>(4&e[nX])>0,n0=(e,t)=>t?e[nX]|=3:e[nX]&=-3,n1=(e,t)=>t?e[nX]|=4:e[nX]&=-5;class n2 extends nK{constructor(e,t){if(super(),this.key=void 0,this.animation=new nF,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,!eJ.und(e)||!eJ.und(t)){let n=eJ.obj(e)?nx({},e):nx({},t,{from:e});eJ.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(nY(this)||this._state.asyncTo)||nJ(this)}get goal(){return tN(this.animation.to)}get velocity(){let e=no(this);return e instanceof nc?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return nQ(this)}get isAnimating(){return nY(this)}get isPaused(){return nJ(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{config:i,toValues:o}=r,a=nl(r.to);!a&&tZ(r.to)&&(o=e4(tN(r.to))),r.values.forEach((l,s)=>{if(l.done)return;let c=l.constructor==nu?1:a?a[s].lastPosition:o[s],u=r.immediate,d=c;if(!u){let t;if(d=l.lastPosition,i.tension<=0){l.done=!0;return}let n=l.elapsedTime+=e,o=r.fromValues[s],a=null!=l.v0?l.v0:l.v0=eJ.arr(i.velocity)?i.velocity[s]:i.velocity,f=i.precision||(o==c?.005:Math.min(1,.001*Math.abs(c-o)));if(eJ.und(i.duration)){if(i.decay){let e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*n);d=o+a/(1-e)*(1-r),u=Math.abs(l.lastPosition-d)<=f,t=a*r}else{t=null==l.lastVelocity?a:l.lastVelocity;let n=i.restVelocity||f/10,r=i.clamp?0:i.bounce,s=!eJ.und(r),p=o==c?l.v0>0:o<c,m=!1,h=Math.ceil(e/1);for(let e=0;e<h&&!(!(Math.abs(t)>n)&&(u=Math.abs(c-d)<=f));++e){;s&&(m=d==c||d>c==p)&&(t=-t*r,d=c);let e=-(1e-6*i.tension)*(d-c),n=(e+-(.001*i.friction)*t)/i.mass;t+=1*n,d+=1*t}}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,l.durationProgress>0&&(l.elapsedTime=i.duration*l.durationProgress,n=l.elapsedTime+=e)),r=(r=(i.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,l.durationProgress=r),t=((d=o+i.easing(r)*(c-o))-l.lastPosition)/e,u=1==r}l.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[s].done&&(u=!1),u?l.done=!0:t=!1,l.setValue(d,i.round)&&(n=!0)});let l=no(this),s=l.getValue();if(t){let e=tN(r.to);(s!==e||n)&&!i.decay?(l.setValue(e),this._onChange(e)):n&&i.decay&&this._onChange(s),this._stop()}else n&&this._onChange(s)}set(e){return e_.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(nY(this)){let{to:e,config:t}=this.animation;e_.batchedUpdates(()=>{this._onStart(),!t.decay&&this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return eJ.und(e)?(n=this.queue||[],this.queue=[]):n=[eJ.obj(e)?e:nx({},t,{to:e})],Promise.all(n.map(e=>this._update(e))).then(e=>nN(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),nq(this._state,e&&this._lastCallId),e_.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=eJ.obj(n)?n[t]:n)||nA(n))&&(n=void 0),null==(r=eJ.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return!nQ(this)&&(e.reverse&&([n,r]=[r,n]),r=tN(r),eJ.und(r)?!no(this)&&this._set(n):this._set(r)),i}_update(e,t){let n=nx({},e),{key:r,defaultProps:i}=this;n.default&&Object.assign(i,nj(n,(e,t)=>/^on/.test(t)?nS(e,r):e)),n8(this,n,"onProps"),n9(this,"onProps",n,this);let o=this._prepareNode(n);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?");let a=this._state;return nZ(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{!nJ(this)&&(n1(this,!0),e5(a.pauseQueue),n9(this,"onPause",nL(this,n4(this,this.animation.to)),this))},resume:()=>{nJ(this)&&(n1(this,!1),nY(this)&&this._resume(),e5(a.resumeQueue),n9(this,"onResume",nL(this,n4(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(e=>{if(n.loop&&e.finished&&!(t&&e.noop)){let e=n3(n);if(e)return this._update(e,!0)}return e})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(n$(this));let r=!eJ.und(e.to),i=!eJ.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(n$(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:l}=this,{to:s,from:c}=l,{to:u=s,from:d=c}=e;i&&!r&&(!t.default||eJ.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);let f=!e0(d,c);f&&(l.from=d),d=tN(d);let p=!e0(u,s);p&&this._focus(u);let m=nA(t.to),{config:h}=l,{decay:b,velocity:g}=h;(r||i)&&(h.velocity=0),t.config&&!m&&!function(e,t,n){for(let r in n&&(nB(n=nx({},n),t),t=nx({},n,t)),nB(e,t),Object.assign(e,t),nT)null==e[r]&&(e[r]=nT[r]);let{mass:r,frequency:i,damping:o}=e;!eJ.und(i)&&(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i)}(h,nk(t.config,o),t.config!==a.config?nk(a.config,o):void 0);let v=no(this);if(!v||eJ.und(u))return n(nL(this,!0));let y=eJ.und(t.reset)?i&&!t.default:!eJ.und(d)&&nO(t.reset,o),w=y?d:this.get(),x=nI(u),k=eJ.num(x)||eJ.arr(x)||t6(x),O=!m&&(!k||nO(a.immediate||t.immediate,o));if(p){let e=nh(u);if(e!==v.constructor){if(O)v=this._set(x);else throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let S=v.constructor,E=tZ(u),P=!1;if(!E){let e=y||!nQ(this)&&f;(p||e)&&(E=!(P=e0(nI(w),x))),(!e0(l.immediate,O)&&!O||!e0(h.decay,b)||!e0(h.velocity,g))&&(E=!0)}if(P&&nY(this)&&(l.changed&&!y?E=!0:!E&&this._stop(s)),!m&&((E||tZ(s))&&(l.values=v.getPayload(),l.toValues=tZ(u)?null:S==nu?[1]:e4(x)),l.immediate!=O&&(l.immediate=O,!O&&!y&&this._set(s)),E)){let{onRest:e}=l;e1(n7,e=>n8(this,t,e));let r=nL(this,n4(this,s));e5(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&e_.batchedUpdates(()=>{l.changed=!y,null==e||e(r,this),y?nk(a.onRest,r):null==l.onStart||l.onStart(r,this)})}y&&this._set(w),m?n(nU(t.to,t,this._state,this)):E?this._start():nY(this)&&!p?this._pendingCalls.add(n):n(nD(w))}_focus(e){let t=this.animation;e!==t.to&&(tD(this)&&this._detach(),t.to=e,tD(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;tZ(t)&&(tq(t,this),nH(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;tZ(e)&&tW(e,this)}_set(e,t=!0){let n=tN(e);if(!eJ.und(n)){let e=no(this);if(!e||!e0(n,e.getValue())){let r=nh(n);e&&e.constructor==r?e.setValue(n):na(this,r.create(n)),e&&e_.batchedUpdates(()=>{this._onChange(n,t)})}}return no(this)}_onStart(){let e=this.animation;!e.changed&&(e.changed=!0,n9(this,"onStart",nL(this,n4(this,e.to)),this))}_onChange(e,t){!t&&(this._onStart(),nk(this.animation.onChange,e,this)),nk(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;no(this).reset(tN(e.to)),!e.immediate&&(e.fromValues=e.values.map(e=>e.lastPosition)),!nY(this)&&(n0(this,!0),!nJ(this)&&this._resume())}_resume(){te.skipAnimation?this.finish():to.start(this)}_stop(e,t){if(nY(this)){n0(this,!1);let n=this.animation;e1(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),tL(this,{type:"idle",parent:this});let r=t?n$(this.get()):nL(this.get(),n4(this,null!=e?e:n.to));e5(this._pendingCalls,r),n.changed&&(n.changed=!1,n9(this,"onRest",r,this))}}}function n4(e,t){let n=nI(t);return e0(nI(e.get()),n)}function n3(e,t=e.loop,n=e.to){let r=nk(t);if(r){let i=!0!==r&&nM(r),o=(i||e).reverse,a=!i||i.reset;return n5(nx({},e,{loop:t,default:!1,pause:void 0,to:!o||nA(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function n5(e){let{to:t,from:n}=e=nM(e),r=new Set;return eJ.obj(t)&&n6(t,r),eJ.obj(n)&&n6(n,r),e.keys=r.size?Array.from(r):null,e}function n6(e,t){e2(e,(e,n)=>null!=e&&t.add(n))}let n7=["onStart","onRest","onChange","onPause","onResume"];function n8(e,t,n){e.animation[n]=t[n]!==nE(t,n)?nS(t[n],e.key):void 0}function n9(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}let re=["onStart","onChange","onRest"],rt=1;class rn{constructor(e,t){this.id=rt++,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),t&&(this._flush=t),e&&this.start(nx({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];!eJ.und(n)&&this.springs[t].set(n)}}update(e){return e&&this.queue.push(n5(e)),this}start(e){let{queue:t}=this;return(e?t=e4(e).map(n5):this.queue=[],this._flush)?this._flush(this,t):(rc(this,t),rr(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;e1(e4(t),t=>n[t].stop(!!e))}else nq(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(eJ.und(e))this.start({pause:!0});else{let t=this.springs;e1(e4(e),e=>t[e].pause())}return this}resume(e){if(eJ.und(e))this.start({pause:!1});else{let t=this.springs;e1(e4(e),e=>t[e].resume())}return this}each(e){e2(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,e3(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&e3(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,e3(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),!e.idle&&this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}e_.onFrame(this._onFrame)}}function rr(e,t){return Promise.all(t.map(t=>ri(e,t))).then(t=>nN(e,t))}async function ri(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:l,onResolve:s}=t,c=eJ.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let u=eJ.arr(i)||eJ.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):e1(re,n=>{let r=t[n];if(eJ.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(!e&&(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,e5(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),p=!0===t.cancel||!0===nE(t,"cancel");(u||p&&d.asyncId)&&f.push(nZ(++e._lastAsyncId,{props:t,state:d,actions:{pause:eQ,resume:eQ,start(t,n){p?(nq(d,e._lastAsyncId),n(n$(e))):(t.onRest=l,n(nU(u,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let m=nN(e,await Promise.all(f));if(a&&m.finished&&!(n&&m.noop)){let n=n3(t,a,i);if(n)return rc(e,[n]),ri(e,n,!0)}return s&&e_.batchedUpdates(()=>s(m,e,e.item)),m}function ro(e,t){let n=nx({},e.springs);return t&&e1(e4(t),e=>{eJ.und(e.keys)&&(e=n5(e)),!eJ.obj(e.to)&&(e=nx({},e,{to:void 0})),rs(n,e,e=>rl(e))}),ra(e,n),n}function ra(e,t){e2(t,(t,n)=>{!e.springs[n]&&(e.springs[n]=t,tq(t,e))})}function rl(e,t){let n=new n2;return n.key=e,t&&tq(n,t),n}function rs(e,t,n){t.keys&&e1(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function rc(e,t){e1(t,t=>{rs(e.springs,t,t=>rl(t,e))})}let ru=["children"],rd=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}(e,ru),r=(0,u.useContext)(rf),i=n.pause||!!r.pause,o=n.immediate||!!r.immediate;n=function(e,t){let[n]=(0,u.useState)(()=>({inputs:t,result:e()})),r=(0,u.useRef)(),i=r.current,o=i;return o?!(t&&o.inputs&&function(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}(t,o.inputs))&&(o={inputs:t,result:e()}):o=n,(0,u.useEffect)(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:i,immediate:o}),[i,o]);let{Provider:a}=rf;return u.createElement(a,{value:n},t)},rf=function(e,t){return Object.assign(e,u.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(rd,{});rd.Provider=rf.Provider,rd.Consumer=rf.Consumer;let rp=()=>{let e=[],t=function(t){t5(`${t2}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`);let r=[];return e1(e,(e,i)=>{if(eJ.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){!e.includes(t)&&e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return e1(e,e=>e.pause(...arguments)),this},t.resume=function(){return e1(e,e=>e.resume(...arguments)),this},t.set=function(t){e1(e,e=>e.set(t))},t.start=function(t){let n=[];return e1(e,(e,r)=>{if(eJ.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return e1(e,e=>e.stop(...arguments)),this},t.update=function(t){return e1(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eJ.fun(e)?e(n,t):e};return t._getProps=n,t};function rm(e,t){let n=eJ.fun(e),[[r],i]=function(e,t,n){let r=eJ.fun(t)&&t;r&&!n&&(n=[]);let i=(0,u.useMemo)(()=>r||3==arguments.length?rp():void 0,[]),o=(0,u.useRef)(0),a=t9(),l=(0,u.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=ro(e,t);return!(o.current>0)||l.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{ra(e,n),l.queue.push(()=>{r(rr(e,t))}),a()}):rr(e,t)}}),[]),s=(0,u.useRef)([...l.ctrls]),c=[],d=nn(e)||0;function f(e,n){for(let i=e;i<n;i++){let e=s.current[i]||(s.current[i]=new rn(null,l.flush)),n=r?r(i,e):t[i];n&&(c[i]=function(e){let t=n5(e);return eJ.und(t.default)&&(t.default=nj(t)),t}(n))}}(0,u.useMemo)(()=>{e1(s.current.slice(e,d),e=>{var t,n,r;t=e,n=i,null==(r=t.ref)||r.delete(t),null==n||n.delete(t),e.stop(!0)}),s.current.length=e,f(d,e)},[e]),(0,u.useMemo)(()=>{f(0,Math.min(d,e))},n);let p=s.current.map((e,t)=>ro(e,c[t])),m=(0,u.useContext)(rd),h=nn(m),b=m!==h&&function(e){for(let t in e)return!0;return!1}(m);t7(()=>{o.current++,l.ctrls=s.current;let{queue:e}=l;e.length&&(l.queue=[],e1(e,e=>e())),e1(s.current,(e,t)=>{null==i||i.add(e),b&&e.start({default:m});let n=c[t];n&&(!function(e,t){if(t&&e.ref!==t){var n;null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t}}(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),ne(()=>()=>{e1(l.ctrls,e=>e.stop(!0))});let g=p.map(e=>nx({},e));return i?[g,i]:g}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}(o=r||(r={})).MOUNT="mount",o.ENTER="enter",o.UPDATE="update",o.LEAVE="leave";class rh extends nK{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=tz(...t);let n=this._get();na(this,nh(n).create(n))}advance(e){let t=this._get();!e0(t,this.get())&&(no(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&rg(this._active)&&rv(this)}_get(){let e=eJ.arr(this.source)?this.source.map(tN):e4(tN(this.source));return this.calc(...e)}_start(){this.idle&&!rg(this._active)&&(this.idle=!1,e1(nl(this),e=>{e.done=!1}),te.skipAnimation?(e_.batchedUpdates(()=>this.advance()),rv(this)):to.start(this))}_attach(){let e=1;e1(e4(this.source),t=>{tZ(t)&&tq(t,this),nH(t)&&(!t.idle&&this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){e1(e4(this.source),e=>{tZ(e)&&tW(e,this)}),this._active.clear(),rv(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=e4(this.source).reduce((e,t)=>Math.max(e,(nH(t)?t.priority:0)+1),0))}}function rb(e){return!1!==e.idle}function rg(e){return!e.size||Array.from(e).every(rb)}function rv(e){!e.idle&&(e.idle=!0,e1(nl(e),e=>{e.done=!0}),tL(e,{type:"idle",parent:e}))}te.assign({createStringInterpolator:t1,to:(e,t)=>new rh(e,t)}),to.advance;var ry=y("111");function rw(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}let rx=["style","children","scrollTop","scrollLeft","viewBox"],rk=/^--/,rO={},rS={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},rE=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),rP=["Webkit","Ms","Moz","O"];rS=Object.keys(rS).reduce((e,t)=>(rP.forEach(n=>e[rE(n,t)]=e[t]),e),rS);let rj=["x","y","z"],rC=/^(matrix|translate|scale|rotate|skew)/,rz=/^(translate)/,rM=/^(rotate|skew)/,rI=(e,t)=>eJ.num(e)&&0!==e?e+t:e,rA=(e,t)=>eJ.arr(e)?e.every(e=>rA(e,t)):eJ.num(e)?e===t:parseFloat(e)===t;class rT extends nf{constructor(e){let{x:t,y:n,z:r}=e,i=rw(e,rj),o=[],a=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),a.push(e=>[`translate3d(${e.map(e=>rI(e,"px")).join(",")})`,rA(e,0)])),e2(i,(e,t)=>{if("transform"===t)o.push([e||""]),a.push(e=>[e,""===e]);else if(rC.test(t)){if(delete i[t],eJ.und(e))return;let n=rz.test(t)?"px":rM.test(t)?"deg":"";o.push(e4(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${rI(i,n)})`,rA(i,0)]:e=>[`${t}(${e.map(e=>rI(e,n)).join(",")})`,rA(e,t.startsWith("scale")?1:0)])}}),o.length&&(i.transform=new r_(o,a)),super(i)}}class r_ extends t${constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return e1(this.inputs,(n,r)=>{let i=tN(n[0]),[o,a]=this.transforms[r](eJ.arr(i)?i:n.map(tN));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&e1(this.inputs,e=>e1(e,e=>tZ(e)&&tq(e,this)))}observerRemoved(e){0==e&&e1(this.inputs,e=>e1(e,e=>tZ(e)&&tW(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),tL(this,e)}}let rB=["scrollTop","scrollLeft"];te.assign({batchedUpdates:ry.unstable_batchedUpdates,createStringInterpolator:t1,colors:{transparent:0,aliceblue:0xf0f8ffff,antiquewhite:0xfaebd7ff,aqua:0xffffff,aquamarine:0x7fffd4ff,azure:0xf0ffffff,beige:0xf5f5dcff,bisque:0xffe4c4ff,black:255,blanchedalmond:0xffebcdff,blue:65535,blueviolet:0x8a2be2ff,brown:0xa52a2aff,burlywood:0xdeb887ff,burntsienna:0xea7e5dff,cadetblue:0x5f9ea0ff,chartreuse:0x7fff00ff,chocolate:0xd2691eff,coral:0xff7f50ff,cornflowerblue:0x6495edff,cornsilk:0xfff8dcff,crimson:0xdc143cff,cyan:0xffffff,darkblue:35839,darkcyan:9145343,darkgoldenrod:0xb8860bff,darkgray:0xa9a9a9ff,darkgreen:6553855,darkgrey:0xa9a9a9ff,darkkhaki:0xbdb76bff,darkmagenta:0x8b008bff,darkolivegreen:0x556b2fff,darkorange:0xff8c00ff,darkorchid:0x9932ccff,darkred:0x8b0000ff,darksalmon:0xe9967aff,darkseagreen:0x8fbc8fff,darkslateblue:0x483d8bff,darkslategray:0x2f4f4fff,darkslategrey:0x2f4f4fff,darkturquoise:0xced1ff,darkviolet:0x9400d3ff,deeppink:0xff1493ff,deepskyblue:0xbfffff,dimgray:0x696969ff,dimgrey:0x696969ff,dodgerblue:0x1e90ffff,firebrick:0xb22222ff,floralwhite:0xfffaf0ff,forestgreen:0x228b22ff,fuchsia:0xff00ffff,gainsboro:0xdcdcdcff,ghostwhite:0xf8f8ffff,gold:0xffd700ff,goldenrod:0xdaa520ff,gray:0x808080ff,green:8388863,greenyellow:0xadff2fff,grey:0x808080ff,honeydew:0xf0fff0ff,hotpink:0xff69b4ff,indianred:0xcd5c5cff,indigo:0x4b0082ff,ivory:0xfffff0ff,khaki:0xf0e68cff,lavender:0xe6e6faff,lavenderblush:0xfff0f5ff,lawngreen:0x7cfc00ff,lemonchiffon:0xfffacdff,lightblue:0xadd8e6ff,lightcoral:0xf08080ff,lightcyan:0xe0ffffff,lightgoldenrodyellow:0xfafad2ff,lightgray:0xd3d3d3ff,lightgreen:0x90ee90ff,lightgrey:0xd3d3d3ff,lightpink:0xffb6c1ff,lightsalmon:0xffa07aff,lightseagreen:0x20b2aaff,lightskyblue:0x87cefaff,lightslategray:0x778899ff,lightslategrey:0x778899ff,lightsteelblue:0xb0c4deff,lightyellow:0xffffe0ff,lime:0xff00ff,limegreen:0x32cd32ff,linen:0xfaf0e6ff,magenta:0xff00ffff,maroon:0x800000ff,mediumaquamarine:0x66cdaaff,mediumblue:52735,mediumorchid:0xba55d3ff,mediumpurple:0x9370dbff,mediumseagreen:0x3cb371ff,mediumslateblue:0x7b68eeff,mediumspringgreen:0xfa9aff,mediumturquoise:0x48d1ccff,mediumvioletred:0xc71585ff,midnightblue:0x191970ff,mintcream:0xf5fffaff,mistyrose:0xffe4e1ff,moccasin:0xffe4b5ff,navajowhite:0xffdeadff,navy:33023,oldlace:0xfdf5e6ff,olive:0x808000ff,olivedrab:0x6b8e23ff,orange:0xffa500ff,orangered:0xff4500ff,orchid:0xda70d6ff,palegoldenrod:0xeee8aaff,palegreen:0x98fb98ff,paleturquoise:0xafeeeeff,palevioletred:0xdb7093ff,papayawhip:0xffefd5ff,peachpuff:0xffdab9ff,peru:0xcd853fff,pink:0xffc0cbff,plum:0xdda0ddff,powderblue:0xb0e0e6ff,purple:0x800080ff,rebeccapurple:0x663399ff,red:0xff0000ff,rosybrown:0xbc8f8fff,royalblue:0x4169e1ff,saddlebrown:0x8b4513ff,salmon:0xfa8072ff,sandybrown:0xf4a460ff,seagreen:0x2e8b57ff,seashell:0xfff5eeff,sienna:0xa0522dff,silver:0xc0c0c0ff,skyblue:0x87ceebff,slateblue:0x6a5acdff,slategray:0x708090ff,slategrey:0x708090ff,snow:0xfffafaff,springgreen:0xff7fff,steelblue:0x4682b4ff,tan:0xd2b48cff,teal:8421631,thistle:0xd8bfd8ff,tomato:0xff6347ff,turquoise:0x40e0d0ff,violet:0xee82eeff,wheat:0xf5deb3ff,white:0xffffffff,whitesmoke:0xf5f5f5ff,yellow:0xffff00ff,yellowgreen:0x9acd32ff}});let rR=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new nf(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=nw(e)||"Anonymous";return(e=eJ.str(e)?o[e]||(o[e]=ng(e,i)):e[ny]||(e[ny]=ng(e,i))).displayName=`Animated(${t})`,e};return e2(e,(t,n)=>{eJ.arr(e)&&(n=nw(t)),o[n]=o(t)}),{animated:o}})(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:l}=t,s=rw(t,rx),c=Object.values(s),u=Object.keys(s).map(t=>n||e.hasAttribute(t)?t:rO[t]||(rO[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d,f;let n=(d=t,null==(f=r[t])||"boolean"==typeof f||""===f?"":"number"!=typeof f||0===f||rk.test(d)||rS.hasOwnProperty(d)&&rS[d]?(""+f).trim():f+"px");rk.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach((t,n)=>{e.setAttribute(t,c[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new rT(e),getComponentProps:e=>rw(e,rB)}).animated;function rF(e,t){if(R&&e){var n;let r=("function"==typeof(n=e)?n():n)||document.body;return(0,ry.createPortal)(t,r)}return t}let rZ=e=>(function(e,t,n){let r=function(e){let t=(0,u.useRef)(e);return e&&(t.current=!0),!!t.current}(e);return!!t||!!e||!!r&&!n})(e.active,e.forceRender,e.destroyOnClose)?e.children:null,rN={click:"onClick",touchstart:"onTouchStart"};function rD(e,t){let n=Object.assign({},t.props);for(let r of e){let e=rN[r];n[e]=function(n){var r,i;n.stopPropagation(),null===(i=(r=t.props)[e])||void 0===i||i.call(r,n)}}return d().cloneElement(t,n)}let rL="adm-mask",r$={default:.55,thin:.35,thick:.75},rU={black:"0, 0, 0",white:"255, 255, 255"},rq={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]};var rW=e=>{let t=X(rq,e),{locale:n}=ea(),r=(0,u.useRef)(null);eA(r,t.visible&&t.disableBodyScroll);let i=(0,u.useMemo)(()=>{var e;let n=null!==(e=r$[t.opacity])&&void 0!==e?e:t.opacity,r=rU[t.color];return r?`rgba(${r}, ${n})`:t.color},[t.color,t.opacity]),[o,a]=(0,u.useState)(t.visible),l=(0,eS.useUnmountedRef)(),{opacity:s}=rm({opacity:t.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var e,n;!l.current&&(a(t.visible),t.visible?null===(e=t.afterShow)||void 0===e||e.call(t):null===(n=t.afterClose)||void 0===n||n.call(t))}}),c=rD(t.stopPropagation,L(t,d().createElement(rR.div,{className:rL,ref:r,"aria-hidden":!0,style:Object.assign(Object.assign({},t.style),{background:i,opacity:s,display:o?void 0:"none"}),onClick:e=>{var n;e.target===e.currentTarget&&(null===(n=t.onMaskClick)||void 0===n||n.call(t,e))}},t.onMaskClick&&d().createElement("div",{className:`${rL}-aria-button`,role:"button","aria-label":n.Mask.name,onClick:t.onMaskClick}),d().createElement("div",{className:`${rL}-content`},t.children))));return d().createElement(rZ,{active:o,forceRender:t.forceRender,destroyOnClose:t.destroyOnClose},rF(t.getContainer,c))},rV=function(e){return u.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(" ")}),u.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},u.createElement("g",{id:"CloseOutline-编组"},u.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),u.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"}))))};let rH={closeOnMaskClick:!1,closeIcon:d().createElement(rV,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1},rG={toVector:(e,t)=>(void 0===e&&(e=t),Array.isArray(e)?e:[e,e]),add:(e,t)=>[e[0]+t[0],e[1]+t[1]],sub:(e,t)=>[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 rK(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function rX(e,t,n,r=.15){if(0===r)return Math.max(t,Math.min(e,n));return e<t?-rK(t-e,n-t,r)+t:e>n?+rK(e-n,n-t,r)+n:e}function rQ(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rY(Object(n),!0).forEach(function(t){rQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let r0={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 r1(e){return e?e[0].toUpperCase()+e.slice(1):""}let r2=["enter","leave"],r4=["gotpointercapture","lostpointercapture"];function r3(e){return"touches"in e}function r5(e){return r3(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function r6(e){var t;return r3(e)?("touchend"===(t=e).type||"touchcancel"===t.type?t.changedTouches:t.targetTouches)[0]:e}function r7(e){let t=r6(e);return r3(e)?t.identifier:t.pointerId}function r8(e){let t=r6(e);return[t.clientX,t.clientY]}function r9(e,...t){return"function"==typeof e?e(...t):e}function ie(){}function it(e,t){return Object.assign({},t,e||{})}class ir{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,!this.state&&(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){let{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){let t=this.state,n=this.config;!t._active&&(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?r9(n.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=e.timeStamp)}computeValues(e){let t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){let e=this.state;e._initial=e._values,e.initial=e.values}compute(e){let{state:t,config:n,shared:r}=this;t.args=this.args;let i=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){let t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){let{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,i=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){let e=t._delta.map(Math.abs);rG.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);let[o,a]=t._movement,[l,s]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(o)>=l&&u[0]),!1===c[1]&&(c[1]=Math.abs(a)>=s&&u[1])):(!1===c[0]&&(c[0]=Math.abs(o)>=l&&Math.sign(o)*l),!1===c[1]&&(c[1]=Math.abs(a)>=s&&Math.sign(a)*s)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;let d=[0,0];if(n.hasCustomTransform){let[e,t]=u;d[0]=!1!==c[0]?e-c[0]:0,d[1]=!1!==c[1]?t-c[1]:0}else d[0]=!1!==c[0]?o-c[0]:0,d[1]=!1!==c[1]?a-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);let f=t.offset,p=t._active&&!t._blocked||t.active;p&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=r9(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));let[m,h]=t.offset,[[b,g],[v,y]]=t._bounds;t.overflow=[m<b?-1:m>g?1:0,h<v?-1:h>y?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);let w=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,i]){let[[o,a],[l,s]]=e;return[rX(t,o,a,r),rX(n,l,s,i)]}(t._bounds,t.offset,w),t.delta=rG.sub(t.offset,f),this.computeMovement(),p&&(!t.last||i>32)){t.delta=rG.sub(t.offset,f);let e=t.delta.map(Math.abs);rG.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&i>0&&(t.velocity=[e[0]/i,e[1]/i],t.timeDelta=i)}}emit(){let e=this.state,t=this.shared,n=this.config;if(!e._active&&this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;let r=this.handler(rJ(rJ(rJ({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class ii extends ir{constructor(...e){super(...e),rQ(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=rG.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=rG.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){let t=this.state,n=this.config;if(!t.axis&&e){let r="object"==typeof n.axisThreshold?n.axisThreshold[r5(e)]:n.axisThreshold;t.axis=function([e,t],n){let r=Math.abs(e),i=Math.abs(t);return r>i&&r>n?"x":i>r&&i>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}let io=e=>e,ia={enabled:(e=!0)=>e,eventOptions:(e,t,n)=>rJ(rJ({},n.shared.eventOptions),e),preventDefault:(e=!1)=>e,triggerAllEvents:(e=!1)=>e,rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return rG.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?rG.toVector(e):void 0,transform(e,t,n){let r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||io},threshold:e=>rG.toVector(e,0)},il=0,is=rJ(rJ({},ia),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold:(e=il)=>e,bounds(e={}){if("function"==typeof e)return t=>is.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;let{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:i=1/0}=e;return[[t,n],[r,i]]}}),ic={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]},iu="undefined"!=typeof window&&window.document&&window.document.createElement;function id(){return iu&&"ontouchstart"in window}let ip={isBrowser:iu,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:id(),touchscreen:id()||iu&&window.navigator.maxTouchPoints>1,pointer:iu&&"onpointerdown"in window,pointerLock:iu&&"exitPointerLock"in window.document},im=10,ih={mouse:0,touch:0,pen:8},ib=rJ(rJ({},is),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:i=!1}={}}){return(this.pointerLock=r&&ip.pointerLock,ip.touch&&n)?"touch":this.pointerLock?"mouse":ip.pointer&&!i?"pointer":ip.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,ip.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:i=!0}={}}){return this.pointerButtons=r,this.keys=i,!this.pointerLock&&"pointer"===this.device&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:i}){let o=rG.toVector(e,n?r:i?1:0);return this.filterTaps=n,this.tapsThreshold=r,o},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(rG.toVector(e)),distance:this.transform(rG.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?rJ(rJ({},ih),e):ih,keyboardDisplacement:(e=im)=>e});rJ(rJ({},ia),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!ip.touch&&ip.gesture)return"gesture";if(ip.touch&&r)return"touch";if(ip.touchscreen){if(ip.pointer)return"pointer";if(ip.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){let i=e=>{let t=it(r9(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},o=e=>{let t=it(r9(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[i(),o()]:e=>[i(e),o(e)]},threshold(e,t,n){return this.lockDirection="lock"===n.axis,rG.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e}),rJ(rJ({},is),{},{mouseOnly:(e=!0)=>e}),rJ(rJ({},is),{},{mouseOnly:(e=!0)=>e});let ig=new Map,iv=new Map,iy={key:"drag",engine:class e extends ii{constructor(...e){super(...e),rQ(this,"ingKey","dragging")}reset(){super.reset();let e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){let e=this.state;if(e._bounds instanceof HTMLElement){let t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=is.bounds(r)}}cancel(){let e=this.state;!e.canceled&&(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){let t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;let r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),(!r||!(r.size>1)||!n._pointerActive)&&(this.start(e),this.setupPointer(e),n._pointerId=r7(e),n._pointerActive=!0,this.computeValues(r8(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==r5(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){let t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){let t=this.state,n=this.config;if(!t._pointerActive)return;let r=r7(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;let i=r8(e);if(document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=rG.sub(i,t._values),this.computeValues(i)),rG.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(e);return}if(n.preventScrollAxis&&!t._preventScroll){if(!t.axis)return;if(t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis){t._active=!1,this.clean();return}this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){}let t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;let r=r7(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);let[i,o]=t._distance;if(t.tap=i<=n.tapsThreshold&&o<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{let[e,r]=t._delta,[i,o]=t._movement,[a,l]=n.swipe.velocity,[s,c]=n.swipe.distance,u=n.swipe.duration;if(t.elapsedTime<u){let n=Math.abs(e/t.timeDelta),u=Math.abs(r/t.timeDelta);n>a&&Math.abs(i)>s&&(t.swipe[0]=Math.sign(e)),u>l&&Math.abs(o)>c&&(t.swipe[1]=Math.sign(r))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){let t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),!t.pointerCapture&&(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);let t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){let t=ic[e.key];if(t){let n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,rG.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in ic&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){let t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:ib},iw={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=ip.isBrowser?window:void 0)=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},ix=["target","eventOptions","window","enabled","transform"];function ik(e={},t){let n={};for(let[r,i]of Object.entries(t))switch(typeof i){case"function":n[r]=i.call(n,e[r],r,e);break;case"object":n[r]=ik(e[r],i);break;case"boolean":i&&(n[r]=e[r])}return n}class iO{constructor(e,t){rQ(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,i){let o=this._listeners,a=function(e,t=""){let n=r0[e];return e+(n&&n[t]||t)}(t,n),l=rJ(rJ({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),i);e.addEventListener(a,r,l);let s=()=>{e.removeEventListener(a,r,l),o.delete(s)};return o.add(s),s}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class iS{constructor(){rQ(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){let t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class iE{constructor(e){rQ(this,"gestures",new Set),rQ(this,"_targetEventStore",new iO(this)),rQ(this,"gestureEventStores",{}),rQ(this,"gestureTimeoutStores",{}),rQ(this,"handlers",{}),rQ(this,"config",{}),rQ(this,"pointerIds",new Set),rQ(this,"touchIds",new Set),rQ(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&iP(e,"drag"),t.wheel&&iP(e,"wheel"),t.scroll&&iP(e,"scroll"),t.move&&iP(e,"move"),t.pinch&&iP(e,"pinch"),t.hover&&iP(e,"hover")}(this,e)}setEventIds(e){if(r3(e)){var t;return this.touchIds=new Set(Array.from((t=e).touches).filter(e=>{var n,r;return e.target===t.currentTarget||(null===(n=t.currentTarget)||void 0===n||null===(r=n.contains)||void 0===r?void 0:r.call(n,e.target))}).map(e=>e.identifier)),this.touchIds}if("pointerId"in e)return"pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,n={}){let{target:r,eventOptions:i,window:o,enabled:a,transform:l}=e,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++){if(n=o[r],!(t.indexOf(n)>=0))Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}}return i}(e,ix);if(n.shared=ik({target:r,eventOptions:i,window:o,enabled:a,transform:l},iw),t){let e=iv.get(t);n[t]=ik(rJ({shared:n.shared},s),e)}else for(let e in s){let t=iv.get(e);t&&(n[e]=ik(rJ({shared:n.shared},s[e]),t))}return n}(e,t,this.config)}clean(){for(let e of(this._targetEventStore.clean(),this.gestures))this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){let t;let n=this.config.shared,r={};if(!n.target||!!(t=n.target())){if(n.enabled){for(let n of this.gestures){let i=this.config[n],o=ij(r,i.eventOptions,!!t);i.enabled&&new(ig.get(n))(this,e,n).bind(o)}let i=ij(r,n.eventOptions,!!t);for(let t in this.nativeHandlers)i(t,"",n=>this.nativeHandlers[t](rJ(rJ({},this.state.shared),{},{event:n,args:e})),void 0,!0)}for(let e in r)r[e]=function(...e){return 0===e.length?ie:1===e.length?e[0]:function(){let t;for(let n of e)t=n.apply(this,arguments)||t;return t}}(...r[e]);if(!t)return r;for(let e in r){let{device:n,capture:i,passive:o}=function(e){let t=e.substring(2).toLowerCase(),n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));let r=r4.includes(t)?"capturecapture":"capture",i=!!~t.indexOf(r);return i&&(t=t.replace("capture","")),{device:t,capture:i,passive:n}}(e);this._targetEventStore.add(t,n,"",r[e],{capture:i,passive:o})}}}}function iP(e,t){e.gestures.add(t),e.gestureEventStores[t]=new iO(e,t),e.gestureTimeoutStores[t]=new iS}let ij=(e,t,n)=>(r,i,o,a={},l=!1)=>{var s,c;let u=null!==(s=a.capture)&&void 0!==s?s:t.capture,d=null!==(c=a.passive)&&void 0!==c?c:t.passive,f=l?r:function(e,t="",n=!1){let r=r0[e],i=r&&r[t]||t;return"on"+r1(e)+r1(i)+(!function(e=!1,t){return e&&!r2.includes(t)}(n,i)?"":"Capture")}(r,i,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(o)},iC="adm-popup",iz=Object.assign(Object.assign({},rH),{closeOnSwipe:!1,position:"bottom"});var iM=e=>{var t,n,r;let{locale:i,popup:o={}}=ea(),a=X(iz,o,e),l=D()(`${iC}-body`,a.bodyClassName,`${iC}-body-position-${a.position}`),[s,c]=(0,u.useState)(a.visible),f=(0,u.useRef)(null);eA(f,!!a.disableBodyScroll&&!!s&&"strict"),(0,eS.useIsomorphicLayoutEffect)(()=>{a.visible&&c(!0)},[a.visible]);let p=(0,eS.useUnmountedRef)(),{percent:m}=rm({percent:a.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var e,t;!p.current&&(c(a.visible),a.visible?null===(e=a.afterShow)||void 0===e||e.call(a):null===(t=a.afterClose)||void 0===t||t.call(a))}});let h=(t=({swipe:[,e]})=>{var t;a.closeOnSwipe&&(1===e&&"bottom"===a.position||-1===e&&"top"===a.position)&&(null===(t=a.onClose)||void 0===t||t.call(a))},n={axis:"y",enabled:["top","bottom"].includes(a.position)},r=iy,ig.set(r.key,r.engine),iv.set(r.key,r.resolver),function(e,t={},n,r){let i=d().useMemo(()=>new iE(e),[]);if(i.applyHandlers(e,void 0),i.applyConfig(t,n),d().useEffect(i.effect.bind(i)),d().useEffect(()=>i.clean.bind(i),[]),void 0===t.target)return i.bind.bind(i)}({drag:t},n||{},"drag")),b=function(e){let[t,n]=(0,u.useState)(e);return(0,eS.useIsomorphicLayoutEffect)(()=>{n(e)},[e]),t}(s&&a.visible),g=rD(a.stopPropagation,L(a,d().createElement("div",Object.assign({className:iC,onClick:a.onClick,style:{display:s?void 0:"none",touchAction:["top","bottom"].includes(a.position)?"none":"auto"}},h()),a.mask&&d().createElement(rW,{visible:b,forceRender:a.forceRender,destroyOnClose:a.destroyOnClose,onMaskClick:e=>{var t,n;null===(t=a.onMaskClick)||void 0===t||t.call(a,e),a.closeOnMaskClick&&(null===(n=a.onClose)||void 0===n||n.call(a))},className:a.maskClassName,style:a.maskStyle,disableBodyScroll:!1,stopPropagation:a.stopPropagation}),d().createElement(rR.div,{className:l,style:Object.assign(Object.assign({},a.bodyStyle),{pointerEvents:m.to(e=>0===e?"unset":"none"),transform:m.to(e=>"bottom"===a.position?`translate(0, ${e}%)`:"top"===a.position?`translate(0, -${e}%)`:"left"===a.position?`translate(-${e}%, 0)`:"right"===a.position?`translate(${e}%, 0)`:"none")}),ref:f},a.showCloseButton&&d().createElement("a",{className:D()(`${iC}-close-icon`,"adm-plain-anchor"),onClick:()=>{var e;null===(e=a.onClose)||void 0===e||e.call(a)},role:"button","aria-label":i.common.close},a.closeIcon),a.children))));return d().createElement(rZ,{active:s,forceRender:a.forceRender,destroyOnClose:a.destroyOnClose},rF(a.getContainer,g))},iI=y("862"),iA={};iA.styleTagTransform=T(),iA.setAttributes=z(),iA.insert=j().bind(null,"head"),iA.domAPI=E(),iA.insertStyleElement=I(),O()(iI.Z,iA),iI.Z&&iI.Z.locals&&iI.Z.locals;let iT="adm-safe-area";var i_=e=>L(e,d().createElement("div",{className:D()(iT,`${iT}-position-${e.position}`)})),iB=y("13"),iR={};iR.styleTagTransform=T(),iR.setAttributes=z(),iR.insert=j().bind(null,"head"),iR.domAPI=E(),iR.insertStyleElement=I(),O()(iB.Z,iR),iB.Z&&iB.Z.locals&&iB.Z.locals;let iF="adm-space",iZ={direction:"horizontal"};var iN=e=>{let t=X(iZ,e),{direction:n,onClick:r}=t;return L(t,d().createElement("div",{className:D()(iF,{[`${iF}-wrap`]:t.wrap,[`${iF}-block`]:t.block,[`${iF}-${n}`]:!0,[`${iF}-align-${t.align}`]:!!t.align,[`${iF}-justify-${t.justify}`]:!!t.justify}),onClick:r},d().Children.map(t.children,e=>null!=e&&d().createElement("div",{className:`${iF}-item`},e))))},iD=y("902"),iL={};iL.styleTagTransform=T(),iL.setAttributes=z(),iL.insert=j().bind(null,"head"),iL.domAPI=E(),iL.insertStyleElement=I(),O()(iD.Z,iL),iD.Z&&iD.Z.locals&&iD.Z.locals;function i$(e,t,n){let r=e;return void 0!==t&&(r=Math.max(e,t)),void 0!==n&&(r=Math.min(r,n)),r}let iU=(0,eS.createUpdateEffect)(eS.useIsomorphicLayoutEffect);var iq=y("600");let iW="adm-tabs",iV={activeLineMode:"auto",stretch:!0,direction:"ltr"};var iH=q(e=>{var t,n,r;let i;let o=X(iV,e),a=(0,u.useRef)(null),l=(0,u.useRef)(null),s={},c=null,f=[],p="rtl"===o.direction;n=o.children,r=(e,t)=>{if(!(0,u.isValidElement)(e))return;let n=e.key;if("string"!=typeof n)return;0===t&&(c=n);let r=f.push(e);s[n]=r-1},i=0,function e(t){d().Children.forEach(t,t=>{(0,iq.isFragment)(t)?e(t.props.children):(r(t,i),i+=1)})}(n);let[m,h]=function(e){let{value:t,defaultValue:n,onChange:r}=e,i=(0,eS.useUpdate)(),o=(0,u.useRef)(void 0!==t?t:n);void 0!==t&&(o.current=t);let a=(0,eS.useMemoizedFn)((e,t=!1)=>{let n="function"==typeof e?e(o.current):e;if(t||n!==o.current)return o.current=n,i(),null==r?void 0:r(n)});return[o.current,a]}({value:o.activeKey,defaultValue:null!==(t=o.defaultActiveKey)&&void 0!==t?t:c,onChange:e=>{var t;null!==e&&(null===(t=o.onChange)||void 0===t||t.call(o,e))}}),[{x:b,width:g},v]=rm(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:y},w]=rm(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:x,rightMaskOpacity:k},O]=rm(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function S(e=!1,t=!1){let n=a.current;if(!n)return;let r=s[m];if(void 0===r){v.start({x:0,width:0,immediate:!0});return}let i=l.current;if(!i)return;let c=n.children.item(r+1),u=c.children.item(0),d=u.offsetLeft,f=u.offsetWidth,h=c.offsetLeft,b=c.offsetWidth,g=n.offsetWidth,y=n.scrollWidth,x=n.scrollLeft,k=i.offsetWidth,O=0,E=0;"auto"===o.activeLineMode?(O=d,E=f):"full"===o.activeLineMode?(O=h,E=b):O=d+(f-k)/2,p&&(O=-(g-O-(["auto","full"].includes(o.activeLineMode)?E:k))),v.start({x:O,width:E,immediate:e});let P=y-g;if(P<=0)return;let j=0;j=p?-i$(g/2-d+f/2-k,0,P):i$(d-(g-f)/2,0,P),(!t||!1!==o.autoScroll)&&w.start({scrollLeft:j,from:{scrollLeft:x},immediate:e})}(0,eS.useIsomorphicLayoutEffect)(()=>{S(!b.isAnimating)},[]),iU(()=>{S()},[m,p,o.activeLineMode]),!function(e,t){let n=(0,eS.useMemoizedFn)(e);(0,eS.useIsomorphicLayoutEffect)(()=>{let e=t.current;if(e){if(window.ResizeObserver){let t;let r=new ResizeObserver(()=>{t=window.requestAnimationFrame(()=>n(e))});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.disconnect()}}else n(e)}},[t])}(()=>{S(!b.isAnimating)},a),!function(e,t,n){let r=(0,eS.useMemoizedFn)(e);(0,u.useEffect)(()=>(function(e,t,n){if(e&&"undefined"!=typeof MutationObserver){let r=new MutationObserver(()=>{n()});return r.observe(e,t),()=>{r&&(r.disconnect(),r=null)}}return()=>{}})(t.current,n,r),[t])}(()=>{S(!b.isAnimating,!0)},a,{subtree:!0,childList:!0,characterData:!0});let{run:E}=(0,eS.useThrottleFn)((e=!1)=>{let t=a.current;if(!t)return;let n=t.scrollLeft,r=!1,i=!1;p?(r=Math.round(-n)+t.offsetWidth<t.scrollWidth,i=n<0):(r=n>0,i=n+t.offsetWidth<t.scrollWidth),O.start({leftMaskOpacity:r?1:0,rightMaskOpacity:i?1:0,immediate:e})},{wait:100,trailing:!0,leading:!0});return(0,eS.useIsomorphicLayoutEffect)(()=>{E(!0)},[]),L(o,d().createElement("div",{className:iW,style:{direction:o.direction}},d().createElement("div",{className:`${iW}-header`},d().createElement(rR.div,{className:D()(`${iW}-header-mask`,`${iW}-header-mask-left`),style:{opacity:x}}),d().createElement(rR.div,{className:D()(`${iW}-header-mask`,`${iW}-header-mask-right`),style:{opacity:k}}),d().createElement(rR.div,{className:`${iW}-tab-list`,ref:a,scrollLeft:y,onScroll:E,role:"tablist"},d().createElement(rR.div,{ref:l,className:`${iW}-tab-line`,style:{width:"fixed"===o.activeLineMode?"var(--fixed-active-line-width, 30px)":g,x:b}}),f.map(e=>L(e.props,d().createElement("div",{key:e.key,className:D()(`${iW}-tab-wrapper`,{[`${iW}-tab-wrapper-stretch`]:o.stretch})},d().createElement("div",{onClick:()=>{let{key:t}=e;if(!e.props.disabled){if(null==t)return;h(t.toString())}},className:D()(`${iW}-tab`,{[`${iW}-tab-active`]:e.key===m,[`${iW}-tab-disabled`]:e.props.disabled}),role:"tab","aria-selected":e.key===m},e.props.title)))))),f.map(e=>{if(void 0===e.props.children)return null;let t=e.key===m;return d().createElement(rZ,{key:e.key,active:t,forceRender:e.props.forceRender,destroyOnClose:e.props.destroyOnClose},d().createElement("div",{className:`${iW}-content`,style:{display:t?"block":"none"}},e.props.children))})))},{Tab:()=>null});function iG(e,t){return!t&&(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function iK(){var e=iG(["\n height: var(--nb-mobile-page-header-height);\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-bottom: 1px solid ",";\n position: sticky;\n top: 0;\n background-color: white;\n z-index: 1000;\n\n // to match the button named 'Add block'\n & + .nb-grid-container > .nb-grid > .nb-grid-warp > .ant-btn {\n margin: 12px;\n }\n "]);return iK=function(){return e},e}function iX(){var e=iG(["\n display: inline-block;\n padding: 12px;\n visibility: hidden;\n "]);return iX=function(){return e},e}function iQ(){var e=iG(["\n display: inline-block;\n padding: 12px;\n cursor: pointer;\n "]);return iQ=function(){return e},e}function iY(){var e=iG(["\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n max-height: calc(100% - var(--nb-mobile-page-header-height));\n overflow-y: auto;\n overflow-x: hidden;\n background-color: ",";\n\n // clear the margin-bottom of the last block\n & > .nb-grid-container > .nb-grid > .nb-grid-warp > .nb-grid-row:nth-last-child(2) .noco-card-item {\n margin-bottom: 0;\n\n & > .ant-card {\n margin-bottom: 0 !important;\n }\n }\n "]);return iY=function(){return e},e}function iJ(){var e=iG(["\n padding: 8px var(--nb-mobile-page-tabs-content-padding);\n display: flex;\n align-items: center;\n justify-content: flex-end;\n position: sticky;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n border-top: 1px solid ",";\n background-color: ",";\n\n .ant-btn {\n margin-left: 8px;\n }\n "]);return iJ=function(){return e},e}var i0=(0,c.createStyles)(function(e){var t=e.css,n=e.token;return{header:t(iK(),n.colorSplit),placeholder:t(iX()),closeIcon:t(iQ()),body:t(iY(),n.colorBgLayout),footer:t(iJ(),n.colorSplit,n.colorBgLayout)}});function i1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i2(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&null!=i.return&&i.return()}finally{if(l)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i1(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var i4=c.Filter.Action,i3=(0,c.withDynamicSchemaProps)(function(e){var t,n;return d().createElement(i4,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({},e),n=(n={Container:function(e){var t=i7(e.open),n=t.visiblePopup,r=t.popupContainerRef,i=(0,c.useZIndexContext)(),o=i0().styles,a=(0,m.useTranslation)().t,l=i+10,s=(0,u.useCallback)(function(){e.onOpenChange(!1)},[e]),f=(0,u.useMemo)(function(){return{token:{zIndexPopupBase:l}}},[l]),p=(0,u.useMemo)(function(){return{borderTopLeftRadius:"8px",borderTopRightRadius:"8px",maxHeight:"calc(100% - var(--nb-mobile-page-header-height))",overflow:"auto",zIndex:l}},[l]),h=(0,u.useMemo)(function(){return{zIndex:l}},[l]),b=(0,u.useCallback)(function(){return r.current},[r]);return d().createElement(x.ConfigProvider,{theme:f},e.children,d().createElement(iM,{visible:n,onClose:s,onMaskClick:s,getContainer:b,bodyStyle:p,maskStyle:h,closeOnSwipe:!0},d().createElement("div",{className:o.header},d().createElement("span",{className:o.placeholder},d().createElement(rV,null)),d().createElement("span",null,a("Filter")),d().createElement("span",{className:o.closeIcon,onClick:s},d().createElement(rV,null))),d().createElement("div",{style:{padding:12}},e.content),d().createElement("div",{style:{height:150}})))}},n),Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))});i3.displayName="FilterAction";var i5=c.Filter.Action,i6=function(){c.Filter.Action=i3,(0,u.useEffect)(function(){return function(){c.Filter.Action=i5}},[])},i7=function(e){var t=i2((0,u.useState)(function(){return document.querySelector(".mobile-container")}),1)[0],n=i2((0,u.useState)(!1),2),r=n[0],i=n[1],o=d().useRef(null),a=(0,c.useZIndexContext)()+10;return(0,u.useEffect)(function(){if(!e){i(!1),o.current&&setTimeout(function(){t.contains(o.current)&&t.removeChild(o.current),o.current=null},300);return}var n=document.createElement("div");return n.style.transform="translateZ(0)",n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.right="0",n.style.bottom="0",n.style.overflow="hidden",n.style.zIndex=a.toString(),t.appendChild(n),o.current=n,i(!0),function(){o.current&&setTimeout(function(){t.contains(o.current)&&t.removeChild(o.current),o.current=null},300)}},[t,a,e]),{visiblePopup:r,popupContainerRef:o}},i8=(0,v.observer)(function(e){var t=(0,v.useFieldSchema)(),n=(0,v.useField)(),r=(0,c.useActionContext)(),i=r.visible,o=r.setVisible,a=i7(i),l=a.popupContainerRef,s=a.visiblePopup,f=i0().styles,p=(0,c.useZIndexContext)(),m=function(e){return'{{t("Change password")}}'===e.title}(t)||function(e){return'{{t("Edit profile")}}'===e.title}(t),h=m?"Action.Drawer.Footer":e.footerNodeName,b=m?{backgroundColor:"white"}:{},g=p+10,y=(0,u.useMemo)(function(){return{zIndex:g}},[g]),w=t.reduceProperties(function(e,t){return t["x-component"]===h?t:e}),k=n.title||"",O=(0,u.useCallback)(function(){o(!1)},[o]),S=(0,u.useMemo)(function(){return{token:{marginBlock:18,borderRadiusBlock:0,boxShadowTertiary:"none",zIndexPopupBase:g}}},[g]);return d().createElement(c.zIndexContext.Provider,{value:g},d().createElement(x.ConfigProvider,{theme:S},d().createElement(iM,{visible:s,onClose:O,onMaskClick:O,getContainer:function(){return l.current},bodyClassName:f.body,bodyStyle:y,maskStyle:y,closeOnSwipe:!0},d().createElement("div",{className:f.header},d().createElement("span",{className:f.placeholder},d().createElement(rV,null)),d().createElement("span",null,k),d().createElement("span",{className:f.closeIcon,onClick:O},d().createElement(rV,null))),m?d().createElement("div",{style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({padding:12},b)},d().createElement(c.SchemaComponent,{schema:t,filterProperties:function(e){return e["x-component"]!==h}})):d().createElement(c.SchemaComponent,{schema:t,onlyRenderProperties:!0,filterProperties:function(e){return e["x-component"]!==h}}),w?d().createElement("div",{className:f.footer,style:m?b:null},d().createElement(v.RecursionField,{basePath:n.address,schema:t,onlyRenderProperties:!0,filterProperties:function(e){return e["x-component"]===h}})):null)))});i8.displayName="ActionDrawerUsedInMobile";var i9=c.Action.Drawer,oe=function(){c.Action.Drawer=i8,(0,u.useEffect)(function(){return function(){c.Action.Drawer=i9}},[])};function ot(e,t){return!t&&(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function on(){var e=ot(["\n height: var(--nb-mobile-page-header-height);\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-bottom: 1px solid ",";\n position: sticky;\n top: 0;\n background-color: white;\n z-index: 1000;\n\n // to match the button named 'Add block'\n & + .nb-grid-container > .nb-grid > .nb-grid-warp > .ant-btn {\n // 18px is the token marginBlock value\n margin: 12px 12px calc(12px + 18px);\n }\n "]);return on=function(){return e},e}function or(){var e=ot(["\n display: inline-block;\n padding: 12px;\n visibility: hidden;\n "]);return or=function(){return e},e}function oi(){var e=ot(["\n display: inline-block;\n padding: 12px;\n cursor: pointer;\n "]);return oi=function(){return e},e}function oo(){var e=ot(["\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n max-height: calc(100% - var(--nb-mobile-page-header-height));\n overflow-y: auto;\n overflow-x: hidden;\n // background-color: ",";\n\n .popover-subform-container {\n min-width: initial;\n max-width: initial;\n max-height: initial;\n overflow: hidden;\n .ant-card {\n border-radius: 0;\n }\n }\n "]);return oo=function(){return e},e}function oa(){var e=ot(["\n padding: 8px var(--nb-mobile-page-tabs-content-padding);\n display: flex;\n align-items: center;\n justify-content: flex-end;\n position: sticky;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n border-top: 1px solid ",";\n background-color: ",";\n "]);return oa=function(){return e},e}var ol=(0,c.createStyles)(function(e){var t=e.css,n=e.token;return{header:t(on(),n.colorSplit),placeholder:t(or()),closeIcon:t(oi()),body:t(oo(),n.colorBgLayout),footer:t(oa(),n.colorSplit,n.colorBgLayout)}}),os=function(e){var t=e.onOpenChange,n=i7(e.open),r=n.visiblePopup,i=n.popupContainerRef,o=ol().styles,a=(0,v.useField)(),l=(0,c.useZIndexContext)()+10,s=a.title||"",f=(0,u.useMemo)(function(){return{zIndex:l}},[l]),p=(0,u.useCallback)(function(){t(!1)},[t]),m=(0,u.useCallback)(function(){t(!0)},[t]),h=(0,u.useMemo)(function(){return{token:{zIndexPopupBase:l}}},[l]);return d().createElement(c.zIndexContext.Provider,{value:l},d().createElement(x.ConfigProvider,{theme:h},d().createElement("div",{onClick:m},e.children),d().createElement(iM,{visible:r,onClose:p,onMaskClick:p,getContainer:function(){return i.current},bodyClassName:o.body,bodyStyle:f,maskStyle:f,showCloseButton:!0,closeOnSwipe:!0},d().createElement("div",{className:o.header},d().createElement("span",{className:o.placeholder},d().createElement(rV,null)),d().createElement("span",null,s),d().createElement("span",{className:o.closeIcon,onClick:p},d().createElement(rV,null))),e.content,d().createElement("div",{style:{height:50}}))))},oc=function(e){var t,n,r=e.OriginComponent;return d().createElement(r,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({},e),n=(n={Container:os},n),Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))};function ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}function od(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var of=function(e){var t=e.options.items.find(function(e){return"dataBlocks"===e.name}),n=e.options.items.find(function(e){return"otherBlocks"===e.name}),r=["details","editForm","createForm","table","gridCard"];return new c.SchemaInitializer(od(ou({},e.options),{name:"mobile:popup:common:addBlock",items:[od(ou({},t),{children:[],useChildren:function(){return t.useChildren().filter(function(e){return r.includes(e.name)})},title:'{{t("Desktop data blocks")}}'}),od(ou({},n),{title:'{{t("Other desktop blocks")}}'})]}))},op=function(){var e=(0,c.useApp)(),t=e.schemaInitializerManager.get("popup:common:addBlock");if(!!t){var n=of(t);e.schemaInitializerManager.add(n)}};function om(e,t){return!t&&(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function oh(){var e=om(["\n position: absolute !important;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: ",";\n\n .mobile-page-content > .nb-grid-container > .nb-grid > .nb-grid-warp > .ant-btn {\n margin: 20px;\n }\n "]);return oh=function(){return e},e}function ob(){var e=om(["\n height: var(--nb-mobile-page-header-height);\n padding-right: var(--nb-mobile-page-tabs-content-padding);\n display: flex;\n align-items: center;\n justify-content: flex-end;\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: white;\n z-index: 1000;\n "]);return ob=function(){return e},e}var og=(0,c.createStyles)(function(e){var t=e.css,n=e.token;return{container:t(oh(),n.colorBgLayout),footer:t(ob())}});function ov(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oy=function(){var e,t,n=(0,p.useParams)().pageSchemaUid;var r=(e=d().useState(!1),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&null!=i.return&&i.return()}finally{if(l)throw r}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return ov(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ov(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=r[0],o=r[1],a=(0,u.useCallback)(function(){o(!0)},[]);return i?d().createElement(c.RemoteSchemaComponent,{uid:n,NotFoundPage:"MobileNotFoundPage",memoized:!1,onPageNotFind:a}):d().createElement(d().Fragment,null,d().createElement(c.RemoteSchemaComponent,{uid:n,NotFoundPage:"MobileNotFoundPage",memoized:!1,onPageNotFind:a}),d().createElement(p.Outlet,null),d().createElement("div",{className:"nb-mobile-subpages-slot"}))},ow=y("467"),ox=y.n(ow);function ok(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oO=(0,u.createContext)(null);oO.displayName="MobileTitleContext";var oS=function(e){var t,n,r=e.children,i=e.title;var o=(t=d().useState(i),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&null!=i.return&&i.return()}finally{if(l)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return ok(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ok(e,t)}}(t,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],l=o[1];return d().createElement(oO.Provider,{value:{title:a,setTitle:l}},r)},oE=function(){return d().useContext(oO)},oP=(0,u.createContext)(null);oP.displayName="MobileRoutesContext";var oj=function(){return(0,u.useContext)(oP)},oC=function(e){var t,n,r,i,o,a,l=e.children,s=e.refreshRef,f=e.manual,m=e.action,h=void 0===m?"listAccessible":m,b=(0,c.useAPIClient)(),g=(0,u.useMemo)(function(){return b.resource("mobileRoutes")},[b]),v=(0,u.useMemo)(function(){return b.resource("uiSchemas")},[b]),y=(0,c.useRequest)(function(){return g[h]({tree:!0,sort:"sort"}).then(function(e){return e.data})},{manual:f}),w=y.data,k=y.runAsync,O=y.loading;s&&(s.current=k);var S=(0,u.useMemo)(function(){return(null==w?void 0:w.data)||[]},[w]);var E=(t=S,n=(0,p.useLocation)().pathname,{activeTabBarItem:i=Object.values(r=t.reduce(function(e,t){var n,r=t.schemaUid?"/".concat(t.type,"/").concat(t.schemaUid):null===(n=t.options)||void 0===n?void 0:n.url;return r&&(e[r]=t),t.children&&t.children.forEach(function(t){var n,i=t.schemaUid?"".concat(r,"/").concat(t.type,"/").concat(t.schemaUid):null===(n=t.options)||void 0===n?void 0:n.url;i&&(e[i]=t)}),e},{})).find(function(e){return e.schemaUid?n.includes("/".concat(e.schemaUid)):!!e.options.url&&n.includes(e.options.url)}),activeTabItem:r[n]||i}),P=E.activeTabBarItem,j=E.activeTabItem;o=P,a=oE(),(0,u.useEffect)(function(){a&&o&&(a.setTitle(o.title),document.title=o.title)},[o,a]);var C=(0,u.useMemo)(function(){return{api:b,activeTabBarItem:P,activeTabItem:j,routeList:S,refresh:k,resource:g,schemaResource:v}},[P,j,b,k,g,S,v]);return O?d().createElement("div",{"data-testid":"mobile-loading",style:{textAlign:"center",margin:"20px 0"}},d().createElement(x.Spin,null)):d().createElement(oP.Provider,{value:C},l)},oz=function(e){var t=e.children,n=(0,c.useDesignable)().designable,r=oj().routeList,i=h().t;return(!n||g.isMobile)&&ox().isEmpty(r)?d().createElement(eh,{status:"empty",fullPage:!0,title:i("No accessible pages found"),description:i("This might be due to permission configuration issues")}):d().createElement(d().Fragment,null,t)},oM=function(e){var t=e.children;return(0,u.useEffect)(function(){document.body.style.setProperty("--nb-mobile-page-tabs-content-padding","12px"),document.body.style.setProperty("--nb-mobile-page-header-height","50px")},[]),d().createElement(oS,null,d().createElement(oC,null,d().createElement(oz,null,t)))},oI=y("202"),oA=(0,oI.createStyles)(function(){return{mobilePageContent:{maxWidth:"100%",overflowX:"hidden"}}});function oT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&null!=i.return&&i.return()}finally{if(l)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oT(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var oB=function(e){var t=e.children,n=e.hideTabBar,r=oA().styles,i=o_(d().useState(0),2),o=i[0],a=i[1],l=o_(d().useState(0),2),s=l[0],c=l[1];return(0,u.useEffect)(function(){var e=ox().last(document.querySelectorAll(".mobile-page-header"));if(c(null==e?void 0:e.offsetHeight),!n){var t=document.querySelector(".mobile-tab-bar");a(null==t?void 0:t.offsetHeight)}}),d().createElement(d().Fragment,null,s?d().createElement("div",{style:{height:s}}):null,d().createElement("div",{className:"".concat(r.mobilePageContent," mobile-page-content"),"data-testid":"mobile-page-content",style:{height:"calc(100% - ".concat((o||0)+(s||0),"px)"),boxSizing:"border-box"}},t),o?d().createElement("div",{style:{height:o}}):null)},oR=function(){var e,t,n=(0,p.useParams)().tabSchemaUid,r=oj().activeTabBarItem;return d().createElement(oB,null,d().createElement(c.RemoteSchemaComponent,{uid:n||(null==r?void 0:null===(t=r.children)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.schemaUid),NotFoundPage:"MobileNotFoundPage",memoized:!1}))},oF=new c.SchemaInitializer({title:'{{t("Add block")}}',name:"mobile:addBlock",icon:"PlusOutlined",wrap:c.gridRowColWrap,style:{margin:20},items:[{name:"dataBlocks",title:'{{t("Desktop data blocks")}}',type:"itemGroup",children:[{name:"table",title:'{{t("Table")}}',Component:"TableBlockInitializer"},{name:"form",title:'{{t("Form")}}',Component:"FormBlockInitializer"},{name:"details",title:'{{t("Details")}}',Component:"DetailsBlockInitializer"},{name:"gridCard",title:'{{t("Grid Card")}}',Component:"GridCardBlockInitializer"}]},{name:"filterBlocks",title:'{{t("Desktop filter blocks")}}',type:"itemGroup",children:[{name:"filterForm",title:'{{t("Form")}}',Component:"FilterFormBlockInitializer"}]},{name:"otherBlocks",type:"itemGroup",title:'{{t("Other desktop blocks")}}',children:[{name:"markdown",title:'{{t("Markdown")}}',Component:"MarkdownBlockInitializer"},{name:"settings",title:b("Settings"),Component:"MobileSettingsBlockInitializer"}]}]});function oZ(e){var t,n,r;return{type:"void","x-component":"MobilePageContent",properties:(t={},n=e,r=oN(e),n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t)}}function oN(e){return{type:"void","x-uid":e,"x-async":!0,"x-component":"Grid","x-component-props":{showDivider:!1},"x-initializer":oF.name}}var oD=(0,u.createContext)(null);oD.displayName="MobilePageContext";var oL=function(e){var t=e.children,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++){if(n=o[r],!(t.indexOf(n)>=0))Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}}return i}(e,["children"]);return d().createElement(oD.Provider,{value:n},t)},o$=function(){return d().useContext(oD)},oU=(0,oI.createStyles)(function(){return{mobilePageHeader:{position:"absolute",top:0,left:0,right:0,borderBottom:"1px solid var(--adm-color-border)",backgroundColor:"var(--adm-color-background)"}}}),oq=function(e){var t=e.children,n=(o$()||{}).displayPageHeader,r=oU().styles;return void 0===n||n?d().createElement("div",{className:(0,c.cx)(r.mobilePageHeader,"mobile-page-header"),"data-testid":"mobile-page-header"},d().createElement(i_,{position:"top"}),t):null},oW=y("875");function oV(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}var oH=new c.SchemaInitializer({name:"mobile:tabs",Component:function(){var e,t,n=oj(),r=n.refresh,i=n.resource,o=n.activeTabBarItem,a=(0,c.useSchemaInitializer)().insert,l=h().t,s=x.App.useApp().message;return d().createElement(c.SchemaInitializerActionModal,{title:b("Add tab"),btnStyles:{width:32,padding:0,marginRight:12},onSubmit:(t=(e=function(e){var t,n,c;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(u){switch(u.label){case 0:if(t=e.title,n=e.icon,t&&0==t.trim().length)return s.error(l("Title field is required")),[2,Promise.reject(Error("Title field is required"))];return c=(0,oW.uid)(),[4,i.create({values:{type:"tabs",title:t,icon:n,schemaUid:c,parentId:o.id}})];case 1:return u.sent(),a(oN(c)),[4,r()];case 2:return u.sent(),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){oV(o,r,i,a,l,"next",e)}function l(e){oV(o,r,i,a,l,"throw",e)}a(void 0)})}),function(e){return t.apply(this,arguments)}),schema:{title:{type:"string",title:b("Title"),required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{title:b("Icon"),type:"string","x-decorator":"FormItem","x-component":"IconPicker"}}})}}),oG=function(){return(0,(0,c.useSchemaInitializerRender)(oH.name).render)()};function oK(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}function oX(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){oK(o,r,i,a,l,"next",e)}function l(e){oK(o,r,i,a,l,"throw",e)}a(void 0)})}}function oQ(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}var oY=(0,c.createTextSettingsItem)({name:"remove",title:b("Delete"),useTextClick:function(){var e=h().t,t=(0,c.useSchemaToolbar)().tab,n=oj(),r=n.refresh,i=n.resource,o=n.activeTabBarItem,a=n.api,l=(0,p.useNavigate)(),s=x.App.useApp(),u=s.modal,d=s.message;return oX(function(){return oQ(this,function(n){return u.confirm({title:e("Delete action"),content:e("Are you sure you want to delete it?"),onOk:oX(function(){var e;return oQ(this,function(n){switch(n.label){case 0:return[4,i.destroy({filterByTk:t.id})];case 1:return n.sent(),[4,r()];case 2:return n.sent(),[4,a.request({url:"/uiSchemas:remove/".concat(t.schemaUid),method:"delete"})];case 3:return n.sent(),e=o.children.find(function(e){return e.id!==t.id}),l("/".concat(o.type,"/").concat(o.schemaUid,"/").concat(e.type,"/").concat(e.schemaUid)),d.success({content:"Delete successfully"}),[2]}})})}),[2]})})},useVisible:function(){var e;return(null===(e=oj().activeTabBarItem.children)||void 0===e?void 0:e.length)>1}}),oJ=new c.SchemaSettings({name:"mobile:tabs",items:[{name:"title",type:"actionModal",useComponentProps:function(){var e=h().t,t=(0,c.useSchemaToolbar)().tab,n=oj(),r=n.refresh,i=n.resource,o=x.App.useApp().message;return{title:e("Edit"),schema:{type:"object",properties:{title:{type:"string",title:b("Title"),default:t.title,"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{title:b("Icon"),type:"string","x-decorator":"FormItem",default:t.icon,"x-component":"IconPicker"}}},onSubmit:function(n){var a=n.title,l=n.icon;return oX(function(){return oQ(this,function(n){switch(n.label){case 0:if(a&&0==a.trim().length)return o.error(e("Title field is required")),[2,Promise.reject(Error("Title field is required"))];return[4,i.update({filterByTk:t.id,values:{title:a,icon:l}})];case 1:return n.sent(),r(),[2]}})})()}}}},oY]}),o0=function(e){var t=e.tab;return d().createElement(c.SchemaToolbarProvider,{tab:t},d().createElement(c.SchemaToolbar,{settings:oJ,showBackground:!0,showBorder:!1,toolbarStyle:{inset:"-15px -12px"},spaceWrapperStyle:{top:3}}))},o1=(0,oI.createStyles)(function(){return{mobilePageTabs:{display:"flex",alignItems:"center",justifyContent:"space-between"},mobilePageTabsList:{".adm-tabs-header":{borderBottomWidth:0},".adm-tabs-tab":{height:49,padding:"10px 0 10px"}}}});function o2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o4(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}var o3=function(){var e,t,n,r,i,o=oj(),a=o.activeTabBarItem,l=o.resource,s=o.refresh,f=o$().displayTabs,m=(0,p.useNavigate)(),h=o1().styles,b=(0,p.useParams)().tabSchemaUid;var g=(e=d().useState(function(){var e,t;return b||(null==a?void 0:null===(t=a.children)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.schemaUid)}),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&null!=i.return&&i.return()}finally{if(l)throw r}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return o2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o2(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=g[0],y=g[1];var w=(0,u.useCallback)((r=(n=function(e){var t,n,r,i;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(o){switch(o.label){case 0:if(t=e.active,n=e.over,r=null==t?void 0:t.id,i=null==n?void 0:n.id,!r||!i||r===i)return[2];return[4,l.move({sourceId:r,targetId:i,sortField:"sort"})];case 1:return o.sent(),[4,s()];case 2:return o.sent(),[2]}})},function(){var e=this,t=arguments;return new Promise(function(r,i){var o=n.apply(e,t);function a(e){o4(o,r,i,a,l,"next",e)}function l(e){o4(o,r,i,a,l,"throw",e)}a(void 0)})}),function(e){return r.apply(this,arguments)}),[l,s]);return a?void 0!==f&&f?d().createElement("div",{className:h.mobilePageTabs,"data-testid":"mobile-page-tabs"},d().createElement(c.DndContext,{onDragEnd:w},d().createElement(iH,{activeKey:v,onChange:function(e){y(e),m("/".concat(a.type,"/").concat(a.schemaUid,"/tabs/").concat(e))},className:h.mobilePageTabsList},null===(i=a.children)||void 0===i?void 0:i.map(function(e){return d().createElement(iH.Tab,{"data-testid":"mobile-page-tabs-".concat(e.title),title:d().createElement(c.SortableItem,{id:e.id},d().createElement(o0,{tab:e}),e.icon?d().createElement(iN,null,d().createElement(c.Icon,{type:e.icon}),e.title):e.title),key:String(e.schemaUid)})}))),d().createElement("div",null,d().createElement(oG,null))):null:d().createElement(p.Navigate,{replace:!0,to:"/"})},o5=["default","primary","success","danger","warning"],o6=(0,v.connect)(function(e){return d().createElement(x.Radio.Group,e,o5.map(function(t){return d().createElement(x.Radio,{value:t,key:t},d().createElement(en,{color:t,size:"mini",style:{width:10,height:18},onClick:function(){return e.onChange(t)}}))}))}),o7=["solid","outline"],o8=(0,v.connect)(function(e){return d().createElement(x.Radio.Group,e,o7.map(function(t){return d().createElement(x.Radio,{value:t,key:t},d().createElement(en,{color:"primary",size:"mini",fill:t,style:{width:10,height:18},onClick:function(){return e.onChange(t)}}))}))}),o9={title:{type:"string",title:b("Title"),"x-decorator":"FormItem","x-component":"Input","x-reactions":[{target:"icon",fulfill:{state:{required:"{{!$self.value}}"}}}]},icon:{type:"string",title:b("Icon"),"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":[{target:"title",fulfill:{state:{required:"{{!$self.value}}"}}}]},color:{type:"string",title:b("Color"),"x-decorator":"FormItem","x-component":o6},fill:{type:"boolean",title:b("Fill"),"x-decorator":"FormItem","x-component":o8,"x-reactions":[{dependencies:["title","icon"],fulfill:{state:{visible:"{{!!$deps[0] && !!$deps[1]}}"}}}]}};var ae=new c.SchemaSettings({name:"mobile:navigation-bar:actions:link",items:[(0,c.createModalSettingsItem)({title:b("Edit button"),name:"action",parentSchemaKey:"x-component-props",schema:function(e){var t,n;return{type:"object",title:b("Edit"),properties:(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({},{}),n=(n={title:{title:b("Title"),type:"string",default:e.title,"x-decorator":"FormItem","x-component":"Input","x-reactions":{target:"icon",fulfill:{state:{required:"{{!$self.value}}"}}}},icon:{title:b("Icon"),type:"string",default:e.icon,"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":{target:"title",fulfill:{state:{required:"{{!$self.value}}"}}}},color:{type:"string",default:e.color,title:b("Color"),"x-decorator":"FormItem","x-component":o6},fill:{type:"boolean",default:e.fill,title:b("Fill"),"x-decorator":"FormItem","x-component":o8,"x-reactions":[{dependencies:["title","icon"],fulfill:{state:{visible:"{{!!$deps[0] && !!$deps[1]}}"}}}]}},n),Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t)}}}),{name:"editLink",Component:c.SchemaSettingsActionLinkItem},{name:"remove",type:"remove",componentProps:{title:b("Delete action")}}]}),at=function(){return{onClick:(0,c.useLinkActionProps)().onClick}},an=function(e){var t,n;return{type:"void","x-component":"Action","x-toolbar":"ActionSchemaToolbar","x-settings":ae.name,"x-use-component-props":"useMobileNavigationBarLink","x-component-props":(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({},e),n=(n={component:"MobileNavigationBarAction"},n),Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t)}},ar={name:"link",type:"actionModal",useComponentProps:function(){var e=(0,c.useSchemaInitializer)().insert,t=h().t,n=x.App.useApp().message;return{title:t("Add link"),buttonText:t("Link"),schema:o9,isItem:!0,onSubmit:function(r){if((!r.title||0===r.title.trim().length)&&!r.icon)return n.error(t("Please enter title or select icon")),Promise.reject(Error("Please enter title or select icon"));e(an(r))}}}},ai=new c.SchemaInitializer({name:"mobile:navigation-bar:actions",icon:"PlusOutlined",items:[ar]}),ao=(0,oI.createStyles)(function(){return{navigationBarAction:{maxWidth:"10em",".adm-space":{maxWidth:"100%",overflow:"hidden"}},navigationBarActionIcon:{width:24,height:24,lineHeight:"24px",fontSize:24,padding:0,display:"flex",alignItems:"center",justifyContent:"center",".schema-toolbar":{inset:"-15px -8px"}},navigationBarActionTitle:{fontSize:17,padding:0,".schema-toolbar":{inset:"-15px -8px"}},navigationBarActionIconAndTitle:{height:"32px !important",fontSize:"17px !important",padding:"0 6px !important",".schema-toolbar":{inset:"-15px"}}}});function aa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var al=d().forwardRef(function(e,t){var n,r=e.icon,i=e.color,o=e.fill,a=e.children,l=e.style,s=e.className,f=e.onClick,p=(0,c.useSchemaToolbar)().position,m=a[0],h=a[1],b=[r,m].filter(Boolean).length,g=(0,u.useMemo)(function(){return"string"==typeof r?d().createElement(c.Icon,{type:r}):r},[r]),v=ao().styles;return d().createElement("div",{ref:t},d().createElement(en,{onClick:f,color:i,size:b<=1?void 0:"mini",className:(0,c.cx)(s,v.navigationBarAction,(aa(n={},v.navigationBarActionIconAndTitle,b>1),aa(n,v.navigationBarActionTitle,1===b&&m),aa(n,v.navigationBarActionIcon,1===b&&r),n)),style:void 0===l?{}:l,fill:b<=1?"none":o},h,b>1?"left"===p?d().createElement(iN,{style:{"--gap":"6px"}},g,d().createElement("span",null,m)):d().createElement(iN,{style:{"--gap":"6px"}},d().createElement("span",null,m),g):d().createElement(iN,null,g||m)))});al.displayName="MobileNavigationBarAction";var as=y("964");function ac(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}function au(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function ad(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++){if(n=o[r],!(t.indexOf(n)>=0))Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}}return i}var af=d().createContext({container:void 0}),ap=function(e){var t=e.children,n=ad(e,["children"]);return d().createElement(af.Provider,{value:n},t)},am=function(){return(0,u.useContext)(af)},ah=(0,c.withDynamicSchemaProps)((0,v.observer)(function(e){var t=am().forceProps,n=ac({},(0,c.useProps)(e),void 0===t?{}:t),r=n.style,i=(n.spaceProps,ad(n,["style","spaceProps"])),o=(0,c.useSchemaToolbar)().position,a=(0,v.useFieldSchema)(),l=(0,c.useSchemaInitializerRender)(a["x-initializer"],au(ac({},a["x-initializer-props"]),{wrap:function(e){return ac({"x-position":o},e)}})).render;return d().createElement(c.DndContext,null,"bottom"!==o?d().createElement("div",au(ac({style:au(ac({display:"flex",alignItems:"center",gap:12},r),{marginTop:0,justifyContent:"left"===o?"flex-start":"flex-end"})},i),{"data-testid":"mobile-navigation-action-bar-".concat(o),className:(0,as.cx)(i.className,"nb-action-bar")}),"left"===o&&l({}),e.children&&d().createElement("div",{style:{display:"flex",alignItems:"center",gap:12}},d().createElement(v.RecursionField,{onlyRenderProperties:!0,schema:a,filterProperties:function(e){return e["x-position"]===o}})),"right"===o&&l({})):d().createElement(v.RecursionField,{onlyRenderProperties:!0,schema:a,filterProperties:function(e){return e["x-position"]===o}}))}),{displayName:"MobileNavigationActionBar"}),ab=(0,oI.createStyles)(function(){return{mobilePageNavigationBar:{".adm-nav-bar":{maxWidth:"100%",height:49,overflow:"hidden",".adm-nav-bar-left":{display:"flex",alignItems:"center",justifyContent:"flex-start"},".adm-nav-bar-right":{display:"flex",alignItems:"center",justifyContent:"flex-end"}}}}}),ag=function(){var e=oE().title,t=o$(),n=t.displayNavigationBar,r=t.displayPageTitle,i=(0,v.useFieldSchema)(),o=ab().styles;return void 0===n||n?d().createElement("div",{className:(0,c.cx)("mobile-page-navigation-bar",o.mobilePageNavigationBar),"data-testid":"mobile-page-navigation-bar"},d().createElement(ex,{backArrow:!1,back:null,left:d().createElement(c.SchemaToolbarProvider,{position:"left"},d().createElement(v.RecursionField,{name:"actionBarLeft",schema:i,onlyRenderProperties:!0})),right:d().createElement(c.SchemaToolbarProvider,{position:"right"},d().createElement(v.RecursionField,{name:"actionBarRight",schema:i,onlyRenderProperties:!0}))},void 0===r||r?e:null),d().createElement(c.SchemaToolbarProvider,{position:"bottom"},d().createElement(v.RecursionField,{name:"actionBarBottom",schema:i,onlyRenderProperties:!0}))):null},av={type:"void","x-component":"MobilePageHeader",properties:{pageNavigationBar:{type:"void","x-component":"MobilePageNavigationBar",properties:{actionBar:{type:"void","x-component":"MobileNavigationActionBar","x-initializer":ai.name,"x-component-props":{spaceProps:{style:{flexWrap:"nowrap"}}},properties:{}}}},pageTabs:{type:"void","x-component":"MobilePageTabs"}}},ay=new c.SchemaSettings({name:"mobile:page",items:[{type:"itemGroup",name:"app",useComponentProps:function(){return{title:(0,h().t)("App settings")}},useVisible:function(){return!!ld()},children:[{name:"enableTabBar",type:"switch",useComponentProps:function(){var e=h().t,t=ld(),n=t.showTabBar,r=t.setShowTabBar,i=(0,c.useDesignable)().refresh;return{title:e("Display tab bar"),checked:n,onChange:function(e){r(e),i()}}}}]},{type:"itemGroup",name:"page",useComponentProps:function(){return{title:(0,h().t)("Page settings")}},children:[(0,c.createSwitchSettingsItem)({name:"displayPageHeader",title:b("Display page header"),defaultValue:!0,schemaKey:"x-component-props.displayPageHeader"}),(0,c.createSwitchSettingsItem)({name:"displayNavigationBar",title:b("Display navigation bar"),defaultValue:!0,schemaKey:"x-component-props.displayNavigationBar",useVisible:function(){var e;return(null===(e=(0,v.useFieldSchema)()["x-component-props"])||void 0===e?void 0:e.displayPageHeader)!==!1}}),(0,c.createSwitchSettingsItem)({name:"displayPageTitle",title:b("Display page title"),defaultValue:!0,schemaKey:"x-component-props.displayPageTitle",useVisible:function(){var e,t,n=(0,v.useFieldSchema)();return(null===(e=n["x-component-props"])||void 0===e?void 0:e.displayNavigationBar)!==!1&&(null===(t=n["x-component-props"])||void 0===t?void 0:t.displayPageHeader)!==!1}}),(0,c.createSwitchSettingsItem)({name:"displayTabs",title:b("Display tabs"),defaultValue:!1,schemaKey:"x-component-props.displayTabs",useVisible:function(){var e;return(null===(e=(0,v.useFieldSchema)()["x-component-props"])||void 0===e?void 0:e.displayPageHeader)!==!1}})]}]}),aw=(0,c.css)("\n&:first-child {\n .ant-space-item {\n width: 30px;\n height: 30px;\n transform: rotate(45deg);\n span {\n position: relative;\n bottom: -15px;\n right: -8px;\n transform: rotate(-45deg);\n font-size: 10px;\n }\n }\n}\n");function ax(e,t){return{schema:{type:"void",name:e,"x-uid":e,"x-component":"MobilePageProvider","x-settings":ay.name,"x-decorator":"BlockItem","x-decorator-props":{style:{height:"100%"}},"x-toolbar-props":{draggable:!1,spaceWrapperStyle:{right:-15,top:-15},spaceClassName:aw,toolbarStyle:{overflowX:"hidden"}},properties:{header:av,content:oZ(t)}}}}function ak(e,t){return!t&&(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function aO(){var e=ak(["\n cursor: pointer;\n text-align: right;\n flex: 1;\n padding-right: var(--nb-mobile-page-tabs-content-padding);\n\n .ant-btn {\n width: 32px;\n height: 32px;\n padding: 0;\n }\n\n .ant-btn > span {\n display: none;\n }\n\n span.ant-btn-icon {\n display: inline-block;\n font-size: 16px;\n margin: 0 !important;\n }\n "]);return aO=function(){return e},e}function aS(){var e=ak(["\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 24px;\n height: 50px;\n width: 50px;\n "]);return aS=function(){return e},e}var aE=(0,c.createStyles)(function(e){var t=e.css;return e.token,{container:t(aO()),backButton:t(aS())}});function aP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aj(){var e,t,n=(e=["\n position: relative;\n &:hover {\n > .general-schema-designer {\n display: block;\n }\n }\n &.nb-action-link {\n > .general-schema-designer {\n top: -10px;\n bottom: -10px;\n left: -10px;\n right: -10px;\n }\n }\n > .general-schema-designer {\n position: absolute;\n z-index: 999;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: none;\n background: var(--colorBgSettingsHover);\n border: 0;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n pointer-events: none;\n > .general-schema-designer-icons {\n position: absolute;\n right: 2px;\n top: 2px;\n line-height: 16px;\n pointer-events: all;\n .ant-space-item {\n background-color: var(--colorSettings);\n color: #fff;\n line-height: 16px;\n width: 16px;\n padding-left: 1px;\n align-self: stretch;\n }\n }\n }\n"],!t&&(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return aj=function(){return n},n}var aC=(0,v.observer)(function(e){var t,n,r=(0,v.useFieldSchema)(),i=(0,c.useSchemaInitializerRender)(r["x-initializer"],r["x-initializer-props"]).render,o=(0,c.useTabsContext)()||{},a=o.activeKey,l=o.onChange;var s=(t=(0,u.useState)(a),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&null!=i.return&&i.return()}finally{if(l)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return aP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aP(e,t)}}(t,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=s[0],p=s[1],m=o1().styles,h=aE().styles,b=(0,c.useBackButton)().goBack,g=(0,u.useRef)({}),y=(0,u.useCallback)(function(e){p(e),null==l||l(e)},[l]);(0,u.useEffect)(function(){p(a)},[a]);var w=(0,u.useMemo)(function(){return r.mapProperties(function(e,t){return g.current[t]=d().createElement(c.SchemaComponent,{name:t,schema:e,onlyRenderProperties:!0,distributed:!0}),d().createElement(iH.Tab,{title:d().createElement(v.RecursionField,{name:t,schema:e,onlyRenderSelf:!0}),key:t})})},[r.mapProperties(function(e,t){return t}).join()]),x=(0,u.useMemo)(function(){var e,t,n=r.mapProperties(function(e,t){var n;return null==(n=e)||n.mapProperties(function(e){if("Grid"===e["x-component"]){var t,n;e["x-component-props"]=(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({},e["x-component-props"]),n=(n={showDivider:!1},n),Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t)}}),e=n,{key:t,node:d().createElement(c.SchemaComponent,{name:t,schema:e,onlyRenderProperties:!0,distributed:!0})}});return f?null===(e=n.find(function(e){return e.key===f}))||void 0===e?void 0:e.node:null===(t=n[0])||void 0===t?void 0:t.node},[f,r]);return d().createElement(d().Fragment,null,d().createElement(oq,null,d().createElement("div",{className:m.mobilePageTabs,"data-testid":"mobile-action-page-tabs"},d().createElement("div",{className:h.backButton,onClick:b},d().createElement(ev,null)),d().createElement(c.DndContext,null,d().createElement(iH,{activeKey:f,onChange:y,className:m.mobilePageTabsList},w)),d().createElement("div",{className:h.container},i()))),d().createElement(oB,{hideTabBar:!0},x))},{displayName:"MobileTabsForMobileActionPage"}),az=(0,c.css)(aj());aC.TabPane=(0,v.observer)(function(e){var t=(0,c.useDesigner)(),n=(0,v.useField)();return d().createElement(c.SortableItem,{className:D()("nb-action-link",az,e.className)},e.icon&&d().createElement(c.Icon,{style:{marginRight:2},type:e.icon})," ",e.tab||n.title,d().createElement(t,null))},{displayName:"MobileTabsForMobileActionPage.TabPane"}),aC.Designer=c.Tabs.Designer;var aM={Tabs:aC},aI=function(e){var t,n,r=e.level,i=e.footerNodeName,o=(0,v.useField)(),a=(0,v.useFieldSchema)(),l=(0,c.useActionContext)(),s=og().styles,f=(0,c.useTabsContext)(),p=(0,u.useMemo)(function(){return document.querySelector(".nb-mobile-subpages-slot")},[]),m=(0,c.useZIndexContext)()+10+(r||1),h=a.reduceProperties(function(e,t){return t["x-component"]===i?t:e}),b=(0,u.useMemo)(function(){return{zIndex:m}},[m]);if(!l.visible)return null;var g=d().createElement(c.zIndexContext.Provider,{value:m},d().createElement("div",{className:s.container,style:b},d().createElement(c.TabsContextProvider,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({},f),n=(n={tabBarExtraContent:d().createElement(c.BackButtonUsedInSubPage,null),tabBarGutter:48},n),Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t),d().createElement(c.SchemaComponent,{components:aM,schema:a,onlyRenderProperties:!0})),h&&d().createElement("div",{className:s.footer,style:b},d().createElement(v.RecursionField,{basePath:o.address,schema:a,onlyRenderProperties:!0,filterProperties:function(e){return e["x-component"]===i}}))));return p?(0,ry.createPortal)(g,p):g},aA=function(e,t){var n,r;return n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({},t(e)),r=(r={columnCount:{lg:1,md:1,xs:1,xxl:1}},r),Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n},aT=function(e){var t=(0,c.useSchemaOptionsContext)().scope,n=(0,u.useMemo)(function(){return{useGridCardBlockDecoratorProps:function(e){return aA(e,null==t?void 0:t.useGridCardBlockDecoratorProps)}}},[null==t?void 0:t.useGridCardBlockDecoratorProps]);return d().createElement(c.SchemaComponentOptions,{scope:n},e.children)},a_="#f5f5f5",aB=y("482");function aR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var aF=(0,u.createContext)(null);function aZ(){return(0,u.useContext)(aF)}aF.displayName="SizeContext";var aN=function(e){var t,n,r=e.children;var i=(t=(0,u.useState)({width:375,height:667}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&null!=i.return&&i.return()}finally{if(l)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return aR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aR(e,t)}}(t,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1];return d().createElement(aF.Provider,{value:{size:o,setSize:a}},r)};function aD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}function a$(){var e,t,n=(e=["\n .ant-btn {\n border: 0;\n height: 46px;\n width: 46px;\n border-radius: 0;\n background: none;\n color: rgba(255, 255, 255, 0.65);\n padding: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n &:hover {\n background: rgba(255, 255, 255, 0.1) !important;\n }\n\n svg {\n width: 20px !important;\n height\n }\n }\n .ant-btn-default {\n box-shadow: none;\n }\n "],!t&&(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return a$=function(){return n},n}var aU=function(){return d().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},d().createElement("title",null,"pad icon"),d().createElement("rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2"}),d().createElement("line",{x1:"12",x2:"12.01",y1:"18",y2:"18"}))},aq=function(){return d().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},d().createElement("title",null,"mobile icon"),d().createElement("rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}),d().createElement("path",{d:"M12 18h.01"}))},aW=function(e){return d().createElement(c.Icon,aL({type:"",component:aU},e))},aV=function(e){return d().createElement(c.Icon,aL({type:"",component:aq},e))},aH=function(){var e,t,n=h().t,r=(0,c.useApp)(),i=aZ().setSize;var o=(e=(0,u.useState)(!1),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&null!=i.return&&i.return()}finally{if(l)throw r}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return aD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aD(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],l=o[1],s=(0,c.useUIConfigurationPermissions)().allowConfigUI;return d().createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",color:"white",height:"100%"},className:(0,c.css)(a$())},d().createElement(x.Button,{style:{color:"white"},href:r.getRouteUrl("/admin")},n("Back")),d().createElement("div",{style:{display:"flex",alignItems:"center"}},s?d().createElement(c.DesignableSwitch,null):null,d().createElement(x.Button,{onClick:function(){i({width:768,height:667})},"data-testid":"desktop-mode-size-pad",icon:d().createElement(aW,null)}),d().createElement(x.Button,{onClick:function(){i({width:375,height:667})},"data-testid":"desktop-mode-size-mobile",icon:d().createElement(aV,null)}),d().createElement(x.Popover,{trigger:"hover",open:a,onOpenChange:function(e){l(e)},content:a?d().createElement(x.QRCode,{value:window.location.href,bordered:!1}):" "},d().createElement(x.Button,{icon:d().createElement(aB.QrcodeOutlined,{style:{fontSize:"24px",cursor:"pointer"},"data-testid":"desktop-mode-qrcode"})}))))};var aG=(l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),aK=function(){return(aK=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},aX={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},aQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return aG(t,e),t.prototype.render=function(){return u.createElement("div",{className:this.props.className||"",style:aK(aK({position:"absolute",userSelect:"none"},aX[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(u.PureComponent),aY=y("590"),aJ=y.n(aY);var a0=(s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a1=function(){return(a1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a2={width:"auto",height:"auto"},a4=aJ()(function(e,t,n){return Math.max(Math.min(e,n),t)}),a3=aJ()(function(e,t){return Math.round(e/t)*t}),a5=aJ()(function(e,t){return RegExp(e,"i").test(t)}),a6=function(e){return!!(e.touches&&e.touches.length)},a7=aJ()(function(e,t,n){void 0===n&&(n=0);var r=t.reduce(function(n,r,i){return Math.abs(r-e)<Math.abs(t[n]-e)?i:n},0),i=Math.abs(t[r]-e);return 0===n||i<n?t[r]:e}),a8=aJ()(function(e,t){return e.substr(e.length-t.length,t.length)===t}),a9=aJ()(function(e){return"auto"===(e=e.toString())||a8(e,"px")||a8(e,"%")||a8(e,"vh")||a8(e,"vw")||a8(e,"vmax")||a8(e,"vmin")?e:e+"px"}),le=function(e,t,n,r){if(e&&"string"==typeof e){if(a8(e,"%")){var i=Number(e.replace("%",""))/100;return t*i}if(a8(e,"vw")){var i=Number(e.replace("vw",""))/100;return n*i}else if(a8(e,"vh")){var i=Number(e.replace("vh",""))/100;return r*i}}return e},lt=aJ()(function(e,t,n,r,i,o,a){return r=le(r,e.width,t,n),i=le(i,e.height,t,n),o=le(o,e.width,t,n),a=le(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===i?void 0:Number(i),minWidth:void 0===o?void 0:Number(o),minHeight:void 0===a?void 0:Number(a)}}),ln=["as","style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],lr="__resizable_base__",li=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add(lr):t.className+=lr,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;if(!!t)t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return a0(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||a2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,i=this.resizable.style.position;"relative"!==i&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=i}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&a8(e.propsSize[t].toString(),"%")){if(a8(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return a9(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?a9(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?a9(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!!this.resizable&&!!this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"===this.state[t]&&this.state.original[t]===e&&(void 0===n||"auto"===n)?"auto":e},t.prototype.calculateNewMaxFromBoundary=function(e,t){if("parent"===this.props.bounds){var n=this.parentNode;if(n){var r=n.offsetWidth+(this.parentLeft-this.resizableLeft),i=n.offsetHeight+(this.parentTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<i?t:i}}else if("window"===this.props.bounds){if(this.window){var r=this.window.innerWidth-this.resizableLeft,i=this.window.innerHeight-this.resizableTop;e=e&&e<r?e:r,t=t&&t<i?t:i}}else if(this.props.bounds){var r=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),i=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<i?t:i}return{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,i=this.state,o=i.direction,a=i.original,l=this.props,s=l.lockAspectRatio,c=l.lockAspectRatioExtraHeight,u=l.lockAspectRatioExtraWidth,d=a.width,f=a.height,p=c||0,m=u||0;return a5("right",o)&&(d=a.width+(e-a.x)*r/n,s&&(f=(d-m)/this.ratio+p)),a5("left",o)&&(d=a.width-(e-a.x)*r/n,s&&(f=(d-m)/this.ratio+p)),a5("bottom",o)&&(f=a.height+(t-a.y)*r/n,s&&(d=(f-p)*this.ratio+m)),a5("top",o)&&(f=a.height-(t-a.y)*r/n,s&&(d=(f-p)*this.ratio+m)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var i=this.props,o=i.lockAspectRatio,a=i.lockAspectRatioExtraHeight,l=i.lockAspectRatioExtraWidth,s=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=a||0,p=l||0;if(o){var m=(u-f)*this.ratio+p,h=(d-f)*this.ratio+p,b=(s-p)/this.ratio+f,g=(c-p)/this.ratio+f,v=Math.max(u,b),y=Math.min(d,g);e=a4(e,Math.max(s,m),Math.min(c,h)),t=a4(t,v,y)}else e=a4(e,s,c),t=a4(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),i=r.left,o=r.top;this.resizableLeft=i,this.resizableTop=o}},t.prototype.onResizeStart=function(e,t){if(!this.resizable||!this.window)return;var n,r,i=0,o=0;if(e.nativeEvent&&((n=e.nativeEvent).clientX||0===n.clientX)&&(n.clientY||0===n.clientY)){if(i=e.nativeEvent.clientX,o=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent&&a6(e.nativeEvent)&&(i=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY);if(!this.props.onResizeStart||!this.resizable||!1!==this.props.onResizeStart(e,t,this.resizable)){this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var a=this.window.getComputedStyle(this.resizable);if("auto"!==a.flexBasis){var l=this.parentNode;if(l){var s=this.window.getComputedStyle(l).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",r=a.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var c={original:{x:i,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:a1(a1({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:r};this.setState(c)}},t.prototype.onMouseMove=function(e){if(!!this.state.isResizing&&!!this.resizable&&!!this.window){if(this.window.TouchEvent&&a6(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,n=t.maxWidth,r=t.maxHeight,i=t.minWidth,o=t.minHeight,a=a6(e)?e.touches[0].clientX:e.clientX,l=a6(e)?e.touches[0].clientY:e.clientY,s=this.state,c=s.direction,u=s.original,d=s.width,f=s.height,p=this.getParentSize(),m=lt(p,this.window.innerWidth,this.window.innerHeight,n,r,i,o);n=m.maxWidth,r=m.maxHeight,i=m.minWidth,o=m.minHeight;var h=this.calculateNewSizeFromDirection(a,l),b=h.newHeight,g=h.newWidth,v=this.calculateNewMaxFromBoundary(n,r),y=this.calculateNewSizeFromAspectRatio(g,b,{width:v.maxWidth,height:v.maxHeight},{width:i,height:o});if(g=y.newWidth,b=y.newHeight,this.props.grid){var w=a3(g,this.props.grid[0]),x=a3(b,this.props.grid[1]),k=this.props.snapGap||0;g=0===k||Math.abs(w-g)<=k?w:g,b=0===k||Math.abs(x-b)<=k?x:b}this.props.snap&&this.props.snap.x&&(g=a7(g,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(b=a7(b,this.props.snap.y,this.props.snapGap));var O={width:g-u.width,height:b-u.height};if(d&&"string"==typeof d){if(a8(d,"%")){var S=g/p.width*100;g=S+"%"}else if(a8(d,"vw")){var E=g/this.window.innerWidth*100;g=E+"vw"}else if(a8(d,"vh")){var P=g/this.window.innerHeight*100;g=P+"vh"}}if(f&&"string"==typeof f){if(a8(f,"%")){var S=b/p.height*100;b=S+"%"}else if(a8(f,"vw")){var E=b/this.window.innerWidth*100;b=E+"vw"}else if(a8(f,"vh")){var P=b/this.window.innerHeight*100;b=P+"vh"}}var j={width:this.createSizeForCssProperty(g,"width"),height:this.createSizeForCssProperty(b,"height")};"row"===this.flexDir?j.flexBasis=j.width:"column"===this.flexDir&&(j.flexBasis=j.height),this.setState(j),this.props.onResize&&this.props.onResize(e,c,this.resizable,O)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,i=t.original;if(!!n&&!!this.resizable){var o={width:this.size.width-i.width,height:this.size.height-i.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,o),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:a1(a1({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,i=t.handleClasses,o=t.handleWrapperStyle,a=t.handleWrapperClass,l=t.handleComponent;if(!n)return null;var s=Object.keys(n).map(function(t){return!1!==n[t]?u.createElement(aQ,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:i&&i[t]},l&&l[t]?l[t]:null):null});return u.createElement("span",{className:a,style:o},s)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce(function(t,n){return -1!==ln.indexOf(n)?t:(t[n]=e.props[n],t)},{}),n=a1(a1(a1({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return u.createElement(r,a1({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&u.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(u.PureComponent);function lo(){var e,t,n=(e=["\n .adm-error-block-full-page {\n padding-top: 100px;\n }\n "],!t&&(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return lo=function(){return n},n}var la=function(e){var t=e.children,n=aZ(),r=n.size,i=n.setSize;return d().createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",boxSizing:"border-box",overflow:"auto",padding:80},className:(0,as.css)(lo())},d().createElement(li,{style:{boxShadow:"0 0 15px rgba(0, 0, 0, 0.3)"},"data-testid":"desktop-mode-resizable",size:{width:r.width,height:r.height},onResizeStop:function(e,t,n,o){i({width:r.width+o.width,height:r.height+o.height})}},t))},ll=function(e){var t=e.children;return g.isDesktop?d().createElement(aN,null,d().createElement(x.Layout,{style:{height:"100%",background:a_}},d().createElement(x.Layout.Header,{style:{height:46}},d().createElement(aH,null)),d().createElement(x.Layout.Content,null,d().createElement(la,null,t)))):d().createElement(d().Fragment,null,t)};function ls(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var lc=(0,u.createContext)(void 0);lc.displayName="MobileAppContext";var lu=function(e){var t,n,r,i,o=e.children,a=(0,c.usePlugin)(sy);var l=(t=d().useState(null===(i=null===(r=a.getPluginOptions())||void 0===r?void 0:r.showTabBar)||void 0===i||i),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&null!=i.return&&i.return()}finally{if(l)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return ls(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ls(e,t)}}(t,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=l[0],u=l[1];return d().createElement(lc.Provider,{value:{showTabBar:s,setShowTabBar:function(e){u(e),a.updateOptions({showTabBar:e})}}},o)},ld=function(){return d().useContext(lc)};function lf(){var e,t,n=(e=["\n -webkit-overflow-scrolling: touch;\n display: initial;\n\n & ::-webkit-scrollbar {\n display: none;\n }\n .nb-details .ant-formily-item-feedback-layout-loose {\n margin-bottom: 5px;\n }\n .nb-details .ant-formily-item-layout-vertical .ant-formily-item-label {\n margin-bottom: -8px;\n }\n .ant-card .ant-card-body {\n padding-bottom: 10px;\n padding-top: 10px;\n }\n .ant-pagination-simple {\n margin-top: 0px !important;\n }\n .nb-action-penal-container {\n margin-top: -10px;\n margin-bottom: -10px;\n }\n .nb-action-penal-container\n button[aria-label*='schema-initializer-WorkbenchBlock.ActionBar-workbench:configureActions'] {\n margin-bottom: 10px;\n }\n .nb-action-panel {\n padding-top: 10px;\n }\n .nb-action-panel .ant-avatar-circle {\n width: 48px !important;\n height: 48px !important;\n line-height: 48px !important;\n }\n .nb-chart-block .ant-card .ant-card-body {\n padding-bottom: 0px;\n padding-top: 0px;\n }\n .nb-chart-block .noco-card-item {\n margin-bottom: -13px;\n }\n .ant-table-thead button[aria-label*='schema-initializer-TableV2-table:configureColumns'] > span:last-child {\n display: none !important;\n }\n .ant-table-thead button[aria-label*='schema-initializer-TableV2-table:configureColumns'] > .ant-btn-icon {\n margin: 0px;\n }\n .ant-table-tbody .nb-column-initializer {\n min-width: 40px !important;\n }\n // reset Select record popup\n .ant-table-thead\n button[aria-label*='schema-initializer-TableV2.Selector-table:configureColumns']\n > span:last-child {\n display: none !important;\n }\n .ant-table-thead\n button[aria-label*='schema-initializer-TableV2.Selector-table:configureColumns']\n > .ant-btn-icon {\n margin: 0px;\n }\n\n .ant-pagination .ant-pagination-total-text {\n display: none;\n }\n .ant-pagination .ant-pagination-options {\n display: none;\n }\n .ant-pagination .ant-pagination-item {\n display: none;\n }\n .ant-card-body .nb-action-bar .ant-btn {\n justify-content: space-between;\n display: flex;\n align-items: center;\n gap: 8px;\n\n span {\n display: contents;\n }\n }\n .ant-card-body .nb-action-bar .ant-btn-icon {\n margin-inline-end: 0px !important;\n }\n .ant-card-body .nb-table-container {\n margin-right: -20px;\n margin-left: -10px;\n }\n .nb-action-bar button[aria-label*='schema-initializer-ActionBar-table:configureActions'] > span:last-child {\n display: none !important;\n }\n .nb-action-bar button[aria-label*='schema-initializer-ActionBar-table:configureActions'] > .ant-btn-icon {\n margin: 0px;\n }\n .nb-card-list .ant-row > div {\n width: 100% !important;\n max-width: 100% !important;\n }\n .mobile-page-header .adm-tabs-tab {\n font-size: 14px;\n }\n "],!t&&(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return lf=function(){return n},n}var lp=(0,c.createStyles)(function(e){return e.token,{nbMobile:(0,e.css)(lf())}}),lm=function(){i6(),oe(),op();var e,t,n=lp().styles,r=(0,c.usePlugin)(sy),i=r.getRouterComponent(),o=(null==r?void 0:null===(t=r.options)||void 0===t?void 0:null===(e=t.config)||void 0===e?void 0:e.skipLogin)?d().Fragment:c.AdminProvider;d().useEffect(function(){if(!g.isDesktop){var e=document.querySelector('meta[name="viewport"]');!e&&((e=document.createElement("meta")).setAttribute("name","viewport"),document.head.appendChild(e)),e.setAttribute("content","width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"),document.body.style.backgroundColor=a_,document.body.style.overflow="hidden";var t=document.createElement("div");document.body.appendChild(t),document.body.removeChild(t)}},[]);var a=!1===r.desktopMode?d().Fragment:ll,l=d().useMemo(function(){return{PopoverNester:function(e){var t,n,r=(0,(0,c.useAssociationFieldModeContext)().getDefaultComponent)(c.AssociationFieldMode.PopoverNester);return d().createElement(oc,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({},e),n=(n={OriginComponent:r},n),Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}}},[]);return d().createElement(o,null,d().createElement(a,null,d().createElement(c.GlobalThemeProvider,{theme:{token:{marginBlock:18,borderRadiusBlock:0,boxShadowTertiary:"none"}}},d().createElement(c.AntdAppProvider,{className:"mobile-container ".concat(n.nbMobile)},d().createElement(c.OpenModeProvider,{defaultOpenMode:"page",isMobile:!0,hideOpenMode:!0,openModeToComponent:{page:aI,drawer:i8,modal:c.Action.Modal}},d().createElement(c.BlockTemplateProvider,{componentNamePrefix:"mobile-"},d().createElement(lu,null,d().createElement(aT,null,d().createElement(c.AssociationFieldModeProvider,{modeToComponent:l},d().createElement(c.zIndexContext.Provider,{value:100},d().createElement(i,null)))))))))))},lh=y("663"),lb={};lb.styleTagTransform=T(),lb.setAttributes=z(),lb.insert=j().bind(null,"head"),lb.domAPI=E(),lb.insertStyleElement=I(),O()(lh.Z,lb),lh.Z&&lh.Z.locals&&lh.Z.locals;var lg=(0,oI.createStyles)(function(){return{mobileTabBar:{position:"absolute",bottom:0,left:0,right:0,height:50,boxSizing:"border-box",padding:"2px 0px",borderTop:"1px solid var(--adm-color-border)",backgroundColor:"var(--adm-color-background)"},mobileTabBarContent:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1em",height:"100%"},mobileTabBarList:{display:"flex",justifyContent:"space-around",flex:1,alignItems:"center",overflowX:"auto",".adm-tab-bar-item":{maxWidth:"100%",".adm-tab-bar-item-title":{maxWidth:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},"&>div":{flex:1,display:"flex",justifyContent:"center",alignItems:"center"},".ant-btn-icon":{marginInlineEnd:"0 !important"}}}});function lv(e){return!!e&&e.startsWith("/")&&!e.startsWith("//")}function ly(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lw=function(e){var t=e.title,n=e.onClick,r=e.selected,i=e.badge,o=function(e,t){var n=e.icon,r=e.selectedIcon,i=t&&r?r:n;if(i)return"string"==typeof i?d().createElement(c.Icon,{type:i}):n}(e,r);return d().createElement("div",{onClick:n,"data-testid":"mobile-tab-bar-".concat(t),className:D()("adm-tab-bar-item",ly({},"adm-tab-bar-item-active",r)),style:{lineHeight:1}},d().createElement(W,{content:i,style:{"--top":"5px"}},d().createElement("span",{className:"adm-tab-bar-item-icon"},o)),d().createElement("span",{className:D()("adm-tab-bar-item-title",ly({},"adm-tab-bar-item-title-with-icon",o)),style:{fontSize:"12px"}},t))};function lx(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}function lk(){var e,t,n=oj(),r=n.refresh,i=n.resource,o=(0,v.useFieldSchema)(),a=h().t,l=x.App.useApp().message;return t=(e=function(e){var t,n,s,c,u;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(d){switch(d.label){case 0:if(!e.title||""===e.title.trim())return l.error(a("Title field is required")),[2,Promise.reject(Error(a("Title field is required")))];if(!e.icon)return l.error(a("Icon field is required")),[2,Promise.reject(Error(a("Icon field is required")))];return n=Number((t=o.toJSON()).name),s=t["x-component-props"].title,c=t["x-component-props"].icon,u=(0,ow.omit)(t["x-component-props"],"title","icon"),[4,i.update({filterByTk:n,values:{title:s,icon:c,options:u}})];case 1:return d.sent(),r(),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){lx(o,r,i,a,l,"next",e)}function l(e){lx(o,r,i,a,l,"throw",e)}a(void 0)})}),function(e){return t.apply(this,arguments)}}var lO=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{title:{title:b("Title"),type:"string",default:e.title,"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{title:b("Icon"),type:"string",default:e.icon,"x-decorator":"FormItem","x-component":"IconPicker",required:!0}}};function lS(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}function lE(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){lS(o,r,i,a,l,"next",e)}function l(e){lS(o,r,i,a,l,"throw",e)}a(void 0)})}}function lP(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}var lj=function(e){return(0,c.createModalSettingsItem)({title:b("Edit button"),name:"tabBarItem",parentSchemaKey:"x-component-props",schema:function(t){return{type:"object",title:"Edit button",properties:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({},lO(t),e?e(t):{})}},useSubmit:lk})},lC=(0,c.createTextSettingsItem)({name:"remove",title:b("Delete"),useTextClick:function(){var e=Number((0,v.useFieldSchema)().toJSON().name),t=oj(),n=t.refresh,r=t.resource,i=t.routeList,o=t.api,a=(0,p.useNavigate)(),l=h().t,s=x.App.useApp(),c=s.modal,u=s.message;return lE(function(){return lP(this,function(t){return c.confirm({title:l("Delete action"),content:l("Are you sure you want to delete it?"),onOk:lE(function(){var t;return lP(this,function(l){switch(l.label){case 0:return[4,r.destroy({filterByTk:e})];case 1:return l.sent(),[4,r.destroy({filter:{parentId:e}})];case 2:return l.sent(),t=i.find(function(t){return t.id===e}),[4,o.request({url:"/uiSchemas:remove/".concat(t.schemaUid),method:"delete"})];case 3:return l.sent(),[4,n()];case 4:return l.sent(),a("/"),u.success({content:"Delete successfully"}),[2]}})})}),[2]})})}}),lz=y("473");function lM(e){var t,n,r={name:e.id,type:"void","x-decorator":"BlockItem","x-settings":"mobile:tab-bar:".concat(e.type),"x-component":"MobileTabBar.".concat((0,ow.upperFirst)(e.type)),"x-toolbar-props":{showBorder:!1,showBackground:!0},"x-component-props":function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({title:e.title,icon:e.icon,schemaUid:e.schemaUid},e.options||{})};return(0,lz.merge)(r,null!==(n=null===(t=e.options)||void 0===t?void 0:t.schema)&&void 0!==n?n:{})}var lI=function(e){var t,n,r=(0,p.useLocation)(),i=(0,c.useLinkActionProps)(e).onClick,o=r.pathname===e.url;return d().createElement(lw,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({},e),n=(n={onClick:i,selected:o},n),Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))},lA=y("632");function lT(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}function l_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}function lB(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var lR=new c.SchemaSettings({name:"mobile:tab-bar:link",items:[lj(),{name:"editLink",Component:function(){var e,t,n=(0,v.useFieldSchema)(),r=(0,m.useTranslation)().t,i=(0,c.useURLAndHTMLSchema)(),o=i.urlSchema,a=i.paramsSchema,l=i.openInNewWindowSchema,s=oj(),u=s.resource,f=s.refresh,p=n["x-component-props"]||{},h={url:p.url,params:p.params||[{}],openInNewWindow:p.openInNewWindow};return d().createElement(c.SchemaSettingsModalItem,{title:r("Edit link"),components:{ArrayItems:lA.ArrayItems},schema:{type:"object",title:r("Edit link"),properties:{url:lB(l_({},o),{required:!0}),params:a,openInNewWindow:l}},onSubmit:(t=(e=function(e){var t,r,i,o,a;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(l){switch(l.label){case 0:return t=e.url,r=e.params,i=e.openInNewWindow,a=Number((o=n.toJSON()).name),[4,u.update({filterByTk:a,values:{options:lB(l_({},o["x-component-props"]),{url:t,params:r,openInNewWindow:i})}})];case 1:return l.sent(),f(),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){lT(o,r,i,a,l,"next",e)}function l(e){lT(o,r,i,a,l,"throw",e)}a(void 0)})}),function(e){return t.apply(this,arguments)}),initialValues:h})}},{name:"divider",type:"divider"},lC]});function lF(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}var lZ={name:"link",type:"actionModal",useComponentProps:function(){var e=oj(),t=e.resource,n=e.refresh,r=h().t,i=x.App.useApp().message;return{isItem:!0,title:b("Add link"),buttonText:b("Link"),schema:lO(),onSubmit:function(e){var o;return(o=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(o){switch(o.label){case 0:if(!e.title||""===e.title.trim())return i.error(r("Title field is required")),[2,Promise.reject(Error(r("Title field is required")))];if(!e.icon)return i.error(r("Icon field is required")),[2,Promise.reject(Error(r("Icon field is required")))];return[4,t.create({values:{type:"link",title:e.title,icon:e.icon}})];case 1:return o.sent(),[4,n()];case 2:return o.sent(),[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,r){var i=o.apply(e,t);function a(e){lF(i,n,r,a,l,"next",e)}function l(e){lF(i,n,r,a,l,"throw",e)}a(void 0)})})()}}}},lN=function(e){var t,n,r=e.schemaUid,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++){if(n=o[r],!(t.indexOf(n)>=0))Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}}return i}(e,["schemaUid"]),o=(0,p.useNavigate)(),a=(0,p.useLocation)(),l=(0,u.useMemo)(function(){return r?"/page/".concat(r):i.url?"".concat(i.url):"/"},[r,i.url]),s=(0,u.useCallback)(function(){o(l)},[l,o]),c=a.pathname.startsWith(l);return d().createElement(lw,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({},i),n=(n={onClick:s,selected:c},n),Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))},lD=new c.SchemaSettings({name:"mobile:tab-bar:page",items:[lj(),{name:"divider",type:"divider"},lC]}),lL=function(){var e,t=oj().routeList.find(function(e){var t;return e.schemaUid||lv(null===(t=e.options)||void 0===t?void 0:t.url)});if(!t)return null;var n=(null==t?void 0:null===(e=t.options)||void 0===e?void 0:e.url)||"/".concat(t.type,"/").concat(t.schemaUid);return n?d().createElement(p.Navigate,{to:n,replace:!0}):null},l$=function(){var e=(0,p.useNavigate)(),t=h().t;return d().createElement(x.Result,{status:"404",title:"404",subTitle:t("Sorry, the page you visited does not exist."),extra:d().createElement(en,{onClick:function(){return e("/",{replace:!0})},color:"primary",fill:"solid"},t("Back Home"))})};function lU(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}var lq={name:"schema",type:"actionModal",useComponentProps:function(){var e=oj(),t=e.resource,n=e.refresh,r=e.schemaResource,i=(0,p.useNavigate)(),o=h().t,a=x.App.useApp().message;return{isItem:!0,title:b("Add page"),buttonText:b("Page"),schema:lO(),onSubmit:function(e){var l;return(l=function(){var l,s,c,u,d;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(f){switch(f.label){case 0:if(!e.title||""===e.title.trim())return a.error(o("Title field is required")),[2,Promise.reject(Error(o("Title field is required")))];if(!e.icon)return a.error(o("Icon field is required")),[2,Promise.reject(Error(o("Icon field is required")))];return l=(0,oW.uid)(),s=(0,oW.uid)(),c="/page/".concat(l),[4,t.create({values:{type:"page",schemaUid:l,title:e.title,icon:e.icon}})];case 1:return u=f.sent().data,[4,r.insertAdjacent({resourceIndex:"mobile",position:"beforeEnd",values:ax(l,s)})];case 2:return f.sent(),d=u.data.id,[4,t.create({values:{type:"tabs",parentId:d,title:"Unnamed",schemaUid:s}})];case 3:return f.sent(),[4,n()];case 4:return f.sent(),i(c),[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,r){var i=l.apply(e,t);function o(e){lU(i,n,r,o,a,"next",e)}function a(e){lU(i,n,r,o,a,"throw",e)}o(void 0)})})()}}}},lW=new c.SchemaInitializer({name:"mobile:tab-bar",icon:"PlusOutlined",style:{marginRight:12},items:[lq,lZ]}),lV=function(){return(0,(0,c.useSchemaInitializerRender)(lW.name).render)({"data-testid":"schema-initializer-MobileTabBar"})};function lH(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}var lG=function(e){var t,n,r=e.enableTabBar,i=lg().styles,o=(0,c.useDesignable)().designable,a=oj(),l=a.routeList,s=a.activeTabBarItem,f=a.resource,p=a.refresh,m=l.filter(function(e){var t;return e.schemaUid||lv(null===(t=e.options)||void 0===t?void 0:t.url)});var h=(0,u.useCallback)((n=(t=function(e){var t,n,r,i,o,a;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(l){switch(l.label){case 0:if(t=e.active,n=e.over,r=null==t?void 0:t.id,i=null==n?void 0:n.id,!r||!i||r===i)return[2];return o=Number(r.replace("nocobase-mobile.tabBar.","")),a=Number(i.replace("nocobase-mobile.tabBar.","")),[4,f.move({sourceId:o,targetId:a,sortField:"sort"})];case 1:return l.sent(),[4,p()];case 2:return l.sent(),[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(e){lH(o,r,i,a,l,"next",e)}function l(e){lH(o,r,i,a,l,"throw",e)}a(void 0)})}),function(e){return n.apply(this,arguments)}),[f,p]);return(void 0===r||r)&&(s||!(m.length>0))?d().createElement("div",{className:(0,c.cx)(i.mobileTabBar,"mobile-tab-bar"),"data-testid":"mobile-tab-bar"},d().createElement("div",{className:i.mobileTabBarContent},d().createElement(c.DndContext,{onDragEnd:h},d().createElement("div",{className:(0,c.cx)(i.mobileTabBarList,(0,c.css)({maxWidth:o?"calc(100% - 58px)":"100%"}))},l.map(function(e){return d().createElement(c.SchemaComponent,{key:e.id,schema:lM(e)})}))),d().createElement(lV,null)),d().createElement(i_,{position:"bottom"})):null};lG.Item=lw,lG.Link=lI,lG.Page=lN;var lK=function(){var e=ld().showTabBar;return d().createElement(oM,null,d().createElement(p.Outlet,null),d().createElement(lG,{enableTabBar:e}))},lX=y("974"),lQ=y.n(lX),lY=y("563");function lJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l0(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}function l1(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){l0(o,r,i,a,l,"next",e)}function l(e){l0(o,r,i,a,l,"throw",e)}a(void 0)})}}function l2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}function l4(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function l3(e){return function(e){if(Array.isArray(e))return lJ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l5(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l5(e,t){if(e){if("string"==typeof e)return lJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lJ(e,t)}}function l6(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function l7(){var e,t,n=(e=["\n .ant-table-cell {\n > .ant-space-horizontal {\n .ant-space-item-split:has(+ .ant-space-item:empty) {\n display: none;\n }\n }\n }\n"],!t&&(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return l7=function(){return n},n}var l8=(0,as.css)(l7()),l9=function(e,t){return e.map(function(e){var n=t(e.title);return e.children?l4(l2({},e),{title:n,children:l9(e.children,t)}):l4(l2({},e),{title:n})})},se=function(e){if(!Array.isArray(e))return[];var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value;t.push(l.id),l.hideChildren&&!ox().isNil(l.firstTabId)&&t.push(l.firstTabId),t.push.apply(t,l3(se(l.children)))}}catch(e){r=!0,i=e}finally{try{!n&&null!=a.return&&a.return()}finally{if(r)throw i}}return t},st=function(e,t){return Array.isArray(e)?e.map(function(e){var n,r=st(e.children,e),i=r.length<=1;return{title:e.title,id:e.id,children:i?null:r,hideChildren:i,firstTabId:null===(n=r[0])||void 0===n?void 0:n.id,parent:t}}):[]},sn=function(e){var t,n,r,i,o,a=e.active,l=st(oj().routeList),s=(0,u.useContext)(lX.RolesManagerContext),f=s.role,p=s.setRole,h=(0,c.useAPIClient)(),b=(0,m.useTranslation)().t,g=se(l);var v=(t=(0,u.useState)([]),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&null!=i.return&&i.return()}finally{if(l)throw r}}return o}}(t,2)||l5(t,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=v[0],w=v[1],k=(0,c.useRequest)({resource:"roles.mobileRoutes",resourceOf:f.name,action:"list",params:{paginate:!1}},{ready:!!f&&a,refreshDeps:[null==f?void 0:f.name],onSuccess:function(e){var t;w((null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.map(function(e){return e.id}))||[])}}),O=k.loading,S=k.refresh,E=h.resource("roles.mobileRoutes",f.name),P=g.length===y.length;var j=(r=l1(function(e,t){var n,r,i,o,a,l,s,c;return l6(this,function(u){switch(u.label){case 0:if(!e)return[3,2];return n=y.filter(function(e){return e!==t.id}),r=[t.id],t.parent&&0===t.parent.children.filter(function(e){return n.includes(e.id)}).length&&(n=n.filter(function(e){return e!==t.parent.id}),r.push(t.parent.id)),t.children&&(n=n.filter(function(e){return!t.children.map(function(e){return e.id}).includes(e)}),(i=r).push.apply(i,l3(t.children.map(function(e){return e.id})))),t.hideChildren&&!ox().isNil(t.firstTabId)&&(r.push(t.firstTabId),n=n.filter(function(e){return e!==t.firstTabId})),w(n),[4,E.remove({values:r})];case 1:return u.sent(),[3,4];case 2:return o=l3(y).concat([t.id]),a=[t.id],t.parent&&!o.includes(t.parent.id)&&(o.push(t.parent.id),a.push(t.parent.id)),t.children&&(c=t.children.map(function(e){return e.id}),(l=o).push.apply(l,l3(c)),(s=a).push.apply(s,l3(c))),t.hideChildren&&!ox().isNil(t.firstTabId)&&(a.push(t.firstTabId),o.push(t.firstTabId)),w((0,ow.uniq)(o)),[4,E.add({values:a})];case 3:u.sent(),u.label=4;case 4:return x.message.success(b("Saved successfully")),[2]}})}),function(e,t){return r.apply(this,arguments)});var C=(0,eS.useMemoizedFn)((i=l1(function(e){return l6(this,function(t){switch(t.label){case 0:return[4,h.resource("roles").update({filterByTk:f.name,values:e.values})];case 1:return t.sent(),p(l2({},f,e.values)),x.message.success(b("Saved successfully")),[2]}})}),function(e){return i.apply(this,arguments)})),z=(0,u.useMemo)(function(){return(0,lY.createForm)({values:f,effects:function(){var e;(0,lY.onFormValuesChange)((e=l1(function(e){return l6(this,function(t){switch(t.label){case 0:return[4,C(e)];case 1:return t.sent(),[2]}})}),function(t){return e.apply(this,arguments)}))}})},[f,C]);return d().createElement(d().Fragment,null,d().createElement(c.SchemaComponent,{schema:{type:"void",name:(0,oW.uid)(),"x-component":"FormV2","x-component-props":{form:z},properties:{allowNewMobileMenu:{title:b("Menu permissions"),"x-decorator":"FormItem","x-component":"Checkbox","x-content":b("New menu items are allowed to be accessed by default.")}}}}),d().createElement(x.Table,{className:l8,loading:O,rowKey:"id",pagination:!1,expandable:{defaultExpandAllRows:!0},columns:[{dataIndex:"title",title:b("Menu item title")},{dataIndex:"accessible",title:d().createElement(d().Fragment,null,d().createElement(x.Checkbox,{checked:P,onChange:(o=l1(function(e){return l6(this,function(e){switch(e.label){case 0:if(!P)return[3,2];return[4,E.set({values:[]})];case 1:return e.sent(),[3,4];case 2:return[4,E.set({values:g})];case 3:e.sent(),e.label=4;case 4:return S(),x.message.success(b("Saved successfully")),[2]}})}),function(e){return o.apply(this,arguments)})})," ",b("Accessible")),render:function(e,t){var n=y.includes(t.id);return d().createElement(x.Checkbox,{checked:n,onChange:function(){return j(n,t)}})}}],dataSource:l9(l,b)}))},sr=function(e){var t=e.children,n=e.active,r=d().useRef(function(){});return(0,u.useEffect)(function(){if(n){var e;null===(e=r.current)||void 0===e||e.call(r)}},[n]),d().createElement(oC,{action:"list",refreshRef:r,manual:!0},t)},si={onBackPressed:function(){if(1===history.length){var e,t;e={action:"moveTaskToBack"},window.JsBridge.invoke(e,void 0)}else history.back()}};Object.keys(si).forEach(function(e){window[e]=si[e]});var so=function(){var e=(0,c.useDesigner)(),t=(0,c.useToken)().token,n=(0,u.useMemo)(function(){return{marginBottom:t.marginBlock}},[t.marginBlock]);return d().createElement(c.SortableItem,{className:(0,c.cx)("nb-mobile-setting"),style:n},d().createElement(e,null),d().createElement(c.SettingsMenu,null))};function sa(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}var sl=function(){var e,t=(0,c.useSchemaInitializerItem)(),n=(0,c.useSchemaInitializer)().insert;return d().createElement(c.SchemaInitializerItem,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return e}({icon:d().createElement(aB.SettingOutlined,null),onClick:(e=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(e){return n({type:"void","x-component":"MobileSettings","x-settings":"blockSettings:mobileSettings","x-component-props":{}}),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){sa(o,r,i,a,l,"next",e)}function l(e){sa(o,r,i,a,l,"throw",e)}a(void 0)})})},t))},ss=new c.SchemaSettings({name:"blockSettings:mobileSettings",items:[{name:"delete",type:"remove",useComponentProps:function(){return{removeParentsIfNoChildren:!0,confirm:{title:(0,h().t)("Delete settings block")},breakRemoveOn:{"x-component":"Grid"}}}}]});function sc(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}function su(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){sc(o,r,i,a,l,"next",e)}function l(e){sc(o,r,i,a,l,"throw",e)}a(void 0)})}}function sd(e,t,n){return(sd=sg()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&sh(i,n.prototype),i}).apply(null,arguments)}function sf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sm(e){return(sm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sh(e,t){return(sh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sb(e){var t="function"==typeof Map?new Map:void 0;return(sb=function(e){var n;if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return sd(e,arguments,sm(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),sh(r,e)})(e)}function sg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sg=function(){return!!e})()}function sv(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}var sy=function(e){var t,n,r;function i(){var e,t,n,r;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),t=this,n=i,r=arguments,n=sm(n),sp(e=function(e,t){return t&&("object"===function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(t)||"function"==typeof t)?t:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(t,sg()?Reflect.construct(n,r||[],sm(t).constructor):n.apply(t,r)),"mobileRouter",void 0),sp(e,"mobilePath","/m"),e}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sh(e,t)}(i,e),t=i,n=[{key:"desktopMode",get:function(){var e,t,n;return null===(n=null===(t=this.options)||void 0===t?void 0:null===(e=t.config)||void 0===e?void 0:e.desktopMode)||void 0===n||n}},{key:"mobileBasename",get:function(){return"".concat(this.router.getBasename(),"m")}},{key:"updateOptions",value:function(e){var t=this;return su(function(){var n;return sv(this,function(r){return!t.options&&(t.options={}),t.options.options=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){sp(e,t,n[t])})}return e}({},null===(n=t.options)||void 0===n?void 0:n.options,e),[2,t.app.apiClient.request({url:"applicationPlugins:update",method:"post",params:{filter:{packageName:f.u2}},data:{options:t.options.options}})]})})()}},{key:"getPluginOptions",value:function(){var e;return null===(e=this.options)||void 0===e?void 0:e.options}},{key:"afterAdd",value:function(){var e=this;return su(function(){return sv(this,function(t){return e.setMobileRouter(),[2]})})()}},{key:"load",value:function(){var e=this;return su(function(){return sv(this,function(t){return e.addComponents(),e.addAppRoutes(),e.addRoutes(),e.addInitializers(),e.addSettings(),e.addScopes(),e.addPermissionsSettingsUI(),e.app.pluginSettingsManager.add("mobile",{title:b("Mobile"),icon:"MobileOutlined",link:e.mobileBasename}),[2]})})()}},{key:"addScopes",value:function(){this.app.addScopes({useMobileNavigationBarLink:at})}},{key:"addInitializers",value:function(){this.app.schemaInitializerManager.add(oF,lW,oH,ai)}},{key:"addSettings",value:function(){this.app.schemaSettingsManager.add(ay,lD,lR,oJ,ae,ss)}},{key:"addComponents",value:function(){this.app.addComponents({MobilePageProvider:oL,MobileNavigationBarAction:al,MobilePageNavigationBar:ag,MobileHomePage:lL,MobilePageContent:oR,MobileTabBar:lG,MobilePageHeader:oq,MobilePageTabs:o3,MobileNavigationActionBar:ah,MobileNotFoundPage:l$,MobileSettingsBlockInitializer:sl,MobileSettings:so})}},{key:"setMobileRouter",value:function(){var e,t,n=(0,c.createRouterManager)((null===(t=this.options)||void 0===t?void 0:null===(e=t.config)||void 0===e?void 0:e.router)||{type:"browser",basename:this.mobileBasename},this.app);this.mobileRouter=n}},{key:"addRoutes",value:function(){var e=this;this.app.addComponents({MobileLayout:lK,MobilePage:oy}),this.mobileRouter.add("mobile",{Component:"MobileLayout"}),this.mobileRouter.add("mobile.home",{path:"/",Component:"MobileHomePage"}),this.mobileRouter.add("signin",{path:"/signin",Component:function(){return window.location.href=window.location.href.replace(e.mobilePath+"/","/").replace("redirect=","redirect=".concat(e.mobilePath)),null}}),this.mobileRouter.add("admin",{path:"/admin/*",Component:function(){return window.location.pathname.includes("".concat(e.mobilePath,"/admin/"))&&window.location.replace(window.location.href.replace(e.mobilePath+"/","/")),null}}),this.mobileRouter.add("mobile.schema",{element:d().createElement(p.Outlet,null)}),this.mobileRouter.add("mobile.schema.page",{path:"/page/:pageSchemaUid",Component:"MobilePage"}),this.mobileRouter.add("mobile.schema.page.popup",{path:"/page/:pageSchemaUid/popups/*",Component:c.PagePopups}),this.mobileRouter.add("mobile.schema.tabs",{element:d().createElement(p.Outlet,null)}),this.mobileRouter.add("mobile.schema.tabs.page",{path:"/page/:pageSchemaUid/tabs/:tabSchemaUid",Component:"MobilePage"}),this.mobileRouter.add("mobile.schema.tabs.page.popup",{path:"/page/:pageSchemaUid/tabs/:tabSchemaUid/popups/*",Component:c.PagePopups}),this.mobileRouter.add("not-found",{path:"*",Component:"MobileNotFoundPage"})}},{key:"addAppRoutes",value:function(){this.app.addComponents({Mobile:lm}),this.app.router.add("m",{path:"".concat(this.mobilePath,"/*"),Component:"Mobile"})}},{key:"getRouterComponent",value:function(){return this.mobileRouter.getRouterComponent()}},{key:"addPermissionsSettingsUI",value:function(){var e;null===(e=this.app.pm.get(lQ()))||void 0===e||e.settingsUI.addPermissionsTab(function(e){var t=e.t,n=e.TabLayout,r=e.activeKey,i=e.currentUserRole;return i&&(!i.snippets.includes("pm.mobile")&&!i.snippets.includes("pm.*")||i.snippets.includes("!pm.mobile"))?null:{key:"mobile-menu",label:t("Mobile menu",{ns:f.u2}),children:d().createElement(n,null,d().createElement(sr,{active:"mobile-menu"===r},d().createElement(sn,{active:"mobile-menu"===r})))}})}}],sf(t.prototype,n),i}(sb(c.Plugin)),sw=sy}(),w}()});
|