@vtj/pro 0.18.27 → 0.19.0
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/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +3 -3
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/uni-ui/index.umd.js +1 -1
- package/dist/@vtj/materials/deps/vue/vue.global.js +253 -83
- package/dist/@vtj/materials/deps/vue/vue.global.prod.js +10 -9
- package/dist/assets/{@element-plus-icons-vue-DA02k83P.js → @element-plus-icons-vue-CMB1ifep.js} +1 -1
- package/dist/assets/{@vueuse-SvwMwBjL.js → @vueuse-Jk9KQurp.js} +1 -1
- package/dist/assets/Editor-aD1U5H8b-CEjzzkkb.js +506 -0
- package/dist/assets/{Editor-BGOUCiNb-Bf2AOMId.css → Editor-aD1U5H8b-DSohPn64.css} +1 -1
- package/dist/assets/auth-Cidhsi4R.js +1 -0
- package/dist/assets/{element-plus-_gYoEp33.js → element-plus-BnQSNCX2.js} +3 -3
- package/dist/assets/{index-CTBdQTnI.js → index-CFYs7okg.js} +2 -2
- package/dist/assets/index-CToMDdzv.js +1 -0
- package/dist/assets/{mockjs-Cu-wxkKz.js → mockjs-BUsIuI1U.js} +3 -3
- package/dist/assets/page-CWdKRmEe.js +2 -0
- package/dist/assets/preview-BwEKr5zo.js +2 -0
- package/dist/assets/shared-P7kalaod.js +25 -0
- package/dist/assets/{uni-page--udw_bNq.js → uni-page-551_wqCE.js} +1 -1
- package/dist/assets/utils-Br5c6Ygo.js +1 -0
- package/dist/assets/{vue-router-CDqTjrgM.js → vue-router-Drd5teeV.js} +1 -1
- package/dist/assets/vue-wWzmtsAU.js +36 -0
- package/dist/assets/{vxe-BulginLS.js → vxe-Hv0pYDff.js} +2 -2
- package/dist/index.html +9 -9
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-BSNRkEM_.js → @dcloudio-uni-h5-vue-ZHZeNOoM.js} +1 -1
- package/dist/uni/assets/index-BynleqLJ.js +98 -0
- package/dist/uni/assets/{vue-router-DFsWHEOo.js → vue-router-cjYR4veV.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +12 -12
- package/dist/assets/Editor-BGOUCiNb-B7CQmaQI.js +0 -437
- package/dist/assets/auth-B2gJ70GV.js +0 -1
- package/dist/assets/index-CWGmo9Bv.js +0 -1
- package/dist/assets/page-ZlzG_syD.js +0 -2
- package/dist/assets/preview-d_ol5nZ_.js +0 -2
- package/dist/assets/shared-Bc0G8KpM.js +0 -25
- package/dist/assets/utils-BabHMUuv.js +0 -1
- package/dist/assets/vue-fMktb-5o.js +0 -35
- package/dist/uni/assets/index-BiPe-Mf9.js +0 -89
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var w=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&w(o,t,e[t]);if(y)for(var t of y(e))B.call(e,t)&&w(o,t,e[t]);return o};var _=(o,e,t)=>new Promise((c,r)=>{var n=s=>{try{i(t.next(s))}catch(a){r(a)}},p=s=>{try{i(t.throw(s))}catch(a){r(a)}},i=s=>s.done?c(s.value):Promise.resolve(s.value).then(n,p);i((t=t.apply(o,e)).next())});import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{B as I,aI as U,ac as d,aJ as b,aK as E,Z as R}from"./Editor-BGOUCiNb-B7CQmaQI.js";import{useRoute as q}from"./vue-router-CDqTjrgM.js";import{y as C,az as f,I as v,D as k,u as l,E as $,U as g}from"./vue-fMktb-5o.js";import{_ as K}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-SvwMwBjL.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./dayjs-CxR8wwn9.js";import"./monaco-editor-Bgo-w-Z8.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";const S={class:"loading"},V=C({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,r=I(u(u({alert:d},U),c.access)),n=q(),p=a=>_(null,null,function*(){const h=`${c.remote||b}/api/open/user/${a}`,m=yield E(h).catch(()=>null);return m&&Array.isArray(m)?m:!m||!m.success?(yield d("登录失败"),null):m.data}),i=n.query.token,s=i?([e,t]=f(()=>p(i)),e=yield e,t(),e):null;if(s)try{r.login(s);const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}catch(a){location.reload()}else{[e,t]=f(()=>d("登录失败")),yield e,t();const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}return(a,h)=>(k(),v("div",S,"正在登录中..."))})}}),Z=K(V,[["__scopeId","data-v-2cb061ca"]]),ee=C({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new R,r=([e,t]=f(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e),n=r==null?void 0:r.remote,p=r==null?void 0:r.__ACCESS__;return(i,s)=>l(n)?(k(),$(l(Z),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):g("",!0)})}});export{ee as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var N=Object.defineProperty;var P=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var B=(n,e,t)=>e in n?N(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e)=>{for(var t in e||(e={}))Q.call(e,t)&&B(n,t,e[t]);if(P)for(var t of P(e))V.call(e,t)&&B(n,t,e[t]);return n};var d=(n,e,t)=>new Promise((_,r)=>{var l=o=>{try{i(t.next(o))}catch(p){r(p)}},s=o=>{try{i(t.throw(o))}catch(p){r(p)}},i=o=>o.done?_(o.value):Promise.resolve(o.value).then(l,s);i((t=t.apply(n,e)).next())});import{useRoute as W}from"./vue-router-CDqTjrgM.js";import{y as Z}from"./@vueuse-SvwMwBjL.js";import{Z as j,Q as z,D as J,B as U,o as C,l as G,d as E}from"./Editor-BGOUCiNb-B7CQmaQI.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{E as K,a as v,n as S,l as L}from"./utils-BabHMUuv.js";import{y as M,az as A,e as O,I as X,r as Y,D as ee}from"./vue-fMktb-5o.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";const ae=M({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=W(),r=Y(),l=new j(z(S)),s=([e,t]=A(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=A(()=>new K(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:w="page",remote:g,auth:k,checkVersion:D=!0,enhance:F,platform:I="web"}=s||{},R=J({loading:L,notify:S,useTitle:Z,alert:v,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),T=U($({alert:v},s==null?void 0:s.__ACCESS__)),b=()=>p==="hash",q=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);C.set("Switcher",{props:{onClick:a=>{const u=a.platform==="uniapp",c=location.pathname;let m=c===`${o}__vtj__/`?o:c;const f=a.currentFile;if(f&&f.type==="page"&&a.homepage!==f.id){const H=s.pageBasePath?`/${w}`:"",x=`${q(h)}${u?`pages${H}`:w}/${f.id}`;m=b()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),C.set("Previewer",{props:{path:(a,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${a.id}`:`${c}#/preview/${a.id}`}}});const y=new G($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:R,access:T,remote:g,auth:k,checkVersion:D,enhance:F,project:{platform:I}},i));return y.ready(()=>d(null,null,function*(){yield E(300),y.openFile(_.query.id)})),O(()=>_.query.id,a=>d(null,null,function*(){yield E(300),y.openFile(a)})),(a,u)=>(ee(),X("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),xe=te(ae,[["__scopeId","data-v-f41f19f5"]]);export{xe as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-CDqTjrgM.js","./vue-fMktb-5o.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var R=Object.defineProperty;var E=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var C=(o,t,e)=>t in o?R(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))h.call(t,e)&&C(o,e,t[e]);if(E)for(var e of E(t))A.call(t,e)&&C(o,e,t[e]);return o};var c=(o,t,e)=>new Promise((_,s)=>{var u=r=>{try{p(e.next(r))}catch(i){s(i)}},d=r=>{try{p(e.throw(r))}catch(i){s(i)}},p=r=>r.done?_(r.value):Promise.resolve(r.value).then(u,d);p((e=e.apply(o,t)).next())});import{_ as g}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as D}from"./vue-router-CDqTjrgM.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{Z as P,Q as T,D as V,U as k,T as B,Y as I,j as S}from"./Editor-BGOUCiNb-B7CQmaQI.js";import{a as U,n as w,l as j,E as L}from"./utils-BabHMUuv.js";import{y as O}from"./@vueuse-SvwMwBjL.js";import{y as Q,az as x,e as Y,E as Z,S as z,U as H,r as N,D as b,g as q}from"./vue-fMktb-5o.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";const mt=Q({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new P(T(w)),s=([t,e]=x(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=V({loading:j,notify:w,useTitle:O,alert:U,access:s==null?void 0:s.access}),d=s?([t,e]=x(()=>new L(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=k({mode:B.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>g(()=>import("./vue-fMktb-5o.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>g(()=>import("./vue-router-CDqTjrgM.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=D(),f=N(),n=q(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{S(a,l,m)})});return i(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(I),a.use(r),v(a))})),Y(()=>l.params.id,a=>c(null,null,function*(){if(a){const m=n==null?void 0:n.appContext.app;if(!m)return;v(m)}})),(a,m)=>f.value?(b(),Z(z(f.value),{key:0})):H("",!0)})}});export{mt as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-CDqTjrgM.js","./vue-fMktb-5o.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))D.call(e,t)&&E(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,r)=>{var _=a=>{try{i(t.next(a))}catch(p){r(p)}},s=a=>{try{i(t.throw(a))}catch(p){r(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,s);i((t=t.apply(o,e)).next())});import{_ as w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as g}from"./vue-router-CDqTjrgM.js";import"./element-plus-_gYoEp33.js";import"./vxe-BulginLS.js";import{Z as P,Q as T,D as V,U as k,T as B,J as I,Y as S,j as U}from"./Editor-BGOUCiNb-B7CQmaQI.js";import{a as j,n as h,l as J,E as L}from"./utils-BabHMUuv.js";import{y as O}from"./@vueuse-SvwMwBjL.js";import{y as Q,az as C,E as Y,S as Z,U as z,r as H,D as N,g as b}from"./vue-fMktb-5o.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-DA02k83P.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Cu-wxkKz.js";import"./marked--VTVY_DP.js";const me=Q({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new P(T(h)),r=([e,t]=C(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=V({loading:J,notify:h,useTitle:O,alert:j,access:r==null?void 0:r.access}),s=r?([e,t]=C(()=>new L(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=r||{},{provider:a,onReady:p}=k({mode:B.Runtime,service:c,materialPath:i,adapter:d(d({},_),s.adapter),dependencies:{Vue:()=>w(()=>import("./vue-fMktb-5o.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-CDqTjrgM.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=g(),u=H(),l=b();return p(()=>f(null,null,function*(){const m=yield I(r.enhance),n=l==null?void 0:l.appContext.app;n&&(s.install&&s.install(n),m&&n.use(m,a),n.use(S),n.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),R=>{U(n,v,R)}))})),(m,n)=>u.value?(N(),Y(Z(u.value),{key:0})):z("",!0)})}});export{me as default};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var fi=Object.defineProperty,ci=Object.defineProperties;var ui=Object.getOwnPropertyDescriptors;var se=Object.getOwnPropertySymbols;var kn=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable;var Dn=(e,t,n)=>t in e?fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,W=(e,t)=>{for(var n in t||(t={}))kn.call(t,n)&&Dn(e,n,t[n]);if(se)for(var n of se(t))qn.call(t,n)&&Dn(e,n,t[n]);return e},lt=(e,t)=>ci(e,ui(t));var ke=(e,t)=>{var n={};for(var r in e)kn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&se)for(var r of se(e))t.indexOf(r)<0&&qn.call(e,r)&&(n[r]=e[r]);return n};var ft=(e,t,n)=>new Promise((r,i)=>{var o=f=>{try{a(n.next(f))}catch(c){i(c)}},s=f=>{try{a(n.throw(f))}catch(c){i(c)}},a=f=>f.done?r(f.value):Promise.resolve(f.value).then(o,s);a((n=n.apply(e,t)).next())});var Nn=!1,Ot,Ce,$e,he,pe,dr,ge,Be,We,Ve,hr,Ie,_e,pr,gr;function V(){if(!Nn){Nn=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Ie=/\b(iPhone|iP[ao]d)/.exec(e),_e=/\b(iP[ao]d)/.exec(e),Ve=/Android/i.exec(e),pr=/FBAN\/\w+;/i.exec(e),gr=/Mobile/i.exec(e),hr=!!/Win64/.exec(e),t){Ot=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ot&&document&&document.documentMode&&(Ot=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);dr=r?parseFloat(r[1])+4:Ot,Ce=t[2]?parseFloat(t[2]):NaN,$e=t[3]?parseFloat(t[3]):NaN,he=t[4]?parseFloat(t[4]):NaN,he?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),pe=t&&t[1]?parseFloat(t[1]):NaN):pe=NaN}else Ot=Ce=$e=pe=he=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);ge=i?parseFloat(i[1].replace("_",".")):!0}else ge=!1;Be=!!n[2],We=!!n[3]}else ge=Be=We=!1}}var ze={ie:function(){return V()||Ot},ieCompatibilityMode:function(){return V()||dr>Ot},ie64:function(){return ze.ie()&&hr},firefox:function(){return V()||Ce},opera:function(){return V()||$e},webkit:function(){return V()||he},safari:function(){return ze.webkit()},chrome:function(){return V()||pe},windows:function(){return V()||Be},osx:function(){return V()||ge},linux:function(){return V()||We},iphone:function(){return V()||Ie},mobile:function(){return V()||Ie||_e||Ve||gr},nativeApp:function(){return V()||pr},android:function(){return V()||Ve},ipad:function(){return V()||_e}},li=ze,di=!!(typeof window<"u"&&window.document&&window.document.createElement),hi={canUseDOM:di},mr=hi,vr;mr.canUseDOM&&(vr=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function pi(e,t){if(!mr.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return!r&&vr&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var gi=pi,Tn=10,jn=40,Ln=800;function yr(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*Tn,i=n*Tn,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(e.deltaMode==1?(r*=jn,i*=jn):(r*=Ln,i*=Ln)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}yr.getEventType=function(){return li.firefox()?"DOMMouseScroll":gi("wheel")?"wheel":"mousewheel"};var Gs=yr;/**
|
|
2
|
-
* Checks if an event is supported in the current execution environment.
|
|
3
|
-
*
|
|
4
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
5
|
-
* `reset`, `load`, `error`, and `select`.
|
|
6
|
-
*
|
|
7
|
-
* Borrows from Modernizr.
|
|
8
|
-
*
|
|
9
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
10
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
|
11
|
-
* @return {boolean} True if the event is supported.
|
|
12
|
-
* @internal
|
|
13
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
14
|
-
*/var I="top",Q="bottom",tt="right",_="left",rn="auto",Kt=[I,Q,tt,_],Tt="start",Yt="end",mi="clippingParents",br="viewport",Vt="popper",vi="reference",Hn=Kt.reduce(function(e,t){return e.concat([t+"-"+Tt,t+"-"+Yt])},[]),wr=[].concat(Kt,[rn]).reduce(function(e,t){return e.concat([t,t+"-"+Tt,t+"-"+Yt])},[]),yi="beforeRead",bi="read",wi="afterRead",xi="beforeMain",Oi="main",Ai="afterMain",Ri="beforeWrite",Ei="write",Si="afterWrite",Mi=[yi,bi,wi,xi,Oi,Ai,Ri,Ei,Si];function ot(e){return e?(e.nodeName||"").toLowerCase():null}function G(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Mt(e){var t=G(e).Element;return e instanceof t||e instanceof Element}function K(e){var t=G(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function on(e){if(typeof ShadowRoot=="undefined")return!1;var t=G(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Fi(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!K(o)||!ot(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function Pi(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(f,c){return f[c]="",f},{});!K(i)||!ot(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(f){i.removeAttribute(f)}))})}}var xr={name:"applyStyles",enabled:!0,phase:"write",fn:Fi,effect:Pi,requires:["computeStyles"]};function rt(e){return e.split("-")[0]}var Et=Math.max,ye=Math.min,jt=Math.round;function Ue(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Or(){return!/^((?!chrome|android).)*safari/i.test(Ue())}function Lt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&K(e)&&(i=e.offsetWidth>0&&jt(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&jt(r.height)/e.offsetHeight||1);var s=Mt(e)?G(e):window,a=s.visualViewport,f=!Or()&&n,c=(r.left+(f&&a?a.offsetLeft:0))/i,l=(r.top+(f&&a?a.offsetTop:0))/o,p=r.width/i,g=r.height/o;return{width:p,height:g,top:l,right:c+p,bottom:l+g,left:c,x:c,y:l}}function sn(e){var t=Lt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ar(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&on(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ct(e){return G(e).getComputedStyle(e)}function Di(e){return["table","td","th"].indexOf(ot(e))>=0}function mt(e){return((Mt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return ot(e)==="html"?e:e.assignedSlot||e.parentNode||(on(e)?e.host:null)||mt(e)}function Cn(e){return!K(e)||ct(e).position==="fixed"?null:e.offsetParent}function ki(e){var t=/firefox/i.test(Ue()),n=/Trident/i.test(Ue());if(n&&K(e)){var r=ct(e);if(r.position==="fixed")return null}var i=Oe(e);for(on(i)&&(i=i.host);K(i)&&["html","body"].indexOf(ot(i))<0;){var o=ct(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Qt(e){for(var t=G(e),n=Cn(e);n&&Di(n)&&ct(n).position==="static";)n=Cn(n);return n&&(ot(n)==="html"||ot(n)==="body"&&ct(n).position==="static")?t:n||ki(e)||t}function an(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _t(e,t,n){return Et(e,ye(t,n))}function qi(e,t,n){var r=_t(e,t,n);return r>n?n:r}function Rr(){return{top:0,right:0,bottom:0,left:0}}function Er(e){return Object.assign({},Rr(),e)}function Sr(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ni=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Er(typeof e!="number"?e:Sr(e,Kt))};function Ti(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=rt(n.placement),f=an(a),c=[_,tt].indexOf(a)>=0,l=c?"height":"width";if(!(!o||!s)){var p=Ni(i.padding,n),g=sn(o),h=f==="y"?I:_,m=f==="y"?Q:tt,u=n.rects.reference[l]+n.rects.reference[f]-s[f]-n.rects.popper[l],y=s[f]-n.rects.reference[f],d=Qt(o),O=d?f==="y"?d.clientHeight||0:d.clientWidth||0:0,v=u/2-y/2,b=p[h],w=O-g[l]-p[m],x=O/2-g[l]/2+v,A=_t(b,x,w),R=f;n.modifiersData[r]=(t={},t[R]=A,t.centerOffset=A-x,t)}}function ji(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Ar(t.elements.popper,i)&&(t.elements.arrow=i))}var Li={name:"arrow",enabled:!0,phase:"main",fn:Ti,effect:ji,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ht(e){return e.split("-")[1]}var Hi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ci(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:jt(n*i)/i||0,y:jt(r*i)/i||0}}function $n(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,f=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,p=e.isFixed,g=s.x,h=g===void 0?0:g,m=s.y,u=m===void 0?0:m,y=typeof l=="function"?l({x:h,y:u}):{x:h,y:u};h=y.x,u=y.y;var d=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),v=_,b=I,w=window;if(c){var x=Qt(n),A="clientHeight",R="clientWidth";if(x===G(n)&&(x=mt(n),ct(x).position!=="static"&&a==="absolute"&&(A="scrollHeight",R="scrollWidth")),x=x,i===I||(i===_||i===tt)&&o===Yt){b=Q;var F=p&&x===w&&w.visualViewport?w.visualViewport.height:x[A];u-=F-r.height,u*=f?1:-1}if(i===_||(i===I||i===Q)&&o===Yt){v=tt;var P=p&&x===w&&w.visualViewport?w.visualViewport.width:x[R];h-=P-r.width,h*=f?1:-1}}var M=Object.assign({position:a},c&&Hi),D=l===!0?Ci({x:h,y:u},G(n)):{x:h,y:u};if(h=D.x,u=D.y,f){var S;return Object.assign({},M,(S={},S[b]=O?"0":"",S[v]=d?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+u+"px)":"translate3d("+h+"px, "+u+"px, 0)",S))}return Object.assign({},M,(t={},t[b]=O?u+"px":"",t[v]=d?h+"px":"",t.transform="",t))}function $i(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,f=a===void 0?!0:a,c={placement:rt(t.placement),variation:Ht(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$n(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$n(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Mr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$i,data:{}},ae={passive:!0};function Bi(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,f=G(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(l){l.addEventListener("scroll",n.update,ae)}),a&&f.addEventListener("resize",n.update,ae),function(){o&&c.forEach(function(l){l.removeEventListener("scroll",n.update,ae)}),a&&f.removeEventListener("resize",n.update,ae)}}var Fr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Bi,data:{}},Wi={left:"right",right:"left",bottom:"top",top:"bottom"};function me(e){return e.replace(/left|right|bottom|top/g,function(t){return Wi[t]})}var Vi={start:"end",end:"start"};function Bn(e){return e.replace(/start|end/g,function(t){return Vi[t]})}function fn(e){var t=G(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cn(e){return Lt(mt(e)).left+fn(e).scrollLeft}function Ii(e,t){var n=G(e),r=mt(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,f=0;if(i){o=i.width,s=i.height;var c=Or();(c||!c&&t==="fixed")&&(a=i.offsetLeft,f=i.offsetTop)}return{width:o,height:s,x:a+cn(e),y:f}}function _i(e){var t,n=mt(e),r=fn(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Et(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Et(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+cn(e),f=-r.scrollTop;return ct(i||n).direction==="rtl"&&(a+=Et(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:f}}function un(e){var t=ct(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Pr(e){return["html","body","#document"].indexOf(ot(e))>=0?e.ownerDocument.body:K(e)&&un(e)?e:Pr(Oe(e))}function zt(e,t){var n;t===void 0&&(t=[]);var r=Pr(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=G(r),s=i?[o].concat(o.visualViewport||[],un(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(zt(Oe(s)))}function Ye(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zi(e,t){var n=Lt(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Wn(e,t,n){return t===br?Ye(Ii(e,n)):Mt(t)?zi(t,n):Ye(_i(mt(e)))}function Ui(e){var t=zt(Oe(e)),n=["absolute","fixed"].indexOf(ct(e).position)>=0,r=n&&K(e)?Qt(e):e;return Mt(r)?t.filter(function(i){return Mt(i)&&Ar(i,r)&&ot(i)!=="body"}):[]}function Yi(e,t,n,r){var i=t==="clippingParents"?Ui(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(f,c){var l=Wn(e,c,r);return f.top=Et(l.top,f.top),f.right=ye(l.right,f.right),f.bottom=ye(l.bottom,f.bottom),f.left=Et(l.left,f.left),f},Wn(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Dr(e){var t=e.reference,n=e.element,r=e.placement,i=r?rt(r):null,o=r?Ht(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,f;switch(i){case I:f={x:s,y:t.y-n.height};break;case Q:f={x:s,y:t.y+t.height};break;case tt:f={x:t.x+t.width,y:a};break;case _:f={x:t.x-n.width,y:a};break;default:f={x:t.x,y:t.y}}var c=i?an(i):null;if(c!=null){var l=c==="y"?"height":"width";switch(o){case Tt:f[c]=f[c]-(t[l]/2-n[l]/2);break;case Yt:f[c]=f[c]+(t[l]/2-n[l]/2);break}}return f}function Xt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,f=a===void 0?mi:a,c=n.rootBoundary,l=c===void 0?br:c,p=n.elementContext,g=p===void 0?Vt:p,h=n.altBoundary,m=h===void 0?!1:h,u=n.padding,y=u===void 0?0:u,d=Er(typeof y!="number"?y:Sr(y,Kt)),O=g===Vt?vi:Vt,v=e.rects.popper,b=e.elements[m?O:g],w=Yi(Mt(b)?b:b.contextElement||mt(e.elements.popper),f,l,s),x=Lt(e.elements.reference),A=Dr({reference:x,element:v,placement:i}),R=Ye(Object.assign({},v,A)),F=g===Vt?R:x,P={top:w.top-F.top+d.top,bottom:F.bottom-w.bottom+d.bottom,left:w.left-F.left+d.left,right:F.right-w.right+d.right},M=e.modifiersData.offset;if(g===Vt&&M){var D=M[i];Object.keys(P).forEach(function(S){var C=[tt,Q].indexOf(S)>=0?1:-1,j=[I,Q].indexOf(S)>=0?"y":"x";P[S]+=D[j]*C})}return P}function Xi(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,f=n.allowedAutoPlacements,c=f===void 0?wr:f,l=Ht(r),p=l?a?Hn:Hn.filter(function(m){return Ht(m)===l}):Kt,g=p.filter(function(m){return c.indexOf(m)>=0});g.length===0&&(g=p);var h=g.reduce(function(m,u){return m[u]=Xt(e,{placement:u,boundary:i,rootBoundary:o,padding:s})[rt(u)],m},{});return Object.keys(h).sort(function(m,u){return h[m]-h[u]})}function Gi(e){if(rt(e)===rn)return[];var t=me(e);return[Bn(e),t,Bn(t)]}function Zi(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,f=n.fallbackPlacements,c=n.padding,l=n.boundary,p=n.rootBoundary,g=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,u=n.allowedAutoPlacements,y=t.options.placement,d=rt(y),O=d===y,v=f||(O||!m?[me(y)]:Gi(y)),b=[y].concat(v).reduce(function(yt,at){return yt.concat(rt(at)===rn?Xi(t,{placement:at,boundary:l,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:u}):at)},[]),w=t.rects.reference,x=t.rects.popper,A=new Map,R=!0,F=b[0],P=0;P<b.length;P++){var M=b[P],D=rt(M),S=Ht(M)===Tt,C=[I,Q].indexOf(D)>=0,j=C?"width":"height",k=Xt(t,{placement:M,boundary:l,rootBoundary:p,altBoundary:g,padding:c}),N=C?S?tt:_:S?Q:I;w[j]>x[j]&&(N=me(N));var B=me(N),$=[];if(o&&$.push(k[D]<=0),a&&$.push(k[N]<=0,k[B]<=0),$.every(function(yt){return yt})){F=M,R=!1;break}A.set(M,$)}if(R)for(var H=m?3:1,Z=function(yt){var at=b.find(function(ie){var Wt=A.get(ie);if(Wt)return Wt.slice(0,yt).every(function(Dt){return Dt})});if(at)return F=at,"break"},vt=H;vt>0;vt--){var re=Z(vt);if(re==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}var Ji={name:"flip",enabled:!0,phase:"main",fn:Zi,requiresIfExists:["offset"],data:{_skip:!1}};function Vn(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function In(e){return[I,tt,Q,_].some(function(t){return e[t]>=0})}function Ki(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Xt(t,{elementContext:"reference"}),a=Xt(t,{altBoundary:!0}),f=Vn(s,r),c=Vn(a,i,o),l=In(f),p=In(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}var Qi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ki};function to(e,t,n){var r=rt(e),i=[_,I].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[_,tt].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function eo(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=wr.reduce(function(l,p){return l[p]=to(p,t.rects,o),l},{}),a=s[t.placement],f=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}var no={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function ro(e){var t=e.state,n=e.name;t.modifiersData[n]=Dr({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var kr={name:"popperOffsets",enabled:!0,phase:"read",fn:ro,data:{}};function io(e){return e==="x"?"y":"x"}function oo(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,f=n.boundary,c=n.rootBoundary,l=n.altBoundary,p=n.padding,g=n.tether,h=g===void 0?!0:g,m=n.tetherOffset,u=m===void 0?0:m,y=Xt(t,{boundary:f,rootBoundary:c,padding:p,altBoundary:l}),d=rt(t.placement),O=Ht(t.placement),v=!O,b=an(d),w=io(b),x=t.modifiersData.popperOffsets,A=t.rects.reference,R=t.rects.popper,F=typeof u=="function"?u(Object.assign({},t.rects,{placement:t.placement})):u,P=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(x){if(o){var S,C=b==="y"?I:_,j=b==="y"?Q:tt,k=b==="y"?"height":"width",N=x[b],B=N+y[C],$=N-y[j],H=h?-R[k]/2:0,Z=O===Tt?A[k]:R[k],vt=O===Tt?-R[k]:-A[k],re=t.elements.arrow,yt=h&&re?sn(re):{width:0,height:0},at=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Rr(),ie=at[C],Wt=at[j],Dt=_t(0,A[k],yt[k]),ei=v?A[k]/2-H-Dt-ie-P.mainAxis:Z-Dt-ie-P.mainAxis,ni=v?-A[k]/2+H+Dt+Wt+P.mainAxis:vt+Dt+Wt+P.mainAxis,Pe=t.elements.arrow&&Qt(t.elements.arrow),ri=Pe?b==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,xn=(S=M==null?void 0:M[b])!=null?S:0,ii=N+ei-xn-ri,oi=N+ni-xn,On=_t(h?ye(B,ii):B,N,h?Et($,oi):$);x[b]=On,D[b]=On-N}if(a){var An,si=b==="x"?I:_,ai=b==="x"?Q:tt,bt=x[w],oe=w==="y"?"height":"width",Rn=bt+y[si],En=bt-y[ai],De=[I,_].indexOf(d)!==-1,Sn=(An=M==null?void 0:M[w])!=null?An:0,Mn=De?Rn:bt-A[oe]-R[oe]-Sn+P.altAxis,Fn=De?bt+A[oe]+R[oe]-Sn-P.altAxis:En,Pn=h&&De?qi(Mn,bt,Fn):_t(h?Mn:Rn,bt,h?Fn:En);x[w]=Pn,D[w]=Pn-bt}t.modifiersData[r]=D}}var so={name:"preventOverflow",enabled:!0,phase:"main",fn:oo,requiresIfExists:["offset"]};function ao(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fo(e){return e===G(e)||!K(e)?fn(e):ao(e)}function co(e){var t=e.getBoundingClientRect(),n=jt(t.width)/e.offsetWidth||1,r=jt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function uo(e,t,n){n===void 0&&(n=!1);var r=K(t),i=K(t)&&co(t),o=mt(t),s=Lt(e,i,n),a={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((ot(t)!=="body"||un(o))&&(a=fo(t)),K(t)?(f=Lt(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=cn(o))),{x:s.left+a.scrollLeft-f.x,y:s.top+a.scrollTop-f.y,width:s.width,height:s.height}}function lo(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var f=t.get(a);f&&i(f)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function ho(e){var t=lo(e);return Mi.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function po(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function go(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _n={placement:"bottom",modifiers:[],strategy:"absolute"};function zn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ln(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?_n:i;return function(s,a,f){f===void 0&&(f=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},_n,o),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},l=[],p=!1,g={state:c,setOptions:function(u){var y=typeof u=="function"?u(c.options):u;m(),c.options=Object.assign({},o,c.options,y),c.scrollParents={reference:Mt(s)?zt(s):s.contextElement?zt(s.contextElement):[],popper:zt(a)};var d=ho(go([].concat(r,c.options.modifiers)));return c.orderedModifiers=d.filter(function(O){return O.enabled}),h(),g.update()},forceUpdate:function(){if(!p){var u=c.elements,y=u.reference,d=u.popper;if(zn(y,d)){c.rects={reference:uo(y,Qt(d),c.options.strategy==="fixed"),popper:sn(d)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(R){return c.modifiersData[R.name]=Object.assign({},R.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var v=c.orderedModifiers[O],b=v.fn,w=v.options,x=w===void 0?{}:w,A=v.name;typeof b=="function"&&(c=b({state:c,options:x,name:A,instance:g})||c)}}}},update:po(function(){return new Promise(function(u){g.forceUpdate(),u(c)})}),destroy:function(){m(),p=!0}};if(!zn(s,a))return g;g.setOptions(f).then(function(u){!p&&f.onFirstUpdate&&f.onFirstUpdate(u)});function h(){c.orderedModifiers.forEach(function(u){var y=u.name,d=u.options,O=d===void 0?{}:d,v=u.effect;if(typeof v=="function"){var b=v({state:c,name:y,instance:g,options:O}),w=function(){};l.push(b||w)}})}function m(){l.forEach(function(u){return u()}),l=[]}return g}}ln();var mo=[Fr,kr,Mr,xr];ln({defaultModifiers:mo});var vo=[Fr,kr,Mr,xr,no,Ji,so,Li,Qi],Zs=ln({defaultModifiers:vo});const Ct=Math.min,St=Math.max,be=Math.round,fe=Math.floor,it=e=>({x:e,y:e}),yo={left:"right",right:"left",bottom:"top",top:"bottom"};function Xe(e,t,n){return St(e,Ct(t,n))}function te(e,t){return typeof e=="function"?e(t):e}function Ft(e){return e.split("-")[0]}function ee(e){return e.split("-")[1]}function qr(e){return e==="x"?"y":"x"}function dn(e){return e==="y"?"height":"width"}function ht(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function hn(e){return qr(ht(e))}function bo(e,t,n){n===void 0&&(n=!1);const r=ee(e),i=hn(e),o=dn(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=we(s)),[s,we(s)]}function wo(e){const t=we(e);return[Ge(e),t,Ge(t)]}function Ge(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Un=["left","right"],Yn=["right","left"],xo=["top","bottom"],Oo=["bottom","top"];function Ao(e,t,n){switch(e){case"top":case"bottom":return n?t?Yn:Un:t?Un:Yn;case"left":case"right":return t?xo:Oo;default:return[]}}function Ro(e,t,n,r){const i=ee(e);let o=Ao(Ft(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Ge)))),o}function we(e){const t=Ft(e);return yo[t]+e.slice(t.length)}function Eo(e){return W({top:0,right:0,bottom:0,left:0},e)}function Nr(e){return typeof e!="number"?Eo(e):{top:e,right:e,bottom:e,left:e}}function xe(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Xn(e,t,n){let{reference:r,floating:i}=e;const o=ht(t),s=hn(t),a=dn(s),f=Ft(t),c=o==="y",l=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,g=r[a]/2-i[a]/2;let h;switch(f){case"top":h={x:l,y:r.y-i.height};break;case"bottom":h={x:l,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-i.width,y:p};break;default:h={x:r.x,y:r.y}}switch(ee(t)){case"start":h[s]-=g*(n&&c?-1:1);break;case"end":h[s]+=g*(n&&c?-1:1);break}return h}function Tr(e,t){return ft(this,null,function*(){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:f}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=te(t,e),m=Nr(h),y=a[g?p==="floating"?"reference":"floating":p],d=xe(yield o.getClippingRect({element:(n=yield o.isElement==null?void 0:o.isElement(y))==null||n?y:y.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:l,strategy:f})),O=p==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=yield o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating),b=(yield o.isElement==null?void 0:o.isElement(v))?(yield o.getScale==null?void 0:o.getScale(v))||{x:1,y:1}:{x:1,y:1},w=xe(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:v,strategy:f}):O);return{top:(d.top-w.top+m.top)/b.y,bottom:(w.bottom-d.bottom+m.bottom)/b.y,left:(d.left-w.left+m.left)/b.x,right:(w.right-d.right+m.right)/b.x}})}const So=50,Mo=(e,t,n)=>ft(null,null,function*(){const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=s.detectOverflow?s:lt(W({},s),{detectOverflow:Tr}),f=yield s.isRTL==null?void 0:s.isRTL(t);let c=yield s.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:p}=Xn(c,r,f),g=r,h=0;const m={};for(let u=0;u<o.length;u++){const y=o[u];if(!y)continue;const{name:d,fn:O}=y,{x:v,y:b,data:w,reset:x}=yield O({x:l,y:p,initialPlacement:r,placement:g,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});l=v!=null?v:l,p=b!=null?b:p,m[d]=W(W({},m[d]),w),x&&h<So&&(h++,typeof x=="object"&&(x.placement&&(g=x.placement),x.rects&&(c=x.rects===!0?yield s.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:l,y:p}=Xn(c,g,f)),u=-1)}return{x:l,y:p,placement:g,strategy:i,middlewareData:m}}),Fo=e=>({name:"arrow",options:e,fn(n){return ft(this,null,function*(){const{x:r,y:i,placement:o,rects:s,platform:a,elements:f,middlewareData:c}=n,{element:l,padding:p=0}=te(e,n)||{};if(l==null)return{};const g=Nr(p),h={x:r,y:i},m=hn(o),u=dn(m),y=yield a.getDimensions(l),d=m==="y",O=d?"top":"left",v=d?"bottom":"right",b=d?"clientHeight":"clientWidth",w=s.reference[u]+s.reference[m]-h[m]-s.floating[u],x=h[m]-s.reference[m],A=yield a.getOffsetParent==null?void 0:a.getOffsetParent(l);let R=A?A[b]:0;(!R||!(yield a.isElement==null?void 0:a.isElement(A)))&&(R=f.floating[b]||s.floating[u]);const F=w/2-x/2,P=R/2-y[u]/2-1,M=Ct(g[O],P),D=Ct(g[v],P),S=M,C=R-y[u]-D,j=R/2-y[u]/2+F,k=Xe(S,j,C),N=!c.arrow&&ee(o)!=null&&j!==k&&s.reference[u]/2-(j<S?M:D)-y[u]/2<0,B=N?j<S?j-S:j-C:0;return{[m]:h[m]+B,data:W({[m]:k,centerOffset:j-k-B},N&&{alignmentOffset:B}),reset:N}})}}),Po=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(n){return ft(this,null,function*(){var r,i;const{placement:o,middlewareData:s,rects:a,initialPlacement:f,platform:c,elements:l}=n,j=te(e,n),{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:y=!0}=j,d=ke(j,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const O=Ft(o),v=ht(f),b=Ft(f)===f,w=yield c.isRTL==null?void 0:c.isRTL(l.floating),x=h||(b||!y?[we(f)]:wo(f)),A=u!=="none";!h&&A&&x.push(...Ro(f,y,u,w));const R=[f,...x],F=yield c.detectOverflow(n,d),P=[];let M=((i=s.flip)==null?void 0:i.overflows)||[];if(p&&P.push(F[O]),g){const k=bo(o,a,w);P.push(F[k[0]],F[k[1]])}if(M=[...M,{placement:o,overflows:P}],!P.every(k=>k<=0)){var D,S;const k=(((D=s.flip)==null?void 0:D.index)||0)+1,N=R[k];if(N&&(!(g==="alignment"?v!==ht(N):!1)||M.every(H=>ht(H.placement)===v?H.overflows[0]>0:!0)))return{data:{index:k,overflows:M},reset:{placement:N}};let B=(S=M.filter($=>$.overflows[0]<=0).sort(($,H)=>$.overflows[1]-H.overflows[1])[0])==null?void 0:S.placement;if(!B)switch(m){case"bestFit":{var C;const $=(C=M.filter(H=>{if(A){const Z=ht(H.placement);return Z===v||Z==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(Z=>Z>0).reduce((Z,vt)=>Z+vt,0)]).sort((H,Z)=>H[1]-Z[1])[0])==null?void 0:C[0];$&&(B=$);break}case"initialPlacement":B=f;break}if(o!==B)return{reset:{placement:B}}}return{}})}}},Do=new Set(["left","top"]);function ko(e,t){return ft(this,null,function*(){const{placement:n,platform:r,elements:i}=e,o=yield r.isRTL==null?void 0:r.isRTL(i.floating),s=Ft(n),a=ee(n),f=ht(n)==="y",c=Do.has(s)?-1:1,l=o&&f?-1:1,p=te(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),f?{x:h*l,y:g*c}:{x:g*c,y:h*l}})}const qo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(n){return ft(this,null,function*(){var r,i;const{x:o,y:s,placement:a,middlewareData:f}=n,c=yield ko(n,e);return a===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:lt(W({},c),{placement:a})}})}}},No=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(n){return ft(this,null,function*(){const{x:r,y:i,placement:o,platform:s}=n,O=te(e,n),{mainAxis:a=!0,crossAxis:f=!1,limiter:c={fn:v=>{let{x:b,y:w}=v;return{x:b,y:w}}}}=O,l=ke(O,["mainAxis","crossAxis","limiter"]),p={x:r,y:i},g=yield s.detectOverflow(n,l),h=ht(Ft(o)),m=qr(h);let u=p[m],y=p[h];if(a){const v=m==="y"?"top":"left",b=m==="y"?"bottom":"right",w=u+g[v],x=u-g[b];u=Xe(w,u,x)}if(f){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=y+g[v],x=y-g[b];y=Xe(w,y,x)}const d=c.fn(lt(W({},n),{[m]:u,[h]:y}));return lt(W({},d),{data:{x:d.x-r,y:d.y-i,enabled:{[m]:a,[h]:f}}})})}}};function Ae(){return typeof window!="undefined"}function Bt(e){return jr(e)?(e.nodeName||"").toLowerCase():"#document"}function X(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function st(e){var t;return(t=(jr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function jr(e){return Ae()?e instanceof Node||e instanceof X(e).Node:!1}function et(e){return Ae()?e instanceof Element||e instanceof X(e).Element:!1}function ut(e){return Ae()?e instanceof HTMLElement||e instanceof X(e).HTMLElement:!1}function Gn(e){return!Ae()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof X(e).ShadowRoot}function ne(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=nt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function To(e){return/^(table|td|th)$/.test(Bt(e))}function Re(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const jo=/transform|translate|scale|rotate|perspective|filter/,Lo=/paint|layout|strict|content/,wt=e=>!!e&&e!=="none";let qe;function pn(e){const t=et(e)?nt(e):e;return wt(t.transform)||wt(t.translate)||wt(t.scale)||wt(t.rotate)||wt(t.perspective)||!gn()&&(wt(t.backdropFilter)||wt(t.filter))||jo.test(t.willChange||"")||Lo.test(t.contain||"")}function Ho(e){let t=gt(e);for(;ut(t)&&!$t(t);){if(pn(t))return t;if(Re(t))return null;t=gt(t)}return null}function gn(){return qe==null&&(qe=typeof CSS!="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qe}function $t(e){return/^(html|body|#document)$/.test(Bt(e))}function nt(e){return X(e).getComputedStyle(e)}function Ee(e){return et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gt(e){if(Bt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gn(e)&&e.host||st(e);return Gn(t)?t.host:t}function Lr(e){const t=gt(e);return $t(t)?e.ownerDocument?e.ownerDocument.body:e.body:ut(t)&&ne(t)?t:Lr(t)}function Gt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Lr(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=X(i);if(o){const a=Ze(s);return t.concat(s,s.visualViewport||[],ne(i)?i:[],a&&n?Gt(a):[])}else return t.concat(i,Gt(i,[],n))}function Ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hr(e){const t=nt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ut(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=be(n)!==o||be(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function mn(e){return et(e)?e:e.contextElement}function qt(e){const t=mn(e);if(!ut(t))return it(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Hr(t);let s=(o?be(n.width):n.width)/r,a=(o?be(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Co=it(0);function Cr(e){const t=X(e);return!gn()||!t.visualViewport?Co:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $o(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==X(e)?!1:t}function Pt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=mn(e);let s=it(1);t&&(r?et(r)&&(s=qt(r)):s=qt(e));const a=$o(o,n,r)?Cr(o):it(0);let f=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,l=i.width/s.x,p=i.height/s.y;if(o){const g=X(o),h=r&&et(r)?X(r):r;let m=g,u=Ze(m);for(;u&&r&&h!==m;){const y=qt(u),d=u.getBoundingClientRect(),O=nt(u),v=d.left+(u.clientLeft+parseFloat(O.paddingLeft))*y.x,b=d.top+(u.clientTop+parseFloat(O.paddingTop))*y.y;f*=y.x,c*=y.y,l*=y.x,p*=y.y,f+=v,c+=b,m=X(u),u=Ze(m)}}return xe({width:l,height:p,x:f,y:c})}function Se(e,t){const n=Ee(e).scrollLeft;return t?t.left+n:Pt(st(e)).left+n}function $r(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Se(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Bo(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=st(r),a=t?Re(t.floating):!1;if(r===s||a&&o)return n;let f={scrollLeft:0,scrollTop:0},c=it(1);const l=it(0),p=ut(r);if((p||!p&&!o)&&((Bt(r)!=="body"||ne(s))&&(f=Ee(r)),p)){const h=Pt(r);c=qt(r),l.x=h.x+r.clientLeft,l.y=h.y+r.clientTop}const g=s&&!p&&!o?$r(s,f):it(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+l.x+g.x,y:n.y*c.y-f.scrollTop*c.y+l.y+g.y}}function Wo(e){return Array.from(e.getClientRects())}function Vo(e){const t=st(e),n=Ee(e),r=e.ownerDocument.body,i=St(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=St(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Se(e);const a=-n.scrollTop;return nt(r).direction==="rtl"&&(s+=St(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}const Zn=25;function Io(e,t){const n=X(e),r=st(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,f=0;if(i){o=i.width,s=i.height;const l=gn();(!l||l&&t==="fixed")&&(a=i.offsetLeft,f=i.offsetTop)}const c=Se(r);if(c<=0){const l=r.ownerDocument,p=l.body,g=getComputedStyle(p),h=l.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,m=Math.abs(r.clientWidth-p.clientWidth-h);m<=Zn&&(o-=m)}else c<=Zn&&(o+=c);return{width:o,height:s,x:a,y:f}}function _o(e,t){const n=Pt(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=ut(e)?qt(e):it(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,f=i*o.x,c=r*o.y;return{width:s,height:a,x:f,y:c}}function Jn(e,t,n){let r;if(t==="viewport")r=Io(e,n);else if(t==="document")r=Vo(st(e));else if(et(t))r=_o(t,n);else{const i=Cr(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return xe(r)}function Br(e,t){const n=gt(e);return n===t||!et(n)||$t(n)?!1:nt(n).position==="fixed"||Br(n,t)}function zo(e,t){const n=t.get(e);if(n)return n;let r=Gt(e,[],!1).filter(a=>et(a)&&Bt(a)!=="body"),i=null;const o=nt(e).position==="fixed";let s=o?gt(e):e;for(;et(s)&&!$t(s);){const a=nt(s),f=pn(s);!f&&a.position==="fixed"&&(i=null),(o?!f&&!i:!f&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ne(s)&&!f&&Br(e,s))?r=r.filter(l=>l!==s):i=a,s=gt(s)}return t.set(e,r),r}function Uo(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Re(t)?[]:zo(t,this._c):[].concat(n),r],a=Jn(t,s[0],i);let f=a.top,c=a.right,l=a.bottom,p=a.left;for(let g=1;g<s.length;g++){const h=Jn(t,s[g],i);f=St(h.top,f),c=Ct(h.right,c),l=Ct(h.bottom,l),p=St(h.left,p)}return{width:c-p,height:l-f,x:p,y:f}}function Yo(e){const{width:t,height:n}=Hr(e);return{width:t,height:n}}function Xo(e,t,n){const r=ut(t),i=st(t),o=n==="fixed",s=Pt(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const f=it(0);function c(){f.x=Se(i)}if(r||!r&&!o)if((Bt(t)!=="body"||ne(i))&&(a=Ee(t)),r){const h=Pt(t,!0,o,t);f.x=h.x+t.clientLeft,f.y=h.y+t.clientTop}else i&&c();o&&!r&&i&&c();const l=i&&!r&&!o?$r(i,a):it(0),p=s.left+a.scrollLeft-f.x-l.x,g=s.top+a.scrollTop-f.y-l.y;return{x:p,y:g,width:s.width,height:s.height}}function Ne(e){return nt(e).position==="static"}function Kn(e,t){if(!ut(e)||nt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return st(e)===n&&(n=n.ownerDocument.body),n}function Wr(e,t){const n=X(e);if(Re(e))return n;if(!ut(e)){let i=gt(e);for(;i&&!$t(i);){if(et(i)&&!Ne(i))return i;i=gt(i)}return n}let r=Kn(e,t);for(;r&&To(r)&&Ne(r);)r=Kn(r,t);return r&&$t(r)&&Ne(r)&&!pn(r)?n:r||Ho(e)||n}const Go=function(e){return ft(this,null,function*(){const t=this.getOffsetParent||Wr,n=this.getDimensions,r=yield n(e.floating);return{reference:Xo(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};function Zo(e){return nt(e).direction==="rtl"}const Jo={convertOffsetParentRelativeRectToViewportRelativeRect:Bo,getDocumentElement:st,getClippingRect:Uo,getOffsetParent:Wr,getElementRects:Go,getClientRects:Wo,getDimensions:Yo,getScale:qt,isElement:et,isRTL:Zo};function Vr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ko(e,t){let n=null,r;const i=st(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,f){a===void 0&&(a=!1),f===void 0&&(f=1),o();const c=e.getBoundingClientRect(),{left:l,top:p,width:g,height:h}=c;if(a||t(),!g||!h)return;const m=fe(p),u=fe(i.clientWidth-(l+g)),y=fe(i.clientHeight-(p+h)),d=fe(l),v={rootMargin:-m+"px "+-u+"px "+-y+"px "+-d+"px",threshold:St(0,Ct(1,f))||1};let b=!0;function w(x){const A=x[0].intersectionRatio;if(A!==f){if(!b)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!Vr(c,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(w,lt(W({},v),{root:i.ownerDocument}))}catch(x){n=new IntersectionObserver(w,v)}n.observe(e)}return s(!0),o}function Js(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,c=mn(e),l=i||o?[...c?Gt(c):[],...t?Gt(t):[]]:[];l.forEach(d=>{i&&d.addEventListener("scroll",n,{passive:!0}),o&&d.addEventListener("resize",n)});const p=c&&a?Ko(c,n):null;let g=-1,h=null;s&&(h=new ResizeObserver(d=>{let[O]=d;O&&O.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),n()}),c&&!f&&h.observe(c),t&&h.observe(t));let m,u=f?Pt(e):null;f&&y();function y(){const d=Pt(e);u&&!Vr(u,d)&&n(),u=d,m=requestAnimationFrame(y)}return n(),()=>{var d;l.forEach(O=>{i&&O.removeEventListener("scroll",n),o&&O.removeEventListener("resize",n)}),p==null||p(),(d=h)==null||d.disconnect(),h=null,f&&cancelAnimationFrame(m)}}const Ks=Tr,Qs=qo,ta=No,ea=Po,na=Fo,ra=(e,t,n)=>{const r=new Map,i=W({platform:Jo},n),o=lt(W({},i.platform),{_c:r});return Mo(e,t,lt(W({},i),{platform:o}))};function At(){return At=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},At.apply(this,arguments)}function Qo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zt(e,t)}function Je(e){return Je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Je(e)}function Zt(e,t){return Zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zt(e,t)}function ts(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function ve(e,t,n){return ts()?ve=Reflect.construct.bind():ve=function(i,o,s){var a=[null];a.push.apply(a,o);var f=Function.bind.apply(i,a),c=new f;return s&&Zt(c,s.prototype),c},ve.apply(null,arguments)}function es(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ke(e){var t=typeof Map=="function"?new Map:void 0;return Ke=function(r){if(r===null||!es(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return ve(r,arguments,Je(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Zt(i,r)},Ke(e)}var ns=/%[sdj%]/g,rs=function(){};function Qe(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var s=e.replace(ns,function(a){if(a==="%%")return"%";if(i>=o)return a;switch(a){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(f){return"[Circular]"}break;default:return a}});return s}return e}function is(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function T(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||is(t)&&typeof e=="string"&&!e)}function os(e,t,n){var r=[],i=0,o=e.length;function s(a){r.push.apply(r,a||[]),i++,i===o&&n(r)}e.forEach(function(a){t(a,s)})}function Qn(e,t,n){var r=0,i=e.length;function o(s){if(s&&s.length){n(s);return}var a=r;r=r+1,a<i?t(e[a],o):n([])}o([])}function ss(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var tr=(function(e){Qo(t,e);function t(n,r){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return t})(Ke(Error));function as(e,t,n,r,i){if(t.first){var o=new Promise(function(g,h){var m=function(d){return r(d),d.length?h(new tr(d,Qe(d))):g(i)},u=ss(e);Qn(u,n,m)});return o.catch(function(g){return g}),o}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],a=Object.keys(e),f=a.length,c=0,l=[],p=new Promise(function(g,h){var m=function(y){if(l.push.apply(l,y),c++,c===f)return r(l),l.length?h(new tr(l,Qe(l))):g(i)};a.length||(r(l),g(i)),a.forEach(function(u){var y=e[u];s.indexOf(u)!==-1?Qn(y,n,m):os(y,n,m)})});return p.catch(function(g){return g}),p}function fs(e){return!!(e&&e.message!==void 0)}function cs(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function er(e,t){return function(n){var r;return e.fullFields?r=cs(t,e.fullFields):r=t[n.field||e.fullField],fs(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function nr(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=At({},e[n],r):e[n]=r}}return e}var Ir=function(t,n,r,i,o,s){t.required&&(!r.hasOwnProperty(t.field)||T(n,s||t.type))&&i.push(Y(o.messages.required,t.fullField))},us=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(Y(o.messages.whitespace,t.fullField))},ce,ls=(function(){if(ce)return ce;var e="[a-fA-F\\d:]",t=function(b){return b&&b.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
|
|
15
|
-
(?:
|
|
16
|
-
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
17
|
-
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
18
|
-
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|
19
|
-
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|
20
|
-
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|
21
|
-
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|
22
|
-
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
23
|
-
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
24
|
-
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
25
|
-
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),s=new RegExp("^"+n+"$"),a=new RegExp("^"+i+"$"),f=function(b){return b&&b.exact?o:new RegExp("(?:"+t(b)+n+t(b)+")|(?:"+t(b)+i+t(b)+")","g")};f.v4=function(v){return v&&v.exact?s:new RegExp(""+t(v)+n+t(v),"g")},f.v6=function(v){return v&&v.exact?a:new RegExp(""+t(v)+i+t(v),"g")};var c="(?:(?:[a-z]+:)?//)",l="(?:\\S+(?::\\S*)?@)?",p=f.v4().source,g=f.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",u="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",d='(?:[/?#][^\\s"]*)?',O="(?:"+c+"|www\\.)"+l+"(?:localhost|"+p+"|"+g+"|"+h+m+u+")"+y+d;return ce=new RegExp("(?:^"+O+"$)","i"),ce}),rr={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},It={integer:function(t){return It.number(t)&&parseInt(t,10)===t},float:function(t){return It.number(t)&&!It.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!It.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(rr.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ls())},hex:function(t){return typeof t=="string"&&!!t.match(rr.hex)}},ds=function(t,n,r,i,o){if(t.required&&n===void 0){Ir(t,n,r,i,o);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;s.indexOf(a)>-1?It[a](n)||i.push(Y(o.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&i.push(Y(o.messages.types[a],t.fullField,t.type))},hs=function(t,n,r,i,o){var s=typeof t.len=="number",a=typeof t.min=="number",f=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=n,p=null,g=typeof n=="number",h=typeof n=="string",m=Array.isArray(n);if(g?p="number":h?p="string":m&&(p="array"),!p)return!1;m&&(l=n.length),h&&(l=n.replace(c,"_").length),s?l!==t.len&&i.push(Y(o.messages[p].len,t.fullField,t.len)):a&&!f&&l<t.min?i.push(Y(o.messages[p].min,t.fullField,t.min)):f&&!a&&l>t.max?i.push(Y(o.messages[p].max,t.fullField,t.max)):a&&f&&(l<t.min||l>t.max)&&i.push(Y(o.messages[p].range,t.fullField,t.min,t.max))},kt="enum",ps=function(t,n,r,i,o){t[kt]=Array.isArray(t[kt])?t[kt]:[],t[kt].indexOf(n)===-1&&i.push(Y(o.messages[kt],t.fullField,t[kt].join(", ")))},gs=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Y(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||i.push(Y(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},E={required:Ir,whitespace:us,type:ds,range:hs,enum:ps,pattern:gs},ms=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(T(n,"string")&&!t.required)return r();E.required(t,n,i,s,o,"string"),T(n,"string")||(E.type(t,n,i,s,o),E.range(t,n,i,s,o),E.pattern(t,n,i,s,o),t.whitespace===!0&&E.whitespace(t,n,i,s,o))}r(s)},vs=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(T(n)&&!t.required)return r();E.required(t,n,i,s,o),n!==void 0&&E.type(t,n,i,s,o)}r(s)},ys=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),T(n)&&!t.required)return r();E.required(t,n,i,s,o),n!==void 0&&(E.type(t,n,i,s,o),E.range(t,n,i,s,o))}r(s)},bs=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(T(n)&&!t.required)return r();E.required(t,n,i,s,o),n!==void 0&&E.type(t,n,i,s,o)}r(s)},ws=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(T(n)&&!t.required)return r();E.required(t,n,i,s,o),T(n)||E.type(t,n,i,s,o)}r(s)},xs=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(T(n)&&!t.required)return r();E.required(t,n,i,s,o),n!==void 0&&(E.type(t,n,i,s,o),E.range(t,n,i,s,o))}r(s)},Os=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(T(n)&&!t.required)return r();E.required(t,n,i,s,o),n!==void 0&&(E.type(t,n,i,s,o),E.range(t,n,i,s,o))}r(s)},As=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();E.required(t,n,i,s,o,"array"),n!=null&&(E.type(t,n,i,s,o),E.range(t,n,i,s,o))}r(s)},Rs=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(T(n)&&!t.required)return r();E.required(t,n,i,s,o),n!==void 0&&E.type(t,n,i,s,o)}r(s)},Es="enum",Ss=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(T(n)&&!t.required)return r();E.required(t,n,i,s,o),n!==void 0&&E[Es](t,n,i,s,o)}r(s)},Ms=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(T(n,"string")&&!t.required)return r();E.required(t,n,i,s,o),T(n,"string")||E.pattern(t,n,i,s,o)}r(s)},Fs=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(T(n,"date")&&!t.required)return r();if(E.required(t,n,i,s,o),!T(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),E.type(t,f,i,s,o),f&&E.range(t,f.getTime(),i,s,o)}}r(s)},Ps=function(t,n,r,i,o){var s=[],a=Array.isArray(n)?"array":typeof n;E.required(t,n,i,s,o,a),r(s)},Te=function(t,n,r,i,o){var s=t.type,a=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(T(n,s)&&!t.required)return r();E.required(t,n,i,a,o,s),T(n,s)||E.type(t,n,i,a,o)}r(a)},Ds=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(T(n)&&!t.required)return r();E.required(t,n,i,s,o)}r(s)},Ut={string:ms,method:vs,number:ys,boolean:bs,regexp:ws,integer:xs,float:Os,array:As,object:Rs,enum:Ss,pattern:Ms,date:Fs,url:Te,hex:Te,email:Te,required:Ps,any:Ds};function tn(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var en=tn(),Me=(function(){function e(n){this.rules=null,this._messages=en,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var s=r[o];i.rules[o]=Array.isArray(s)?s:[s]})},t.messages=function(r){return r&&(this._messages=nr(tn(),r)),this._messages},t.validate=function(r,i,o){var s=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var a=r,f=i,c=o;if(typeof f=="function"&&(c=f,f={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function l(u){var y=[],d={};function O(b){if(Array.isArray(b)){var w;y=(w=y).concat.apply(w,b)}else y.push(b)}for(var v=0;v<u.length;v++)O(u[v]);y.length?(d=Qe(y),c(y,d)):c(null,a)}if(f.messages){var p=this.messages();p===en&&(p=tn()),nr(p,f.messages),f.messages=p}else f.messages=this.messages();var g={},h=f.keys||Object.keys(this.rules);h.forEach(function(u){var y=s.rules[u],d=a[u];y.forEach(function(O){var v=O;typeof v.transform=="function"&&(a===r&&(a=At({},a)),d=a[u]=v.transform(d)),typeof v=="function"?v={validator:v}:v=At({},v),v.validator=s.getValidationMethod(v),v.validator&&(v.field=u,v.fullField=v.fullField||u,v.type=s.getType(v),g[u]=g[u]||[],g[u].push({rule:v,value:d,source:a,field:u}))})});var m={};return as(g,f,function(u,y){var d=u.rule,O=(d.type==="object"||d.type==="array")&&(typeof d.fields=="object"||typeof d.defaultField=="object");O=O&&(d.required||!d.required&&u.value),d.field=u.field;function v(x,A){return At({},A,{fullField:d.fullField+"."+x,fullFields:d.fullFields?[].concat(d.fullFields,[x]):[x]})}function b(x){x===void 0&&(x=[]);var A=Array.isArray(x)?x:[x];!f.suppressWarning&&A.length&&e.warning("async-validator:",A),A.length&&d.message!==void 0&&(A=[].concat(d.message));var R=A.map(er(d,a));if(f.first&&R.length)return m[d.field]=1,y(R);if(!O)y(R);else{if(d.required&&!u.value)return d.message!==void 0?R=[].concat(d.message).map(er(d,a)):f.error&&(R=[f.error(d,Y(f.messages.required,d.field))]),y(R);var F={};d.defaultField&&Object.keys(u.value).map(function(D){F[D]=d.defaultField}),F=At({},F,u.rule.fields);var P={};Object.keys(F).forEach(function(D){var S=F[D],C=Array.isArray(S)?S:[S];P[D]=C.map(v.bind(null,D))});var M=new e(P);M.messages(f.messages),u.rule.options&&(u.rule.options.messages=f.messages,u.rule.options.error=f.error),M.validate(u.value,u.rule.options||f,function(D){var S=[];R&&R.length&&S.push.apply(S,R),D&&D.length&&S.push.apply(S,D),y(S.length?S:null)})}}var w;if(d.asyncValidator)w=d.asyncValidator(d,u.value,b,u.source,f);else if(d.validator){try{w=d.validator(d,u.value,b,u.source,f)}catch(x){console.error==null||console.error(x),f.suppressValidatorError||setTimeout(function(){throw x},0),b(x.message)}w===!0?b():w===!1?b(typeof d.message=="function"?d.message(d.fullField||d.field):d.message||(d.fullField||d.field)+" fails"):w instanceof Array?b(w):w instanceof Error&&b(w.message)}w&&w.then&&w.then(function(){return b()},function(x){return b(x)})},function(u){l(u)},a)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Ut.hasOwnProperty(r.type))throw new Error(Y("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),o=i.indexOf("message");return o!==-1&&i.splice(o,1),i.length===1&&i[0]==="required"?Ut.required:Ut[this.getType(r)]||void 0},e})();Me.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ut[t]=n};Me.warning=rs;Me.messages=en;Me.validators=Ut;function L(e,t){ks(e)&&(e="100%");const n=qs(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ue(e){return Math.min(1,Math.max(0,e))}function ks(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function qs(e){return typeof e=="string"&&e.indexOf("%")!==-1}function _r(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function le(e){return Number(e)<=1?`${Number(e)*100}%`:e}function Rt(e){return e.length===1?"0"+e:String(e)}function Ns(e,t,n){return{r:L(e,255)*255,g:L(t,255)*255,b:L(n,255)*255}}function ir(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);const r=Math.max(e,t,n),i=Math.min(e,t,n);let o=0,s=0;const a=(r+i)/2;if(r===i)s=0,o=0;else{const f=r-i;switch(s=a>.5?f/(2-r-i):f/(r+i),r){case e:o=(t-n)/f+(t<n?6:0);break;case t:o=(n-e)/f+2;break;case n:o=(e-t)/f+4;break}o/=6}return{h:o,s,l:a}}function je(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ts(e,t,n){let r,i,o;if(e=L(e,360),t=L(t,100),n=L(n,100),t===0)i=n,o=n,r=n;else{const s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;r=je(a,s,e+1/3),i=je(a,s,e),o=je(a,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function or(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);const r=Math.max(e,t,n),i=Math.min(e,t,n);let o=0;const s=r,a=r-i,f=r===0?0:a/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/a+(t<n?6:0);break;case t:o=(n-e)/a+2;break;case n:o=(e-t)/a+4;break}o/=6}return{h:o,s:f,v:s}}function js(e,t,n){e=L(e,360)*6,t=L(t,100),n=L(n,100);const r=Math.floor(e),i=e-r,o=n*(1-t),s=n*(1-i*t),a=n*(1-(1-i)*t),f=r%6,c=[n,s,o,o,a,n][f],l=[a,n,n,s,o,o][f],p=[o,o,a,n,n,s][f];return{r:c*255,g:l*255,b:p*255}}function sr(e,t,n,r){const i=[Rt(Math.round(e).toString(16)),Rt(Math.round(t).toString(16)),Rt(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Ls(e,t,n,r,i){const o=[Rt(Math.round(e).toString(16)),Rt(Math.round(t).toString(16)),Rt(Math.round(n).toString(16)),Rt(Cs(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Hs(e,t,n,r){const i=e/100,o=t/100,s=n/100,a=r/100,f=255*(1-i)*(1-a),c=255*(1-o)*(1-a),l=255*(1-s)*(1-a);return{r:f,g:c,b:l}}function ar(e,t,n){let r=1-e/255,i=1-t/255,o=1-n/255,s=Math.min(r,i,o);return s===1?(r=0,i=0,o=0):(r=(r-s)/(1-s)*100,i=(i-s)/(1-s)*100,o=(o-s)/(1-s)*100),s*=100,{c:Math.round(r),m:Math.round(i),y:Math.round(o),k:Math.round(s)}}function Cs(e){return Math.round(parseFloat(e)*255).toString(16)}function fr(e){return U(e)/255}function U(e){return parseInt(e,16)}function $s(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}const nn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Bs(e){let t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,a=!1;return typeof e=="string"&&(e=Is(e)),typeof e=="object"&&(z(e.r)&&z(e.g)&&z(e.b)?(t=Ns(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):z(e.h)&&z(e.s)&&z(e.v)?(r=le(e.s),i=le(e.v),t=js(e.h,r,i),s=!0,a="hsv"):z(e.h)&&z(e.s)&&z(e.l)?(r=le(e.s),o=le(e.l),t=Ts(e.h,r,o),s=!0,a="hsl"):z(e.c)&&z(e.m)&&z(e.y)&&z(e.k)&&(t=Hs(e.c,e.m,e.y,e.k),s=!0,a="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=_r(n),{ok:s,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}const Ws="[-\\+]?\\d+%?",Vs="[-\\+]?\\d*\\.\\d+%?",pt="(?:"+Vs+")|(?:"+Ws+")",Le="[\\s|\\(]+("+pt+")[,|\\s]+("+pt+")[,|\\s]+("+pt+")\\s*\\)?",de="[\\s|\\(]+("+pt+")[,|\\s]+("+pt+")[,|\\s]+("+pt+")[,|\\s]+("+pt+")\\s*\\)?",J={CSS_UNIT:new RegExp(pt),rgb:new RegExp("rgb"+Le),rgba:new RegExp("rgba"+de),hsl:new RegExp("hsl"+Le),hsla:new RegExp("hsla"+de),hsv:new RegExp("hsv"+Le),hsva:new RegExp("hsva"+de),cmyk:new RegExp("cmyk"+de),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Is(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=!1;if(nn[e])e=nn[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let n=J.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=J.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=J.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=J.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=J.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=J.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=J.cmyk.exec(e),n?{c:n[1],m:n[2],y:n[3],k:n[4]}:(n=J.hex8.exec(e),n?{r:U(n[1]),g:U(n[2]),b:U(n[3]),a:fr(n[4]),format:t?"name":"hex8"}:(n=J.hex6.exec(e),n?{r:U(n[1]),g:U(n[2]),b:U(n[3]),format:t?"name":"hex"}:(n=J.hex4.exec(e),n?{r:U(n[1]+n[1]),g:U(n[2]+n[2]),b:U(n[3]+n[3]),a:fr(n[4]+n[4]),format:t?"name":"hex8"}:(n=J.hex3.exec(e),n?{r:U(n[1]+n[1]),g:U(n[2]+n[2]),b:U(n[3]+n[3]),format:t?"name":"hex"}:!1))))))))))}function z(e){return typeof e=="number"?!Number.isNaN(e):J.CSS_UNIT.test(e)}class q{constructor(t="",n={}){var i;if(t instanceof q)return t;typeof t=="number"&&(t=$s(t)),this.originalInput=t;const r=Bs(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=n.format)!=null?i:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3}getLuminance(){const t=this.toRgb();let n,r,i;const o=t.r/255,s=t.g/255,a=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i}getAlpha(){return this.a}setAlpha(t){return this.a=_r(t),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:t}=this.toHsl();return t===0}toHsv(){const t=or(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}}toHsvString(){const t=or(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?`hsv(${n}, ${r}%, ${i}%)`:`hsva(${n}, ${r}%, ${i}%, ${this.roundA})`}toHsl(){const t=ir(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}}toHslString(){const t=ir(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?`hsl(${n}, ${r}%, ${i}%)`:`hsla(${n}, ${r}%, ${i}%, ${this.roundA})`}toHex(t=!1){return sr(this.r,this.g,this.b,t)}toHexString(t=!1){return"#"+this.toHex(t)}toHex8(t=!1){return Ls(this.r,this.g,this.b,this.a,t)}toHex8String(t=!1){return"#"+this.toHex8(t)}toHexShortString(t=!1){return this.a===1?this.toHexString(t):this.toHex8String(t)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${this.roundA})`}toPercentageRgb(){const t=n=>`${Math.round(L(n,255)*100)}%`;return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}}toPercentageRgbString(){const t=n=>Math.round(L(n,255)*100);return this.a===1?`rgb(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%)`:`rgba(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%, ${this.roundA})`}toCmyk(){return W({},ar(this.r,this.g,this.b))}toCmykString(){const{c:t,m:n,y:r,k:i}=ar(this.r,this.g,this.b);return`cmyk(${t}, ${n}, ${r}, ${i})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const t="#"+sr(this.r,this.g,this.b,!1);for(const[n,r]of Object.entries(nn))if(t===r)return n;return!1}toString(t){const n=!!t;t=t!=null?t:this.format;let r=!1;const i=this.a<1&&this.a>=0;return!n&&i&&(t.startsWith("hex")||t==="name")?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),t==="cmyk"&&(r=this.toCmykString()),r||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new q(this.toString())}lighten(t=10){const n=this.toHsl();return n.l+=t/100,n.l=ue(n.l),new q(n)}brighten(t=10){const n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new q(n)}darken(t=10){const n=this.toHsl();return n.l-=t/100,n.l=ue(n.l),new q(n)}tint(t=10){return this.mix("white",t)}shade(t=10){return this.mix("black",t)}desaturate(t=10){const n=this.toHsl();return n.s-=t/100,n.s=ue(n.s),new q(n)}saturate(t=10){const n=this.toHsl();return n.s+=t/100,n.s=ue(n.s),new q(n)}greyscale(){return this.desaturate(100)}spin(t){const n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new q(n)}mix(t,n=50){const r=this.toRgb(),i=new q(t).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new q(s)}analogous(t=6,n=30){const r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new q(r));return o}complement(){const t=this.toHsl();return t.h=(t.h+180)%360,new q(t)}monochromatic(t=6){const n=this.toHsv(),{h:r}=n,{s:i}=n;let{v:o}=n;const s=[],a=1/t;for(;t--;)s.push(new q({h:r,s:i,v:o})),o=(o+a)%1;return s}splitcomplement(){const t=this.toHsl(),{h:n}=t;return[this,new q({h:(n+72)%360,s:t.s,l:t.l}),new q({h:(n+216)%360,s:t.s,l:t.l})]}onBackground(t){const n=this.toRgb(),r=new q(t).toRgb(),i=n.a+r.a*(1-n.a);return new q({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(t){const n=this.toHsl(),{h:r}=n,i=[this],o=360/t;for(let s=1;s<t;s++)i.push(new q({h:(r+s*o)%360,s:n.s,l:n.l}));return i}equals(t){const n=new q(t);return this.format==="cmyk"||n.format==="cmyk"?this.toCmykString()===n.toCmykString():this.toRgbString()===n.toRgbString()}}var cr=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function _s(e,t){return!!(e===t||cr(e)&&cr(t))}function zs(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!_s(e[n],t[n]))return!1;return!0}function ia(e,t){t===void 0&&(t=zs);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var s=e.apply(this,i);return n={lastResult:s,lastArgs:i,lastThis:this},s}return r.clear=function(){n=null},r}var Nt=null,He=null,dt=null,ur="z-index-manage",xt=null,lr="z-index-style",zr="m",Ur="s",Jt={m:1e3,s:1e3};function vn(){return Nt||typeof document!="undefined"&&(Nt=document),Nt}function Yr(){return Nt&&!He&&(He=Nt.body||Nt.getElementsByTagName("body")[0]),He}function Us(){var e=0,t=vn();if(t){var n=Yr();if(n)for(var r=n.getElementsByTagName("*"),i=0;i<r.length;i++){var o=r[i];if(o&&o.style&&o.nodeType===1){var s=o.style.zIndex;s&&/^\d+$/.test(s)&&(e=Math.max(e,Number(s)))}}}return e}function Ys(){if(!xt){var e=vn();e&&(xt=e.getElementById(lr),xt||(xt=e.createElement("style"),xt.id=lr,e.getElementsByTagName("head")[0].appendChild(xt)))}return xt}function Xr(){var e=Ys();if(e){var t="--dom-",n="-z-index";e.innerHTML=":root{"+t+"main"+n+":"+Fe()+";"+t+"sub"+n+":"+wn()+"}"}}function Gr(){if(!dt){var e=vn();if(e&&(dt=e.getElementById(ur),!dt)){var t=Yr();t&&(dt=e.createElement("div"),dt.id=ur,dt.style.display="none",t.appendChild(dt),yn(Jt.m),bn(Jt.s))}}return dt}function Zr(e){return function(t){if(t){t=Number(t),Jt[e]=t;var n=Gr();n&&(n.dataset?n.dataset[e]=t+"":n.setAttribute("data-"+e,t+""))}return Xr(),Jt[e]}}var yn=Zr(zr);function Jr(e,t){return function(r){var i,o=Gr();if(o){var s=o.dataset?o.dataset[e]:o.getAttribute("data-"+e);s&&(i=Number(s))}return i||(i=Jt[e]),r?Number(r)<i?t():r:i}}var Fe=Jr(zr,Kr);function Kr(){return yn(Fe()+1)}var bn=Zr(Ur),Qr=Jr(Ur,ti);function wn(){return Fe()+Qr()}function ti(){return bn(Qr()+1),wn()}var oa={setCurrent:yn,getCurrent:Fe,getNext:Kr,setSubCurrent:bn,getSubCurrent:wn,getSubNext:ti,getMax:Us};Xr();export{oa as D,wr as E,Me as S,q as T,Gs as Y,Js as a,na as b,ra as c,Ks as d,ea as f,ia as m,Qs as o,ta as s,Zs as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var T=Object.defineProperty;var S=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?T(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,l=(t,a)=>{for(var s in a||(a={}))u.call(a,s)&&g(t,s,a[s]);if(S)for(var s of S(a))I.call(a,s)&&g(t,s,a[s]);return t};var _=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var p=(t,a,s)=>new Promise((o,n)=>{var e=r=>{try{i(s.next(r))}catch(E){n(E)}},c=r=>{try{i(s.throw(r))}catch(E){n(E)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as d}from"./vue-fMktb-5o.js";import{X as m,P as A,s as f,y as h,f as V,c as P,r as b,a as M,e as R,b as y,n as D,l as N,g as K,h as L,i as k,x as B,k as x,m as w,p as H,K as W,q as Y,R as v,t as G,u as F,W as C,v as U,w as X,z as $,A as j,C as q,E as z,F as J,G as Z,H as Q,I as aa,S as sa,L as ea,M as ta,N as ra,V as na,O as ia,_ as oa,$ as Ea,a0 as _a,a1 as la,a2 as ca,a3 as ga,a4 as Sa,a5 as pa,a6 as Oa,a7 as Ta,a8 as ua,a9 as Ia,aa as da,ab as ma,ac as Aa,ad as fa,ae as ha,af as Va,ag as Pa,ah as ba,ai as Ma,aj as Ra,ak as ya,al as Da,am as Na,an as Ka,ao as La,ap as ka,aq as Ba,ar as xa,as as wa,at as Ha,au as Wa,av as Ya,aw as va,ax as Ga,ay as Fa,az as Ca,o as Ua,aA as Xa,aB as $a,aC as ja,aD as qa,aE as za,aF as Ja,aG as Za,aH as Qa}from"./Editor-BGOUCiNb-B7CQmaQI.js";import{E as as,a as ss,b as es}from"./element-plus-_gYoEp33.js";import"./dayjs-CxR8wwn9.js";const ts=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:m,ActionMenu:A,Assets:f,Binder:h,Box:V,CodeIncrementalUpdater:P,DEVTOOLS_DEP:b,DepsManager:M,Designer:R,EVENT_MODIFIERS:y,Editor:D,Engine:N,EventBinder:K,GET_TOKENS_LINK:L,HOT_KEYS_DEP:k,Icon:B,Item:x,KEYBOARD_EVENT_LIST:w,MAX_TOKENS:H,MOBILE_SIZE:W,MOUSE_EVENT_LIST:Y,NAME_REGEX:v,NPM_REGISTRY_URL:G,OpenApi:F,PAD_SIZE:C,Panel:U,REPORT_API:X,RegionType:$,RegionWrapper:j,Renderer:q,SAVE_BLOCK_FILE_FINISH:z,SESSION_ID_KEY:J,STATE_KEY:Z,SetterManager:Q,SetterView:aa,SetterWrapper:sa,Simulator:ea,Skeleton:ta,SkeletonWrapper:ra,SlotsPicker:na,State:ia,TOOL_CONFIGS:oa,Tabs:Ea,ToolRegistry:_a,VERSION_REGEX:la,VTJ_DESIGNER_VERSION:ca,VUE_DEVTOOLS_FRAME_STATE_KEY:ga,VUE_DEVTOOLS_OVERLAY_PATH:Sa,VUE_DEVTOOLS_PATH:pa,VariableBinder:Oa,Viewer:Ta,Viewport:ua,WidgetGroup:Ia,WidgetManager:da,WidgetWrapper:ma,alert:Aa,builtInDeps:fa,builtInMaterials:ha,builtInSetters:Va,builtInWidgets:Pa,codeIncrementalUpdater:ba,confirm:Ma,createSlotsPicker:Ra,defaultSetter:ya,depsManager:Da,engineKey:Na,expressionValidate:Ka,getClassProperties:La,loading:ka,message:Ba,normalizedStyle:xa,notify:wa,proxyContext:Ha,readJsonFile:Wa,regions:Ya,setterManager:va,setters:Ga,upgradeVersion:Fa,useEngine:Ca,widgetManager:Ua,widgets:Xa},Symbol.toStringTag,{value:"Module"}));class _s{constructor(a){_(this,"urls",[]);_(this,"library","");_(this,"params",[]);_(this,"__BASE_PATH__","/");this.config=a;const s=l(l(l({},ja),ts),$a),o={Vue:d,__VTJ_PRO__:s};for(const[E,O]of Object.entries(o))window[E]=O;const{extension:n,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:i,params:r=[]}=n||{};i&&(this.urls=c,this.library=i,this.params=r,this.__BASE_PATH__=e)}load(){return p(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>qa(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>za(e)).map(e=>`${s}${e}`);if(Ja(o),n.length){const e=yield Za(n,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask","auth"];return Qa(this.config,a)}}function ls(){return es.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function cs(t,a="",s="warning"){ss({title:a,message:t,type:s})}function gs(t,a){return as.alert(t,a)}export{_s as E,gs as a,ls as l,cs as n};
|