From af79225ab730ee1b1845e9f7426b08337452b95f Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Sun, 26 Jun 2022 05:39:58 +0000 Subject: [PATCH] deploy: 486635ef7675226a17335aa49a6d0c80880bfa0b --- .nojekyll | 0 1014.483df344.async.js | 1 + 1151.d05792ff.async.js | 1 + 1946.3b263e70.chunk.css | 1 + 2077.802cd47b.async.js | 7 + 3233.26a62287.chunk.css | 1 + 3233.57c816f6.async.js | 1 + 3794.092283b9.async.js | 1 + 3794.683cd53f.chunk.css | 1 + 404.html | 318 + 4205.234addc2.async.js | 1 + 4205.31aec7ec.chunk.css | 1 + 4553.14f699c6.async.js | 1 + 4691.946dc368.async.js | 7910 +++++++++++++++++ 4738.15d70875.async.js | 1 + 4827.6dabd3a7.chunk.css | 1 + 5362.be0836e3.async.js | 1 + 562.e1ee52f3.async.js | 1 + 5883.0f7d82e2.async.js | 27 + 5883.a4a421fe.chunk.css | 1 + 609.591239b2.async.js | 37 + 609.fbad9b4a.chunk.css | 1 + 6743.a7bbf788.async.js | 2 + 6799.3682cfe0.async.js | 1 + 6861.42c53680.chunk.css | 1 + 6861.a6982563.async.js | 4 + 7161.39ef68dd.async.js | 1 + 724.89c83734.async.js | 1 + 7439.63221995.async.js | 15 + 7552.1792e5ef.async.js | 1 + 7552.f07de130.chunk.css | 2 + 7964.b595cc6d.async.js | 1 + 9208.35924d1d.chunk.css | 1 + 9208.af08cd18.async.js | 1 + 9354.cc8088a7.chunk.css | 1 + 9370.1d19759f.async.js | 6 + 9396.3582d755.async.js | 1 + 9597.bd152dd4.async.js | 2 + 9975.c694a624.async.js | 108 + CNAME | 1 + account/center/index.html | 318 + account/index.html | 318 + account/settings/index.html | 318 + asset-manifest.json | 108 + dashboard/analysis/index.html | 318 + dashboard/index.html | 318 + dashboard/monitor/index.html | 318 + dashboard/workplace/index.html | 318 + editor/flow/index.html | 318 + editor/index.html | 318 + editor/koni/index.html | 318 + editor/mind/index.html | 318 + exception/403/index.html | 318 + exception/404/index.html | 318 + exception/500/index.html | 318 + exception/index.html | 318 + favicon.ico | Bin 0 -> 4286 bytes form/advanced-form/index.html | 318 + form/basic-form/index.html | 318 + form/index.html | 318 + form/step-form/index.html | 318 + icons/icon-128x128.png | Bin 0 -> 1329 bytes icons/icon-192x192.png | Bin 0 -> 1856 bytes icons/icon-512x512.png | Bin 0 -> 5082 bytes index.html | 318 + list/basic-list/index.html | 318 + list/card-list/index.html | 318 + list/index.html | 318 + list/search/applications/index.html | 318 + list/search/articles/index.html | 318 + list/search/index.html | 318 + list/search/projects/index.html | 318 + list/table-list/index.html | 318 + logo.svg | 1 + p__404.572eeed8.chunk.css | 1 + p__404.f282b7cf.async.js | 1 + p__account__center.1513d404.chunk.css | 1 + p__account__center.49646145.async.js | 1 + p__account__settings.71e7b027.async.js | 1 + p__account__settings.a7e3c231.chunk.css | 1 + p__dashboard__analysis.198dc67c.async.js | 1 + p__dashboard__analysis.5b638015.chunk.css | 1 + p__dashboard__monitor.c203679e.async.js | 1 + p__dashboard__monitor.dad4ad20.chunk.css | 1 + p__dashboard__workplace.635072a1.chunk.css | 1 + p__dashboard__workplace.c6596eb5.async.js | 1 + p__editor__flow.7610180c.async.js | 1 + p__editor__flow.b646be4d.chunk.css | 1 + p__editor__koni.101e5a84.async.js | 1 + p__editor__koni.42228ae3.chunk.css | 1 + p__editor__mind.2200c565.async.js | 1 + p__editor__mind.e2c9a867.chunk.css | 1 + p__exception__403.330df1cb.async.js | 1 + p__exception__403.572eeed8.chunk.css | 1 + p__exception__404.572eeed8.chunk.css | 1 + p__exception__404.ee011573.async.js | 1 + p__exception__500.572eeed8.chunk.css | 1 + p__exception__500.acb36a3c.async.js | 1 + p__form__advanced-form.67eff1a4.async.js | 1 + p__form__advanced-form.86ca4a99.chunk.css | 1 + p__form__basic-form.16f45852.chunk.css | 1 + p__form__basic-form.2833f52b.async.js | 1 + p__form__step-form.9d388cf2.chunk.css | 1 + p__form__step-form.b2417253.async.js | 1 + p__list__basic-list.481028a7.chunk.css | 1 + p__list__basic-list.76599952.async.js | 1 + p__list__card-list.7f40d3f5.chunk.css | 1 + p__list__card-list.cb8f9606.async.js | 1 + p__list__search.331559fd.chunk.css | 1 + p__list__search.8b5e18cd.async.js | 1 + ...st__search__applications.713f464d.async.js | 1 + ...t__search__applications.a5edd240.chunk.css | 1 + p__list__search__articles.9744b1ae.async.js | 1 + p__list__search__articles.f6c38417.chunk.css | 1 + p__list__search__projects.6a433e80.chunk.css | 1 + p__list__search__projects.89cf2802.async.js | 1 + p__list__table-list.0a4d66ee.chunk.css | 1 + p__list__table-list.d253056e.async.js | 1 + p__profile__advanced.e144b8f7.async.js | 1 + p__profile__advanced.ff0143c1.chunk.css | 1 + p__profile__basic.72f5e5e1.chunk.css | 1 + p__profile__basic.eb58937e.async.js | 1 + p__result__fail.2d820b12.async.js | 1 + p__result__fail.fac5aee5.chunk.css | 1 + p__result__success.04851e37.chunk.css | 1 + p__result__success.55c1dd5c.async.js | 1 + p__user__Login.48d93c8e.chunk.css | 1 + p__user__Login.b6d0b89b.async.js | 1 + p__user__register-result.1b864795.chunk.css | 1 + p__user__register-result.2b756b39.async.js | 1 + p__user__register.b2874515.async.js | 1 + p__user__register.eab0d5a5.chunk.css | 1 + pro_icon.svg | 5 + profile/advanced/index.html | 318 + profile/basic/index.html | 318 + profile/index.html | 318 + result/fail/index.html | 318 + result/index.html | 318 + result/success/index.html | 318 + t__plugin-layout__Layout.040825b6.async.js | 1 + t__plugin-layout__Layout.bbaaa741.chunk.css | 1 + umi.0db5c56f.css | 1 + umi.135eaa57.js | 389 + user/index.html | 318 + user/login/index.html | 318 + user/register-result/index.html | 318 + user/register/index.html | 318 + 147 files changed, 21113 insertions(+) create mode 100644 .nojekyll create mode 100644 1014.483df344.async.js create mode 100644 1151.d05792ff.async.js create mode 100644 1946.3b263e70.chunk.css create mode 100644 2077.802cd47b.async.js create mode 100644 3233.26a62287.chunk.css create mode 100644 3233.57c816f6.async.js create mode 100644 3794.092283b9.async.js create mode 100644 3794.683cd53f.chunk.css create mode 100644 404.html create mode 100644 4205.234addc2.async.js create mode 100644 4205.31aec7ec.chunk.css create mode 100644 4553.14f699c6.async.js create mode 100644 4691.946dc368.async.js create mode 100644 4738.15d70875.async.js create mode 100644 4827.6dabd3a7.chunk.css create mode 100644 5362.be0836e3.async.js create mode 100644 562.e1ee52f3.async.js create mode 100644 5883.0f7d82e2.async.js create mode 100644 5883.a4a421fe.chunk.css create mode 100644 609.591239b2.async.js create mode 100644 609.fbad9b4a.chunk.css create mode 100644 6743.a7bbf788.async.js create mode 100644 6799.3682cfe0.async.js create mode 100644 6861.42c53680.chunk.css create mode 100644 6861.a6982563.async.js create mode 100644 7161.39ef68dd.async.js create mode 100644 724.89c83734.async.js create mode 100644 7439.63221995.async.js create mode 100644 7552.1792e5ef.async.js create mode 100644 7552.f07de130.chunk.css create mode 100644 7964.b595cc6d.async.js create mode 100644 9208.35924d1d.chunk.css create mode 100644 9208.af08cd18.async.js create mode 100644 9354.cc8088a7.chunk.css create mode 100644 9370.1d19759f.async.js create mode 100644 9396.3582d755.async.js create mode 100644 9597.bd152dd4.async.js create mode 100644 9975.c694a624.async.js create mode 100644 CNAME create mode 100644 account/center/index.html create mode 100644 account/index.html create mode 100644 account/settings/index.html create mode 100644 asset-manifest.json create mode 100644 dashboard/analysis/index.html create mode 100644 dashboard/index.html create mode 100644 dashboard/monitor/index.html create mode 100644 dashboard/workplace/index.html create mode 100644 editor/flow/index.html create mode 100644 editor/index.html create mode 100644 editor/koni/index.html create mode 100644 editor/mind/index.html create mode 100644 exception/403/index.html create mode 100644 exception/404/index.html create mode 100644 exception/500/index.html create mode 100644 exception/index.html create mode 100644 favicon.ico create mode 100644 form/advanced-form/index.html create mode 100644 form/basic-form/index.html create mode 100644 form/index.html create mode 100644 form/step-form/index.html create mode 100644 icons/icon-128x128.png create mode 100644 icons/icon-192x192.png create mode 100644 icons/icon-512x512.png create mode 100644 index.html create mode 100644 list/basic-list/index.html create mode 100644 list/card-list/index.html create mode 100644 list/index.html create mode 100644 list/search/applications/index.html create mode 100644 list/search/articles/index.html create mode 100644 list/search/index.html create mode 100644 list/search/projects/index.html create mode 100644 list/table-list/index.html create mode 100644 logo.svg create mode 100644 p__404.572eeed8.chunk.css create mode 100644 p__404.f282b7cf.async.js create mode 100644 p__account__center.1513d404.chunk.css create mode 100644 p__account__center.49646145.async.js create mode 100644 p__account__settings.71e7b027.async.js create mode 100644 p__account__settings.a7e3c231.chunk.css create mode 100644 p__dashboard__analysis.198dc67c.async.js create mode 100644 p__dashboard__analysis.5b638015.chunk.css create mode 100644 p__dashboard__monitor.c203679e.async.js create mode 100644 p__dashboard__monitor.dad4ad20.chunk.css create mode 100644 p__dashboard__workplace.635072a1.chunk.css create mode 100644 p__dashboard__workplace.c6596eb5.async.js create mode 100644 p__editor__flow.7610180c.async.js create mode 100644 p__editor__flow.b646be4d.chunk.css create mode 100644 p__editor__koni.101e5a84.async.js create mode 100644 p__editor__koni.42228ae3.chunk.css create mode 100644 p__editor__mind.2200c565.async.js create mode 100644 p__editor__mind.e2c9a867.chunk.css create mode 100644 p__exception__403.330df1cb.async.js create mode 100644 p__exception__403.572eeed8.chunk.css create mode 100644 p__exception__404.572eeed8.chunk.css create mode 100644 p__exception__404.ee011573.async.js create mode 100644 p__exception__500.572eeed8.chunk.css create mode 100644 p__exception__500.acb36a3c.async.js create mode 100644 p__form__advanced-form.67eff1a4.async.js create mode 100644 p__form__advanced-form.86ca4a99.chunk.css create mode 100644 p__form__basic-form.16f45852.chunk.css create mode 100644 p__form__basic-form.2833f52b.async.js create mode 100644 p__form__step-form.9d388cf2.chunk.css create mode 100644 p__form__step-form.b2417253.async.js create mode 100644 p__list__basic-list.481028a7.chunk.css create mode 100644 p__list__basic-list.76599952.async.js create mode 100644 p__list__card-list.7f40d3f5.chunk.css create mode 100644 p__list__card-list.cb8f9606.async.js create mode 100644 p__list__search.331559fd.chunk.css create mode 100644 p__list__search.8b5e18cd.async.js create mode 100644 p__list__search__applications.713f464d.async.js create mode 100644 p__list__search__applications.a5edd240.chunk.css create mode 100644 p__list__search__articles.9744b1ae.async.js create mode 100644 p__list__search__articles.f6c38417.chunk.css create mode 100644 p__list__search__projects.6a433e80.chunk.css create mode 100644 p__list__search__projects.89cf2802.async.js create mode 100644 p__list__table-list.0a4d66ee.chunk.css create mode 100644 p__list__table-list.d253056e.async.js create mode 100644 p__profile__advanced.e144b8f7.async.js create mode 100644 p__profile__advanced.ff0143c1.chunk.css create mode 100644 p__profile__basic.72f5e5e1.chunk.css create mode 100644 p__profile__basic.eb58937e.async.js create mode 100644 p__result__fail.2d820b12.async.js create mode 100644 p__result__fail.fac5aee5.chunk.css create mode 100644 p__result__success.04851e37.chunk.css create mode 100644 p__result__success.55c1dd5c.async.js create mode 100644 p__user__Login.48d93c8e.chunk.css create mode 100644 p__user__Login.b6d0b89b.async.js create mode 100644 p__user__register-result.1b864795.chunk.css create mode 100644 p__user__register-result.2b756b39.async.js create mode 100644 p__user__register.b2874515.async.js create mode 100644 p__user__register.eab0d5a5.chunk.css create mode 100644 pro_icon.svg create mode 100644 profile/advanced/index.html create mode 100644 profile/basic/index.html create mode 100644 profile/index.html create mode 100644 result/fail/index.html create mode 100644 result/index.html create mode 100644 result/success/index.html create mode 100644 t__plugin-layout__Layout.040825b6.async.js create mode 100644 t__plugin-layout__Layout.bbaaa741.chunk.css create mode 100644 umi.0db5c56f.css create mode 100644 umi.135eaa57.js create mode 100644 user/index.html create mode 100644 user/login/index.html create mode 100644 user/register-result/index.html create mode 100644 user/register/index.html diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/1014.483df344.async.js b/1014.483df344.async.js new file mode 100644 index 00000000..cdbfd22d --- /dev/null +++ b/1014.483df344.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1014],{86504:function(ke,fe,o){"use strict";o.d(fe,{Z:function(){return q}});var j=o(28991),b=o(67294),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},re=P,he=o(27029),ge=function(Q,R){return b.createElement(he.Z,(0,j.Z)((0,j.Z)({},Q),{},{ref:R,icon:re}))};ge.displayName="FileOutlined";var q=b.forwardRef(ge)},64752:function(){},44943:function(){},9676:function(ke,fe,o){"use strict";o.d(fe,{Z:function(){return m}});var j=o(96156),b=o(22122),P=o(67294),re=o(94184),he=o.n(re),ge=o(50132),q=o(65223),se=o(85061),Q=o(28481),R=o(98423),D=o(53124),_=function(c,g){var C={};for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&g.indexOf(p)<0&&(C[p]=c[p]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,p=Object.getOwnPropertySymbols(c);O0&&(O=ie().map(function($){return P.createElement(x,{prefixCls:U,key:$.value.toString(),disabled:"disabled"in $?$.disabled:l.disabled,value:$.value,checked:te.indexOf($.value)!==-1,onChange:$.onChange,className:"".concat(A,"-item"),style:$.style},$.label)}));var K={toggleOption:E,value:te,disabled:l.disabled,name:l.name,registerValue:xe,cancelValue:me},ne=he()(A,(0,j.Z)({},"".concat(A,"-rtl"),H==="rtl"),v);return P.createElement("div",(0,b.Z)({className:ne,style:a},e,{ref:C}),P.createElement(J.Provider,{value:K},O))},T=P.forwardRef(I),F=P.memo(T),L=function(c,g){var C={};for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&g.indexOf(p)<0&&(C[p]=c[p]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,p=Object.getOwnPropertySymbols(c);O0&&(Z=xe.map(function(S){return typeof S=="string"||typeof S=="number"?P.createElement(d,{key:S.toString(),prefixCls:r,disabled:A,value:S,checked:B===S},S):P.createElement(d,{key:"radio-group-value-options-".concat(S.value),prefixCls:r,disabled:S.disabled||A,value:S.value,checked:B===S.value,style:S.style},S.label)}));var W=K||G,w=ge()(y,"".concat(y,"-").concat(U),(ue={},(0,j.Z)(ue,"".concat(y,"-").concat(W),W),(0,j.Z)(ue,"".concat(y,"-rtl"),f==="rtl"),ue),me);return P.createElement("div",(0,b.Z)({},(0,c.Z)(v),{className:w,style:ne,onMouseEnter:n,onMouseLeave:s,id:$,ref:a}),Z)};return P.createElement(D,{value:{onChange:Y,value:B,disabled:v.disabled,name:v.name,optionType:v.optionType}},ve())}),C=P.memo(g),p=function(v,a){var i={};for(var l in v)Object.prototype.hasOwnProperty.call(v,l)&&a.indexOf(l)<0&&(i[l]=v[l]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,l=Object.getOwnPropertySymbols(v);f0&&arguments[0]!==void 0?arguments[0]:[],U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],A=E.length,e=U.length;if(Math.abs(A-e)!==1)return{add:!1,key:null};function K(ne,$){var n=new Map;ne.forEach(function(r){n.set(r,!0)});var s=$.filter(function(r){return!n.has(r)});return s.length===1?s[0]:null}return A ").concat(U);return U}var Y=D.forwardRef(function(E,U){var A=E.prefixCls,e=E.data,K=E.selectable,ne=E.checkable,$=E.expandedKeys,n=E.selectedKeys,s=E.checkedKeys,r=E.loadedKeys,y=E.loadingKeys,Z=E.halfCheckedKeys,W=E.keyEntities,w=E.disabled,S=E.dragging,V=E.dragOverNodeKey,ee=E.dropPosition,N=E.motion,oe=E.height,ae=E.itemHeight,z=E.virtual,de=E.focusable,le=E.activeItem,Ce=E.focused,Ee=E.tabIndex,pe=E.onKeyDown,Pe=E.onFocus,Ne=E.onBlur,De=E.onActiveChange,be=E.onListChangeStart,Oe=E.onListChangeEnd,Me=(0,u.Z)(E,v),Ze=D.useRef(null),Se=D.useRef(null);D.useImperativeHandle(U,function(){return{scrollTo:function(Te){Ze.current.scrollTo(Te)},getIndentWidth:function(){return Se.current.offsetWidth}}});var $e=D.useState($),He=(0,x.Z)($e,2),_e=He[0],Xe=He[1],Ye=D.useState(e),je=(0,x.Z)(Ye,2),Le=je[0],Ge=je[1],Qe=D.useState(e),Ve=(0,x.Z)(Qe,2),Je=Ve[0],Fe=Ve[1],qe=D.useState([]),Re=(0,x.Z)(qe,2),it=Re[0],et=Re[1],dt=D.useState(null),at=(0,x.Z)(dt,2),st=at[0],tt=at[1],rt=D.useRef(e);rt.current=e;function nt(){var Ke=rt.current;Ge(Ke),Fe(Ke),et([]),tt(null),Oe()}D.useEffect(function(){Xe($);var Ke=k(_e,$);if(Ke.key!==null)if(Ke.add){var Te=Le.findIndex(function(Ue){var We=Ue.key;return We===Ke.key}),Ie=X(M(Le,e,Ke.key),z,oe,ae),Be=Le.slice();Be.splice(Te+1,0,H),Fe(Be),et(Ie),tt("show")}else{var Ae=e.findIndex(function(Ue){var We=Ue.key;return We===Ke.key}),we=X(M(e,Le,Ke.key),z,oe,ae),ze=e.slice();ze.splice(Ae+1,0,H),Fe(ze),et(we),tt("hide")}else Le!==e&&(Ge(e),Fe(e))},[$,e]),D.useEffect(function(){S||nt()},[S]);var lt=N?Je:e,ot={expandedKeys:$,selectedKeys:n,loadedKeys:r,loadingKeys:y,checkedKeys:s,halfCheckedKeys:Z,dragOverNodeKey:V,dropPosition:ee,keyEntities:W};return D.createElement(D.Fragment,null,Ce&&le&&D.createElement("span",{style:a,"aria-live":"assertive"},te(le)),D.createElement("div",null,D.createElement("input",{style:a,disabled:de===!1||w,tabIndex:de!==!1?Ee:null,onKeyDown:pe,onFocus:Pe,onBlur:Ne,value:"",onChange:i,"aria-label":"for screen reader"})),D.createElement("div",{className:"".concat(A,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},D.createElement("div",{className:"".concat(A,"-indent")},D.createElement("div",{ref:Se,className:"".concat(A,"-indent-unit")}))),D.createElement(m.Z,(0,j.Z)({},Me,{data:lt,itemKey:B,height:oe,fullHeight:!1,virtual:z,itemHeight:ae,prefixCls:"".concat(A,"-list"),ref:Ze,onVisibleChange:function(Te,Ie){var Be=new Set(Te),Ae=Ie.filter(function(we){return!Be.has(we)});Ae.some(function(we){return B(we)===l})&&nt()}}),function(Ke){var Te=Ke.pos,Ie=(0,j.Z)({},Ke.data),Be=Ke.title,Ae=Ke.key,we=Ke.isStart,ze=Ke.isEnd,Ue=(0,d.km)(Ae,Te);delete Ie.key,delete Ie.children;var We=(0,d.H8)(Ue,ot);return D.createElement(t,(0,j.Z)({},Ie,We,{title:Be,active:!!le&&Ae===le.key,pos:Te,data:Ke.data,isStart:we,isEnd:ze,motion:N,motionNodes:Ae===l?it:null,motionType:st,onMotionStart:be,onMotionEnd:nt,treeNodeRequiredProps:ot,onMouseMove:function(){De(null)}}))}))});Y.displayName="NodeList";var ve=Y,ye=o(17341);function ue(E){var U=E.dropPosition,A=E.dropLevelOffset,e=E.indent,K={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(U){case-1:K.top=0,K.left=-A*e;break;case 1:K.bottom=0,K.left=-A*e;break;case 0:K.bottom=0,K.left=e;break}return D.createElement("div",{style:K})}var ce=10,ie=function(E){(0,Q.Z)(A,E);var U=(0,R.Z)(A);function A(){var e;(0,ge.Z)(this,A);for(var K=arguments.length,ne=new Array(K),$=0;$2&&arguments[2]!==void 0?arguments[2]:!1,Z=e.state,W=Z.dragChildrenKeys,w=Z.dropPosition,S=Z.dropTargetKey,V=Z.dropTargetPos,ee=Z.dropAllowed;if(!!ee){var N=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),S!==null){var oe=(0,re.Z)((0,re.Z)({},(0,d.H8)(S,e.getTreeNodeRequiredProps())),{},{active:((r=e.getActiveItem())===null||r===void 0?void 0:r.key)===S,data:e.state.keyEntities[S].node}),ae=W.indexOf(S)!==-1;(0,J.ZP)(!ae,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var z=(0,h.yx)(V),de={event:n,node:(0,d.F)(oe),dragNode:e.dragNode?(0,d.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(W),dropToGap:w!==0,dropPosition:w+Number(z[z.length-1])};y||N==null||N(de),e.dragNode=null}}},e.cleanDragState=function(){var n=e.state.draggingNodeKey;n!==null&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,s){var r=e.state,y=r.expandedKeys,Z=r.flattenNodes,W=s.expanded,w=s.key,S=s.isLeaf;if(!(S||n.shiftKey||n.metaKey||n.ctrlKey)){var V=Z.filter(function(N){return N.key===w})[0],ee=(0,d.F)((0,re.Z)((0,re.Z)({},(0,d.H8)(w,e.getTreeNodeRequiredProps())),{},{data:V.data}));e.setExpandedKeys(W?(0,h._5)(y,w):(0,h.L0)(y,w)),e.onNodeExpand(n,ee)}},e.onNodeClick=function(n,s){var r=e.props,y=r.onClick,Z=r.expandAction;Z==="click"&&e.triggerExpandActionExpand(n,s),y==null||y(n,s)},e.onNodeDoubleClick=function(n,s){var r=e.props,y=r.onDoubleClick,Z=r.expandAction;Z==="doubleClick"&&e.triggerExpandActionExpand(n,s),y==null||y(n,s)},e.onNodeSelect=function(n,s){var r=e.state.selectedKeys,y=e.state,Z=y.keyEntities,W=y.fieldNames,w=e.props,S=w.onSelect,V=w.multiple,ee=s.selected,N=s[W.key],oe=!ee;oe?V?r=(0,h.L0)(r,N):r=[N]:r=(0,h._5)(r,N);var ae=r.map(function(z){var de=Z[z];return de?de.node:null}).filter(function(z){return z});e.setUncontrolledState({selectedKeys:r}),S==null||S(r,{event:"select",selected:oe,node:s,selectedNodes:ae,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,s,r){var y=e.state,Z=y.keyEntities,W=y.checkedKeys,w=y.halfCheckedKeys,S=e.props,V=S.checkStrictly,ee=S.onCheck,N=s.key,oe,ae={event:"check",node:s,checked:r,nativeEvent:n.nativeEvent};if(V){var z=r?(0,h.L0)(W,N):(0,h._5)(W,N),de=(0,h._5)(w,N);oe={checked:z,halfChecked:de},ae.checkedNodes=z.map(function(Ne){return Z[Ne]}).filter(function(Ne){return Ne}).map(function(Ne){return Ne.node}),e.setUncontrolledState({checkedKeys:z})}else{var le=(0,ye.S)([].concat((0,he.Z)(W),[N]),!0,Z),Ce=le.checkedKeys,Ee=le.halfCheckedKeys;if(!r){var pe=new Set(Ce);pe.delete(N);var Pe=(0,ye.S)(Array.from(pe),{checked:!1,halfCheckedKeys:Ee},Z);Ce=Pe.checkedKeys,Ee=Pe.halfCheckedKeys}oe=Ce,ae.checkedNodes=[],ae.checkedNodesPositions=[],ae.halfCheckedKeys=Ee,Ce.forEach(function(Ne){var De=Z[Ne];if(!!De){var be=De.node,Oe=De.pos;ae.checkedNodes.push(be),ae.checkedNodesPositions.push({node:be,pos:Oe})}}),e.setUncontrolledState({checkedKeys:Ce},!1,{halfCheckedKeys:Ee})}ee==null||ee(oe,ae)},e.onNodeLoad=function(n){var s=n.key,r=new Promise(function(y,Z){e.setState(function(W){var w=W.loadedKeys,S=w===void 0?[]:w,V=W.loadingKeys,ee=V===void 0?[]:V,N=e.props,oe=N.loadData,ae=N.onLoad;if(!oe||S.indexOf(s)!==-1||ee.indexOf(s)!==-1)return null;var z=oe(n);return z.then(function(){var de=e.state.loadedKeys,le=(0,h.L0)(de,s);ae==null||ae(le,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:le}),e.setState(function(Ce){return{loadingKeys:(0,h._5)(Ce.loadingKeys,s)}}),y()}).catch(function(de){if(e.setState(function(Ce){return{loadingKeys:(0,h._5)(Ce.loadingKeys,s)}}),e.loadingRetryTimes[s]=(e.loadingRetryTimes[s]||0)+1,e.loadingRetryTimes[s]>=ce){var le=e.state.loadedKeys;(0,J.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,h.L0)(le,s)}),y()}Z(de)}),{loadingKeys:(0,h.L0)(ee,s)}})});return r.catch(function(){}),r},e.onNodeMouseEnter=function(n,s){var r=e.props.onMouseEnter;r==null||r({event:n,node:s})},e.onNodeMouseLeave=function(n,s){var r=e.props.onMouseLeave;r==null||r({event:n,node:s})},e.onNodeContextMenu=function(n,s){var r=e.props.onRightClick;r&&(n.preventDefault(),r({event:n,node:s}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var s=arguments.length,r=new Array(s),y=0;y1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var y=!1,Z=!0,W={};Object.keys(n).forEach(function(w){if(w in e.props){Z=!1;return}y=!0,W[w]=n[w]}),y&&(!s||Z)&&e.setState((0,re.Z)((0,re.Z)({},W),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,q.Z)(A,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var K=this.props.activeKey;K!==void 0&&K!==this.state.activeKey&&(this.setState({activeKey:K}),K!==null&&this.scrollTo({key:K}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var K,ne=this.state,$=ne.focused,n=ne.flattenNodes,s=ne.keyEntities,r=ne.draggingNodeKey,y=ne.activeKey,Z=ne.dropLevelOffset,W=ne.dropContainerKey,w=ne.dropTargetKey,S=ne.dropPosition,V=ne.dragOverNodeKey,ee=ne.indent,N=this.props,oe=N.prefixCls,ae=N.className,z=N.style,de=N.showLine,le=N.focusable,Ce=N.tabIndex,Ee=Ce===void 0?0:Ce,pe=N.selectable,Pe=N.showIcon,Ne=N.icon,De=N.switcherIcon,be=N.draggable,Oe=N.checkable,Me=N.checkStrictly,Ze=N.disabled,Se=N.motion,$e=N.loadData,He=N.filterTreeNode,_e=N.height,Xe=N.itemHeight,Ye=N.virtual,je=N.titleRender,Le=N.dropIndicatorRender,Ge=N.onContextMenu,Qe=N.onScroll,Ve=N.direction,Je=N.rootClassName,Fe=N.rootStyle,qe=(0,I.Z)(this.props,{aria:!0,data:!0}),Re;return be&&((0,P.Z)(be)==="object"?Re=be:typeof be=="function"?Re={nodeDraggable:be}:Re={}),D.createElement(L.k.Provider,{value:{prefixCls:oe,selectable:pe,showIcon:Pe,icon:Ne,switcherIcon:De,draggable:Re,draggingNodeKey:r,checkable:Oe,checkStrictly:Me,disabled:Ze,keyEntities:s,dropLevelOffset:Z,dropContainerKey:W,dropTargetKey:w,dropPosition:S,dragOverNodeKey:V,indent:ee,direction:Ve,dropIndicatorRender:Le,loadData:$e,filterTreeNode:He,titleRender:je,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},D.createElement("div",{role:"tree",className:F()(oe,ae,Je,(K={},(0,b.Z)(K,"".concat(oe,"-show-line"),de),(0,b.Z)(K,"".concat(oe,"-focused"),$),(0,b.Z)(K,"".concat(oe,"-active-focused"),y!==null),K)),style:Fe},D.createElement(ve,(0,j.Z)({ref:this.listRef,prefixCls:oe,style:z,data:n,disabled:Ze,selectable:pe,checkable:!!Oe,motion:Se,dragging:r!==null,height:_e,itemHeight:Xe,virtual:Ye,focusable:le,focused:$,tabIndex:Ee,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ge,onScroll:Qe},this.getTreeNodeRequiredProps(),qe))))}}],[{key:"getDerivedStateFromProps",value:function(K,ne){var $=ne.prevProps,n={prevProps:K};function s(le){return!$&&le in K||$&&$[le]!==K[le]}var r,y=ne.fieldNames;if(s("fieldNames")&&(y=(0,d.w$)(K.fieldNames),n.fieldNames=y),s("treeData")?r=K.treeData:s("children")&&((0,J.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),r=(0,d.zn)(K.children)),r){n.treeData=r;var Z=(0,d.I8)(r,{fieldNames:y});n.keyEntities=(0,re.Z)((0,b.Z)({},l,G),Z.keyEntities)}var W=n.keyEntities||ne.keyEntities;if(s("expandedKeys")||$&&s("autoExpandParent"))n.expandedKeys=K.autoExpandParent||!$&&K.defaultExpandParent?(0,h.r7)(K.expandedKeys,W):K.expandedKeys;else if(!$&&K.defaultExpandAll){var w=(0,re.Z)({},W);delete w[l],n.expandedKeys=Object.keys(w).map(function(le){return w[le].key})}else!$&&K.defaultExpandedKeys&&(n.expandedKeys=K.autoExpandParent||K.defaultExpandParent?(0,h.r7)(K.defaultExpandedKeys,W):K.defaultExpandedKeys);if(n.expandedKeys||delete n.expandedKeys,r||n.expandedKeys){var S=(0,d.oH)(r||ne.treeData,n.expandedKeys||ne.expandedKeys,y);n.flattenNodes=S}if(K.selectable&&(s("selectedKeys")?n.selectedKeys=(0,h.BT)(K.selectedKeys,K):!$&&K.defaultSelectedKeys&&(n.selectedKeys=(0,h.BT)(K.defaultSelectedKeys,K))),K.checkable){var V;if(s("checkedKeys")?V=(0,h.E6)(K.checkedKeys)||{}:!$&&K.defaultCheckedKeys?V=(0,h.E6)(K.defaultCheckedKeys)||{}:r&&(V=(0,h.E6)(K.checkedKeys)||{checkedKeys:ne.checkedKeys,halfCheckedKeys:ne.halfCheckedKeys}),V){var ee=V,N=ee.checkedKeys,oe=N===void 0?[]:N,ae=ee.halfCheckedKeys,z=ae===void 0?[]:ae;if(!K.checkStrictly){var de=(0,ye.S)(oe,!0,W);oe=de.checkedKeys,z=de.halfCheckedKeys}n.checkedKeys=oe,n.halfCheckedKeys=z}}return s("loadedKeys")&&(n.loadedKeys=K.loadedKeys),n}}]),A}(D.Component);ie.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ue,allowDrop:function(){return!0},expandAction:!1},ie.TreeNode=g.Z;var me=ie,xe=me},10225:function(ke,fe,o){"use strict";o.d(fe,{_5:function(){return q},L0:function(){return se},yx:function(){return Q},bt:function(){return R},Ds:function(){return D},wA:function(){return _},OM:function(){return T},BT:function(){return F},E6:function(){return d},r7:function(){return x}});var j=o(85061),b=o(90484),P=o(67294),re=o(80334),he=o(4258),ge=null;function q(u,m){if(!u)return[];var c=u.slice(),g=c.indexOf(m);return g>=0&&c.splice(g,1),c}function se(u,m){var c=(u||[]).slice();return c.indexOf(m)===-1&&c.push(m),c}function Q(u){return u.split("-")}function R(u,m){return"".concat(u,"-").concat(m)}function D(u){return u&&u.type&&u.type.isTreeNode}function _(u,m){var c=[],g=m[u];function C(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];p.forEach(function(O){var t=O.key,k=O.children;c.push(t),C(k)})}return C(g.children),c}function J(u){if(u.parent){var m=Q(u.pos);return Number(m[m.length-1])===u.parent.children.length-1}return!1}function I(u){var m=Q(u.pos);return Number(m[m.length-1])===0}function T(u,m,c,g,C,p,O,t,k,M){var v,a=u.clientX,i=u.clientY,l=u.target.getBoundingClientRect(),f=l.top,G=l.height,H=(M==="rtl"?-1:1)*(((C==null?void 0:C.x)||0)-a),X=(H-12)/g,B=t[c.props.eventKey];if(i-1.5?p({dragNode:E,dropNode:U,dropPosition:1})?ie=1:A=!1:p({dragNode:E,dropNode:U,dropPosition:0})?ie=0:p({dragNode:E,dropNode:U,dropPosition:1})?ie=1:A=!1:p({dragNode:E,dropNode:U,dropPosition:1})?ie=1:A=!1,{dropPosition:ie,dropLevelOffset:me,dropTargetKey:B.key,dropTargetPos:B.pos,dragOverNodeKey:ce,dropContainerKey:ie===0?null:((v=B.parent)===null||v===void 0?void 0:v.key)||null,dropAllowed:A}}function F(u,m){if(!!u){var c=m.multiple;return c?u.slice():u.length?[u[0]]:u}}var L=function(m){return m};function h(u,m){if(!u)return[];var c=m||{},g=c.processProps,C=g===void 0?L:g,p=Array.isArray(u)?u:[u];return p.map(function(O){var t=O.children,k=_objectWithoutProperties(O,ge),M=h(t,m);return React.createElement(TreeNode,_extends({key:k.key},C(k)),M)})}function d(u){if(!u)return null;var m;if(Array.isArray(u))m={checkedKeys:u,halfCheckedKeys:void 0};else if((0,b.Z)(u)==="object")m={checkedKeys:u.checked||void 0,halfCheckedKeys:u.halfChecked||void 0};else return(0,re.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return m}function x(u,m){var c=new Set;function g(C){if(!c.has(C)){var p=m[C];if(!!p){c.add(C);var O=p.parent,t=p.node;t.disabled||O&&g(O.key)}}}return(u||[]).forEach(function(C){g(C)}),(0,j.Z)(c)}},17341:function(ke,fe,o){"use strict";o.d(fe,{S:function(){return ge}});var j=o(80334);function b(q,se){var Q=new Set;return q.forEach(function(R){se.has(R)||Q.add(R)}),Q}function P(q){var se=q||{},Q=se.disabled,R=se.disableCheckbox,D=se.checkable;return!!(Q||R)||D===!1}function re(q,se,Q,R){for(var D=new Set(q),_=new Set,J=0;J<=Q;J+=1){var I=se.get(J)||new Set;I.forEach(function(h){var d=h.key,x=h.node,u=h.children,m=u===void 0?[]:u;D.has(d)&&!R(x)&&m.filter(function(c){return!R(c.node)}).forEach(function(c){D.add(c.key)})})}for(var T=new Set,F=Q;F>=0;F-=1){var L=se.get(F)||new Set;L.forEach(function(h){var d=h.parent,x=h.node;if(!(R(x)||!h.parent||T.has(h.parent.key))){if(R(h.parent.node)){T.add(d.key);return}var u=!0,m=!1;(d.children||[]).filter(function(c){return!R(c.node)}).forEach(function(c){var g=c.key,C=D.has(g);u&&!C&&(u=!1),!m&&(C||_.has(g))&&(m=!0)}),u&&D.add(d.key),m&&_.add(d.key),T.add(d.key)}})}return{checkedKeys:Array.from(D),halfCheckedKeys:Array.from(b(_,D))}}function he(q,se,Q,R,D){for(var _=new Set(q),J=new Set(se),I=0;I<=R;I+=1){var T=Q.get(I)||new Set;T.forEach(function(d){var x=d.key,u=d.node,m=d.children,c=m===void 0?[]:m;!_.has(x)&&!J.has(x)&&!D(u)&&c.filter(function(g){return!D(g.node)}).forEach(function(g){_.delete(g.key)})})}J=new Set;for(var F=new Set,L=R;L>=0;L-=1){var h=Q.get(L)||new Set;h.forEach(function(d){var x=d.parent,u=d.node;if(!(D(u)||!d.parent||F.has(d.parent.key))){if(D(d.parent.node)){F.add(x.key);return}var m=!0,c=!1;(x.children||[]).filter(function(g){return!D(g.node)}).forEach(function(g){var C=g.key,p=_.has(C);m&&!p&&(m=!1),!c&&(p||J.has(C))&&(c=!0)}),m||_.delete(x.key),c&&J.add(x.key),F.add(x.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(b(J,_))}}function ge(q,se,Q,R){var D=[],_;R?_=R:_=P;var J=new Set(q.filter(function(L){var h=!!Q[L];return h||D.push(L),h})),I=new Map,T=0;Object.keys(Q).forEach(function(L){var h=Q[L],d=h.level,x=I.get(d);x||(x=new Set,I.set(d,x)),x.add(h),T=Math.max(T,d)}),(0,j.ZP)(!D.length,"Tree missing follow keys: ".concat(D.slice(0,100).map(function(L){return"'".concat(L,"'")}).join(", ")));var F;return se===!0?F=re(J,I,T,_):F=he(J,se.halfCheckedKeys,I,T,_),F}},1089:function(ke,fe,o){"use strict";o.d(fe,{km:function(){return R},w$:function(){return D},zn:function(){return J},oH:function(){return I},I8:function(){return F},H8:function(){return L},F:function(){return h}});var j=o(90484),b=o(85061),P=o(28991),re=o(81253),he=o(98423),ge=o(50344),q=o(80334),se=o(10225),Q=["children"];function R(d,x){return d!=null?d:x}function D(d){var x=d||{},u=x.title,m=x._title,c=x.key,g=x.children,C=u||"title";return{title:C,_title:m||[C],key:c||"key",children:g||"children"}}function _(d,x){var u=new Map;function m(c){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(c||[]).forEach(function(C){var p=C[x.key],O=C[x.children];warning(p!=null,"Tree node must have a certain key: [".concat(g).concat(p,"]"));var t=String(p);warning(!u.has(t)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(t)),u.set(t,!0),m(O,"".concat(g).concat(t," > "))})}m(d)}function J(d){function x(u){var m=(0,ge.Z)(u);return m.map(function(c){if(!(0,se.Ds)(c))return(0,q.ZP)(!c,"Tree/TreeNode can only accept TreeNode as children."),null;var g=c.key,C=c.props,p=C.children,O=(0,re.Z)(C,Q),t=(0,P.Z)({key:g},O),k=x(p);return k.length&&(t.children=k),t}).filter(function(c){return c})}return x(d)}function I(d,x,u){var m=D(u),c=m._title,g=m.key,C=m.children,p=new Set(x===!0?[]:x),O=[];function t(k){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return k.map(function(v,a){for(var i=(0,se.bt)(M?M.pos:"0",a),l=R(v[g],i),f,G=0;G1&&arguments[1]!==void 0?arguments[1]:{},u=x.initWrapper,m=x.processEntity,c=x.onProcessFinished,g=x.externalGetKey,C=x.childrenPropName,p=x.fieldNames,O=arguments.length>2?arguments[2]:void 0,t=g||O,k={},M={},v={posEntities:k,keyEntities:M};return u&&(v=u(v)||v),T(d,function(a){var i=a.node,l=a.index,f=a.pos,G=a.key,H=a.parentPos,X=a.level,B=a.nodes,te={node:i,nodes:B,index:l,key:G,pos:f,level:X},Y=R(G,f);k[f]=te,M[Y]=te,te.parent=k[H],te.parent&&(te.parent.children=te.parent.children||[],te.parent.children.push(te)),m&&m(te,v)},{externalGetKey:t,childrenPropName:C,fieldNames:p}),c&&c(v),v}function L(d,x){var u=x.expandedKeys,m=x.selectedKeys,c=x.loadedKeys,g=x.loadingKeys,C=x.checkedKeys,p=x.halfCheckedKeys,O=x.dragOverNodeKey,t=x.dropPosition,k=x.keyEntities,M=k[d],v={eventKey:d,expanded:u.indexOf(d)!==-1,selected:m.indexOf(d)!==-1,loaded:c.indexOf(d)!==-1,loading:g.indexOf(d)!==-1,checked:C.indexOf(d)!==-1,halfChecked:p.indexOf(d)!==-1,pos:String(M?M.pos:""),dragOver:O===d&&t===0,dragOverGapTop:O===d&&t===-1,dragOverGapBottom:O===d&&t===1};return v}function h(d){var x=d.data,u=d.expanded,m=d.selected,c=d.checked,g=d.loaded,C=d.loading,p=d.halfChecked,O=d.dragOver,t=d.dragOverGapTop,k=d.dragOverGapBottom,M=d.pos,v=d.active,a=d.eventKey,i=(0,P.Z)((0,P.Z)({},x),{},{expanded:u,selected:m,checked:c,loaded:g,loading:C,halfChecked:p,dragOver:O,dragOverGapTop:t,dragOverGapBottom:k,pos:M,active:v,key:a});return"props"in i||Object.defineProperty(i,"props",{get:function(){return(0,q.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),d}}),i}},27678:function(ke,fe,o){"use strict";o.d(fe,{g1:function(){return D},os:function(){return J}});var j=/margin|padding|width|height|max|min|offset/,b={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function re(I){return I.nodeType===1?I.ownerDocument.defaultView.getComputedStyle(I,null):{}}function he(I,T,F){if(T=T.toLowerCase(),F==="auto"){if(T==="height")return I.offsetHeight;if(T==="width")return I.offsetWidth}return T in b||(b[T]=j.test(T)),b[T]?parseFloat(F)||0:F}function ge(I,T){var F=arguments.length,L=re(I);return T=P[T]?"cssFloat"in I.style?"cssFloat":"styleFloat":T,F===1?L:he(I,T,L[T]||I.style[T])}function q(I,T,F){var L=arguments.length;if(T=P[T]?"cssFloat"in I.style?"cssFloat":"styleFloat":T,L===3)return typeof F=="number"&&j.test(T)&&(F="".concat(F,"px")),I.style[T]=F,F;for(var h in T)T.hasOwnProperty(h)&&q(I,h,T[h]);return re(I)}function se(I){return I===document.body?document.documentElement.clientWidth:I.offsetWidth}function Q(I){return I===document.body?window.innerHeight||document.documentElement.clientHeight:I.offsetHeight}function R(){var I=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),T=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:I,height:T}}function D(){var I=document.documentElement.clientWidth,T=window.innerHeight||document.documentElement.clientHeight;return{width:I,height:T}}function _(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function J(I){var T=I.getBoundingClientRect(),F=document.documentElement;return{left:T.left+(window.pageXOffset||F.scrollLeft)-(F.clientLeft||document.body.clientLeft||0),top:T.top+(window.pageYOffset||F.scrollTop)-(F.clientTop||document.body.clientTop||0)}}}}]); diff --git a/1151.d05792ff.async.js b/1151.d05792ff.async.js new file mode 100644 index 00000000..3f6f8dbb --- /dev/null +++ b/1151.d05792ff.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1151],{58380:function(r){function f(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}r.exports=f},29932:function(r){function f(n,t){for(var e=-1,o=n==null?0:n.length,s=Array(o);++e1?u[a-1]:void 0,c=a>2?u[2]:void 0;for(p=s.length>3&&typeof p=="function"?(a--,p):void 0,c&&e(u[0],u[1],c)&&(p=a<3?void 0:p,a=1),i=Object(i);++l0){if(++s>=f)return arguments[0]}else s=0;return o.apply(void 0,arguments)}}r.exports=e},75703:function(r){function f(n){return function(){return n}}r.exports=f},6557:function(r){function f(n){return n}r.exports=f},29246:function(r,f,n){var t=n(98612),e=n(37005);function o(s){return e(s)&&t(s)}r.exports=o},68630:function(r,f,n){var t=n(44239),e=n(85924),o=n(37005),s="[object Object]",i=Function.prototype,u=Object.prototype,l=i.toString,a=u.hasOwnProperty,p=l.call(Object);function c(d){if(!o(d)||t(d)!=s)return!1;var v=e(d);if(v===null)return!0;var y=a.call(v,"constructor")&&v.constructor;return typeof y=="function"&&y instanceof y&&l.call(y)==p}r.exports=c},81704:function(r,f,n){var t=n(14636),e=n(10313),o=n(98612);function s(i){return o(i)?t(i,!0):e(i)}r.exports=s},82492:function(r,f,n){var t=n(42980),e=n(21463),o=e(function(s,i,u){t(s,i,u)});r.exports=o},59881:function(r,f,n){var t=n(98363),e=n(81704);function o(s){return t(s,e(s))}r.exports=o},79833:function(r,f,n){var t=n(80531);function e(o){return o==null?"":t(o)}r.exports=e}}]); diff --git a/1946.3b263e70.chunk.css b/1946.3b263e70.chunk.css new file mode 100644 index 00000000..5a3b4474 --- /dev/null +++ b/1946.3b263e70.chunk.css @@ -0,0 +1 @@ +.ant-affix{position:fixed;z-index:10}.ant-page-header{box-sizing:border-box;margin:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;padding:16px 24px;background-color:#fff}.ant-page-header-ghost{background-color:inherit}.ant-page-header.has-breadcrumb{padding-top:12px}.ant-page-header.has-footer{padding-bottom:0}.ant-page-header-back{margin-right:16px;font-size:16px;line-height:1}.ant-page-header-back-button{color:#1890ff;color:var(--ant-primary-color);text-decoration:none;outline:none;transition:color .3s;color:#000;cursor:pointer}.ant-page-header-back-button:focus,.ant-page-header-back-button:hover{color:#40a9ff;color:var(--ant-primary-color-hover)}.ant-page-header-back-button:active{color:#096dd9;color:var(--ant-primary-color-active)}.ant-page-header .ant-divider-vertical{height:14px;margin:0 12px;vertical-align:middle}.ant-breadcrumb+.ant-page-header-heading{margin-top:8px}.ant-page-header-heading{display:flex;justify-content:space-between}.ant-page-header-heading-left{display:flex;align-items:center;margin:4px 0;overflow:hidden}.ant-page-header-heading-title{margin-right:12px;margin-bottom:0;color:rgba(0,0,0,.85);font-weight:600;font-size:20px;line-height:32px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-page-header-heading .ant-avatar{margin-right:12px}.ant-page-header-heading-sub-title{margin-right:12px;color:rgba(0,0,0,.45);font-size:14px;line-height:1.5715;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-page-header-heading-extra{margin:4px 0;white-space:nowrap}.ant-page-header-heading-extra>*{white-space:unset}.ant-page-header-content{padding-top:12px}.ant-page-header-footer{margin-top:16px}.ant-page-header-footer .ant-tabs>.ant-tabs-nav{margin:0}.ant-page-header-footer .ant-tabs>.ant-tabs-nav:before{border:none}.ant-page-header-footer .ant-tabs .ant-tabs-tab{padding-top:8px;padding-bottom:8px;font-size:16px}.ant-page-header-compact .ant-page-header-heading{flex-wrap:wrap}.ant-page-header-rtl{direction:rtl}.ant-page-header-rtl .ant-page-header-back{float:right;margin-right:0;margin-left:16px}.ant-page-header-rtl .ant-page-header-heading-title{margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading .ant-avatar{margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-sub-title{float:right;margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-tags{float:right}.ant-page-header-rtl .ant-page-header-heading-extra{float:left}.ant-page-header-rtl .ant-page-header-heading-extra>*{margin-right:12px;margin-left:0}.ant-page-header-rtl .ant-page-header-heading-extra>:first-child{margin-right:0}.ant-page-header-rtl .ant-page-header-footer .ant-tabs-bar .ant-tabs-nav{float:right}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-breadcrumb{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";color:rgba(0,0,0,.45);font-size:14px}.ant-breadcrumb .anticon{font-size:14px}.ant-breadcrumb ol{display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none}.ant-breadcrumb a{color:rgba(0,0,0,.45);transition:color .3s}.ant-breadcrumb a:hover{color:rgba(0,0,0,.85)}.ant-breadcrumb li:last-child{color:rgba(0,0,0,.85)}.ant-breadcrumb li:last-child a{color:rgba(0,0,0,.85)}li:last-child .ant-breadcrumb-separator{display:none}.ant-breadcrumb-separator{margin:0 8px;color:rgba(0,0,0,.45)}.ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-link>.anticon+span{margin-left:4px}.ant-breadcrumb-overlay-link>.anticon{margin-left:4px}.ant-breadcrumb-rtl{direction:rtl}.ant-breadcrumb-rtl:before{display:table;content:""}.ant-breadcrumb-rtl:after{display:table;clear:both;content:""}.ant-breadcrumb-rtl>span{float:right}.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+span{margin-right:4px;margin-left:0}.ant-breadcrumb-rtl .ant-breadcrumb-overlay-link>.anticon{margin-right:4px;margin-left:0}.ant-pro-page-container-children-content{margin:24px 24px 0;padding:inherit}.ant-pro-page-container{background-color:inherit}.ant-pro-page-container-warp{background-color:#fff}.ant-pro-page-container-warp .ant-tabs-nav{margin:0}.ant-pro-page-container-ghost .ant-pro-page-container-warp{background-color:transparent}.ant-pro-page-container-ghost .ant-pro-page-container-children-content{margin-top:0}.ant-pro-page-container-main .ant-pro-page-container-detail{display:flex}.ant-pro-page-container-main .ant-pro-page-container-row{display:flex;width:100%}.ant-pro-page-container-main .ant-pro-page-container-title-content{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-content,.ant-pro-page-container-main .ant-pro-page-container-title{flex:auto;width:100%}.ant-pro-page-container-main .ant-pro-page-container-extraContent,.ant-pro-page-container-main .ant-pro-page-container-main{flex:0 1 auto}.ant-pro-page-container-main .ant-pro-page-container-main{width:100%}.ant-pro-page-container-main .ant-pro-page-container-title{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-logo{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-extraContent{min-width:242px;margin-left:88px;text-align:right}@media screen and (max-width:1200px){.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:44px}}@media screen and (max-width:992px){.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:20px}}@media screen and (max-width:768px){.ant-pro-page-container-main .ant-pro-page-container-row{display:block}.ant-pro-page-container-main .ant-pro-page-container-action,.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:0;text-align:left}}@media screen and (max-width:576px){.ant-pro-page-container-detail{display:block}.ant-pro-page-container-extraContent{margin-left:0}}.ant-pro-footer-bar{position:fixed;right:0;bottom:0;z-index:99;display:flex;align-items:center;width:100%;padding:0 24px;line-height:44px;background:#fff;border-top:1px solid rgba(0,0,0,.06);box-shadow:0 -6px 16px -8px rgba(0,0,0,.08),0 -9px 28px 0 rgba(0,0,0,.05),0 -12px 48px 16px rgba(0,0,0,.03);transition:width .3s cubic-bezier(.645,.045,.355,1)}.ant-pro-footer-bar-left{flex:1 1}.ant-pro-footer-bar-right>*{margin-right:8px}.ant-pro-footer-bar-right>:last-child{margin:0}.ant-pro-field-date-picker-light .ant-calendar-picker,.ant-pro-field-date-picker-light .ant-picker{position:absolute;width:80px;height:28px;overflow:hidden;visibility:hidden}.ant-pro-core-field-label{display:inline-flex;grid-gap:4px;gap:4px;align-items:center;height:30px;padding:0 4px;font-size:14px;line-height:30px;border-radius:2px;cursor:pointer}.ant-pro-core-field-label:hover{background-color:rgba(0,0,0,.1)}.ant-pro-core-field-label-active{padding:0 12px;background-color:rgba(0,0,0,.04)}.ant-pro-core-field-label-active.ant-pro-core-field-label-allow-clear:hover:not(.ant-pro-core-field-label-disabled) .ant-pro-core-field-label-arrow{display:none}.ant-pro-core-field-label-active.ant-pro-core-field-label-allow-clear:hover:not(.ant-pro-core-field-label-disabled) .ant-pro-core-field-label-close{display:inline-block}.ant-pro-core-field-label-icon{height:12px;padding:1px;color:rgba(0,0,0,.45);font-size:12px;vertical-align:middle}.ant-pro-core-field-label-icon.ant-pro-core-field-label-close{display:none;height:14px;padding:3px;color:#fff;font-size:8px;background-color:rgba(0,0,0,.25);border-radius:50%}.ant-pro-core-field-label-icon.ant-pro-core-field-label-close:hover{background-color:rgba(0,0,0,.45)}.ant-pro-core-field-label-disabled{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-pro-core-field-label-disabled .ant-pro-core-field-label-icon{color:rgba(0,0,0,.25)}.ant-pro-core-field-label-small{height:24px;padding:0 4px;font-size:12px;line-height:24px}.ant-pro-core-field-label-small.ant-pro-core-field-label-active{padding:0 8px}.ant-pro-core-field-label-small .ant-pro-core-field-label-icon{padding:0}.ant-pro-core-field-label-small .ant-pro-core-field-label-close{margin-top:-2px;padding:3px;font-size:6px}.ant-pro-core-field-label-bordered{height:32px;padding:0 12px;border:1px solid #d9d9d9;border-radius:2px}.ant-pro-core-field-label-bordered.ant-pro-core-field-label-small{height:24px;padding:0 8px}.ant-pro-core-field-label-bordered.ant-pro-core-field-label-active{background-color:#fff}.ant-pro-field-index-column{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px}.ant-pro-field-index-column-border{color:#fff;font-size:12px;line-height:12px;background-color:#314659;border-radius:9px}.ant-pro-field-index-column-border.top-three{background-color:#979797}.ant-pro-table-dropdown{width:auto}.ant-pro-select-item-option-content-light{color:var(--ant-primary-color)}.ant-pro-select-item-option-content{flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-pro-field-dropdown{width:auto}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field{max-width:100%}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-xs{width:104px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-s{width:216px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-sm{width:216px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-m{width:328px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-md{width:328px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-l{width:440px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-lg{width:440px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-xl{width:552px}.ant-pro-field-select-light-select .ant-select{position:absolute;width:153px;height:28px;visibility:hidden}.ant-pro-field-select-light-select .ant-select-selector{height:28px}.ant-pro-field-select-light-select.ant-pro-field-select-light-select-searchable .ant-select{width:200px}.ant-pro-field-select-light-select.ant-pro-field-select-light-select-searchable .ant-select-selector{height:28px}.ant-pro-form-group-title{margin-bottom:16px;font-weight:700}.ant-pro-form-group-container{flex-wrap:wrap;max-width:100%}.ant-pro-form-group-container>div.ant-space-item{max-width:100%}.ant-pro-form-group-twoLine{display:block;width:100%}.ant-pro-form-group-twoLine .ant-pro-form-group-title{width:100%;margin:8px 0}.ant-pro-form-group-twoLine .ant-pro-form-group-container{padding-left:16px}.ant-pro-form-group-twoLine .ant-form-item,.ant-pro-form-group-twoLine .ant-space-item{width:100%}.ant-pro-form-group-twoLine .ant-form-item-control{display:flex;align-items:center;justify-content:flex-end}.ant-pro-form-group-twoLine .ant-form-item-control-input{align-items:center;justify-content:flex-end}.ant-pro-form-group-twoLine .ant-form-item-control-input-content{flex:none}.ant-pro-field-checkbox-vertical .ant-checkbox-group-item{display:flex;margin-right:0}.ant-pro-core-label-tip{display:inline-flex;align-items:center;max-width:100%}.ant-pro-core-label-tip-icon{display:block;margin-left:4px;cursor:pointer}.ant-pro-core-label-tip-icon:hover{color:var(--ant-primary-color-hover)}.ant-pro-core-label-tip-title{display:inline-flex;flex:1 1}.ant-pro-core-label-tip-subtitle{margin-left:8px;color:rgba(0,0,0,.45);font-weight:400;font-size:14px;white-space:nowrap}.ant-pro-core-label-tip-title-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.ant-form:not(.ant-form-horizontal) .ant-pro-form-list-item:not(.ant-pro-form-list-item-show-label) .ant-form-item-label{display:none}.ant-pro-form-list{max-width:100%}.ant-pro-form-list-item.ant-pro-form-list-item-show-label .ant-form-item-label{display:inline-block}.ant-pro-form-list-item:first-of-type div:first-of-type .ant-form-item .ant-form-item-label{display:inline-block}.ant-pro-form-list-action{display:flex;height:32px;margin-bottom:24px;line-height:32px}.ant-pro-form-list .ant-pro-card .ant-pro-card-extra .ant-pro-form-list-action{margin-bottom:0}.ant-pro-form-list-action-icon{margin-left:8px;cursor:pointer;transition:color .3s ease-in-out}.ant-pro-form-list-action-icon:hover{color:var(--ant-primary-color-hover)}.ant-pro-form-list-creator-button-top{margin-bottom:24px}.ant-pro-field-light-wrapper-collapse-label{padding:1}.ant-pro-field-light-wrapper-container .ant-form-item{margin-bottom:0}.ant-pro-core-field-dropdown-label{cursor:pointer}.ant-pro-core-field-dropdown-overlay{min-width:200px;margin-top:4px;background-color:#fff;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-pro-core-field-dropdown-content{padding:16px}.ant-pro-core-dropdown-footer{display:flex;justify-content:space-between;padding:16px 16px 16px 8px;border-top:1px solid rgba(0,0,0,.06)}.ant-pro-field-radio-vertical .ant-radio-wrapper{display:block;margin-right:0} \ No newline at end of file diff --git a/2077.802cd47b.async.js b/2077.802cd47b.async.js new file mode 100644 index 00000000..7800adf2 --- /dev/null +++ b/2077.802cd47b.async.js @@ -0,0 +1,7 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2077],{92077:function(T,P,O){var M,v;/*! @preserve +* numeral.js +* version : 2.0.6 +* author : Adam Draper +* license : MIT +* http://adamwdraper.github.com/Numeral-js/ +*/(function(n,m){M=m,v=typeof M=="function"?M.call(P,O,P,T):M,v!==void 0&&(T.exports=v)})(this,function(){var n,m,L="2.0.6",g={},N={},y={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:y.currentLocale,zeroFormat:y.zeroFormat,nullFormat:y.nullFormat,defaultFormat:y.defaultFormat,scalePercentBy100:y.scalePercentBy100};function E(e,r){this._input=e,this._value=r}return n=function(e){var r,l,i,t;if(n.isNumeral(e))r=e.value();else if(e===0||typeof e=="undefined")r=0;else if(e===null||m.isNaN(e))r=null;else if(typeof e=="string")if(c.zeroFormat&&e===c.zeroFormat)r=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(l in g)if(t=typeof g[l].regexps.unformat=="function"?g[l].regexps.unformat():g[l].regexps.unformat,t&&e.match(t)){i=g[l].unformat;break}i=i||n._.stringToNumber,r=i(e)}else r=Number(e)||null;return new E(e,r)},n.version=L,n.isNumeral=function(e){return e instanceof E},n._=m={numberToFormat:function(e,r,l){var i=N[n.options.currentLocale],t=!1,o=!1,a=0,u="",f=1e12,s=1e9,h=1e6,w=1e3,d="",B=!1,p,x,z,R,A,b,_,k,S,F;if(e=e||0,x=Math.abs(e),n._.includes(r,"(")?(t=!0,r=r.replace(/[\(|\)]/g,"")):(n._.includes(r,"+")||n._.includes(r,"-"))&&(k=n._.includes(r,"+")?r.indexOf("+"):e<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),n._.includes(r,"a")&&(p=r.match(/a(k|m|b|t)?/),p=p?p[1]:!1,n._.includes(r," a")&&(u=" "),r=r.replace(new RegExp(u+"a[kmbt]?"),""),x>=f&&!p||p==="t"?(u+=i.abbreviations.trillion,e=e/f):x=s&&!p||p==="b"?(u+=i.abbreviations.billion,e=e/s):x=h&&!p||p==="m"?(u+=i.abbreviations.million,e=e/h):(x=w&&!p||p==="k")&&(u+=i.abbreviations.thousand,e=e/w)),n._.includes(r,"[.]")&&(o=!0,r=r.replace("[.]",".")),b=e.toString().split(".")[0],_=r.split(".")[1],S=r.indexOf(","),a=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,_?(n._.includes(_,"[")?(_=_.replace("]",""),_=_.split("["),d=n._.toFixed(e,_[0].length+_[1].length,l,_[1].length)):d=n._.toFixed(e,_.length,l),b=d.split(".")[0],n._.includes(d,".")?d=i.delimiters.decimal+d.split(".")[1]:d="",o&&Number(d.slice(1))===0&&(d="")):b=n._.toFixed(e,0,l),u&&!p&&Number(b)>=1e3&&u!==i.abbreviations.trillion)switch(b=String(Number(b)/1e3),u){case i.abbreviations.thousand:u=i.abbreviations.million;break;case i.abbreviations.million:u=i.abbreviations.billion;break;case i.abbreviations.billion:u=i.abbreviations.trillion;break}if(n._.includes(b,"-")&&(b=b.slice(1),B=!0),b.length0;$--)b="0"+b;return S>-1&&(b=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i.delimiters.thousands)),r.indexOf(".")===0&&(b=""),F=b+d+(u||""),t?F=(t&&B?"(":"")+F+(t&&B?")":""):k>=0?F=k===0?(B?"-":"+")+F:F+(B?"-":"+"):B&&(F="-"+F),F},stringToNumber:function(e){var r=N[c.currentLocale],l=e,i={thousand:3,million:6,billion:9,trillion:12},t,o,a,u;if(c.zeroFormat&&e===c.zeroFormat)o=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)o=null;else{o=1,r.delimiters.decimal!=="."&&(e=e.replace(/\./g,"").replace(r.delimiters.decimal,"."));for(t in i)if(u=new RegExp("[^a-zA-Z]"+r.abbreviations[t]+"(?:\\)|(\\"+r.currency.symbol+")?(?:\\))?)?$"),l.match(u)){o*=Math.pow(10,i[t]);break}o*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),o*=Number(e)}return o},isNaN:function(e){return typeof e=="number"&&isNaN(e)},includes:function(e,r){return e.indexOf(r)!==-1},insert:function(e,r,l){return e.slice(0,l)+r+e.slice(l)},reduce:function(e,r){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof r!="function")throw new TypeError(r+" is not a function");var l=Object(e),i=l.length>>>0,t=0,o;if(arguments.length===3)o=arguments[2];else{for(;t=i)throw new TypeError("Reduce of empty array with no initial value");o=l[t++]}for(;ti?r:i},1)},toFixed:function(e,r,l,i){var t=e.toString().split("."),o=r-(i||0),a,u,f,s;return t.length===2?a=Math.min(Math.max(t[1].length,o),r):a=o,f=Math.pow(10,a),s=(l(e+"e+"+a)/f).toFixed(a),i>r-a&&(u=new RegExp("\\.?0{1,"+(i-(r-a))+"}$"),s=s.replace(u,"")),s}},n.options=c,n.formats=g,n.locales=N,n.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},n.localeData=function(e){if(!e)return N[c.currentLocale];if(e=e.toLowerCase(),!N[e])throw new Error("Unknown locale : "+e);return N[e]},n.reset=function(){for(var e in y)c[e]=y[e]},n.zeroFormat=function(e){c.zeroFormat=typeof e=="string"?e:null},n.nullFormat=function(e){c.nullFormat=typeof e=="string"?e:null},n.defaultFormat=function(e){c.defaultFormat=typeof e=="string"?e:"0.0"},n.register=function(e,r,l){if(r=r.toLowerCase(),this[e+"s"][r])throw new TypeError(r+" "+e+" already registered.");return this[e+"s"][r]=l,l},n.validate=function(e,r){var l,i,t,o,a,u,f,s;if(typeof e!="string"&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),e.match(/^\d+$/))return!0;if(e==="")return!1;try{f=n.localeData(r)}catch(h){f=n.localeData(n.locale())}return t=f.currency.symbol,a=f.abbreviations,l=f.delimiters.decimal,f.delimiters.thousands==="."?i="\\.":i=f.delimiters.thousands,s=e.match(/^[^\d]+/),s!==null&&(e=e.substr(1),s[0]!==t)||(s=e.match(/[^\d]+$/),s!==null&&(e=e.slice(0,-1),s[0]!==a.thousand&&s[0]!==a.million&&s[0]!==a.billion&&s[0]!==a.trillion))?!1:(u=new RegExp(i+"{2}"),e.match(/[^\d.,]/g)?!1:(o=e.split(l),o.length>2?!1:o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u):o[0].length===1?!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)))},n.fn=E.prototype={clone:function(){return n(this)},format:function(e,r){var l=this._value,i=e||c.defaultFormat,t,o,a;if(r=r||Math.round,l===0&&c.zeroFormat!==null)o=c.zeroFormat;else if(l===null&&c.nullFormat!==null)o=c.nullFormat;else{for(t in g)if(i.match(g[t].regexps.format)){a=g[t].format;break}a=a||n._.numberToFormat,o=a(l,i,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=m.correctionFactor.call(null,this._value,e);function l(i,t,o,a){return i+Math.round(r*t)}return this._value=m.reduce([this._value,e],l,0)/r,this},subtract:function(e){var r=m.correctionFactor.call(null,this._value,e);function l(i,t,o,a){return i-Math.round(r*t)}return this._value=m.reduce([e],l,Math.round(this._value*r))/r,this},multiply:function(e){function r(l,i,t,o){var a=m.correctionFactor(l,i);return Math.round(l*a)*Math.round(i*a)/Math.round(a*a)}return this._value=m.reduce([this._value,e],r,1),this},divide:function(e){function r(l,i,t,o){var a=m.correctionFactor(l,i);return Math.round(l*a)/Math.round(i*a)}return this._value=m.reduce([this._value,e],r),this},difference:function(e){return Math.abs(n(this._value).subtract(e).value())}},n.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var r=e%10;return~~(e%100/10)==1?"th":r===1?"st":r===2?"nd":r===3?"rd":"th"},currency:{symbol:"$"}}),function(){n.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,r,l){var i=n._.includes(r," BPS")?" ":"",t;return e=e*1e4,r=r.replace(/\s?BPS/,""),t=n._.numberToFormat(e,r,l),n._.includes(t,")")?(t=t.split(""),t.splice(-1,0,i+"BPS"),t=t.join("")):t=t+i+"BPS",t},unformat:function(e){return+(n._.stringToNumber(e)*1e-4).toFixed(15)}})}(),function(){var e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},l=e.suffixes.concat(r.suffixes.filter(function(t){return e.suffixes.indexOf(t)<0})),i=l.join("|");i="("+i.replace("B","B(?!PS)")+")",n.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,o,a){var u,f=n._.includes(o,"ib")?r:e,s=n._.includes(o," b")||n._.includes(o," ib")?" ":"",h,w,d;for(o=o.replace(/\s?i?b/,""),h=0;h<=f.suffixes.length;h++)if(w=Math.pow(f.base,h),d=Math.pow(f.base,h+1),t===null||t===0||t>=w&&t0&&(t=t/w);break}return u=n._.numberToFormat(t,o,a),u+s},unformat:function(t){var o=n._.stringToNumber(t),a,u;if(o){for(a=e.suffixes.length-1;a>=0;a--){if(n._.includes(t,e.suffixes[a])){u=Math.pow(e.base,a);break}if(n._.includes(t,r.suffixes[a])){u=Math.pow(r.base,a);break}}o*=u||1}return o}})}(),function(){n.register("format","currency",{regexps:{format:/(\$)/},format:function(e,r,l){var i=n.locales[n.options.currentLocale],t={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]},o,a,u;for(r=r.replace(/\s?\$\s?/,""),o=n._.numberToFormat(e,r,l),e>=0?(t.before=t.before.replace(/[\-\(]/,""),t.after=t.after.replace(/[\-\)]/,"")):e<0&&!n._.includes(t.before,"-")&&!n._.includes(t.before,"(")&&(t.before="-"+t.before),u=0;u=0;u--)switch(a=t.after[u],a){case"$":o=u===t.after.length-1?o+i.currency.symbol:n._.insert(o,i.currency.symbol,-(t.after.length-(1+u)));break;case" ":o=u===t.after.length-1?o+" ":n._.insert(o," ",-(t.after.length-(1+u)+i.currency.symbol.length-1));break}return o}})}(),function(){n.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,r,l){var i,t=typeof e=="number"&&!n._.isNaN(e)?e.toExponential():"0e+0",o=t.split("e");return r=r.replace(/e[\+|\-]{1}0/,""),i=n._.numberToFormat(Number(o[0]),r,l),i+"e"+o[1]},unformat:function(e){var r=n._.includes(e,"e+")?e.split("e+"):e.split("e-"),l=Number(r[0]),i=Number(r[1]);i=n._.includes(e,"e-")?i*=-1:i;function t(o,a,u,f){var s=n._.correctionFactor(o,a),h=o*s*(a*s)/(s*s);return h}return n._.reduce([l,Math.pow(10,i)],t,1)}})}(),function(){n.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,r,l){var i=n.locales[n.options.currentLocale],t,o=n._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),o+=i.ordinal(e),t=n._.numberToFormat(e,r,l),t+o}})}(),function(){n.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,r,l){var i=n._.includes(r," %")?" ":"",t;return n.options.scalePercentBy100&&(e=e*100),r=r.replace(/\s?\%/,""),t=n._.numberToFormat(e,r,l),n._.includes(t,")")?(t=t.split(""),t.splice(-1,0,i+"%"),t=t.join("")):t=t+i+"%",t},unformat:function(e){var r=n._.stringToNumber(e);return n.options.scalePercentBy100?r*.01:r}})}(),function(){n.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,r,l){var i=Math.floor(e/60/60),t=Math.floor((e-i*60*60)/60),o=Math.round(e-i*60*60-t*60);return i+":"+(t<10?"0"+t:t)+":"+(o<10?"0"+o:o)},unformat:function(e){var r=e.split(":"),l=0;return r.length===3?(l=l+Number(r[0])*60*60,l=l+Number(r[1])*60,l=l+Number(r[2])):r.length===2&&(l=l+Number(r[0])*60,l=l+Number(r[1])),Number(l)}})}(),n})}}]); diff --git a/3233.26a62287.chunk.css b/3233.26a62287.chunk.css new file mode 100644 index 00000000..498aa723 --- /dev/null +++ b/3233.26a62287.chunk.css @@ -0,0 +1 @@ +.ant-card{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;background:#fff;border-radius:2px}.ant-card-rtl{direction:rtl}.ant-card-hoverable{cursor:pointer;transition:box-shadow .3s,border-color .3s}.ant-card-hoverable:hover{border-color:transparent;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-card-bordered{border:1px solid rgba(0,0,0,.06)}.ant-card-head{min-height:48px;margin-bottom:-1px;padding:0 24px;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;background:transparent;border-bottom:1px solid rgba(0,0,0,.06);border-radius:2px 2px 0 0}.ant-card-head:before{display:table;content:""}.ant-card-head:after{display:table;clear:both;content:""}.ant-card-head-wrapper{display:flex;align-items:center}.ant-card-head-title{display:inline-block;flex:1 1;padding:16px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-card-head-title>.ant-typography,.ant-card-head-title>.ant-typography-edit-content{left:0;margin-top:0;margin-bottom:0}.ant-card-head .ant-tabs-top{clear:both;margin-bottom:-17px;color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.ant-card-head .ant-tabs-top-bar{border-bottom:1px solid rgba(0,0,0,.06)}.ant-card-extra{margin-left:auto;padding:16px 0;color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.ant-card-rtl .ant-card-extra{margin-right:auto;margin-left:0}.ant-card-body{padding:24px}.ant-card-body:before{display:table;content:""}.ant-card-body:after{display:table;clear:both;content:""}.ant-card-contain-grid .ant-card-body{display:flex;flex-wrap:wrap}.ant-card-contain-grid:not(.ant-card-loading) .ant-card-body{margin:-1px 0 0 -1px;padding:0}.ant-card-grid{width:33.33%;padding:24px;border:0;border-radius:0;box-shadow:1px 0 0 0 rgba(0,0,0,.06),0 1px 0 0 rgba(0,0,0,.06),1px 1px 0 0 rgba(0,0,0,.06),inset 1px 0 0 0 rgba(0,0,0,.06),inset 0 1px 0 0 rgba(0,0,0,.06);transition:all .3s}.ant-card-grid-hoverable:hover{position:relative;z-index:1;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-card-contain-tabs>.ant-card-head .ant-card-head-title{min-height:32px;padding-bottom:0}.ant-card-contain-tabs>.ant-card-head .ant-card-extra{padding-bottom:0}.ant-card-bordered .ant-card-cover{margin-top:-1px;margin-right:-1px;margin-left:-1px}.ant-card-cover>*{display:block;width:100%}.ant-card-cover img{border-radius:2px 2px 0 0}.ant-card-actions{display:flex;margin:0;padding:0;list-style:none;background:#fff;border-top:1px solid rgba(0,0,0,.06)}.ant-card-actions:before{display:table;content:""}.ant-card-actions:after{display:table;clear:both;content:""}.ant-card-actions>li{margin:12px 0;color:rgba(0,0,0,.45);text-align:center}.ant-card-actions>li>span{position:relative;display:block;min-width:32px;font-size:14px;line-height:1.5715;cursor:pointer}.ant-card-actions>li>span:hover{color:#1890ff;color:var(--ant-primary-color);transition:color .3s}.ant-card-actions>li>span>.anticon,.ant-card-actions>li>span a:not(.ant-btn){display:inline-block;width:100%;color:rgba(0,0,0,.45);line-height:22px;transition:color .3s}.ant-card-actions>li>span>.anticon:hover,.ant-card-actions>li>span a:not(.ant-btn):hover{color:#1890ff;color:var(--ant-primary-color)}.ant-card-actions>li>span>.anticon{font-size:16px;line-height:22px}.ant-card-actions>li:not(:last-child){border-right:1px solid rgba(0,0,0,.06)}.ant-card-rtl .ant-card-actions>li:not(:last-child){border-right:none;border-left:1px solid rgba(0,0,0,.06)}.ant-card-type-inner .ant-card-head{padding:0 24px;background:#fafafa}.ant-card-type-inner .ant-card-head-title{padding:12px 0;font-size:14px}.ant-card-type-inner .ant-card-body{padding:16px 24px}.ant-card-type-inner .ant-card-extra{padding:13.5px 0}.ant-card-meta{display:flex;margin:-4px 0}.ant-card-meta:before{display:table;content:""}.ant-card-meta:after{display:table;clear:both;content:""}.ant-card-meta-avatar{padding-right:16px}.ant-card-rtl .ant-card-meta-avatar{padding-right:0;padding-left:16px}.ant-card-meta-detail{overflow:hidden}.ant-card-meta-detail>div:not(:last-child){margin-bottom:8px}.ant-card-meta-title{overflow:hidden;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;white-space:nowrap;text-overflow:ellipsis}.ant-card-meta-description{color:rgba(0,0,0,.45)}.ant-card-loading{overflow:hidden}.ant-card-loading .ant-card-body{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-card-small>.ant-card-head{min-height:36px;padding:0 12px;font-size:14px}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-head-title{padding:8px 0}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-extra{padding:8px 0;font-size:14px}.ant-card-small>.ant-card-body{padding:12px}.ant-skeleton{display:table;width:100%}.ant-skeleton-header{display:table-cell;padding-right:16px;vertical-align:top}.ant-skeleton-header .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-content{display:table-cell;width:100%;vertical-align:top}.ant-skeleton-content .ant-skeleton-title{width:100%;height:16px;background:hsla(0,0%,74.5%,.2);border-radius:4px}.ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:24px}.ant-skeleton-content .ant-skeleton-paragraph{padding:0}.ant-skeleton-content .ant-skeleton-paragraph>li{width:100%;height:16px;list-style:none;background:hsla(0,0%,74.5%,.2);border-radius:4px}.ant-skeleton-content .ant-skeleton-paragraph>li:last-child:not(:first-child):not(:nth-child(2)){width:61%}.ant-skeleton-content .ant-skeleton-paragraph>li+li{margin-top:16px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title{margin-top:12px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:28px}.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title{border-radius:100px}.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li:after,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-button{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-button:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-input{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-input:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-image{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-image:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-block{width:100%}.ant-skeleton.ant-skeleton-block .ant-skeleton-button{width:100%}.ant-skeleton.ant-skeleton-block .ant-skeleton-input{width:100%}.ant-skeleton-element{display:inline-block;width:auto}.ant-skeleton-element .ant-skeleton-button{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);border-radius:2px;width:64px;min-width:64px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle{width:32px;min-width:32px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round{border-radius:32px}.ant-skeleton-element .ant-skeleton-button-lg{width:80px;min-width:80px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle{width:40px;min-width:40px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round{border-radius:40px}.ant-skeleton-element .ant-skeleton-button-sm{width:48px;min-width:48px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle{width:24px;min-width:24px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round{border-radius:24px}.ant-skeleton-element .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-input{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:160px;min-width:160px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-input-lg{width:200px;min-width:200px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-input-sm{width:120px;min-width:120px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-image{display:flex;align-items:center;justify-content:center;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:96px;height:96px;line-height:96px}.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-image-path{fill:#bfbfbf}.ant-skeleton-element .ant-skeleton-image-svg{width:48px;height:48px;line-height:48px;max-width:192px;max-height:192px}.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle{border-radius:50%}@keyframes ant-skeleton-loading{0%{transform:translateX(-37.5%)}to{transform:translateX(37.5%)}}.ant-skeleton-rtl{direction:rtl}.ant-skeleton-rtl .ant-skeleton-header{padding-right:0;padding-left:16px}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title{animation-name:ant-skeleton-loading-rtl}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar{animation-name:ant-skeleton-loading-rtl}@keyframes ant-skeleton-loading-rtl{0%{background-position:0 50%}to{background-position:100% 50%}}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-statistic{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum"}.ant-statistic-title{margin-bottom:4px;color:rgba(0,0,0,.45);font-size:14px}.ant-statistic-skeleton{padding-top:16px}.ant-statistic-content{color:rgba(0,0,0,.85);font-size:24px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}.ant-statistic-content-value{display:inline-block;direction:ltr}.ant-statistic-content-prefix,.ant-statistic-content-suffix{display:inline-block}.ant-statistic-content-prefix{margin-right:4px}.ant-statistic-content-suffix{margin-left:4px}.ant-statistic-rtl{direction:rtl}.ant-statistic-rtl .ant-statistic-content-prefix{margin-right:0;margin-left:4px}.ant-statistic-rtl .ant-statistic-content-suffix{margin-right:4px;margin-left:0} \ No newline at end of file diff --git a/3233.57c816f6.async.js b/3233.57c816f6.async.js new file mode 100644 index 00000000..4f4daf32 --- /dev/null +++ b/3233.57c816f6.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3233],{81903:function(){},7277:function(u,d,t){"use strict";t.d(d,{Z:function(){return Y}});var o=t(96156),a=t(22122),e=t(67294),r=t(94184),n=t.n(r),i=t(53124),c=t(33860),E=t(11726),m=t.n(E),p=function(f){var l=f.value,s=f.formatter,v=f.precision,x=f.decimalSeparator,S=f.groupSeparator,R=S===void 0?"":S,g=f.prefixCls,A;if(typeof s=="function")A=s(l);else{var D=String(l),y=D.match(/^(-?)(\d*)(\.(\d+))?$/);if(!y||D==="-")A=D;else{var O=y[1],I=y[2]||"0",C=y[4]||"";I=I.replace(/\B(?=(\d{3})+(?!\d))/g,R),typeof v=="number"&&(C=m()(C,v,"0").slice(0,v>0?v:0)),C&&(C="".concat(x).concat(C)),A=[e.createElement("span",{key:"int",className:"".concat(g,"-content-value-int")},O,I),C&&e.createElement("span",{key:"decimal",className:"".concat(g,"-content-value-decimal")},C)]}}return e.createElement("span",{className:"".concat(g,"-content-value")},A)},M=p,T=function(f){var l=f.prefixCls,s=f.className,v=f.style,x=f.valueStyle,S=f.value,R=S===void 0?0:S,g=f.title,A=f.valueRender,D=f.prefix,y=f.suffix,O=f.loading,I=f.direction,C=f.onMouseEnter,B=f.onMouseLeave,$=e.createElement(M,(0,a.Z)({},f,{value:R})),Q=n()(l,(0,o.Z)({},"".concat(l,"-rtl"),I==="rtl"),s);return e.createElement("div",{className:Q,style:v,onMouseEnter:C,onMouseLeave:B},g&&e.createElement("div",{className:"".concat(l,"-title")},g),e.createElement(c.Z,{paragraph:!1,loading:O,className:"".concat(l,"-skeleton")},e.createElement("div",{style:x,className:"".concat(l,"-content")},D&&e.createElement("span",{className:"".concat(l,"-content-prefix")},D),A?A($):$,y&&e.createElement("span",{className:"".concat(l,"-content-suffix")},y))))};T.defaultProps={decimalSeparator:".",groupSeparator:",",loading:!1};var P=(0,i.PG)({prefixCls:"statistic"})(T),h=P,Z=t(6610),b=t(5991),L=t(10379),U=t(60446),W=t(28481),z=t(32475),F=t.n(z),j=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function J(N,f){var l=N,s=/\[[^\]]*]/g,v=(f.match(s)||[]).map(function(g){return g.slice(1,-1)}),x=f.replace(s,"[]"),S=j.reduce(function(g,A){var D=(0,W.Z)(A,2),y=D[0],O=D[1];if(g.indexOf(y)!==-1){var I=Math.floor(l/O);return l-=I*O,g.replace(new RegExp("".concat(y,"+"),"g"),function(C){var B=C.length;return F()(I.toString(),B,"0")})}return g},x),R=0;return S.replace(s,function(){var g=v[R];return R+=1,g})}function K(N,f){var l=f.format,s=l===void 0?"":l,v=new Date(N).getTime(),x=Date.now(),S=Math.max(v-x,0);return J(S,s)}var w=t(96159),G=1e3/30;function H(N){return new Date(N).getTime()}var V=function(N){(0,L.Z)(l,N);var f=(0,U.Z)(l);function l(){var s;return(0,Z.Z)(this,l),s=f.apply(this,arguments),s.syncTimer=function(){var v=s.props.value,x=H(v);x>=Date.now()?s.startTimer():s.stopTimer()},s.startTimer=function(){if(!s.countdownId){var v=s.props,x=v.onChange,S=v.value,R=H(S);s.countdownId=window.setInterval(function(){s.forceUpdate(),x&&R>Date.now()&&x(R-Date.now())},G)}},s.stopTimer=function(){var v=s.props,x=v.onFinish,S=v.value;if(s.countdownId){clearInterval(s.countdownId),s.countdownId=void 0;var R=H(S);x&&Rd)return r;do e%2&&(r+=a),e=t(e/2),e&&(a+=a);while(e);return r}u.exports=o},14259:function(u){function d(t,o,a){var e=-1,r=t.length;o<0&&(o=-o>r?0:r+o),a=a>r?r:a,a<0&&(a+=r),r=o>a?0:a-o>>>0,o>>>=0;for(var n=Array(r);++e=i?e:o(e,r,n)}u.exports=a},78302:function(u,d,t){var o=t(18190),a=t(80531),e=t(40180),r=t(62689),n=t(88016),i=t(83140),c=Math.ceil;function E(m,p){p=p===void 0?" ":a(p);var M=p.length;if(M<2)return M?o(p,m):p;var T=o(p,c(m/n(p)));return r(p)?e(i(T),0,m).join(""):T.slice(0,m)}u.exports=E},62689:function(u){var d="\\ud800-\\udfff",t="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",e=t+o+a,r="\\ufe0e\\ufe0f",n="\\u200d",i=RegExp("["+n+d+e+r+"]");function c(E){return i.test(E)}u.exports=c},88016:function(u,d,t){var o=t(48983),a=t(62689),e=t(21903);function r(n){return a(n)?e(n):o(n)}u.exports=r},83140:function(u,d,t){var o=t(44286),a=t(62689),e=t(676);function r(n){return a(n)?e(n):o(n)}u.exports=r},21903:function(u){var d="\\ud800-\\udfff",t="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",e=t+o+a,r="\\ufe0e\\ufe0f",n="["+d+"]",i="["+e+"]",c="\\ud83c[\\udffb-\\udfff]",E="(?:"+i+"|"+c+")",m="[^"+d+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",M="[\\ud800-\\udbff][\\udc00-\\udfff]",T="\\u200d",P=E+"?",h="["+r+"]?",Z="(?:"+T+"(?:"+[m,p,M].join("|")+")"+h+P+")*",b=h+P+Z,L="(?:"+[m+i+"?",i,p,M,n].join("|")+")",U=RegExp(c+"(?="+c+")|"+L+b,"g");function W(z){for(var F=U.lastIndex=0;U.test(z);)++F;return F}u.exports=W},676:function(u){var d="\\ud800-\\udfff",t="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",e=t+o+a,r="\\ufe0e\\ufe0f",n="["+d+"]",i="["+e+"]",c="\\ud83c[\\udffb-\\udfff]",E="(?:"+i+"|"+c+")",m="[^"+d+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",M="[\\ud800-\\udbff][\\udc00-\\udfff]",T="\\u200d",P=E+"?",h="["+r+"]?",Z="(?:"+T+"(?:"+[m,p,M].join("|")+")"+h+P+")*",b=h+P+Z,L="(?:"+[m+i+"?",i,p,M,n].join("|")+")",U=RegExp(c+"(?="+c+")|"+L+b,"g");function W(z){return z.match(U)||[]}u.exports=W},11726:function(u,d,t){var o=t(78302),a=t(88016),e=t(40554),r=t(79833);function n(i,c,E){i=r(i),c=e(c);var m=c?a(i):0;return c&&m=r}function Gt(e){return e&&(0,le.Z)(e)==="object"&&!Array.isArray(e)&&!n.isValidElement(e)}function Zt(e){return typeof e=="string"?!0:(0,st.Yr)(e)}var Xt=function(t){var r=t.ellipsis,o=t.rowType,a=t.children,l,s=r===!0?{showTitle:!0}:r;return s&&(s.showTitle||o==="header")&&(typeof a=="string"||typeof a=="number"?l=a.toString():n.isValidElement(a)&&typeof a.props.children=="string"&&(l=a.props.children)),l};function Xn(e,t){var r,o,a,l=e.prefixCls,s=e.className,i=e.record,c=e.index,v=e.renderIndex,m=e.dataIndex,u=e.render,f=e.children,p=e.component,g=p===void 0?"td":p,x=e.colSpan,C=e.rowSpan,y=e.fixLeft,S=e.fixRight,I=e.firstFixLeft,K=e.lastFixLeft,A=e.firstFixRight,q=e.lastFixRight,_=e.appendNode,D=e.additionalProps,F=D===void 0?{}:D,ie=e.ellipsis,B=e.align,z=e.rowType,M=e.isSticky,L=e.hovering,V=e.onHover,N="".concat(l,"-cell"),$=n.useContext(Gn),k=n.useContext(pt),we=n.useMemo(function(){if(vt(f))return[f];var H=dt(i,m),P=H,E=void 0;if(u){var Z=u(H,i,v);Gt(Z)?(P=Z.children,E=Z.props,$.renderWithProps=!0):P=Z}return[P,E]},[$.renderWithProps?Math.random():0,f,m,$,i,u,v]),ye=(0,T.Z)(we,2),Le=ye[0],Ee=ye[1],te=Le;(0,le.Z)(te)==="object"&&!Array.isArray(te)&&!n.isValidElement(te)&&(te=null),ie&&(K||A)&&(te=n.createElement("span",{className:"".concat(N,"-content")},te));var ve=Ee||{},Ve=ve.colSpan,Fe=ve.rowSpan,xe=ve.style,Ae=ve.className,Ne=(0,hn.Z)(ve,Vt),me=(r=Ve!==void 0?Ve:x)!==null&&r!==void 0?r:1,He=(o=Fe!==void 0?Fe:C)!==null&&o!==void 0?o:1;if(me===0||He===0)return null;var Y={},be=typeof y=="number"&&k,de=typeof S=="number"&&k;be&&(Y.position="sticky",Y.left=y),de&&(Y.position="sticky",Y.right=S);var pe={};B&&(pe.textAlign=B);var Ke=function(P){var E;i&&V(c,c+He-1),F==null||(E=F.onMouseEnter)===null||E===void 0||E.call(F,P)},ke=function(P){var E;i&&V(-1,-1),F==null||(E=F.onMouseLeave)===null||E===void 0||E.call(F,P)},ze=Xt({rowType:z,ellipsis:ie,children:Le}),j=(0,w.Z)((0,w.Z)((0,w.Z)({title:ze},Ne),F),{},{colSpan:me!==1?me:null,rowSpan:He!==1?He:null,className:X()(N,s,(a={},(0,O.Z)(a,"".concat(N,"-fix-left"),be&&k),(0,O.Z)(a,"".concat(N,"-fix-left-first"),I&&k),(0,O.Z)(a,"".concat(N,"-fix-left-last"),K&&k),(0,O.Z)(a,"".concat(N,"-fix-right"),de&&k),(0,O.Z)(a,"".concat(N,"-fix-right-first"),A&&k),(0,O.Z)(a,"".concat(N,"-fix-right-last"),q&&k),(0,O.Z)(a,"".concat(N,"-ellipsis"),ie),(0,O.Z)(a,"".concat(N,"-with-append"),_),(0,O.Z)(a,"".concat(N,"-fix-sticky"),(be||de)&&M&&k),(0,O.Z)(a,"".concat(N,"-row-hover"),!Ee&&L),a),F.className,Ae),style:(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},F.style),pe),Y),xe),onMouseEnter:Ke,onMouseLeave:ke,ref:Zt(g)?t:null});return n.createElement(g,j,_,te)}var ht=n.forwardRef(Xn);ht.displayName="Cell";var Yt=["expanded","className","hovering"],b=n.memo(ht,function(e,t){return t.shouldCellUpdate?Yt.every(function(r){return e[r]===t[r]})&&!t.shouldCellUpdate(t.record,e.record):An()(e,t)}),ae=n.forwardRef(function(e,t){var r=n.useContext(Ct),o=r.onHover,a=r.startRow,l=r.endRow,s=e.index,i=e.additionalProps,c=i===void 0?{}:i,v=e.colSpan,m=e.rowSpan,u=c.colSpan,f=c.rowSpan,p=v!=null?v:u,g=m!=null?m:f,x=jt(s,g||1,a,l);return n.createElement(b,(0,h.Z)({},e,{colSpan:p,rowSpan:g,hovering:x,ref:t,onHover:o}))});ae.displayName="WrappedCell";var Q=ae,oe=n.createContext(null),se=oe;function Me(e,t,r,o,a){var l=r[e]||{},s=r[t]||{},i,c;l.fixed==="left"?i=o.left[e]:s.fixed==="right"&&(c=o.right[t]);var v=!1,m=!1,u=!1,f=!1,p=r[t+1],g=r[e-1];if(a==="rtl"){if(i!==void 0){var x=g&&g.fixed==="left";f=!x}else if(c!==void 0){var C=p&&p.fixed==="right";u=!C}}else if(i!==void 0){var y=p&&p.fixed==="left";v=!y}else if(c!==void 0){var S=g&&g.fixed==="right";m=!S}return{fixLeft:i,fixRight:c,lastFixLeft:v,firstFixRight:m,lastFixRight:u,firstFixLeft:f,isSticky:o.isSticky}}function U(e){var t=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,s=e.onHeaderRow,i=e.index,c=n.useContext(se),v=c.prefixCls,m=c.direction,u;s&&(u=s(t.map(function(p){return p.column}),i));var f=Ye(t.map(function(p){return p.column}));return n.createElement(a,u,t.map(function(p,g){var x=p.column,C=Me(p.colStart,p.colEnd,o,r,m),y;return x&&x.onHeaderCell&&(y=p.column.onHeaderCell(x)),n.createElement(Q,(0,h.Z)({},p,{ellipsis:x.ellipsis,align:x.align,component:l,prefixCls:v,key:f[g]},C,{additionalProps:y,rowType:"header"}))}))}U.displayName="HeaderRow";var tn=U;function De(e){var t=[];function r(s,i){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var v=i,m=s.filter(Boolean).map(function(u){var f={key:u.key,className:u.className||"",children:u.title,column:u,colStart:v},p=1,g=u.children;return g&&g.length>0&&(p=r(g,v,c+1).reduce(function(x,C){return x+C},0),f.hasSubColumns=!0),"colSpan"in u&&(p=u.colSpan),"rowSpan"in u&&(f.rowSpan=u.rowSpan),f.colSpan=p,f.colEnd=f.colStart+p-1,t[c].push(f),v+=p,p});return m}r(e,0);for(var o=t.length,a=function(i){t[i].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=o-i)})},l=0;l1?Ke-1:0),ze=1;ze0?[].concat((0,ne.Z)(t),(0,ne.Z)(Qn(l).map(function(s){return(0,w.Z)({fixed:a},s)}))):[].concat((0,ne.Z)(t),[(0,w.Z)((0,w.Z)({},r),{},{fixed:a})])},[])}function St(e){for(var t=!0,r=0;r=0;l-=1){var s=e[l];if(a&&s.fixed!=="right")a=!1;else if(!a&&s.fixed==="right"){warning(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function qn(e){return e.map(function(t){var r=t.fixed,o=(0,hn.Z)(t,nr),a=r;return r==="left"?a="right":r==="right"&&(a="left"),(0,w.Z)({fixed:a},o)})}function _n(e,t){var r=e.prefixCls,o=e.columns,a=e.children,l=e.expandable,s=e.expandedKeys,i=e.getRowKey,c=e.onTriggerExpand,v=e.expandIcon,m=e.rowExpandable,u=e.expandIconColumnIndex,f=e.direction,p=e.expandRowByClick,g=e.columnWidth,x=e.fixed,C=n.useMemo(function(){return o||_e(a)},[o,a]),y=n.useMemo(function(){if(l){var K,A=C.slice();if(!A.includes(Te)){var q=u||0;q>=0&&A.splice(q,0,Te)}var _=A.indexOf(Te);A=A.filter(function(B,z){return B!==Te||z===_});var D=C[_],F;(x==="left"||x)&&!u?F="left":(x==="right"||x)&&u===C.length?F="right":F=D?D.fixed:null;var ie=(K={},(0,O.Z)(K,an,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,O.Z)(K,"title",""),(0,O.Z)(K,"fixed",F),(0,O.Z)(K,"className","".concat(r,"-row-expand-icon-cell")),(0,O.Z)(K,"width",g),(0,O.Z)(K,"render",function(z,M,L){var V=i(M,L),N=s.has(V),$=m?m(M):!0,k=v({prefixCls:r,expanded:N,expandable:$,record:M,onExpand:c});return p?n.createElement("span",{onClick:function(ye){return ye.stopPropagation()}},k):k}),K);return A.map(function(B){return B===Te?ie:B})}return C.filter(function(B){return B!==Te})},[l,C,i,s,v,f]),S=n.useMemo(function(){var K=y;return t&&(K=t(K)),K.length||(K=[{render:function(){return null}}]),K},[t,y,f]),I=n.useMemo(function(){return f==="rtl"?qn(Qn(S)):Qn(S)},[S,f]);return[S,I]}var tr=_n;function Ot(e){var t=(0,n.useRef)(e),r=(0,n.useState)({}),o=(0,T.Z)(r,2),a=o[1],l=(0,n.useRef)(null),s=(0,n.useRef)([]);function i(c){s.current.push(c);var v=Promise.resolve();l.current=v,v.then(function(){if(l.current===v){var m=s.current,u=t.current;s.current=[],m.forEach(function(f){t.current=f(t.current)}),l.current=null,u!==t.current&&a({})}})}return(0,n.useEffect)(function(){return function(){l.current=null}},[]),[t.current,i]}function on(e){var t=(0,n.useRef)(e||null),r=(0,n.useRef)();function o(){window.clearTimeout(r.current)}function a(s){t.current=s,o(),r.current=window.setTimeout(function(){t.current=null,r.current=void 0},100)}function l(){return t.current}return(0,n.useEffect)(function(){return o},[]),[a,l]}function ca(e,t,r){var o=(0,n.useMemo)(function(){for(var a=[],l=[],s=0,i=0,c=0;c=0;i-=1){var c=t[i],v=r&&r[i],m=v&&v[an];if(c||m||s){var u=m||{},f=u.columnType,p=(0,hn.Z)(u,ua);a.unshift(n.createElement("col",(0,h.Z)({key:i,style:{width:c}},p))),s=!0}}return n.createElement("colgroup",null,a)}var Er=da;function fa(e){var t=e.className,r=e.children;return n.createElement("div",{className:t},r)}var Rr=fa,va=n.createContext({}),Zr=va;function ma(e){var t=e.className,r=e.index,o=e.children,a=e.colSpan,l=a===void 0?1:a,s=e.rowSpan,i=e.align,c=n.useContext(se),v=c.prefixCls,m=c.direction,u=n.useContext(Zr),f=u.scrollColumnIndex,p=u.stickyOffsets,g=u.flattenColumns,x=r+l-1,C=x+1===f?l+1:l,y=Me(r,r+C-1,g,p,m);return n.createElement(Q,(0,h.Z)({className:t,index:r,component:"td",prefixCls:v,record:null,dataIndex:null,align:i,colSpan:C,rowSpan:s,render:function(){return o}},y))}var pa=["children"];function Ca(e){var t=e.children,r=(0,hn.Z)(e,pa);return n.createElement("tr",r,t)}function rr(e){var t=e.children;return t}rr.Row=Ca,rr.Cell=ma;var wr=rr;function ha(e){var t=e.children,r=e.stickyOffsets,o=e.flattenColumns,a=n.useContext(se),l=a.prefixCls,s=o.length-1,i=o[s],c=n.useMemo(function(){return{stickyOffsets:r,flattenColumns:o,scrollColumnIndex:(i==null?void 0:i.scrollbar)?s:null}},[i,o,s,r]);return n.createElement(Zr.Provider,{value:c},n.createElement("tfoot",{className:"".concat(l,"-summary")},t))}var bt=ha,Nr=wr;function ya(e){var t,r=e.prefixCls,o=e.record,a=e.onExpand,l=e.expanded,s=e.expandable,i="".concat(r,"-row-expand-icon");if(!s)return n.createElement("span",{className:X()(i,"".concat(r,"-row-spaced"))});var c=function(m){a(o,m),m.stopPropagation()};return n.createElement("span",{className:X()(i,(t={},(0,O.Z)(t,"".concat(r,"-row-expanded"),l),(0,O.Z)(t,"".concat(r,"-row-collapsed"),!l),t)),onClick:c})}function xa(e,t,r){var o=[];function a(l){(l||[]).forEach(function(s,i){o.push(t(s,i)),a(s[r])})}return a(e),o}var Mt=d(64019),Pr=d(27678),ga=function(t,r){var o,a,l=t.scrollBodyRef,s=t.onScroll,i=t.offsetScroll,c=t.container,v=n.useContext(se),m=v.prefixCls,u=((o=l.current)===null||o===void 0?void 0:o.scrollWidth)||0,f=((a=l.current)===null||a===void 0?void 0:a.clientWidth)||0,p=u&&f*(f/u),g=n.useRef(),x=Ot({scrollLeft:0,isHiddenScrollBar:!1}),C=(0,T.Z)(x,2),y=C[0],S=C[1],I=n.useRef({delta:0,x:0}),K=n.useState(!1),A=(0,T.Z)(K,2),q=A[0],_=A[1],D=function(){_(!1)},F=function(L){L.persist(),I.current.delta=L.pageX-y.scrollLeft,I.current.x=0,_(!0),L.preventDefault()},ie=function(L){var V,N=L||((V=window)===null||V===void 0?void 0:V.event),$=N.buttons;if(!q||$===0){q&&_(!1);return}var k=I.current.x+L.pageX-I.current.x-I.current.delta;k<=0&&(k=0),k+p>=f&&(k=f-p),s({scrollLeft:k/f*(u+2)}),I.current.x=L.pageX},B=function(){if(!!l.current){var L=(0,Pr.os)(l.current).top,V=L+l.current.offsetHeight,N=c===window?document.documentElement.scrollTop+window.innerHeight:(0,Pr.os)(c).top+c.clientHeight;V-(0,ct.Z)()<=N||L>=N-i?S(function($){return(0,w.Z)((0,w.Z)({},$),{},{isHiddenScrollBar:!0})}):S(function($){return(0,w.Z)((0,w.Z)({},$),{},{isHiddenScrollBar:!1})})}},z=function(L){S(function(V){return(0,w.Z)((0,w.Z)({},V),{},{scrollLeft:L/u*f||0})})};return n.useImperativeHandle(r,function(){return{setScrollLeft:z}}),n.useEffect(function(){var M=(0,Mt.Z)(document.body,"mouseup",D,!1),L=(0,Mt.Z)(document.body,"mousemove",ie,!1);return B(),function(){M.remove(),L.remove()}},[p,q]),n.useEffect(function(){var M=(0,Mt.Z)(c,"scroll",B,!1),L=(0,Mt.Z)(window,"resize",B,!1);return function(){M.remove(),L.remove()}},[c]),n.useEffect(function(){y.isHiddenScrollBar||S(function(M){var L=l.current;return L?(0,w.Z)((0,w.Z)({},M),{},{scrollLeft:L.scrollLeft/L.scrollWidth*L.clientWidth}):M})},[y.isHiddenScrollBar]),u<=f||!p||y.isHiddenScrollBar?null:n.createElement("div",{style:{height:(0,ct.Z)(),width:f,bottom:i},className:"".concat(m,"-sticky-scroll")},n.createElement("div",{onMouseDown:F,ref:g,className:X()("".concat(m,"-sticky-scroll-bar"),(0,O.Z)({},"".concat(m,"-sticky-scroll-bar-active"),q)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))},Sa=n.forwardRef(ga),Ea=d(98924),Or=(0,Ea.Z)()?window:null;function Ra(e,t){var r=(0,le.Z)(e)==="object"?e:{},o=r.offsetHeader,a=o===void 0?0:o,l=r.offsetSummary,s=l===void 0?0:l,i=r.offsetScroll,c=i===void 0?0:i,v=r.getContainer,m=v===void 0?function(){return Or}:v,u=m()||Or;return n.useMemo(function(){var f=!!e;return{isSticky:f,stickyClassName:f?"".concat(t,"-sticky-holder"):"",offsetHeader:a,offsetSummary:s,offsetScroll:c,container:u}},[c,a,s,t,u])}var Za=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function wa(e,t){return(0,n.useMemo)(function(){for(var r=[],o=0;o=0})},[l]),ie=l[l.length-1],B={fixed:ie?ie.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(I,"-cell-scrollbar")}}},z=(0,n.useMemo)(function(){return q?[].concat((0,ne.Z)(a),[B]):a},[q,a]),M=(0,n.useMemo)(function(){return q?[].concat((0,ne.Z)(l),[B]):l},[q,l]),L=(0,n.useMemo)(function(){var N=c.right,$=c.left;return(0,w.Z)((0,w.Z)({},c),{},{left:v==="rtl"?[].concat((0,ne.Z)($.map(function(k){return k+q})),[0]):$,right:v==="rtl"?N:[].concat((0,ne.Z)(N.map(function(k){return k+q})),[0]),isSticky:A})},[q,c,A]),V=wa(s,i);return n.createElement("div",{style:(0,w.Z)({overflow:"hidden"},A?{top:u,bottom:f}:{}),ref:D,className:X()(r,(0,O.Z)({},p,!!p))},n.createElement("table",{style:{tableLayout:"fixed",visibility:o||V?null:"hidden"}},(!o||!x||F)&&n.createElement(Er,{colWidths:V?[].concat((0,ne.Z)(V),[q]):[],columCount:i+1,columns:M}),C((0,w.Z)((0,w.Z)({},y),{},{stickyOffsets:L,columns:z,flattenColumns:M}))))});br.displayName="FixedHolder";var Mr=br,Na=[],Pa={},Tt="rc-table-internal-hook",Oa=n.memo(function(e){var t=e.children;return t},function(e,t){return An()(e.props,t.props)?e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight:!1});function et(e){var t,r=e.prefixCls,o=e.className,a=e.rowClassName,l=e.style,s=e.data,i=e.rowKey,c=e.scroll,v=e.tableLayout,m=e.direction,u=e.title,f=e.footer,p=e.summary,g=e.id,x=e.showHeader,C=e.components,y=e.emptyText,S=e.onRow,I=e.onHeaderRow,K=e.internalHooks,A=e.transformColumns,q=e.internalRefs,_=e.sticky,D=s||Na,F=!!D.length,ie=n.useMemo(function(){return ft(C,{})},[C]),B=n.useCallback(function(J,ce){return dt(ie,J)||ce},[ie]),z=n.useMemo(function(){return typeof i=="function"?i:function(J){var ce=J&&J[i];return ce}},[i]),M=yn(e),L=M.expandIcon,V=M.expandedRowKeys,N=M.defaultExpandedRowKeys,$=M.defaultExpandAllRows,k=M.expandedRowRender,we=M.onExpand,ye=M.onExpandedRowsChange,Le=M.expandRowByClick,Ee=M.rowExpandable,te=M.expandIconColumnIndex,ve=M.expandedRowClassName,Ve=M.childrenColumnName,Fe=M.indentSize,xe=L||ya,Ae=Ve||"children",Ne=n.useMemo(function(){return k?"row":e.expandable&&K===Tt&&e.expandable.__PARENT_RENDER_ICON__||D.some(function(J){return J&&(0,le.Z)(J)==="object"&&J[Ae]})?"nest":!1},[!!k,D]),me=n.useState(function(){return N||($?xa(D,z,Ae):[])}),He=(0,T.Z)(me,2),Y=He[0],be=He[1],de=n.useMemo(function(){return new Set(V||Y||[])},[V,Y]),pe=n.useCallback(function(J){var ce=z(J,D.indexOf(J)),Ie,un=de.has(ce);un?(de.delete(ce),Ie=(0,ne.Z)(de)):Ie=[].concat((0,ne.Z)(de),[ce]),be(Ie),we&&we(!un,J),ye&&ye(Ie)},[z,de,D,we,ye]),Ke=n.useState(0),ke=(0,T.Z)(Ke,2),ze=ke[0],j=ke[1],H=tr((0,w.Z)((0,w.Z)((0,w.Z)({},e),M),{},{expandable:!!k,expandedKeys:de,getRowKey:z,onTriggerExpand:pe,expandIcon:xe,expandIconColumnIndex:te,direction:m}),K===Tt?A:null),P=(0,T.Z)(H,2),E=P[0],Z=P[1],Re=n.useMemo(function(){return{columns:E,flattenColumns:Z}},[E,Z]),je=n.useRef(),Je=n.useRef(),G=n.useRef(),W=n.useRef(),ge=n.useState(!1),Pe=(0,T.Z)(ge,2),$e=Pe[0],gn=Pe[1],Sn=n.useState(!1),Zn=(0,T.Z)(Sn,2),Bn=Zn[0],$n=Zn[1],Qe=Ot(new Map),rt=(0,T.Z)(Qe,2),Et=rt[0],Wn=rt[1],ln=Ye(Z),wn=ln.map(function(J){return Et.get(J)}),mn=n.useMemo(function(){return wn},[wn.join("_")]),pn=sa(mn,Z.length,m),R=c&&vt(c.y),ee=c&&vt(c.x)||Boolean(M.fixed),Ze=ee&&Z.some(function(J){var ce=J.fixed;return ce}),Ce=n.useRef(),he=Ra(_,r),ue=he.isSticky,We=he.offsetHeader,En=he.offsetSummary,Kn=he.offsetScroll,kn=he.stickyClassName,In=he.container,Be=p==null?void 0:p(D),en=(R||ue)&&n.isValidElement(Be)&&Be.type===wr&&Be.props.fixed,Ln,Ge,cn;R&&(Ge={overflowY:"scroll",maxHeight:c.y}),ee&&(Ln={overflowX:"auto"},R||(Ge={overflowY:"hidden"}),cn={width:(c==null?void 0:c.x)===!0?"auto":c==null?void 0:c.x,minWidth:"100%"});var Fn=n.useCallback(function(J,ce){(0,Nn.Z)(je.current)&&Wn(function(Ie){if(Ie.get(J)!==ce){var un=new Map(Ie);return un.set(J,ce),un}return Ie})},[]),at=on(null),Rn=(0,T.Z)(at,2),ot=Rn[0],re=Rn[1];function fe(J,ce){!ce||(typeof ce=="function"?ce(J):ce.scrollLeft!==J&&(ce.scrollLeft=J))}var Se=function(ce){var Ie=ce.currentTarget,un=ce.scrollLeft,Wo=m==="rtl",Dn=typeof un=="number"?un:Ie.scrollLeft,ia=Ie||Pa;if(!re()||re()===ia){var xr;ot(ia),fe(Dn,Je.current),fe(Dn,G.current),fe(Dn,W.current),fe(Dn,(xr=Ce.current)===null||xr===void 0?void 0:xr.setScrollLeft)}if(Ie){var gr=Ie.scrollWidth,Sr=Ie.clientWidth;if(gr===Sr)return;Wo?(gn(-Dn0)):(gn(Dn>0),$n(Dn0?l:e}),f=Math.ceil((l||e)/u.pageSize);u.current>f&&(u.current=f||1);var p=function(C,y){m({current:C!=null?C:1,pageSize:y||u.pageSize})},g=function(C,y){var S;t&&((S=t.onChange)===null||S===void 0||S.call(t,C,y)),p(C,y),r(C,y||(u==null?void 0:u.pageSize))};return t===!1?[{},function(){}]:[(0,h.Z)((0,h.Z)({},u),{onChange:g}),p]}var Fa=d(84164),Da=d(99809),Aa=d(57254),za=d(1089),or=d(17341),kr=d(10225),Ha=d(76632),Kt=d(9676),Ir=d(13013),Lr=d(28682),Fr=d(47933),Tn={},lr="SELECT_ALL",ir="SELECT_INVERT",cr="SELECT_NONE",Dr=[];function Ar(e,t){var r=[];return(e||[]).forEach(function(o){r.push(o),o&&(0,le.Z)(o)==="object"&&t in o&&(r=[].concat((0,ne.Z)(r),(0,ne.Z)(Ar(o[t],t))))}),r}function Ba(e,t){var r=e||{},o=r.preserveSelectedRowKeys,a=r.selectedRowKeys,l=r.defaultSelectedRowKeys,s=r.getCheckboxProps,i=r.onChange,c=r.onSelect,v=r.onSelectAll,m=r.onSelectInvert,u=r.onSelectNone,f=r.onSelectMultiple,p=r.columnWidth,g=r.type,x=r.selections,C=r.fixed,y=r.renderCell,S=r.hideSelectAll,I=r.checkStrictly,K=I===void 0?!0:I,A=t.prefixCls,q=t.data,_=t.pageData,D=t.getRecordByKey,F=t.getRowKey,ie=t.expandType,B=t.childrenColumnName,z=t.locale,M=t.getPopupContainer,L=(0,Ha.Z)(a||l||Dr,{value:a}),V=(0,T.Z)(L,2),N=V[0],$=V[1],k=n.useRef(new Map),we=(0,n.useCallback)(function(j){if(o){var H=new Map;j.forEach(function(P){var E=D(P);!E&&k.current.has(P)&&(E=k.current.get(P)),H.set(P,E)}),k.current=H}},[D,o]);n.useEffect(function(){we(N)},[N]);var ye=(0,n.useMemo)(function(){return K?{keyEntities:null}:(0,za.I8)(q,{externalGetKey:F,childrenPropName:B})},[q,F,K,B]),Le=ye.keyEntities,Ee=(0,n.useMemo)(function(){return Ar(_,B)},[_,B]),te=(0,n.useMemo)(function(){var j=new Map;return Ee.forEach(function(H,P){var E=F(H,P),Z=(s?s(H):null)||{};j.set(E,Z)}),j},[Ee,F,s]),ve=(0,n.useCallback)(function(j){var H;return!!((H=te.get(F(j)))===null||H===void 0?void 0:H.disabled)},[te,F]),Ve=(0,n.useMemo)(function(){if(K)return[N||[],[]];var j=(0,or.S)(N,!0,Le,ve),H=j.checkedKeys,P=j.halfCheckedKeys;return[H||[],P]},[N,K,Le,ve]),Fe=(0,T.Z)(Ve,2),xe=Fe[0],Ae=Fe[1],Ne=(0,n.useMemo)(function(){var j=g==="radio"?xe.slice(0,1):xe;return new Set(j)},[xe,g]),me=(0,n.useMemo)(function(){return g==="radio"?new Set:new Set(Ae)},[Ae,g]),He=(0,n.useState)(null),Y=(0,T.Z)(He,2),be=Y[0],de=Y[1];n.useEffect(function(){e||$(Dr)},[!!e]);var pe=(0,n.useCallback)(function(j,H){var P,E;we(j),o?(P=j,E=j.map(function(Z){return k.current.get(Z)})):(P=[],E=[],j.forEach(function(Z){var Re=D(Z);Re!==void 0&&(P.push(Z),E.push(Re))})),$(P),i==null||i(P,E,{type:H})},[$,D,i,o]),Ke=(0,n.useCallback)(function(j,H,P,E){if(c){var Z=P.map(function(Re){return D(Re)});c(D(j),H,Z,E)}pe(P,"single")},[c,D,pe]),ke=(0,n.useMemo)(function(){if(!x||S)return null;var j=x===!0?[lr,ir,cr]:x;return j.map(function(H){return H===lr?{key:"all",text:z.selectionAll,onSelect:function(){pe(q.map(function(E,Z){return F(E,Z)}).filter(function(E){var Z=te.get(E);return!(Z==null?void 0:Z.disabled)||Ne.has(E)}),"all")}}:H===ir?{key:"invert",text:z.selectInvert,onSelect:function(){var E=new Set(Ne);_.forEach(function(Re,je){var Je=F(Re,je),G=te.get(Je);(G==null?void 0:G.disabled)||(E.has(Je)?E.delete(Je):E.add(Je))});var Z=Array.from(E);m&&m(Z),pe(Z,"invert")}}:H===cr?{key:"none",text:z.selectNone,onSelect:function(){u==null||u(),pe(Array.from(Ne).filter(function(E){var Z=te.get(E);return Z==null?void 0:Z.disabled}),"none")}}:H})},[x,Ne,_,F,m,pe]),ze=(0,n.useCallback)(function(j){var H;if(!e)return j.filter(function(R){return R!==Tn});var P=(0,ne.Z)(j),E=new Set(Ne),Z=Ee.map(F).filter(function(R){return!te.get(R).disabled}),Re=Z.every(function(R){return E.has(R)}),je=Z.some(function(R){return E.has(R)}),Je=function(){var ee=[];Re?Z.forEach(function(Ce){E.delete(Ce),ee.push(Ce)}):Z.forEach(function(Ce){E.has(Ce)||(E.add(Ce),ee.push(Ce))});var Ze=Array.from(E);v==null||v(!Re,Ze.map(function(Ce){return D(Ce)}),ee.map(function(Ce){return D(Ce)})),pe(Ze,"all")},G;if(g!=="radio"){var W;if(ke){var ge=n.createElement(Lr.Z,{getPopupContainer:M,items:ke.map(function(R,ee){var Ze=R.key,Ce=R.text,he=R.onSelect;return{key:Ze||ee,onClick:function(){he==null||he(Z)},label:Ce}})});W=n.createElement("div",{className:"".concat(A,"-selection-extra")},n.createElement(Ir.Z,{overlay:ge,getPopupContainer:M},n.createElement("span",null,n.createElement(Aa.Z,null))))}var Pe=Ee.map(function(R,ee){var Ze=F(R,ee),Ce=te.get(Ze)||{};return(0,h.Z)({checked:E.has(Ze)},Ce)}).filter(function(R){var ee=R.disabled;return ee}),$e=!!Pe.length&&Pe.length===Ee.length,gn=$e&&Pe.every(function(R){var ee=R.checked;return ee}),Sn=$e&&Pe.some(function(R){var ee=R.checked;return ee});G=!S&&n.createElement("div",{className:"".concat(A,"-selection")},n.createElement(Kt.Z,{checked:$e?gn:!!Ee.length&&Re,indeterminate:$e?!gn&&Sn:!Re&&je,onChange:Je,disabled:Ee.length===0||$e,skipGroup:!0}),W)}var Zn;g==="radio"?Zn=function(ee,Ze,Ce){var he=F(Ze,Ce),ue=E.has(he);return{node:n.createElement(Fr.ZP,(0,h.Z)({},te.get(he),{checked:ue,onClick:function(En){return En.stopPropagation()},onChange:function(En){E.has(he)||Ke(he,!0,[he],En.nativeEvent)}})),checked:ue}}:Zn=function(ee,Ze,Ce){var he,ue=F(Ze,Ce),We=E.has(ue),En=me.has(ue),Kn=te.get(ue),kn;return ie==="nest"?kn=En:kn=(he=Kn==null?void 0:Kn.indeterminate)!==null&&he!==void 0?he:En,{node:n.createElement(Kt.Z,(0,h.Z)({},Kn,{indeterminate:kn,checked:We,skipGroup:!0,onClick:function(Be){return Be.stopPropagation()},onChange:function(Be){var en=Be.nativeEvent,Ln=en.shiftKey,Ge=-1,cn=-1;if(Ln&&K){var Fn=new Set([be,ue]);Z.some(function(Ue,Un){if(Fn.has(Ue))if(Ge===-1)Ge=Un;else return cn=Un,!0;return!1})}if(cn!==-1&&Ge!==cn&&K){var at=Z.slice(Ge,cn+1),Rn=[];We?at.forEach(function(Ue){E.has(Ue)&&(Rn.push(Ue),E.delete(Ue))}):at.forEach(function(Ue){E.has(Ue)||(Rn.push(Ue),E.add(Ue))});var ot=Array.from(E);f==null||f(!We,ot.map(function(Ue){return D(Ue)}),Rn.map(function(Ue){return D(Ue)})),pe(ot,"multiple")}else{var re=xe;if(K){var fe=We?(0,kr._5)(re,ue):(0,kr.L0)(re,ue);Ke(ue,!We,fe,en)}else{var Se=(0,or.S)([].concat((0,ne.Z)(re),[ue]),!0,Le,ve),sn=Se.checkedKeys,Oe=Se.halfCheckedKeys,lt=sn;if(We){var Ft=new Set(sn);Ft.delete(ue),lt=(0,or.S)(Array.from(Ft),{checked:!1,halfCheckedKeys:Oe},Le,ve).checkedKeys}Ke(ue,!We,lt,en)}}de(ue)}})),checked:We}};var Bn=function(ee,Ze,Ce){var he=Zn(ee,Ze,Ce),ue=he.node,We=he.checked;return y?y(We,Ze,Ce,ue):ue};if(!P.includes(Tn))if(P.findIndex(function(R){var ee;return((ee=R[an])===null||ee===void 0?void 0:ee.columnType)==="EXPAND_COLUMN"})===0){var $n=P,Qe=(0,Da.Z)($n),rt=Qe[0],Et=Qe.slice(1);P=[rt,Tn].concat((0,ne.Z)(Et))}else P=[Tn].concat((0,ne.Z)(P));var Wn=P.indexOf(Tn);P=P.filter(function(R,ee){return R!==Tn||ee===Wn});var ln=P[Wn-1],wn=P[Wn+1],mn=C;mn===void 0&&((wn==null?void 0:wn.fixed)!==void 0?mn=wn.fixed:(ln==null?void 0:ln.fixed)!==void 0&&(mn=ln.fixed)),mn&&ln&&((H=ln[an])===null||H===void 0?void 0:H.columnType)==="EXPAND_COLUMN"&&ln.fixed===void 0&&(ln.fixed=mn);var pn=(0,O.Z)({fixed:mn,width:p,className:"".concat(A,"-selection-column"),title:e.columnTitle||G,render:Bn},an,{className:"".concat(A,"-selection-col")});return P.map(function(R){return R===Tn?pn:R})},[F,Ee,e,xe,Ne,me,p,ke,ie,be,te,f,Ke,ve]);return[ze,Ne]}var $a=d(19675),Wa=d(28612),Ua=d(15105),Va=d(61580);function nt(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function kt(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function sr(e,t){return typeof e=="function"?e(t):e}var It="ascend",ur="descend";function Lt(e){return(0,le.Z)(e.sorter)==="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function zr(e){return typeof e=="function"?e:e&&(0,le.Z)(e)==="object"&&e.compare?e.compare:!1}function ja(e,t){return t?e[e.indexOf(t)+1]:e[0]}function dr(e,t,r){var o=[];function a(l,s){o.push({column:l,key:nt(l,s),multiplePriority:Lt(l),sortOrder:l.sortOrder})}return(e||[]).forEach(function(l,s){var i=kt(s,r);l.children?("sortOrder"in l&&a(l,i),o=[].concat((0,ne.Z)(o),(0,ne.Z)(dr(l.children,t,i)))):l.sorter&&("sortOrder"in l?a(l,i):t&&l.defaultSortOrder&&o.push({column:l,key:nt(l,i),multiplePriority:Lt(l),sortOrder:l.defaultSortOrder}))}),o}function Hr(e,t,r,o,a,l,s,i){return(t||[]).map(function(c,v){var m=kt(v,i),u=c;if(u.sorter){var f=u.sortDirections||a,p=u.showSorterTooltip===void 0?s:u.showSorterTooltip,g=nt(u,m),x=r.find(function(ie){var B=ie.key;return B===g}),C=x?x.sortOrder:null,y=ja(f,C),S=f.includes(It)&&n.createElement(Wa.Z,{className:X()("".concat(e,"-column-sorter-up"),{active:C===It})}),I=f.includes(ur)&&n.createElement($a.Z,{className:X()("".concat(e,"-column-sorter-down"),{active:C===ur})}),K=l||{},A=K.cancelSort,q=K.triggerAsc,_=K.triggerDesc,D=A;y===ur?D=_:y===It&&(D=q);var F=(0,le.Z)(p)==="object"?p:{title:D};u=(0,h.Z)((0,h.Z)({},u),{className:X()(u.className,(0,O.Z)({},"".concat(e,"-column-sort"),C)),title:function(B){var z=n.createElement("div",{className:"".concat(e,"-column-sorters")},n.createElement("span",{className:"".concat(e,"-column-title")},sr(c.title,B)),n.createElement("span",{className:X()("".concat(e,"-column-sorter"),(0,O.Z)({},"".concat(e,"-column-sorter-full"),!!(S&&I)))},n.createElement("span",{className:"".concat(e,"-column-sorter-inner")},S,I)));return p?n.createElement(Va.Z,(0,h.Z)({},F),z):z},onHeaderCell:function(B){var z=c.onHeaderCell&&c.onHeaderCell(B)||{},M=z.onClick,L=z.onKeyDown;return z.onClick=function(V){o({column:c,key:g,sortOrder:y,multiplePriority:Lt(c)}),M==null||M(V)},z.onKeyDown=function(V){V.keyCode===Ua.Z.ENTER&&(o({column:c,key:g,sortOrder:y,multiplePriority:Lt(c)}),L==null||L(V))},C&&(C==="ascend"?z["aria-sort"]="ascending":z["aria-sort"]="descending"),z.className=X()(z.className,"".concat(e,"-column-has-sorters")),z.tabIndex=0,z}})}return"children"in u&&(u=(0,h.Z)((0,h.Z)({},u),{children:Hr(e,u.children,r,o,a,l,s,m)})),u})}function Br(e){var t=e.column,r=e.sortOrder;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}}function $r(e){var t=e.filter(function(r){var o=r.sortOrder;return o}).map(Br);return t.length===0&&e.length?(0,h.Z)((0,h.Z)({},Br(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function fr(e,t,r){var o=t.slice().sort(function(s,i){return i.multiplePriority-s.multiplePriority}),a=e.slice(),l=o.filter(function(s){var i=s.column.sorter,c=s.sortOrder;return zr(i)&&c});return l.length?a.sort(function(s,i){for(var c=0;c0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1},ge=W.confirm,Pe=W.closeDropdown;ge&&He([]),Pe&&ie(!1),Ne(""),N(I?(K||[]).map(function($e){return String($e)}):[])},de=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0},ge=W.closeDropdown;ge&&ie(!1),He(V())},pe=function(W){W&&z!==void 0&&N(z||[]),ie(W),!W&&!a.filterDropdown&&Y()},Ke=X()((0,O.Z)({},"".concat(l,"-menu-without-submenu"),!co(a.filters||[]))),ke=function(W){if(W.target.checked){var ge=tt(a==null?void 0:a.filters).map(function(Pe){return String(Pe)});N(ge)}else N([])},ze=function G(W){var ge=W.filters;return(ge||[]).map(function(Pe,$e){var gn=String(Pe.value),Sn={title:Pe.text,key:Pe.value!==void 0?gn:$e};return Pe.children&&(Sn.children=G({filters:Pe.children})),Sn})},j;if(typeof a.filterDropdown=="function")j=a.filterDropdown({prefixCls:"".concat(l,"-custom"),setSelectedKeys:function(W){return $({selectedKeys:W})},selectedKeys:V(),confirm:de,clearFilters:be,filters:a.filters,visible:B});else if(a.filterDropdown)j=a.filterDropdown;else{var H=V()||[],P=function(){return(a.filters||[]).length===0?n.createElement(jr.Z,{image:jr.Z.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):v==="tree"?n.createElement(n.Fragment,null,n.createElement(Gr,{filterSearch:u,value:Ae,onChange:me,tablePrefixCls:r,locale:g}),n.createElement("div",{className:"".concat(r,"-filter-dropdown-tree")},i?n.createElement(Kt.Z,{checked:H.length===tt(a.filters).length,indeterminate:H.length>0&&H.length1&&arguments[1]!==void 0?arguments[1]:{},r=t.getContainer,o=r===void 0?function(){return window}:r,a=t.callback,l=t.duration,s=l===void 0?450:l,i=o(),c=ho(i,!0),v=Date.now(),m=function u(){var f=Date.now(),p=f-v,g=yo(p>s?s:p,c,e,s);mr(i)?i.scrollTo(window.pageXOffset,g):i instanceof HTMLDocument||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=g:i.scrollTop=g,p2&&arguments[2]!==void 0?arguments[2]:!1,Oe=(0,h.Z)((0,h.Z)({},P),fe);sn&&(P.resetPagination(),Oe.pagination.current&&(Oe.pagination.current=1),m&&m.onChange&&m.onChange(1,Oe.pagination.pageSize)),F&&F.scrollToFirstRowOnChange!==!1&&Ke.body.current&&xo(0,{getContainer:function(){return Ke.body.current}}),y==null||y(Oe.pagination,Oe.filters,Oe.sorter,{currentDataSource:qr(fr(xe,Oe.sorterStates,de),Oe.filterStates),action:Se})},Z=function(fe,Se){E({sorter:fe,sorterStates:Se},"sort",!1)},Re=Ga({prefixCls:me,mergedColumns:$,onSorterChange:Z,sortDirections:ie||["ascend","descend"],tableLocale:Fe,showSorterTooltip:M}),je=(0,T.Z)(Re,4),Je=je[0],G=je[1],W=je[2],ge=je[3],Pe=n.useMemo(function(){return fr(xe,G,de)},[xe,G]);P.sorter=ge(),P.sorterStates=G;var $e=function(fe,Se){E({filters:fe,filterStates:Se},"filter",!0)},gn=vo({prefixCls:me,locale:Fe,dropdownPrefixCls:He,mergedColumns:$,onFilterChange:$e,getPopupContainer:S}),Sn=(0,T.Z)(gn,3),Zn=Sn[0],Bn=Sn[1],$n=Sn[2],Qe=qr(Pe,Bn);P.filters=$n(),P.filterStates=Bn;var rt=n.useMemo(function(){return(0,h.Z)({},W)},[W]),Et=mo(rt),Wn=(0,T.Z)(Et,1),ln=Wn[0],wn=function(fe,Se){E({pagination:(0,h.Z)((0,h.Z)({},P.pagination),{current:fe,pageSize:Se})},"paginate")},mn=La(Qe.length,m,wn),pn=(0,T.Z)(mn,2),R=pn[0],ee=pn[1];P.pagination=m===!1?{}:ka(m,R),P.resetPagination=ee;var Ze=n.useMemo(function(){if(m===!1||!R.pageSize)return Qe;var re=R.current,fe=re===void 0?1:re,Se=R.total,sn=R.pageSize,Oe=sn===void 0?Kr:sn;return Qe.lengthOe?Qe.slice((fe-1)*Oe,fe*Oe):Qe:Qe.slice((fe-1)*Oe,fe*Oe)},[!!m,Qe,R&&R.current,R&&R.pageSize,R&&R.total]),Ce=Ba(u,{prefixCls:me,data:Qe,pageData:Ze,getRowKey:ke,getRecordByKey:H,expandType:pe,childrenColumnName:de,locale:Fe,getPopupContainer:S}),he=(0,T.Z)(Ce,2),ue=he[0],We=he[1],En=function(fe,Se,sn){var Oe;return typeof p=="function"?Oe=X()(p(fe,Se,sn)):Oe=X()(p),X()((0,O.Z)({},"".concat(me,"-row-selected"),We.has(ke(fe,Se))),Oe)};Y.__PARENT_RENDER_ICON__=Y.expandIcon,Y.expandIcon=Y.expandIcon||K||Co(Fe),pe==="nest"&&Y.expandIconColumnIndex===void 0?Y.expandIconColumnIndex=u?1:0:Y.expandIconColumnIndex>0&&u&&(Y.expandIconColumnIndex-=1),typeof Y.indentSize!="number"&&(Y.indentSize=typeof D=="number"?D:15);var Kn=n.useCallback(function(re){return ln(ue(Zn(Je(re))))},[Je,Zn,ue]),kn,In;if(m!==!1&&(R==null?void 0:R.total)){var Be;R.size?Be=R.size:Be=Ve==="small"||Ve==="middle"?"small":void 0;var en=function(fe){return n.createElement(Ta.Z,(0,h.Z)({},R,{className:X()("".concat(me,"-pagination ").concat(me,"-pagination-").concat(fe),R.className),size:Be}))},Ln=ve==="rtl"?"left":"right",Ge=R.position;if(Ge!==null&&Array.isArray(Ge)){var cn=Ge.find(function(re){return re.indexOf("top")!==-1}),Fn=Ge.find(function(re){return re.indexOf("bottom")!==-1}),at=Ge.every(function(re){return"".concat(re)==="none"});!cn&&!Fn&&!at&&(In=en(Ln)),cn&&(kn=en(cn.toLowerCase().replace("top",""))),Fn&&(In=en(Fn.toLowerCase().replace("bottom","")))}else In=en(Ln)}var Rn;typeof I=="boolean"?Rn={spinning:I}:(0,le.Z)(I)==="object"&&(Rn=(0,h.Z)({spinning:!0},I));var ot=X()("".concat(me,"-wrapper"),(0,O.Z)({},"".concat(me,"-wrapper-rtl"),ve==="rtl"),a);return n.createElement("div",{ref:t,className:ot,style:l},n.createElement(Ma.Z,(0,h.Z)({spinning:!1},Rn),kn,n.createElement(Tr,(0,h.Z)({},k,{columns:$,direction:ve,expandable:Y,prefixCls:me,className:X()((r={},(0,O.Z)(r,"".concat(me,"-middle"),Ve==="middle"),(0,O.Z)(r,"".concat(me,"-small"),Ve==="small"),(0,O.Z)(r,"".concat(me,"-bordered"),i),(0,O.Z)(r,"".concat(me,"-empty"),xe.length===0),r)),data:Ze,rowKey:ke,rowClassName:En,emptyText:B&&B.emptyText||(te||Po.Z)("Table"),internalHooks:Tt,internalRefs:Ke,transformColumns:Kn})),In))}var Mo=n.forwardRef(bo),xn=Mo;xn.defaultProps={rowKey:"key"},xn.SELECTION_COLUMN=Tn,xn.EXPAND_COLUMN=Tr.EXPAND_COLUMN,xn.SELECTION_ALL=lr,xn.SELECTION_INVERT=ir,xn.SELECTION_NONE=cr,xn.Column=Ro,xn.ColumnGroup=wo,xn.Summary=Nr;var To=xn,Ko=To},66456:function(Vn,dn,d){"use strict";var le=d(38663),O=d.n(le),T=d(31242),h=d.n(T),n=d(57663),Xe=d(13254),X=d(88983),Cn=d(63185),w=d(59250),ne=d(20228),Nn=d(14781),jn=d(22385),nn=d(47673),Pn=d(32157)},82363:function(Vn,dn,d){"use strict";d.d(dn,{Z:function(){return Yt}});var le=d(96156),O=d(90484),T=d(22122),h=d(67294),n=d(28991),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},X=Xe,Cn=d(27029),w=function(ae,Q){return h.createElement(Cn.Z,(0,n.Z)((0,n.Z)({},ae),{},{ref:Q,icon:X}))};w.displayName="HolderOutlined";var ne=h.forwardRef(w),Nn=d(76513),jn=d(94184),nn=d.n(jn),Pn=d(85061),An=d(28481),At=d(86504),it={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},ct=it,Rt=function(ae,Q){return h.createElement(Cn.Z,(0,n.Z)((0,n.Z)({},ae),{},{ref:Q,icon:ct}))};Rt.displayName="FolderOpenOutlined";var zt=h.forwardRef(Rt),Ht={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Bt=Ht,hn=function(ae,Q){return h.createElement(Cn.Z,(0,n.Z)((0,n.Z)({},ae),{},{ref:Q,icon:Bt}))};hn.displayName="FolderOutlined";var st=h.forwardRef(hn),$t=d(10225),ut=d(1089),dt=d(53124),Ye;(function(b){b[b.None=0]="None",b[b.Start=1]="Start",b[b.End=2]="End"})(Ye||(Ye={}));function ft(b,ae){function Q(oe){var se=oe.key,Me=oe.children;ae(se,oe)!==!1&&ft(Me||[],ae)}b.forEach(Q)}function vt(b){var ae=b.treeData,Q=b.expandedKeys,oe=b.startKey,se=b.endKey,Me=[],U=Ye.None;if(oe&&oe===se)return[oe];if(!oe||!se)return[];function tn(De){return De===oe||De===se}return ft(ae,function(De){if(U===Ye.End)return!1;if(tn(De)){if(Me.push(De),U===Ye.None)U=Ye.Start;else if(U===Ye.Start)return U=Ye.End,!1}else U===Ye.Start&&Me.push(De);return Q.indexOf(De)!==-1}),Me}function mt(b,ae){var Q=(0,Pn.Z)(ae),oe=[];return ft(b,function(se,Me){var U=Q.indexOf(se);return U!==-1&&(oe.push(Me),Q.splice(U,1)),!!Q.length}),oe}var pt=function(b,ae){var Q={};for(var oe in b)Object.prototype.hasOwnProperty.call(b,oe)&&ae.indexOf(oe)<0&&(Q[oe]=b[oe]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,oe=Object.getOwnPropertySymbols(b);setr>td,.ant-table.ant-table-middle .ant-table-thead>tr>th,.ant-table.ant-table-middle .ant-table-title,.ant-table.ant-table-middle tfoot>tr>td,.ant-table.ant-table-middle tfoot>tr>th{padding:12px 8px}.ant-table.ant-table-middle .ant-table-filter-trigger{margin-right:-4px}.ant-table.ant-table-middle .ant-table-expanded-row-fixed{margin:-12px -8px}.ant-table.ant-table-middle .ant-table-tbody .ant-table-wrapper:only-child .ant-table{margin:-12px -8px -12px 25px}.ant-table.ant-table-middle .ant-table-selection-column{-webkit-padding-start:2px;padding-inline-start:2px}.ant-table.ant-table-small{font-size:14px}.ant-table.ant-table-small .ant-table-footer,.ant-table.ant-table-small .ant-table-tbody>tr>td,.ant-table.ant-table-small .ant-table-thead>tr>th,.ant-table.ant-table-small .ant-table-title,.ant-table.ant-table-small tfoot>tr>td,.ant-table.ant-table-small tfoot>tr>th{padding:8px}.ant-table.ant-table-small .ant-table-filter-trigger{margin-right:-4px}.ant-table.ant-table-small .ant-table-expanded-row-fixed{margin:-8px}.ant-table.ant-table-small .ant-table-tbody .ant-table-wrapper:only-child .ant-table{margin:-8px -8px -8px 25px}.ant-table.ant-table-small .ant-table-selection-column{-webkit-padding-start:2px;padding-inline-start:2px}.ant-table.ant-table-bordered>.ant-table-title{border:1px solid rgba(0,0,0,.06);border-bottom:0}.ant-table.ant-table-bordered>.ant-table-container{border-left:1px solid rgba(0,0,0,.06)}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tbody>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tfoot>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tfoot>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>thead>tr>th{border-right:1px solid rgba(0,0,0,.06)}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr:not(:last-child)>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr:not(:last-child)>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr:not(:last-child)>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>thead>tr:not(:last-child)>th{border-bottom:1px solid rgba(0,0,0,.06)}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>th:before,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>th:before,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>th:before,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>thead>tr>th:before{background-color:transparent!important}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tbody>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tfoot>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>thead>tr>.ant-table-cell-fix-right-first:after{border-right:1px solid rgba(0,0,0,.06)}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tbody>tr>td>.ant-table-expanded-row-fixed{margin:-16px -17px}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td>.ant-table-expanded-row-fixed:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td>.ant-table-expanded-row-fixed:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td>.ant-table-expanded-row-fixed:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tbody>tr>td>.ant-table-expanded-row-fixed:after{position:absolute;top:0;right:1px;bottom:0;border-right:1px solid rgba(0,0,0,.06);content:""}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table{border-top:1px solid rgba(0,0,0,.06)}.ant-table.ant-table-bordered.ant-table-scroll-horizontal>.ant-table-container>.ant-table-body>table>tbody>tr.ant-table-expanded-row>td,.ant-table.ant-table-bordered.ant-table-scroll-horizontal>.ant-table-container>.ant-table-body>table>tbody>tr.ant-table-placeholder>td{border-right:0}.ant-table.ant-table-bordered.ant-table-middle>.ant-table-container>.ant-table-body>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered.ant-table-middle>.ant-table-container>.ant-table-content>table>tbody>tr>td>.ant-table-expanded-row-fixed{margin:-12px -9px}.ant-table.ant-table-bordered.ant-table-small>.ant-table-container>.ant-table-body>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered.ant-table-small>.ant-table-container>.ant-table-content>table>tbody>tr>td>.ant-table-expanded-row-fixed{margin:-8px -9px}.ant-table.ant-table-bordered>.ant-table-footer{border:1px solid rgba(0,0,0,.06);border-top:0}.ant-table-cell .ant-table-container:first-child{border-top:0}.ant-table-cell-scrollbar:not([rowspan]){box-shadow:0 1px 0 1px #fafafa}.ant-table-wrapper{clear:both;max-width:100%}.ant-table-wrapper:before{display:table;content:""}.ant-table-wrapper:after{display:table;clear:both;content:""}.ant-table{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;font-size:14px;background:#fff;border-radius:2px}.ant-table table{width:100%;text-align:left;border-radius:2px 2px 0 0;border-collapse:separate;border-spacing:0}.ant-table-tbody>tr>td,.ant-table-thead>tr>th,.ant-table tfoot>tr>td,.ant-table tfoot>tr>th{position:relative;padding:16px;overflow-wrap:break-word}.ant-table-cell-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.ant-table-cell-ellipsis.ant-table-cell-fix-left-last,.ant-table-cell-ellipsis.ant-table-cell-fix-right-first{overflow:visible}.ant-table-cell-ellipsis.ant-table-cell-fix-left-last .ant-table-cell-content,.ant-table-cell-ellipsis.ant-table-cell-fix-right-first .ant-table-cell-content{display:block;overflow:hidden;text-overflow:ellipsis}.ant-table-cell-ellipsis .ant-table-column-title{overflow:hidden;text-overflow:ellipsis;word-break:keep-all}.ant-table-title{padding:16px}.ant-table-footer{padding:16px;color:rgba(0,0,0,.85);background:#fafafa}.ant-table-thead>tr>th{position:relative;color:rgba(0,0,0,.85);font-weight:500;text-align:left;background:#fafafa;border-bottom:1px solid rgba(0,0,0,.06);transition:background .3s ease}.ant-table-thead>tr>th[colspan]:not([colspan="1"]){text-align:center}.ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]):before{position:absolute;top:50%;right:0;width:1px;height:1.6em;background-color:rgba(0,0,0,.06);transform:translateY(-50%);transition:background-color .3s;content:""}.ant-table-thead>tr:not(:last-child)>th[colspan]{border-bottom:0}.ant-table-tbody>tr>td{border-bottom:1px solid rgba(0,0,0,.06);transition:background .3s}.ant-table-tbody>tr>td>.ant-table-expanded-row-fixed>.ant-table-wrapper:only-child .ant-table,.ant-table-tbody>tr>td>.ant-table-wrapper:only-child .ant-table{margin:-16px -16px -16px 33px}.ant-table-tbody>tr>td>.ant-table-expanded-row-fixed>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td,.ant-table-tbody>tr>td>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td{border-bottom:0}.ant-table-tbody>tr>td>.ant-table-expanded-row-fixed>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td:first-child,.ant-table-tbody>tr>td>.ant-table-expanded-row-fixed>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td:last-child,.ant-table-tbody>tr>td>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td:first-child,.ant-table-tbody>tr>td>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td:last-child{border-radius:0}.ant-table-tbody>tr.ant-table-row:hover>td,.ant-table-tbody>tr>td.ant-table-cell-row-hover{background:#fafafa}.ant-table-tbody>tr.ant-table-row-selected>td{background:#e6f7ff;background:var(--ant-primary-1);border-color:rgba(0,0,0,.03)}.ant-table-tbody>tr.ant-table-row-selected:hover>td{background:#dcf4ff;background:var(--ant-primary-color-active-deprecated-d-02)}.ant-table-summary{position:relative;z-index:2;background:#fff}div.ant-table-summary{box-shadow:0 -1px 0 rgba(0,0,0,.06)}.ant-table-summary>tr>td,.ant-table-summary>tr>th{border-bottom:1px solid rgba(0,0,0,.06)}.ant-table-pagination.ant-pagination{margin:16px 0}.ant-table-pagination{display:flex;flex-wrap:wrap;grid-row-gap:8px;row-gap:8px}.ant-table-pagination>*{flex:none}.ant-table-pagination-left{justify-content:flex-start}.ant-table-pagination-center{justify-content:center}.ant-table-pagination-right{justify-content:flex-end}.ant-table-thead th.ant-table-column-has-sorters{outline:none;cursor:pointer;transition:all .3s}.ant-table-thead th.ant-table-column-has-sorters:hover{background:rgba(0,0,0,.04)}.ant-table-thead th.ant-table-column-has-sorters:hover:before{background-color:transparent!important}.ant-table-thead th.ant-table-column-has-sorters:focus-visible{color:#1890ff;color:var(--ant-primary-color)}.ant-table-thead th.ant-table-column-has-sorters.ant-table-cell-fix-left:hover,.ant-table-thead th.ant-table-column-has-sorters.ant-table-cell-fix-right:hover{background:#f5f5f5}.ant-table-thead th.ant-table-column-sort{background:#f5f5f5}.ant-table-thead th.ant-table-column-sort:before{background-color:transparent!important}td.ant-table-column-sort{background:#fafafa}.ant-table-column-title{position:relative;z-index:1;flex:1 1}.ant-table-column-sorters{display:flex;flex:auto;align-items:center;justify-content:space-between}.ant-table-column-sorters:after{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;content:""}.ant-table-column-sorter{margin-left:4px;color:#bfbfbf;font-size:0;transition:color .3s}.ant-table-column-sorter-inner{display:inline-flex;flex-direction:column;align-items:center}.ant-table-column-sorter-down,.ant-table-column-sorter-up{font-size:11px}.ant-table-column-sorter-down.active,.ant-table-column-sorter-up.active{color:#1890ff;color:var(--ant-primary-color)}.ant-table-column-sorter-up+.ant-table-column-sorter-down{margin-top:-.3em}.ant-table-column-sorters:hover .ant-table-column-sorter{color:#a6a6a6}.ant-table-filter-column{display:flex;justify-content:space-between}.ant-table-filter-trigger{position:relative;display:flex;align-items:center;margin:-4px -8px -4px 4px;padding:0 4px;color:#bfbfbf;font-size:12px;border-radius:2px;cursor:pointer;transition:all .3s}.ant-table-filter-trigger:hover{color:rgba(0,0,0,.45);background:rgba(0,0,0,.04)}.ant-table-filter-trigger.active{color:#1890ff;color:var(--ant-primary-color)}.ant-table-filter-dropdown{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";min-width:120px;background-color:#fff;border-radius:2px;box-shadow:0 3px 6px -4px rgba(0,0,0,.12),0 6px 16px 0 rgba(0,0,0,.08),0 9px 28px 8px rgba(0,0,0,.05)}.ant-table-filter-dropdown .ant-dropdown-menu{max-height:264px;overflow-x:hidden;border:0;box-shadow:none}.ant-table-filter-dropdown .ant-dropdown-menu:empty:after{display:block;padding:8px 0;color:rgba(0,0,0,.25);font-size:12px;text-align:center;content:"Not Found"}.ant-table-filter-dropdown-tree{padding:8px 8px 0}.ant-table-filter-dropdown-tree .ant-tree-treenode .ant-tree-node-content-wrapper:hover{background-color:#f5f5f5}.ant-table-filter-dropdown-tree .ant-tree-treenode-checkbox-checked .ant-tree-node-content-wrapper,.ant-table-filter-dropdown-tree .ant-tree-treenode-checkbox-checked .ant-tree-node-content-wrapper:hover{background-color:#bae7ff;background-color:var(--ant-primary-2)}.ant-table-filter-dropdown-search{padding:8px;border-bottom:1px solid rgba(0,0,0,.06)}.ant-table-filter-dropdown-search-input input{min-width:140px}.ant-table-filter-dropdown-search-input .anticon{color:rgba(0,0,0,.25)}.ant-table-filter-dropdown-checkall{width:100%;margin-bottom:4px;margin-left:4px}.ant-table-filter-dropdown-submenu>ul{max-height:calc(100vh - 130px);overflow-x:hidden;overflow-y:auto}.ant-table-filter-dropdown-submenu .ant-checkbox-wrapper+span,.ant-table-filter-dropdown .ant-checkbox-wrapper+span{padding-left:8px}.ant-table-filter-dropdown-btns{display:flex;justify-content:space-between;padding:7px 8px;overflow:hidden;background-color:inherit;border-top:1px solid rgba(0,0,0,.06)}.ant-table-selection-col{width:32px}.ant-table-bordered .ant-table-selection-col{width:50px}table tr td.ant-table-selection-column,table tr th.ant-table-selection-column{padding-right:8px;padding-left:8px;text-align:center}table tr td.ant-table-selection-column .ant-radio-wrapper,table tr th.ant-table-selection-column .ant-radio-wrapper{margin-right:0}table tr th.ant-table-selection-column.ant-table-cell-fix-left{z-index:3}table tr th.ant-table-selection-column:after{background-color:transparent!important}.ant-table-selection{position:relative;display:inline-flex;flex-direction:column}.ant-table-selection-extra{position:absolute;top:0;z-index:1;cursor:pointer;transition:all .3s;-webkit-margin-start:100%;margin-inline-start:100%;-webkit-padding-start:4px;padding-inline-start:4px}.ant-table-selection-extra .anticon{color:#bfbfbf;font-size:10px}.ant-table-selection-extra .anticon:hover{color:#a6a6a6}.ant-table-expand-icon-col{width:48px}.ant-table-row-expand-icon-cell{text-align:center}.ant-table-row-indent{float:left;height:1px}.ant-table-row-expand-icon{color:#1890ff;color:var(--ant-primary-color);text-decoration:none;cursor:pointer;transition:color .3s;position:relative;display:inline-flex;float:left;box-sizing:border-box;width:17px;height:17px;padding:0;color:inherit;line-height:17px;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:2px;outline:none;transform:scale(.94117647);transition:all .3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-table-row-expand-icon:focus,.ant-table-row-expand-icon:hover{color:#40a9ff;color:var(--ant-primary-color-hover)}.ant-table-row-expand-icon:active{color:#096dd9;color:var(--ant-primary-color-active)}.ant-table-row-expand-icon:active,.ant-table-row-expand-icon:focus,.ant-table-row-expand-icon:hover{border-color:currentcolor}.ant-table-row-expand-icon:after,.ant-table-row-expand-icon:before{position:absolute;background:currentcolor;transition:transform .3s ease-out;content:""}.ant-table-row-expand-icon:before{top:7px;right:3px;left:3px;height:1px}.ant-table-row-expand-icon:after{top:3px;bottom:3px;left:7px;width:1px;transform:rotate(90deg)}.ant-table-row-expand-icon-collapsed:before{transform:rotate(-180deg)}.ant-table-row-expand-icon-collapsed:after{transform:rotate(0deg)}.ant-table-row-expand-icon-spaced{background:transparent;border:0;visibility:hidden}.ant-table-row-expand-icon-spaced:after,.ant-table-row-expand-icon-spaced:before{display:none;content:none}.ant-table-row-indent+.ant-table-row-expand-icon{margin-top:2.5005px;margin-right:8px}tr.ant-table-expanded-row:hover>td,tr.ant-table-expanded-row>td{background:#fbfbfb}tr.ant-table-expanded-row .ant-descriptions-view{display:flex}tr.ant-table-expanded-row .ant-descriptions-view table{flex:auto;width:auto}.ant-table .ant-table-expanded-row-fixed{position:relative;margin:-16px;padding:16px}.ant-table-tbody>tr.ant-table-placeholder{text-align:center}.ant-table-empty .ant-table-tbody>tr.ant-table-placeholder{color:rgba(0,0,0,.25)}.ant-table-tbody>tr.ant-table-placeholder:hover>td{background:#fff}.ant-table-cell-fix-left,.ant-table-cell-fix-right{position:-webkit-sticky!important;position:sticky!important;z-index:2;background:#fff}.ant-table-cell-fix-left-first:after,.ant-table-cell-fix-left-last:after{position:absolute;top:0;right:0;bottom:-1px;width:30px;transform:translateX(100%);transition:box-shadow .3s;content:"";pointer-events:none}.ant-table-cell-fix-right-first:after,.ant-table-cell-fix-right-last:after{position:absolute;top:0;bottom:-1px;left:0;width:30px;transform:translateX(-100%);transition:box-shadow .3s;content:"";pointer-events:none}.ant-table .ant-table-container:after,.ant-table .ant-table-container:before{position:absolute;top:0;bottom:0;z-index:1;width:30px;transition:box-shadow .3s;content:"";pointer-events:none}.ant-table .ant-table-container:before{left:0}.ant-table .ant-table-container:after{right:0}.ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container{position:relative}.ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container:before{box-shadow:inset 10px 0 8px -8px rgba(0,0,0,.15)}.ant-table-ping-left .ant-table-cell-fix-left-first:after,.ant-table-ping-left .ant-table-cell-fix-left-last:after{box-shadow:inset 10px 0 8px -8px rgba(0,0,0,.15)}.ant-table-ping-left .ant-table-cell-fix-left-last:before{background-color:transparent!important}.ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container{position:relative}.ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container:after{box-shadow:inset -10px 0 8px -8px rgba(0,0,0,.15)}.ant-table-ping-right .ant-table-cell-fix-right-first:after,.ant-table-ping-right .ant-table-cell-fix-right-last:after{box-shadow:inset -10px 0 8px -8px rgba(0,0,0,.15)}.ant-table-sticky-holder{position:-webkit-sticky;position:sticky;z-index:3;background:#fff}.ant-table-sticky-scroll{position:-webkit-sticky;position:sticky;bottom:0;z-index:3;display:flex;align-items:center;background:hsla(0,0%,80%,.06);border-top:1px solid rgba(0,0,0,.06);opacity:.6}.ant-table-sticky-scroll:hover{transform-origin:center bottom}.ant-table-sticky-scroll-bar{height:8px;background-color:rgba(0,0,0,.35);border-radius:4px}.ant-table-sticky-scroll-bar:hover{background-color:rgba(0,0,0,.8)}.ant-table-sticky-scroll-bar-active{background-color:rgba(0,0,0,.8)}@media (-ms-high-contrast:none){.ant-table-ping-left .ant-table-cell-fix-left-last:after{box-shadow:none!important}.ant-table-ping-right .ant-table-cell-fix-right-first:after{box-shadow:none!important}}.ant-table-title{border-radius:2px 2px 0 0}.ant-table-title+.ant-table-container{border-top-left-radius:0;border-top-right-radius:0}.ant-table-title+.ant-table-container table>thead>tr:first-child th:first-child{border-radius:0}.ant-table-title+.ant-table-container table>thead>tr:first-child th:last-child{border-radius:0}.ant-table-container{border-top-left-radius:2px;border-top-right-radius:2px}.ant-table-container table>thead>tr:first-child th:first-child{border-top-left-radius:2px}.ant-table-container table>thead>tr:first-child th:last-child{border-top-right-radius:2px}.ant-table-footer{border-radius:0 0 2px 2px}.ant-table-wrapper-rtl{direction:rtl}.ant-table-rtl{direction:rtl}.ant-table-wrapper-rtl .ant-table table{text-align:right}.ant-table-wrapper-rtl .ant-table-thead>tr>th[colspan]:not([colspan="1"]){text-align:center}.ant-table-wrapper-rtl .ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]):before{right:auto;left:0}.ant-table-wrapper-rtl .ant-table-thead>tr>th{text-align:right}.ant-table-tbody>tr .ant-table-wrapper:only-child .ant-table.ant-table-rtl{margin:-16px 33px -16px -16px}.ant-table-wrapper.ant-table-wrapper-rtl .ant-table-pagination-left{justify-content:flex-end}.ant-table-wrapper.ant-table-wrapper-rtl .ant-table-pagination-right{justify-content:flex-start}.ant-table-wrapper-rtl .ant-table-column-sorter{margin-right:4px;margin-left:0}.ant-table-wrapper-rtl .ant-table-filter-column-title{padding:16px 16px 16px 2.3em}.ant-table-rtl .ant-table-thead tr th.ant-table-column-has-sorters .ant-table-filter-column-title{padding:0 0 0 2.3em}.ant-table-wrapper-rtl .ant-table-filter-trigger{margin:-4px 4px -4px -8px}.ant-dropdown-menu-submenu-rtl.ant-table-filter-dropdown-submenu .ant-checkbox-wrapper+span,.ant-dropdown-menu-submenu-rtl.ant-table-filter-dropdown .ant-checkbox-wrapper+span,.ant-dropdown-rtl .ant-table-filter-dropdown-submenu .ant-checkbox-wrapper+span,.ant-dropdown-rtl .ant-table-filter-dropdown .ant-checkbox-wrapper+span{padding-right:8px;padding-left:0}.ant-table-wrapper-rtl .ant-table-selection{text-align:center}.ant-table-wrapper-rtl .ant-table-row-indent{float:right}.ant-table-wrapper-rtl .ant-table-row-expand-icon{float:right}.ant-table-wrapper-rtl .ant-table-row-indent+.ant-table-row-expand-icon{margin-right:0;margin-left:8px}.ant-table-wrapper-rtl .ant-table-row-expand-icon:after{transform:rotate(-90deg)}.ant-table-wrapper-rtl .ant-table-row-expand-icon-collapsed:before{transform:rotate(180deg)}.ant-table-wrapper-rtl .ant-table-row-expand-icon-collapsed:after{transform:rotate(0deg)}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}@keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}@keyframes ant-tree-node-fx-do-not-use{0%{opacity:0}to{opacity:1}}.ant-tree.ant-tree-directory .ant-tree-treenode{position:relative}.ant-tree.ant-tree-directory .ant-tree-treenode:before{position:absolute;top:0;right:0;bottom:4px;left:0;transition:background-color .3s;content:"";pointer-events:none}.ant-tree.ant-tree-directory .ant-tree-treenode:hover:before{background:#f5f5f5}.ant-tree.ant-tree-directory .ant-tree-treenode>*{z-index:1}.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-switcher{transition:color .3s}.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper{border-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper:hover{background:transparent}.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper.ant-tree-node-selected{color:#fff;background:transparent}.ant-tree.ant-tree-directory .ant-tree-treenode-selected:before,.ant-tree.ant-tree-directory .ant-tree-treenode-selected:hover:before{background:#1890ff;background:var(--ant-primary-color)}.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-switcher{color:#fff}.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-node-content-wrapper{color:#fff;background:transparent}.ant-tree-checkbox{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-tree-checkbox-input:focus+.ant-tree-checkbox-inner,.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-inner,.ant-tree-checkbox:hover .ant-tree-checkbox-inner{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-tree-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);border-radius:2px;visibility:hidden;animation:antCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;content:""}.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox:after,.ant-tree-checkbox:hover:after{visibility:visible}.ant-tree-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all .3s}.ant-tree-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-tree-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-tree-checkbox-checked .ant-tree-checkbox-inner{background-color:#1890ff;background-color:var(--ant-primary-color);border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-tree-checkbox-disabled{cursor:not-allowed}.ant-tree-checkbox-disabled.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after{border-color:rgba(0,0,0,.25);animation-name:none}.ant-tree-checkbox-disabled .ant-tree-checkbox-input{cursor:not-allowed;pointer-events:none}.ant-tree-checkbox-disabled .ant-tree-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after{border-color:#f5f5f5;border-collapse:separate;animation-name:none}.ant-tree-checkbox-disabled+span{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-tree-checkbox-disabled:hover:after,.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-disabled:after{visibility:hidden}.ant-tree-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-tree-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\a0"}.ant-tree-checkbox-wrapper.ant-tree-checkbox-wrapper-disabled{cursor:not-allowed}.ant-tree-checkbox-wrapper+.ant-tree-checkbox-wrapper{margin-left:8px}.ant-tree-checkbox-wrapper.ant-tree-checkbox-wrapper-in-form-item input[type=checkbox]{width:14px;height:14px}.ant-tree-checkbox+span{padding-right:8px;padding-left:8px}.ant-tree-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-block}.ant-tree-checkbox-group-item{margin-right:8px}.ant-tree-checkbox-group-item:last-child{margin-right:0}.ant-tree-checkbox-group-item+.ant-tree-checkbox-group-item{margin-left:0}.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#1890ff;background-color:var(--ant-primary-color);border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-tree-checkbox-indeterminate.ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after{background-color:rgba(0,0,0,.25);border-color:rgba(0,0,0,.25)}.ant-tree{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";background:#fff;border-radius:2px;transition:background-color .3s}.ant-tree-focused:not(:hover):not(.ant-tree-active-focused){background:#e6f7ff;background:var(--ant-primary-1)}.ant-tree-list-holder-inner{align-items:flex-start}.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner{align-items:stretch}.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper{flex:auto}.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-treenode.dragging{position:relative}.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-treenode.dragging:after{position:absolute;top:0;right:0;bottom:4px;left:0;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);opacity:0;animation:ant-tree-node-fx-do-not-use .3s;animation-play-state:running;animation-fill-mode:forwards;content:"";pointer-events:none}.ant-tree .ant-tree-treenode{display:flex;align-items:flex-start;padding:0 0 4px;outline:none}.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper:hover{background:transparent}.ant-tree .ant-tree-treenode-active .ant-tree-node-content-wrapper{background:#f5f5f5}.ant-tree .ant-tree-treenode:not(.ant-tree .ant-tree-treenode-disabled).filter-node .ant-tree-title{color:inherit;font-weight:500}.ant-tree-indent{align-self:stretch;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-tree-indent-unit{display:inline-block;width:24px}.ant-tree-draggable-icon{width:24px;line-height:24px;text-align:center;opacity:.2;transition:opacity .3s}.ant-tree-treenode:hover .ant-tree-draggable-icon{opacity:.45}.ant-tree-switcher{position:relative;flex:none;align-self:stretch;width:24px;margin:0;line-height:24px;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-tree-switcher .ant-select-tree-switcher-icon,.ant-tree-switcher .ant-tree-switcher-icon{display:inline-block;font-size:10px;vertical-align:baseline}.ant-tree-switcher .ant-select-tree-switcher-icon svg,.ant-tree-switcher .ant-tree-switcher-icon svg{transition:transform .3s}.ant-tree-switcher-noop{cursor:default}.ant-tree-switcher_close .ant-tree-switcher-icon svg{transform:rotate(-90deg)}.ant-tree-switcher-loading-icon{color:#1890ff;color:var(--ant-primary-color)}.ant-tree-switcher-leaf-line{position:relative;z-index:1;display:inline-block;width:100%;height:100%}.ant-tree-switcher-leaf-line:before{position:absolute;top:0;right:12px;bottom:-4px;margin-left:-1px;border-right:1px solid #d9d9d9;content:" "}.ant-tree-switcher-leaf-line:after{position:absolute;width:10px;height:14px;border-bottom:1px solid #d9d9d9;content:" "}.ant-tree-checkbox{top:auto;margin:4px 8px 0 0}.ant-tree .ant-tree-node-content-wrapper{position:relative;z-index:auto;min-height:24px;margin:0;padding:0 4px;color:inherit;line-height:24px;background:transparent;border-radius:2px;cursor:pointer;transition:all .3s,border 0s,line-height 0s,box-shadow 0s}.ant-tree .ant-tree-node-content-wrapper:hover{background-color:#f5f5f5}.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{background-color:#bae7ff;background-color:var(--ant-primary-2)}.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle{display:inline-block;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:top}.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle:empty{display:none}.ant-tree-unselectable .ant-tree-node-content-wrapper:hover{background-color:transparent}.ant-tree-node-content-wrapper{line-height:24px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-tree-node-content-wrapper .ant-tree-drop-indicator{position:absolute;z-index:1;height:2px;background-color:#1890ff;background-color:var(--ant-primary-color);border-radius:1px;pointer-events:none}.ant-tree-node-content-wrapper .ant-tree-drop-indicator:after{position:absolute;top:-3px;left:-6px;width:8px;height:8px;background-color:transparent;border:2px solid #1890ff;border:2px solid var(--ant-primary-color);border-radius:50%;content:""}.ant-tree .ant-tree-treenode.drop-container>[draggable]{box-shadow:0 0 0 2px #1890ff;box-shadow:0 0 0 2px var(--ant-primary-color)}.ant-tree-show-line .ant-tree-indent-unit{position:relative;height:100%}.ant-tree-show-line .ant-tree-indent-unit:before{position:absolute;top:0;right:12px;bottom:-4px;border-right:1px solid #d9d9d9;content:""}.ant-tree-show-line .ant-tree-indent-unit-end:before{display:none}.ant-tree-show-line .ant-tree-switcher{background:#fff}.ant-tree-show-line .ant-tree-switcher-line-icon{vertical-align:-.15em}.ant-tree .ant-tree-treenode-leaf-last .ant-tree-switcher-leaf-line:before{top:auto!important;bottom:auto!important;height:14px!important}.ant-tree-rtl{direction:rtl}.ant-tree-rtl .ant-tree-node-content-wrapper[draggable=true] .ant-tree-drop-indicator:after{right:-6px;left:unset}.ant-tree .ant-tree-treenode-rtl{direction:rtl}.ant-tree-rtl .ant-tree-switcher_close .ant-tree-switcher-icon svg{transform:rotate(90deg)}.ant-tree-rtl.ant-tree-show-line .ant-tree-indent-unit:before{right:auto;left:-13px;border-right:none;border-left:1px solid #d9d9d9}.ant-tree-rtl .ant-tree-checkbox{margin:4px 0 0 8px}.ant-tree-select-dropdown-rtl .ant-select-tree-checkbox{margin:4px 0 0 8px} \ No newline at end of file diff --git a/404.html b/404.html new file mode 100644 index 00000000..4656f8c4 --- /dev/null +++ b/404.html @@ -0,0 +1,318 @@ + + + + + + + + + + + Ant Design Pro + + + + + + + +
+ +
+ logo +
+
+ +
+
+
+ + Ant Design +
+
+
+ + + + + diff --git a/4205.234addc2.async.js b/4205.234addc2.async.js new file mode 100644 index 00000000..b5c4ba33 --- /dev/null +++ b/4205.234addc2.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4205],{37476:function(Re,ie,n){"use strict";n.d(ie,{Y:function(){return ue}});var N=n(71194),s=n(50146),A=n(22122),I=n(55507),F=n(92137),ce=n(28991),r=n(28481),me=n(84305),p=n(75901),x=n(81253),S=n(82492),q=n.n(S),H=n(76632),se=n(80334),d=n(67294),ee=n(73935),te=n(24214),Ce=["children","trigger","onVisibleChange","modalProps","onFinish","submitTimeout","title","width","visible"];function ue(_){var V,ne,k,R,D=_.children,T=_.trigger,h=_.onVisibleChange,C=_.modalProps,oe=_.onFinish,G=_.submitTimeout,Q=_.title,De=_.width,re=_.visible,K=(0,x.Z)(_,Ce);(0,se.ET)(!K.footer||!(C==null?void 0:C.footer),"ModalForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var $=(0,d.useContext)(p.ZP.ConfigContext),ge=(0,d.useState)([]),xe=(0,r.Z)(ge,2),_e=xe[1],Te=(0,d.useState)(!1),Ee=(0,r.Z)(Te,2),Pe=Ee[0],Y=Ee[1],ae=(0,H.Z)(!!re,{value:re,onChange:h}),Oe=(0,r.Z)(ae,2),le=Oe[0],U=Oe[1],fe=(0,d.useRef)(null),he=(0,d.useCallback)(function(t){fe.current===null&&t&&_e([]),fe.current=t},[]),Me=(0,d.useRef)();(0,d.useEffect)(function(){le&&re&&(h==null||h(!0))},[re,le]);var be=(0,d.useMemo)(function(){return T?d.cloneElement(T,(0,ce.Z)((0,ce.Z)({key:"trigger"},T.props),{},{onClick:function(){var t=(0,F.Z)((0,I.Z)().mark(function a(o){var l,c;return(0,I.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:U(!le),(l=T.props)===null||l===void 0||(c=l.onClick)===null||c===void 0||c.call(l,o);case 2:case"end":return i.stop()}},a)}));function e(a){return t.apply(this,arguments)}return e}()})):null},[U,T,le]),ye=(0,d.useMemo)(function(){var t,e,a,o,l,c,v,i;return K.submitter===!1?!1:q()({searchConfig:{submitText:(t=(e=C==null?void 0:C.okText)!==null&&e!==void 0?e:(a=$.locale)===null||a===void 0||(o=a.Modal)===null||o===void 0?void 0:o.okText)!==null&&t!==void 0?t:"\u786E\u8BA4",resetText:(l=(c=C==null?void 0:C.cancelText)!==null&&c!==void 0?c:(v=$.locale)===null||v===void 0||(i=v.Modal)===null||i===void 0?void 0:i.cancelText)!==null&&l!==void 0?l:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:G?Pe:void 0,onClick:function(E){var m;U(!1),C==null||(m=C.onCancel)===null||m===void 0||m.call(C,E)}}},K.submitter)},[(V=$.locale)===null||V===void 0||(ne=V.Modal)===null||ne===void 0?void 0:ne.cancelText,(k=$.locale)===null||k===void 0||(R=k.Modal)===null||R===void 0?void 0:R.okText,C,K.submitter,U,Pe,G]),b=(0,d.useCallback)(function(t,e){return d.createElement(d.Fragment,null,t,fe.current&&e?(0,ee.createPortal)(e,fe.current):e)},[]),Ae=(0,d.useCallback)(function(){var t=(0,F.Z)((0,I.Z)().mark(function e(a){var o,l,c;return(0,I.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return o=oe==null?void 0:oe(a),G&&o instanceof Promise&&(Y(!0),l=setTimeout(function(){return Y(!1)},G),o.finally(function(){clearTimeout(l),Y(!1)})),i.next=4,o;case 4:return c=i.sent,c&&U(!1),i.abrupt("return",c);case 7:case"end":return i.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),[oe,U,G]);return d.createElement(d.Fragment,null,d.createElement(s.Z,(0,A.Z)({title:Q,width:De||800},C,{visible:le,onCancel:function(e){var a;G&&Pe||(U(!1),C==null||(a=C.onCancel)===null||a===void 0||a.call(C,e))},footer:K.submitter!==!1&&d.createElement("div",{ref:he,style:{display:"flex",justifyContent:"flex-end"}})}),d.createElement(te.I,(0,A.Z)({formComponentType:"ModalForm",layout:"vertical",formRef:Me},K,{submitter:ye,onFinish:function(){var t=(0,F.Z)((0,I.Z)().mark(function e(a){var o,l,c,v;return(0,I.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,Ae(a);case 2:return c=f.sent,v=(o=(l=K.formRef)===null||l===void 0?void 0:l.current)!==null&&o!==void 0?o:Me.current,c&&v&&v.resetFields(),f.abrupt("return",c);case 6:case"end":return f.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),contentRender:b}),D)),be)}},41412:function(){},86743:function(Re,ie,n){"use strict";var N=n(22122),s=n(28481),A=n(67294),I=n(30470),F=n(71577),ce=n(73839);function r(p){return!!(p&&!!p.then)}var me=function(x){var S=A.useRef(!1),q=A.useRef(),H=(0,I.Z)(!1),se=(0,s.Z)(H,2),d=se[0],ee=se[1];A.useEffect(function(){var k;if(x.autoFocus){var R=q.current;k=setTimeout(function(){return R.focus()})}return function(){k&&clearTimeout(k)}},[]);var te=function(R){var D=x.close;!r(R)||(ee(!0),R.then(function(){ee(!1,!0),D.apply(void 0,arguments),S.current=!1},function(T){console.error(T),ee(!1,!0),S.current=!1}))},Ce=function(R){var D=x.actionFn,T=x.close;if(!S.current){if(S.current=!0,!D){T();return}var h;if(x.emitEvent){if(h=D(R),x.quitOnNullishReturnValue&&!r(h)){S.current=!1,T(R);return}}else if(D.length)h=D(T),S.current=!1;else if(h=D(),!h){T();return}te(h)}},ue=x.type,_=x.children,V=x.prefixCls,ne=x.buttonProps;return A.createElement(F.Z,(0,N.Z)({},(0,ce.n)(ue),{onClick:Ce,loading:d,prefixCls:V},ne,{ref:q}),_)};ie.Z=me},50146:function(Re,ie,n){"use strict";n.d(ie,{Z:function(){return Ae}});var N=n(96156),s=n(22122),A=n(54549),I=n(94184),F=n.n(I),ce=n(57315),r=n(67294),me=n(71577),p=n(73839),x=n(53124),S=n(65223),q=n(42051),H=n(33603),se=n(31808),d=n(83008),ee=function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l*{white-space:unset}.ant-page-header-content{padding-top:12px}.ant-page-header-footer{margin-top:16px}.ant-page-header-footer .ant-tabs>.ant-tabs-nav{margin:0}.ant-page-header-footer .ant-tabs>.ant-tabs-nav:before{border:none}.ant-page-header-footer .ant-tabs .ant-tabs-tab{padding-top:8px;padding-bottom:8px;font-size:16px}.ant-page-header-compact .ant-page-header-heading{flex-wrap:wrap}.ant-page-header-rtl{direction:rtl}.ant-page-header-rtl .ant-page-header-back{float:right;margin-right:0;margin-left:16px}.ant-page-header-rtl .ant-page-header-heading-title{margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading .ant-avatar{margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-sub-title{float:right;margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-tags{float:right}.ant-page-header-rtl .ant-page-header-heading-extra{float:left}.ant-page-header-rtl .ant-page-header-heading-extra>*{margin-right:12px;margin-left:0}.ant-page-header-rtl .ant-page-header-heading-extra>:first-child{margin-right:0}.ant-page-header-rtl .ant-page-header-footer .ant-tabs-bar .ant-tabs-nav{float:right}.ant-pro-core-field-dropdown-label{cursor:pointer}.ant-pro-core-field-dropdown-overlay{min-width:200px;margin-top:4px;background-color:#fff;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-pro-core-field-dropdown-content{padding:16px}.ant-modal{box-sizing:border-box;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";pointer-events:none;position:relative;top:100px;width:auto;max-width:calc(100vw - 32px);margin:0 auto;padding:0 0 24px}.ant-modal.ant-zoom-appear,.ant-modal.ant-zoom-enter{transform:none;opacity:0;animation-duration:.3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100%;background-color:rgba(0,0,0,.45)}.ant-modal-mask-hidden{display:none}.ant-modal-wrap{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch}.ant-modal-wrap{z-index:1000}.ant-modal-title{margin:0;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;line-height:22px;word-wrap:break-word}.ant-modal-content{position:relative;background-color:#fff;background-clip:padding-box;border:0;border-radius:2px;box-shadow:0 3px 6px -4px rgba(0,0,0,.12),0 6px 16px 0 rgba(0,0,0,.08),0 9px 28px 8px rgba(0,0,0,.05);pointer-events:auto}.ant-modal-close{position:absolute;top:0;right:0;z-index:10;padding:0;color:rgba(0,0,0,.45);font-weight:700;line-height:1;text-decoration:none;background:transparent;border:0;outline:0;cursor:pointer;transition:color .3s}.ant-modal-close-x{display:block;width:56px;height:56px;font-size:16px;font-style:normal;line-height:56px;text-align:center;text-transform:none;text-rendering:auto}.ant-modal-close:focus,.ant-modal-close:hover{color:rgba(0,0,0,.75);text-decoration:none}.ant-modal-header{padding:16px 24px;color:rgba(0,0,0,.85);background:#fff;border-bottom:1px solid rgba(0,0,0,.06);border-radius:2px 2px 0 0}.ant-modal-body{padding:24px;font-size:14px;line-height:1.5715;word-wrap:break-word}.ant-modal-footer{padding:10px 16px;text-align:right;background:transparent;border-top:1px solid rgba(0,0,0,.06);border-radius:0 0 2px 2px}.ant-modal-footer .ant-btn+.ant-btn:not(.ant-dropdown-trigger){margin-bottom:0;margin-left:8px}.ant-modal-open{overflow:hidden}.ant-modal-centered{text-align:center}.ant-modal-centered:before{display:inline-block;width:0;height:100%;vertical-align:middle;content:""}.ant-modal-centered .ant-modal{top:0;display:inline-block;padding-bottom:0;text-align:left;vertical-align:middle}@media (max-width:767px){.ant-modal{max-width:calc(100vw - 16px);margin:8px auto}.ant-modal-centered .ant-modal{flex:1 1}}.ant-modal-confirm .ant-modal-header{display:none}.ant-modal-confirm .ant-modal-body{padding:32px 32px 24px}.ant-modal-confirm-body-wrapper:before{display:table;content:""}.ant-modal-confirm-body-wrapper:after{display:table;clear:both;content:""}.ant-modal-confirm-body .ant-modal-confirm-title{display:block;overflow:hidden;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;line-height:1.4}.ant-modal-confirm-body .ant-modal-confirm-content{margin-top:8px;color:rgba(0,0,0,.85);font-size:14px}.ant-modal-confirm-body>.anticon{float:left;margin-right:16px;font-size:22px}.ant-modal-confirm-body>.anticon+.ant-modal-confirm-title+.ant-modal-confirm-content{margin-left:38px}.ant-modal-confirm .ant-modal-confirm-btns{margin-top:24px;text-align:right}.ant-modal-confirm .ant-modal-confirm-btns .ant-btn+.ant-btn{margin-bottom:0;margin-left:8px}.ant-modal-confirm-error .ant-modal-confirm-body>.anticon{color:#ff4d4f;color:var(--ant-error-color)}.ant-modal-confirm-confirm .ant-modal-confirm-body>.anticon,.ant-modal-confirm-warning .ant-modal-confirm-body>.anticon{color:#faad14;color:var(--ant-warning-color)}.ant-modal-confirm-info .ant-modal-confirm-body>.anticon{color:#1890ff;color:var(--ant-info-color)}.ant-modal-confirm-success .ant-modal-confirm-body>.anticon{color:#52c41a;color:var(--ant-success-color)}.ant-modal-wrap-rtl{direction:rtl}.ant-modal-wrap-rtl .ant-modal-close{right:auto;left:0}.ant-modal-wrap-rtl .ant-modal-footer{text-align:left}.ant-modal-wrap-rtl .ant-modal-footer .ant-btn+.ant-btn{margin-right:8px;margin-left:0}.ant-modal-wrap-rtl .ant-modal-confirm-body{direction:rtl}.ant-modal-wrap-rtl .ant-modal-confirm-body>.anticon{float:right;margin-right:0;margin-left:16px}.ant-modal-wrap-rtl .ant-modal-confirm-body>.anticon+.ant-modal-confirm-title+.ant-modal-confirm-content{margin-right:38px;margin-left:0}.ant-modal-wrap-rtl .ant-modal-confirm-btns{text-align:left}.ant-modal-wrap-rtl .ant-modal-confirm-btns .ant-btn+.ant-btn{margin-right:8px;margin-left:0}.ant-modal-wrap-rtl.ant-modal-centered .ant-modal{text-align:right}.ant-pro-field-date-picker-light .ant-calendar-picker,.ant-pro-field-date-picker-light .ant-picker{position:absolute;width:80px;height:28px;overflow:hidden;visibility:hidden}.ant-pro-core-field-label{display:inline-flex;grid-gap:4px;gap:4px;align-items:center;height:30px;padding:0 4px;font-size:14px;line-height:30px;border-radius:2px;cursor:pointer}.ant-pro-core-field-label:hover{background-color:rgba(0,0,0,.1)}.ant-pro-core-field-label-active{padding:0 12px;background-color:rgba(0,0,0,.04)}.ant-pro-core-field-label-active.ant-pro-core-field-label-allow-clear:hover:not(.ant-pro-core-field-label-disabled) .ant-pro-core-field-label-arrow{display:none}.ant-pro-core-field-label-active.ant-pro-core-field-label-allow-clear:hover:not(.ant-pro-core-field-label-disabled) .ant-pro-core-field-label-close{display:inline-block}.ant-pro-core-field-label-icon{height:12px;padding:1px;color:rgba(0,0,0,.45);font-size:12px;vertical-align:middle}.ant-pro-core-field-label-icon.ant-pro-core-field-label-close{display:none;height:14px;padding:3px;color:#fff;font-size:8px;background-color:rgba(0,0,0,.25);border-radius:50%}.ant-pro-core-field-label-icon.ant-pro-core-field-label-close:hover{background-color:rgba(0,0,0,.45)}.ant-pro-core-field-label-disabled{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-pro-core-field-label-disabled .ant-pro-core-field-label-icon{color:rgba(0,0,0,.25)}.ant-pro-core-field-label-small{height:24px;padding:0 4px;font-size:12px;line-height:24px}.ant-pro-core-field-label-small.ant-pro-core-field-label-active{padding:0 8px}.ant-pro-core-field-label-small .ant-pro-core-field-label-icon{padding:0}.ant-pro-core-field-label-small .ant-pro-core-field-label-close{margin-top:-2px;padding:3px;font-size:6px}.ant-pro-core-field-label-bordered{height:32px;padding:0 12px;border:1px solid #d9d9d9;border-radius:2px}.ant-pro-core-field-label-bordered.ant-pro-core-field-label-small{height:24px;padding:0 8px}.ant-pro-core-field-label-bordered.ant-pro-core-field-label-active{background-color:#fff}.ant-pro-field-index-column{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px}.ant-pro-field-index-column-border{color:#fff;font-size:12px;line-height:12px;background-color:#314659;border-radius:9px}.ant-pro-field-index-column-border.top-three{background-color:#979797}.ant-pro-table-dropdown{width:auto}.ant-pro-select-item-option-content-light{color:var(--ant-primary-color)}.ant-pro-select-item-option-content{flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-pro-field-dropdown{width:auto}.ant-pro-field-select-light-select .ant-select{position:absolute;width:153px;height:28px;visibility:hidden}.ant-pro-field-select-light-select .ant-select-selector{height:28px}.ant-pro-field-select-light-select.ant-pro-field-select-light-select-searchable .ant-select{width:200px}.ant-pro-field-select-light-select.ant-pro-field-select-light-select-searchable .ant-select-selector{height:28px}.ant-pro-field-checkbox-vertical .ant-checkbox-group-item{display:flex;margin-right:0}.ant-breadcrumb{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";color:rgba(0,0,0,.45);font-size:14px}.ant-breadcrumb .anticon{font-size:14px}.ant-breadcrumb ol{display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none}.ant-breadcrumb a{color:rgba(0,0,0,.45);transition:color .3s}.ant-breadcrumb a:hover{color:rgba(0,0,0,.85)}.ant-breadcrumb li:last-child{color:rgba(0,0,0,.85)}.ant-breadcrumb li:last-child a{color:rgba(0,0,0,.85)}li:last-child .ant-breadcrumb-separator{display:none}.ant-breadcrumb-separator{margin:0 8px;color:rgba(0,0,0,.45)}.ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-link>.anticon+span{margin-left:4px}.ant-breadcrumb-overlay-link>.anticon{margin-left:4px}.ant-breadcrumb-rtl{direction:rtl}.ant-breadcrumb-rtl:before{display:table;content:""}.ant-breadcrumb-rtl:after{display:table;clear:both;content:""}.ant-breadcrumb-rtl>span{float:right}.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+span{margin-right:4px;margin-left:0}.ant-breadcrumb-rtl .ant-breadcrumb-overlay-link>.anticon{margin-right:4px;margin-left:0}.ant-pro-core-dropdown-footer{display:flex;justify-content:space-between;padding:16px 16px 16px 8px;border-top:1px solid rgba(0,0,0,.06)}.ant-pro-footer-bar{position:fixed;right:0;bottom:0;z-index:99;display:flex;align-items:center;width:100%;padding:0 24px;line-height:44px;background:#fff;border-top:1px solid rgba(0,0,0,.06);box-shadow:0 -6px 16px -8px rgba(0,0,0,.08),0 -9px 28px 0 rgba(0,0,0,.05),0 -12px 48px 16px rgba(0,0,0,.03);transition:width .3s cubic-bezier(.645,.045,.355,1)}.ant-pro-footer-bar-left{flex:1 1}.ant-pro-footer-bar-right>*{margin-right:8px}.ant-pro-footer-bar-right>:last-child{margin:0}.ant-pro-page-container-children-content{margin:24px 24px 0;padding:inherit}.ant-pro-page-container{background-color:inherit}.ant-pro-page-container-warp{background-color:#fff}.ant-pro-page-container-warp .ant-tabs-nav{margin:0}.ant-pro-page-container-ghost .ant-pro-page-container-warp{background-color:transparent}.ant-pro-page-container-ghost .ant-pro-page-container-children-content{margin-top:0}.ant-pro-page-container-main .ant-pro-page-container-detail{display:flex}.ant-pro-page-container-main .ant-pro-page-container-row{display:flex;width:100%}.ant-pro-page-container-main .ant-pro-page-container-title-content{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-content,.ant-pro-page-container-main .ant-pro-page-container-title{flex:auto;width:100%}.ant-pro-page-container-main .ant-pro-page-container-extraContent,.ant-pro-page-container-main .ant-pro-page-container-main{flex:0 1 auto}.ant-pro-page-container-main .ant-pro-page-container-main{width:100%}.ant-pro-page-container-main .ant-pro-page-container-title{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-logo{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-extraContent{min-width:242px;margin-left:88px;text-align:right}@media screen and (max-width:1200px){.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:44px}}@media screen and (max-width:992px){.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:20px}}@media screen and (max-width:768px){.ant-pro-page-container-main .ant-pro-page-container-row{display:block}.ant-pro-page-container-main .ant-pro-page-container-action,.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:0;text-align:left}}@media screen and (max-width:576px){.ant-pro-page-container-detail{display:block}.ant-pro-page-container-extraContent{margin-left:0}}.ant-pro-field-radio-vertical .ant-radio-wrapper{display:block;margin-right:0}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-result{padding:48px 32px}.ant-result-success .ant-result-icon>.anticon{color:#52c41a;color:var(--ant-success-color)}.ant-result-error .ant-result-icon>.anticon{color:#ff4d4f;color:var(--ant-error-color)}.ant-result-info .ant-result-icon>.anticon{color:#1890ff;color:var(--ant-info-color)}.ant-result-warning .ant-result-icon>.anticon{color:#faad14;color:var(--ant-warning-color)}.ant-result-image{width:250px;height:295px;margin:auto}.ant-result-icon{margin-bottom:24px;text-align:center}.ant-result-icon>.anticon{font-size:72px}.ant-result-title{color:rgba(0,0,0,.85);font-size:24px;line-height:1.8;text-align:center}.ant-result-subtitle{color:rgba(0,0,0,.45);font-size:14px;line-height:1.6;text-align:center}.ant-result-extra{margin:24px 0 0;text-align:center}.ant-result-extra>*{margin-right:8px}.ant-result-extra>:last-child{margin-right:0}.ant-result-content{margin-top:24px;padding:24px 40px;background-color:#fafafa}.ant-result-rtl{direction:rtl}.ant-result-rtl .ant-result-extra>*{margin-right:0;margin-left:8px}.ant-result-rtl .ant-result-extra>:last-child{margin-left:0} \ No newline at end of file diff --git a/4553.14f699c6.async.js b/4553.14f699c6.async.js new file mode 100644 index 00000000..8e883c46 --- /dev/null +++ b/4553.14f699c6.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4553],{94506:function(ee,M,e){"use strict";e.d(M,{Z:function(){return T}});var c=e(28991),r=e(67294),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M789 610.3c-38.7-12.9-90.7-32.7-148.5-53.6 34.8-60.3 62.5-129 80.7-203.6H530.5v-68.6h233.6v-38.3H530.5V132h-95.4c-16.7 0-16.7 16.5-16.7 16.5v97.8H182.2v38.3h236.3v68.6H223.4v38.3h378.4a667.18 667.18 0 01-54.5 132.9c-122.8-40.4-253.8-73.2-336.1-53-52.6 13-86.5 36.1-106.5 60.3-91.4 111-25.9 279.6 167.2 279.6C386 811.2 496 747.6 581.2 643 708.3 704 960 808.7 960 808.7V659.4s-31.6-2.5-171-49.1zM253.9 746.6c-150.5 0-195-118.3-120.6-183.1 24.8-21.9 70.2-32.6 94.4-35 89.4-8.8 172.2 25.2 269.9 72.8-68.8 89.5-156.3 145.3-243.7 145.3z"}}]},name:"alipay",theme:"outlined"},p=v,E=e(27029),P=function(C,A){return r.createElement(E.Z,(0,c.Z)((0,c.Z)({},C),{},{ref:A,icon:p}))};P.displayName="AlipayOutlined";var T=r.forwardRef(P)},73566:function(ee,M,e){"use strict";e.d(M,{Z:function(){return T}});var c=e(28991),r=e(67294),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingding",theme:"outlined"},p=v,E=e(27029),P=function(C,A){return r.createElement(E.Z,(0,c.Z)((0,c.Z)({},C),{},{ref:A,icon:p}))};P.displayName="DingdingOutlined";var T=r.forwardRef(P)},90631:function(ee,M,e){"use strict";e.d(M,{Z:function(){return T}});var c=e(28991),r=e(67294),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},p=v,E=e(27029),P=function(C,A){return r.createElement(E.Z,(0,c.Z)((0,c.Z)({},C),{},{ref:A,icon:p}))};P.displayName="DownloadOutlined";var T=r.forwardRef(P)},98522:function(ee,M,e){"use strict";e.d(M,{Z:function(){return T}});var c=e(28991),r=e(67294),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168.5 273.7a68.7 68.7 0 10137.4 0 68.7 68.7 0 10-137.4 0zm730 79.2s-23.7-184.4-426.9-70.1c17.3-30 25.6-49.5 25.6-49.5L396.4 205s-40.6 132.6-113 194.4c0 0 70.1 40.6 69.4 39.4 20.1-20.1 38.2-40.6 53.7-60.4 16.1-7 31.5-13.6 46.7-19.8-18.6 33.5-48.7 83.8-78.8 115.6l42.4 37s28.8-27.7 60.4-61.2h36v61.8H372.9v49.5h140.3v118.5c-1.7 0-3.6 0-5.4-.2-15.4-.7-39.5-3.3-49-18.2-11.5-18.1-3-51.5-2.4-71.9h-97l-3.4 1.8s-35.5 159.1 102.3 155.5c129.1 3.6 203-36 238.6-63.1l14.2 52.6 79.6-33.2-53.9-131.9-64.6 20.1 12.1 45.2c-16.6 12.4-35.6 21.7-56.2 28.4V561.3h137.1v-49.5H628.1V450h137.6v-49.5H521.3c17.6-21.4 31.5-41.1 35-53.6l-42.5-11.6c182.8-65.5 284.5-54.2 283.6 53.2v282.8s10.8 97.1-100.4 90.1l-60.2-12.9-14.2 57.1S882.5 880 903.7 680.2c21.3-200-5.2-327.3-5.2-327.3zm-707.4 18.3l-45.4 69.7 83.6 52.1s56 28.5 29.4 81.9C233.8 625.5 112 736.3 112 736.3l109 68.1c75.4-163.7 70.5-142 89.5-200.7 19.5-60.1 23.7-105.9-9.4-139.1-42.4-42.6-47-46.6-110-93.4z"}}]},name:"taobao",theme:"outlined"},p=v,E=e(27029),P=function(C,A){return r.createElement(E.Z,(0,c.Z)((0,c.Z)({},C),{},{ref:A,icon:p}))};P.displayName="TaobaoOutlined";var T=r.forwardRef(P)},84391:function(ee,M,e){"use strict";e.d(M,{Z:function(){return T}});var c=e(28991),r=e(67294),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},p=v,E=e(27029),P=function(C,A){return r.createElement(E.Z,(0,c.Z)((0,c.Z)({},C),{},{ref:A,icon:p}))};P.displayName="UploadOutlined";var T=r.forwardRef(P)},61768:function(ee,M,e){"use strict";var c=e(22122),r=e(28991),v=e(85061),p=e(81253),E=e(47673),P=e(4107),T=e(49111),N=e(19650),C=e(31194),A=e(50344),L=e(67294),S=e(71436),de=e(2514),$=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue"],O=["children","space","valuePropName"],X={space:N.Z,group:P.Z.Group};function W(K){var R=arguments.length<=1?void 0:arguments[1];return R&&R.target&&K in R.target?R.target[K]:R}var oe=function(R){var he=R.children,_=R.value,F=_===void 0?[]:_,te=R.valuePropName,ve=R.onChange,ye=R.fieldProps,H=R.space,_e=R.type,Se=_e===void 0?"space":_e,yt=R.transform,et=R.convertValue,tt=(0,p.Z)(R,$),ze=(0,C.J)(function(j,Ee){var Y,ge=(0,v.Z)(F);ge[Ee]=W(te||"value",j),ve==null||ve(ge),ye==null||(Y=ye.onChange)===null||Y===void 0||Y.call(ye,ge)}),Ue=-1,nt=(0,A.Z)(he).map(function(j){if(L.isValidElement(j)){var Ee,Y,ge;Ue+=1;var De=Ue,at=(j==null||(Ee=j.type)===null||Ee===void 0?void 0:Ee.displayName)==="ProFormComponent"||(j==null||(Y=j.props)===null||Y===void 0?void 0:Y.readonly),ot=at?(0,r.Z)((0,r.Z)({key:De,ignoreFormItem:!0},j.props||{}),{},{fieldProps:(0,r.Z)((0,r.Z)({},j==null||(ge=j.props)===null||ge===void 0?void 0:ge.fieldProps),{},{onChange:function(){ze(arguments.length<=0?void 0:arguments[0],De)}}),value:F==null?void 0:F[De],onChange:void 0}):(0,r.Z)((0,r.Z)({key:De},j.props||{}),{},{value:F==null?void 0:F[De],onChange:function(lt){var We,it;ze(lt,De),(We=(it=j.props).onChange)===null||We===void 0||We.call(it,lt)}});return L.cloneElement(j,ot)}return j}),xe=X[Se],Ve=(0,de.zx)(tt),Oe=Ve.RowWrapper,$e=(0,L.useMemo)(function(){return(0,r.Z)({},Se==="group"?{compact:!0}:{})},[Se]),rt=(0,L.useCallback)(function(j){var Ee=j.children;return L.createElement(xe,(0,c.Z)({},$e,H,{align:"start"}),Ee)},[xe,H,$e]);return L.createElement(Oe,{Wrapper:rt},nt)},ue=L.forwardRef(function(K,R){var he=K.children,_=K.space,F=K.valuePropName,te=(0,p.Z)(K,O);return(0,L.useImperativeHandle)(R,function(){return{}}),L.createElement(oe,(0,c.Z)({space:_,valuePropName:F},te.fieldProps,{onChange:void 0},te),he)}),me=(0,S.G)(ue);M.Z=me},64317:function(ee,M,e){"use strict";var c=e(22122),r=e(28991),v=e(81253),p=e(96202),E=e(67294),P=e(66758),T=e(97519),N=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],C=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],A=E.forwardRef(function(O,X){var W=O.fieldProps,oe=O.children,ue=O.params,me=O.proFieldProps,K=O.mode,R=O.valueEnum,he=O.request,_=O.showSearch,F=O.options,te=(0,v.Z)(O,N),ve=(0,E.useContext)(P.Z);return E.createElement(T.Z,(0,c.Z)({mode:"edit",valueEnum:(0,p.h)(R),request:he,params:ue,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:F,mode:K,showSearch:_,getPopupContainer:ve.getPopupContainer},W),ref:X,proFieldProps:me},te),oe)}),L=E.forwardRef(function(O,X){var W=O.fieldProps,oe=O.children,ue=O.params,me=O.proFieldProps,K=O.mode,R=O.valueEnum,he=O.request,_=O.options,F=(0,v.Z)(O,C),te=(0,r.Z)({options:_,mode:K||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},W),ve=(0,E.useContext)(P.Z);return E.createElement(T.Z,(0,c.Z)({mode:"edit",valueEnum:(0,p.h)(R),request:he,params:ue,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({getPopupContainer:ve.getPopupContainer},te),ref:X,proFieldProps:me},F),oe)}),S=A,de=L,$=S;$.SearchSelect=de,$.displayName="ProFormComponent",M.Z=$},5966:function(ee,M,e){"use strict";var c=e(22122),r=e(81253),v=e(67294),p=e(97519),E=["fieldProps","proFieldProps"],P=["fieldProps","proFieldProps"],T="text",N=function(S){var de=S.fieldProps,$=S.proFieldProps,O=(0,r.Z)(S,E);return v.createElement(p.Z,(0,c.Z)({mode:"edit",valueType:T,fieldProps:de,filedConfig:{valueType:T},proFieldProps:$},O))},C=function(S){var de=S.fieldProps,$=S.proFieldProps,O=(0,r.Z)(S,P);return v.createElement(p.Z,(0,c.Z)({mode:"edit",valueType:"password",fieldProps:de,proFieldProps:$,filedConfig:{valueType:T}},O))},A=N;A.Password=C,A.displayName="ProFormComponent",M.Z=A},90672:function(ee,M,e){"use strict";var c=e(22122),r=e(81253),v=e(67294),p=e(97519),E=["fieldProps","proFieldProps"],P=function(N,C){var A=N.fieldProps,L=N.proFieldProps,S=(0,r.Z)(N,E);return v.createElement(p.Z,(0,c.Z)({ref:C,mode:"edit",valueType:"textarea",fieldProps:A,proFieldProps:L},S))};M.Z=v.forwardRef(P)},952:function(ee,M,e){"use strict";var c=e(56640),r=e.n(c),v=e(5894);M.ZP=v.A},5894:function(ee,M,e){"use strict";e.d(M,{A:function(){return _}});var c=e(9715),r=e(86835),v=e(22122),p=e(67294),E=e(24214),P=e(96156),T=e(49111),N=e(19650),C=e(84305),A=e(75901),L=e(28481),S=e(28991),de=e(8812),$=e(28664),O=e(58927),X=e(94184),W=e.n(X),oe=e(66758),ue=e(2514),me=e(96138),K=p.forwardRef(function(F,te){var ve=p.useContext(oe.Z),ye=ve.groupProps,H=(0,S.Z)((0,S.Z)({},ye),F),_e=H.children,Se=H.collapsible,yt=H.defaultCollapsed,et=H.style,tt=H.labelLayout,ze=H.title,Ue=ze===void 0?F.label:ze,nt=H.tooltip,xe=H.align,Ve=xe===void 0?"start":xe,Oe=H.direction,$e=H.size,rt=$e===void 0?32:$e,j=H.titleStyle,Ee=H.titleRender,Y=H.spaceProps,ge=H.extra,De=H.autoFocus,at=(0,$.Z)(function(){return yt||!1},{value:F.collapsed,onChange:F.onCollapse}),ot=(0,L.Z)(at,2),He=ot[0],lt=ot[1],We=(0,p.useContext)(A.ZP.ConfigContext),it=We.getPrefixCls,Ge=(0,ue.zx)(F),st=Ge.ColWrapper,Je=Ge.RowWrapper,Ae=it("pro-form-group"),Dt=Se&&p.createElement(de.Z,{style:{marginRight:8},rotate:He?void 0:90}),Ot=p.createElement(O.Z,{label:Dt?p.createElement("div",null,Dt,Ue):Ue,tooltip:nt}),pt=(0,p.useCallback)(function(Fe){var Xe=Fe.children;return p.createElement(N.Z,(0,v.Z)({},Y,{className:W()("".concat(Ae,"-container"),Y==null?void 0:Y.className),size:rt,align:Ve,direction:Oe,style:(0,S.Z)({rowGap:0},Y==null?void 0:Y.style)}),Xe)},[Ve,Ae,Oe,rt,Y]),Zt=Ee?Ee(Ot,F):Ot,we=(0,p.useMemo)(function(){var Fe=[],Xe=p.Children.toArray(_e).map(function(Ze,Ft){var mt;return p.isValidElement(Ze)&&(Ze==null||(mt=Ze.props)===null||mt===void 0?void 0:mt.hidden)?(Fe.push(Ze),null):Ft===0&&p.isValidElement(Ze)&&De?p.cloneElement(Ze,(0,S.Z)((0,S.Z)({},Ze.props),{},{autoFocus:De})):Ze});return[p.createElement(Je,{key:"children",Wrapper:pt},Xe),Fe.length>0?p.createElement("div",{style:{display:"none"}},Fe):null]},[_e,Je,pt,De]),It=(0,L.Z)(we,2),wt=It[0],ft=It[1];return p.createElement(st,null,p.createElement("div",{className:W()(Ae,(0,P.Z)({},"".concat(Ae,"-twoLine"),tt==="twoLine")),style:et,ref:te},ft,(Ue||nt||ge)&&p.createElement("div",{className:"".concat(Ae,"-title"),style:j,onClick:function(){lt(!He)}},ge?p.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"}},Zt,p.createElement("span",{onClick:function(Xe){return Xe.stopPropagation()}},ge)):Zt),Se&&He?null:wt))});K.displayName="ProForm-Group";var R=K,he=e(87808);function _(F){return p.createElement(E.I,(0,v.Z)({layout:"vertical",submitter:{render:function(ve,ye){return ye.reverse()}},contentRender:function(ve,ye){return p.createElement(p.Fragment,null,ve,ye)}},F))}_.Group=R,_.useForm=r.Z.useForm,_.Item=he.Z,_.useWatch=r.Z.useWatch,_.useWatch=r.Z.useWatch,_.ErrorList=r.Z.ErrorList,_.Provider=r.Z.Provider},58927:function(ee,M,e){"use strict";var c=e(22385),r=e(61580),v=e(96156),p=e(84305),E=e(75901),P=e(68628),T=e(94184),N=e.n(T),C=e(67294),A=e(11445),L=e.n(A),S=function($){var O=$.label,X=$.tooltip,W=$.ellipsis,oe=$.subTitle,ue=(0,C.useContext)(E.ZP.ConfigContext),me=ue.getPrefixCls;if(!X&&!oe)return C.createElement(C.Fragment,null,O);var K=me("pro-core-label-tip"),R=typeof X=="string"||C.isValidElement(X)?{title:X}:X,he=(R==null?void 0:R.icon)||C.createElement(P.Z,null);return C.createElement("div",{className:K,onMouseDown:function(F){return F.stopPropagation()},onMouseLeave:function(F){return F.stopPropagation()},onMouseMove:function(F){return F.stopPropagation()}},C.createElement("div",{className:N()("".concat(K,"-title"),(0,v.Z)({},"".concat(K,"-title-ellipsis"),W))},O),oe&&C.createElement("div",{className:"".concat(K,"-subtitle")},oe),X&&C.createElement(r.Z,R,C.createElement("span",{className:"".concat(K,"-icon")},he)))};M.Z=C.memo(S)},31194:function(ee,M,e){"use strict";e.d(M,{J:function(){return r}});var c=e(67294),r=function(p){var E=(0,c.useRef)(null);return E.current=p,(0,c.useCallback)(function(){for(var P,T=arguments.length,N=new Array(T),C=0;C0&&(s.percent=s.loaded/s.total*100),a.onProgress(s)});var l=new FormData;a.data&&Object.keys(a.data).forEach(function(i){var s=a.data[i];if(Array.isArray(s)){s.forEach(function(u){l.append("".concat(i,"[]"),u)});return}l.append(i,s)}),a.file instanceof Blob?l.append(a.filename,a.file,a.file.name):l.append(a.filename,a.file),t.onerror=function(s){a.onError(s)},t.onload=function(){return t.status<200||t.status>=300?a.onError(ue(a,t),me(t)):a.onSuccess(me(t),t)},t.open(a.method,a.action,!0),a.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=a.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(i){n[i]!==null&&t.setRequestHeader(i,n[i])}),t.send(l),{abort:function(){t.abort()}}}var R=+new Date,he=0;function _(){return"rc-upload-".concat(R,"-").concat(++he)}var F=e(80334),te=function(a,t){if(a&&t){var l=Array.isArray(t)?t:t.split(","),n=a.name||"",i=a.type||"",s=i.replace(/\/.*$/,"");return l.some(function(u){var d=u.trim();if(/^\*(\/\*)?$/.test(u))return!0;if(d.charAt(0)==="."){var o=n.toLowerCase(),f=d.toLowerCase(),h=[f];return(f===".jpg"||f===".jpeg")&&(h=[".jpg",".jpeg"]),h.some(function(Z){return o.endsWith(Z)})}return/\/\*$/.test(d)?s===d.replace(/\/.*$/,""):i===d?!0:/^\w+$/.test(d)?((0,F.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(d,"'.Skip for check.")),!0):!1})}return!0};function ve(a,t){var l=a.createReader(),n=[];function i(){l.readEntries(function(s){var u=Array.prototype.slice.apply(s);n=n.concat(u);var d=!u.length;d?t(n):i()})}i()}var ye=function(t,l,n){var i=function s(u,d){u.path=d||"",u.isFile?u.file(function(o){n(o)&&(u.fullPath&&!o.webkitRelativePath&&(Object.defineProperties(o,{webkitRelativePath:{writable:!0}}),o.webkitRelativePath=u.fullPath.replace(/^\//,""),Object.defineProperties(o,{webkitRelativePath:{writable:!1}})),l([o]))}):u.isDirectory&&ve(u,function(o){o.forEach(function(f){s(f,"".concat(d).concat(u.name,"/"))})})};t.forEach(function(s){i(s.webkitGetAsEntry())})},H=ye,_e=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Se=function(a){(0,L.Z)(l,a);var t=(0,S.Z)(l);function l(){var n;(0,C.Z)(this,l);for(var i=arguments.length,s=new Array(i),u=0;u0&&arguments[0]!==void 0?arguments[0]:"",l=t.split("/"),n=l[l.length-1],i=n.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(i)||[""])[0]},pt=function(t){return t.indexOf("image/")===0},Zt=function(t){if(t.type&&!t.thumbUrl)return pt(t.type);var l=t.thumbUrl||t.url||"",n=Ot(l);return/^data:image\//.test(l)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(l)||n)},we=200;function It(a){return new Promise(function(t){if(!a.type||!pt(a.type)){t("");return}var l=document.createElement("canvas");l.width=we,l.height=we,l.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(we,"px; height: ").concat(we,"px; z-index: 9999; display: none;"),document.body.appendChild(l);var n=l.getContext("2d"),i=new Image;i.onload=function(){var s=i.width,u=i.height,d=we,o=we,f=0,h=0;s>u?(o=u*(we/s),h=-(o-d)/2):(d=s*(we/u),f=-(d-o)/2),n.drawImage(i,f,h,d,o);var Z=l.toDataURL();document.body.removeChild(l),t(Z)},i.src=window.URL.createObjectURL(a)})}var wt=e(33603),ft=e(53124),Fe=e(71577),Xe=e(57838),Ze=e(95357),Ft=e(73171),mt=e(90631),St=e(61580),Wt=e(54458),Bt=r.forwardRef(function(a,t){var l,n=a.prefixCls,i=a.className,s=a.style,u=a.locale,d=a.listType,o=a.file,f=a.items,h=a.progress,Z=a.iconRender,I=a.actionIconRender,G=a.itemRender,B=a.isImgUrl,pe=a.showPreviewIcon,Pe=a.showRemoveIcon,q=a.showDownloadIcon,le=a.previewIcon,ie=a.removeIcon,se=a.downloadIcon,y=a.onPreview,J=a.onDownload,ne=a.onClose,Be,Ie,Et=r.useState(!1),Ne=(0,P.Z)(Et,2),Q=Ne[0],gt=Ne[1],Ye=r.useRef();r.useEffect(function(){return Ye.current=setTimeout(function(){gt(!0)},300),function(){window.clearTimeout(Ye.current)}},[]);var Qe="".concat(n,"-span"),ke=Z(o),qe=r.createElement("div",{className:"".concat(n,"-text-icon")},ke);if(d==="picture"||d==="picture-card")if(o.status==="uploading"||!o.thumbUrl&&!o.url){var Me,Te=W()((Me={},(0,v.Z)(Me,"".concat(n,"-list-item-thumbnail"),!0),(0,v.Z)(Me,"".concat(n,"-list-item-file"),o.status!=="uploading"),Me));qe=r.createElement("div",{className:Te},ke)}else{var Ke,ct=(B==null?void 0:B(o))?r.createElement("img",{src:o.thumbUrl||o.url,alt:o.name,className:"".concat(n,"-list-item-image"),crossOrigin:o.crossOrigin}):ke,Le=W()((Ke={},(0,v.Z)(Ke,"".concat(n,"-list-item-thumbnail"),!0),(0,v.Z)(Ke,"".concat(n,"-list-item-file"),B&&!B(o)),Ke));qe=r.createElement("a",{className:Le,onClick:function(D){return y(o,D)},href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ct)}var dt=W()((l={},(0,v.Z)(l,"".concat(n,"-list-item"),!0),(0,v.Z)(l,"".concat(n,"-list-item-").concat(o.status),!0),(0,v.Z)(l,"".concat(n,"-list-item-list-type-").concat(d),!0),l)),ut=typeof o.linkProps=="string"?JSON.parse(o.linkProps):o.linkProps,vt=Pe?I((typeof ie=="function"?ie(o):ie)||r.createElement(Ft.Z,null),function(){return ne(o)},n,u.removeFile):null,Re=q&&o.status==="done"?I((typeof se=="function"?se(o):se)||r.createElement(mt.Z,null),function(){return J(o)},n,u.downloadFile):null,U=d!=="picture-card"&&r.createElement("span",{key:"download-delete",className:W()("".concat(n,"-list-item-card-actions"),{picture:d==="picture"})},Re,vt),w=W()("".concat(n,"-list-item-name")),k=o.url?[r.createElement("a",(0,c.Z)({key:"view",target:"_blank",rel:"noopener noreferrer",className:w,title:o.name},ut,{href:o.url,onClick:function(D){return y(o,D)}}),o.name),U]:[r.createElement("span",{key:"view",className:w,onClick:function(D){return y(o,D)},title:o.name},o.name),U],x={pointerEvents:"none",opacity:.5},ce=pe?r.createElement("a",{href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:o.url||o.thumbUrl?void 0:x,onClick:function(D){return y(o,D)},title:u.previewFile},typeof le=="function"?le(o):le||r.createElement(Ze.Z,null)):null,je=d==="picture-card"&&o.status!=="uploading"&&r.createElement("span",{className:"".concat(n,"-list-item-actions")},ce,o.status==="done"&&Re,vt),Ce;o.response&&typeof o.response=="string"?Ce=o.response:Ce=((Be=o.error)===null||Be===void 0?void 0:Be.statusText)||((Ie=o.error)===null||Ie===void 0?void 0:Ie.message)||u.uploadError;var Pt=r.createElement("span",{className:Qe},qe,k),Ct=r.useContext(ft.E_),Rt=Ct.getPrefixCls,re=Rt(),g=r.createElement("div",{className:dt},r.createElement("div",{className:"".concat(n,"-list-item-info")},Pt),je,Q&&r.createElement(xe.Z,{motionName:"".concat(re,"-fade"),visible:o.status==="uploading",motionDeadline:2e3},function(m){var D=m.className,ae="percent"in o?r.createElement(Wt.Z,(0,c.Z)({},h,{type:"line",percent:o.percent})):null;return r.createElement("div",{className:W()("".concat(n,"-list-item-progress"),D)},ae)})),b=W()("".concat(n,"-list-").concat(d,"-container"),i),z=o.status==="error"?r.createElement(St.Z,{title:Ce,getPopupContainer:function(D){return D.parentNode}},g):g;return r.createElement("div",{className:b,style:s,ref:t},G?G(z,o,f,{download:J.bind(null,o),preview:y.bind(null,o),remove:ne.bind(null,o)}):z)}),Nt=Bt,Mt=(0,c.Z)({},wt.ZP);delete Mt.onAppearEnd,delete Mt.onEnterEnd,delete Mt.onLeaveEnd;var Kt=function(t,l){var n,i=t.listType,s=t.previewFile,u=t.onPreview,d=t.onDownload,o=t.onRemove,f=t.locale,h=t.iconRender,Z=t.isImageUrl,I=t.prefixCls,G=t.items,B=G===void 0?[]:G,pe=t.showPreviewIcon,Pe=t.showRemoveIcon,q=t.showDownloadIcon,le=t.removeIcon,ie=t.previewIcon,se=t.downloadIcon,y=t.progress,J=t.appendAction,ne=t.appendActionVisible,Be=t.itemRender,Ie=(0,Xe.Z)(),Et=r.useState(!1),Ne=(0,P.Z)(Et,2),Q=Ne[0],gt=Ne[1];r.useEffect(function(){i!=="picture"&&i!=="picture-card"||(B||[]).forEach(function(U){typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",s&&s(U.originFileObj).then(function(w){U.thumbUrl=w||"",Ie()}))})},[i,B,s]),r.useEffect(function(){gt(!0)},[]);var Ye=function(w,k){if(!!u)return k==null||k.preventDefault(),u(w)},Qe=function(w){typeof d=="function"?d(w):w.url&&window.open(w.url)},ke=function(w){o==null||o(w)},qe=function(w){if(h)return h(w,i);var k=w.status==="uploading",x=Z&&Z(w)?r.createElement(ot,null):r.createElement(it,null),ce=k?r.createElement(Ve.Z,null):r.createElement(Y,null);return i==="picture"?ce=k?r.createElement(Ve.Z,null):x:i==="picture-card"&&(ce=k?f.uploading:x),ce},Me=function(w,k,x,ce){var je={type:"text",size:"small",title:ce,onClick:function(Ct){k(),(0,Ge.l$)(w)&&w.props.onClick&&w.props.onClick(Ct)},className:"".concat(x,"-list-item-card-actions-btn")};if((0,Ge.l$)(w)){var Ce=(0,Ge.Tm)(w,(0,c.Z)((0,c.Z)({},w.props),{onClick:function(){}}));return r.createElement(Fe.Z,(0,c.Z)({},je,{icon:Ce}))}return r.createElement(Fe.Z,(0,c.Z)({},je),r.createElement("span",null,w))};r.useImperativeHandle(l,function(){return{handlePreview:Ye,handleDownload:Qe}});var Te=r.useContext(ft.E_),Ke=Te.getPrefixCls,ct=Te.direction,Le=Ke("upload",I),dt=W()((n={},(0,v.Z)(n,"".concat(Le,"-list"),!0),(0,v.Z)(n,"".concat(Le,"-list-").concat(i),!0),(0,v.Z)(n,"".concat(Le,"-list-rtl"),ct==="rtl"),n)),ut=(0,E.Z)(B.map(function(U){return{key:U.uid,file:U}})),vt=i==="picture-card"?"animate-inline":"animate",Re={motionDeadline:2e3,motionName:"".concat(Le,"-").concat(vt),keys:ut,motionAppear:Q};return i!=="picture-card"&&(Re=(0,c.Z)((0,c.Z)({},Mt),Re)),r.createElement("div",{className:dt},r.createElement(xe.V,(0,c.Z)({},Re,{component:!1}),function(U){var w=U.key,k=U.file,x=U.className,ce=U.style;return r.createElement(Nt,{key:w,locale:f,prefixCls:Le,className:x,style:ce,file:k,items:B,progress:y,listType:i,isImgUrl:Z,showPreviewIcon:pe,showRemoveIcon:Pe,showDownloadIcon:q,removeIcon:le,previewIcon:ie,downloadIcon:se,iconRender:qe,actionIconRender:Me,itemRender:Be,onPreview:Ye,onDownload:Qe,onClose:ke})}),J&&r.createElement(xe.Z,(0,c.Z)({},Re,{visible:ne,forceRender:!0}),function(U){var w=U.className,k=U.style;return(0,Ge.Tm)(J,function(x){return{className:W()(x.className,w),style:(0,c.Z)((0,c.Z)((0,c.Z)({},k),{pointerEvents:w?"none":void 0}),x.style)}})}))},Tt=r.forwardRef(Kt);Tt.displayName="UploadList",Tt.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,appendActionVisible:!0,previewFile:It,isImageUrl:Zt};var jt=Tt,_t=e(42051),zt=e(85636),Vt=function(a,t,l,n){function i(s){return s instanceof l?s:new l(function(u){u(s)})}return new(l||(l=Promise))(function(s,u){function d(h){try{f(n.next(h))}catch(Z){u(Z)}}function o(h){try{f(n.throw(h))}catch(Z){u(Z)}}function f(h){h.done?s(h.value):i(h.value).then(d,o)}f((n=n.apply(a,t||[])).next())})},ht="__LIST_IGNORE_".concat(Date.now(),"__"),$t=function(t,l){var n,i=t.fileList,s=t.defaultFileList,u=t.onRemove,d=t.showUploadList,o=t.listType,f=t.onPreview,h=t.onDownload,Z=t.onChange,I=t.onDrop,G=t.previewFile,B=t.disabled,pe=t.locale,Pe=t.iconRender,q=t.isImageUrl,le=t.progress,ie=t.prefixCls,se=t.className,y=t.type,J=t.children,ne=t.style,Be=t.itemRender,Ie=t.maxCount,Et=(0,nt.Z)(s||[],{value:i,postState:function(g){return g!=null?g:[]}}),Ne=(0,P.Z)(Et,2),Q=Ne[0],gt=Ne[1],Ye=r.useState("drop"),Qe=(0,P.Z)(Ye,2),ke=Qe[0],qe=Qe[1],Me=r.useRef();r.useMemo(function(){var re=Date.now();(i||[]).forEach(function(g,b){!g.uid&&!Object.isFrozen(g)&&(g.uid="__AUTO__".concat(re,"_").concat(b,"__"))})},[i]);var Te=function(g,b,z){var m=(0,E.Z)(b);Ie===1?m=m.slice(-1):Ie&&(m=m.slice(0,Ie)),gt(m);var D={file:g,fileList:m};z&&(D.event=z),Z==null||Z(D)},Ke=function(g,b){return Vt(void 0,void 0,void 0,N().mark(function z(){var m,D,ae,fe;return N().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(m=t.beforeUpload,D=t.transformFile,ae=g,!m){V.next=13;break}return V.next=5,m(g,b);case 5:if(fe=V.sent,fe!==!1){V.next=8;break}return V.abrupt("return",!1);case 8:if(delete g[ht],fe!==ht){V.next=12;break}return Object.defineProperty(g,ht,{value:!0,configurable:!0}),V.abrupt("return",!1);case 12:(0,p.Z)(fe)==="object"&&fe&&(ae=fe);case 13:if(!D){V.next=17;break}return V.next=16,D(ae);case 16:ae=V.sent;case 17:return V.abrupt("return",ae);case 18:case"end":return V.stop()}},z)}))},ct=function(g){var b=g.filter(function(D){return!D.file[ht]});if(!!b.length){var z=b.map(function(D){return st(D.file)}),m=(0,E.Z)(Q);z.forEach(function(D){m=Je(D,m)}),z.forEach(function(D,ae){var fe=D;if(b[ae].parsedFile)D.status="uploading";else{var be=D.originFileObj,V;try{V=new File([be],be.name,{type:be.type})}catch(bt){V=new Blob([be],{type:be.type}),V.name=be.name,V.lastModifiedDate=new Date,V.lastModified=new Date().getTime()}V.uid=D.uid,fe=V}Te(fe,m)})}},Le=function(g,b,z){try{typeof g=="string"&&(g=JSON.parse(g))}catch(ae){}if(!!Ae(b,Q)){var m=st(b);m.status="done",m.percent=100,m.response=g,m.xhr=z;var D=Je(m,Q);Te(m,D)}},dt=function(g,b){if(!!Ae(b,Q)){var z=st(b);z.status="uploading",z.percent=g.percent;var m=Je(z,Q);Te(z,m,g)}},ut=function(g,b,z){if(!!Ae(z,Q)){var m=st(z);m.error=g,m.response=b,m.status="error";var D=Je(m,Q);Te(m,D)}},vt=function(g){var b;Promise.resolve(typeof u=="function"?u(g):u).then(function(z){var m;if(z!==!1){var D=Dt(g,Q);D&&(b=(0,c.Z)((0,c.Z)({},g),{status:"removed"}),Q==null||Q.forEach(function(ae){var fe=b.uid!==void 0?"uid":"name";ae[fe]===b[fe]&&!Object.isFrozen(ae)&&(ae.status="removed")}),(m=Me.current)===null||m===void 0||m.abort(b),Te(b,D))}})},Re=function(g){qe(g.type),g.type==="drop"&&(I==null||I(g))};r.useImperativeHandle(l,function(){return{onBatchStart:ct,onSuccess:Le,onProgress:dt,onError:ut,fileList:Q,upload:Me.current}});var U=r.useContext(ft.E_),w=U.getPrefixCls,k=U.direction,x=w("upload",ie),ce=(0,c.Z)((0,c.Z)({onBatchStart:ct,onError:ut,onProgress:dt,onSuccess:Le},t),{prefixCls:x,beforeUpload:Ke,onChange:void 0});delete ce.className,delete ce.style,(!J||B)&&delete ce.id;var je=function(g,b){return d?r.createElement(_t.Z,{componentName:"Upload",defaultLocale:zt.Z.Upload},function(z){var m=typeof d=="boolean"?{}:d,D=m.showRemoveIcon,ae=m.showPreviewIcon,fe=m.showDownloadIcon,be=m.removeIcon,V=m.previewIcon,bt=m.downloadIcon;return r.createElement(jt,{prefixCls:x,listType:o,items:Q,previewFile:G,onPreview:f,onDownload:h,onRemove:vt,showRemoveIcon:!B&&D,showPreviewIcon:ae,showDownloadIcon:fe,removeIcon:be,previewIcon:V,downloadIcon:bt,iconRender:Pe,locale:(0,c.Z)((0,c.Z)({},z),pe),isImageUrl:q,progress:le,appendAction:g,appendActionVisible:b,itemRender:Be})}):g};if(y==="drag"){var Ce,Pt=W()(x,(Ce={},(0,v.Z)(Ce,"".concat(x,"-drag"),!0),(0,v.Z)(Ce,"".concat(x,"-drag-uploading"),Q.some(function(re){return re.status==="uploading"})),(0,v.Z)(Ce,"".concat(x,"-drag-hover"),ke==="dragover"),(0,v.Z)(Ce,"".concat(x,"-disabled"),B),(0,v.Z)(Ce,"".concat(x,"-rtl"),k==="rtl"),Ce),se);return r.createElement("span",null,r.createElement("div",{className:Pt,onDrop:Re,onDragOver:Re,onDragLeave:Re,style:ne},r.createElement(Ue,(0,c.Z)({},ce,{ref:Me,className:"".concat(x,"-btn")}),r.createElement("div",{className:"".concat(x,"-drag-container")},J))),je())}var Ct=W()(x,(n={},(0,v.Z)(n,"".concat(x,"-select"),!0),(0,v.Z)(n,"".concat(x,"-select-").concat(o),!0),(0,v.Z)(n,"".concat(x,"-disabled"),B),(0,v.Z)(n,"".concat(x,"-rtl"),k==="rtl"),n)),Rt=function(g){return r.createElement("div",{className:Ct,style:g},r.createElement(Ue,(0,c.Z)({},ce,{ref:Me})))};return o==="picture-card"?r.createElement("span",{className:W()("".concat(x,"-picture-card-wrapper"),se)},je(Rt(),!!J)):r.createElement("span",{className:se},Rt(J?void 0:{display:"none"}),je())},Lt=r.forwardRef($t);Lt.displayName="Upload",Lt.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var xt=Lt,Ht=function(a,t){var l={};for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&t.indexOf(n)<0&&(l[n]=a[n]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(a);i9999?"+"+it(e,6):it(e,4)}function Y(e){var i=e.getUTCHours(),r=e.getUTCMinutes(),n=e.getUTCSeconds(),a=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":Zt(e.getUTCFullYear(),4)+"-"+it(e.getUTCMonth()+1,2)+"-"+it(e.getUTCDate(),2)+(a?"T"+it(i,2)+":"+it(r,2)+":"+it(n,2)+"."+it(a,3)+"Z":n?"T"+it(i,2)+":"+it(r,2)+":"+it(n,2)+"Z":r||i?"T"+it(i,2)+":"+it(r,2)+"Z":"")}function $t(e){var i=new RegExp('["'+e+` +\r]`),r=e.charCodeAt(0);function n(T,O){var k,j,X=a(T,function(te,be){if(k)return k(te,be-1);j=te,k=O?Et(te,O):Yt(te)});return X.columns=j||[],X}function a(T,O){var k=[],j=T.length,X=0,te=0,be,Ne=j<=0,$e=!1;T.charCodeAt(j-1)===rr&&--j,T.charCodeAt(j-1)===xt&&--j;function ot(){if(Ne)return Ue;if($e)return $e=!1,et;var _t,qt=X,ar;if(T.charCodeAt(qt)===gt){for(;X++=j?Ne=!0:(ar=T.charCodeAt(X++))===rr?$e=!0:ar===xt&&($e=!0,T.charCodeAt(X)===rr&&++X),T.slice(qt+1,_t-1).replace(/""/g,'"')}for(;X=0))throw new Error("precision must be a positive number");var r=Math.pow(10,i||0);return Math.round(e*r)/r}function me(e,i){i===void 0&&(i="kilometers");var r=Wn[i];if(!r)throw new Error(i+" units is invalid");return e*r}function Dn(e,i){i===void 0&&(i="kilometers");var r=Wn[i];if(!r)throw new Error(i+" units is invalid");return e/r}function Za(e,i){return Nt(Dn(e,i))}function hs(e){var i=e%360;return i<0&&(i+=360),i}function Nt(e){var i=e%(2*Math.PI);return i*180/Math.PI}function nr(e){var i=e%360;return i*Math.PI/180}function Ar(e,i,r){if(i===void 0&&(i="kilometers"),r===void 0&&(r="kilometers"),!(e>=0))throw new Error("length must be a positive number");return me(Dn(e,i),r)}function rn(e,i,r){if(i===void 0&&(i="meters"),r===void 0&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var n=vi[i];if(!n)throw new Error("invalid original units");var a=vi[r];if(!a)throw new Error("invalid final units");return e/n*a}function wn(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Fn(e){return!!e&&e.constructor===Object}function gi(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(i){if(!wn(i))throw new Error("bbox must only contain numbers")})}function ti(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}function fn(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Di(e){if(Array.isArray(e))return e;if(e.type==="Feature"){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Ri(e){if(e.length>1&&isNumber(e[0])&&isNumber(e[1]))return!0;if(Array.isArray(e[0])&&e[0].length)return Ri(e[0]);throw new Error("coordinates must only contain numbers")}function to(e,i,r){if(!i||!r)throw new Error("type and name required");if(!e||e.type!==i)throw new Error("Invalid input to "+r+": must be a "+i+", given "+e.type)}function Es(e,i,r){if(!e)throw new Error("No feature passed");if(!r)throw new Error(".featureOf() requires a name");if(!e||e.type!=="Feature"||!e.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!e.geometry||e.geometry.type!==i)throw new Error("Invalid input to "+r+": must be a "+i+", given "+e.geometry.type)}function Ko(e,i,r){if(!e)throw new Error("No featureCollection passed");if(!r)throw new Error(".collectionOf() requires a name");if(!e||e.type!=="FeatureCollection")throw new Error("Invalid input to "+r+", FeatureCollection required");for(var n=0,a=e.features;ng||j>x||X>C){v=T,g=n,x=j,C=X,s=0;return}var te=lineString([v,T],r.properties);if(i(te,n,a,X,s)===!1)return!1;s++,v=T})===!1)return!1}}})}function zt(e,i,r){var n=r,a=!1;return Ft(e,function(s,f,v,g,x){a===!1&&r===void 0?n=s:n=i(n,s,f,v,g,x),a=!0}),n}function vr(e,i){if(!e)throw new Error("geojson is required");vt(e,function(r,n,a){if(r.geometry!==null){var s=r.geometry.type,f=r.geometry.coordinates;switch(s){case"LineString":if(i(r,n,a,0,0)===!1)return!1;break;case"Polygon":for(var v=0;v0}),wt()(e,!0),e.features.length===0)return{dataArray:[],featureKeys:n};var a=0;return vt(e,function(s,f){var v=Di(s),g=f,x=Zr(Zr({},s.properties),{},{coordinates:v,_id:g});r.push(x)}),{dataArray:r,featureKeys:n}}function _i(e){var i=131,r=137,n=0;e+="x";for(var a=Math.floor(9007199254740991/r),s=0;sa&&(n=Math.floor(n/r)),n=n*i+e.charCodeAt(s);return n}function an(e){e=e.toString();for(var i=5381,r=e.length;r;)i=i*33^e.charCodeAt(--r);return i>>>0}var on=U(28481),Xi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function yi(e){this.message=e}yi.prototype=new Error,yi.prototype.name="InvalidCharacterError";function Pi(e){var i=String(e).replace(/=+$/,"");if(i.length%4==1)throw new yi("'atob' failed: The string to be decoded is not correctly encoded.");for(var r="",n=0,a,s,f=0;s=i.charAt(f++);~s&&(a=n%4?a*64+s:s,n++%4)?r+=String.fromCharCode(255&a>>(-2*n&6)):0)s=Xi.indexOf(s);return r}function bi(e){e=String(e);for(var i,r,n,a,s="",f=0,v=e.length%3;f255||(n=e.charCodeAt(f++))>255||(a=e.charCodeAt(f++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");i=r<<16|n<<8|a,s+=Xi.charAt(i>>18&63)+Xi.charAt(i>>12&63)+Xi.charAt(i>>6&63)+Xi.charAt(i&63)}return v?s.slice(0,v-3)+"===".substring(v):s}var ht=U(6610),Pt=U(5991),Aa=function(){function e(i,r){(0,ht.Z)(this,e),this.buffers=i,this.type=r}return(0,Pt.Z)(e,[{key:"arraybuffer",value:function(){return Promise.resolve(this.buffers[0])}},{key:"stream",value:function(){throw new Error("not implemented")}},{key:"text",value:function(){throw new Error("not implemented")}},{key:"slice",value:function(r,n,a){throw new Error("not implemented")}}]),e}(),qi,Ii=function(){return qi||(qi=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof U.g!="undefined"?U.g:{})};qi=Ii();var pi;typeof window=="undefined"?pi={devicePixelRatio:1,navigator:{userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36",browserLanguage:"zh-CN",language:"zh-CN",platform:""},location:"",document:{documentElement:{style:{}},createEvent:function(){return!0},getElementById:function(i){return!0},createElement:function(){return{className:"",classList:{add:function(){return""}}}},createElementNS:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},querySelector:function(){return!1}},performance:{mark:function(i){return null},clearMeasures:function(i){return null},clearMarks:function(i){return null},measure:function(i,r,n){return{duration:0}},now:function(){return new Date().getTime()}},Blob:"",dispatchEvent:function(i){return!0},Event:function(i,r){return!0},createElement:function(){return!0},createElementNS:function(){return!0},XMLHttpRequest:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},requestAnimationFrame:function(){return!0},cancelAnimationFrame:function(){return!0},clearTimeout:function(){return!0}}:pi=window;var wa=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,$s=wa?my.getSystemInfoSync().pixelRatio:pi.devicePixelRatio,Ir=U(10379),wr=U(46070),Mt=U(77608),bo=(0,Pt.Z)(function e(i,r){(0,ht.Z)(this,e),(0,A.Z)(this,"cancelBubble",void 0),(0,A.Z)(this,"cancelable",void 0),(0,A.Z)(this,"target",void 0),(0,A.Z)(this,"currentTarget",void 0),(0,A.Z)(this,"preventDefault",void 0),(0,A.Z)(this,"stopPropagation",void 0),(0,A.Z)(this,"type",void 0),(0,A.Z)(this,"timeStamp",void 0),this.cancelBubble=!1,this.cancelable=!1,this.target=null,this.currentTarget=null,this.preventDefault=function(){},this.stopPropagation=function(){},this.type=i,this.timeStamp=Date.now()}),ne=U(63349);function Fu(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=oo(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function oo(e,i){if(!!e){if(typeof e=="string")return Ra(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ra(e,i)}}function Ra(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r2&&arguments[2]!==void 0?arguments[2]:{},s=Ta.get(this);s||(s={}),s[r]||(s[r]=[]),s[r].push(n),Ta.set(this,s),a.capture,a.once,a.passive}},{key:"removeEventListener",value:function(r,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=Ta.get(this);if(s){var f=s[r];if(f&&f.length>0){for(var v=f.length;v--;v>0)if(f[v]===n){f.splice(v,1);break}}}}},{key:"dispatchEvent",value:function(r){var n=Ta.get(this)[r.type];if(n){var a=Fu(n),s;try{for(a.s();!(s=a.n()).done;){var f=s.value;f(r)}}catch(v){a.e(v)}finally{a.f()}}}}]),e}();function Uo(e){var i=$o();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function $o(){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}}var xu=function(e){(0,Ir.Z)(r,e);var i=Uo(r);function r(){var n;return(0,ht.Z)(this,r),n=i.call(this),(0,A.Z)((0,ne.Z)(n),"childNodes",void 0),n.childNodes=[],n}return(0,Pt.Z)(r,[{key:"appendChild",value:function(a){this.childNodes.push(a)}},{key:"cloneNode",value:function(){var a=Object.create(this);return Object.assign(a,this),a}},{key:"removeChild",value:function(a){var s=this.childNodes.findIndex(function(f){return f===a});return s>-1?this.childNodes.splice(s,1):null}}]),r}(Qi);function Eo(e){var i=Zo();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function Zo(){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}}var sa=function(e){(0,Ir.Z)(r,e);var i=Eo(r);function r(){var n;return(0,ht.Z)(this,r),n=i.call(this),(0,A.Z)((0,ne.Z)(n),"className",void 0),(0,A.Z)((0,ne.Z)(n),"children",void 0),n.className="",n.children=[],n}return(0,Pt.Z)(r,[{key:"setAttribute",value:function(a,s){this[a]=s}},{key:"getAttribute",value:function(a){return this[a]}},{key:"setAttributeNS",value:function(a,s){this[a]=s}},{key:"getAttributeNS",value:function(a){return this[a]}}]),r}(xu),so=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,jo,Ya,Gs,ll;if(so){var os=my.getSystemInfoSync();jo=os.screenWidth,Ya=os.screenHeight,Gs=os.windowWidth,ll=os.windowHeight}else{var ie=pi.innerWidth,Ee=pi.innerHeight;jo=ie,Ya=Ee,Gs=ie,ll=Ee}var qe={width:jo,height:Ya,availWidth:Gs,availHeight:ll,availLeft:0,availTop:0},Rt=qe.availWidth,Or=qe.availHeight,Tn={style:[]};function Ti(e,i){if(!("parentNode"in e)){var r;i===0?r=function(){return null}:i===1?r=function(){return Tn}:r=function(){return null},Object.defineProperty(e,"parentNode",{enumerable:!0,get:r})}if(!("parentElement"in e)){var n;i===0?n=function(){return null}:i===1?n=function(){return Tn}:n=function(){return null},Object.defineProperty(e,"parentElement",{enumerable:!0,get:n})}}function ro(e){e.style=e.style||{},Object.assign(e.style,{top:"0px",left:"0px",width:Rt+"px",height:Or+"px",margin:"0px",padding:"0px"})}function La(e){"clientLeft"in e||(e.clientLeft=0,e.clientTop=0),"clientWidth"in e||(e.clientWidth=Rt,e.clientHeight=Or),"getBoundingClientRect"in e||(e.getBoundingClientRect=function(){var i={x:0,y:0,top:0,left:0,width:this.clientWidth,height:this.clientHeight,right:this.clientWidth,bottom:this.clientHeight};return i})}function ja(e){"offsetLeft"in e||(e.offsetLeft=0,e.offsetTop=0),"offsetWidth"in e||(e.offsetWidth=Rt,e.offsetHeight=Or)}function Qo(e){"scrollLeft"in e||(e.scrollLeft=0,e.scrollTop=0),"scrollWidth"in e||(e.scrollWidth=Rt,e.scrollHeight=Or)}function ps(e){var i=function(){return!0};e.classList=[],e.classList.add=i,e.classList.remove=i,e.classList.contains=i,e.classList.toggle=i}function Jo(e){var i=Ss();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function Ss(){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 Lo(){}var Vo=function(e){(0,Ir.Z)(r,e);var i=Jo(r);function r(){var n,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1?arguments[1]:void 0;return(0,ht.Z)(this,r),n=i.call(this),(0,A.Z)((0,ne.Z)(n),"className",void 0),(0,A.Z)((0,ne.Z)(n),"children",void 0),(0,A.Z)((0,ne.Z)(n),"focus",void 0),(0,A.Z)((0,ne.Z)(n),"blur",void 0),(0,A.Z)((0,ne.Z)(n),"insertBefore",void 0),(0,A.Z)((0,ne.Z)(n),"appendChild",void 0),(0,A.Z)((0,ne.Z)(n),"removeChild",void 0),(0,A.Z)((0,ne.Z)(n),"remove",void 0),(0,A.Z)((0,ne.Z)(n),"innerHTML",void 0),(0,A.Z)((0,ne.Z)(n),"tagName",void 0),n.className="",n.children=[],n.focus=Lo,n.blur=Lo,n.insertBefore=Lo,n.appendChild=Lo,n.removeChild=Lo,n.remove=Lo,n.innerHTML="",n.tagName=a.toUpperCase(),Ti((0,ne.Z)(n),s),ro((0,ne.Z)(n)),ps((0,ne.Z)(n)),La((0,ne.Z)(n)),ja((0,ne.Z)(n)),Qo((0,ne.Z)(n)),n}return(0,Pt.Z)(r)}(sa);function Qs(e){var i=ou();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function ou(){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}}var ds=function(e){(0,Ir.Z)(r,e);var i=Qs(r);function r(n){return(0,ht.Z)(this,r),i.call(this,n)}return(0,Pt.Z)(r,[{key:"addTextTrack",value:function(){}},{key:"captureStream",value:function(){}},{key:"fastSeek",value:function(){}},{key:"load",value:function(){}},{key:"pause",value:function(){}},{key:"play",value:function(){}}]),r}(Vo);function ga(e){var i=ko();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function ko(){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}}var Il=function(e){(0,Ir.Z)(r,e);var i=ga(r);function r(){return(0,ht.Z)(this,r),i.call(this,"video")}return(0,Pt.Z)(r)}(ds),vs={},es={};function of(e,i){vs=e,vs.id=i,"tagName"in vs||(vs.tagName="CANVAS"),vs.type="canvas",Mixin.parentNode(vs),Mixin.style(vs),Mixin.classList(vs),Mixin.clientRegion(vs),Mixin.offsetRegion(vs),vs.focus=function(){},vs.blur=function(){}}function rc(e,i){var r=1024,n=1024;es={width:r,height:n,clientWidth:r/devicePixelRatio,clientHeight:n/devicePixelRatio,id:i,type:"canvas"},"tagName"in es||(es.tagName="CANVAS"),Mixin.parentNode(es),Mixin.style(es),Mixin.classList(es),Mixin.clientRegion(es),Mixin.offsetRegion(es),es.getContext=function(a){if(a==="2d")return e},es.focus=function(){},es.blur=function(){}}function Cs(){return vs}function bu(){return es}var cl=(0,Pt.Z)(function e(){(0,ht.Z)(this,e);var i=Cs(),r=i.createImage&&i.createImage()||{};return"tagName"in r||(r.tagName="IMG",r.__proto__=e.prototype),Ti(r),ps(r),Object.assign(r,{addEventListener:function(a,s){r["on".concat(a)]=s.bind(r)},removeEventListener:function(a){r["on".concat(a)]=null}}),r}),_={href:"",protocol:"",host:""};function M(e){var i=F();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function F(){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}}var R=function(e){(0,Ir.Z)(r,e);var i=M(r);function r(){return(0,ht.Z)(this,r),i.call(this,"body",0)}return(0,Pt.Z)(r,[{key:"addEventListener",value:function(a,s){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}}},{key:"removeEventListener",value:function(a,s,f){}},{key:"dispatchEvent",value:function(a){}}]),r}(Vo),K=function(e){(0,Ir.Z)(r,e);var i=M(r);function r(){return(0,ht.Z)(this,r),i.call(this,"html",0)}return(0,Pt.Z)(r,[{key:"addEventListener",value:function(a,s){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}}},{key:"removeEventListener",value:function(a,s){}},{key:"dispatchEvent",value:function(a){}}]),r}(Vo),_e={},je={readyState:"complete",visibilityState:"visible",hidden:!1,fullscreen:!0,scripts:[],style:{},location:_,ontouchstart:null,ontouchmove:null,ontouchend:null,onvisibilitychange:null,parentNode:null,parentElement:null,head:null,body:null,documentElement:{style:[]},createElement:function(i){return i=i.toLowerCase(),i==="canvas"?my.createOffscreenCanvas(1024,128,"2d"):i==="img"?new cl:i==="video"?new Il:new Vo(i)},createElementNS:function(i,r){return this.createElement(r)},createTextNode:function(i){return i},getElementById:function(i){return null},getElementsByTagName:function(i){return i=i.toLowerCase(),[]},getElementsByTagNameNS:function(i,r){return this.getElementsByTagName(r)},getElementsByName:function(i){return[]},querySelector:function(i){return null},querySelectorAll:function(i){return[]},addEventListener:function(i,r,n){_e[i]||(_e[i]=[]),_e[i].push(r)},removeEventListener:function(i,r){var n=_e[i];if(n&&n.length>0){for(var a=n.length;a--;a>0)if(n[a]===r){n.splice(a,1);break}}},dispatchEvent:function(i){var r=i.type,n=_e[r];if(n)for(var a=0;a-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&e.indexOf("KHTML")===-1,mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Linux")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:e.indexOf("Safari")===-1,weixin:e.indexOf("MicroMessenger")>-1,qq:e.match(/\sQQ/i)===" qq"}}(),language:(pi.navigator.browserLanguage||pi.navigator.language).toLowerCase()};Li.versions.android?Bn="android":Li.versions.trident?Bn="IE":Li.versions.presto?Bn="Opera":Li.versions.webKit?Bn="webKit":Li.versions.gecko?Bn="Firefox":Li.versions.mobile?Bn="mobile":Li.versions.ios?Bn="ios":Li.versions.iPhone?Bn="iPhone":Li.versions.iPad?Bn="ipad":Li.versions.webApp?Bn="webApp":Li.versions.weixin?Bn="weixin":Li.versions.qq&&(Bn="qq"),In=pi.navigator.userAgent,Qn=Li.language}var ba=In.toLowerCase().indexOf("android")!==-1,Gi=ba?"Android; CPU Android 6.0":"iPhone; CPU iPhone OS 10_3_1 like Mac OS X",As="Mozilla/5.0 (".concat(Gi,") AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E8301 MicroMessenger/6.6.0 MiniGame NetType/WIFI Language/").concat(Qn),Eu={platform:Bn,language:Qn,appVersion:"5.0 (".concat(Gi,") AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"),userAgent:As},fl={mark:function(i){return null},clearMeasures:function(i){return null},clearMarks:function(i){return null},measure:function(i,r,n){return{duration:0}},now:function(){}},Rc=0,tl=0;function Lc(e){var i=Date.now(),r=Math.max(Rc+23,i);return tl=setTimeout(function(){e(Rc=r)},r-i),tl}function Bu(e){var i=Cs();return i.requestAnimationFrame?i.requestAnimationFrame(e):Lc(e)}function Nu(e){var i=Cs();return i.cancelAnimationFrame?i.cancelAnimationFrame(e):clearTimeout(e)}var zu=function(){function e(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,ht.Z)(this,e),(0,A.Z)(this,"href",void 0),i.indexOf("http://")==0||i.indexOf("https://")==0){this.href=i;return}this.href=r+i}return(0,Pt.Z)(e,null,[{key:"createObjectURL",value:function(r){var n=r.buffers[0],a=r.type,s=uo(n),f="data:".concat(a,";base64, ");return f+s}}]),e}();function uo(e){for(var i="",r=new Uint8Array(e),n=r.byteLength,a=0;a1&&arguments[1]!==void 0?arguments[1]:{target:this};typeof this["on".concat(e)]=="function"&&this["on".concat(e)].call(this,i)}function nc(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{readyState:e};this.readyState=e,ya.call(this,"readystatechange",i)}var Js=function(e){(0,Ir.Z)(r,e);var i=ws(r);function r(){var n;return(0,ht.Z)(this,r),n=i.call(this),(0,A.Z)((0,ne.Z)(n),"onabort",void 0),(0,A.Z)((0,ne.Z)(n),"onerror",void 0),(0,A.Z)((0,ne.Z)(n),"onload",void 0),(0,A.Z)((0,ne.Z)(n),"onloadstart",void 0),(0,A.Z)((0,ne.Z)(n),"onprogress",void 0),(0,A.Z)((0,ne.Z)(n),"ontimeout",void 0),(0,A.Z)((0,ne.Z)(n),"onloadend",void 0),(0,A.Z)((0,ne.Z)(n),"onreadystatechange",void 0),(0,A.Z)((0,ne.Z)(n),"readyState",void 0),(0,A.Z)((0,ne.Z)(n),"response",void 0),(0,A.Z)((0,ne.Z)(n),"responseText",void 0),(0,A.Z)((0,ne.Z)(n),"_responseType",void 0),(0,A.Z)((0,ne.Z)(n),"responseXML",void 0),(0,A.Z)((0,ne.Z)(n),"status",void 0),(0,A.Z)((0,ne.Z)(n),"statusText",void 0),(0,A.Z)((0,ne.Z)(n),"upload",void 0),(0,A.Z)((0,ne.Z)(n),"withCredentials",void 0),(0,A.Z)((0,ne.Z)(n),"timeout",void 0),(0,A.Z)((0,ne.Z)(n),"_url",void 0),(0,A.Z)((0,ne.Z)(n),"_method",void 0),n.onabort=null,n.onerror=null,n.onload=null,n.onloadstart=null,n.onprogress=null,n.ontimeout=null,n.onloadend=null,n.onreadystatechange=null,n.readyState=0,n.response=null,n.responseText=null,n._responseType="text",n.responseXML=null,n.status=0,n.statusText="",n.upload={},n.withCredentials=!1,su.set("requestHeader",{"content-type":"application/x-www-form-urlencoded"}),n}return(0,Pt.Z)(r,[{key:"responseType",set:function(a){this._responseType=a}},{key:"abort",value:function(){var a=uf.get("requestTask");a&&a.abort()}},{key:"getAllResponseHeaders",value:function(){var a=Hs.get("responseHeader");return Object.keys(a).map(function(s){return"".concat(s,": ").concat(a[s])}).join(` +`)}},{key:"getResponseHeader",value:function(a){return Hs.get("responseHeader")[a]}},{key:"open",value:function(a,s,f){this._method=a,this._url=s}},{key:"overrideMimeType",value:function(){}},{key:"send",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:""}},{key:"setRequestHeader",value:function(a,s){var f=su.get("requestHeader");f[a]=s,su.set("requestHeader",f)}},{key:"addEventListener",value:function(a,s){var f=this;typeof s=="function"&&(this["on"+a]=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};v.target=v.target||f,s.call(f,v)})}},{key:"removeEventListener",value:function(a,s){this["on"+a]===s&&(this["on"+a]=null)}}]),r}(Qi);(0,A.Z)(Js,"UNSEND",void 0),(0,A.Z)(Js,"OPENED",void 0),(0,A.Z)(Js,"HEADERS_RECEIVED",void 0),(0,A.Z)(Js,"LOADING",void 0),(0,A.Z)(Js,"DONE",void 0),Js.UNSEND=0,Js.OPENED=1,Js.HEADERS_RECEIVED=2,Js.LOADING=3,Js.DONE=4;function hl(e){var i=zf();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function zf(){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}}var ep=function(e){(0,Ir.Z)(r,e);var i=hl(r);function r(n){var a;return(0,ht.Z)(this,r),a=i.call(this,n),(0,A.Z)((0,ne.Z)(a),"touches",void 0),(0,A.Z)((0,ne.Z)(a),"targetTouches",void 0),(0,A.Z)((0,ne.Z)(a),"changedTouches",void 0),a.touches=[],a.targetTouches=[],a.changedTouches=[],a.target=Cs(),a.currentTarget=Cs(),a}return(0,Pt.Z)(r)}(bo);function lf(e){var i=e||{},r=i.x,n=r===void 0?0:r,a=i.y,s=a===void 0?0:a,f=i.clientX,v=f===void 0?0:f,g=i.clientY,x=g===void 0?0:g;Object.keys(e).indexOf("x")!==-1?(e.pageX=e.clientX=n,e.pageY=e.clientY=s):(e.x=v,e.y=x)}function ic(e){return function(i){var r=new ep(e);r.changedTouches=i.changedTouches,r.touches=i.touches,r.targetTouches=Array.prototype.slice.call(i.touches),r.timeStamp=i.timeStamp,r.changedTouches.forEach(function(n){return lf(n)}),r.touches.forEach(function(n){return lf(n)}),r.targetTouches.forEach(function(n){return lf(n)}),je.dispatchEvent(r)}}function ac(e){return function(i){i.type=e,je.dispatchEvent(i)}}var oc=ic("touchstart"),sc=ic("touchmove"),uc=ic("touchend"),Rl=ac("mapCameaParams");function Ll(e){var i=pl();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function pl(){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}}var eu=function(e){(0,Ir.Z)(r,e);var i=Ll(r);function r(n){var a;return(0,ht.Z)(this,r),a=i.call(this,n),(0,A.Z)((0,ne.Z)(a),"buttons",void 0),(0,A.Z)((0,ne.Z)(a),"which",void 0),(0,A.Z)((0,ne.Z)(a),"pointerId",void 0),(0,A.Z)((0,ne.Z)(a),"bubbles",void 0),(0,A.Z)((0,ne.Z)(a),"button",void 0),(0,A.Z)((0,ne.Z)(a),"width",void 0),(0,A.Z)((0,ne.Z)(a),"height",void 0),(0,A.Z)((0,ne.Z)(a),"pressure",void 0),(0,A.Z)((0,ne.Z)(a),"isPrimary",void 0),(0,A.Z)((0,ne.Z)(a),"pointerType",void 0),(0,A.Z)((0,ne.Z)(a),"altKey",void 0),(0,A.Z)((0,ne.Z)(a),"ctrlKey",void 0),(0,A.Z)((0,ne.Z)(a),"metaKey",void 0),(0,A.Z)((0,ne.Z)(a),"shiftKey",void 0),a.target=Cs(),a.currentTarget=Cs(),a}return(0,Pt.Z)(r)}(bo),kc=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","pageX","pageY","timeStamp"],cf=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,0,0,0],Uf="touch";function dl(e,i,r){for(var n=new eu(e),a=0;a2&&arguments[2]!==void 0?arguments[2]:{};je.addEventListener(i,r,n)},removeEventListener:function(i,r,n){je.removeEventListener(i,r)},dispatchEvent:function(i){je.dispatchEvent(i)},innerWidth:qe.availWidth,innerHeight:qe.availHeight,setTimeout,clearTimeout,setInterval,clearInterval},kn=ts?Uu:pi,Ma=ts?Js:pi.XMLHttpRequest,Ws=ts?_:pi.location;function Bc(e){var i=e;return typeof e=="string"&&(i=kn.document.getElementById(e)),i}function Zu(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Nc(e){return Zu(e).split(/\s+/)}function rp(e){var i,r,n=kn==null||(i=kn.document)===null||i===void 0||(r=i.documentElement)===null||r===void 0?void 0:r.style;if(!n)return e[0];for(var a in e)if(e[a]&&e[a]in n)return e[a];return e[0]}function lo(e,i,r){var n=kn.document.createElement(e);return n.className=i||"",r&&r.appendChild(n),n}function ju(e){var i=e.parentNode;i&&i.removeChild(e)}function Su(e,i){if(e.classList!==void 0)for(var r=Nc(i),n=0,a=r.length;n0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(r)}function Fl(e,i){e instanceof HTMLElement?e.className=i:e.className.baseVal=i}function ml(e){return e instanceof SVGElement&&(e=e.correspondingElement),e.className.baseVal===void 0?e.className:e.className.baseVal}function ho(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}var yn=rp(["transform","WebkitTransform"]);function qa(e,i){e.style[yn]=i}function nl(){if(typeof Event=="function")kn.dispatchEvent(new Event("resize"));else{var e=kn.document.createEvent("UIEvents");e.initUIEvent("resize",!0,!1,kn,0),kn.dispatchEvent(e)}}function pc(e){var i=["padding: "+(e.height/2-8)+"px "+e.width/2+"px;","line-height: "+e.height+"px;","background-image: url("+e.toDataURL()+");"];console.log(`%c +`,i.join(""))}function uu(){var e,i=kn.document.querySelector('meta[name="viewport"]');if(!i)return 1;var r=(e=i.content)===null||e===void 0?void 0:e.split(","),n=r.find(function(a){var s=a.split("="),f=(0,on.Z)(s,2),v=f[0],g=f[1];return v==="initial-scale"});return n?n.split("=")[1]*1:1}var na=uu()<1?1:kn.devicePixelRatio;function hf(e){if(e.length===0)throw new Error("max requires at least one data point");for(var i=e[0],r=1;ri&&(i=e[r]);return i*1}function Kr(e){if(e.length===0)throw new Error("min requires at least one data point");for(var i=e[0],r=1;rn&&(n=a,r=i),a=1,i=e[s]):a++;return r*1}var Ea={min:Kr,max:hf,mean:pf,sum:zc,mode:gl};function ms(e,i){return e.map(function(r){return r[i]})}function Uc(e,i){return Ea[e](i)}var Cu=U(14665);function ks(e){return Function.toString.call(e).indexOf("[native code]")!==-1}var Vu=U(51814);function Zc(e,i,r){return(0,Vu.Z)()?Zc=Reflect.construct.bind():Zc=function(a,s,f){var v=[null];v.push.apply(v,s);var g=Function.bind.apply(a,v),x=new g;return f&&(0,Cu.Z)(x,f.prototype),x},Zc.apply(null,arguments)}function Bl(e){var i=typeof Map=="function"?new Map:void 0;return Bl=function(n){if(n===null||!ks(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof i!="undefined"){if(i.has(n))return i.get(n);i.set(n,a)}function a(){return Zc(n,arguments,(0,Mt.Z)(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),(0,Cu.Z)(a,n)},Bl(e)}function Gf(e){var i=Hf();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function Hf(){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}}var Ds=function(e){(0,Ir.Z)(r,e);var i=Gf(r);function r(n,a,s){var f;return(0,ht.Z)(this,r),f=i.call(this,n),(0,A.Z)((0,ne.Z)(f),"status",void 0),(0,A.Z)((0,ne.Z)(f),"url",void 0),f.status=a,f.url=s,f.name=f.constructor.name,f.message=n,f}return(0,Pt.Z)(r,[{key:"toString",value:function(){return"".concat(this.name,": ").concat(this.message," (").concat(this.status,"): ").concat(this.url)}}]),r}(Bl(Error));function Fs(e){var i=new Ma;i.open("GET",e.url,!0);for(var r in e.headers)e.headers.hasOwnProperty(r)&&i.setRequestHeader(r,e.headers[r]);return i.withCredentials=e.credentials==="include",i}var Fi=function(i,r){var n=Fs(i);return n.setRequestHeader("Accept","application/json"),n.onerror=function(){r(new Error(n.statusText))},n.onload=function(){if(n.status>=200&&n.status<300&&n.response){var a;try{a=JSON.parse(n.response)}catch(s){return r(s)}r(null,a)}else n.status===401?r(new Ds("".concat(n.statusText),n.status,i.url)):r(new Ds(n.statusText,n.status,i.url))},n.send(),n},Au=function(i,r){var n=Fs(i);return n.responseType="arraybuffer",n.onerror=function(){r(new Error(n.statusText))},n.onload=function(){var a=n.response;if(a.byteLength===0&&n.status===200)return r(new Error("http status 200 returned without content."));n.status>=200&&n.status<300&&n.response?r(null,{data:a,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires")}):r(new Ds(n.statusText,n.status,i.url))},n.send(),n};function wu(e){var i=$window.document.createElement("a");return i.href=e,i.protocol===$window.document.location.protocol&&i.host===$window.document.location.host}var rs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",Gu=function(i,r){return Au(i,function(n,a){if(n)r(n);else if(a){var s=new kn.Image;s.crossOrigin="anonymous";var f=kn.URL||kn.webkitURL;s.onload=function(){r(null,s),f.revokeObjectURL(s.src),s.onload=null},s.onerror=function(){return r(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var v=new kn.Blob([new Uint8Array(a.data)],{type:"image/png"});s.src=a.data.byteLength?f.createObjectURL(v):rs}})},Tu=2*Math.PI*6378137/2;function Xs(e){var i=[Infinity,Infinity,-Infinity,-Infinity];return e.forEach(function(r){var n=r.coordinates;gs(i,n)}),i}function gs(e,i){return Array.isArray(i[0])?i.forEach(function(r){gs(e,r)}):(e[0]>i[0]&&(e[0]=i[0]),e[1]>i[1]&&(e[1]=i[1]),e[2]1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};e=ns(e,i);var n=e[0],a=e[1],s=n*Tu/180,f=Math.log(Math.tan((90+a)*Math.PI/360))/(Math.PI/180);return f=f*Tu/180,r.enable&&(s=Number(s.toFixed(r.decimal)),f=Number(f.toFixed(r.decimal))),e.length===3?[s,f,e[2]]:[s,f]}function df(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,r=e[0],n=e[1],a=r/Tu*180,s=n/Tu*180;return s=180/Math.PI*(2*Math.atan(Math.exp(s*Math.PI/180))-Math.PI/2),i!=null&&(a=Number(a.toFixed(i)),s=Number(s.toFixed(i))),e.length===3?[a,s,e[2]]:[a,s]}function ys(e){if(e==null)throw new Error("lng is required");return(e>180||e<-180)&&(e=e%360,e>180&&(e=-360+e),e<-180&&(e=360+e),e===0&&(e=0)),e}function lu(e){if(e==null)throw new Error("lat is required");return(e>90||e<-90)&&(e=e%180,e>90&&(e=-180+e),e<-90&&(e=180+e),e===0&&(e=0)),e}function ns(e,i){if(i===!1)return e;var r=ys(e[0]),n=lu(e[1]);return n>85&&(n=85),n<-85&&(n=-85),e.length===3?[r,n,e[2]]:[r,n]}function Go(e){var i=85.0511287798,r=Math.max(Math.min(i,e[1]),-i),n=256<<20,a=Math.PI/180,s=e[0]*a,f=r*a;f=Math.log(Math.tan(Math.PI/4+f/2));var v=.5/Math.PI,g=.5,x=-.5/Math.PI;return a=.5,s=n*(v*s+g),f=n*(x*f+a),[Math.floor(s),Math.floor(f)]}function Wf(e){var i=.5/Math.PI,r=.5,n=-.5/Math.PI,a=.5,s=256<<20,f=_slicedToArray(e,2),v=f[0],g=f[1];v=(v/s-r)/i,g=(g/s-a)/n,g=(Math.atan(Math.pow(Math.E,g))-Math.PI/4)*2,a=Math.PI/180;var x=g/a,C=v/a;return[C,x]}function vf(e,i){var r=85.0511287798,n=Math.PI/180,a=6378137;return i=Math.max(Math.min(r,i),-r),e*=n,i*=n,i=Math.log(Math.tan(Math.PI/4+i/2)),[e*a,i*a]}function ha(e,i,r){var n=nr(i[1]-e[1]),a=nr(i[0]-e[0]),s=nr(e[1]),f=nr(i[1]),v=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(s)*Math.cos(f);return me(2*Math.atan2(Math.sqrt(v),Math.sqrt(1-v)),r="meters")}function Na(e){var i=Math.PI/180,r=85.0511287798,n=6378137,a=Math.max(Math.min(r,e[1]),-r),s=Math.sin(a*i),f=n*e[0]*i,v=n*Math.log((1+s)/(1-s))/2;return[f,v]}function dc(e,i){var r=Math.abs(e[1][1]-e[0][1])*i,n=Math.abs(e[1][0]-e[0][0])*i;return[[e[0][0]-n,e[0][1]-r],[e[1][0]+n,e[1][1]+r]]}function yl(e,i){return e[0][0]<=i[0][0]&&e[0][1]<=i[0][1]&&e[1][0]>=i[1][0]&&e[1][1]>=i[1][1]}function Pu(e){return[[e[0],e[1]],[e[2],e[3]]]}function cu(e){var i=Fo(e,[0,0]);return[e[0]/i,e[1]/i]}function Fo(e,i){return Math.sqrt(Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2))}function il(e,i){return e[0]*i[0]+e[1]*i[1]}function fu(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function mf(e,i){return Math.acos(il(e,i)/(fu(e)*fu(i)))*180/Math.PI}function Nl(e,i){return i[0]>0?i[1]>0?90-Math.atan(i[1]/i[0])*180/Math.PI:90+Math.atan(-i[1]/i[0])*180/Math.PI:i[1]<0?180+(90-Math.atan(i[1]/i[0])*180/Math.PI):270+Math.atan(i[1]/-i[0])*180/Math.PI}function jc(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!e||e.length<2)){for(var r=[0,1],n=0,a=[],s=0;s0){var T=a[s-1].rotation;T-C>360-T+C&&(C=C+360)}a.push({start:f,end:v,dis:g,rotation:C,duration:0})}return a.map(function(O){O.duration=i*(O.dis/n)}),a}}var gf=function(){function e(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,r=arguments.length>1?arguments[1]:void 0;(0,ht.Z)(this,e),(0,A.Z)(this,"limit",void 0),(0,A.Z)(this,"cache",void 0),(0,A.Z)(this,"destroy",void 0),(0,A.Z)(this,"order",void 0),this.limit=i,this.destroy=r||this.defaultDestroy,this.order=[],this.clear()}return(0,Pt.Z)(e,[{key:"clear",value:function(){var r=this;this.order.forEach(function(n){r.delete(n)}),this.cache={},this.order=[]}},{key:"get",value:function(r){var n=this.cache[r];return n&&(this.deleteOrder(r),this.appendOrder(r)),n}},{key:"set",value:function(r,n){this.cache[r]?(this.delete(r),this.cache[r]=n,this.appendOrder(r)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[r]=n,this.appendOrder(r))}},{key:"delete",value:function(r){var n=this.cache[r];n&&(this.deleteCache(r),this.deleteOrder(r),this.destroy(n,r))}},{key:"deleteCache",value:function(r){delete this.cache[r]}},{key:"deleteOrder",value:function(r){var n=this.order.findIndex(function(a){return a===r});n>=0&&this.order.splice(n,1)}},{key:"appendOrder",value:function(r){this.order.push(r)}},{key:"defaultDestroy",value:function(r,n){return null}}]),e}();function Iu(e,i){e.forEach(function(r){!i[r]||(i[r]=i[r].bind(i))})}var vc=function(){function e(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16;(0,ht.Z)(this,e),(0,A.Z)(this,"duration",16),(0,A.Z)(this,"timestamp",new Date().getTime()),this.duration=i}return(0,Pt.Z)(e,[{key:"run",value:function(r){var n=new Date().getTime(),a=n-this.timestamp;this.timestamp=n,a>=this.duration&&r()}}]),e}(),Vc=U(2650);function al(e){return typeof e=="string"?!!Vc.ZP(e):!1}function Ji(e){var i=Vc.ZP(e),r=[0,0,0,0];return i!=null&&(r[0]=i.r/255,r[1]=i.g/255,r[2]=i.b/255,r[3]=i.opacity),r}function ol(e){var i=e&&e[0],r=e&&e[1],n=e&&e[2],a=i+r*256+n*65536-1;return a}function hu(e){return[e+1&255,e+1>>8&255,e+1>>8>>8&255]}function Ts(e){var i=kn.document.createElement("canvas"),r=i.getContext("2d");i.width=256,i.height=1;for(var n=r.createLinearGradient(0,0,256,1),a=null,s=e.positions[0],f=e.positions[e.positions.length-1],v=0;va&&(T=a);for(var O=(0,on.Z)(r,4),k=O[0],j=O[1],X=O[2],te=O[3],be=[Math.max(k,C[0]),Math.max(j,C[1]),Math.min(X,C[2]),Math.min(te,C[3])],Ne=[],$e=dr(be[0],be[1],T),ot=(0,on.Z)($e,2),bt=ot[0],_t=ot[1],qt=dr(be[2],be[3],T),ar=(0,on.Z)(qt,2),Pr=ar[0],qr=ar[1],gr=bt;gr<=Pr;gr++)for(var un=qr;un<=_t;un++)Ne.push({x:gr,y:un,z:T});return Ne}var Nn=function(i,r,n){var a=Math.pow(2,n),s=a-1,f=a,v=i,g=r;return v<0?v=v+f:v>s&&(v=v%f),{warpX:v,warpY:g}},zn=function(){function e(i){(0,ht.Z)(this,e),(0,A.Z)(this,"x",void 0),(0,A.Z)(this,"y",void 0),(0,A.Z)(this,"z",void 0),(0,A.Z)(this,"tileSize",256),(0,A.Z)(this,"isVisible",!1),(0,A.Z)(this,"isCurrent",!1),(0,A.Z)(this,"layer",null),(0,A.Z)(this,"layers",[]),(0,A.Z)(this,"parent",null),(0,A.Z)(this,"children",[]),(0,A.Z)(this,"data",null),(0,A.Z)(this,"properties",{}),(0,A.Z)(this,"loadStatus",void 0),(0,A.Z)(this,"abortController",void 0),(0,A.Z)(this,"loadDataId",0);var r=i.x,n=i.y,a=i.z,s=i.tileSize;this.x=r,this.y=n,this.z=a,this.tileSize=s}return(0,Pt.Z)(e,[{key:"isLoading",get:function(){return this.loadStatus===w.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===w.Loaded}},{key:"isCancelled",get:function(){return this.loadStatus===w.Cancelled}},{key:"isDone",get:function(){return[w.Loaded,w.Cancelled,w.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return kr(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var r=(0,on.Z)(this.bounds,4),n=r[0],a=r[1],s=r[2],f=r[3],v=[(s-n)/2,(f-a)/2],g=q(this.bounds,{properties:{key:this.key,bbox:this.bounds,center:v,meta:` + `.concat(this.key,` + `)}});return g}},{key:"key",get:function(){var r="".concat(this.x,",").concat(this.y,",").concat(this.z);return r}},{key:"loadData",value:function(){var i=(0,P.Z)(N().mark(function n(a){var s,f,v,g,x,C,T,O,k,j,X,te,be,Ne,$e,ot;return N().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return s=a.getData,f=a.onLoad,v=a.onError,this.loadDataId++,g=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=w.Loading,x=null,_t.prev=7,T=this.x,O=this.y,k=this.z,j=this.bounds,X=this.tileSize,te=Nn(T,O,k),be=te.warpX,Ne=te.warpY,$e=this.abortController.signal,ot={x:be,y:Ne,z:k,bounds:j,tileSize:X,signal:$e},_t.next=14,s(ot);case 14:x=_t.sent,_t.next=20;break;case 17:_t.prev=17,_t.t0=_t.catch(7),C=_t.t0;case 20:if(g===this.loadDataId){_t.next=22;break}return _t.abrupt("return");case 22:if(!(this.isCancelled&&!x)){_t.next=24;break}return _t.abrupt("return");case 24:if(!(C||!x)){_t.next=28;break}return this.loadStatus=w.Failure,v(C,this),_t.abrupt("return");case 28:this.loadStatus=w.Loaded,this.data=x,f(this);case 31:case"end":return _t.stop()}},n,this,[[7,17]])}));function r(n){return i.apply(this,arguments)}return r}()},{key:"reloadData",value:function(r){this.isLoading&&this.abortLoad(),this.loadData(r)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=w.Cancelled,this.abortController.abort())}}]),e}(),Mn=U(26729),Bi=U.n(Mn);function Qr(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=li(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function li(e,i){if(!!e){if(typeof e=="string")return fi(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fi(e,i)}}function fi(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);ra;if(s){var f=Qr(this.cacheTiles),v;try{for(f.s();!(v=f.n()).done;){var g=(0,on.Z)(v.value,2),x=g[0],C=g[1];if(!C.isVisible&&!this.currentTiles.includes(C)&&(this.cacheTiles.delete(x),this.onTileUnload(C)),this.cacheTiles.size<=a)break}}catch(T){f.e(T)}finally{f.f()}}}},{key:"rebuildTileTree",value:function(){var a=Qr(this.cacheTiles.values()),s;try{for(a.s();!(s=a.n()).done;){var f=s.value;f.parent=null,f.children.length=0}}catch(T){a.e(T)}finally{a.f()}var v=Qr(this.cacheTiles.values()),g;try{for(v.s();!(g=v.n()).done;){var x=g.value,C=this.getNearestAncestor(x.x,x.y,x.z);x.parent=C,C!=null&&C.children&&C.children.push(x)}}catch(T){v.e(T)}finally{v.f()}}},{key:"getNearestAncestor",value:function(a,s,f){for(;f>this.options.minZoom;){a=Math.floor(a/2),s=Math.floor(s/2),f=f-1;var v=this.getTile(a,s,f);if(v)return v}return null}}]),r}(Bi());function po(e,i){var r=i.extent,n=r===void 0?[121.168,30.2828,121.384,30.4219]:r,a=new Promise(function(f){e instanceof HTMLImageElement?f([e]):Ka(e,function(v){f(v)})}),s={originData:e,images:a,_id:1,dataArray:[{_id:0,coordinates:[[n[0],n[1]],[n[2],n[3]]]}]};return s}function Ka(e,i){var r=e,n=[];if(typeof r=="string")Gu({url:r},function(f,v){n.push(v),i(n)});else{var a=r.length,s=0;r.forEach(function(f){Gu({url:f},function(v,g){s++,n.push(g),s===a&&i(n)})})}return po}function Ho(e,i){var r=i.extent,n=i.width,a=i.height,s=i.min,f=i.max,v={_id:1,dataArray:[{_id:1,data:Array.from(e),width:n,height:a,min:s,max:f,coordinates:[[r[0],r[1]],[r[2],r[3]]]}]};return v}function Bo(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function za(e){for(var i=1;i0&&s[s.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!s||x[1]>s[0]&&x[1]0)&&!(a=n.next()).done;)s.push(a.value)}catch(v){f={error:v}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(f)throw f.error}}return s}function So(){for(var e=[],i=0;i=0&&n.length%1==0}e.exports=i.default});ka(mu);var ta=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(r){return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=n.pop();return r.call(this,n,s)}},e.exports=i.default});ka(ta);var is=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.fallback=a,i.wrap=s;var r=i.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,n=i.hasNextTick=typeof xl=="object"&&typeof xl.nextTick=="function";function a(v){setTimeout(v,0)}function s(v){return function(g){for(var x=[],C=arguments.length-1;C-- >0;)x[C]=arguments[C+1];return v(function(){return g.apply(void 0,x)})}}var f;r?f=setImmediate:n?f=xl.nextTick:f=a,i.default=s(f)});ka(is);var Ms=is.fallback,bl=is.wrap,_f=is.hasSetImmediate,xf=is.hasNextTick,Gc=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=s;var r=a(ta),n=a(is);function a(g){return g&&g.__esModule?g:{default:g}}function s(g){return(0,mo.isAsync)(g)?function(){for(var x=[],C=arguments.length;C--;)x[C]=arguments[C];var T=x.pop(),O=g.apply(this,x);return f(O,T)}:(0,r.default)(function(x,C){var T;try{T=g.apply(this,x)}catch(O){return C(O)}if(T&&typeof T.then=="function")return f(T,C);C(null,T)})}function f(g,x){return g.then(function(C){v(x,null,C)},function(C){v(x,C&&C.message?C:new Error(C))})}function v(g,x,C){try{g(x,C)}catch(T){(0,n.default)(function(O){throw O},T)}}e.exports=i.default});ka(Gc);var mo=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.isAsyncIterable=i.isAsyncGenerator=i.isAsync=void 0;var r=n(Gc);function n(g){return g&&g.__esModule?g:{default:g}}function a(g){return g[Symbol.toStringTag]==="AsyncFunction"}function s(g){return g[Symbol.toStringTag]==="AsyncGenerator"}function f(g){return typeof g[Symbol.asyncIterator]=="function"}function v(g){if(typeof g!="function")throw new Error("expected a function");return a(g)?(0,r.default)(g):g}i.default=v,i.isAsync=a,i.isAsyncGenerator=s,i.isAsyncIterable=f});ka(mo);var Hc=mo.isAsyncIterable,Ru=mo.isAsyncGenerator,Zl=mo.isAsync,Xu=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=r;function r(n,a){if(a===void 0&&(a=n.length),!a)throw new Error("arity is undefined");function s(){for(var f=this,v=[],g=arguments.length;g--;)v[g]=arguments[g];return typeof v[a-1]=="function"?n.apply(this,v):new Promise(function(x,C){v[a-1]=function(T){for(var O=[],k=arguments.length-1;k-- >0;)O[k]=arguments[k+1];if(T)return C(T);x(O.length>1?O:O[0])},n.apply(f,v)})}return Object.defineProperty(s,"name",{configurable:!0,value:"awaitable("+n.name+")"}),s}e.exports=i.default});ka(Xu);var nu=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0});var r=s(mu),n=s(mo),a=s(Xu);function s(f){return f&&f.__esModule?f:{default:f}}i.default=(0,a.default)(function(f,v,g){var x=(0,r.default)(v)?[]:{};f(v,function(C,T,O){(0,n.default)(C)(function(k){for(var j,X=[],te=arguments.length-1;te-- >0;)X[te]=arguments[te+1];X.length<2&&(j=X,X=j[0]),x[T]=X,O(k)})},function(C){return g(C,x)})},3),e.exports=i.default});ka(nu);var go=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=r;function r(n){function a(){for(var s=[],f=arguments.length;f--;)s[f]=arguments[f];if(n!==null){var v=n;n=null,v.apply(this,s)}}return Object.assign(a,n),a}e.exports=i.default});ka(go);var gc=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(r){return r[Symbol.iterator]&&r[Symbol.iterator]()},e.exports=i.default});ka(gc);var bf=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=g;var r=a(mu),n=a(gc);function a(x){return x&&x.__esModule?x:{default:x}}function s(x){var C=-1,T=x.length;return function(){return++C=f||T||x||(T=!0,s.next().then(function(be){var Ne=be.value,$e=be.done;if(!(C||x)){if(T=!1,$e){x=!0,O<=0&&g(null);return}O++,v(Ne,k,X),k++,j()}}).catch(te))}function X(be,Ne){if(O-=1,!C){if(be)return te(be);if(be===!1){x=!0,C=!0;return}if(Ne===r.default||x&&O<=0)return x=!0,g(null);j()}}function te(be){C||(T=!1,x=!0,g(be))}j()}e.exports=i.default});ka(Sh);var Ch=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0});var r=v(go),n=v(bf),a=v(Wc),s=v(Sh),f=v(yc);function v(g){return g&&g.__esModule?g:{default:g}}i.default=function(g){return function(x,C,T){if(T=(0,r.default)(T),g<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!x)return T(null);if((0,mo.isAsyncGenerator)(x))return(0,s.default)(x,g,C,T);if((0,mo.isAsyncIterable)(x))return(0,s.default)(x[Symbol.asyncIterator](),g,C,T);var O=(0,n.default)(x),k=!1,j=!1,X=0,te=!1;function be($e,ot){if(!j)if(X-=1,$e)k=!0,T($e);else if($e===!1)k=!0,j=!0;else{if(ot===f.default||k&&X<=0)return k=!0,T(null);te||Ne()}}function Ne(){for(te=!0;X0;)j[X]=arguments[X+1];if(k!==!1){if(k||C===g.length)return x.apply(void 0,[k].concat(j));T(j)}}T([])}i.default=(0,s.default)(v),e.exports=i.default}),Md=ka(ip),Pd=function(){function e(){for(var i=arguments,r=[],n=0;ni&&(i=e[r]);return i}function Mh(e){if(e.length===0)throw new Error("min requires at least one data point");for(var i=e[0],r=1;r=Math.abs(e[a])?r+=i-n+e[a]:r+=e[a]-n+i,i=n;return i+r*1}function Yf(e){if(e.length===0)throw new Error("mean requires at least one data point");return Xf(e)/e.length}var Ph={min:Mh,max:jp,mean:Yf,sum:Xf};function qf(e,i){return e.map(function(r){return r[i]*1})}function jl(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Sl(e){for(var i=1;i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function Sf(e,i){if(!!e){if(typeof e=="string")return Kc(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kc(e,i)}}function Kc(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);rn?a:n)}}catch($e){s.e($e)}finally{s.f()}var g=(r+n)/2,x=th(i,g);if(x.xOffset<=0||x.yOffset<=0)return{gridHash:{},gridOffset:x};var C={},T=Qf(e),O;try{for(T.s();!(O=T.n()).done;){var k=O.value,j=k.coordinates[1],X=k.coordinates[0];if(Number.isFinite(j)&&Number.isFinite(X)){var te=Math.floor((j+90)/x.yOffset),be=Math.floor((X+180)/x.xOffset),Ne="".concat(te,"-").concat(be);C[Ne]=C[Ne]||{count:0,points:[]},C[Ne].count+=1,C[Ne].points.push(k)}}}catch($e){T.e($e)}finally{T.f()}return{gridHash:C,gridOffset:x}}function th(e,i){var r=rh(e),n=Rh(i,e);return{yOffset:r,xOffset:n}}function rh(e){return e/Ns*(180/Math.PI)}function Rh(e,i){return i/Ns*(180/Math.PI)/Math.cos(e*Math.PI/180)}function Cl(e,i,r){return Object.keys(e).reduce(function(n,a,s){var f=a.split("-"),v=parseInt(f[0],10),g=parseInt(f[1],10),x={};if(r.field&&r.method){var C=ms(e[a].points,r.field);x[r.method]=Ea[r.method](C)}return Object.assign(x,{_id:s,coordinates:Go([-180+i.xOffset*(g+.5),-90+i.yOffset*(v+.5)]),rawData:e[a].points,count:e[a].count}),n.push(x),n},[])}var Yu=Math.PI/3,Vp=[0,Yu,2*Yu,3*Yu,4*Yu,5*Yu];function Lh(e){return e[0]}function Gp(e){return e[1]}function Id(){var e=0,i=0,r=1,n=1,a=Lh,s=Gp,f,v,g;function x(T){var O={},k=[],j,X=T.length;for(j=0;j1){var _t=be-ot,qt=ot+(bePr*Pr+qr*qr&&(ot=qt+($e&1?1:-1)/2,$e=ar)}var gr=ot+"-"+$e,un=O[gr];un?un.push(te):(k.push(un=O[gr]=[te]),un.x=(ot+($e&1)/2)*v,un.y=$e*g)}return k}function C(T){var O=0,k=0;return Vp.map(function(j){var X=Math.sin(j)*T,te=-Math.cos(j)*T,be=X-O,Ne=te-k;return O=X,k=te,[be,Ne]})}return x.hexagon=function(T){return"m"+C(T==null?f:+T).join("l")+"z"},x.centers=function(){for(var T=[],O=Math.round(i/g),k=Math.round(e/v),j=O*g;j"),IRendererService:Symbol.for("IRendererService"),IShaderModuleService:Symbol.for("IShaderModuleService"),IIconService:Symbol.for("IIconService"),IFontService:Symbol.for("IFontService"),IInteractionService:Symbol.for("IInteractionService"),IPickingService:Symbol.for("IPickingService"),IControlService:Symbol.for("IControlService"),IStyleAttributeService:Symbol.for("IStyleAttributeService"),ILayer:Symbol.for("ILayer"),ILayerPlugin:Symbol.for("ILayerPlugin"),INormalPass:Symbol.for("INormalPass"),IPostProcessor:Symbol.for("IPostProcessor"),IPostProcessingPass:Symbol.for("IPostProcessingPass"),IFactoryPostProcessingPass:Symbol.for("Factory"),IFactoryNormalPass:Symbol.for("Factory"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")},sp=U(31745),va=U.n(sp);function Gl(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ao(e){for(var i=1;i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function Yp(e,i){if(!!e){if(typeof e=="string")return up(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return up(e,i)}}function up(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);rs&&(k=0,O++),v[X]={x:k,y:T+O*nh,width:nh,height:nh,advance:be},k+=nh}});var j=n+a*2;return{mapping:v,xOffset:k,yOffset:T+O*j,canvasHeight:qp(T+(O+1)*j)}}function Ld(e,i,r){var n=0,a=0,s=0,f=[],v={},g=Ys(e),x;try{for(g.s();!(x=g.n()).done;){var C=x.value;if(!v[C.id]){var T=C.size;n+T+i>r&&(Dh(v,f,a),n=0,a=s+a+i,s=0,f=[]),f.push({icon:C,xOffset:n}),n=n+T+i,s=Math.max(s,T)}}}catch(k){g.e(k)}finally{g.f()}f.length>0&&Dh(v,f,a);var O=qp(s+a+i);return{mapping:v,canvasHeight:O}}function Dh(e,i,r){var n=Ys(i),a;try{for(n.s();!(a=n.n()).done;){var s=a.value,f=s.icon,v=s.xOffset;e[f.id]=Ao(Ao({},f),{},{x:v,y:r,image:f.image,width:f.width,height:f.height})}}catch(g){n.e(g)}finally{n.f()}}function qp(e){return Math.pow(2,Math.ceil(Math.log2(e)))}var Kp,Af;function lp(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=$p(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function $p(e,i){if(!!e){if(typeof e=="string")return wf(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wf(e,i)}}function wf(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r0?(r[0]=(v*f+C*n+g*s-x*a)*2/T,r[1]=(g*f+C*a+x*n-v*s)*2/T,r[2]=(x*f+C*s+v*a-g*n)*2/T):(r[0]=(v*f+C*n+g*s-x*a)*2,r[1]=(g*f+C*a+x*n-v*s)*2,r[2]=(x*f+C*s+v*a-g*n)*2),Wo(e,i,r),e}function bs(e,i){return e[0]=i[12],e[1]=i[13],e[2]=i[14],e}function io(e,i){var r=i[0],n=i[1],a=i[2],s=i[4],f=i[5],v=i[6],g=i[8],x=i[9],C=i[10];return e[0]=Math.hypot(r,n,a),e[1]=Math.hypot(s,f,v),e[2]=Math.hypot(g,x,C),e}function Si(e,i){var r=new or.WT(3);io(r,i);var n=1/r[0],a=1/r[1],s=1/r[2],f=i[0]*n,v=i[1]*a,g=i[2]*s,x=i[4]*n,C=i[5]*a,T=i[6]*s,O=i[8]*n,k=i[9]*a,j=i[10]*s,X=f+C+j,te=0;return X>0?(te=Math.sqrt(X+1)*2,e[3]=.25*te,e[0]=(T-k)/te,e[1]=(O-g)/te,e[2]=(v-x)/te):f>C&&f>j?(te=Math.sqrt(1+f-C-j)*2,e[3]=(T-k)/te,e[0]=.25*te,e[1]=(v+x)/te,e[2]=(O+g)/te):C>j?(te=Math.sqrt(1+C-f-j)*2,e[3]=(O-g)/te,e[0]=(v+x)/te,e[1]=.25*te,e[2]=(T+k)/te):(te=Math.sqrt(1+j-f-C)*2,e[3]=(v-x)/te,e[0]=(O+g)/te,e[1]=(T+k)/te,e[2]=.25*te),e}function Yo(e,i,r,n){var a=i[0],s=i[1],f=i[2],v=i[3],g=a+a,x=s+s,C=f+f,T=a*g,O=a*x,k=a*C,j=s*x,X=s*C,te=f*C,be=v*g,Ne=v*x,$e=v*C,ot=n[0],bt=n[1],_t=n[2];return e[0]=(1-(j+te))*ot,e[1]=(O+$e)*ot,e[2]=(k-Ne)*ot,e[3]=0,e[4]=(O-$e)*bt,e[5]=(1-(T+te))*bt,e[6]=(X+be)*bt,e[7]=0,e[8]=(k+Ne)*_t,e[9]=(X-be)*_t,e[10]=(1-(T+j))*_t,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function ra(e,i,r,n,a){var s=i[0],f=i[1],v=i[2],g=i[3],x=s+s,C=f+f,T=v+v,O=s*x,k=s*C,j=s*T,X=f*C,te=f*T,be=v*T,Ne=g*x,$e=g*C,ot=g*T,bt=n[0],_t=n[1],qt=n[2],ar=a[0],Pr=a[1],qr=a[2],gr=(1-(X+be))*bt,un=(k+ot)*bt,Ln=(j-$e)*bt,Vn=(k-ot)*_t,Fa=(1-(O+be))*_t,Ro=(te+Ne)*_t,Ls=(j+$e)*qt,au=(te-Ne)*qt,Vs=(1-(O+X))*qt;return e[0]=gr,e[1]=un,e[2]=Ln,e[3]=0,e[4]=Vn,e[5]=Fa,e[6]=Ro,e[7]=0,e[8]=Ls,e[9]=au,e[10]=Vs,e[11]=0,e[12]=r[0]+ar-(gr*ar+Vn*Pr+Ls*qr),e[13]=r[1]+Pr-(un*ar+Fa*Pr+au*qr),e[14]=r[2]+qr-(Ln*ar+Ro*Pr+Vs*qr),e[15]=1,e}function us(e,i){var r=i[0],n=i[1],a=i[2],s=i[3],f=r+r,v=n+n,g=a+a,x=r*f,C=n*f,T=n*v,O=a*f,k=a*v,j=a*g,X=s*f,te=s*v,be=s*g;return e[0]=1-T-j,e[1]=C+be,e[2]=O-te,e[3]=0,e[4]=C-be,e[5]=1-x-j,e[6]=k+X,e[7]=0,e[8]=O+te,e[9]=k-X,e[10]=1-x-T,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function oi(e,i,r,n,a,s,f){var v=1/(r-i),g=1/(a-n),x=1/(s-f);return e[0]=s*2*v,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s*2*g,e[6]=0,e[7]=0,e[8]=(r+i)*v,e[9]=(a+n)*g,e[10]=(f+s)*x,e[11]=-1,e[12]=0,e[13]=0,e[14]=f*s*2*x,e[15]=0,e}function zi(e,i,r,n,a){var s=1/Math.tan(i/2),f;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,a!=null&&a!==Infinity?(f=1/(n-a),e[10]=(a+n)*f,e[14]=2*a*n*f):(e[10]=-1,e[14]=-2*n),e}var ua=zi;function To(e,i,r,n,a){var s=1/Math.tan(i/2),f;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,a!=null&&a!==Infinity?(f=1/(n-a),e[10]=a*f,e[14]=a*n*f):(e[10]=-1,e[14]=-n),e}function wl(e,i,r,n){var a=Math.tan(i.upDegrees*Math.PI/180),s=Math.tan(i.downDegrees*Math.PI/180),f=Math.tan(i.leftDegrees*Math.PI/180),v=Math.tan(i.rightDegrees*Math.PI/180),g=2/(f+v),x=2/(a+s);return e[0]=g,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=x,e[6]=0,e[7]=0,e[8]=-((f-v)*g*.5),e[9]=(a-s)*x*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}function Te(e,i,r,n,a,s,f){var v=1/(i-r),g=1/(n-a),x=1/(s-f);return e[0]=-2*v,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*g,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*x,e[11]=0,e[12]=(i+r)*v,e[13]=(a+n)*g,e[14]=(f+s)*x,e[15]=1,e}var Ut=Te;function St(e,i,r,n,a,s,f){var v=1/(i-r),g=1/(n-a),x=1/(s-f);return e[0]=-2*v,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*g,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=x,e[11]=0,e[12]=(i+r)*v,e[13]=(a+n)*g,e[14]=s*x,e[15]=1,e}function mn(e,i,r,n){var a,s,f,v,g,x,C,T,O,k,j=i[0],X=i[1],te=i[2],be=n[0],Ne=n[1],$e=n[2],ot=r[0],bt=r[1],_t=r[2];return Math.abs(j-ot)0&&(k=1/Math.sqrt(k),C*=k,T*=k,O*=k);var j=g*O-x*T,X=x*C-v*O,te=v*T-g*C;return k=j*j+X*X+te*te,k>0&&(k=1/Math.sqrt(k),j*=k,X*=k,te*=k),e[0]=j,e[1]=X,e[2]=te,e[3]=0,e[4]=T*te-O*X,e[5]=O*j-C*te,e[6]=C*X-T*j,e[7]=0,e[8]=C,e[9]=T,e[10]=O,e[11]=0,e[12]=a,e[13]=s,e[14]=f,e[15]=1,e}function Se(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}function ue(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function Ge(e,i,r){return e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e[3]=i[3]+r[3],e[4]=i[4]+r[4],e[5]=i[5]+r[5],e[6]=i[6]+r[6],e[7]=i[7]+r[7],e[8]=i[8]+r[8],e[9]=i[9]+r[9],e[10]=i[10]+r[10],e[11]=i[11]+r[11],e[12]=i[12]+r[12],e[13]=i[13]+r[13],e[14]=i[14]+r[14],e[15]=i[15]+r[15],e}function lt(e,i,r){return e[0]=i[0]-r[0],e[1]=i[1]-r[1],e[2]=i[2]-r[2],e[3]=i[3]-r[3],e[4]=i[4]-r[4],e[5]=i[5]-r[5],e[6]=i[6]-r[6],e[7]=i[7]-r[7],e[8]=i[8]-r[8],e[9]=i[9]-r[9],e[10]=i[10]-r[10],e[11]=i[11]-r[11],e[12]=i[12]-r[12],e[13]=i[13]-r[13],e[14]=i[14]-r[14],e[15]=i[15]-r[15],e}function Lt(e,i,r){return e[0]=i[0]*r,e[1]=i[1]*r,e[2]=i[2]*r,e[3]=i[3]*r,e[4]=i[4]*r,e[5]=i[5]*r,e[6]=i[6]*r,e[7]=i[7]*r,e[8]=i[8]*r,e[9]=i[9]*r,e[10]=i[10]*r,e[11]=i[11]*r,e[12]=i[12]*r,e[13]=i[13]*r,e[14]=i[14]*r,e[15]=i[15]*r,e}function Ke(e,i,r,n){return e[0]=i[0]+r[0]*n,e[1]=i[1]+r[1]*n,e[2]=i[2]+r[2]*n,e[3]=i[3]+r[3]*n,e[4]=i[4]+r[4]*n,e[5]=i[5]+r[5]*n,e[6]=i[6]+r[6]*n,e[7]=i[7]+r[7]*n,e[8]=i[8]+r[8]*n,e[9]=i[9]+r[9]*n,e[10]=i[10]+r[10]*n,e[11]=i[11]+r[11]*n,e[12]=i[12]+r[12]*n,e[13]=i[13]+r[13]*n,e[14]=i[14]+r[14]*n,e[15]=i[15]+r[15]*n,e}function Fe(e,i){return e[0]===i[0]&&e[1]===i[1]&&e[2]===i[2]&&e[3]===i[3]&&e[4]===i[4]&&e[5]===i[5]&&e[6]===i[6]&&e[7]===i[7]&&e[8]===i[8]&&e[9]===i[9]&&e[10]===i[10]&&e[11]===i[11]&&e[12]===i[12]&&e[13]===i[13]&&e[14]===i[14]&&e[15]===i[15]}function nt(e,i){var r=e[0],n=e[1],a=e[2],s=e[3],f=e[4],v=e[5],g=e[6],x=e[7],C=e[8],T=e[9],O=e[10],k=e[11],j=e[12],X=e[13],te=e[14],be=e[15],Ne=i[0],$e=i[1],ot=i[2],bt=i[3],_t=i[4],qt=i[5],ar=i[6],Pr=i[7],qr=i[8],gr=i[9],un=i[10],Ln=i[11],Vn=i[12],Fa=i[13],Ro=i[14],Ls=i[15];return Math.abs(r-Ne)<=or.Ib*Math.max(1,Math.abs(r),Math.abs(Ne))&&Math.abs(n-$e)<=or.Ib*Math.max(1,Math.abs(n),Math.abs($e))&&Math.abs(a-ot)<=or.Ib*Math.max(1,Math.abs(a),Math.abs(ot))&&Math.abs(s-bt)<=or.Ib*Math.max(1,Math.abs(s),Math.abs(bt))&&Math.abs(f-_t)<=or.Ib*Math.max(1,Math.abs(f),Math.abs(_t))&&Math.abs(v-qt)<=or.Ib*Math.max(1,Math.abs(v),Math.abs(qt))&&Math.abs(g-ar)<=or.Ib*Math.max(1,Math.abs(g),Math.abs(ar))&&Math.abs(x-Pr)<=or.Ib*Math.max(1,Math.abs(x),Math.abs(Pr))&&Math.abs(C-qr)<=or.Ib*Math.max(1,Math.abs(C),Math.abs(qr))&&Math.abs(T-gr)<=or.Ib*Math.max(1,Math.abs(T),Math.abs(gr))&&Math.abs(O-un)<=or.Ib*Math.max(1,Math.abs(O),Math.abs(un))&&Math.abs(k-Ln)<=or.Ib*Math.max(1,Math.abs(k),Math.abs(Ln))&&Math.abs(j-Vn)<=or.Ib*Math.max(1,Math.abs(j),Math.abs(Vn))&&Math.abs(X-Fa)<=or.Ib*Math.max(1,Math.abs(X),Math.abs(Fa))&&Math.abs(te-Ro)<=or.Ib*Math.max(1,Math.abs(te),Math.abs(Ro))&&Math.abs(be-Ls)<=or.Ib*Math.max(1,Math.abs(be),Math.abs(Ls))}var xe=Gn,Ze=lt,Ae,ct,Ct=(Ae=(0,Wr.b2)(),Ae(ct=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"viewport",void 0),(0,A.Z)(this,"overridedViewProjectionMatrix",void 0),(0,A.Z)(this,"jitteredViewProjectionMatrix",void 0),(0,A.Z)(this,"jitteredProjectionMatrix",void 0),(0,A.Z)(this,"viewMatrixInverse",void 0),(0,A.Z)(this,"cameraPosition",void 0)}return(0,Pt.Z)(e,[{key:"init",value:function(){}},{key:"update",value:function(r){this.viewport=r,this.viewMatrixInverse=zr(),Hr(this.viewMatrixInverse,r.getViewMatrix()),this.cameraPosition=[this.viewMatrixInverse[12],this.viewMatrixInverse[13],this.viewMatrixInverse[14]]}},{key:"getProjectionMatrix",value:function(){return this.jitteredProjectionMatrix||this.viewport.getProjectionMatrix()}},{key:"getModelMatrix",value:function(){return this.viewport.getModelMatrix()}},{key:"getViewMatrix",value:function(){return this.viewport.getViewMatrix()}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.getViewMatrixUncentered()}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.getViewProjectionMatrixUncentered()}},{key:"getViewProjectionMatrix",value:function(){return this.overridedViewProjectionMatrix||this.jitteredViewProjectionMatrix||this.viewport.getViewProjectionMatrix()}},{key:"getZoom",value:function(){return this.viewport.getZoom()}},{key:"getZoomScale",value:function(){return this.viewport.getZoomScale()}},{key:"getCenter",value:function(){var r=this.viewport.getCenter(),n=(0,on.Z)(r,2),a=n[0],s=n[1];return[a,s]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(r,n){return this.viewport.projectFlat(r,n)}},{key:"setViewProjectionMatrix",value:function(r){this.overridedViewProjectionMatrix=r}},{key:"jitterProjectionMatrix",value:function(r,n){var a=no(zr(),[r,n,0]);this.jitteredProjectionMatrix=Gn(zr(),a,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=Gn(zr(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),e}())||ct),fr,Ur;function Vr(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=sn(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function sn(e,i){if(!!e){if(typeof e=="string")return Dr(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dr(e,i)}}function Dr(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r-1&&this.controls.splice(n,1),r.remove(),this}},{key:"addControls",value:function(){var r=this;this.unAddControls.forEach(function(n){n.addTo(r.scene),r.controls.push(n)}),this.unAddControls=[]}},{key:"destroy",value:function(){var r=Vr(this.controls),n;try{for(r.s();!(n=r.n()).done;){var a=n.value;a.remove()}}catch(s){r.e(s)}finally{r.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var r=this.controlCorners={},n="l7-",a=this.controlContainer=lo("div",n+"control-container",this.container);function s(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=f.map(function(g){return n+g}).join(" ");r[f.join("")]=lo("div",v,a)}s(["top","left"]),s(["top","right"]),s(["bottom","left"]),s(["bottom","right"]),s(["top","center"]),s(["right","center"]),s(["left","center"]),s(["bottom","center"])}},{key:"clearControlPos",value:function(){for(var r in this.controlCorners)this.controlCorners[r]&&ju(this.controlCorners[r]);this.controlContainer&&ju(this.controlContainer),delete this.controlCorners,delete this.controlContainer}}]),e}())||Ur),cn,xn,bn=(cn=(0,Wr.b2)(),cn(xn=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"container",void 0),(0,A.Z)(this,"scene",void 0),(0,A.Z)(this,"mapsService",void 0),(0,A.Z)(this,"markers",[]),(0,A.Z)(this,"markerLayers",[]),(0,A.Z)(this,"unAddMarkers",[]),(0,A.Z)(this,"unAddMarkerLayers",[])}return(0,Pt.Z)(e,[{key:"addMarkerLayer",value:function(r){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markerLayers.push(r),r.addTo(this.scene)):this.unAddMarkerLayers.push(r)}},{key:"removeMarkerLayer",value:function(r){r.destroy(),this.markerLayers.indexOf(r);var n=this.markerLayers.indexOf(r);n>-1&&this.markerLayers.splice(n,1)}},{key:"addMarker",value:function(r){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(r),r.addTo(this.scene)):this.unAddMarkers.push(r)}},{key:"addMarkers",value:function(){var r=this;this.unAddMarkers.forEach(function(n){n.addTo(r.scene),r.markers.push(n)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var r=this;this.unAddMarkerLayers.forEach(function(n){r.markerLayers.push(n),n.addTo(r.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(r){r.remove(),this.markers.indexOf(r);var n=this.markers.indexOf(r);n>-1&&this.markers.splice(n,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(r){this.scene=r,this.mapsService=r.get(Ht.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(r){r.remove()}),this.markers=[],this.markerLayers.forEach(function(r){r.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(r){r.destroy()}}]),e}())||xn),dn,Jn,_a=(dn=(0,Wr.b2)(),dn(Jn=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"scene",void 0),(0,A.Z)(this,"popup",void 0),(0,A.Z)(this,"mapsService",void 0),(0,A.Z)(this,"unAddPopup",void 0)}return(0,Pt.Z)(e,[{key:"removePopup",value:function(r){r.remove()}},{key:"destroy",value:function(){this.popup.remove()}},{key:"addPopup",value:function(r){this.popup&&this.popup.remove(),this.mapsService.map&&this.mapsService.getMarkerContainer()?(r.addTo(this.scene),this.popup=r):this.unAddPopup=r}},{key:"initPopup",value:function(){this.unAddPopup&&(this.addPopup(this.unAddPopup),this.unAddPopup=null)}},{key:"init",value:function(r){this.scene=r,this.mapsService=r.get(Ht.IMapService)}}]),e}())||Jn),ls=U(82492),Ia=U.n(ls),pa={MapToken:"\u60A8\u6B63\u5728\u4F7F\u7528 Demo\u6D4B\u8BD5\u5730\u56FEtoken\uFF0C\u5982\u679C\u751F\u4EA7\u73AF\u5883\u4E2D\u4F7F\u7528\u53BB\u5BF9\u5E94\u5730\u56FE\u8BF7\u6CE8\u518CToken",SDK:"\u8BF7\u786E\u8BA4\u5F15\u5165\u4E86mapbox-gl api\u4E14\u5728L7\u4E4B\u524D\u5F15\u5165"},Tl=pa,Is,Ku;function yu(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ah(e){for(var i=1;i0&&(f=1/Math.sqrt(f)),e[0]=r*f,e[1]=n*f,e[2]=a*f,e[3]=s*f,e}function V(e,i){return e[0]*i[0]+e[1]*i[1]+e[2]*i[2]+e[3]*i[3]}function W(e,i,r,n){var a=r[0]*n[1]-r[1]*n[0],s=r[0]*n[2]-r[2]*n[0],f=r[0]*n[3]-r[3]*n[0],v=r[1]*n[2]-r[2]*n[1],g=r[1]*n[3]-r[3]*n[1],x=r[2]*n[3]-r[3]*n[2],C=i[0],T=i[1],O=i[2],k=i[3];return e[0]=T*x-O*g+k*v,e[1]=-(C*x)+O*f-k*s,e[2]=C*g-T*f+k*a,e[3]=-(C*v)+T*s-O*a,e}function ee(e,i,r,n){var a=i[0],s=i[1],f=i[2],v=i[3];return e[0]=a+n*(r[0]-a),e[1]=s+n*(r[1]-s),e[2]=f+n*(r[2]-f),e[3]=v+n*(r[3]-v),e}function se(e,i){i=i||1;var r,n,a,s,f,v;do r=glMatrix.RANDOM()*2-1,n=glMatrix.RANDOM()*2-1,f=r*r+n*n;while(f>=1);do a=glMatrix.RANDOM()*2-1,s=glMatrix.RANDOM()*2-1,v=a*a+s*s;while(v>=1);var g=Math.sqrt((1-f)/v);return e[0]=i*r,e[1]=i*n,e[2]=i*a*g,e[3]=i*s*g,e}function Me(e,i,r){var n=i[0],a=i[1],s=i[2],f=i[3];return e[0]=r[0]*n+r[4]*a+r[8]*s+r[12]*f,e[1]=r[1]*n+r[5]*a+r[9]*s+r[13]*f,e[2]=r[2]*n+r[6]*a+r[10]*s+r[14]*f,e[3]=r[3]*n+r[7]*a+r[11]*s+r[15]*f,e}function Oe(e,i,r){var n=i[0],a=i[1],s=i[2],f=r[0],v=r[1],g=r[2],x=r[3],C=x*n+v*s-g*a,T=x*a+g*n-f*s,O=x*s+f*a-v*n,k=-f*n-v*a-g*s;return e[0]=C*x+k*-f+T*-g-O*-v,e[1]=T*x+k*-v+O*-f-C*-g,e[2]=O*x+k*-g+C*-v-T*-f,e[3]=i[3],e}function Ye(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e}function ze(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}function st(e,i){return e[0]===i[0]&&e[1]===i[1]&&e[2]===i[2]&&e[3]===i[3]}function Tt(e,i){var r=e[0],n=e[1],a=e[2],s=e[3],f=i[0],v=i[1],g=i[2],x=i[3];return Math.abs(r-f)<=glMatrix.EPSILON*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(n-v)<=glMatrix.EPSILON*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(a-g)<=glMatrix.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-x)<=glMatrix.EPSILON*Math.max(1,Math.abs(s),Math.abs(x))}var Vt=null,Xt=null,lr=null,Lr=null,$r=null,Zn=null,gn=null,Yn=function(){var e=Fh();return function(i,r,n,a,s,f){var v,g;for(r||(r=4),n||(n=0),a?g=Math.min(a*r+n,i.length):g=i.length,v=n;vte-1*na||bt<0||_t>be-1*na||_t<0)return!1;var qt;if(qt=k({x:Math.floor(bt/i.pickBufferScale),y:Math.floor((be-(f+1)*na)/i.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:i.pickingFBO}),qt[0]!==0||qt[1]!==0||qt[2]!==0){var ar=ol(qt),Pr=r.getSource().getFeatureById(ar);ar!==r.getCurrentPickId()&&g==="mousemove"&&(g="mouseenter");var qr={x:s,y:f,type:g,lngLat:v,featureId:ar,feature:Pr,target:x};Pr&&(C=!0,r.setCurrentPickId(ar),i.pickedLayers=[r],i.triggerHoverOnLayer(r,qr))}else{var gr={x:s,y:f,lngLat:v,type:r.getCurrentPickId()!==null&&g==="mousemove"?"mouseout":"un"+g,featureId:null,target:x,feature:null};i.triggerHoverOnLayer(r,Jc(Jc({},gr),{},{type:"unpick"})),i.triggerHoverOnLayer(r,gr),r.setCurrentPickId(null),i.pickedLayers=[]}if($e&&i.highlightPickedFeature(r,qt),ot&&g==="click"&&((a=qt)===null||a===void 0?void 0:a.toString())!==[0,0,0,0].toString()){var un=ol(qt);r.getCurrentSelectedId()===null||un!==r.getCurrentSelectedId()?(i.selectFeature(r,qt),r.setCurrentSelectedId(un)):(i.selectFeature(r,new Uint8Array([0,0,0,0])),r.setCurrentSelectedId(null))}return C})}return(0,Pt.Z)(e,[{key:"init",value:function(r){var n=this.rendererService,a=n.createTexture2D,s=n.createFramebuffer,f=n.getViewportSize,v=n.getContainer,g=this.getContainerSize(v()),x=g.width,C=g.height;x*=na,C*=na,this.pickBufferScale=this.configService.getSceneConfig(r).pickBufferScale||1,this.pickingFBO=s({color:a({width:Math.round(x/this.pickBufferScale),height:Math.round(C/this.pickBufferScale),wrapS:G.CLAMP_TO_EDGE,wrapT:G.CLAMP_TO_EDGE})}),this.interactionService.on(ma.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var i=(0,P.Z)(N().mark(function n(a,s,f){var v=this,g,x,C,T;return N().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:g=this.rendererService,x=g.useFramebuffer,C=g.clear,T=g.getContainer,this.resizePickingFBO(),x(this.pickingFBO,function(){C({framebuffer:v.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),a.hooks.beforePickingEncode.call(),a.renderModels(),a.hooks.afterPickingEncode.call();var j=v.pickBox(a,s);f(j)});case 3:case"end":return k.stop()}},n,this)}));function r(n,a,s){return i.apply(this,arguments)}return r}()},{key:"pickBox",value:function(r,n){var a=this,s=n.map(function(gr){var un=gr<0?0:gr;return Math.floor(un*na/a.pickBufferScale)}),f=(0,on.Z)(s,4),v=f[0],g=f[1],x=f[2],C=f[3],T=this.rendererService,O=T.getViewportSize,k=T.readPixels,j=T.getContainer,X=this.getContainerSize(j()),te=X.width,be=X.height;if(te*=na,be*=na,v>(te-1)*na/this.pickBufferScale||x<0||g>(be-1)*na/this.pickBufferScale||C<0)return[];var Ne,$e=Math.min(te/this.pickBufferScale,x)-v,ot=Math.min(be/this.pickBufferScale,C)-g;Ne=k({x:v,y:Math.floor(be/this.pickBufferScale-(C+1)),width:$e,height:ot,data:new Uint8Array($e*ot*4),framebuffer:this.pickingFBO});for(var bt=[],_t={},qt=0;qt0&&j.masks.map(function(te){te.hooks.beforeRenderData.call(),te.hooks.beforeRender.call(),te.render(),te.hooks.afterRender.call()}),j.renderModels(!0),j.hooks.afterPickingEncode.call(),s.pickedLayers.map(function(te){s.selectFeature(te,new Uint8Array([0,0,0,0]))});var X=s.pickFromPickingFBO(j,a);return s.layerService.pickedLayerId=X?+j.id:-1,X&&!j.getLayerConfig().enablePropagation})});case 3:case"end":return O.stop()}},n,this)}));function r(n){return i.apply(this,arguments)}return r}()},{key:"triggerHoverOnLayer",value:function(r,n){$a(n)&&(this.handleCursor(r,n.type),r.emit(n.type,n))}},{key:"highlightPickedFeature",value:function(r,n){var a=(0,on.Z)(n,3),s=a[0],f=a[1],v=a[2];r.hooks.beforeHighlight.call([s,f,v])}},{key:"selectFeature",value:function(r,n){var a=(0,on.Z)(n,3),s=a[0],f=a[1],v=a[2];r.hooks.beforeSelect.call([s,f,v])}}]),e}(),uh=jn(qs.prototype,"mapService",[ca],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),If=jn(qs.prototype,"rendererService",[Wl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lh=jn(qs.prototype,"configService",[ku],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bc=jn(qs.prototype,"interactionService",[Xl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ch=jn(qs.prototype,"layerService",[Io],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qs))||Yl),Jp=function(){function e(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;(0,ht.Z)(this,e),(0,A.Z)(this,"autoStart",void 0),(0,A.Z)(this,"startTime",0),(0,A.Z)(this,"oldTime",0),(0,A.Z)(this,"running",!1),(0,A.Z)(this,"elapsedTime",0),this.autoStart=i}return(0,Pt.Z)(e,[{key:"start",value:function(){this.startTime=(typeof performance=="undefined"?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}},{key:"stop",value:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}},{key:"getElapsedTime",value:function(){return this.getDelta(),this.elapsedTime}},{key:"getDelta",value:function(){var r=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var n=(typeof performance=="undefined"?Date:performance).now();r=(n-this.oldTime)/1e3,this.oldTime=n,this.elapsedTime+=r}return r}}]),e}(),dp,Ec,Bh,fh,ef,Sc,vp,mp,Nh;function gp(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ed(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function ed(e,i){if(!!e){if(typeof e=="string")return zh(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zh(e,i)}}function zh(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r-1&&n.layerChildren.splice(a,1)}else{var s=this.layers.indexOf(r);s>-1&&this.layers.splice(s,1)}this.updateLayerRenderList(),this.renderLayers()}},{key:"remove",value:function(r,n){if(n){var a=n.layerChildren.indexOf(r);a>-1&&n.layerChildren.splice(a,1)}else{var s=this.layers.indexOf(r);s>-1&&this.layers.splice(s,1)}this.updateLayerRenderList(),r.destroy(),this.renderLayers()}},{key:"removeAllLayers",value:function(){this.destroy()}},{key:"setEnableRender",value:function(r){this.enableRender=r}},{key:"renderLayers",value:function(){var i=(0,P.Z)(N().mark(function n(){var a,s,f;return N().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){g.next=2;break}return g.abrupt("return");case 2:this.alreadyInRendering=!0,this.clear(),a=gp(this.layerList),g.prev=5,a.s();case 7:if((s=a.n()).done){g.next=21;break}if(f=s.value,f.hooks.beforeRenderData.call(),f.hooks.beforeRender.call(),!f.isLayerGroup&&f.masks.length>0&&(this.renderService.clear({stencil:0,depth:1,framebuffer:null}),f.masks.map(function(x){x.hooks.beforeRenderData.call(),x.hooks.beforeRender.call(),x.render(),x.hooks.afterRender.call()})),!f.getLayerConfig().enableMultiPassRenderer){g.next=17;break}return g.next=15,f.renderMultiPass();case 15:g.next=18;break;case 17:f.render();case 18:f.hooks.afterRender.call();case 19:g.next=7;break;case 21:g.next=26;break;case 23:g.prev=23,g.t0=g.catch(5),a.e(g.t0);case 26:return g.prev=26,a.f(),g.finish(26);case 29:this.alreadyInRendering=!1;case 30:case"end":return g.stop()}},n,this,[[5,23,26,29]])}));function r(){return i.apply(this,arguments)}return r}()},{key:"updateLayerRenderList",value:function(){var r=this;this.layerList=[],this.layers.filter(function(n){return n.inited}).filter(function(n){return n.isVisible()}).sort(function(n,a){return n.zIndex-a.zIndex}).forEach(function(n){n.isLayerGroup?n.layerChildren.filter(function(a){return a.inited}).filter(function(a){return a.isVisible()}).sort(function(a,s){return a.zIndex-s.zIndex}).forEach(function(a){r.layerList.push(a)}):r.layerList.push(n)})}},{key:"destroy",value:function(){this.layers.forEach(function(r){r.destroy()}),this.layers=[],this.layerList=[],this.renderLayers()}},{key:"startAnimate",value:function(){this.animateInstanceCount++==0&&(this.clock.start(),this.runRender())}},{key:"stopAnimate",value:function(){--this.animateInstanceCount==0&&(this.stopRender(),this.clock.stop())}},{key:"getOESTextureFloat",value:function(){return this.renderService.extensionObject.OES_texture_float}},{key:"enableShaderPick",value:function(){this.shaderPicking=!0}},{key:"disableShaderPick",value:function(){this.shaderPicking=!1}},{key:"getShaderPickStat",value:function(){return this.shaderPicking}},{key:"clear",value:function(){var r=Ji(this.mapService.bgColor);this.renderService.clear({color:r,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=kn.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){kn.cancelAnimationFrame(this.layerRenderID)}}]),e}(),vp=jn(Sc.prototype,"renderService",[Ec],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mp=jn(Sc.prototype,"mapService",[Bh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nh=jn(Sc.prototype,"configService",[fh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Sc))||ef),Cc=U(81253),td=U(14293),$u=U.n(td),rd=function(){function e(i){var r=this;(0,ht.Z)(this,e),(0,A.Z)(this,"name",void 0),(0,A.Z)(this,"type",void 0),(0,A.Z)(this,"scale",void 0),(0,A.Z)(this,"descriptor",void 0),(0,A.Z)(this,"featureBufferLayout",[]),(0,A.Z)(this,"needRescale",!1),(0,A.Z)(this,"needRemapping",!1),(0,A.Z)(this,"needRegenerateVertices",!1),(0,A.Z)(this,"featureRange",{startIndex:0,endIndex:Infinity}),(0,A.Z)(this,"vertexAttribute",void 0),(0,A.Z)(this,"defaultCallback",function(n){if(n.length===0){var a;return((a=r.scale)===null||a===void 0?void 0:a.defaultValues)||[]}return n.map(function(s,f){var v,g=(v=r.scale)===null||v===void 0?void 0:v.scalers[f].func,x=g(s);return x})}),this.setProps(i)}return(0,Pt.Z)(e,[{key:"setProps",value:function(r){Object.assign(this,r)}},{key:"mapping",value:function(r){var n;if((n=this.scale)!==null&&n!==void 0&&n.callback){var a,s=(a=this.scale)===null||a===void 0?void 0:a.callback.apply(a,(0,Ce.Z)(r));if(!$u()(s))return[s]}return this.defaultCallback(r)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),e}(),Uh=["buffer","update","name"],_p=["buffer","update","name"],ql,Zh,hh,nd,id,ad;function Fd(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function jh(e){for(var i=1;i2&&arguments[2]!==void 0?arguments[2]:0,s=arguments.length>3?arguments[3]:void 0,f=this.attributes.find(function(ot){return ot.name===r});if(f&&f.descriptor){var v=f.descriptor,g=v.update,x=v.buffer,C=v.size,T=C===void 0?0:C,O=xp[x.type||G.FLOAT];if(g){var k=this.featureLayout,j=k.elements,X=k.sizePerElement,te=j.slice(a,s);if(!te.length)return;var be=te[0].offset,Ne=be*T*O,$e=te.map(function(ot,bt){for(var _t=ot.featureIdx,qt=ot.vertices,ar=ot.normals,Pr=qt.length/X,qr=[],gr=0;gr1&&(v=s[1].trim()),n){case"bool":v=v==="true";break;case"float":case"int":v=Number(v);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":v?v=v.replace("[","").replace("]","").split(",").reduce(function(g,x){return g.push(Number(x.trim())),g},[]):v=new Array(Pv(n)).fill(0);break;default:}return i[f]=v,"uniform ".concat(n," ").concat(f,`; +`)}),{content:e,uniforms:i}}var ev,cd;function tv(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nf(e){for(var i=1;i spotCosCutoff) { +// spotEffect = pow(smoothstep(spotCosOuterCutoff, spotCosInnerCutoff, spotEffect), light.exponent); +// } else { +// spotEffect = 0.0; +// } + +// return ambient + attenuation * (spotEffect * diffuse + specular); +// } + +vec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) { + vec3 weight = vec3(0.0); + for (int i = 0; i < MAX_NUM_OF_DIRECTIONAL_LIGHTS; i++) { + if (i >= u_NumOfDirectionalLights) { + break; + } + weight += calc_directional_light(u_DirectionalLights[i], normal, viewDir); + } + // for (int i = 0; i < MAX_NUM_OF_SPOT_LIGHTS; i++) { + // if (i >= u_NumOfSpotLights) { + // break; + // } + // weight += calc_spot_light(u_SpotLights[i], normal, position, viewDir); + // } + return weight; +} +`,S0=`varying vec4 v_PickingResult; +uniform vec4 u_HighlightColor : [0, 0, 0, 0]; +uniform vec4 u_SelectColor : [0, 0, 0, 0]; +uniform float u_PickingStage : 0.0; +uniform float u_shaderPick; + +uniform float u_activeMix: 0; + +#define PICKING_NONE 0.0 +#define PICKING_ENCODE 1.0 +#define PICKING_HIGHLIGHT 2.0 +#define COLOR_SCALE 1. / 255. + +#define HIGHLIGHT 1.0 +#define SELECT 2.0 + +/* + * Returns highlight color if this item is selected. + */ +vec4 filterHighlightColor(vec4 color, float weight) { + // float selected = v_PickingResult.a; + bool selected = bool(v_PickingResult.a); + + // if (selected == SELECT) { + if (selected) { + // // \u70B9\u51FB\u9009\u4E2D\u72B6\u6001 + // vec4 selectColor = u_SelectColor * COLOR_SCALE; + // return selectColor; + // } else if (selected == HIGHLIGHT) { + // // hover \u9AD8\u4EAE\u72B6\u6001 + vec4 highLightColor = u_HighlightColor * COLOR_SCALE; + + float highLightAlpha = highLightColor.a; + float highLightRatio = highLightAlpha / (highLightAlpha + color.a * (1.0 - highLightAlpha)); + + vec3 resultRGB = mix(color.rgb, highLightColor.rgb, highLightRatio); + return vec4(mix(resultRGB * weight, color.rgb, u_activeMix), color.a); + } else { + return color; + } +} + +/* + * Returns picking color if picking enabled else unmodified argument. + */ +vec4 filterPickingColor(vec4 color) { + vec3 pickingColor = v_PickingResult.rgb; + if (u_PickingStage == PICKING_ENCODE && length(pickingColor) < 0.001) { + discard; + } + return u_PickingStage == PICKING_ENCODE ? vec4(pickingColor, step(0.001,color.a)): color; +} + +/* + * Returns picking color if picking is enabled if not + * highlight color if this item is selected, otherwise unmodified argument. + */ +vec4 filterColor(vec4 color) { + // TODO: \u8FC7\u6EE4\u591A\u4F59\u7684 shader \u8BA1\u7B97 + // return color; + if(u_shaderPick < 0.5) { + return color; // \u6682\u65F6\u53BB\u9664 \u76F4\u63A5\u53D6\u6D88\u8BA1\u7B97\u5728\u9009\u4E2D\u65F6\u62D6\u62FD\u5730\u56FE\u4F1A\u6709\u95EE\u9898 + } else { + return filterPickingColor(filterHighlightColor(color, 1.0)); + } + +} + +vec4 filterColorAlpha(vec4 color, float alpha) { + // TODO: \u8FC7\u6EE4\u591A\u4F59\u7684 shader \u8BA1\u7B97 + // return color; + if(u_shaderPick < 0.5) { + return color; // \u6682\u65F6\u53BB\u9664 \u76F4\u63A5\u53D6\u6D88\u8BA1\u7B97\u5728\u9009\u4E2D\u65F6\u62D6\u62FD\u5730\u56FE\u4F1A\u6709\u95EE\u9898 + } else { + return filterPickingColor(filterHighlightColor(color, alpha)); + } +} + +`,C0=`attribute vec3 a_PickingColor; +varying vec4 v_PickingResult; + +uniform vec3 u_PickingColor : [0, 0, 0]; +uniform vec3 u_CurrentSelectedId : [0, 0, 0]; +uniform vec4 u_HighlightColor : [0, 0, 0, 0]; +uniform vec4 u_SelectColor : [0, 0, 0, 0]; +uniform float u_PickingStage : 0.0; +uniform float u_PickingThreshold : 1.0; +uniform float u_PickingBuffer: 0.0; +uniform float u_shaderPick; +uniform float u_EnableSelect: 0.0; + +#define PICKING_NONE 0.0 +#define PICKING_ENCODE 1.0 +#define PICKING_HIGHLIGHT 2.0 +#define COLOR_SCALE 1. / 255. + +#define NORMAL 0.0 +#define HIGHLIGHT 1.0 +#define SELECT 2.0 + +bool isVertexPicked(vec3 vertexColor) { + return + abs(vertexColor.r - u_PickingColor.r) < u_PickingThreshold && + abs(vertexColor.g - u_PickingColor.g) < u_PickingThreshold && + abs(vertexColor.b - u_PickingColor.b) < u_PickingThreshold; +} + +// \u5224\u65AD\u5F53\u524D\u70B9\u662F\u5426\u5DF2\u7ECF\u88AB select \u9009\u4E2D +bool isVertexSelected(vec3 vertexColor) { + return + abs(vertexColor.r - u_CurrentSelectedId.r) < u_PickingThreshold && + abs(vertexColor.g - u_CurrentSelectedId.g) < u_PickingThreshold && + abs(vertexColor.b - u_CurrentSelectedId.b) < u_PickingThreshold; +} + +void setPickingColor(vec3 pickingColor) { + if(u_shaderPick < 0.5) { + return; + } + // compares only in highlight stage + + v_PickingResult.a = float((u_PickingStage == PICKING_HIGHLIGHT) && isVertexPicked(pickingColor)); + + // if (u_EnableSelect == 1.0 && u_PickingStage == PICKING_HIGHLIGHT && isVertexSelected(pickingColor)) { + // // \u9009\u4E2D\u6001 + // v_PickingResult.a = SELECT; + // } else if (u_PickingStage == PICKING_HIGHLIGHT && isVertexPicked(pickingColor)) { + // // \u9AD8\u4EAE\u6001 + // v_PickingResult.a = HIGHLIGHT; + // } else { + // v_PickingResult.a = NORMAL; + // } + + // Stores the picking color so that the fragment shader can render it during picking + v_PickingResult.rgb = pickingColor * COLOR_SCALE; +} + +float setPickingSize(float x) { + return u_PickingStage == PICKING_ENCODE ? x + u_PickingBuffer : x; +} + +float setPickingOrder(float z) { + bool selected = bool(v_PickingResult.a); + return selected ? z + 1. : 0.; +} +`,A0=` +#define E 2.718281828459045 +vec2 ProjectFlat(vec2 lnglat){ + float maxs=85.0511287798; + float lat=max(min(maxs,lnglat.y),-maxs); + float scale= 268435456.; + float d=PI/180.; + float x=lnglat.x*d; + float y=lat*d; + y=log(tan((PI/4.)+(y/2.))); + + float a=.5/PI, + b=.5, + c=-.5/PI; + d=.5; + x=scale*(a*x+b); + y=scale*(c*y+d); + return vec2(x,y); +} + +vec2 unProjectFlat(vec2 px){ + float a=.5/PI; + float b=.5; + float c=-.5/PI; + float d=.5; + float scale = 268435456.; + float x=(px.x/scale-b)/a; + float y=(px.y/scale-d)/c; + y=(atan(pow(E,y))-(PI/4.))*2.; + d=PI/180.; + float lat=y/d; + float lng=x/d; + return vec2(lng,lat); +} + +float pixelDistance(vec2 from, vec2 to) { + vec2 a1 = ProjectFlat(from); + vec2 b1 = ProjectFlat(to); + return distance(a1, b1); +} + +// gaode2.0 +vec2 customProject(vec2 lnglat) { // \u7ECF\u7EAC\u5EA6 => \u5E73\u9762\u5750\u6807 + float t = lnglat.x; + float e = lnglat.y; + float Sm = 180.0 / PI; + float Tm = 6378137.0; + float Rm = PI / 180.0; + float r = 85.0511287798; + e = max(min(r, e), -r); + t *= Rm; + e *= Rm; + e = log(tan(PI / 4.0 + e / 2.0)); + return vec2(t * Tm, e * Tm); +} + +vec2 unProjCustomCoord(vec2 point) { // \u5E73\u9762\u5750\u6807 => \u7ECF\u7EAC\u5EA6 + float Sm = 57.29577951308232; //180 / Math.PI + float Tm = 6378137.0; + float t = point.x; + float e = point.y; + return vec2(t / Tm * Sm, (2.0 * atan(exp(e / Tm)) - PI / 2.0) * Sm); +} + + +float customPixelDistance(vec2 from, vec2 to) { + vec2 a1 = ProjectFlat(from); + vec2 b1 = ProjectFlat(to); + return distance(a1, b1); +}`,w0=`#define TILE_SIZE 512.0 +#define PI 3.1415926536 +#define WORLD_SCALE TILE_SIZE / (PI * 2.0) + +#define COORDINATE_SYSTEM_LNGLAT 1.0 // mapbox +#define COORDINATE_SYSTEM_LNGLAT_OFFSET 2.0 // mapbox offset +#define COORDINATE_SYSTEM_VECTOR_TILE 3.0 +#define COORDINATE_SYSTEM_IDENTITY 4.0 +#define COORDINATE_SYSTEM_P20 5.0 // amap +#define COORDINATE_SYSTEM_P20_OFFSET 6.0 // amap offset +#define COORDINATE_SYSTEM_METER_OFFSET 7.0 + +#define COORDINATE_SYSTEM_P20_2 8.0 // amap2.0 + +uniform mat4 u_ViewMatrix; +uniform mat4 u_ProjectionMatrix; +uniform mat4 u_ViewProjectionMatrix; +uniform float u_Zoom : 1; +uniform float u_ZoomScale : 1; + +uniform float u_CoordinateSystem; +uniform vec2 u_ViewportCenter; +uniform vec4 u_ViewportCenterProjection; +uniform vec3 u_PixelsPerDegree; +uniform vec3 u_PixelsPerDegree2; +uniform vec3 u_PixelsPerMeter; + +uniform vec2 u_ViewportSize; +uniform float u_DevicePixelRatio; +uniform float u_FocalDistance; +uniform vec3 u_CameraPosition; + +// uniform mat4 u_Mvp; + +// web mercator coords -> world coords +vec2 project_mercator(vec2 lnglat) { + float x = lnglat.x; + return vec2( + radians(x) + PI, + PI - log(tan(PI * 0.25 + radians(lnglat.y) * 0.5)) + ); +} + +float project_scale(float meters) { + return meters * u_PixelsPerMeter.z; +} + + +// offset coords -> world coords +vec4 project_offset(vec4 offset) { + float dy = offset.y; + dy = clamp(dy, -1., 1.); + vec3 pixels_per_unit = u_PixelsPerDegree + u_PixelsPerDegree2 * dy; + return vec4(offset.xyz * pixels_per_unit, offset.w); +} + +vec3 project_normal(vec3 normal) { + vec4 normal_modelspace = u_ModelMatrix * vec4(normal, 0.0); + return normalize(normal_modelspace.xyz * u_PixelsPerMeter); +} + +vec3 project_offset_normal(vec3 vector) { + if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01 + || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // normals generated by the polygon tesselator are in lnglat offsets instead of meters + return normalize(vector * u_PixelsPerDegree); + } + return project_normal(vector); +} +// || u_CoordinateSystem < COORDINATE_SYSTEM_P20_OFFSET + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_P20_OFFSET - 0.01 +// reverse Y +vec3 reverse_offset_normal(vec3 vector) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 ||u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET ) { + return vector * vec3(1.0, -1.0, 1.0); + } + + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.0 + return vector; + } + return vector; +} + +vec4 project_position(vec4 position) { + float a = COORDINATE_SYSTEM_LNGLAT_OFFSET; + float b = COORDINATE_SYSTEM_P20_OFFSET; + float c = COORDINATE_SYSTEM_LNGLAT; + if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET + || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + float X = position.x - u_ViewportCenter.x; + float Y = position.y - u_ViewportCenter.y; + return project_offset(vec4(X, Y, position.z, position.w)); + } + if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01) { + return vec4( + project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale, + project_scale(position.z), + position.w + ); + } + + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) { + return vec4( + (project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale - vec2(215440491., 106744817.)) * vec2(1., -1.), + project_scale(position.z), + position.w + ); + } + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // return vec4( + // (position.xy * WORLD_SCALE * u_ZoomScale) * vec2(1., -1.), + // project_scale(position.z), + // position.w); + + return vec4( + position.xy, + project_scale(position.z), + position.w); + } + return position; + + // TODO: \u74E6\u7247\u5750\u6807\u7CFB & \u5E38\u89C4\u4E16\u754C\u5750\u6807\u7CFB +} +vec2 project_pixel_size_to_clipspace(vec2 pixels) { + vec2 offset = pixels / u_ViewportSize * u_DevicePixelRatio * 2.0; + return offset * u_FocalDistance; +} + +float project_pixel_allmap(float pixel) { + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT) { + return pixel * pow(2.0, u_Zoom); + } + return pixel; +} + +// \u9002\u914D\u7EB9\u7406\u8D34\u56FE\u7684\u7B49\u50CF\u7D20\u5927\u5C0F +float project_pixel_texture(float pixel) { + // mapbox zoom > 12 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + return pixel * pow(0.5, u_Zoom); + } + + // amap2 zoom > 12 + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)); + } + + // amap zoom > 12 + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + return pixel * pow(0.5, u_Zoom); + } + + // amap zoom < 12 + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) { + return pixel * pow(2.0, (20.0 - u_Zoom)); + } + return pixel * 2.0; +} + +// \u5728\u4E0D\u8BBA\u4EC0\u4E48\u5E95\u56FE\u4E0B\u9700\u8981\u7EDF\u4E00\u5904\u7406\u7684\u65F6\u5019\u4F7F\u7528 +float project_float_pixel(float pixel) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // mapbox P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + return pixel * pow(2.0, (19.0 - u_Zoom)); + } + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // amap P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + return pixel * pow(2.0, (19.0 - u_Zoom)); + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // amap2 P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)); + } + return pixel; +} + +float project_pixel(float pixel) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // amap P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + return pixel * pow(2.0, (19.0 - u_Zoom)); + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // amap2 P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)); + } + return pixel; +} +vec2 project_pixel(vec2 pixel) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + return pixel * pow(2.0, (19.0 - u_Zoom)); + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)); + } + return pixel * -1.; +} +vec3 project_pixel(vec3 pixel) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + return pixel * pow(2.0, (19.0 - u_Zoom)); + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)); + } + return pixel * -1.; +} + +vec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET || + u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // Needs to be divided with project_uCommonUnitsPerMeter + position.w *= u_PixelsPerMeter.z; + } + + return viewProjectionMatrix * position + center; +} + +// Projects from common space coordinates to clip space +vec4 project_common_position_to_clipspace(vec4 position) { + return project_common_position_to_clipspace( + position, + u_ViewProjectionMatrix, + u_ViewportCenterProjection + ); +} + +vec4 unproject_clipspace_to_position(vec4 clipspacePos, mat4 u_InverseViewProjectionMatrix) { + vec4 pos = u_InverseViewProjectionMatrix * (clipspacePos - u_ViewportCenterProjection); + + if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET || + u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // Needs to be divided with project_uCommonUnitsPerMeter + pos.w = pos.w / u_PixelsPerMeter.z; + } + return pos; +} + + +bool isEqual( float a, float b) { + return a< b + 0.001 && a > b - 0.001; +}`,T0=`/** + * 2D signed distance field functions + * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm + */ + +float ndot(vec2 a, vec2 b ) { return a.x*b.x - a.y*b.y; } + +float sdCircle(vec2 p, float r) { + return length(p) - r; +} + +float sdEquilateralTriangle(vec2 p) { + float k = sqrt(3.0); + p.x = abs(p.x) - 1.0; + p.y = p.y + 1.0/k; + if( p.x + k*p.y > 0.0 ) p = vec2(p.x-k*p.y,-k*p.x-p.y)/2.0; + p.x -= clamp( p.x, -2.0, 0.0 ); + return -length(p)*sign(p.y); +} + +float sdBox(vec2 p, vec2 b) { + vec2 d = abs(p)-b; + return length(max(d,vec2(0))) + min(max(d.x,d.y),0.0); +} + +float sdPentagon(vec2 p, float r) { + vec3 k = vec3(0.809016994,0.587785252,0.726542528); + p.x = abs(p.x); + p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y); + p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y); + p -= vec2(clamp(p.x,-r*k.z,r*k.z),r); + return length(p)*sign(p.y); +} + +float sdHexagon(vec2 p, float r) { + vec3 k = vec3(-0.866025404,0.5,0.577350269); + p = abs(p); + p -= 2.0*min(dot(k.xy,p),0.0)*k.xy; + p -= vec2(clamp(p.x, -k.z*r, k.z*r), r); + return length(p)*sign(p.y); +} + +float sdOctogon(vec2 p, float r) { + vec3 k = vec3(-0.9238795325, 0.3826834323, 0.4142135623 ); + p = abs(p); + p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y); + p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y); + p -= vec2(clamp(p.x, -k.z*r, k.z*r), r); + return length(p)*sign(p.y); +} + +float sdHexagram(vec2 p, float r) { + vec4 k=vec4(-0.5,0.8660254038,0.5773502692,1.7320508076); + p = abs(p); + p -= 2.0*min(dot(k.xy,p),0.0)*k.xy; + p -= 2.0*min(dot(k.yx,p),0.0)*k.yx; + p -= vec2(clamp(p.x,r*k.z,r*k.w),r); + return length(p)*sign(p.y); +} + +float sdRhombus(vec2 p, vec2 b) { + vec2 q = abs(p); + float h = clamp((-2.0*ndot(q,b)+ndot(b,b))/dot(b,b),-1.0,1.0); + float d = length( q - 0.5*b*vec2(1.0-h,1.0+h) ); + return d * sign( q.x*b.y + q.y*b.x - b.x*b.y ); +} + +float sdVesica(vec2 p, float r, float d) { + p = abs(p); + float b = sqrt(r*r-d*d); // can delay this sqrt + return ((p.y-b)*d>p.x*b) + ? length(p-vec2(0.0,b)) + : length(p-vec2(-d,0.0))-r; +} +`,M0=`attribute float a_vertexId; + +uniform mat4 u_cellTypeLayout; // \u63CF\u8FF0\u6570\u636E\u7EB9\u7406 cell \u7ED3\u6784\u7684\u77E9\u9635 +uniform sampler2D u_dataTexture; // \u6570\u636E\u7EB9\u7406 + +bool hasOpacity() { // \u5224\u65AD cell \u4E2D\u662F\u5426\u5B58\u5728 opacity \u7684\u6570\u636E + return u_cellTypeLayout[1][0] > 0.0 && u_cellTypeLayout[3][3] > 0.0; +} + +bool hasStrokeOpacity() { // \u5224\u65AD cell \u4E2D\u662F\u5426\u5B58\u5728 strokeOpacity \u7684\u6570\u636E + return u_cellTypeLayout[1][1] > 0.0 && u_cellTypeLayout[3][3] > 0.0; +} + +bool hasStrokeWidth() { // \u5224\u65AD cell \u4E2D\u662F\u5426\u5B58\u5728 strokeWidth \u7684\u6570\u636E + return u_cellTypeLayout[1][2] > 0.0 && u_cellTypeLayout[3][3] > 0.0; +} + +bool hasStroke() { // \u5224\u65AD cell \u4E2D\u662F\u5426\u5B58\u5728 stroke \u7684\u6570\u636E + return u_cellTypeLayout[1][3] > 0.0 && u_cellTypeLayout[3][3] > 0.0; +} + +bool hasOffsets() { // \u5224\u65AD cell \u4E2D\u662F\u5426\u5B58\u5728 offsets \u7684\u6570\u636E + return u_cellTypeLayout[2][0] > 0.0 && u_cellTypeLayout[3][3] > 0.0; +} + +bool hasThetaOffset() { // \u5224\u65AD cell \u4E2D\u662F\u5426\u5B58\u5728 thetaOffset \u7684\u6570\u636E + return u_cellTypeLayout[2][1] > 0.0 && u_cellTypeLayout[3][3] > 0.0; +} + +// \u6839\u636E\u5750\u6807\u4F4D\u7F6E\u5148\u662F\u8BA1\u7B97 uv \uFF0C\u7136\u540E\u6839\u636E uv \u4ECE\u6570\u636E\u7EB9\u7406\u4E2D\u53D6\u503C +float pos2value(vec2 pos, float columnWidth, float rowHeight) { + float u = (pos.r - 1.0) * columnWidth + columnWidth/2.0; + float v = 1.0 - ((pos.g - 1.0) * rowHeight + rowHeight/2.0); + return texture2D(u_dataTexture, vec2(u, v)).r; +} + +/* + currentRow \u5F53\u524D\u884C + currentColumn \u5F53\u524D\u5217 + columnCount \u6709\u591A\u5C11\u5217 + nextStep \u9700\u8981\u8BA1\u7B97\u5F53\u524D cell \u540E\u7684\u7B2C\u51E0\u4E2A cell \uFF08\u5F53\u524D cell \u5219 nextStep = 0\uFF09 +*/ +vec2 nextPos(float currentRow, float currentColumn, float columnCount, float nextStep) { + float nextColumn = currentColumn; + float nextRow = currentRow; + if(currentColumn + nextStep <= columnCount){ + nextColumn = currentColumn + nextStep; + } else { + nextColumn = mod(currentColumn + nextStep, columnCount); // \u4E0D\u4F1A\u51FA\u73B0\u8DE8\u4E24\u884C + nextRow = currentRow + 1.0; + } + return vec2(nextColumn, nextRow); +} + +// \u8BA1\u7B97\u5F53\u524D\u5355\u4E2A cell \u7684\u5927\u5C0F +float calCellCount() { + // u_cellTypeLayout + // cal_height, WIDTH, 0.0, 0.0, // rowCount columnCount - \u51E0\u884C\u51E0\u5217 + // 1.0, 1.0, 1.0, 0.0, // opacity strokeOpacity strokeWidth stroke - 1.0 \u8868\u793A\u6709\u6570\u636E\u6620\u5C04\u30010.0 \u8868\u793A\u6CA1\u6709 + // 1.0, 1.0, 0.0, 0.0, // offsets thetaOffset + // 0.0, 0.0, 0.0, 0.0 + + return u_cellTypeLayout[1][0] + // opacity + u_cellTypeLayout[1][1] + // strokeOpacity + u_cellTypeLayout[1][2] + // strokeWidth + u_cellTypeLayout[1][3] * 4.0 + // stroke + u_cellTypeLayout[2][0] * 2.0 + // offsets + u_cellTypeLayout[2][1]; // thetaOffset +}`,P0=` +// \u8BA1\u7B97 opacity \u548C\u6807\u793A\u5728 cell \u4E2D\u53D6\u503C\u4F4D\u7F6E\u7684\u504F\u79FB\u91CF textureOffset +vec2 calOpacityAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) { + if(!hasOpacity()) { // \u6570\u636E\u7EB9\u7406\u4E2D\u4E0D\u5B58\u5728 opacity \u7684\u65F6\u5019\u53D6\u9ED8\u8BA4\u503C\uFF08\u7528\u6237\u5728 style \u4E2D\u4F20\u5165\u7684\u662F\u5E38\u91CF\uFF09 + return vec2(u_opacity, textureOffset); + } else { + vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + float textureOpacity = pos2value(valuePos, columnWidth, rowHeight); + return vec2(textureOpacity, textureOffset + 1.0); + } +} +`,I0=` +// \u8BA1\u7B97 strokeOpaicty \u548C\u6807\u793A\u5728 cell \u4E2D\u53D6\u503C\u4F4D\u7F6E\u7684\u504F\u79FB\u91CF textureOffset +vec2 calStrokeOpacityAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) { + if(!hasStrokeOpacity()) { + return vec2(u_stroke_opacity, textureOffset); + } else { + vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + float textureStrokeOpacity = pos2value(valuePos, columnWidth, rowHeight); + return vec2(textureStrokeOpacity, textureOffset + 1.0); + } +} +`,Ac=` +// \u8BA1\u7B97 strokeWidth \u548C\u6807\u793A\u5728 cell \u4E2D\u53D6\u503C\u4F4D\u7F6E\u7684\u504F\u79FB\u91CF textureOffset +vec2 calStrokeWidthAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) { + if(!hasStrokeWidth()) { + return vec2(u_stroke_width, textureOffset); + } else { + vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + float textureStrokeWidth = pos2value(valuePos, columnWidth, rowHeight); + return vec2(textureStrokeWidth, textureOffset + 1.0); + } +} +`,hd=` +// \u8BA1\u7B97 thetaOffset \u548C\u6807\u793A\u5728 cell \u4E2D\u53D6\u503C\u4F4D\u7F6E\u7684\u504F\u79FB\u91CF textureOffset +vec2 calThetaOffsetAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) { + if(!hasThetaOffset()) { // \u6570\u636E\u7EB9\u7406\u4E2D\u4E0D\u5B58\u5728 thetaOffset \u7684\u65F6\u5019\u53D6\u9ED8\u8BA4\u503C\uFF08\u7528\u6237\u5728 style \u4E2D\u4F20\u5165\u7684\u662F\u5E38\u91CF\uFF09 + return vec2(u_thetaOffset, textureOffset); + } else { + vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + float textureThetaOffset = pos2value(valuePos, columnWidth, rowHeight); + return vec2(textureThetaOffset, textureOffset + 1.0); + } +} +`,Ov=/precision\s+(high|low|medium)p\s+float/,wp=`#ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + #else + precision mediump float; +#endif +`,Rv=/#pragma include (["^+"]?["\ "[a-zA-Z_0-9](.*)"]*?)/g,pb=(ev=(0,Wr.b2)(),ev(cd=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"moduleCache",{}),(0,A.Z)(this,"rawContentCache",{})}return(0,Pt.Z)(e,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:rv,fs:rv}),this.registerModule("decode",{vs:fd,fs:""}),this.registerModule("projection",{vs:w0,fs:""}),this.registerModule("project",{vs:A0,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:T0}),this.registerModule("lighting",{vs:Iv,fs:""}),this.registerModule("light",{vs:E0,fs:""}),this.registerModule("picking",{vs:C0,fs:S0}),this.registerModule("styleMapping",{vs:M0,fs:""}),this.registerModule("styleMappingCalThetaOffset",{vs:hd,fs:""}),this.registerModule("styleMappingCalOpacity",{vs:P0,fs:""}),this.registerModule("styleMappingCalStrokeOpacity",{vs:I0,fs:""}),this.registerModule("styleMappingCalStrokeWidth",{vs:Ac,fs:""})}},{key:"registerModule",value:function(r,n){if(!this.rawContentCache[r]){var a=n.vs,s=n.fs,f=n.uniforms,v=Jd(a),g=v.content,x=v.uniforms,C=Jd(s),T=C.content,O=C.uniforms;this.rawContentCache[r]={fs:T,uniforms:nf(nf(nf({},x),O),f),vs:g}}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(r){var n=this;if(this.moduleCache[r])return this.moduleCache[r];var a=this.rawContentCache[r].vs,s=this.rawContentCache[r].fs,f=this.processModule(a,[],"vs"),v=f.content,g=f.includeList,x=this.processModule(s,[],"fs"),C=x.content,T=x.includeList,O=C,k=ld()(g.concat(T).concat(r)).reduce(function(j,X){return nf(nf({},j),n.rawContentCache[X].uniforms)},{});return Ov.test(C)||(O=wp+C),this.moduleCache[r]={fs:O.trim(),uniforms:k,vs:v.trim()},this.moduleCache[r]}},{key:"processModule",value:function(r,n,a){var s=this,f=r.replace(Rv,function(v,g){var x=g.split(" "),C=x[0].replace(/"/g,"");if(n.indexOf(C)>-1)return"";var T=s.rawContentCache[C][a];n.push(C);var O=s.processModule(T,n,a),k=O.content;return k});return{content:f,includeList:n}}}]),e}())||cd),Lv=U(66213),Hh;(function(e){e.Normal="normal",e.PostProcessing="post-processing"})(Hh||(Hh={}));var xm,bm,kv=(xm=(0,Wr.b2)(),xm(bm=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"shaderModuleService",void 0),(0,A.Z)(this,"rendererService",void 0),(0,A.Z)(this,"cameraService",void 0),(0,A.Z)(this,"mapService",void 0),(0,A.Z)(this,"interactionService",void 0),(0,A.Z)(this,"layerService",void 0),(0,A.Z)(this,"config",void 0)}return(0,Pt.Z)(e,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return Hh.Normal}},{key:"init",value:function(r,n){this.config=n,this.rendererService=r.getContainer().get(Ht.IRendererService),this.cameraService=r.getContainer().get(Ht.ICameraService),this.mapService=r.getContainer().get(Ht.IMapService),this.interactionService=r.getContainer().get(Ht.IInteractionService),this.layerService=r.getContainer().get(Ht.ILayerService),this.shaderModuleService=r.getContainer().get(Ht.IShaderModuleService)}},{key:"render",value:function(r){}}]),e}())||bm),Em,Sm;function db(e){var i=vb();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function vb(){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}}var mb=(Em=(0,Wr.b2)(),Em(Sm=function(e){(0,Ir.Z)(r,e);var i=db(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(a,s){(0,Lv.Z)((0,Mt.Z)(r.prototype),"init",this).call(this,a,s)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),r}(kv))||Sm),Cm,Am,wm,O0,Tm;function gb(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=yb(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function yb(e,i){if(!!e){if(typeof e=="string")return Mm(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mm(e,i)}}function Mm(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);rbe||_t<0||qt>Ne||qt<0)){var ar;X(n.pickingFBO,function(){var Pr;if(ar=j({x:Math.round(_t),y:Math.round(Ne-(x+1)*na),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:n.pickingFBO}),ar[0]!==0||ar[1]!==0||ar[2]!==0){var qr=ol(ar),gr=n.layer.getSource().getFeatureById(qr),un={x:g,y:x,type:T,lngLat:C,featureId:qr,feature:gr};gr&&(n.layer.setCurrentPickId(qr),n.triggerHoverOnLayer(un))}else{var Ln={x:g,y:x,lngLat:C,type:n.layer.getCurrentPickId()===null?"un"+T:"mouseout",featureId:null,feature:null};n.triggerHoverOnLayer(Rm(Rm({},Ln),{},{type:"unpick"})),n.triggerHoverOnLayer(Ln),n.layer.setCurrentPickId(null)}ot&&n.highlightPickedFeature(ar),bt&&T==="click"&&((Pr=ar)===null||Pr===void 0?void 0:Pr.toString())!==[0,0,0,0].toString()&&n.selectFeature(ar)})}}}),n}return(0,Pt.Z)(r,[{key:"getType",value:function(){return Hh.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(a,s){(0,Lv.Z)((0,Mt.Z)(r.prototype),"init",this).call(this,a,s),this.layer=a;var f=this.rendererService,v=f.createTexture2D,g=f.createFramebuffer,x=f.getViewportSize,C=x(),T=C.width,O=C.height;this.pickingFBO=g({color:v({width:T,height:O,wrapS:G.CLAMP_TO_EDGE,wrapT:G.CLAMP_TO_EDGE})}),this.interactionService.on(ma.Hover,this.pickFromPickingFBO),this.interactionService.on(ma.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(ma.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(a){var s=this;if(!this.alreadyInRendering){var f=this.rendererService,v=f.getViewportSize,g=f.useFramebuffer,x=f.clear,C=v(),T=C.width,O=C.height;this.alreadyInRendering=!0,(this.width!==T||this.height!==O)&&(this.pickingFBO.resize({width:T,height:O}),this.width=T,this.height=O),g(this.pickingFBO,function(){x({framebuffer:s.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var k=s.layer.multiPassRenderer.getRenderFlag();s.layer.multiPassRenderer.setRenderFlag(!1),a.hooks.beforePickingEncode.call(),a.render(),a.hooks.afterPickingEncode.call(),s.layer.multiPassRenderer.setRenderFlag(k),s.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(a){this.layer.emit(a.type,a)}},{key:"highlightPickedFeature",value:function(a){var s=(0,on.Z)(a,3),f=s[0],v=s[1],g=s[2];this.layer.hooks.beforeHighlight.call([f,v,g]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(a){var s=(0,on.Z)(a,3),f=s[0],v=s[1],g=s[2];this.layer.hooks.beforeSelect.call([f,v,g]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(a){var s=a.featureId,f=hu(s);this.selectFeature(new Uint8Array(f))}},{key:"highlightFeatureHandle",value:function(a){var s=a.featureId,f=hu(s);this.highlightPickedFeature(new Uint8Array(f))}}]),r}(kv))||Im),Sb=U(11700),Cb=U.n(Sb),Ab=U(68929),wb=U.n(Ab),Lm,km,Dm,R0,Fm;function Bm(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nv(e){for(var i=1;i 0.0) { + vec4 baseColor = texture2D(u_Texture2, v_UV); + float baselum = luminance(baseColor); + gl_FragColor = mix(inbloomColor, baseColor, u_baseRadio); + if(baselum <= 0.2) { + gl_FragColor = inbloomColor * u_intensity; + } + } else { + gl_FragColor = inbloomColor; + } +}`,Ob=`attribute vec2 a_Position; + +varying vec2 v_UV; + +void main() { + v_UV = 0.5 * (a_Position + 1.0); + gl_Position = vec4(a_Position, 0., 1.); +}`,Rb=(Nm=(0,Wr.b2)(),Nm(zm=function(e){(0,Ir.Z)(r,e);var i=Mb(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:Ob,fs:Ib});var a=this.shaderModuleService.getModule("blur-pass"),s=a.vs,f=a.fs,v=a.uniforms,g=this.rendererService.getViewportSize(),x=g.width,C=g.height;return{vs:s,fs:f,uniforms:Zm(Zm({},v),{},{u_ViewportSize:[x,C]})}}},{key:"convertOptionsToUniforms",value:function(a){var s={};return $u()(a.bloomRadius)||(s.u_radius=a.bloomRadius),$u()(a.bloomIntensity)||(s.u_intensity=a.bloomIntensity),$u()(a.bloomBaseRadio)||(s.u_baseRadio=a.bloomBaseRadio),s}}]),r}(gh))||zm),jm,Vm;function Gm(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Hm(e){for(var i=1;i0;)r=r+n*(a%i),a=Math.floor(a/i),n=n/i;return r}var T2=1,M2=(bg=(0,Wr.b2)(),Eg=(0,Wr.f3)(Ht.IShaderModuleService),bg(Sg=(L0=function(e){(0,Ir.Z)(r,e);var i=S2(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f=1&&(x(this.copyRenderTarget,function(){s.outputModel.draw({uniforms:{u_Texture:s.outputRenderTarget}})}),x(a.multiPassRenderer.getPostProcessor().getReadFBO(),function(){s.copyModel.draw({uniforms:{u_Texture:s.copyRenderTarget}})}),a.multiPassRenderer.getPostProcessor().render(a));var Ne=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=Ne,this.frame++,this.cameraService.clearJitterProjectionMatrix()}},{key:"isFinished",value:function(){return this.frame>=this.haltonSequence.length}},{key:"resetFrame",value:function(){this.frame=0}},{key:"stopAccumulating",value:function(){this.accumulatingId=0,kn.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(a,s,f){this.shaderModuleService.registerModule(a,{vs:w2,fs:s});var v=this.shaderModuleService.getModule(a),g=v.vs,x=v.fs,C=v.uniforms,T=this.rendererService,O=T.createAttribute,k=T.createBuffer,j=T.createModel;return j(wg({vs:g,fs:x,attributes:{a_Position:O({buffer:k({data:[-4,-4,4,-4,0,4],type:G.FLOAT}),size:2})},uniforms:wg({},C),depth:{enable:!1},count:3},f))}}]),r}(kv),Cg=jn(L0.prototype,"shaderModuleService",[Eg],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L0))||Sg),iv=new Wr.W2;iv.bind(Ht.IGlobalConfigService).to(oh).inSingletonScope(),(0,Wr.GW)((0,Wr.b2)(),Mn.EventEmitter),iv.bind(Ht.IEventEmitter).to(Mn.EventEmitter);var Pg=(0,op.Z)(iv,!1),k0=function(i){var r=Pg.lazyInject(i);return function(n,a,s){r.call(this,n,a),s&&(s.initializer=function(){return n[a]})}},TP=function(i){var r=Pg.lazyMultiInject(i);return function(n,a,s){r.call(this,n,a),s&&(s.initializer=function(){return n[a]})}},Ql=iv,P2=0;function I2(){var e=new Wr.W2;return e.parent=iv,e.bind(Ht.SceneID).toConstantValue("".concat(P2++)),e.bind(Ht.IShaderModuleService).to(pb).inSingletonScope(),e.bind(Ht.ILayerService).to(yp).inSingletonScope(),e.bind(Ht.ISceneService).to(Mv).inSingletonScope(),e.bind(Ht.ICameraService).to(Ct).inSingletonScope(),e.bind(Ht.ICoordinateSystemService).to(ao).inSingletonScope(),e.bind(Ht.IInteractionService).to(ia).inSingletonScope(),e.bind(Ht.IPickingService).to(pp).inSingletonScope(),e.bind(Ht.IControlService).to(An).inSingletonScope(),e.bind(Ht.IMarkerService).to(bn).inSingletonScope(),e.bind(Ht.IIconService).to(cr).inSingletonScope(),e.bind(Ht.IFontService).to(Rr).inSingletonScope(),e.bind(Ht.IPopupService).to(_a).inSingletonScope(),e.bind(Ht.INormalPass).to(mb).whenTargetNamed("clear"),e.bind(Ht.INormalPass).to(Eb).whenTargetNamed("pixelPicking"),e.bind(Ht.INormalPass).to(E2).whenTargetNamed("render"),e.bind(Ht.INormalPass).to(M2).whenTargetNamed("taa"),e.bind(Ht.IFactoryNormalPass).toFactory(function(i){return function(r){return i.container.getNamed(Ht.INormalPass,r)}}),e.bind(Ht.IPostProcessingPass).to(Qb).whenTargetNamed("copy"),e.bind(Ht.IPostProcessingPass).to(Rb).whenTargetNamed("bloom"),e.bind(Ht.IPostProcessingPass).to(Bb).whenTargetNamed("blurH"),e.bind(Ht.IPostProcessingPass).to(jb).whenTargetNamed("blurV"),e.bind(Ht.IPostProcessingPass).to(p2).whenTargetNamed("noise"),e.bind(Ht.IPostProcessingPass).to(y2).whenTargetNamed("sepia"),e.bind(Ht.IPostProcessingPass).to(Xb).whenTargetNamed("colorHalftone"),e.bind(Ht.IPostProcessingPass).to(n2).whenTargetNamed("hexagonalPixelate"),e.bind(Ht.IPostProcessingPass).to(u2).whenTargetNamed("ink"),e.bind(Ht.IFactoryPostProcessingPass).toFactory(function(i){return function(r){var n=i.container.getNamed(Ht.IPostProcessingPass,r);return n.setName(r),n}}),e}function av(e){var i=new Wr.W2;return i.parent=e,i.bind(Ht.IStyleAttributeService).to(No).inSingletonScope(),i.bind(Ht.IMultiPassRenderer).to(_b).inSingletonScope(),i.bind(Ht.IPostProcessor).to(_2).inSingletonScope(),i}var MP=U(74691),O2=null;function PP(e){return O2.indexOf(e)}var R2=2,IP=4,L2=64,OP=128,k2=256,D2=512,RP=8192,LP=16384,kP=32768,F2=null,Ig=131072,DP=262144,B2=524288,FP=1048576,N2=2097152,BP=4194304,z2=8388608,U2=16777216,Z2=null;function Dv(e,i){return e=_clamp(Math.floor(e),0,255),i=_clamp(Math.floor(i),0,255),256*e+i}function NP(e){var i=e.color,r=e.radius,n=e.tileX,a=e.tileY,s=e.shape,f=e.opacity,v=e.stroke,g=e.strokeWidth,x=e.strokeOpacity,C=[],T=[],O=[],k=[Dv(i[0],i[1]),Dv(i[2],i[3])],j=[Dv(v[0],v[1]),Dv(v[2],v[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(X){var te=_slicedToArray(X,2),be=te[0],Ne=te[1];C.push([].concat(k,[(be+1)*z2+(Ne+1)*N2+getShapeIndex(s)*Ig+r,(n+512)*B2+(a+512)*L2])),T.push([].concat(j,[g,x])),O.push([f,0,0,0])}),{packedBuffer:C,packedBuffer2:T,packedBuffer3:O}}function zP(e,i){if(e===0&&!i)return 0;if(e===1&&i)return 4294967295;var r=i?1:0,n=Math.floor(e*127);return n*Z2+r*U2+n*Ig+r*F2+n*D2+r*k2+n*R2+r}var wc;(function(e){e.normal="normal",e.additive="additive",e.subtractive="subtractive",e.min="min",e.max="max",e.none="none"})(wc||(wc={}));var Oo;(function(e){e.LINEAR="linear",e.SEQUENTIAL="sequential",e.POWER="power",e.LOG="log",e.IDENTITY="identity",e.TIME="time",e.QUANTILE="quantile",e.QUANTIZE="quantize",e.THRESHOLD="threshold",e.CAT="cat",e.DIVERGING="diverging"})(Oo||(Oo={}));var Wh;(function(e){e.CONSTANT="constant",e.VARIABLE="variable"})(Wh||(Wh={}));var On;(function(e){e[e.Attribute=0]="Attribute",e[e.InstancedAttribute=1]="InstancedAttribute",e[e.Uniform=2]="Uniform"})(On||(On={}));var j2=["mapload","mapchange","mapAfterFrameChange"],Tp={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},D0=["loaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],Xh;(function(e){e.TOPRIGHT="topright",e.TOPLEFT="topleft",e.BOTTOMRIGHT="bottomright",e.BOTTOMLEFT="bottomleft",e.TOPCENTER="topcenter",e.BOTTOMCENTER="bottomcenter",e.LEFTCENTER="leftcenter",e.RIGHTCENTER="rightcenter"})(Xh||(Xh={}));function Og(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Rg(e){for(var i=1;i0&&arguments[0]!==void 0?arguments[0]:Xh.BOTTOMRIGHT,s=this.controlService;return s&&s.removeControl(this),this.controlOption.position=a,s&&s.addControl(this,this.sceneContainer),this}},{key:"addTo",value:function(a){this.mapsService=a.get(Ht.IMapService),this.renderService=a.get(Ht.IRendererService),this.layerService=a.get(Ht.ILayerService),this.controlService=a.get(Ht.IControlService),this.sceneContainer=a,this.isShow=!0,this.container=this.onAdd();var s=this.container,f=this.controlOption.position,v=this.controlService.controlCorners[f];return Su(s,"l7-control"),f.indexOf("bottom")!==-1?v.insertBefore(s,v.firstChild):v.appendChild(s),this}},{key:"onAdd",value:function(){throw new Error("Method not implemented.")}},{key:"onRemove",value:function(){throw new Error("Method not implemented.")}},{key:"hide",value:function(){var a=this.container;Su(a,"l7-control-hide"),this.isShow=!1}},{key:"show",value:function(){var a=this.container;tu(a,"l7-control-hide"),this.isShow=!0}},{key:"remove",value:function(){if(!this.mapsService)return this;ju(this.container),this.onRemove()}},{key:"_refocusOnMap",value:function(a){if(this.mapsService&&a&&a.screenX>0&&a.screenY>0){var s=this.mapsService.getContainer();s!==null&&s.focus()}}}]),r}(Mn.EventEmitter);function W2(e){var i=X2();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function X2(){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}}var UP=function(e){(0,Ir.Z)(r,e);var i=W2(r);function r(n){var a;return(0,ht.Z)(this,r),a=i.call(this,n),(0,A.Z)((0,ne.Z)(a),"layerControlInputs",void 0),(0,A.Z)((0,ne.Z)(a),"layers",void 0),(0,A.Z)((0,ne.Z)(a),"lastZIndex",void 0),(0,A.Z)((0,ne.Z)(a),"handlingClick",void 0),(0,A.Z)((0,ne.Z)(a),"layersLink",void 0),(0,A.Z)((0,ne.Z)(a),"baseLayersList",void 0),(0,A.Z)((0,ne.Z)(a),"separator",void 0),(0,A.Z)((0,ne.Z)(a),"overlaysList",void 0),(0,A.Z)((0,ne.Z)(a),"form",void 0),a.layerControlInputs=[],a.layers=[],a.lastZIndex=0,a.handlingClick=!1,a.initLayers(),Iu(["checkDisabledLayers","onLayerChange","collapse","extend","expand","onInputClick"],(0,ne.Z)(a)),a}return(0,Pt.Z)(r,[{key:"getDefault",value:function(){return{collapsed:!0,position:Xh.TOPRIGHT,autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,name:"layers"}}},{key:"onAdd",value:function(){var a=this;return this.initLayout(),this.update(),this.mapsService.on("zoomend",this.checkDisabledLayers),this.layers.forEach(function(s){s.layer.on("remove",a.onLayerChange),s.layer.on("add",a.onLayerChange)}),this.container}},{key:"addVisualLayer",value:function(a,s){return this.addLayer(a,s,!0),this.mapsService?this.update():this}},{key:"expand",value:function(){var a=this.renderService.getViewportSize(),s=a.height;Su(this.container,"l7-control-layers-expanded"),this.form.style.height="null";var f=s-(this.container.offsetTop+50);return f1,this.baseLayersList.style.display=a?"":"none"),this.separator.style.display=s&&a?"":"none",this}},{key:"checkDisabledLayers",value:function(){for(var a=this.layerControlInputs,s,f,v=this.mapsService.getZoom(),g=a.length-1;g>=0;g--)if(s=a[g],f=this.layerService.getLayer(s.layerId),f&&f.inited){var x=f.getMinZoom(),C=f.getMaxZoom();s.disabled=vC}}},{key:"addLayer",value:function(a,s,f){this.mapsService&&(a.on("add",this.onLayerChange),a.on("remove",this.onLayerChange)),this.layers.push({layer:a,name:s,overlay:f});var v=this.controlOption,g=v.sortLayers,x=v.sortFunction,C=v.autoZIndex;g&&this.layers.sort(function(T,O){return x(T.layer,O.layer,T.name,O.name)}),C&&a.setZIndex&&(this.lastZIndex++,a.setZIndex(this.lastZIndex)),this.expandIfNotCollapsed()}},{key:"expandIfNotCollapsed",value:function(){return this.mapsService&&!this.controlOption.collapsed&&this.expand(),this}},{key:"onLayerChange",value:function(a){this.handlingClick||this.update();var s=this.layerService.getLayer(a.target.layerId),f=s!=null&&s.overlay?a.type==="add"?"overlayadd":"overlayremove":a.type==="add"?"baselayerchange":null;f&&this.emit(f,s)}},{key:"createRadioElement",value:function(a,s){var f='",v=document.createElement("div");return v.innerHTML=f,v.firstChild}},{key:"addItem",value:function(a){var s=document.createElement("label"),f=this.layerService.getLayer(a.layer.id),v=f&&f.inited&&a.layer.isVisible(),g;a.overlay?(g=document.createElement("input"),g.type="checkbox",g.className="l7-control-layers-selector",g.defaultChecked=v):g=this.createRadioElement("l7-base-layers",v),this.layerControlInputs.push(g),g.layerId=a.layer.id,g.addEventListener("click",this.onInputClick);var x=document.createElement("span");x.innerHTML=" "+a.name;var C=document.createElement("div");s.appendChild(C),C.appendChild(g),C.appendChild(x);var T=a.overlay?this.overlaysList:this.baseLayersList;return T.appendChild(s),this.checkDisabledLayers(),s}},{key:"onInputClick",value:function(){var a=this.layerControlInputs,s,f,v=[],g=[];this.handlingClick=!0;for(var x=a.length-1;x>=0;x--)s=a[x],f=this.layerService.getLayer(s.layerId),s.checked?v.push(f):s.checked||g.push(f);g.forEach(function(C){C.hide()}),v.forEach(function(C){C.show()}),this.handlingClick=!1}}]),r}(Fv);function Y2(e){var i=q2();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function q2(){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}}var K2=function(e){(0,Ir.Z)(r,e);var i=Y2(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getDefault",value:function(){return{position:Xh.BOTTOMLEFT,name:"logo"}}},{key:"onAdd",value:function(){var a="l7-control-logo",s=lo("div",a),f=lo("a","l7-ctrl-logo");return f.target="_blank",f.rel="noopener nofollow",f.href="https://antv.alipay.com/l7",f.setAttribute("aria-label","AntV logo"),f.setAttribute("rel","noopener nofollow"),s.appendChild(f),s}},{key:"onRemove",value:function(){return null}}]),r}(Fv);function $2(e){var i=Q2();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function Q2(){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}}var ZP=function(e){(0,Ir.Z)(r,e);var i=$2(r);function r(n){var a;return(0,ht.Z)(this,r),a=i.call(this,n),(0,A.Z)((0,ne.Z)(a),"mScale",void 0),(0,A.Z)((0,ne.Z)(a),"iScale",void 0),Iu(["update"],(0,ne.Z)(a)),a}return(0,Pt.Z)(r,[{key:"getDefault",value:function(){return{position:Xh.BOTTOMLEFT,maxWidth:100,metric:!0,updateWhenIdle:!1,imperial:!1,name:"scale"}}},{key:"onAdd",value:function(){var a="l7-control-scale",s=lo("div",a);this.addScales(a+"-line",s);var f=this.controlOption.updateWhenIdle;return this.mapsService.on(f?"moveend":"mapmove",this.update),this.mapsService.on(f?"zoomend":"zoomchange",this.update),this.update(),s}},{key:"onRemove",value:function(){var a=this.controlOption.updateWhenIdle;this.mapsService.off(a?"zoomend":"zoomchange",this.update),this.mapsService.off(a?"moveend":"mapmove",this.update)}},{key:"update",value:function(){var a=this.mapsService,s=this.controlOption.maxWidth,f=a.getSize()[1]/2,v=a.containerToLngLat([0,f]),g=a.containerToLngLat([s,f]),x=ha([v.lng,v.lat],[g.lng,g.lat]);this.updateScales(x)}},{key:"updateScales",value:function(a){var s=this.controlOption,f=s.metric,v=s.imperial;f&&a&&this.updateMetric(a),v&&a&&this.updateImperial(a)}},{key:"updateMetric",value:function(a){var s=this.getRoundNum(a),f=s<1e3?s+" m":s/1e3+" km";this.updateScale(this.mScale,f,s/a)}},{key:"updateImperial",value:function(a){var s=a*3.2808399,f,v,g;s>5280?(f=s/5280,v=this.getRoundNum(f),this.updateScale(this.iScale,v+" mi",v/f)):(g=this.getRoundNum(s),this.updateScale(this.iScale,g+" ft",g/s))}},{key:"updateScale",value:function(a,s,f){var v=this.controlOption.maxWidth;a.style.width=Math.round(v*f)+"px",a.innerHTML=s}},{key:"getRoundNum",value:function(a){var s=Math.pow(10,(Math.floor(a)+"").length-1),f=a/s;return f=f>=10?10:f>=5?5:f>=3?3:f>=2?2:1,s*f}},{key:"addScales",value:function(a,s){var f=this.controlOption,v=f.metric,g=f.imperial;v&&(this.mScale=lo("div",a,s)),g&&(this.iScale=lo("div",a,s))}}]),r}(Fv);function J2(e){var i=eE();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function eE(){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}}var jP=function(e){(0,Ir.Z)(r,e);var i=J2(r);function r(n){var a;return(0,ht.Z)(this,r),a=i.call(this,n),(0,A.Z)((0,ne.Z)(a),"disabled",void 0),(0,A.Z)((0,ne.Z)(a),"zoomInButton",void 0),(0,A.Z)((0,ne.Z)(a),"zoomOutButton",void 0),Iu(["updateDisabled","zoomIn","zoomOut"],(0,ne.Z)(a)),a}return(0,Pt.Z)(r,[{key:"getDefault",value:function(){return{position:Xh.TOPLEFT,zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out",name:"zoom"}}},{key:"onAdd",value:function(){var a="l7-control-zoom",s=lo("div",a+" l7-bar");return this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,a+"-in",s,this.zoomIn),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,a+"-out",s,this.zoomOut),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),this.updateDisabled(),s}},{key:"onRemove",value:function(){this.mapsService.off("zoomend",this.updateDisabled),this.mapsService.off("zoomchange",this.updateDisabled)}},{key:"disable",value:function(){return this.disabled=!0,this.updateDisabled(),this}},{key:"enable",value:function(){return this.disabled=!1,this.updateDisabled(),this}},{key:"zoomIn",value:function(){!this.disabled&&this.mapsService.getZoom()this.mapsService.getMinZoom()&&this.mapsService.zoomOut()}},{key:"createButton",value:function(a,s,f,v,g){var x=lo("a",f,v);return x.innerHTML=a,x.title=s,x.href="javascript:void(0)",x.addEventListener("click",g),x}},{key:"updateDisabled",value:function(){var a=this.mapsService,s="l7-disabled";tu(this.zoomInButton,s),tu(this.zoomOutButton,s),(this.disabled||a.getZoom()<=a.getMinZoom())&&Su(this.zoomOutButton,s),(this.disabled||a.getZoom()>=a.getMaxZoom())&&Su(this.zoomInButton,s)}}]),r}(Fv);function Lg(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function kg(e){for(var i=1;i180||Math.abs(C[1][0])>180){if(T.x>k){var X=this.mapsService.lngLatToContainer([g-360,x]);T.x=X.x}if(T.x<0){var te=this.mapsService.lngLatToContainer([g+360,x]);T.x=te.x}}(T.x>k||T.x<0||T.y>j||T.y<0)&&(s.style.display="none"),s.style.left=T.x+f[0]+"px",s.style.top=T.y-f[1]+"px"}}}},{key:"init",value:function(){var a=this,s=this.markerOption.element,f=this.markerOption,v=f.color,g=f.anchor;if(!s){this.defaultMarker=!0,s=lo("div"),this.markerOption.element=s;var x=document.createElementNS("http://www.w3.org/2000/svg","svg");x.setAttributeNS(null,"display","block"),x.setAttributeNS(null,"height","48px"),x.setAttributeNS(null,"width","48px"),x.setAttributeNS(null,"viewBox","0 0 1024 1024");var C=document.createElementNS("http://www.w3.org/2000/svg","path");C.setAttributeNS(null,"d","M512 490.666667C453.12 490.666667 405.333333 442.88 405.333333 384 405.333333 325.12 453.12 277.333333 512 277.333333 570.88 277.333333 618.666667 325.12 618.666667 384 618.666667 442.88 570.88 490.666667 512 490.666667M512 85.333333C346.88 85.333333 213.333333 218.88 213.333333 384 213.333333 608 512 938.666667 512 938.666667 512 938.666667 810.666667 608 810.666667 384 810.666667 218.88 677.12 85.333333 512 85.333333Z"),C.setAttributeNS(null,"fill",v),x.appendChild(C),s.appendChild(x)}Su(s,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(T){var O,k,j=((O=a.markerOption)===null||O===void 0?void 0:O.style)&&((k=a.markerOption)===null||k===void 0?void 0:k.style[T]);s&&(s.style[T]=j)}),s.addEventListener("click",function(T){a.onMapClick(T)}),s.addEventListener("click",this.eventHandle),yf(s,g,"marker")}},{key:"registerMarkerEvent",value:function(a){a.addEventListener("mousemove",this.eventHandle),a.addEventListener("click",this.eventHandle),a.addEventListener("mousedown",this.eventHandle),a.addEventListener("mouseup",this.eventHandle),a.addEventListener("dblclick",this.eventHandle),a.addEventListener("contextmenu",this.eventHandle),a.addEventListener("mouseover",this.eventHandle),a.addEventListener("mouseout",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var a=this.getElement();a.removeEventListener("mousemove",this.eventHandle),a.removeEventListener("click",this.eventHandle),a.removeEventListener("mousedown",this.eventHandle),a.removeEventListener("mouseup",this.eventHandle),a.removeEventListener("dblclick",this.eventHandle),a.removeEventListener("contextmenu",this.eventHandle),a.removeEventListener("mouseover",this.eventHandle),a.removeEventListener("mouseout",this.eventHandle)}},{key:"addDragHandler",value:function(a){throw new Error("Method not implemented.")}},{key:"onUp",value:function(a){throw new Error("Method not implemented.")}}]),r}(Mn.EventEmitter);function Fg(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Bg(e){for(var i=1;i-1&&this.markers.splice(s,1)}},{key:"hide",value:function(){this.markers.map(function(a){a.getElement().style.opacity="0"}),this.clusterMarkers.map(function(a){a.getElement().style.opacity="0"})}},{key:"show",value:function(){this.markers.map(function(a){a.getElement().style.opacity="1"}),this.clusterMarkers.map(function(a){a.getElement().style.opacity="1"})}},{key:"getMarkers",value:function(){var a=this.markerLayerOption.cluster;return a?this.clusterMarkers:this.markers}},{key:"addMarkers",value:function(){var a=this;this.getMarkers().forEach(function(s){s.addTo(a.scene)})}},{key:"clear",value:function(){this.markers.forEach(function(a){a.remove()}),this.clusterMarkers.forEach(function(a){a.remove()}),this.mapsService.off("camerachange",this.update),this.markers=[],this.clusterMarkers=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"addPoint",value:function(a,s){var f=a.getLnglat(),v=f.lng,g=f.lat,x={geometry:{type:"Point",coordinates:[v,g]},properties:Bg(Bg({},a.getExtData()),{},{marker_id:s})};this.points.push(x),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"initCluster",value:function(){if(!!this.markerLayerOption.cluster){var a=this.markerLayerOption.clusterOption,s=a.radius,f=a.minZoom,v=f===void 0?0:f,g=a.maxZoom;this.clusterIndex=new(Up())({radius:s,minZoom:v,maxZoom:g}),this.clusterIndex.load(this.points)}}},{key:"getClusterMarker",value:function(a,s){var f=this,v=a[0].concat(a[1]),g=this.clusterIndex.getClusters(v,s);this.clusterMarkers.forEach(function(x){x.remove()}),this.clusterMarkers=[],g.forEach(function(x){var C,T=f.markerLayerOption.clusterOption,O=T.field,k=T.method;if(x.properties&&(C=x.properties)!==null&&C!==void 0&&C.cluster_id){var j,X=f.getLeaves((j=x.properties)===null||j===void 0?void 0:j.cluster_id);if(x.properties.clusterData=X,O&&k){var te=X==null?void 0:X.map(function(bt){var _t=(0,A.Z)({},O,bt.properties[O]);return _t}),be=ms(te,O),Ne=Uc(k,be),$e="point_"+k;x.properties[$e]=Ne.toFixed(2)}}var ot=f.clusterMarker(x);f.clusterMarkers.push(ot),ot.addTo(f.scene)})}},{key:"getLeaves",value:function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Infinity,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return a?this.clusterIndex.getLeaves(a,s,f):null}},{key:"clusterMarker",value:function(a){var s=this.markerLayerOption.clusterOption,f=s,v=f.element,g=v===void 0?this.generateElement.bind(this):v,x=new Dg({element:g(a)}).setLnglat({lng:a.geometry.coordinates[0],lat:a.geometry.coordinates[1]});return x}},{key:"normalMarker",value:function(a){var s=a.properties.marker_id;return this.markers[s]}},{key:"update",value:function(){if(!!this.mapsService){var a=this.mapsService.getZoom(),s=this.mapsService.getBounds();(!this.bbox||Math.abs(a-this.zoom)>=1||!yl(this.bbox,s))&&(this.bbox=dc(s,.5),this.zoom=Math.floor(a),this.getClusterMarker(this.bbox,this.zoom))}}},{key:"generateElement",value:function(a){var s=lo("div","l7-marker-cluster"),f=lo("div","",s),v=lo("span","",f),g=this.markerLayerOption.clusterOption,x=g.field,C=g.method;a.properties.point_count=a.properties.point_count||1;var T=x&&C?a.properties["point_"+C]||a.properties[x]:a.properties.point_count;return v.textContent=T,s}}]),r}(Mn.EventEmitter);function Ng(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function zg(e){for(var i=1;i0)?sl(e,i,r[0],r[1]):sl(e,i,"#fff",void 0)}var js;(function(e){e["GAODE1.x"]="GAODE1.x",e["GAODE2.x"]="GAODE2.x",e.MAPBOX="MAPBOX",e.L7MAP="L7MAP",e.SIMPLE="SIMPLE",e.GLOBEL="GLOBEL"})(js||(js={}));function dE(e,i){var r=[i[0]-e[0],i[1]-e[1]],n=cu(r),a=[e[0]+n[0]*1e-4,e[1]+n[1]*1e-4];return a}function vE(e,i){var r=this;e.length>0&&i.version===js["GAODE2.x"]&&(typeof e[0].coordinates[0]=="number"?e.filter(function(n){return!n.originCoordinates}).map(function(n){n.version=js["GAODE2.x"],n.originCoordinates=cloneDeep(n.coordinates),n.coordinates=r.mapService.lngLatToCoord(n.coordinates)}):e.filter(function(n){return!n.originCoordinates}).map(function(n){n.version=js["GAODE2.x"],n.originCoordinates=cloneDeep(n.coordinates),n.coordinates=r.mapService.lngLatToCoords(n.coordinates)}))}function mE(e,i){e.length>0&&i.version===js.SIMPLE&&e.map(function(r){r.simpleCoordinate||(r.coordinates=gE(r.coordinates,i),r.simpleCoordinate=!0)})}function gE(e,i){if(typeof e[0]=="number")return i.simpleMapCoord.unproject(e);if(e[0]&&e[0][0]instanceof Array){var r=[];return e.map(function(a){var s=[];a.map(function(f){s.push(i.simpleMapCoord.unproject(f))}),r.push(s)}),r}else{var n=[];return e.map(function(a){n.push(i.simpleMapCoord.unproject(a))}),n}}function yE(e,i,r){var n;if(!e.scale)return[];var a=(e==null||(n=e.scale)===null||n===void 0?void 0:n.scalers)||[],s=[];a.forEach(function(v){var g,x=v.field;(i.hasOwnProperty(x)||((g=e.scale)===null||g===void 0?void 0:g.type)==="variable")&&s.push(i[x])});var f=e.mapping?e.mapping(s):[];return e.name==="color"&&!al(f[0])?[r]:f}function _E(e,i,r,n,a,s){var f=s==null?void 0:s.getLayerConfig(),v=f.arrow,g=v===void 0?{enable:!1}:v,x=i.map(function(C){var T={id:C._id,coordinates:C.coordinates};if(e.filter(function(j){return j.scale!==void 0}).forEach(function(j){var X=yE(j,C,a);j.needRemapping=!1,j.name==="color"&&(X=X.map(function(te){return Ji(te)})),T[j.name]=Array.isArray(X)&&X.length===1?X[0]:X,j.name==="shape"&&(T.shape=r.getIconFontKey(T[j.name]))}),T.shape==="line"&&g.enable){var O=T.coordinates,k=dE(O[0],O[1]);T.coordinates.splice(1,0,k,k)}return T});return vE(x,n),mE(x,n),x}function xE(e,i,r,n,a,s){var f=new Vl(a,s),v=e.getBottomColor(),g=n.getLayerStyleAttributes()||[],x=f.data.dataArray,C=x,T=_E(g,C,i,r,v,e);return f.destroy(),T}function Vg(e){return e.map(function(i){return typeof i=="string"&&(i=[i,{}]),i})}function Gg(e,i,r,n){var a=e.multiPassRenderer,s=e.getLayerConfig(),f=s.enablePicking,v=s.enableTAA;return v?a.add(n("taa")):a.add(n("render")),Vg(i).forEach(function(g){var x=(0,on.Z)(g,2),C=x[0],T=x[1];a.add(r(C),T)}),a.add(r("copy")),a}var bE=[["circle","cylinder"],["square","cylinder"],["triangle","cylinder"],["pentagon","cylinder"],["hexagon","cylinder"],["octogon","cylinder"],["hexagram","cylinder"],["rhombus","cylinder"],["vesica","cylinder"]];function EE(e,i,r){if(typeof i=="string"&&typeof r=="string"&&i!==r){if(e.type==="PointLayer"){e.dataState.dataSourceNeedUpdate=!0;return}bE.map(function(n){if(n.includes(i)&&n.includes(r)){e.dataState.dataSourceNeedUpdate=!0;return}})}}var SE=["passes"],CE=["moduleName","vertexShader","fragmentShader","triangulation","segmentNumber"],Hg,F0,Wg;function AE(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=wE(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function wE(e,i){if(!!e){if(typeof e=="string")return Xg(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xg(e,i)}}function Xg(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r0&&arguments[0]!==void 0?arguments[0]:{};return(0,ht.Z)(this,r),n=i.call(this),(0,A.Z)((0,ne.Z)(n),"id","".concat(qg++)),(0,A.Z)((0,ne.Z)(n),"name","".concat(qg)),(0,A.Z)((0,ne.Z)(n),"type",void 0),(0,A.Z)((0,ne.Z)(n),"visible",!0),(0,A.Z)((0,ne.Z)(n),"zIndex",0),(0,A.Z)((0,ne.Z)(n),"minZoom",void 0),(0,A.Z)((0,ne.Z)(n),"maxZoom",void 0),(0,A.Z)((0,ne.Z)(n),"inited",!1),(0,A.Z)((0,ne.Z)(n),"layerModelNeedUpdate",!1),(0,A.Z)((0,ne.Z)(n),"pickedFeatureID",null),(0,A.Z)((0,ne.Z)(n),"selectedFeatureID",null),(0,A.Z)((0,ne.Z)(n),"styleNeedUpdate",!1),(0,A.Z)((0,ne.Z)(n),"rendering",void 0),(0,A.Z)((0,ne.Z)(n),"clusterZoom",0),(0,A.Z)((0,ne.Z)(n),"layerType",void 0),(0,A.Z)((0,ne.Z)(n),"isLayerGroup",!1),(0,A.Z)((0,ne.Z)(n),"triangulation",void 0),(0,A.Z)((0,ne.Z)(n),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,A.Z)((0,ne.Z)(n),"hooks",{init:new wh,afterInit:new wh,beforeRender:new wh,beforeRenderData:new Pd,afterRender:new Ps,beforePickingEncode:new Ps,afterPickingEncode:new Ps,beforeHighlight:new Ps(["pickedColor"]),afterHighlight:new Ps,beforeSelect:new Ps(["pickedColor"]),afterSelect:new Ps,beforeDestroy:new Ps,afterDestroy:new Ps}),(0,A.Z)((0,ne.Z)(n),"models",[]),(0,A.Z)((0,ne.Z)(n),"multiPassRenderer",void 0),(0,A.Z)((0,ne.Z)(n),"plugins",void 0),(0,A.Z)((0,ne.Z)(n),"sourceOption",void 0),(0,A.Z)((0,ne.Z)(n),"layerModel",void 0),(0,A.Z)((0,ne.Z)(n),"shapeOption",void 0),(0,A.Z)((0,ne.Z)(n),"sceneContainer",void 0),(0,A.Z)((0,ne.Z)(n),"layerChildren",[]),(0,A.Z)((0,ne.Z)(n),"masks",[]),Ui((0,ne.Z)(n),"configService",Wg,(0,ne.Z)(n)),(0,A.Z)((0,ne.Z)(n),"shaderModuleService",void 0),(0,A.Z)((0,ne.Z)(n),"cameraService",void 0),(0,A.Z)((0,ne.Z)(n),"coordinateService",void 0),(0,A.Z)((0,ne.Z)(n),"iconService",void 0),(0,A.Z)((0,ne.Z)(n),"fontService",void 0),(0,A.Z)((0,ne.Z)(n),"pickingService",void 0),(0,A.Z)((0,ne.Z)(n),"rendererService",void 0),(0,A.Z)((0,ne.Z)(n),"layerService",void 0),(0,A.Z)((0,ne.Z)(n),"interactionService",void 0),(0,A.Z)((0,ne.Z)(n),"mapService",void 0),(0,A.Z)((0,ne.Z)(n),"styleAttributeService",void 0),(0,A.Z)((0,ne.Z)(n),"layerSource",void 0),(0,A.Z)((0,ne.Z)(n),"postProcessingPassFactory",void 0),(0,A.Z)((0,ne.Z)(n),"normalPassFactory",void 0),(0,A.Z)((0,ne.Z)(n),"animateOptions",{enable:!1}),(0,A.Z)((0,ne.Z)(n),"container",void 0),(0,A.Z)((0,ne.Z)(n),"encodedData",void 0),(0,A.Z)((0,ne.Z)(n),"configSchema",void 0),(0,A.Z)((0,ne.Z)(n),"currentPickId",null),(0,A.Z)((0,ne.Z)(n),"rawConfig",void 0),(0,A.Z)((0,ne.Z)(n),"needUpdateConfig",void 0),(0,A.Z)((0,ne.Z)(n),"pendingStyleAttributes",[]),(0,A.Z)((0,ne.Z)(n),"scaleOptions",{}),(0,A.Z)((0,ne.Z)(n),"animateStartTime",void 0),(0,A.Z)((0,ne.Z)(n),"aniamateStatus",!1),(0,A.Z)((0,ne.Z)(n),"bottomColor","rgba(0, 0, 0, 0)"),(0,A.Z)((0,ne.Z)(n),"isDestroied",!1),(0,A.Z)((0,ne.Z)(n),"sourceEvent",function(){n.dataState.dataSourceNeedUpdate=!0;var s=n.getLayerConfig(),f=s.autoFit,v=s.fitBoundsOptions;f&&n.fitBounds(v),n.reRender()}),n.name=a.name||n.id,n.zIndex=a.zIndex||0,n.rawConfig=a,n}return(0,Pt.Z)(r,[{key:"addMaskLayer",value:function(a){this.masks.push(a)}},{key:"removeMaskLayer",value:function(a){var s=this.masks.indexOf(a);s>-1&&this.masks.splice(s,1),a.destroy()}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(a){if(!this.inited)this.needUpdateConfig=Ju(Ju({},this.needUpdateConfig),a);else{var s=this.container.get(Ht.SceneID);hE(a,this),this.configService.setLayerConfig(s,this.id,Ju(Ju(Ju({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),a)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(a,s){this.container=a,this.sceneContainer=s}},{key:"getContainer",value:function(){return this.container}},{key:"setBottomColor",value:function(a){this.bottomColor=a}},{key:"getBottomColor",value:function(){return this.bottomColor}},{key:"addPlugin",value:function(a){return this.plugins.push(a),this}},{key:"init",value:function(){var a=this,s=this.container.get(Ht.SceneID);this.configService.setLayerConfig(s,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(Ht.IIconService),this.fontService=this.container.get(Ht.IFontService),this.rendererService=this.container.get(Ht.IRendererService),this.layerService=this.container.get(Ht.ILayerService),this.interactionService=this.container.get(Ht.IInteractionService),this.pickingService=this.container.get(Ht.IPickingService),this.mapService=this.container.get(Ht.IMapService);var f=this.getLayerConfig(),v=f.enableMultiPassRenderer,g=f.passes;v&&g!==null&&g!==void 0&&g.length&&g.length>0&&this.mapService.on("mapAfterFrameChange",function(){a.renderLayers()}),this.cameraService=this.container.get(Ht.ICameraService),this.coordinateService=this.container.get(Ht.ICoordinateSystemService),this.shaderModuleService=this.container.get(Ht.IShaderModuleService),this.postProcessingPassFactory=this.container.get(Ht.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(Ht.IFactoryNormalPass),this.styleAttributeService=this.container.get(Ht.IStyleAttributeService),this.multiPassRenderer=this.container.get(Ht.IMultiPassRenderer),this.multiPassRenderer.setLayer(this),this.pendingStyleAttributes.forEach(function(O){var k=O.attributeName,j=O.attributeField,X=O.attributeValues,te=O.updateOptions;a.styleAttributeService.updateStyleAttribute(k,{scale:Ju({field:j},a.splitValuesAndCallbackInAttribute(X,a.getLayerConfig()[k]))},te)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(Ht.ILayerPlugin);var x=AE(this.plugins),C;try{for(x.s();!(C=x.n()).done;){var T=C.value;T.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}}catch(O){x.e(O)}finally{x.f()}return this.hooks.init.call(),this.hooks.afterInit.call(),this.emit("inited",{target:this,type:"inited"}),this.emit("add",{target:this,type:"add"}),this}},{key:"updateModelData",value:function(a){a.attributes&&a.elements?this.models.map(function(s){s.updateAttributesAndElements(a.attributes,a.elements)}):console.warn("data error")}},{key:"createModelData",value:function(a,s){if(this.layerModel.createModelData)return this.layerModel.createModelData(s);var f=this.calculateEncodeData(a,s),v=this.triangulation;return f&&v?this.styleAttributeService.createAttributesAndIndices(f,v):{attributes:void 0,elements:void 0}}},{key:"calculateEncodeData",value:function(a,s){return this.inited?xE(this,this.fontService,this.mapService,this.styleAttributeService,a,s):(console.warn("layer not inited!"),null)}},{key:"prepareBuildModel",value:function(){this.inited=!0,this.updateLayerConfig(Ju(Ju({},this.getDefaultConfig()),this.rawConfig));var a=this.getLayerConfig(),s=a.animateOption;s!=null&&s.enable&&(this.layerService.startAnimate(),this.aniamateStatus=!0)}},{key:"color",value:function(a,s,f){return this.updateStyleAttribute("color",a,s,f),this}},{key:"texture",value:function(a,s,f){return this.updateStyleAttribute("texture",a,s,f),this}},{key:"rotate",value:function(a,s,f){return this.updateStyleAttribute("rotate",a,s,f),this}},{key:"size",value:function(a,s,f){return this.updateStyleAttribute("size",a,s,f),this}},{key:"filter",value:function(a,s,f){return this.updateStyleAttribute("filter",a,s,f),this}},{key:"shape",value:function(a,s,f){var v,g,x,C=(v=this.styleAttributeService)===null||v===void 0||(g=v.getLayerStyleAttribute("shape"))===null||g===void 0||(x=g.scale)===null||x===void 0?void 0:x.field,T=a;return this.shapeOption={field:a,values:s},this.updateStyleAttribute("shape",a,s,f),EE(this,C,T),this}},{key:"label",value:function(a,s,f){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:a,attributeValues:s,updateOptions:f}),this}},{key:"animate",value:function(a){var s={};return Qu()(a)?(s.enable=!0,s=Ju(Ju({},s),a)):s.enable=a,this.updateLayerConfig({animateOption:s}),this}},{key:"source",value:function(a,s){return a!=null&&a.data?(this.setSource(a),this):(this.sourceOption={data:a,options:s},this.clusterZoom=0,this)}},{key:"setData",value:function(a,s){var f=this;return this.inited?this.layerSource.setData(a,s):this.on("inited",function(){var v=f.getSource();v?f.layerSource.setData(a,s):(f.source(new Vl(a,s)),f.sourceEvent())}),this}},{key:"style",value:function(a){var s=this,f=this.getLayerConfig(),v=a.passes,g=(0,Cc.Z)(a,SE);return v&&Vg(v).forEach(function(x){var C=s.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(x[0]);C&&C.updateOptions(x[1])}),this.rawConfig=Ju(Ju({},this.rawConfig),g),this.container&&(this.updateLayerConfig(this.rawConfig),this.styleNeedUpdate=!0),f&&f.mask===!0&&a.mask===!1&&(this.clearModels(),this.models=this.layerModel.buildModels()),this}},{key:"scale",value:function(a,s){return Qu()(a)?this.scaleOptions=Ju(Ju({},this.scaleOptions),a):this.scaleOptions[a]=s,this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.renderLayers(),this.rendering=!1}},{key:"render",value:function(){return this.getEncodedData().length!==0&&this.renderModels(),this}},{key:"renderMultiPass",value:function(){var n=(0,P.Z)(N().mark(function s(){return N().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(this.getEncodedData().length===0){v.next=7;break}if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){v.next=6;break}return v.next=4,this.multiPassRenderer.render();case 4:v.next=7;break;case 6:this.multiPassRenderer?this.renderModels():this.renderModels();case 7:case"end":return v.stop()}},s,this)}));function a(){return n.apply(this,arguments)}return a}()},{key:"active",value:function(a){var s={};return s.enableHighlight=Qu()(a)?!0:a,Qu()(a)?(s.enableHighlight=!0,a.color&&(s.highlightColor=a.color),a.mix&&(s.activeMix=a.mix)):s.enableHighlight=!!a,this.updateLayerConfig(s),this}},{key:"setActive",value:function(a,s){var f=this;if(Qu()(a)){var v=a.x,g=v===void 0?0:v,x=a.y,C=x===void 0?0:x;this.updateLayerConfig({highlightColor:Qu()(s)?s.color:this.getLayerConfig().highlightColor,activeMix:Qu()(s)?s.mix:this.getLayerConfig().activeMix}),this.pick({x:g,y:C})}else this.updateLayerConfig({pickedFeatureID:a,highlightColor:Qu()(s)?s.color:this.getLayerConfig().highlightColor,activeMix:Qu()(s)?s.mix:this.getLayerConfig().activeMix}),this.hooks.beforeSelect.call(hu(a)).then(function(){setTimeout(function(){f.reRender()},1)})}},{key:"select",value:function(a){var s={};return s.enableSelect=Qu()(a)?!0:a,Qu()(a)?(s.enableSelect=!0,a.color&&(s.selectColor=a.color),a.mix&&(s.selectMix=a.mix)):s.enableSelect=!!a,this.updateLayerConfig(s),this}},{key:"setSelect",value:function(a,s){var f=this;if(Qu()(a)){var v=a.x,g=v===void 0?0:v,x=a.y,C=x===void 0?0:x;this.updateLayerConfig({selectColor:Qu()(s)?s.color:this.getLayerConfig().selectColor,selectMix:Qu()(s)?s.mix:this.getLayerConfig().selectMix}),this.pick({x:g,y:C})}else this.updateLayerConfig({pickedFeatureID:a,selectColor:Qu()(s)?s.color:this.getLayerConfig().selectColor,selectMix:Qu()(s)?s.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(hu(a)).then(function(){setTimeout(function(){f.reRender()},1)})}},{key:"setBlend",value:function(a){return this.updateLayerConfig({blend:a}),this.layerModelNeedUpdate=!0,this.reRender(),this}},{key:"show",value:function(){return this.updateLayerConfig({visible:!0}),this.reRender(),this}},{key:"hide",value:function(){return this.type==="CanvasLayer"&&this.layerModel.clearCanvas&&this.layerModel.clearCanvas(),this.updateLayerConfig({visible:!1}),this.reRender(),this}},{key:"setIndex",value:function(a){return this.zIndex=a,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(a){this.currentPickId=a}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(a){this.selectedFeatureID=a}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var a=this.mapService.getZoom(),s=this.getLayerConfig(),f=s.visible,v=s.minZoom,g=v===void 0?-Infinity:v,x=s.maxZoom,C=x===void 0?Infinity:x;return!!f&&a>=g&&a<=C}},{key:"setMultiPass",value:function(a,s){if(this.updateLayerConfig({enableMultiPassRenderer:a}),s&&this.updateLayerConfig({passes:s}),a){var f=this.getLayerConfig(),v=f.passes,g=v===void 0?[]:v;this.multiPassRenderer=Gg(this,g,this.postProcessingPassFactory,this.normalPassFactory),this.multiPassRenderer.setRenderFlag(!0);var x=this.rendererService.getViewportSize(),C=x.width,T=x.height;this.multiPassRenderer.resize(C,T)}return this}},{key:"setMinZoom",value:function(a){return this.updateLayerConfig({minZoom:a}),this}},{key:"getMinZoom",value:function(){var a=this.getLayerConfig(),s=a.minZoom;return s}},{key:"getMaxZoom",value:function(){var a=this.getLayerConfig(),s=a.maxZoom;return s}},{key:"get",value:function(a){var s=this.getLayerConfig();return s[a]}},{key:"setMaxZoom",value:function(a){return this.updateLayerConfig({maxZoom:a}),this}},{key:"setAutoFit",value:function(a){return this.updateLayerConfig({autoFit:a}),this}},{key:"fitBounds",value:function(a){if(!this.inited)return this.updateLayerConfig({autoFit:!0}),this;var s=this.getSource(),f=s.extent,v=f.some(function(g){return Math.abs(g)===Infinity});return v?this:(this.mapService.fitBounds([[f[0],f[1]],[f[2],f[3]]],a),this)}},{key:"destroy",value:function(){var a;this.isDestroied||(this.layerChildren.map(function(s){return s.destroy()}),this.layerChildren=[],this.masks.map(function(s){return s.destroy()}),this.masks=[],this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),this.multiPassRenderer.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(a=this.layerModel)===null||a===void 0||a.clearModels(),this.models=[],this.layerService.cleanRemove(this),this.emit("remove",{target:this,type:"remove"}),this.emit("destroy",{target:this,type:"destroy"}),this.removeAllListeners(),this.isDestroied=!0)}},{key:"clear",value:function(){this.styleAttributeService.clearAllAttributes()}},{key:"clearModels",value:function(){this.models.forEach(function(a){return a.destroy()}),this.layerModel.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(a){return a.needRescale||a.needRemapping||a.needRegenerateVertices}).length}},{key:"setSource",value:function(a){if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=a,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var s=this.mapService.getZoom();this.layerSource.updateClusterData(s)}this.layerSource.on("update",this.sourceEvent)}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(a){this.encodedData=a}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(a){return this.styleAttributeService.getLayerAttributeScale(a)}},{key:"getLegendItems",value:function(a){var s=this.styleAttributeService.getLayerAttributeScale(a);if(!s)return[];if(s.invertExtent){var f=s.range().map(function(x){return(0,A.Z)({value:s.invertExtent(x)},a,x)});return f}else if(s.ticks){var v=s.ticks().map(function(x){return(0,A.Z)({value:x},a,s(x))});return v}else if(s!=null&&s.domain){var g=s.domain().filter(function(x){return!lE()(x)}).map(function(x){return(0,A.Z)({value:x},a,s(x))});return g}return[]}},{key:"pick",value:function(a){var s=a.x,f=a.y;this.interactionService.triggerHover({x:s,y:f})}},{key:"boxSelect",value:function(a,s){this.pickingService.boxPickLayer(this,a,s)}},{key:"buildLayerModel",value:function(a){var s=a.moduleName,f=a.vertexShader,v=a.fragmentShader,g=a.triangulation,x=a.segmentNumber,C=(0,Cc.Z)(a,CE);this.shaderModuleService.registerModule(s,{vs:f,fs:v});var T=this.shaderModuleService.getModule(s),O=T.vs,k=T.fs,j=T.uniforms,X=this.rendererService.createModel,te=this.styleAttributeService.createAttributesAndIndices(this.encodedData,g,x),be=te.attributes,Ne=te.elements;return X(Ju({attributes:be,uniforms:j,fs:k,vs:O,elements:Ne,blend:Zg[wc.normal]},C))}},{key:"createAttrubutes",value:function(a){var s=a.triangulation,f=this.styleAttributeService.createAttributes(this.encodedData,s),v=f.attributes;return v}},{key:"getTime",value:function(){return this.layerService.clock.getDelta()}},{key:"setAnimateStartTime",value:function(){this.animateStartTime=this.layerService.clock.getElapsedTime()}},{key:"stopAnimate",value:function(){this.aniamateStatus&&(this.layerService.stopAnimate(),this.aniamateStatus=!1,this.updateLayerConfig({animateOption:{enable:!1}}))}},{key:"getLayerAnimateTime",value:function(){return this.layerService.clock.getElapsedTime()-this.animateStartTime}},{key:"needPick",value:function(a){var s=this.getLayerConfig(),f=s.enableHighlight,v=f===void 0?!0:f,g=s.enableSelect,x=g===void 0?!0:g,C=this.eventNames().indexOf(a)!==-1||this.eventNames().indexOf("un"+a)!==-1;return(a==="click"||a==="dblclick")&&x&&(C=!0),a==="mousemove"&&(v||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(C=!0),this.isVisible()&&C}},{key:"buildModels",value:function(){throw new Error("Method not implemented.")}},{key:"rebuildModels",value:function(){throw new Error("Method not implemented.")}},{key:"renderMulPass",value:function(){var n=(0,P.Z)(N().mark(function s(f){return N().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,f.render();case 2:case"end":return g.stop()}},s)}));function a(s){return n.apply(this,arguments)}return a}()},{key:"renderModels",value:function(a){var s=this;return this.getEncodedData().length>0&&(this.layerModelNeedUpdate&&this.layerModel&&(this.models=this.layerModel.buildModels(),this.hooks.beforeRender.call(),this.layerModelNeedUpdate=!1),this.layerModel.renderUpdate&&this.layerModel.renderUpdate(),this.models.forEach(function(f){f.draw({uniforms:s.layerModel.getUninforms()},a)})),this}},{key:"updateStyleAttribute",value:function(a,s,f,v){this.inited?this.styleAttributeService.updateStyleAttribute(a,{scale:Ju({field:s},this.splitValuesAndCallbackInAttribute(f,this.getLayerConfig()[s]))},v):this.pendingStyleAttributes.push({attributeName:a,attributeField:s,attributeValues:f,updateOptions:v})}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(a){console.warn("empty fn")}},{key:"getConfigSchema",value:function(){throw new Error("Method not implemented.")}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"reRender",value:function(){this.inited&&(this.layerService.updateLayerRenderList(),this.layerService.renderLayers())}},{key:"splitValuesAndCallbackInAttribute",value:function(a,s){return{values:ru()(a)?void 0:a||s,callback:ru()(a)?a:void 0}}}]),r}(Mn.EventEmitter),Wg=jn(F0.prototype,"configService",[Hg],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F0),PE=U(18446),dd=U.n(PE),Kg,B0,$g;function IE(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=OE(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function OE(e,i){if(!!e){if(typeof e=="string")return Qg(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qg(e,i)}}function Qg(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r0)for(var bt=T.length,_t=bt-2*(g+1);_t+g+20&&arguments[0]!==void 0?arguments[0]:{};(0,ht.Z)(this,e),(0,A.Z)(this,"complex",void 0),(0,A.Z)(this,"join",void 0),(0,A.Z)(this,"cap",void 0),(0,A.Z)(this,"miterLimit",void 0),(0,A.Z)(this,"thickness",void 0),(0,A.Z)(this,"normal",void 0),(0,A.Z)(this,"lastFlip",-1),(0,A.Z)(this,"miter",Ci.al(0,0)),(0,A.Z)(this,"started",!1),(0,A.Z)(this,"dash",!1),(0,A.Z)(this,"totalDistance",0),(0,A.Z)(this,"currentIndex",0),this.join=i.join||"miter",this.cap=i.cap||"butt",this.miterLimit=i.miterLimit||10,this.thickness=i.thickness||1,this.dash=i.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,Pt.Z)(e,[{key:"extrude_gaode2",value:function(r,n){var a=this.complex;if(r.length<=1)return a;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var s=r.length,f=a.startIndex,v=1;vthis.miterLimit&&(un=!0)}un?(k.push(this.normal[0],this.normal[1],0),k.push(qr[0],qr[1],0),O.push(s[0],s[1],s[2]|0,this.totalDistance,-this.thickness*gr,s[2]|0),this.complex.indexes.push(this.currentIndex),O.push(s[0],s[1],s[2]|0,this.totalDistance,this.thickness*gr,s[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,T.push.apply(T,(0,Ce.Z)(this.lastFlip!==-gr?[n,n+2,n+3]:[n+2,n+1,n+3])),T.push(n+2,n+3,n+4),$h(Nv,Kh),Ci.JG(this.normal,Nv),k.push(this.normal[0],this.normal[1],0),O.push(s[0],s[1],s[2]|0,this.totalDistance,-this.thickness*gr,s[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,C+=3):(this.extrusions(O,k,s,qr,Pr,this.totalDistance),T.push.apply(T,(0,Ce.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),gr=-1,Ci.JG(this.normal,qr),C+=2),this.lastFlip=gr}else{if($h(this.normal,Ks),j){var bt=Ci.Ue(),_t=Ci.Ue();Ci.lu(_t,Ks,this.normal),Ci.IH(bt,Ks,this.normal),k.push(_t[0],_t[1],0),k.push(bt[0],bt[1],0),O.push(s[0],s[1],s[2]|0,this.totalDistance,this.thickness,s[2]|0),this.complex.indexes.push(this.currentIndex),O.push(s[0],s[1],s[2]|0,this.totalDistance,this.thickness,s[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(O,k,s,this.normal,this.thickness,this.totalDistance);T.push.apply(T,(0,Ce.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),C+=2}return C}},{key:"simpleSegment",value:function(r,n,a,s,f){var v=0,g=r.indices,x=r.positions,C=r.normals,T=Go([s[0],s[1]]),O=Go([a[0],a[1]]);md(Ks,T,O);var k=0;if(this.dash&&(k=this.lineSegmentDistance(T,O),this.totalDistance+=k),this.normal||(this.normal=Ci.Ue(),$h(this.normal,Ks)),this.started||(this.started=!0,this.extrusions(x,C,a,this.normal,this.thickness,this.totalDistance-k)),g.push(n+0,n+1,n+2),!f)$h(this.normal,Ks),this.extrusions(x,C,s,this.normal,this.thickness,this.totalDistance),g.push.apply(g,(0,Ce.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),v+=2;else{var j=Go([f[0],f[1]]);z0(T,j)&&Ci.IH(j,T,Ci.Fv(j,Ci.$X(j,T,O))),md(Kh,j,T);var X=N0(vd,Ci.Ue(),Ks,Kh,this.thickness),te=(0,on.Z)(X,2),be=te[0],Ne=te[1],$e=Ci.AK(vd,this.normal)<0?-1:1;this.extrusions(x,C,s,Ne,be,this.totalDistance),g.push.apply(g,(0,Ce.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),$e=-1,Ci.JG(this.normal,Ne),v+=2,this.lastFlip=$e}return v}},{key:"segment",value:function(r,n,a,s,f){var v=0,g=r.indices,x=r.positions,C=r.normals,T=this.cap==="square",O=this.join==="bevel",k=Go([s[0],s[1]]),j=Go([a[0],a[1]]);md(Ks,k,j);var X=0;if(this.dash&&(X=this.lineSegmentDistance(k,j),this.totalDistance+=X),this.normal||(this.normal=Ci.Ue(),$h(this.normal,Ks)),!this.started)if(this.started=!0,T){var te=Ci.Ue(),be=Ci.Ue();Ci.IH(te,this.normal,Ks),Ci.IH(be,this.normal,Ks),C.push(be[0],be[1],0),C.push(te[0],te[1],0),x.push(a[0],a[1],a[2]|0,this.totalDistance-X,-this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),x.push(a[0],a[1],a[2]|0,this.totalDistance-X,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(x,C,a,this.normal,this.thickness,this.totalDistance-X);if(g.push(n+0,n+1,n+2),f){var ot=Go([f[0],f[1]]);z0(k,ot)&&Ci.IH(ot,k,Ci.Fv(ot,Ci.$X(ot,k,j))),md(Kh,ot,k);var bt=N0(vd,Ci.Ue(),Ks,Kh,this.thickness),_t=(0,on.Z)(bt,2),qt=_t[0],ar=_t[1],Pr=Ci.AK(vd,this.normal)<0?-1:1,qr=O;if(!qr&&this.join==="miter"){var gr=qt;gr>this.miterLimit&&(qr=!0)}qr?(C.push(this.normal[0],this.normal[1],0),C.push(ar[0],ar[1],0),x.push(s[0],s[1],s[2]|0,this.totalDistance,-this.thickness*Pr,s[2]|0),this.complex.indexes.push(this.currentIndex),x.push(s[0],s[1],s[2]|0,this.totalDistance,this.thickness*Pr,s[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,g.push.apply(g,(0,Ce.Z)(this.lastFlip!==-Pr?[n,n+2,n+3]:[n+2,n+1,n+3])),g.push(n+2,n+3,n+4),$h(Nv,Kh),Ci.JG(this.normal,Nv),C.push(this.normal[0],this.normal[1],0),x.push(s[0],s[1],s[2]|0,this.totalDistance,-this.thickness*Pr,s[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,v+=3):(this.extrusions(x,C,s,ar,qt,this.totalDistance),g.push.apply(g,(0,Ce.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),Pr=-1,Ci.JG(this.normal,ar),v+=2),this.lastFlip=Pr}else{if($h(this.normal,Ks),T){var Ne=Ci.Ue(),$e=Ci.Ue();Ci.lu($e,Ks,this.normal),Ci.IH(Ne,Ks,this.normal),C.push($e[0],$e[1],0),C.push(Ne[0],Ne[1],0),x.push(s[0],s[1],s[2]|0,this.totalDistance,this.thickness,s[2]|0),this.complex.indexes.push(this.currentIndex),x.push(s[0],s[1],s[2]|0,this.totalDistance,this.thickness,s[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(x,C,s,this.normal,this.thickness,this.totalDistance);g.push.apply(g,(0,Ce.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),v+=2}return v}},{key:"extrusions",value:function(r,n,a,s,f,v){n.push(s[0],s[1],0),n.push(s[0],s[1],0),r.push(a[0],a[1],a[2]|0,v,-f,a[2]|0),this.complex.indexes.push(this.currentIndex),r.push(a[0],a[1],a[2]|0,v,f,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(r,n){var a=n[0]-r[0],s=n[1]-r[1];return Math.sqrt(a*a+s*s)}}]),e}();function Mp(e){if(fa()(e[0]))return e;if(fa()(e[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(fa()(e[0][0][0])){var i=e,r=0,n=0,a=0;return i.forEach(function(s){s.forEach(function(f){r+=f[0],n+=f[1],a++})}),[r/a,n/a,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function LE(e){for(var i=e[0],r=e[1],n=e[0],a=e[1],s=0,f=0,v=0,g=0;g1&&arguments[1]!==void 0?arguments[1]:!1,r=e[0][0],n=e[0][e[0].length-1];r[0]===n[0]&&r[1]===n[1]&&(e[0]=e[0].slice(0,e[0].length-1));for(var a=e[0].length,s=Rf().flatten(e),f=s.vertices,v=s.dimensions,g=[],x=[],C=[],T=0;T3&&arguments[3]!==void 0?arguments[3]:!1,a=Xa.create(),s=Xa.create(),f=Xa.create();n&&(e=Cn(e),i=Cn(i),r=Cn(r));var v=Xa.fromValues.apply(Xa,(0,Ce.Z)(e)),g=Xa.fromValues.apply(Xa,(0,Ce.Z)(i)),x=Xa.fromValues.apply(Xa,(0,Ce.Z)(r));Xa.sub(a,x,g),Xa.sub(s,v,g),Xa.cross(f,a,s);var C=Xa.create();return Xa.normalize(C,f),C}var Tc,Pp;(function(e){e.CYLINDER="cylinder",e.SQUARECOLUMN="squareColumn",e.TRIANGLECOLUMN="triangleColumn",e.HEXAGONCOLUMN="hexagonColumn",e.PENTAGONCOLUMN="pentagonColumn"})(Pp||(Pp={}));var Ip;(function(e){e.CIRCLE="circle",e.SQUARE="square",e.TRIANGLE="triangle",e.HEXAGON="hexagon",e.PENTAGON="pentagon"})(Ip||(Ip={}));function ov(e){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=Math.PI*2/e,n=[],a=0;a1&&arguments[1]!==void 0?arguments[1]:!1;if(zv&&zv[e])return zv[e];var r=gd[e]?gd[e]():gd.cylinder(),n=ny([r],i);return zv[e]=n,n}function KP(e,i){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=new Float32Array(e.length/r*3),s,f,v,g=vec3.create(),x=vec3.create(),C=vec3.create(),T=0,O=i.length;T 0.0 && v_worldDis < u_cityMinSize) { + float r = fract(((v_worldDis/u_cityMinSize) - u_time * u_circleSweepSpeed) * 2.0); + gl_FragColor.rgb += r * r * u_circleSweepColor; + } + + gl_FragColor.a *= u_opacity; + gl_FragColor = filterColor(gl_FragColor); +} +`,WE=`precision highp float; + +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec3 a_Normal; +attribute float a_Size; +uniform mat4 u_ModelMatrix; + +attribute vec2 a_Uv; +varying vec2 v_texCoord; + +varying vec4 v_Color; +uniform mat4 u_Mvp; + +uniform float u_circleSweep; +uniform vec2 u_cityCenter; + +varying float v_worldDis; + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + + +void main() { + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); + vec4 project_pos = project_position(pos); + + v_texCoord = a_Uv; + + if(u_circleSweep > 0.0) { + vec2 lnglatscale = vec2(0.0); + if(u_CoordinateSystem != COORDINATE_SYSTEM_P20_2) { + lnglatscale = (a_Position.xy - u_cityCenter) * vec2(0.0, 0.135); + } + v_worldDis = length(a_Position.xy + lnglatscale - u_cityCenter); + } + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + } + + float lightWeight = calc_lighting(pos); + // v_Color = a_Color; + v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); + + setPickingColor(a_PickingColor); +} +`,XE=function(e){(0,Ir.Z)(r,e);var i=VE(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f 1 \u7684 uv \u8F6C\u6362\u4E3A -1 -> 1 \u7684\u6807\u51C6\u5750\u6807\u7A7A\u95F4\uFF08NDC\uFF09 + + vec4 p1 = vec4(pos, 0.0, 1.0); // x/y \u5E73\u9762\u4E0A\u7684\u70B9\uFF08z == 0\uFF09\u53EF\u4EE5\u8BA4\u4E3A\u662F\u4E09\u7EF4\u4E0A\u7684\u70B9\u88AB\u6295\u5F71\u5230\u5E73\u9762\u540E\u7684\u70B9 + vec4 p2 = vec4(pos, 1.0, 1.0); // \u5E73\u884C\u4E8Ex/y\u5E73\u9762\u3001z==1 \u7684\u5E73\u9762\u4E0A\u7684\u70B9 + + vec4 inverseP1 = u_InverseViewProjectionMatrix * p1; // \u6839\u636E\u89C6\u56FE\u6295\u5F71\u77E9\u9635\u7684\u9006\u77E9\u9635\u5E73\u9762\u4E0A\u7684\u53CD\u7B97\u51FA\u4E09\u7EF4\u7A7A\u95F4\u4E2D\u7684\u70B9\uFF08p1\u5E73\u9762\u4E0A\u7684\u70B9\uFF09 + vec4 inverseP2 = u_InverseViewProjectionMatrix * p2; + + inverseP1 = inverseP1 / inverseP1.w; // \u5F52\u4E00\u5316\u64CD\u4F5C\uFF08\u5F52\u4E00\u5316\u540E\u4E3A\u4E16\u754C\u5750\u6807\uFF09 + inverseP2 = inverseP2 / inverseP2.w; + + float zPos = (0.0 - inverseP1.z) / (inverseP2.z - inverseP1.z); // ?? + vec4 position = inverseP1 + zPos * (inverseP2 - inverseP1); + + vec4 b= vec4(0.5000, 0.0, 1.0, 0.5000); + float fh; + + v_intensity = texture2D(u_texture, v_texCoord).r; + fh = toBezier(v_intensity, b).y; + gl_Position = u_ViewProjectionMatrixUncentered * vec4(position.xy, fh * project_pixel(50.), 1.0); + +} +`,hS=`uniform sampler2D u_texture; // \u70ED\u529B\u5F3A\u5EA6\u56FE +uniform sampler2D u_colorTexture; // \u6839\u636E\u5F3A\u5EA6\u5206\u5E03\u7684\u8272\u5E26 +uniform float u_opacity; +varying vec2 v_texCoord; + +uniform vec2 u_ViewportSize; + +float getBlurIndusty() { + float vW = 2.0/u_ViewportSize.x; + float vH = 2.0/u_ViewportSize.y; + vec2 vUv = v_texCoord; + float i11 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y + 1.0 * vH) ).r; + float i12 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y + 1.0 * vH) ).r; + float i13 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y + 1.0 * vH) ).r; + + float i21 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y) ).r; + float i22 = texture2D( u_texture, vec2( vUv.x , vUv.y) ).r; + float i23 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y) ).r; + + float i31 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y-1.0*vH) ).r; + float i32 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y-1.0*vH) ).r; + float i33 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y-1.0*vH) ).r; + + return( + i11 + + i12 + + i13 + + i21 + + i21 + + i22 + + i23 + + i31 + + i32 + + i33 + )/9.0; +} + + +void main(){ + // float intensity = texture2D(u_texture, v_texCoord).r; + float intensity = getBlurIndusty(); + vec4 color = texture2D(u_colorTexture, vec2(intensity, 0.0)); + + gl_FragColor =color; + gl_FragColor.a = color.a * smoothstep(0.,0.1,intensity) * u_opacity; + +} +`,pS=`precision highp float; +attribute vec3 a_Position; +attribute vec2 a_Uv; +varying vec2 v_texCoord; + +void main() { + v_texCoord = a_Uv; + + gl_Position = vec4(a_Position.xy, 0, 1.); +} +`,dS=`precision highp float; +uniform float u_intensity; +varying float v_weight; +varying vec2 v_extrude; +#define GAUSS_COEF 0.3989422804014327 +void main(){ + float d = -0.5 * 3.0 * 3.0 * dot(v_extrude, v_extrude); + float val = v_weight * u_intensity * GAUSS_COEF * exp(d); + gl_FragColor = vec4(val, 1., 1., 1.); +} +`,vS=`precision highp float; +attribute vec3 a_Position; +attribute float a_Size; +attribute vec2 a_Dir; +uniform float u_intensity; +uniform float u_radius; +varying vec2 v_extrude; +varying float v_weight; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; + +#define GAUSS_COEF 0.3989422804014327 + +#pragma include "projection" + +void main(){ + v_weight = a_Size; + float ZERO = 1.0 / 255.0 / 16.0; + float extrude_x = a_Dir.x * 2.0 -1.0; + float extrude_y = a_Dir.y * 2.0 -1.0; + vec2 extrude_dir = normalize(vec2(extrude_x,extrude_y)); + float S = sqrt(-2.0 * log(ZERO / a_Size / u_intensity / GAUSS_COEF)) / 2.5; + v_extrude = extrude_dir * S; + + vec2 offset = project_pixel(v_extrude * u_radius); + vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); + + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xy + offset, 0.0, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); + } +} +`,by=(gy=(0,Wr.b2)(),gy(yy=function(e){(0,Ir.Z)(r,e);var i=uS(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { + flag = 1.; + } + gl_FragColor.a *=flag; + + gl_FragColor = filterColor(gl_FragColor); +}`,NS=` +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute float a_Size; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform float segmentNumber; +varying vec4 v_color; + + +uniform vec4 u_dash_array: [10.0, 5., 0, 0]; +uniform float u_lineDir: 1.0; +varying vec4 v_dash_array; + +uniform float u_thetaOffset: 0.314; + +uniform float u_opacity: 1.0; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" +#pragma include "styleMappingCalThetaOffset" + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float bezier3(vec3 arr, float t) { + float ut = 1. - t; + return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; +} +vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { + vec2 center = target - source; + float r = length(center); + float theta = atan(center.y, center.x); + float thetaOffset = arcThetaOffset; + float r2 = r / 2.0 / cos(thetaOffset); + float theta2 = theta + thetaOffset; + vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); + if(u_lineDir == 1.0) { // \u6B63\u5411 + return mid; + } else { // \u9006\u5411 + // (mid + vmin)/2 = (s + t)/2 + vec2 vmid = source + target - mid; + return vmid; + } + // return mid; +} +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); +} +vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { + // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation + vec2 mid = midPoint(source, target, arcThetaOffset); + vec3 x = vec3(source.x, mid.x, target.x); + vec3 y = vec3(source.y, mid.y, target.y); + return vec2(bezier3(x ,t), bezier3(y,t)); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +void main() { + v_color = a_Color; + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 // dataset \u6570\u636E\u96C6 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke -> thetaOffset... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + + vec2 thetaOffsetAndOffset = calThetaOffsetAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][1] = thetaOffsetAndOffset.r; + textureOffset = thetaOffsetAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + + vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 + vec2 target = a_Instance.ba; // \u7EC8\u70B9 + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); + + + styleMappingMat[3].b = segmentIndex / segmentNumber; + + // styleMappingMat[0][1] - arcThetaOffset + vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, styleMappingMat[0][1]), 0.0, 1.0)); + vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, styleMappingMat[0][1]), 0.0, 1.0)); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + //unProjCustomCoord + + vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); + + + // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + // gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); + gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); + } + setPickingColor(a_PickingColor); +} +`,zS=` +#define Animate 0.0 +#define LineTexture 1.0 + +uniform float u_opacity; +uniform float u_textureBlend; +uniform float u_blur : 0.9; +uniform float u_line_type: 0.0; +// varying vec2 v_normal; +varying vec4 v_dash_array; +varying vec4 v_color; + +uniform float u_time; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; + +uniform float u_line_texture; +uniform sampler2D u_texture; +uniform vec2 u_textSize; + +uniform float segmentNumber; +varying vec2 v_iconMapUV; + +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E + +#pragma include "picking" + +void main() { + float opacity = styleMappingMat[0][0]; + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + float d_segmentIndex = styleMappingMat[3].r; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E + float d_distance_ratio = styleMappingMat[3].b; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u6BD4\u4F8B + + gl_FragColor = v_color; + + gl_FragColor.a *= opacity; + + if(u_aimate.x == Animate && u_line_texture != LineTexture) { + animateSpeed = u_time / u_aimate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_aimate.z)* (1.0/ u_aimate.z) + u_time / u_aimate.y); + alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; + // alpha = smoothstep(0., 1., alpha); + alpha = clamp(alpha, 0.0, 1.0); + gl_FragColor.a *= alpha; + } + + // \u5F53\u5B58\u5728\u8D34\u56FE\u65F6\u5728\u5E95\u8272\u4E0A\u8D34\u4E0A\u8D34\u56FE + if(u_line_texture == LineTexture) { // while load texture + float arcRadio = smoothstep( 0.0, 1.0, (d_segmentIndex / segmentNumber)); + // float arcRadio = smoothstep( 0.0, 1.0, d_distance_ratio); + + float count = styleMappingMat[3].g; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + float time = 0.0; + if(u_aimate.x == Animate) { + time = u_time / u_aimate.y; + } + float redioCount = arcRadio * count; + + float u = fract(redioCount - time); + float v = styleMappingMat[3].a; // \u6A2A\u5411 v + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + + vec4 pattern = texture2D(u_texture, uv); + + if(u_aimate.x == Animate) { + float currentPlane = floor(redioCount - time); + float textureStep = floor(count * u_aimate.z); + float a = mod(currentPlane, textureStep); + if(a < textureStep - 1.0) { + pattern = vec4(0.0); + } + } + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + gl_FragColor = filterColor(gl_FragColor + pattern); + } else { // replace + pattern.a *= opacity; + if(gl_FragColor.a <= 0.0) { + pattern.a = 0.0; + } + gl_FragColor = filterColor(pattern); + } + + } else { + gl_FragColor = filterColor(gl_FragColor); + } + // gl_FragColor = filterColor(gl_FragColor); +}`,US=`#define Animate 0.0 +#define LineTexture 1.0 + +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute float a_Size; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform float segmentNumber; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; +varying vec4 v_color; + +uniform float u_lineDir: 1.0; + +uniform float u_thetaOffset: 0.314; +uniform float u_icon_step: 100; +uniform float u_line_texture: 0.0; +attribute vec2 a_iconMapUV; +varying vec2 v_iconMapUV; + +uniform float u_opacity: 1.0; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" +#pragma include "styleMappingCalThetaOffset" + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float bezier3(vec3 arr, float t) { + float ut = 1. - t; + return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; +} +vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { + vec2 center = target - source; + float r = length(center); + float theta = atan(center.y, center.x); + float thetaOffset = arcThetaOffset; + float r2 = r / 2.0 / cos(thetaOffset); + float theta2 = theta + thetaOffset; + vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); + if(u_lineDir == 1.0) { // \u6B63\u5411 + return mid; + } else { // \u9006\u5411 + // (mid + vmin)/2 = (s + t)/2 + vec2 vmid = source + target - mid; + return vmid; + } + // return mid; +} +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); +} +vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { + // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation + vec2 mid = midPoint(source, target, arcThetaOffset); + vec3 x = vec3(source.x, mid.x, target.x); + vec3 y = vec3(source.y, mid.y, target.y); + return vec2(bezier3(x ,t), bezier3(y,t)); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +void main() { + v_color = a_Color; + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 // dataset \u6570\u636E\u96C6 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke -> thetaOffset... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + + vec2 thetaOffsetAndOffset = calThetaOffsetAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][1] = thetaOffsetAndOffset.r; + textureOffset = thetaOffsetAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + + vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 + vec2 target = a_Instance.ba; // \u7EC8\u70B9 + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + float d_distance_ratio; + + if(u_aimate.x == Animate) { + d_distance_ratio = segmentIndex / segmentNumber; + if(u_lineDir != 1.0) { + d_distance_ratio = 1.0 - d_distance_ratio; + } + } + + styleMappingMat[3].b = d_distance_ratio; + + // styleMappingMat[0][1] - arcThetaOffset + vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, styleMappingMat[0][1]), 0.0, 1.0)); + vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, styleMappingMat[0][1]), 0.0, 1.0)); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + //unProjCustomCoord + + vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); + + + float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E + styleMappingMat[3].r = d_segmentIndex; + + if(LineTexture == u_line_texture) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + + float arcDistrance = length(source - target); // \u8D77\u59CB\u70B9\u548C\u7EC8\u70B9\u7684\u8DDD\u79BB + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap + arcDistrance *= 1000000.0; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox + // arcDistrance *= 8.0; + arcDistrance = project_pixel_allmap(arcDistrance); + } + v_iconMapUV = a_iconMapUV; + + float pixelLen = project_pixel_texture(u_icon_step); // \u8D34\u56FE\u6CBF\u5F27\u7EBF\u65B9\u5411\u7684\u957F\u5EA6 - \u968F\u5730\u56FE\u7F29\u653E\u6539\u53D8 + float texCount = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + styleMappingMat[3].g = texCount; + + float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB + styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + } + + + // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + // gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); + gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); + } + setPickingColor(a_PickingColor); +} +`,ZS=`#define Animate 0.0 +#define LineTexture 1.0 + +uniform float u_opacity; +uniform float u_textureBlend; +uniform float u_blur : 0.9; +uniform float u_line_type: 0.0; +// varying vec2 v_normal; +varying vec4 v_dash_array; +varying vec4 v_color; + +uniform float u_time; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; + +uniform float u_line_texture; +uniform sampler2D u_texture; +uniform vec2 u_textSize; + +uniform float segmentNumber; +varying vec2 v_iconMapUV; + +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E + +uniform float u_linearColor: 0; +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; + +#pragma include "picking" + +void main() { + float opacity = styleMappingMat[0][0]; + float d_segmentIndex = styleMappingMat[3].r; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E + + // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u5E95\u8272 + gl_FragColor = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber); + gl_FragColor.a *= opacity; + gl_FragColor = filterColor(gl_FragColor); +}`,jS=` +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute float a_Size; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform float segmentNumber; +varying vec4 v_color; + +uniform float u_lineDir: 1.0; + +uniform float u_thetaOffset: 0.314; + +uniform float u_opacity: 1.0; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" +#pragma include "styleMappingCalThetaOffset" + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float bezier3(vec3 arr, float t) { + float ut = 1. - t; + return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; +} +vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { + vec2 center = target - source; + float r = length(center); + float theta = atan(center.y, center.x); + float thetaOffset = arcThetaOffset; + float r2 = r / 2.0 / cos(thetaOffset); + float theta2 = theta + thetaOffset; + vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); + if(u_lineDir == 1.0) { // \u6B63\u5411 + return mid; + } else { // \u9006\u5411 + // (mid + vmin)/2 = (s + t)/2 + vec2 vmid = source + target - mid; + return vmid; + } + // return mid; +} +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); +} +vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { + // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation + vec2 mid = midPoint(source, target, arcThetaOffset); + vec3 x = vec3(source.x, mid.x, target.x); + vec3 y = vec3(source.y, mid.y, target.y); + return vec2(bezier3(x ,t), bezier3(y,t)); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +void main() { + v_color = a_Color; + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 // dataset \u6570\u636E\u96C6 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke -> thetaOffset... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + + vec2 thetaOffsetAndOffset = calThetaOffsetAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][1] = thetaOffsetAndOffset.r; + textureOffset = thetaOffsetAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + + vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 + vec2 target = a_Instance.ba; // \u7EC8\u70B9 + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + float d_distance_ratio; + + styleMappingMat[3].b = d_distance_ratio; + + // styleMappingMat[0][1] - arcThetaOffset + vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, styleMappingMat[0][1]), 0.0, 1.0)); + vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, styleMappingMat[0][1]), 0.0, 1.0)); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + //unProjCustomCoord + + vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); + + + float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E + styleMappingMat[3].r = d_segmentIndex; + + // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + // gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); + gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); + } + setPickingColor(a_PickingColor); +} +`,VS={solid:0,dash:1},GS=function(e){(0,Ir.Z)(r,e);var i=DS(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&gr.length>0?this.createTexture2D({flipY:!0,data:gr,format:G.LUMINANCE,type:G.FLOAT,width:un,height:Ln}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}j.length===2&&j.push(0,0);var Vn=0,Fa=[0,0,0,0],Ro=[0,0,0,0];return v&&g&&(Fa=Ji(v),Ro=Ji(g),Vn=1),this.rendererService.getDirty()&&this.texture.bind(),{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_thetaOffset:fa()(ar)?ar:0,u_opacity:fa()(f)?f:1,u_textureBlend:C==="normal"?0:1,segmentNumber:_t,u_line_type:VS[O||"solid"],u_dash_array:j,u_blur:.9,u_lineDir:te?1:-1,u_texture:this.texture,u_line_texture:Ne?1:0,u_icon_step:ot,u_textSize:[1024,this.iconService.canvasHeight||128],u_linearColor:Vn,u_sourceColor:Fa,u_targetColor:Ro}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"getShaders",value:function(){var a=this.layer.getLayerConfig(),s=a.sourceColor,f=a.targetColor,v=a.lineType;return v==="dash"?{frag:BS,vert:NS,type:"dash"}:s&&f?{frag:ZS,vert:jS,type:"linear"}:{frag:zS,vert:US,type:"normal"}}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.segmentNumber,f=s===void 0?30:s,v=a.mask,g=v===void 0?!1:v,x=a.maskInside,C=x===void 0?!0:x,T=this.getShaders(),O=T.frag,k=T.vert,j=T.type;return[this.layer.buildLayerModel({moduleName:"arc2dline"+j,vertexShader:k,fragmentShader:O,triangulation:Zv,depth:{enable:!1},blend:this.getBlend(),segmentNumber:f,stencil:Pa(g,C)})]}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.size,T=C===void 0?1:C;return Array.isArray(T)?[T[0]]:[T]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:On.Attribute,descriptor:{name:"a_Instance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:4,update:function(f,v,g,x){return[g[3],g[4],g[5],g[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.texture,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}})}}]),r}(fo);function HS(e){var i=WS();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function WS(){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}}var XS=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 + +uniform float u_opacity; +uniform float u_textureBlend; +uniform float u_blur : 0.9; +uniform float u_line_type: 0.0; +// varying vec2 v_normal; +varying vec4 v_dash_array; +varying vec4 v_color; + +uniform float u_line_texture: 0.0; +uniform sampler2D u_texture; +uniform vec2 u_textSize; +varying float v_segmentIndex; +uniform float segmentNumber; + +varying vec2 v_iconMapUV; + +uniform float u_time; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; + +varying mat4 styleMappingMat; + +#pragma include "picking" + +void main() { + float opacity = styleMappingMat[0][0]; + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + float d_distance_ratio = styleMappingMat[3].g; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + gl_FragColor = v_color; + + gl_FragColor.a *= opacity; + if(u_line_type == LineTypeDash) { + float flag = 0.; + float dashLength = mod(d_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w); + if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { + flag = 1.; + } + gl_FragColor.a *=flag; + } + + if(u_aimate.x == Animate && u_line_texture != LineTexture) { + animateSpeed = u_time / u_aimate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_aimate.z)* (1.0/ u_aimate.z) + u_time / u_aimate.y); + + alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; + // alpha = smoothstep(0., 1., alpha); + alpha = clamp(alpha, 0.0, 1.0); + gl_FragColor.a *= alpha; + + // u_aimate + // x enable + // y duration + // z interval + // w trailLength + } + + if(u_line_texture == LineTexture && u_line_type != LineTypeDash) { // while load texture + // float arcRadio = smoothstep( 0.0, 1.0, (v_segmentIndex / segmentNumber)); + float arcRadio = v_segmentIndex / (segmentNumber - 1.0); + float count = styleMappingMat[3].b; // // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + float time = 0.0; + if(u_aimate.x == Animate) { + time = u_time / u_aimate.y; + } + float redioCount = arcRadio * count; + + float u = fract(redioCount - time); + + float v = styleMappingMat[3].a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture2D(u_texture, uv); + + if(u_aimate.x == Animate) { + float currentPlane = floor(redioCount - time); + float textureStep = floor(count * u_aimate.z); + float a = mod(currentPlane, textureStep); + if(a < textureStep - 1.0) { + pattern = vec4(0.0); + } + } + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + gl_FragColor = filterColor(gl_FragColor + pattern); + } else { // replace + pattern.a *= opacity; + if(gl_FragColor.a <= 0.0) { + pattern.a = 0.0; + discard; + } else { + gl_FragColor = filterColor(pattern); + } + } + + } else { + gl_FragColor = filterColor(gl_FragColor); + } +} +`,YS=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute vec4 a_Color; +attribute float a_Size; + +uniform float u_globel; +uniform float u_globel_radius; +uniform float u_global_height: 10; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform float segmentNumber; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; +varying vec4 v_color; +// varying vec2 v_normal; +uniform float u_line_type: 0.0; +uniform vec4 u_dash_array: [10.0, 5., 0, 0]; +varying vec4 v_dash_array; + +uniform float u_icon_step: 100; +uniform float u_line_texture: 0.0; +varying float v_segmentIndex; + +attribute vec2 a_iconMapUV; +varying vec2 v_iconMapUV; + +uniform float u_opacity: 1.0; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float maps (float value, float start1, float stop1, float start2, float stop2) { + return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); +} + +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); +} + +float paraboloid(vec2 source, vec2 target, float ratio) { + vec2 x = mix(source, target, ratio); + vec2 center = mix(source, target, 0.5); + float dSourceCenter = distance(source, center); + float dXCenter = distance(x, center); + return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); +} + +vec3 getPos(vec2 source, vec2 target, float segmentRatio) { + float vertex_height = paraboloid(source, target, segmentRatio); + + return vec3( + mix(source, target, segmentRatio), + sqrt(max(0.0, vertex_height)) + ); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +float torad(float deg) { + return (deg / 180.0) * acos(-1.0); +} + +vec3 lglt2xyz(vec2 lnglat) { + float pi = 3.1415926; + // TODO: + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 + float lng = torad(lnglat.x) + pi / 2.0; + float lat = torad(lnglat.y); + + // TODO: \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 + float radius = u_globel_radius; + + float z = radius * cos(lat) * cos(lng); + float x = radius * cos(lat) * sin(lng); + float y = radius * sin(lat); + return vec3(x, y, z); +} + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 // dataset \u6570\u636E\u96C6 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + v_color = a_Color; + vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; + vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + + float d_distance_ratio; + if(u_line_type == LineTypeDash) { + d_distance_ratio = segmentIndex / segmentNumber; + // float total_Distance = pixelDistance(a_Instance.rg, a_Instance.ba) / 2.0 * PI; + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); + } + if(u_aimate.x == Animate) { + d_distance_ratio = segmentIndex / segmentNumber; + } + styleMappingMat[3].g = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + vec3 curr = getPos(source, target, segmentRatio); + vec3 next = getPos(source, target, nextSegmentRatio); + vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + + + v_segmentIndex = a_Position.x; + if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + + float arcDistrance = length(source - target); + float pixelLen = project_pixel_texture(u_icon_step); + styleMappingMat[3].b = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + vec2 projectOffset = project_pixel(offset); + float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB + styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + v_iconMapUV = a_iconMapUV; + } + + + // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); + } + + // \u5730\u7403\u6A21\u5F0F + if(u_globel > 0.0) { + vec3 startLngLat = lglt2xyz(a_Instance.rg); + vec3 endLngLat = lglt2xyz(a_Instance.ba); + float globalRadius = length(startLngLat); + + vec3 lineDir = normalize(endLngLat - startLngLat); + vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); + + // \u7EBF\u7684\u504F\u79FB + vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; + // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB + float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; + // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 + float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; + // \u5730\u7403\u70B9\u4F4D + vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; + + gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); + } + + + setPickingColor(a_PickingColor); +} +`,qS=` +#define Animate 0.0 + +uniform float u_opacity; +uniform float u_blur : 0.9; +varying float v_segmentIndex; +uniform float segmentNumber; + + +uniform float u_time; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; + +uniform float u_linearColor: 0; +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; + +varying mat4 styleMappingMat; + +#pragma include "picking" + +void main() { + float opacity = styleMappingMat[0][0]; + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + float d_distance_ratio = styleMappingMat[3].g; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + + gl_FragColor = mix(u_sourceColor, u_targetColor, v_segmentIndex/segmentNumber); + + gl_FragColor.a *= opacity; + + if(u_aimate.x == Animate) { + animateSpeed = u_time / u_aimate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_aimate.z)* (1.0/ u_aimate.z) + u_time / u_aimate.y); + + alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; + // alpha = smoothstep(0., 1., alpha); + alpha = clamp(alpha, 0.0, 1.0); + gl_FragColor.a *= alpha; + + // u_aimate + // x enable + // y duration + // z interval + // w trailLength + } + + gl_FragColor = filterColor(gl_FragColor); +} +`,KS=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute vec4 a_Color; +attribute float a_Size; + +uniform float u_globel; +uniform float u_globel_radius; +uniform float u_global_height: 10; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform float segmentNumber; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; +varying vec4 v_color; +// varying vec2 v_normal; +uniform float u_line_type: 0.0; +uniform vec4 u_dash_array: [10.0, 5., 0, 0]; +varying vec4 v_dash_array; + +uniform float u_icon_step: 100; +uniform float u_line_texture: 0.0; +varying float v_segmentIndex; + +attribute vec2 a_iconMapUV; +varying vec2 v_iconMapUV; + +uniform float u_opacity: 1.0; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float maps (float value, float start1, float stop1, float start2, float stop2) { + return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); +} + +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); +} + +float paraboloid(vec2 source, vec2 target, float ratio) { + vec2 x = mix(source, target, ratio); + vec2 center = mix(source, target, 0.5); + float dSourceCenter = distance(source, center); + float dXCenter = distance(x, center); + return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); +} + +vec3 getPos(vec2 source, vec2 target, float segmentRatio) { + float vertex_height = paraboloid(source, target, segmentRatio); + + return vec3( + mix(source, target, segmentRatio), + sqrt(max(0.0, vertex_height)) + ); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +float torad(float deg) { + return (deg / 180.0) * acos(-1.0); +} + +vec3 lglt2xyz(vec2 lnglat) { + float pi = 3.1415926; + // TODO: + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 + float lng = torad(lnglat.x) + pi / 2.0; + float lat = torad(lnglat.y); + + // TODO: \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 + float radius = u_globel_radius; + + float z = radius * cos(lat) * cos(lng); + float x = radius * cos(lat) * sin(lng); + float y = radius * sin(lat); + return vec3(x, y, z); +} + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 // dataset \u6570\u636E\u96C6 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + v_color = a_Color; + vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; + vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + + float d_distance_ratio; + if(u_line_type == LineTypeDash) { + d_distance_ratio = segmentIndex / segmentNumber; + // float total_Distance = pixelDistance(a_Instance.rg, a_Instance.ba) / 2.0 * PI; + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); + } + if(u_aimate.x == Animate) { + d_distance_ratio = segmentIndex / segmentNumber; + } + styleMappingMat[3].g = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + vec3 curr = getPos(source, target, segmentRatio); + vec3 next = getPos(source, target, nextSegmentRatio); + vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + + + v_segmentIndex = a_Position.x; + if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + + float arcDistrance = length(source - target); + float pixelLen = project_pixel_texture(u_icon_step); + styleMappingMat[3].b = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + vec2 projectOffset = project_pixel(offset); + float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB + styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + v_iconMapUV = a_iconMapUV; + } + + + // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); + } + + // \u5730\u7403\u6A21\u5F0F + if(u_globel > 0.0) { + vec3 startLngLat = lglt2xyz(a_Instance.rg); + vec3 endLngLat = lglt2xyz(a_Instance.ba); + float globalRadius = length(startLngLat); + + vec3 lineDir = normalize(endLngLat - startLngLat); + vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); + + // \u7EBF\u7684\u504F\u79FB + vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; + // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB + float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; + // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 + float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; + // \u5730\u7403\u70B9\u4F4D + vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; + + gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); + } + + + setPickingColor(a_PickingColor); +} +`,$S={solid:0,dash:1},QS=function(e){(0,Ir.Z)(r,e);var i=HS(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&un.length>0?this.createTexture2D({flipY:!0,data:un,format:G.LUMINANCE,type:G.FLOAT,width:Ln,height:Vn}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_globel:this.mapService.version==="GLOBEL"?1:0,u_globel_radius:Jg,u_global_height:_t,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_textureBlend:C==="normal"?0:1,segmentNumber:ot,u_line_type:$S[O]||0,u_dash_array:j,u_texture:this.texture,u_line_texture:te?1:0,u_icon_step:Ne,u_textSize:[1024,this.iconService.canvasHeight||128],u_linearColor:qt,u_sourceColor:ar,u_targetColor:Pr}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"getShaders",value:function(){var a=this.layer.getLayerConfig(),s=a.sourceColor,f=a.targetColor;return s&&f?{frag:qS,vert:KS,type:"linear"}:{frag:XS,vert:YS,type:"normal"}}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.segmentNumber,f=s===void 0?30:s,v=a.mask,g=v===void 0?!1:v,x=a.maskInside,C=x===void 0?!0:x,T=this.getShaders(),O=T.frag,k=T.vert,j=T.type;return[this.layer.buildLayerModel({moduleName:"arc3Dline"+j,vertexShader:k,fragmentShader:O,triangulation:Zv,blend:this.getBlend(),segmentNumber:f,stencil:Pa(g,C)})]}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.size,T=C===void 0?1:C;return Array.isArray(T)?[T[0]]:[T]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:On.Attribute,descriptor:{name:"a_Instance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:4,update:function(f,v,g,x){return[g[3],g[4],g[5],g[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.texture,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}})}}]),r}(fo);function JS(e){var i=eC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function eC(){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}}var tC=`#define Animate 0.0 + +uniform float u_opacity; +uniform float u_blur : 0.9; +// varying vec2 v_normal; +varying vec4 v_color; + +uniform float u_time; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; + +uniform float segmentNumber; +varying float v_distance_ratio; + +uniform float u_linearColor: 0; +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; + +#pragma include "picking" + +void main() { + + // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u5E95\u8272 + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + gl_FragColor = mix(u_sourceColor, u_targetColor, v_distance_ratio); + } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 + gl_FragColor = v_color; + } + + + gl_FragColor.a *= u_opacity; + + if(u_aimate.x == Animate) { + float animateSpeed = u_time / u_aimate.y; // \u8FD0\u52A8\u901F\u5EA6 + float alpha =1.0 - fract( mod(1.0- v_distance_ratio, u_aimate.z)* (1.0/ u_aimate.z) + u_time / u_aimate.y); + alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; + // alpha = smoothstep(0., 1., alpha); + alpha = clamp(alpha, 0.0, 1.0); + gl_FragColor.a *= alpha; + } +}`,rC=`#define Animate 0.0 + +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute float a_Size; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform float segmentNumber; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; +varying vec4 v_color; + +uniform float u_lineDir: 1.0; + +// \u504F\u79FB\u91CF +uniform float u_thetaOffset: 0.314; + +uniform float u_opacity: 1.0; +varying float v_distance_ratio; + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float bezier3(vec3 arr, float t) { + float ut = 1. - t; + return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; +} +vec2 midPoint(vec2 source, vec2 target) { + vec2 center = target - source; + float r = length(center); + float theta = atan(center.y, center.x); + float thetaOffset = u_thetaOffset; + float r2 = r / 2.0 / cos(thetaOffset); + float theta2 = theta + thetaOffset; + vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); + if(u_lineDir == 1.0) { // \u6B63\u5411 + return mid; + } else { // \u9006\u5411 + // (mid + vmin)/2 = (s + t)/2 + vec2 vmid = source + target - mid; + return vmid; + } + // return mid; +} +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); +} +vec2 interpolate (vec2 source, vec2 target, float t) { + // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation + vec2 mid = midPoint(source, target); + vec3 x = vec3(source.x, mid.x, target.x); + vec3 y = vec3(source.y, mid.y, target.y); + return vec2(bezier3(x ,t), bezier3(y,t)); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +void main() { + v_color = a_Color; + + vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 + vec2 target = a_Instance.ba; // \u7EC8\u70B9 + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + + v_distance_ratio = segmentIndex / segmentNumber; + + if(u_aimate.x == Animate && u_lineDir != 1.0) { + v_distance_ratio = 1.0 - v_distance_ratio; + } + + vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio), 0.0, 1.0)); + vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio), 0.0, 1.0)); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + //unProjCustomCoord + + vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); + } +} +`,nC=function(e){(0,Ir.Z)(r,e);var i=JS(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getUninforms",value:function(){var a=this.layer.getLayerConfig(),s=a.opacity,f=s===void 0?1:s,v=a.sourceColor,g=a.targetColor,x=a.forward,C=x===void 0?!0:x,T=a.segmentNumber,O=T===void 0?30:T,k=a.thetaOffset,j=k===void 0?.314:k,X=0,te=[0,0,0,0],be=[0,0,0,0];return v&&g&&(te=Ji(v),be=Ji(g),X=1),{u_thetaOffset:j,u_opacity:fa()(f)?f:1,segmentNumber:O,u_blur:.9,u_lineDir:C?1:-1,u_linearColor:X,u_sourceColor:te,u_targetColor:be}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.segmentNumber,f=s===void 0?30:s;return[this.layer.buildLayerModel({moduleName:"arc2dminiline",vertexShader:rC,fragmentShader:tC,triangulation:Zv,depth:{enable:!1},blend:this.getBlend(),segmentNumber:f})]}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){var x=s.size,C=x===void 0?1:x;return Array.isArray(C)?[C[0]]:[C]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:On.Attribute,descriptor:{name:"a_Instance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:4,update:function(s,f,v,g){return[v[3],v[4],v[5],v[6]]}}})}}]),r}(fo);function iC(e){var i=aC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function aC(){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}}var oC=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 + +uniform float u_opacity; +uniform float u_textureBlend; +uniform float u_blur : 0.9; +uniform float u_line_type: 0.0; +// varying vec2 v_normal; +varying vec4 v_dash_array; +varying float v_distance_ratio; +varying vec4 v_color; + +uniform float u_time; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; + +uniform float u_line_texture: 0.0; +uniform sampler2D u_texture; +uniform vec2 u_textSize; +uniform float segmentNumber; + +varying vec2 v_iconMapUV; + +uniform float u_linearColor: 0; +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; + +varying mat4 styleMappingMat; + +#pragma include "picking" +#pragma include "project" +#pragma include "projection" + +void main() { + float opacity = styleMappingMat[0][0]; + float animateSpeed = 0.0; + float d_segmentIndex = styleMappingMat[3].g; + + // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u5E95\u8272 + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + gl_FragColor = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber); + } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 + gl_FragColor = v_color; + } + + // float blur = 1.- smoothstep(u_blur, 1., length(v_normal.xy)); + // float blur = smoothstep(1.0, u_blur, length(v_normal.xy)); + gl_FragColor.a *= opacity; + if(u_line_type == LineTypeDash) { + float flag = 0.; + float dashLength = mod(v_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w); + if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { + flag = 1.; + } + gl_FragColor.a *=flag; + } + + // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u52A8\u753B\u6A21\u5F0F + if(u_aimate.x == Animate) { + animateSpeed = u_time / u_aimate.y; + float alpha =1.0 - fract( mod(1.0- smoothstep(0.0, 1.0, v_distance_ratio), u_aimate.z)* (1.0/ u_aimate.z) + u_time / u_aimate.y); + alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; + alpha = smoothstep(0., 1., alpha); + gl_FragColor.a *= alpha; + } + + // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u8D34\u56FE + if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { + float arcRadio = smoothstep( 0.0, 1.0, (d_segmentIndex / (segmentNumber - 1.0))); + // float arcRadio = d_segmentIndex / (segmentNumber - 1.0); + float count = styleMappingMat[3].b; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + float u = fract(arcRadio * count - animateSpeed * count); + // float u = fract(arcRadio * count - animateSpeed); + if(u_aimate.x == Animate) { + u = gl_FragColor.a/opacity; + } + + float v = styleMappingMat[3].a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture2D(u_texture, uv); + + // \u8BBE\u7F6E\u8D34\u56FE\u548C\u5E95\u8272\u7684\u53E0\u52A0\u6A21\u5F0F + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + gl_FragColor = filterColor(gl_FragColor + pattern); + } else { // replace + pattern.a *= opacity; + if(gl_FragColor.a <= 0.0) { + pattern.a = 0.0; + } + gl_FragColor = filterColor(pattern); + } + } else { + gl_FragColor = filterColor(gl_FragColor); + } + + // gl_FragColor = filterColor(gl_FragColor); +}`,sC=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 + +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute float a_Size; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform float segmentNumber; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; +varying vec4 v_color; +// varying vec2 v_normal; + +varying float v_distance_ratio; +uniform float u_line_type: 0.0; +uniform vec4 u_dash_array: [10.0, 5., 0, 0]; +varying vec4 v_dash_array; + +uniform float u_icon_step: 100; +uniform float u_line_texture: 0.0; + +attribute vec2 a_iconMapUV; +varying vec2 v_iconMapUV; + +uniform float u_opacity: 1.0; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float maps (float value, float start1, float stop1, float start2, float stop2) { + return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); +} + +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); +} + +float paraboloid(vec2 source, vec2 target, float ratio) { + vec2 x = mix(source, target, ratio); + vec2 center = mix(source, target, 0.5); + float dSourceCenter = distance(source, center); + float dXCenter = distance(x, center); + return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); +} + +vec3 getPos(vec2 source, vec2 target, float segmentRatio) { + float vertex_height = paraboloid(source, target, segmentRatio); + + return vec3( + mix(source, target, segmentRatio), + sqrt(max(0.0, vertex_height)) + ); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size)/ 2.0; + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} +float getAngularDist (vec2 source, vec2 target) { + vec2 delta = source - target; + vec2 sin_half_delta = sin(delta / 2.0); + float a = + sin_half_delta.y * sin_half_delta.y + + cos(source.y) * cos(target.y) * + sin_half_delta.x * sin_half_delta.x; + return 2.0 * atan(sqrt(a), sqrt(1.0 - a)); +} + +vec2 midPoint(vec2 source, vec2 target) { + vec2 center = target - source; + float r = length(center); + float theta = atan(center.y, center.x); + float thetaOffset = 0.314; + float r2 = r / 2.0 / cos(thetaOffset); + float theta2 = theta + thetaOffset; + vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); + return mid; +} +float bezier3(vec3 arr, float t) { + float ut = 1. - t; + return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; +} + +vec2 interpolate (vec2 source, vec2 target, float angularDist, float t) { + // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + vec2 mid = midPoint(source, target); + vec3 x = vec3(source.x, mid.x, target.x); + vec3 y = vec3(source.y, mid.y, target.y); + return vec2(bezier3(x ,t), bezier3(y,t)); + }else { + if(abs(angularDist - PI) < 0.001) { + return (1.0 - t) * source + t * target; + } + float a = sin((1.0 - t) * angularDist) / sin(angularDist); + float b = sin(t * angularDist) / sin(angularDist); + vec2 sin_source = sin(source); + vec2 cos_source = cos(source); + vec2 sin_target = sin(target); + vec2 cos_target = cos(target); + float x = a * cos_source.y * cos_source.x + b * cos_target.y * cos_target.x; + float y = a * cos_source.y * sin_source.x + b * cos_target.y * sin_target.x; + float z = a * sin_source.y + b * sin_target.y; + return vec2(atan(y, x), atan(z, sqrt(x * x + y * y))); + } +} + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 // dataset \u6570\u636E\u96C6 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + v_color = a_Color; + vec2 source = radians(a_Instance.rg); + vec2 target = radians(a_Instance.ba); + float angularDist = getAngularDist(source, target); + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + if(u_line_type == LineTypeDash) { + v_distance_ratio = segmentIndex / segmentNumber; + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + total_Distance = total_Distance*8.0; + // float total_Distance = pixelDistance(a_Instance.rg, a_Instance.ba); + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); + } + if(u_aimate.x == Animate) { + v_distance_ratio = segmentIndex / segmentNumber; + } + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + v_distance_ratio = segmentIndex / segmentNumber; + vec4 curr = project_position(vec4(degrees(interpolate(source, target, angularDist, segmentRatio)), 0.0, 1.0)); + vec4 next = project_position(vec4(degrees(interpolate(source, target, angularDist, nextSegmentRatio)), 0.0, 1.0)); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); + // vec4 project_pos = project_position(vec4(curr.xy, 0, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, curr.z, 1.0)); + + styleMappingMat[3].g = a_Position.x; // \u8BE5\u9876\u70B9\u5728\u5F27\u7EBF\u4E0A\u7684\u5206\u6BB5\u6392\u5E8F + if(LineTexture == u_line_texture) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + // float mapZoomScale = u_CoordinateSystem !== COORDINATE_SYSTEM_P20_2?10000000.0:1.0; + float d_arcDistrance = length(source - target); + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap + d_arcDistrance = d_arcDistrance * 1000000.0; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox + d_arcDistrance = project_pixel_allmap(d_arcDistrance); + } + float d_pixelLen = project_pixel(u_icon_step)/8.0; + styleMappingMat[3].b = floor(d_arcDistrance/d_pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB + styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + v_iconMapUV = a_iconMapUV; + } + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(curr.xy + offset, curr.z, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, curr.z, 1.0)); + } + setPickingColor(a_PickingColor); +} + +`,uC={solid:0,dash:1},lC=function(e){(0,Ir.Z)(r,e);var i=iC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&qr.length>0?this.createTexture2D({flipY:!0,data:qr,format:G.LUMINANCE,type:G.FLOAT,width:gr,height:un}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_textureBlend:C==="normal"?0:1,segmentNumber:ot,u_line_type:uC[O]||0,u_dash_array:j,u_texture:this.texture,u_line_texture:te?1:0,u_icon_step:Ne,u_textSize:[1024,this.iconService.canvasHeight||128],u_linearColor:bt,u_sourceColor:_t,u_targetColor:qt}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;return[this.layer.buildLayerModel({moduleName:"greatcircleline",vertexShader:sC,fragmentShader:oC,triangulation:Zv,depth:{enable:!1},blend:this.getBlend(),stencil:Pa(f,g)})]}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.size,T=C===void 0?1:C;return Array.isArray(T)?[T[0]]:[T]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:On.Attribute,descriptor:{name:"a_Instance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:4,update:function(f,v,g,x){return[g[3],g[4],g[5],g[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.texture,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}})}}]),r}(fo);function cC(e){var i=fC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function fC(){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}}var hC=`#define LineTypeSolid 0.0 +uniform float u_opacity : 1.0; + +varying vec4 v_color; + +// dash +varying vec4 v_dash_array; + +#pragma include "picking" + +uniform float u_time; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; // \u63A7\u5236\u8FD0\u52A8 + +varying mat4 styleMappingMat; +// [animate, duration, interval, trailLength], +void main() { + float opacity = styleMappingMat[0][0]; + float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + gl_FragColor = v_color; + gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 + // dash line + + float flag = 0.; + float dashLength = mod(d_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w); + if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { + flag = 1.; + } + gl_FragColor.a *=flag; + + gl_FragColor = filterColor(gl_FragColor); +} +`,pC=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 + +attribute float a_Miter; +attribute vec4 a_Color; +attribute vec2 a_Size; +attribute vec3 a_Normal; +attribute vec3 a_Position; + +attribute vec2 a_iconMapUV; + +// dash line +attribute float a_Total_Distance; +attribute vec2 a_DistanceAndIndex; + +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform vec4 u_dash_array: [10.0, 5., 0, 0]; + +uniform float u_vertexScale: 1.0; + +#pragma include "projection" +#pragma include "picking" + +varying vec4 v_color; +varying vec4 v_dash_array; + +uniform float u_opacity: 1.0; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / a_Total_Distance; + v_color = a_Color; + + vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); + vec2 offset = project_pixel(size.xy); + + // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 + styleMappingMat[3][0] = a_DistanceAndIndex.x / a_Total_Distance; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + styleMappingMat[3][1] = a_DistanceAndIndex.x; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB + + vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); + + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, a_Size.y, 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xy + offset, project_pixel(a_Size.y), 1.0)); + } else { + float lineHeight = a_Size.y; + + // #define COORDINATE_SYSTEM_P20 5.0 + // #define COORDINATE_SYSTEM_P20_OFFSET 6.0 + // amap1.x + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 + lineHeight *= pow(2.0, 20.0 - u_Zoom); + } + + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight, 1.0)); + } + + setPickingColor(a_PickingColor); +} +`,dC=`#define Animate 0.0 +#define LineTexture 1.0 +uniform float u_blur : 0.99; +uniform float u_opacity : 1.0; +uniform float u_textureBlend; + +uniform float u_borderWidth: 0.0; +uniform vec4 u_borderColor; +varying vec4 v_color; + +// line texture +uniform float u_line_texture; +uniform sampler2D u_texture; +uniform vec2 u_textSize; + +varying vec2 v_iconMapUV; + +#pragma include "picking" + +uniform float u_time; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; // \u63A7\u5236\u8FD0\u52A8 + +varying mat4 styleMappingMat; +// [animate, duration, interval, trailLength], +void main() { + float opacity = styleMappingMat[0][0]; + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + gl_FragColor = v_color; + // anti-alias + // float blur = 1.0 - smoothstep(u_blur, 1., length(v_normal.xy)); + gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 + if(u_aimate.x == Animate) { + animateSpeed = u_time / u_aimate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_aimate.z)* (1.0/ u_aimate.z) + animateSpeed); + alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; + alpha = smoothstep(0., 1., alpha); + gl_FragColor.a *= alpha; + } + + if(u_line_texture == LineTexture) { // while load texture + float aDistance = styleMappingMat[3].g; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB + float d_texPixelLen = styleMappingMat[3].b; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + float u = fract(mod(aDistance, d_texPixelLen)/d_texPixelLen - animateSpeed); + float v = styleMappingMat[3].a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + // v = max(smoothstep(0.95, 1.0, v), v); + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + + // gl_FragColor = filterColor(gl_FragColor + texture2D(u_texture, vec2(u, v))); + // gl_FragColor = filterColor(gl_FragColor + texture2D(u_texture, uv)); + vec4 pattern = texture2D(u_texture, uv); + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + gl_FragColor += pattern; + } else { // replace + pattern.a *= opacity; + if(gl_FragColor.a <= 0.0) { + pattern.a = 0.0; + } + gl_FragColor = pattern; + } + } + + float v = styleMappingMat[3].a; + float borderWidth = min(0.5, u_borderWidth); + // \u7ED8\u5236 border + if(borderWidth > 0.01) { + float borderOuterWidth = borderWidth/2.0; + + if(v >= 1.0 - borderWidth || v <= borderWidth) { + if(v > borderWidth) { + float linear = smoothstep(0.0, 1.0, (v - (1.0 - borderWidth))/borderWidth); + gl_FragColor.rgb = mix(gl_FragColor.rgb, u_borderColor.rgb, linear); + } else if(v <= borderWidth) { + float linear = smoothstep(0.0, 1.0, v/borderWidth); + gl_FragColor.rgb = mix(u_borderColor.rgb, gl_FragColor.rgb, linear); + } + } + + if(v < borderOuterWidth) { + gl_FragColor.a = mix(0.0, gl_FragColor.a, v/borderOuterWidth); + } else if(v > 1.0 - borderOuterWidth) { + gl_FragColor.a = mix(gl_FragColor.a, 0.0, (v - (1.0 - borderOuterWidth))/borderOuterWidth); + } + } + + gl_FragColor = filterColor(gl_FragColor); +} +`,Sy=` +#define Animate 0.0 + +attribute float a_Miter; +attribute vec4 a_Color; +attribute vec2 a_Size; +attribute vec3 a_Normal; +attribute vec3 a_Position; + +attribute vec2 a_iconMapUV; + +// dash line +attribute float a_Total_Distance; +attribute vec2 a_DistanceAndIndex; + +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; +uniform float u_icon_step: 100; + +uniform float u_heightfixed: 0.0; +uniform float u_vertexScale: 1.0; +uniform float u_raisingHeight: 0.0; + +#pragma include "projection" +#pragma include "picking" + +varying vec4 v_color; + +// texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 +varying vec2 v_iconMapUV; + + +uniform float u_linearColor: 0; +uniform float u_arrow: 0.0; +uniform float u_arrowHeight: 3.0; +uniform float u_arrowWidth: 2.0; +uniform float u_tailWidth: 1.0; + +uniform float u_opacity: 1.0; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +vec2 calculateArrow(vec2 offset) { + /* + * \u5728\u652F\u6301\u7BAD\u5934\u7684\u65F6\u5019\uFF0C\u7B2C\u4E8C\u3001\u7B2C\u4E09\u7EC4\u9876\u70B9\u662F\u989D\u5916\u63D2\u5165\u7528\u4E8E\u6784\u5EFA\u9876\u70B9\u7684 + */ + float arrowFlag = -1.0; + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // \u9AD8\u5FB7 2.0 \u7684\u65CB\u8F6C\u89D2\u5EA6\u4E0D\u540C + arrowFlag = 1.0; + } + float pi = arrowFlag * 3.1415926/2.; + if(a_Miter < 0.) { + // \u6839\u636E\u7EBF\u7684\u4E24\u4FA7\u504F\u79FB\u4E0D\u540C\u3001\u65CB\u8F6C\u7684\u65B9\u5411\u76F8\u53CD + pi = -pi; + } + highp float angle_sin = sin(pi); + highp float angle_cos = cos(pi); + // \u8BA1\u7B97\u5782\u76F4\u4E0E\u7EBF\u65B9\u5411\u7684\u65CB\u8F6C\u77E9\u9635 + mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos); + float arrowWidth = u_arrowWidth; + float arrowHeight = u_arrowHeight; + + vec2 arrowOffset = vec2(0.0); + /* + * a_DistanceAndIndex.y \u7528\u4E8E\u6807\u8BB0\u5F53\u524D\u9876\u70B9\u5C5E\u4E8E\u54EA\u4E00\u7EC4\uFF08\u4E24\u4E2A\u9876\u70B9\u4E00\u7EC4\uFF0C\u6784\u6210\u7EBF\u7684\u5176\u5B9E\u662F\u77E9\u5F62\uFF0C\u6700\u7B80\u9700\u8981\u56DB\u4E2A\u9876\u70B9\u3001\u4E24\u7EC4\u9876\u70B9\u6784\u6210\uFF09 + */ + if(a_DistanceAndIndex.y == 0.0) { + // \u7BAD\u5934\u5C16\u90E8 + offset = vec2(0.0); + } else if(a_DistanceAndIndex.y == 1.0) { + // \u7BAD\u5934\u4E24\u4FA7 + arrowOffset = rotation_matrix*(offset * arrowHeight); + offset += arrowOffset; // \u6CBF\u7EBF\u504F\u79FB + offset = offset * arrowWidth; // \u5782\u76F4\u7EBF\u5411\u5916\u504F\u79FB\uFF08\u662F\u6784\u5EFA\u7BAD\u5934\u4E24\u4FA7\u7684\u9876\u70B9\uFF09 + } else if(a_DistanceAndIndex.y == 2.0 || a_DistanceAndIndex.y == 3.0 || a_DistanceAndIndex.y == 4.0) { + // \u504F\u79FB\u5176\u4F59\u7684\u70B9\u4F4D\uFF08\u5C06\u957F\u5EA6\u8BA9\u4F4D\u7ED9\u7BAD\u5934\uFF09 + arrowOffset = rotation_matrix*(offset * arrowHeight) * arrowWidth; + offset += arrowOffset;// \u6CBF\u7EBF\u504F\u79FB + } + + return offset; +} + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + float d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + + v_iconMapUV = a_iconMapUV; + d_texPixelLen = project_float_pixel(u_icon_step); + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + d_texPixelLen *= 10.0; + } + + v_color = a_Color; + + vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); + + vec2 offset = project_pixel(size.xy); + + float lineDistance = a_DistanceAndIndex.x; + float currentLinePointRatio = lineDistance / a_Total_Distance; + + if(u_arrow > 0.0) { + // \u8BA1\u7B97\u7BAD\u5934 + offset = calculateArrow(offset); + + if(a_DistanceAndIndex.y > 4.0) { + offset *= mix(1.0, u_tailWidth, currentLinePointRatio); + } + } + + float lineOffsetWidth = length(offset + offset * sign(a_Miter)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB\uFF08\u5411\u4E24\u4FA7\u504F\u79FB\u7684\u548C\uFF09 + float linePixelSize = project_pixel(a_Size.x) * 2.0; // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB \u5355\u4FA7 * 2 + float texV = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 + styleMappingMat[3][0] = currentLinePointRatio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + styleMappingMat[3][1] = lineDistance; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB + styleMappingMat[3][2] = d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + styleMappingMat[3][3] = texV; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); + + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, a_Size.y, 1.0)); + + float h = float(a_Position.z) * u_vertexScale; // \u7EBF\u9876\u70B9\u7684\u9AD8\u5EA6 - \u517C\u5BB9\u4E0D\u5B58\u5728\u7B2C\u4E09\u4E2A\u6570\u503C\u7684\u60C5\u51B5 vertex height + float lineHeight = a_Size.y; // size \u7B2C\u4E8C\u4E2A\u53C2\u6570\u4EE3\u8868\u7684\u9AD8\u5EA6 [linewidth, lineheight] + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + lineHeight *= 0.2; // \u4FDD\u6301\u548C amap/mapbox \u4E00\u81F4\u7684\u6548\u679C + h *= 0.2; + if(u_heightfixed < 1.0) { + lineHeight = project_pixel(a_Size.y); + } + gl_Position = u_Mvp * (vec4(project_pos.xy + offset, lineHeight + h + u_raisingHeight, 1.0)); + } else { + // mapbox - amap + + // \u517C\u5BB9 mapbox \u5728\u7EBF\u9AD8\u5EA6\u4E0A\u7684\u6548\u679C\u8868\u73B0\u57FA\u672C\u4E00\u81F4 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // mapbox + // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + h *= mapboxZoomScale; + h += u_raisingHeight * mapboxZoomScale; + if(u_heightfixed > 0.0) { + lineHeight *= mapboxZoomScale; + } + + } else { + // amap + h += u_raisingHeight; + // lineHeight \u9876\u70B9\u504F\u79FB\u9AD8\u5EA6 + if(u_heightfixed < 1.0) { + lineHeight *= pow(2.0, 20.0 - u_Zoom); + } + } + + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0)); + } + + setPickingColor(a_PickingColor); +} +`,vC=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 +uniform float u_blur : 0.99; +uniform float u_line_type: 0.0; +uniform float u_opacity : 1.0; + +varying vec4 v_color; + +uniform float u_linearColor: 0; +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; + +#pragma include "picking" + + +varying mat4 styleMappingMat; +// [animate, duration, interval, trailLength], +void main() { + float opacity = styleMappingMat[0][0]; + float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + gl_FragColor = mix(u_sourceColor, u_targetColor, d_distance_ratio); + } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 + gl_FragColor = v_color; + } + + gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 + gl_FragColor = filterColor(gl_FragColor); +} +`,mC={solid:0,dash:1},Cy=function(e){(0,Ir.Z)(r,e);var i=cC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&Oc.length>0?this.createTexture2D({flipY:!0,data:Oc,format:G.LUMINANCE,type:G.FLOAT,width:gm,height:g0}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_textureBlend:C==="normal"?0:1,u_line_type:mC[O],u_dash_array:j,u_texture:this.texture,u_line_texture:te?1:0,u_icon_step:Ne,u_textSize:[1024,this.iconService.canvasHeight||128],u_borderWidth:_t,u_borderColor:Ji(ar),u_linearColor:Fa,u_sourceColor:Ro,u_targetColor:Ls,u_heightfixed:Number(un),u_vertexScale:ot,u_raisingHeight:Number(qr),u_arrow:Number(Vn.enable),u_arrowHeight:Vn.arrowHeight||3,u_arrowWidth:Vn.arrowWidth||2,u_tailWidth:Vn.tailWidth===void 0?1:Vn.tailWidth}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=a.depth,C=x===void 0?!1:x,T=this.getShaders(),O=T.frag,k=T.vert,j=T.type;return this.layer.triangulation=sv,[this.layer.buildLayerModel({moduleName:"line_"+j,vertexShader:k,fragmentShader:O,triangulation:sv,primitive:G.TRIANGLES,blend:this.getBlend(),depth:{enable:C},stencil:Pa(f,g)})]}},{key:"getShaders",value:function(){var a=this.layer.getLayerConfig(),s=a.sourceColor,f=a.targetColor,v=a.lineType;return v==="dash"?{frag:hC,vert:pC,type:"dash"}:s&&f?{frag:vC,vert:Sy,type:"linear"}:{frag:dC,vert:Sy,type:"normal"}}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"distanceAndIndex",type:On.Attribute,descriptor:{name:"a_DistanceAndIndex",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x,C,T){return T===void 0?[g[3],10]:[g[3],T]}}}),this.styleAttributeService.registerStyleAttribute({name:"total_distance",type:On.Attribute,descriptor:{name:"a_Total_Distance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){return[g[5]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=f.size,T=C===void 0?1:C;return Array.isArray(T)?[T[0],T[1]]:[T,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:On.Attribute,descriptor:{name:"a_Normal",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v,g,x,C){return C}}}),this.styleAttributeService.registerStyleAttribute({name:"miter",type:On.Attribute,descriptor:{name:"a_Miter",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){return[g[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.texture,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}})}}]),r}(fo);function gC(e){var i=yC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function yC(){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}}var _C=`uniform float u_opacity : 1.0; +uniform sampler2D u_texture; + +#pragma include "picking" + +varying mat4 styleMappingMat; + +void main() { + float opacity = styleMappingMat[0][0]; + float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + + gl_FragColor = texture2D(u_texture, vec2(d_distance_ratio, 0.5)); + + gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 + gl_FragColor = filterColor(gl_FragColor); +} +`,xC=` +attribute float a_Miter; +attribute vec2 a_Size; +attribute vec3 a_Normal; +attribute vec3 a_Position; + +// dash line +attribute float a_Total_Distance; +attribute vec2 a_DistanceAndIndex; + +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; + +uniform float u_heightfixed: 0.0; +uniform float u_vertexScale: 1.0; +uniform float u_raisingHeight: 0.0; + +uniform float u_opacity: 1.0; + +#pragma include "projection" +#pragma include "picking" + +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); + + vec2 offset = project_pixel(size.xy); + + float lineDistance = a_DistanceAndIndex.x; + float currentLinePointRatio = lineDistance / a_Total_Distance; + + + float lineOffsetWidth = length(offset + offset * sign(a_Miter)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB\uFF08\u5411\u4E24\u4FA7\u504F\u79FB\u7684\u548C\uFF09 + float linePixelSize = project_pixel(a_Size.x) * 2.0; // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB \u5355\u4FA7 * 2 + float texV = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 + styleMappingMat[3][0] = currentLinePointRatio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + + vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); + + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, a_Size.y, 1.0)); + + float h = float(a_Position.z) * u_vertexScale; // \u7EBF\u9876\u70B9\u7684\u9AD8\u5EA6 - \u517C\u5BB9\u4E0D\u5B58\u5728\u7B2C\u4E09\u4E2A\u6570\u503C\u7684\u60C5\u51B5 vertex height + float lineHeight = a_Size.y; // size \u7B2C\u4E8C\u4E2A\u53C2\u6570\u4EE3\u8868\u7684\u9AD8\u5EA6 [linewidth, lineheight] + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + lineHeight *= 0.2; // \u4FDD\u6301\u548C amap/mapbox \u4E00\u81F4\u7684\u6548\u679C + h *= 0.2; + if(u_heightfixed < 1.0) { + lineHeight = project_pixel(a_Size.y); + } + gl_Position = u_Mvp * (vec4(project_pos.xy + offset, lineHeight + h + u_raisingHeight, 1.0)); + } else { + // mapbox - amap + + // \u517C\u5BB9 mapbox \u5728\u7EBF\u9AD8\u5EA6\u4E0A\u7684\u6548\u679C\u8868\u73B0\u57FA\u672C\u4E00\u81F4 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // mapbox + // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + h *= mapboxZoomScale; + h += u_raisingHeight * mapboxZoomScale; + if(u_heightfixed > 0.0) { + lineHeight *= mapboxZoomScale; + } + + } else { + // amap + h += u_raisingHeight; + // lineHeight \u9876\u70B9\u504F\u79FB\u9AD8\u5EA6 + if(u_heightfixed < 1.0) { + lineHeight *= pow(2.0, 20.0 - u_Zoom); + } + } + + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0)); + } + + setPickingColor(a_PickingColor); +} +`,bC=function(e){(0,Ir.Z)(r,e);var i=gC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&X.length>0?this.createTexture2D({flipY:!0,data:X,format:G.LUMINANCE,type:G.FLOAT,width:te,height:be}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_texture:this.colorTexture,u_heightfixed:Number(O),u_vertexScale:g,u_raisingHeight:Number(C)}}},{key:"initModels",value:function(){return this.updateTexture(),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.colorTexture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=a.depth,C=x===void 0?!1:x,T=this.getShaders(),O=T.frag,k=T.vert,j=T.type;return this.layer.triangulation=sv,[this.layer.buildLayerModel({moduleName:"line_"+j,vertexShader:k,fragmentShader:O,triangulation:sv,primitive:G.TRIANGLES,blend:this.getBlend(),depth:{enable:C},stencil:Pa(f,g)})]}},{key:"getShaders",value:function(){return{frag:_C,vert:xC,type:"linear_rampColors"}}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"distanceAndIndex",type:On.Attribute,descriptor:{name:"a_DistanceAndIndex",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(s,f,v,g,x,C){return C===void 0?[v[3],10]:[v[3],C]}}}),this.styleAttributeService.registerStyleAttribute({name:"total_distance",type:On.Attribute,descriptor:{name:"a_Total_Distance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){return[v[5]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(s,f,v,g){var x=s.size,C=x===void 0?1:x;return Array.isArray(C)?[C[0],C[1]]:[C,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:On.Attribute,descriptor:{name:"a_Normal",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(s,f,v,g,x){return x}}}),this.styleAttributeService.registerStyleAttribute({name:"miter",type:On.Attribute,descriptor:{name:"a_Miter",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){return[v[4]]}}})}}]),r}(fo);function EC(e){var i=SC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function SC(){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}}var CC=`uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; + +varying mat4 styleMappingMat; +void main() { + float opacity = styleMappingMat[0][0]; + float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + + gl_FragColor = mix(u_sourceColor, u_targetColor, d_distance_ratio); + gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 +} +`,AC=` +varying vec4 v_color; +varying mat4 styleMappingMat; +void main() { + float opacity = styleMappingMat[0][0]; + float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + + gl_FragColor = v_color; + gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 +} +`,Ay=`attribute vec4 a_Color; +attribute vec2 a_Size; +attribute vec3 a_Position; + +attribute float a_Total_Distance; +attribute float a_Distance; + +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; + +uniform float u_opacity: 1.0; +uniform float u_vertexScale: 1.0; + +#pragma include "projection" + +varying vec4 v_color; + +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + float d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + v_color = a_Color; + + vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); + + float h = float(a_Position.z) * u_vertexScale; // \u7EBF\u9876\u70B9\u7684\u9AD8\u5EA6 - \u517C\u5BB9\u4E0D\u5B58\u5728\u7B2C\u4E09\u4E2A\u6570\u503C\u7684\u60C5\u51B5 + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xy, project_pixel(a_Size.y) + h * 0.2, 1.0)); + } else { + float lineHeight = a_Size.y; + // \u517C\u5BB9 mapbox \u5728\u7EBF\u9AD8\u5EA6\u4E0A\u7684\u6548\u679C\u8868\u73B0\u57FA\u672C\u4E00\u81F4 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 + h *= 2.0/pow(2.0, 20.0 - u_Zoom); + } + + // #define COORDINATE_SYSTEM_P20 5.0 + // #define COORDINATE_SYSTEM_P20_OFFSET 6.0 + // amap1.x + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 + lineHeight *= pow(2.0, 20.0 - u_Zoom); + } + + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, lineHeight + h, 1.0)); + } +} +`,wC=function(e){(0,Ir.Z)(r,e);var i=EC(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getUninforms",value:function(){var a=this.layer.getLayerConfig(),s=a.opacity,f=s===void 0?1:s,v=a.sourceColor,g=a.targetColor,x=a.vertexHeightScale,C=x===void 0?20:x,T=0,O=[0,0,0,0],k=[0,0,0,0];if(v&&g&&(O=Ji(v),k=Ji(g),T=1),this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:f})){this.judgeStyleAttributes({opacity:f});var j=this.layer.getEncodedData(),X=this.calDataFrame(this.cellLength,j,this.cellProperties),te=X.data,be=X.width,Ne=X.height;this.rowCount=Ne,this.dataTexture=this.cellLength>0&&te.length>0?this.createTexture2D({flipY:!0,data:te,format:G.LUMINANCE,type:G.FLOAT,width:be,height:Ne}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_linearColor:T,u_sourceColor:O,u_targetColor:k,u_vertexScale:C}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.buildModels()}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"getShaders",value:function(){var a=this.layer.getLayerConfig(),s=a.sourceColor,f=a.targetColor;return s&&f?{frag:CC,vert:Ay,type:"simple_linear"}:{frag:AC,vert:Ay,type:"simple_normal"}}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=this.getShaders(),C=x.frag,T=x.vert,O=x.type;return[this.layer.buildLayerModel({moduleName:O,vertexShader:T,fragmentShader:C,triangulation:BE,primitive:G.LINES,blend:this.getBlend(),depth:{enable:!1},stencil:Pa(f,g)})]}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"distance",type:On.Attribute,descriptor:{name:"a_Distance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){return[v[3]]}}}),this.styleAttributeService.registerStyleAttribute({name:"total_distance",type:On.Attribute,descriptor:{name:"a_Total_Distance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){return[v[5]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(s,f,v,g){var x=s.size,C=x===void 0?1:x;return Array.isArray(C)?[C[0],C[1]]:[C,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:On.Attribute,descriptor:{name:"a_Normal",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(s,f,v,g,x){return x}}}),this.styleAttributeService.registerStyleAttribute({name:"miter",type:On.Attribute,descriptor:{name:"a_Miter",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){return[v[4]]}}})}}]),r}(fo);function TC(e){var i=MC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function MC(){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}}var PC=`#define Animate 0.0 +#define LineTexture 1.0 + +uniform float u_opacity : 1.0; +uniform float u_textureBlend; +uniform float u_iconStepCount; + +varying vec4 v_color; + +// line texture +uniform float u_line_texture; +uniform sampler2D u_texture; +uniform vec2 u_textSize; + +varying vec2 v_iconMapUV; +varying float v_blur; + +uniform float u_linearColor: 0; +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; + +#pragma include "picking" + +uniform float u_time; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; // \u63A7\u5236\u8FD0\u52A8 + +varying mat4 styleMappingMat; +// [animate, duration, interval, trailLength], +void main() { + float opacity = styleMappingMat[0][0]; + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + float v = styleMappingMat[3].a; + + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + gl_FragColor = mix(u_sourceColor, u_targetColor, v); + } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 + gl_FragColor = v_color; + } + + gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 + if(u_aimate.x == Animate) { + animateSpeed = u_time / u_aimate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_aimate.z)* (1.0/ u_aimate.z) + animateSpeed); + alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; + alpha = smoothstep(0., 1., alpha); + gl_FragColor.a *= alpha; + } + + if(u_line_texture == LineTexture) { // while load texture + float aDistance = styleMappingMat[3].g; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB + float d_texPixelLen = styleMappingMat[3].b; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + float u = fract(mod(aDistance, d_texPixelLen)/d_texPixelLen - animateSpeed); + float v = styleMappingMat[3].a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + // \u8BA1\u7B97\u7EB9\u7406\u95F4\u9694 start + float flag = 0.0; + if(u > 1.0/u_iconStepCount) { + flag = 1.0; + } + u = fract(u*u_iconStepCount); + // \u8BA1\u7B97\u7EB9\u7406\u95F4\u9694 end + + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture2D(u_texture, uv); + + // Tip: \u5224\u65AD\u7EB9\u7406\u95F4\u9694 + if(flag > 0.0) { + pattern = vec4(0.0); + } + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + gl_FragColor = filterColor(gl_FragColor + pattern); + } else { // replace + pattern.a *= opacity; + if(gl_FragColor.a <= 0.0) { + pattern.a = 0.0; + } + gl_FragColor = filterColor(pattern); + } + } + + + // blur - AA + if(v < v_blur) { + gl_FragColor.a = mix(0.0, gl_FragColor.a, v/v_blur); + } else if(v > 1.0 - v_blur) { + gl_FragColor.a = mix(gl_FragColor.a, 0.0, (v - (1.0 - v_blur))/v_blur); + } + + gl_FragColor = filterColor(gl_FragColor); +} +`,IC=`#define Animate 0.0 + +attribute float a_Miter; +attribute vec4 a_Color; +attribute vec2 a_Size; +attribute vec3 a_Normal; +attribute vec3 a_Position; +attribute vec2 a_iconMapUV; + +attribute float a_Total_Distance; +attribute float a_Distance; + +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; +uniform float u_icon_step: 100; +uniform float u_heightfixed; + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +varying vec4 v_color; +varying float v_blur; + +// texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 +varying vec2 v_iconMapUV; + +uniform float u_linearColor: 0; + +uniform float u_opacity: 1.0; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "light" +#pragma include "styleMappingCalOpacity" + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + float d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + float d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + + v_iconMapUV = a_iconMapUV; + if(u_heightfixed < 1.0) { // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 + d_texPixelLen = project_pixel(u_icon_step); + } else { + d_texPixelLen = u_icon_step; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + d_texPixelLen *= 10.0; + } + + if(u_aimate.x == Animate || u_linearColor == 1.0) { + d_distance_ratio = a_Distance / a_Total_Distance; + } + + float miter = (a_Miter + 1.0)/2.0; + // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 + styleMappingMat[3][0] = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + styleMappingMat[3][1] = a_Distance; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB + styleMappingMat[3][2] = d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + styleMappingMat[3][3] = miter; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C 0 - 1 + + vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); + + float originSize = a_Size.x; // \u56FA\u5B9A\u9AD8\u5EA6 + if(u_heightfixed < 1.0) { // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 + originSize = project_float_pixel(a_Size.x); + } + + float wallHeight = originSize * miter; + float lightWeight = calc_lighting(vec4(project_pos.xy, wallHeight, 1.0)); + + v_blur = min(project_float_pixel(2.0) / originSize, 0.05); + + v_color = vec4(a_Color.rgb * lightWeight, a_Color.w); + // v_color = a_Color; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xy, wallHeight, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, wallHeight, 1.0)); + } + + setPickingColor(a_PickingColor); +} +`,OC=function(e){(0,Ir.Z)(r,e);var i=TC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&ar.length>0?this.createTexture2D({flipY:!0,data:ar,format:G.LUMINANCE,type:G.FLOAT,width:Pr,height:qr}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_heightfixed:Number(O),u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_textureBlend:C==="normal"?0:1,u_texture:this.texture,u_line_texture:j?1:0,u_iconStepCount:Ne,u_icon_step:te,u_textSize:[1024,this.iconService.canvasHeight||128],u_linearColor:$e,u_sourceColor:ot,u_targetColor:bt}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"buildModels",value:function(){return[this.layer.buildLayerModel({moduleName:"linewall",vertexShader:IC,fragmentShader:PC,triangulation:sv,primitive:G.TRIANGLES,blend:this.getBlend(),depth:{enable:!1}})]}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"distance",type:On.Attribute,descriptor:{name:"a_Distance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){return[g[3]]}}}),this.styleAttributeService.registerStyleAttribute({name:"total_distance",type:On.Attribute,descriptor:{name:"a_Total_Distance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){return[g[5]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=f.size,T=C===void 0?1:C;return Array.isArray(T)?[T[0],T[1]]:[T,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:On.Attribute,descriptor:{name:"a_Normal",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v,g,x,C){return C}}}),this.styleAttributeService.registerStyleAttribute({name:"miter",type:On.Attribute,descriptor:{name:"a_Miter",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){return[g[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.texture,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}})}}]),r}(fo),RC={arc:GS,arcmini:nC,arc3d:QS,greatcircle:lC,wall:OC,line:Cy,simple:wC,linearline:bC},LC=RC;function kC(e){var i=DC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function DC(){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}}var wy=function(e){(0,Ir.Z)(r,e);var i=kC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f 0.0) { + gl_FragColor.a *= u_opacitylinear_dir > 0.0 ? (1.0 - barLinearZ): barLinearZ; + } + + // picking + if(u_pickLight > 0.0) { + gl_FragColor = filterColorAlpha(gl_FragColor, lightWeight); + } else { + gl_FragColor = filterColor(gl_FragColor); + } +} +`,zC=`precision highp float; + +#define pi 3.1415926535 +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + +attribute vec3 a_Position; +attribute vec3 a_Pos; +attribute vec4 a_Color; +attribute vec3 a_Size; +attribute vec3 a_Normal; + +uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A +uniform float u_globel; +uniform float u_r; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +varying vec4 v_color; + +uniform float u_opacity : 1; +uniform float u_lightEnable: 1; + +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +float getYRadian(float x, float z) { + if(x > 0.0 && z > 0.0) { + return atan(x/z); + } else if(x > 0.0 && z <= 0.0){ + return atan(-z/x) + pi/2.0; + } else if(x <= 0.0 && z <= 0.0) { + return pi + atan(x/z); //atan(x/z) + + } else { + return atan(z/-x) + pi*3.0/2.0; + } +} + +float getXRadian(float y, float r) { + return atan(y/r); +} + +void main() { + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - lightWeight + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - linearZ(\u5782\u76F4\u65B9\u5411 0 - 1 \u7684\u503C) + 0.0, 0.0, 0.0, 0.0 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + vec3 size = a_Size * a_Position; + + // a_Position.z \u662F\u5728\u6784\u5EFA\u7F51\u683C\u7684\u65F6\u5019\u4F20\u5165\u7684\u6807\u51C6\u503C 0 - 1\uFF0C\u5728\u63D2\u503C\u5668\u63D2\u503C\u53EF\u4EE5\u83B7\u53D6 0\uFF5E1 \u7EBF\u6027\u6E10\u53D8\u7684\u503C + styleMappingMat[2][3] = a_Position.z; + + vec3 offset = size; // \u63A7\u5236\u5706\u67F1\u4F53\u7684\u5927\u5C0F - \u4ECE\u6807\u51C6\u5355\u4F4D\u5706\u67F1\u4F53\u8FDB\u884C\u504F\u79FB + if(u_heightfixed < 1.0) { // \u5706\u67F1\u4F53\u4E0D\u56FA\u5B9A\u9AD8\u5EA6 + + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + offset = offset * pow(2.0, (19.0 - u_Zoom)); + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + offset = offset * pow(2.0, (19.0 - 3.0 - u_Zoom)); + } + } else {// \u5706\u67F1\u4F53\u56FA\u5B9A\u9AD8\u5EA6 \uFF08 \u5904\u7406 mapbox \uFF09 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + offset *= 4.0/pow(2.0, 21.0 - u_Zoom); + } + } + + + vec4 project_pos = project_position(vec4(a_Pos.xy, 0., 1.0)); + + // u_r \u63A7\u5236\u5706\u67F1\u7684\u751F\u957F + vec4 pos = vec4(project_pos.xy + offset.xy, offset.z * u_r, 1.0); + + // \u5706\u67F1\u5149\u7167\u6548\u679C + float lightWeight = 1.0; + if(u_lightEnable > 0.0) { // \u53D6\u6D88\u4E09\u5143\u8868\u8FBE\u5F0F\uFF0C\u589E\u5F3A\u5065\u58EE\u6027 + lightWeight = calc_lighting(pos); + } + styleMappingMat[1][3] = lightWeight; + + v_color =vec4(a_Color.rgb * lightWeight, a_Color.w); + + // gl_Position = project_common_position_to_clipspace(pos); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * pos; + } else { + gl_Position = project_common_position_to_clipspace(pos); + } + + if(u_globel > 0.0) { + // \u5728\u5730\u7403\u6A21\u5F0F\u4E0B\uFF0C\u5C06\u539F\u672C\u5782\u76F4\u4E8E xy \u5E73\u9762\u7684\u5706\u67F1\u8C03\u6574\u59FF\u6001\u5230\u9002\u5E94\u5706\u7684\u89D2\u5EA6 + //\u65CB\u8F6C\u77E9\u9635mx\uFF0C\u521B\u5EFA\u7ED5x\u8F74\u65CB\u8F6C\u77E9\u9635 + float r = sqrt(a_Pos.z*a_Pos.z + a_Pos.x*a_Pos.x); + float xRadian = getXRadian(a_Pos.y, r); + float xcos = cos(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C + float xsin = sin(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C + mat4 mx = mat4( + 1,0,0,0, + 0,xcos,-xsin,0, + 0,xsin,xcos,0, + 0,0,0,1); + + //\u65CB\u8F6C\u77E9\u9635my\uFF0C\u521B\u5EFA\u7ED5y\u8F74\u65CB\u8F6C\u77E9\u9635 + float yRadian = getYRadian(a_Pos.x, a_Pos.z); + float ycos = cos(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C + float ysin = sin(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C + mat4 my = mat4( + ycos,0,-ysin,0, + 0,1,0,0, + ysin,0,ycos,0, + 0,0,0,1); + + gl_Position = u_ViewProjectionMatrix * vec4(( my * mx * vec4(a_Position * a_Size, 1.0)).xyz + a_Pos, 1.0); + } + + setPickingColor(a_PickingColor); +} +`,Ty=function(e){(0,Ir.Z)(r,e);var i=FC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&bt.length>0?this.createTexture2D({flipY:!0,data:bt,format:G.LUMINANCE,type:G.FLOAT,width:_t,height:qt}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}var ar=0,Pr=[0,0,0,0],qr=[0,0,0,0];if(x&&C&&(Pr=Ji(x),qr=Ji(C),ar=1),this.raiseCount<1&&this.raiserepeat>0&&f.enable){var gr=f.speed,un=gr===void 0?.01:gr,Ln=f.repeat,Vn=Ln===void 0?!1:Ln;this.raiseCount+=un,this.raiseCount>=1&&(this.raiserepeat>1?(this.raiseCount=0,this.raiserepeat--):this.raiseCount=1)}return{u_pickLight:Number(O),u_heightfixed:Number(j),u_r:f.enable&&this.raiserepeat>0?this.raiseCount:1,u_globel:this.mapService.version==="GLOBEL"?1:0,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(g)?g:1,u_linearColor:ar,u_sourceColor:Pr,u_targetColor:qr,u_opacitylinear:Number(te.enable),u_opacitylinear_dir:te.dir==="up"?1:0,u_lightEnable:Number(Ne)}}},{key:"initModels",value:function(){return this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.depth,f=s===void 0?!0:s,v=a.animateOption.repeat,g=v===void 0?1:v;return this.raiserepeat=g,[this.layer.buildLayerModel({moduleName:"pointExtrude2",vertexShader:zC,fragmentShader:NC,triangulation:cy,blend:this.getBlend(),cull:{enable:!0,face:h(this.mapService.version)},depth:{enable:f}})]}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"registerBuiltinAttributes",value:function(){var a=this.mapService.version==="GLOBEL";this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v,g,x){var C=f.size;if(C){var T=[];return Array.isArray(C)&&(T=C.length===2?[C[0],C[0],C[1]]:C),Array.isArray(C)||(T=[C,C,C]),T}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:On.Attribute,descriptor:{name:"a_Normal",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v,g,x,C){return C}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:On.Attribute,descriptor:{name:"a_Pos",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v){var g=Mp(f.coordinates);return a?ty([g[0],g[1]]):[g[0],g[1],0]}}})}}]),r}(fo);function UC(e){var i=ZC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function ZC(){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}}var My=` +uniform float u_additive; + +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E + +varying vec4 v_data; +varying vec4 v_color; +varying float v_radius; +uniform float u_time; +uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; + +#pragma include "sdf_2d" +#pragma include "picking" + +void main() { + + vec4 textrueStroke = vec4( + styleMappingMat[1][0], + styleMappingMat[1][1], + styleMappingMat[1][2], + styleMappingMat[1][3] + ); + + float opacity = styleMappingMat[0][0]; + + lowp float antialiasblur = v_data.z; + float r = v_radius / (v_radius); + + float outer_df; + float inner_df; + // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' + + outer_df = sdCircle(v_data.xy, 1.0); + inner_df = sdCircle(v_data.xy, r); + + + float opacity_t = smoothstep(0.0, antialiasblur, outer_df); + + float color_t = smoothstep( + antialiasblur, + 0.0, + inner_df + ); + float PI = 3.14159; + float N_RINGS = 3.0; + float FREQ = 1.0; + + gl_FragColor = vec4(v_color.rgb, v_color.a * opacity); + + float d = length(v_data.xy); + if(d > 0.5) { + discard; + } + float intensity = clamp(cos(d * PI), 0.0, 1.0) * clamp(cos(2.0 * PI * (d * 2.0 * u_aimate.z - u_aimate.y * u_time)), 0.0, 1.0); + + // TODO: \u6839\u636E\u53E0\u52A0\u6A21\u5F0F\u9009\u62E9\u6548\u679C + if(u_additive > 0.0) { + gl_FragColor *= intensity; + // TODO: \u4F18\u5316\u6C34\u6CE2\u70B9 blend additive \u6A21\u5F0F\u4E0B\u6709\u7684\u62FE\u53D6\u6548\u679C + gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a); + } else { + gl_FragColor = vec4(gl_FragColor.xyz, gl_FragColor.a * intensity); + gl_FragColor = filterColor(gl_FragColor); + } +} +`,jC=` +uniform float u_globel; +uniform float u_additive; + +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E + +varying vec4 v_data; +varying vec4 v_color; +varying float v_radius; + +#pragma include "sdf_2d" +#pragma include "picking" + + +void main() { + int shape = int(floor(v_data.w + 0.5)); + + vec4 textrueStroke = vec4( + styleMappingMat[1][0], + styleMappingMat[1][1], + styleMappingMat[1][2], + styleMappingMat[1][3] + ); + + float opacity = styleMappingMat[0][0]; + float stroke_opacity = styleMappingMat[0][1]; + float strokeWidth = styleMappingMat[0][2]; + vec4 strokeColor = textrueStroke == vec4(0) ? v_color : textrueStroke; + + lowp float antialiasblur = v_data.z; + float r = v_radius / (v_radius + strokeWidth); + + float outer_df; + float inner_df; + // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' + if (shape == 0) { + outer_df = sdCircle(v_data.xy, 1.0); + inner_df = sdCircle(v_data.xy, r); + } else if (shape == 1) { + outer_df = sdEquilateralTriangle(1.1 * v_data.xy); + inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy); + } else if (shape == 2) { + outer_df = sdBox(v_data.xy, vec2(1.)); + inner_df = sdBox(v_data.xy, vec2(r)); + } else if (shape == 3) { + outer_df = sdPentagon(v_data.xy, 0.8); + inner_df = sdPentagon(v_data.xy, r * 0.8); + } else if (shape == 4) { + outer_df = sdHexagon(v_data.xy, 0.8); + inner_df = sdHexagon(v_data.xy, r * 0.8); + } else if (shape == 5) { + outer_df = sdOctogon(v_data.xy, 1.0); + inner_df = sdOctogon(v_data.xy, r); + } else if (shape == 6) { + outer_df = sdHexagram(v_data.xy, 0.52); + inner_df = sdHexagram(v_data.xy, r * 0.52); + } else if (shape == 7) { + outer_df = sdRhombus(v_data.xy, vec2(1.0)); + inner_df = sdRhombus(v_data.xy, vec2(r)); + } else if (shape == 8) { + outer_df = sdVesica(v_data.xy, 1.1, 0.8); + inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8); + } + + if(u_globel > 0.0) { + // TODO: \u5730\u7403\u6A21\u5F0F\u4E0B\u907F\u514D\u591A\u4F59\u7247\u5143\u7ED8\u5236\uFF0C\u540C\u65F6\u4E5F\u80FD\u907F\u514D\u6709\u7528\u7247\u5143\u5728\u900F\u660E\u4E14\u91CD\u53E0\u7684\u60C5\u51B5\u4E0B\u65E0\u6CD5\u5199\u5165 + // \u4ED8\u51FA\u7684\u4EE3\u4EF7\u662F\u8FB9\u7F18\u4F1A\u6709\u4E00\u4E9B\u952F\u9F7F + if(outer_df > antialiasblur + 0.018) discard; + } + float opacity_t = smoothstep(0.0, antialiasblur, outer_df); + + float color_t = strokeWidth < 0.01 ? 0.0 : smoothstep( + antialiasblur, + 0.0, + inner_df + ); + + if(strokeWidth < 0.01) { + gl_FragColor = vec4(v_color.rgb, v_color.a * opacity); + } else { + gl_FragColor = mix(vec4(v_color.rgb, v_color.a * opacity), strokeColor * stroke_opacity, color_t); + } + + if(u_additive > 0.0) { + gl_FragColor *= opacity_t; + gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a); + } else { + gl_FragColor.a *= opacity_t; + gl_FragColor = filterColor(gl_FragColor); + } +} +`,U0=`attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec3 a_Extrude; +attribute float a_Size; +attribute float a_Shape; + +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +uniform float u_globel; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform float u_isMeter; + +varying vec4 v_data; +varying vec4 v_color; +varying float v_radius; + +uniform float u_opacity : 1; +uniform float u_stroke_opacity : 1; +uniform float u_stroke_width : 2; +uniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0]; +uniform vec2 u_offsets; + +uniform float u_blur : 0.0; +uniform float u_raisingHeight: 0.0; + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" +#pragma include "styleMappingCalStrokeOpacity" +#pragma include "styleMappingCalStrokeWidth" + +#pragma include "projection" +#pragma include "picking" + + +void main() { + vec3 extrude = a_Extrude; + float shape_type = a_Shape; + float newSize = setPickingSize(a_Size); + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + + vec2 strokeOpacityAndOffset = calStrokeOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][1] = strokeOpacityAndOffset.r; + textureOffset = strokeOpacityAndOffset.g; + + vec2 strokeWidthAndOffset = calStrokeWidthAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][2] = strokeWidthAndOffset.r; + textureOffset = strokeWidthAndOffset.g; + + vec4 textrueStroke = vec4(-1.0, -1.0, -1.0, -1.0); + if(hasStroke()) { + vec2 valueRPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + styleMappingMat[1][0] = pos2value(valueRPos, columnWidth, rowHeight); // R + textureOffset += 1.0; + + vec2 valueGPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + styleMappingMat[1][1] = pos2value(valueGPos, columnWidth, rowHeight); // G + textureOffset += 1.0; + + vec2 valueBPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + styleMappingMat[1][2] = pos2value(valueBPos, columnWidth, rowHeight); // B + textureOffset += 1.0; + + vec2 valueAPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + styleMappingMat[1][3] = pos2value(valueAPos, columnWidth, rowHeight); // A + textureOffset += 1.0; + } else { + if(u_stroke_color == vec4(0.0)) { + styleMappingMat[1][0] = v_color.r; + styleMappingMat[1][1] = v_color.g; + styleMappingMat[1][2] = v_color.b; + styleMappingMat[1][3] = v_color.a; + } else { + styleMappingMat[1][0] = u_stroke_color.r; + styleMappingMat[1][1] = u_stroke_color.g; + styleMappingMat[1][2] = u_stroke_color.b; + styleMappingMat[1][3] = u_stroke_color.a; + } + } + + vec2 textrueOffsets = vec2(0.0, 0.0); + if(hasOffsets()) { + vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + + vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + } else { + textrueOffsets = u_offsets; + } + + // cal style mapping + + // unpack color(vec2) + v_color = a_Color; + + // radius(16-bit) + v_radius = newSize; + + // TODO: billboard + // anti-alias + // float antialiased_blur = -max(u_blur, antialiasblur); + float antialiasblur = -max(2.0 / u_DevicePixelRatio / a_Size, u_blur); + + vec2 offset = (extrude.xy * (newSize + u_stroke_width) + textrueOffsets); + vec3 aPosition = a_Position; + if(u_isMeter < 1.0) { + // \u4E0D\u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D + offset = project_pixel(offset); + } else { + // \u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D + antialiasblur *= pow(19.0 - u_Zoom, 2.0); + antialiasblur = max(antialiasblur, -0.01); + // offset *= 0.5; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + aPosition.xy += offset; + offset.x = 0.0; + offset.y = 0.0; + } + } + + // TODP: /abs(extrude.x) \u662F\u4E3A\u4E86\u517C\u5BB9\u5730\u7403\u6A21\u5F0F + v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type); + + + // vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); + vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); + + float raiseHeight = u_raisingHeight; + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + raiseHeight = u_raisingHeight * mapboxZoomScale; + } + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * vec4(project_pos.xy + offset, raiseHeight, 1.0); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, u_raisingHeight, 1.0)); + } + + if(u_globel > 0.0) { + gl_Position = u_ViewProjectionMatrix * vec4(a_Position + extrude * newSize * 0.1, 1.0); + } + + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); + + setPickingColor(a_PickingColor); +} +`,Py=function(e){(0,Ir.Z)(r,e);var i=UC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&_t.length>0?this.createTexture2D({flipY:!0,data:_t,format:G.LUMINANCE,type:G.FLOAT,width:qt,height:ar}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_raisingHeight:Number($e),u_isMeter:Number(this.isMeter),u_blur:be,u_additive:X==="additive"?1:0,u_globel:this.mapService.version===js.GLOBEL?1:0,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_stroke_opacity:fa()(g)?g:1,u_stroke_width:fa()(C)?C:1,u_stroke_color:this.getStrokeColor(O),u_offsets:this.isOffsetStatic(j)?j:[0,0]}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption,f=s===void 0?{enable:!1}:s;return{u_aimate:this.animateOption2Array(f),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Op)}},{key:"initModels",value:function(){var a=this.layer.getLayerConfig(),s=a.unit,f=s===void 0?"l7size":s,v=this.mapService.version;return f==="meter"&&v!==js.L7MAP&&v!==js.GLOBEL&&(this.isMeter=!0,this.calMeter2Coord()),this.buildModels()}},{key:"calMeter2Coord",value:function(){var a=(0,on.Z)(this.layer.getSource().extent,4),s=a[0],f=a[1],v=a[2],g=a[3],x=[(s+v)/2,(f+g)/2],C=this.mapService.version;if(C===js.MAPBOX&&window.mapboxgl.MercatorCoordinate){var T=window.mapboxgl.MercatorCoordinate.fromLngLat({lng:x[0],lat:x[1]},0),O=1,k=O*T.meterInMercatorCoordinateUnits(),j=new window.mapboxgl.MercatorCoordinate(T.x-k,T.y,T.z),X=j.toLngLat();this.meter2coord=x[0]-X.lng;return}var te=this.mapService.meterToCoord(x,[s,f]),be=this.mapService.meterToCoord(x,[v===s?v+.1:v,g===f?f+.1:g]);this.meter2coord=(te+be)/2,Boolean(this.meter2coord)||(this.meter2coord=7.70681090738883)}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=a.animateOption,C=x===void 0?{enable:!1}:x,T=this.getShaders(C),O=T.frag,k=T.vert,j=T.type,X=this.mapService.version==="GLOBEL";return this.layer.triangulation=X?ly:Op,[this.layer.buildLayerModel({moduleName:"pointfill_"+j,vertexShader:k,fragmentShader:O,triangulation:X?ly:Op,depth:{enable:X},blend:this.getBlend(),stencil:Pa(f,g),cull:{enable:!0,face:h(this.mapService.version)}})]}},{key:"getShaders",value:function(a){if(a.enable)switch(a.type){case"wave":return{frag:My,vert:U0,type:"wave"};default:return{frag:My,vert:U0,type:"wave"}}else return{frag:jC,vert:U0,type:"normal"}}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"animateOption2Array",value:function(a){return[a.enable?0:1,a.speed||1,a.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var a=this,s=this.mapService.version==="GLOBEL";this.styleAttributeService.registerStyleAttribute({name:"extrude",type:On.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(v,g,x,C){var T;if(s){var O=(0,on.Z)(x,3),k=O[0],j=O[1],X=O[2],te=Xa.fromValues(0,0,1),be=Xa.fromValues(k,0,X),Ne=k>=0?Xa.angle(te,be):Math.PI*2-Xa.angle(te,be),$e=Math.PI*2-Math.asin(j/100),ot=zr();Ni(ot,ot,Ne),ui(ot,ot,$e);var bt=Xa.fromValues(1,1,0);Xa.transformMat4(bt,bt,ot),Xa.normalize(bt,bt);var _t=Xa.fromValues(-1,1,0);Xa.transformMat4(_t,_t,ot),Xa.normalize(_t,_t);var qt=Xa.fromValues(-1,-1,0);Xa.transformMat4(qt,qt,ot),Xa.normalize(qt,qt);var ar=Xa.fromValues(1,-1,0);Xa.transformMat4(ar,ar,ot),Xa.normalize(ar,ar),T=[].concat((0,Ce.Z)(bt),(0,Ce.Z)(_t),(0,Ce.Z)(qt),(0,Ce.Z)(ar))}else T=[1,1,0,-1,1,0,-1,-1,0,1,-1,0];var Pr=C%4*3;return[T[Pr],T[Pr+1],T[Pr+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(v,g,x,C){var T=v.size,O=T===void 0?5:T;return Array.isArray(O)?[O[0]*a.meter2coord]:[O*a.meter2coord]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:On.Attribute,descriptor:{name:"a_Shape",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(v,g,x,C){var T=v.shape,O=T===void 0?2:T,k=a.layer.getLayerConfig().shape2d,j=k.indexOf(O);return[j]}}})}}]),r}(fo);function VC(e){var i=GC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function GC(){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}}var HC=`uniform sampler2D u_texture; +uniform vec2 u_textSize; + +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E + +#pragma include "sdf_2d" +#pragma include "picking" +varying vec2 v_uv; // \u672C\u8EAB\u7684 uv \u5750\u6807 +varying vec2 v_Iconuv; + +void main() { + + float opacity = styleMappingMat[0][0]; + + vec2 pos = v_Iconuv / u_textSize + v_uv / u_textSize * 64.; + gl_FragColor = texture2D(u_texture, pos); + gl_FragColor.a *= opacity; + + gl_FragColor = filterColor(gl_FragColor); +} +`,WC=`attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec3 a_Extrude; +attribute float a_Size; +attribute vec2 a_Uv; +attribute float a_Rotate; + +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform mat2 u_RotateMatrix; +uniform float u_isMeter; + +varying vec2 v_uv; // \u672C\u8EAB\u7684 uv \u5750\u6807 +varying vec2 v_Iconuv; // icon \u8D34\u56FE\u7684 uv \u5750\u6807 + +uniform float u_opacity : 1; +uniform vec2 u_offsets; + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "picking" + +void main() { + vec3 extrude = a_Extrude; + + v_uv = (a_Extrude.xy + 1.0)/2.0; + v_uv.y = 1.0 - v_uv.y; + v_Iconuv = a_Uv; + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - empty - empty - empty + 0.0, 0.0, 0.0, 0.0, // empty - empty - empty - empty + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + + vec2 textrueOffsets = vec2(0.0, 0.0); + if(hasOffsets()) { + vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + + vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + } else { + textrueOffsets = u_offsets; + } + + // cal style mapping + + highp float angle_sin = sin(a_Rotate); + highp float angle_cos = cos(a_Rotate); + mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos); + + // vec2 offset = (u_RotateMatrix * extrude.xy * (a_Size) + textrueOffsets); + vec2 offset = (rotation_matrix * u_RotateMatrix * extrude.xy * (a_Size) + textrueOffsets); + vec3 aPosition = a_Position; + if(u_isMeter < 1.0) { + // \u4E0D\u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D + offset = project_pixel(offset); + } else { + // \u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + aPosition.xy += offset; + offset.x = 0.0; + offset.y = 0.0; + } + } + + + // vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); + vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * vec4(project_pos.xy + offset, 0.0, 1.0); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); + } + + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); + + setPickingColor(a_PickingColor); +} +`,XC=function(e){(0,Ir.Z)(r,e);var i=VC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&k.length>0?this.createTexture2D({flipY:!0,data:k,format:G.LUMINANCE,type:G.FLOAT,width:j,height:X}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_isMeter:Number(this.isMeter),u_RotateMatrix:new Float32Array([Math.cos(this.radian),Math.sin(this.radian),-Math.sin(this.radian),Math.cos(this.radian)]),u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_texture:this.texture,u_textSize:[1024,this.iconService.canvasHeight||128],u_opacity:fa()(f)?f:1,u_offsets:this.isOffsetStatic(g)?g:[0,0]}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Op)}},{key:"initModels",value:function(){this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture);var a=this.layer.getLayerConfig(),s=a.unit,f=s===void 0?"l7size":s,v=this.mapService.version;return f==="meter"&&v!==js.L7MAP&&v!==js.GLOBEL&&(this.isMeter=!0,this.calMeter2Coord()),this.buildModels()}},{key:"calMeter2Coord",value:function(){var a=(0,on.Z)(this.layer.getSource().extent,4),s=a[0],f=a[1],v=a[2],g=a[3],x=[(s+v)/2,(f+g)/2],C=this.mapService.version;if(C===js.MAPBOX&&window.mapboxgl.MercatorCoordinate){var T=window.mapboxgl.MercatorCoordinate.fromLngLat({lng:x[0],lat:x[1]},0),O=1,k=O*T.meterInMercatorCoordinateUnits(),j=new window.mapboxgl.MercatorCoordinate(T.x-k,T.y,T.z),X=j.toLngLat();this.meter2coord=x[0]-X.lng;return}var te=this.mapService.meterToCoord(x,[s,f]),be=this.mapService.meterToCoord(x,[v===s?v+.1:v,g===f?f+.1:g]);this.meter2coord=(te+be)/2,Boolean(this.meter2coord)||(this.meter2coord=7.70681090738883)}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=this.getShaders(),C=x.frag,T=x.vert,O=x.type;return[this.layer.buildLayerModel({moduleName:O,vertexShader:T,fragmentShader:C,triangulation:Op,depth:{enable:!1},blend:this.getBlend(),stencil:Pa(f,g),cull:{enable:!0,face:h(this.mapService.version)}})]}},{key:"getShaders",value:function(){return{frag:HC,vert:WC,type:"point_fillImage"}}},{key:"clearModels",value:function(){var a,s;this.iconService.off("imageUpdate",this.updateTexture),(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy()}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"rotate",type:On.Attribute,descriptor:{name:"a_Rotate",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.rotate,T=C===void 0?0:C;return Array.isArray(T)?[T[0]]:[T]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_Uv",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.shape,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:On.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v,g,x){var C=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],T=x%4*3;return[C[T],C[T+1],C[T+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.size,T=C===void 0?5:C;return Array.isArray(T)?[T[0]*a.meter2coord]:[T*a.meter2coord]}}})}}]),r}(fo);function YC(e){var i=qC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function qC(){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}}var KC=` +uniform sampler2D u_texture; +varying vec4 v_color; +varying vec2 v_uv; +uniform vec2 u_textSize; +uniform float u_opacity : 1; + +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E + +#pragma include "picking" + +void main(){ + float opacity = styleMappingMat[0][0]; + float size = styleMappingMat[1][0]; + vec2 pos = v_uv / u_textSize + gl_PointCoord / u_textSize * 64.; + vec4 textureColor; + + // Y = 0.299R + 0.587G + 0.114B // \u4EAE\u5EA6\u63D0\u53D6 + + textureColor = texture2D(u_texture, pos); + + // Tip: \u53BB\u9664\u8FB9\u7F18\u90E8\u5206 mipmap \u5BFC\u81F4\u7684\u6DF7\u5408\u53D8\u6697 + float fragmengTocenter = distance(vec2(0.5), gl_PointCoord); + if(fragmengTocenter >= 0.5) { + float luma = 0.299 * textureColor.r + 0.587 * textureColor.g + 0.114 * textureColor.b; + textureColor.a *= luma; + } + + + + if(all(lessThan(v_color, vec4(1.0+0.00001))) && all(greaterThan(v_color, vec4(1.0-0.00001))) || v_color==vec4(1.0)){ + gl_FragColor= textureColor; + }else { + gl_FragColor= step(0.01, textureColor.z) * v_color; + } + + gl_FragColor.a = gl_FragColor.a * opacity; + gl_FragColor = filterColor(gl_FragColor); +} +`,$C=`precision highp float; +attribute vec3 a_Position; +attribute vec4 a_Color; +attribute vec2 a_Uv; +attribute float a_Size; +varying vec4 v_color; +varying vec2 v_uv; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform vec2 u_offsets; + +uniform float u_opacity : 1; + +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "picking" + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + + styleMappingMat[1][0] = a_Size; + + vec2 textrueOffsets = vec2(0.0, 0.0); + if(hasOffsets()) { + vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + + vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + } else { + textrueOffsets = u_offsets; + } + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + v_color = a_Color; + v_uv = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + + // vec2 offset = project_pixel(u_offsets); + vec2 offset = project_pixel(textrueOffsets); + + // gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy + offset),project_pos.z, 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * vec4(vec2(project_pos.xy + offset),project_pos.z, 1.0); + } else { + gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy + offset),project_pos.z, 1.0)); + } + gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; + + setPickingColor(a_PickingColor); +} +`,QC=function(e){(0,Ir.Z)(r,e);var i=YC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f= 0.5) { + float luma = 0.299 * textureColor.r + 0.587 * textureColor.g + 0.114 * textureColor.b; + textureColor.a *= luma; + } + + + + if(all(lessThan(v_color, vec4(1.0+0.00001))) && all(greaterThan(v_color, vec4(1.0-0.00001))) || v_color==vec4(1.0)){ + gl_FragColor= textureColor; + }else { + gl_FragColor= step(0.01, textureColor.z) * v_color; + } + + gl_FragColor.a = gl_FragColor.a * opacity; + gl_FragColor = filterColor(gl_FragColor); +} +`,rA=`precision highp float; +attribute vec3 a_Position; +attribute vec4 a_Color; +attribute vec2 a_Uv; +attribute float a_Size; +varying vec4 v_color; +varying vec2 v_uv; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform vec2 u_offsets; + +uniform float u_opacity : 1; + +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "picking" + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + + styleMappingMat[1][0] = a_Size; + + vec2 textrueOffsets = vec2(0.0, 0.0); + if(hasOffsets()) { + vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + + vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + } else { + textrueOffsets = u_offsets; + } + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + v_color = a_Color; + v_uv = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + + // vec2 offset = project_pixel(u_offsets); + vec2 offset = project_pixel(textrueOffsets); + + // gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy + offset),project_pos.z, 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * vec4(vec2(project_pos.xy + offset),project_pos.z, 1.0); + } else { + gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy + offset),project_pos.z, 1.0)); + } + gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; + + setPickingColor(a_PickingColor); +} +`,Iy=function(e){(0,Ir.Z)(r,e);var i=JC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&T.length>0?this.createTexture2D({flipY:!0,data:T,format:G.LUMINANCE,type:G.FLOAT,width:O,height:k}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_texture:this.texture,u_textSize:[1024,this.iconService.canvasHeight||128],u_opacity:fa()(f)?f:1,u_offsets:this.isOffsetStatic(g)?g:[0,0]}}},{key:"initModels",value:function(){return this.registerBuiltinAttributes(),this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;return[this.layer.buildLayerModel({moduleName:"pointImage",vertexShader:rA,fragmentShader:tA,triangulation:fy,primitive:G.POINTS,depth:{enable:!1},blend:this.getBlend(),stencil:Pa(f,g)})]}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.size,T=C===void 0?5:C;return Array.isArray(T)?[T[0]]:[T]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_Uv",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.shape,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}})}}]),r}(fo);function nA(e){var i=iA();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function iA(){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}}var aA=` +uniform float u_opacity : 1; +uniform vec2 u_offsets; +varying vec4 v_color; +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E + +#pragma include "picking" +void main() { + float opacity = styleMappingMat[0][0]; + + gl_FragColor = v_color; + // gl_FragColor.a =gl_FragColor.a * u_opacity; + gl_FragColor.a =gl_FragColor.a * opacity; + gl_FragColor = filterColor(gl_FragColor); +} +`,oA=` +attribute vec3 a_Position; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +attribute float a_Size; +attribute vec4 a_Color; +varying vec4 v_color; + +uniform float u_opacity : 1; +uniform vec2 u_offsets; + +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "picking" +#pragma include "project" +void main() { + v_color = a_Color; + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 +styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + + vec2 textrueOffsets = vec2(0.0, 0.0); + if(hasOffsets()) { + vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + + vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + } else { + textrueOffsets = u_offsets; + } + + // cal style mapping + + // vec2 offset = project_pixel(u_offsets); + vec2 offset = project_pixel(textrueOffsets); + // vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.); + // gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy+offset),project_pos.z,project_pos.w));\\ + // + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + // vec2 offset = project_pixel((u_offsets)); + gl_Position = u_Mvp * vec4(a_Position.xy + offset, a_Position.z, 1.0); + } else { // else + // vec2 offset = project_pixel(u_offsets); + vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.); + gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy+offset),project_pos.z,project_pos.w)); + } + + gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; + setPickingColor(a_PickingColor); +} +`;function Oy(e){var i=e.coordinates;return{vertices:(0,Ce.Z)(i),indices:[0],size:i.length}}var Ry=function(e){(0,Ir.Z)(r,e);var i=nA(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getDefaultStyle",value:function(){return{blend:"additive"}}},{key:"getUninforms",value:function(){var a=this.layer.getLayerConfig(),s=a.opacity,f=s===void 0?1:s,v=a.offsets,g=v===void 0?[0,0]:v;if(this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:f,offsets:g})){this.judgeStyleAttributes({opacity:f,offsets:g});var x=this.layer.getEncodedData(),C=this.calDataFrame(this.cellLength,x,this.cellProperties),T=C.data,O=C.width,k=C.height;this.rowCount=k,this.dataTexture=this.cellLength>0&&T.length>0?this.createTexture2D({flipY:!0,data:T,format:G.LUMINANCE,type:G.FLOAT,width:O,height:k}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_offsets:this.isOffsetStatic(g)?g:[0,0]}}},{key:"initModels",value:function(){return this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;return this.layer.triangulation=Oy,[this.layer.buildLayerModel({moduleName:"normalpoint",vertexShader:oA,fragmentShader:aA,triangulation:Oy,depth:{enable:!1},primitive:G.POINTS,blend:this.getBlend(),stencil:Pa(f,g)})]}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){var x=s.size,C=x===void 0?1:x;return Array.isArray(C)?[C[0]]:[C]}}})}},{key:"defaultStyleOptions",value:function(){return{blend:wc.additive}}}]),r}(fo);function sA(e){var i=uA();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function uA(){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}}var lA=` +uniform float u_additive; + +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E + +varying vec4 v_data; +varying vec4 v_color; +varying float v_radius; + +#pragma include "sdf_2d" +#pragma include "picking" + +void main() { + int shape = int(floor(v_data.w + 0.5)); + + vec4 textrueStroke = vec4( + styleMappingMat[1][0], + styleMappingMat[1][1], + styleMappingMat[1][2], + styleMappingMat[1][3] + ); + + float opacity = styleMappingMat[0][0]; + + lowp float antialiasblur = v_data.z; + float r = v_radius / (v_radius); + + float outer_df = sdCircle(v_data.xy, 1.0); + float inner_df = sdCircle(v_data.xy, r); + + float opacity_t = smoothstep(0.0, antialiasblur, outer_df); + + gl_FragColor = vec4(v_color.rgb, v_color.a * opacity); + + if(u_additive > 0.0) { + gl_FragColor *= opacity_t; + } else { + gl_FragColor.a *= opacity_t; + } + + if(gl_FragColor.a > 0.0) { + gl_FragColor = filterColor(gl_FragColor); + } + + vec2 extrude = styleMappingMat[2].ba; + vec2 dir = normalize(extrude); + vec2 baseDir = vec2(1.0, 0.0); + float pi = 3.14159265359; + // full circle + // float rades = dot(dir, baseDir); + // float flag = sign(dir.y); + // float radar_v = (flag - 1.0) * -0.5 + flag * acos(rades)/pi/2.0; + + // half circle + float flag = sign(dir.y); + float rades = dot(dir, baseDir); + float radar_v = (flag - 1.0) * -0.5 * acos(rades)/pi; + // simple AA + if(radar_v > 0.99) { + radar_v = 1.0 - (radar_v - 0.99)/0.01; + } + + gl_FragColor.a *= radar_v; +} +`,cA=`attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec3 a_Extrude; +attribute float a_Size; +attribute float a_Shape; +uniform float u_speed: 1.0; +uniform float u_time; + +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform float u_isMeter; + +varying vec4 v_data; +varying vec4 v_color; +varying float v_radius; + +uniform float u_opacity : 1; +uniform vec2 u_offsets; + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "picking" + +void main() { + vec3 extrude = a_Extrude; + float shape_type = a_Shape; + float newSize = setPickingSize(a_Size); + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - empty - empty - empty + 0.0, 0.0, 0.0, 0.0, // empty - empty - empty - empty + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - a_Extrude.x - a_Extrude.y + 0.0, 0.0, 0.0, 0.0 // + ); + + float time = u_time * u_speed; + mat2 rotateMatrix = mat2( + cos(time), sin(time), + -sin(time), cos(time) + ); + styleMappingMat[2].ba = rotateMatrix * a_Extrude.xy; + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> empty -> empty ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + + + vec2 textrueOffsets = vec2(0.0, 0.0); + if(hasOffsets()) { + vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + + vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + } else { + textrueOffsets = u_offsets; + } + + // cal style mapping + + // unpack color(vec2) + v_color = a_Color; + + // radius(16-bit) + v_radius = newSize; + + // anti-alias + float blur = 0.0; + float antialiasblur = -max(2.0 / u_DevicePixelRatio / a_Size, blur); + + vec2 offset = (extrude.xy * (newSize) + textrueOffsets); + vec3 aPosition = a_Position; + if(u_isMeter < 1.0) { + // \u4E0D\u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D + offset = project_pixel(offset); + } else { + // \u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D + antialiasblur *= pow(19.0 - u_Zoom, 2.0); + antialiasblur = max(antialiasblur, -0.01); + // offset *= 0.5; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + aPosition.xy += offset; + offset.x = 0.0; + offset.y = 0.0; + } + } + + v_data = vec4(extrude.x, extrude.y, antialiasblur,shape_type); + + vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * vec4(project_pos.xy + offset, 0.0, 1.0); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); + } + + setPickingColor(a_PickingColor); +} +`,fA=function(e){(0,Ir.Z)(r,e);var i=sA(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&j.length>0?this.createTexture2D({flipY:!0,data:j,format:G.LUMINANCE,type:G.FLOAT,width:X,height:te}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_isMeter:Number(this.isMeter),u_speed:T,u_additive:x==="additive"?1:0,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_offsets:this.isOffsetStatic(g)?g:[0,0]}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption,f=s===void 0?{enable:!1}:s;return{u_aimate:this.animateOption2Array(f),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Op)}},{key:"initModels",value:function(){var a=this.layer.getLayerConfig(),s=a.unit,f=s===void 0?"l7size":s,v=this.mapService.version;return f==="meter"&&v!==js.L7MAP&&v!==js.GLOBEL&&(this.isMeter=!0,this.calMeter2Coord()),this.buildModels()}},{key:"calMeter2Coord",value:function(){var a=(0,on.Z)(this.layer.getSource().extent,4),s=a[0],f=a[1],v=a[2],g=a[3],x=[(s+v)/2,(f+g)/2],C=this.mapService.version;if(C===js.MAPBOX&&window.mapboxgl.MercatorCoordinate){var T=window.mapboxgl.MercatorCoordinate.fromLngLat({lng:x[0],lat:x[1]},0),O=1,k=O*T.meterInMercatorCoordinateUnits(),j=new window.mapboxgl.MercatorCoordinate(T.x-k,T.y,T.z),X=j.toLngLat();this.meter2coord=x[0]-X.lng;return}var te=this.mapService.meterToCoord(x,[s,f]),be=this.mapService.meterToCoord(x,[v===s?v+.1:v,g===f?f+.1:g]);this.meter2coord=(te+be)/2,Boolean(this.meter2coord)||(this.meter2coord=7.70681090738883)}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=this.getShaders(),C=x.frag,T=x.vert,O=x.type;return[this.layer.buildLayerModel({moduleName:O,vertexShader:T,fragmentShader:C,triangulation:Op,depth:{enable:!1},blend:this.getBlend(),stencil:Pa(f,g),cull:{enable:!0,face:h(this.mapService.version)}})]}},{key:"getShaders",value:function(){return{frag:lA,vert:cA,type:"point_radar"}}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"animateOption2Array",value:function(a){return[a.enable?0:1,a.speed||1,a.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:On.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v,g,x){var C;C=[1,1,0,-1,1,0,-1,-1,0,1,-1,0];var T=x%4*3;return[C[T],C[T+1],C[T+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.size,T=C===void 0?5:C;return Array.isArray(T)?[T[0]*a.meter2coord]:[T*a.meter2coord]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:On.Attribute,descriptor:{name:"a_Shape",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.shape,T=C===void 0?2:C,O=a.layer.getLayerConfig().shape2d,k=O.indexOf(T);return[k]}}})}}]),r}(fo);function hA(e){var i=pA();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function pA(){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}}var dA=` +uniform float u_opacity : 1; +uniform vec2 u_offsets; +uniform float u_additive; + +uniform float u_stroke_opacity : 1; + +uniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0]; + +varying vec4 v_color; +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E +varying float v_blur; +varying float v_innerRadius; + +#pragma include "picking" +void main() { + vec2 center = vec2(0.5); + + float opacity = styleMappingMat[0][0]; + // Tip: \u7247\u5143\u5230\u4E2D\u5FC3\u70B9\u7684\u8DDD\u79BB 0 - 1 + float fragmengTocenter = distance(center, gl_PointCoord) * 2.0; + // Tip: \u7247\u5143\u7684\u526A\u5207\u6210\u5706\u5F62 + float circleClipOpacity = 1.0 - smoothstep(v_blur, 1.0, fragmengTocenter); + + + if(v_innerRadius < 0.99) { + // \u5F53\u5B58\u5728 stroke \u4E14 stroke > 0.01 + float blurWidth = (1.0 - v_blur)/2.0; + vec4 stroke = vec4(u_stroke_color.rgb, u_stroke_opacity); + if(fragmengTocenter > v_innerRadius + blurWidth) { + gl_FragColor = stroke; + } else if(fragmengTocenter > v_innerRadius - blurWidth){ + float mixR = (fragmengTocenter - (v_innerRadius - blurWidth)) / (blurWidth * 2.0); + gl_FragColor = mix(v_color, stroke, mixR); + } else { + gl_FragColor = v_color; + } + } else { + // \u5F53\u4E0D\u5B58\u5728 stroke \u6216 stroke <= 0.01 + gl_FragColor = v_color; + } + + gl_FragColor.a *= opacity; + + gl_FragColor = filterColor(gl_FragColor); + + if(u_additive > 0.0) { + gl_FragColor *= circleClipOpacity; + } else { + gl_FragColor.a *= circleClipOpacity; + } + +} +`,vA=` +attribute vec3 a_Position; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +attribute float a_Size; +attribute vec4 a_Color; +varying vec4 v_color; + +uniform float u_opacity : 1; +uniform vec2 u_offsets; +uniform float u_stroke_width; + +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 +varying float v_blur; +varying float v_innerRadius; + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "picking" +#pragma include "project" +void main() { + v_color = a_Color; + v_blur = 1.0 - max(2.0/a_Size, 0.05); + v_innerRadius = max((a_Size - u_stroke_width) / a_Size, 0.0); + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 +styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + + vec2 textrueOffsets = vec2(0.0, 0.0); + if(hasOffsets()) { + vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + + vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x + textureOffset += 1.0; + } else { + textrueOffsets = u_offsets; + } + + // cal style mapping + + vec2 offset = project_pixel(textrueOffsets); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * vec4(a_Position.xy + offset, a_Position.z, 1.0); + } else { // else + vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.); + gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy+offset),project_pos.z,project_pos.w)); + } + + gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; + setPickingColor(a_PickingColor); +} +`;function Ly(e){var i=e.coordinates;return{vertices:(0,Ce.Z)(i),indices:[0],size:i.length}}var mA=function(e){(0,Ir.Z)(r,e);var i=hA(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getDefaultStyle",value:function(){return{blend:"additive"}}},{key:"getUninforms",value:function(){var a=this.layer.getLayerConfig(),s=a.opacity,f=s===void 0?1:s,v=a.offsets,g=v===void 0?[0,0]:v,x=a.blend,C=a.strokeOpacity,T=C===void 0?1:C,O=a.strokeWidth,k=O===void 0?0:O,j=a.stroke,X=j===void 0?"#fff":j;if(this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:f,offsets:g})){this.judgeStyleAttributes({opacity:f,offsets:g});var te=this.layer.getEncodedData(),be=this.calDataFrame(this.cellLength,te,this.cellProperties),Ne=be.data,$e=be.width,ot=be.height;this.rowCount=ot,this.dataTexture=this.cellLength>0&&Ne.length>0?this.createTexture2D({flipY:!0,data:Ne,format:G.LUMINANCE,type:G.FLOAT,width:$e,height:ot}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_additive:x==="additive"?1:0,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_offsets:this.isOffsetStatic(g)?g:[0,0],u_stroke_opacity:fa()(T)?T:1,u_stroke_width:fa()(k)?k:1,u_stroke_color:this.getStrokeColor(X)}}},{key:"initModels",value:function(){return this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;return this.layer.triangulation=Ly,[this.layer.buildLayerModel({moduleName:"simplepoint",vertexShader:vA,fragmentShader:dA,triangulation:Ly,depth:{enable:!1},primitive:G.POINTS,blend:this.getBlend(),stencil:Pa(f,g)})]}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){var x=s.size,C=x===void 0?1:x;return Array.isArray(C)?[C[0]]:[C]}}})}},{key:"defaultStyleOptions",value:function(){return{blend:wc.additive}}}]),r}(fo);function gA(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=yA(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function yA(e,i){if(!!e){if(typeof e=="string")return ky(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ky(e,i)}}function ky(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);rthis.width||s<0||n>this.height)return f?!1:[];var g=[];if(r<=0&&n<=0&&this.width<=a&&this.height<=s){if(f)return!0;for(var x=0;x0:g}},{key:"queryCell",value:function(r,n,a,s,f,v,g,x){var C=g.seenUids,T=this.boxCells[f];if(T!==null){var O=this.bboxes,k=gA(T),j;try{for(k.s();!(j=k.n()).done;){var X=j.value;if(!C.box[X]){C.box[X]=!0;var te=X*4;if(r<=O[te+2]&&n<=O[te+3]&&a>=O[te+0]&&s>=O[te+1]&&(!x||x(this.boxKeys[X]))){if(g.hitTest)return v.push(!0),!0;v.push({key:this.boxKeys[X],x1:O[te],y1:O[te+1],x2:O[te+2],y2:O[te+3]})}}}}catch(be){k.e(be)}finally{k.f()}}return!1}},{key:"forEachCell",value:function(r,n,a,s,f,v,g,x){for(var C=this.convertToXCellCoord(r),T=this.convertToYCellCoord(n),O=this.convertToXCellCoord(a),k=this.convertToYCellCoord(s),j=C;j<=O;j++)for(var X=T;X<=k;X++){var te=this.xCellCount*X+j;if(f.call(this,r,n,a,s,te,v,g,x))return}}},{key:"convertToXCellCoord",value:function(r){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(r*this.xScale)))}},{key:"convertToYCellCoord",value:function(r){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(r*this.yScale)))}}]),e}(),xA=_A,bA=function(){function e(i,r){(0,ht.Z)(this,e),(0,A.Z)(this,"width",void 0),(0,A.Z)(this,"height",void 0),(0,A.Z)(this,"grid",void 0),(0,A.Z)(this,"viewportPadding",100),(0,A.Z)(this,"screenRightBoundary",void 0),(0,A.Z)(this,"screenBottomBoundary",void 0),(0,A.Z)(this,"gridRightBoundary",void 0),(0,A.Z)(this,"gridBottomBoundary",void 0),this.width=i,this.height=r,this.viewportPadding=Math.max(i,r),this.grid=new xA(i+this.viewportPadding,r+this.viewportPadding,25),this.screenRightBoundary=i+this.viewportPadding,this.screenBottomBoundary=r+this.viewportPadding,this.gridRightBoundary=i+2*this.viewportPadding,this.gridBottomBoundary=r+2*this.viewportPadding}return(0,Pt.Z)(e,[{key:"placeCollisionBox",value:function(r){var n=r.x1+r.anchorPointX+this.viewportPadding,a=r.y1+r.anchorPointY+this.viewportPadding,s=r.x2+r.anchorPointX+this.viewportPadding,f=r.y2+r.anchorPointY+this.viewportPadding;return!this.isInsideGrid(n,a,s,f)||this.grid.hitTest(n,a,s,f)?{box:[]}:{box:[n,a,s,f]}}},{key:"insertCollisionBox",value:function(r,n){var a={featureIndex:n};this.grid.insert(a,r[0],r[1],r[2],r[3])}},{key:"project",value:function(r,n,a){var s=Qp(n,a,0,1),f=Fh(),v=ir.apply(ae,(0,Ce.Z)(r));return Me(f,s,v),{x:(f[0]/f[3]+1)/2*this.width+this.viewportPadding,y:(-f[1]/f[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(r,n,a,s){return a>=0&&r=0&&n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function EA(e,i){if(!!e){if(typeof e=="string")return Fy(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fy(e,i)}}function Fy(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r6&&arguments[6]!==void 0?arguments[6]:[0,0],v=arguments.length>7?arguments[7]:void 0,g=e.split(` +`),x=[],C={positionedGlyphs:x,top:f[1],bottom:f[1],left:f[0],right:f[0],lineCount:g.length,text:e};return v?CA(C,i,g,r,n,a,s):SA(C,i,g,r,n,a,s),x.length?C:!1}function wA(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],r=arguments.length>2?arguments[2]:void 0,n=e.positionedGlyphs,a=n===void 0?[]:n,s=[],f=Dy(a),v;try{for(f.s();!(v=f.n()).done;){var g=v.value,x=g.metrics,C=4,T=x.advance*g.scale/2,O=r?[g.x+T,g.y]:[0,0],k=r?[0,0]:[g.x+T+i[0],g.y+i[1]],j=(0-C)*g.scale-T+k[0],X=(0-C)*g.scale+k[1],te=j+x.width*g.scale,be=X+x.height*g.scale,Ne={x:j,y:X},$e={x:te,y:X},ot={x:j,y:be},bt={x:te,y:be};s.push({tl:Ne,tr:$e,bl:ot,br:bt,tex:x,glyphOffset:O})}}catch(_t){f.e(_t)}finally{f.f()}return s}function TA(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=MA(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function MA(e,i){if(!!e){if(typeof e=="string")return Uy(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uy(e,i)}}function Uy(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + + vec2 strokeWidthAndOffset = calStrokeWidthAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][2] = strokeWidthAndOffset.r; + textureOffset = strokeWidthAndOffset.g; + + vec4 textrueStroke = vec4(-1.0, -1.0, -1.0, -1.0); + if(hasStroke()) { + vec2 valueRPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + styleMappingMat[1][0] = pos2value(valueRPos, columnWidth, rowHeight); // R + textureOffset += 1.0; + + vec2 valueGPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + styleMappingMat[1][1] = pos2value(valueGPos, columnWidth, rowHeight); // G + textureOffset += 1.0; + + vec2 valueBPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + styleMappingMat[1][2] = pos2value(valueBPos, columnWidth, rowHeight); // B + textureOffset += 1.0; + + vec2 valueAPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); + styleMappingMat[1][3] = pos2value(valueAPos, columnWidth, rowHeight); // A + textureOffset += 1.0; + } else { + if(u_stroke_color == vec4(0.0)) { + styleMappingMat[1][0] = v_color.r; + styleMappingMat[1][1] = v_color.g; + styleMappingMat[1][2] = v_color.b; + styleMappingMat[1][3] = v_color.a; + } else { + styleMappingMat[1][0] = u_stroke_color.r; + styleMappingMat[1][1] = u_stroke_color.g; + styleMappingMat[1][2] = u_stroke_color.b; + styleMappingMat[1][3] = u_stroke_color.a; + } + } + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + v_color = a_Color; + v_uv = a_tex / u_sdf_map_size; + + // \u6587\u672C\u7F29\u653E\u6BD4\u4F8B + float fontScale = a_Size / FONT_SIZE; + v_fontScale = fontScale; + + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + // vec4 projected_position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + + highp float angle_sin = sin(a_Rotate); + highp float angle_cos = cos(a_Rotate); + mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos); + + // gl_Position = vec4(projected_position.xy / projected_position.w + rotation_matrix * a_textOffsets * fontScale / u_ViewportSize * 2.0 * u_DevicePixelRatio, 0.0, 1.0); + + float raiseHeight = u_raisingHeight; + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + raiseHeight = u_raisingHeight * mapboxZoomScale; + } + + vec4 projected_position; + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + projected_position = u_Mvp * (vec4(a_Position.xyz + vec3(0.0, 0.0, raiseHeight), 1.0)); + } else { // else + projected_position = project_common_position_to_clipspace(vec4(project_pos.xyz + vec3(0.0, 0.0, raiseHeight), 1.0)); + } + + gl_Position = vec4( + projected_position.xy / projected_position.w + rotation_matrix * a_textOffsets * fontScale / u_ViewportSize * 2.0 * u_DevicePixelRatio, 0.0, 1.0); + v_gamma_scale = gl_Position.w; + setPickingColor(a_PickingColor); + +} +`;function Vy(e){var i=this,r=e.id,n=[],a=[];if(!i.glyphInfoMap||!i.glyphInfoMap[r])return{vertices:[],indices:[],size:7};var s=i.glyphInfoMap[r].centroid,f=s.length===2?[s[0],s[1],0]:s;return i.glyphInfoMap[r].glyphQuads.forEach(function(v,g){n.push.apply(n,(0,Ce.Z)(f).concat([v.tex.x,v.tex.y+v.tex.height,v.tl.x,v.tl.y],(0,Ce.Z)(f),[v.tex.x+v.tex.width,v.tex.y+v.tex.height,v.tr.x,v.tr.y],(0,Ce.Z)(f),[v.tex.x+v.tex.width,v.tex.y,v.br.x,v.br.y],(0,Ce.Z)(f),[v.tex.x,v.tex.y,v.bl.x,v.bl.y])),a.push(0+g*4,1+g*4,2+g*4,2+g*4,3+g*4,0+g*4)}),{vertices:n,indices:a,size:7}}var Gy=function(e){(0,Ir.Z)(r,e);var i=PA(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&qr.length>0?this.createTexture2D({flipY:!0,data:qr,format:G.LUMINANCE,type:G.FLOAT,width:gr,height:un}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_raisingHeight:Number(ot),u_opacity:fa()(f)?f:1,u_stroke_width:fa()(C)?C:1,u_stroke_color:this.getStrokeColor(g),u_sdf_map:this.texture,u_halo_blur:te,u_gamma_scale:Ne,u_sdf_map_size:[_t.width,_t.height]}}},{key:"initModels",value:function(){this.layer.on("remapping",this.buildModels),this.extent=this.textExtent();var a=this.layer.getLayerConfig(),s=a.textAnchor,f=s===void 0?"center":s,v=a.textAllowOverlap,g=v===void 0?!0:v;return this.preTextStyle={textAnchor:f,textAllowOverlap:g},this.buildModels()}},{key:"needUpdate",value:function(){var a=this.layer.getLayerConfig(),s=a.textAllowOverlap,f=s===void 0?!1:s,v=this.mapService.getZoom(),g=this.mapService.getBounds(),x=yl(this.extent,g);return!f&&(Math.abs(this.currentZoom-v)>1||!x)||f!==this.preTextStyle.textAllowOverlap?(this.reBuildModel(),!0):!1}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.layer.off("remapping",this.buildModels)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"rotate",type:On.Attribute,descriptor:{name:"a_Rotate",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){var x=s.rotate,C=x===void 0?0:x;return Array.isArray(C)?[C[0]]:[C]}}}),this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:On.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(s,f,v,g){return[v[5],v[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){var x=s.size,C=x===void 0?12:x;return Array.isArray(C)?[C[0]]:[C]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:On.Attribute,descriptor:{name:"a_tex",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(s,f,v,g){return[v[3],v[4]]}}})}},{key:"textExtent",value:function(){var a=this.mapService.getBounds();return dc(a,.5)}},{key:"initTextFont",value:function(){var a=this.layer.getLayerConfig(),s=a.fontWeight,f=s===void 0?"400":s,v=a.fontFamily,g=v===void 0?"sans-serif":v,x=this.layer.getEncodedData(),C=[];x.forEach(function(T){var O=T.shape,k=O===void 0?"":O;k=k.toString();var j=TA(k),X;try{for(j.s();!(X=j.n()).done;){var te=X.value;C.indexOf(te)===-1&&C.push(te)}}catch(be){j.e(be)}finally{j.f()}}),this.fontService.setFontOptions({characterSet:C,fontWeight:f,fontFamily:g,iconfont:!1})}},{key:"initIconFontTex",value:function(){var a=this.layer.getLayerConfig(),s=a.fontWeight,f=s===void 0?"400":s,v=a.fontFamily,g=v===void 0?"sans-serif":v,x=this.layer.getEncodedData(),C=[];x.forEach(function(T){var O=T.shape,k=O===void 0?"":O;k="".concat(k),C.indexOf(k)===-1&&C.push(k)}),this.fontService.setFontOptions({characterSet:C,fontWeight:f,fontFamily:g,iconfont:!0})}},{key:"generateGlyphLayout",value:function(a){var s=this,f=this.fontService.mapping,v=this.layer.getLayerConfig(),g=v.spacing,x=g===void 0?2:g,C=v.textAnchor,T=C===void 0?"center":C,O=this.layer.getEncodedData();this.glyphInfo=O.map(function(k){var j=k.shape,X=j===void 0?"":j,te=k.id,be=k.size,Ne=be===void 0?1:be,$e=k.textOffset,ot=$e===void 0?[0,0]:$e,bt=AA(X.toString(),f,Ne,T,"left",x,ot,a),_t=wA(bt,ot,!1);return k.shaping=bt,k.glyphQuads=_t,k.centroid=Mp(k.coordinates),k.originCentroid=k.version==="GAODE2.x"?Mp(k.originCoordinates):k.originCentroid=k.centroid,s.glyphInfoMap[te]={shaping:bt,glyphQuads:_t,centroid:Mp(k.coordinates)},k})}},{key:"filterGlyphs",value:function(){var a=this,s=this.layer.getLayerConfig(),f=s.padding,v=f===void 0?[4,4]:f,g=s.textAllowOverlap,x=g===void 0?!1:g;if(!x){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var C=this.rendererService.getViewportSize(),T=C.width,O=C.height,k=new bA(T,O),j=this.glyphInfo.filter(function(X){var te=X.shaping,be=X.id,Ne=be===void 0?0:be,$e=X.version==="GAODE2.x"?X.originCentroid:X.centroid,ot=X.size,bt=ot/24,_t=a.mapService.lngLatToContainer($e),qt=k.placeCollisionBox({x1:te.left*bt-v[0],x2:te.right*bt+v[0],y1:te.top*bt-v[1],y2:te.bottom*bt+v[1],anchorPointX:_t.x,anchorPointY:_t.y}),ar=qt.box;return ar&&ar.length?(k.insertCollisionBox(ar,Ne),!0):!1});j.forEach(function(X){a.glyphInfoMap[X.id]=X})}}},{key:"initGlyph",value:function(){var a=this.layer.getLayerConfig(),s=a.iconfont,f=s===void 0?!1:s;f?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(f)}},{key:"updateTexture",value:function(){var a=this.rendererService.createTexture2D,s=this.fontService.canvas;this.textureHeight=s.height,this.texture&&this.texture.destroy(),this.texture=a({data:s,mag:G.LINEAR,min:G.LINEAR,width:s.width,height:s.height})}},{key:"reBuildModel",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;this.filterGlyphs(),this.layer.models=[this.layer.buildLayerModel({moduleName:"pointText",vertexShader:jy,fragmentShader:Zy,triangulation:Vy.bind(this),depth:{enable:!1},blend:this.getBlend(),stencil:Pa(f,g)})]}}]),r}(fo),OA={fillImage:XC,fill:Py,radar:fA,image:Iy,normal:Ry,simplePoint:mA,extrude:Ty,text:Gy,icon:QC},RA=OA;function LA(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=kA(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function kA(e,i){if(!!e){if(typeof e=="string")return Hy(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hy(e,i)}}function Hy(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); + vec4 project_pos = project_position(pos); + + if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 + project_pos.z = a_Position.z * a_Size; + project_pos.z += u_raisingHeight; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + } + + // project_pos.z += 500000.0; // amap1 + + // project_pos.z += (500000.0 * 4.0)/pow(2.0, 21.0 - u_Zoom); // mapbox + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + // gl_Position = u_Mvp * (vec4(project_pos.xyz * vec3(1.0, 1.0, -1.0), 1.0)); + gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + } + + float lightWeight = calc_lighting(pos); + // v_Color = a_Color; + v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); + + styleMappingMat[3][1] = lightWeight; + + setPickingColor(a_PickingColor); +} +`,ZA=`uniform sampler2D u_texture; +uniform float u_opacity: 1.0; +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; +uniform float u_linearColor: 0; + +uniform float u_topsurface: 1.0; +uniform float u_sidesurface: 1.0; + +varying vec4 v_Color; +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E +#pragma include "picking" + +void main() { + float opacity = styleMappingMat[0][0]; + float isSide = styleMappingMat[0][3]; + float lightWeight = styleMappingMat[3][1]; + float topU = styleMappingMat[2][2]; + float topV = styleMappingMat[2][3]; + + float sidey = styleMappingMat[3][0]; + if(isSide < 1.0) { + // side face + if(u_sidesurface < 1.0) { + discard; + } + + if(u_linearColor == 1.0) { + vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); + linearColor.rgb *= lightWeight; + gl_FragColor = linearColor; + } else { + gl_FragColor = v_Color; + } + } else { + + // top face + if(u_topsurface < 1.0) { + discard; + } + + gl_FragColor = texture2D(u_texture, vec2(topU, topV)); + } + + + gl_FragColor.a *= opacity; + gl_FragColor = filterColor(gl_FragColor); +} +`,jA=`precision highp float; + +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec3 a_Normal; +attribute float a_Size; +attribute vec3 a_uvs; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; + +varying vec4 v_Color; +uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A +uniform float u_raisingHeight: 0.0; +uniform float u_opacity: 1.0; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +void main() { + v_Color = a_Color; + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - a_Position.z(judge side by a_Position.z) + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - u - v + 0.0, 0.0, 0.0, 0.0 // sidey + ); + + styleMappingMat[0][3] = a_Position.z; + styleMappingMat[2][2] = a_uvs[0]; + styleMappingMat[2][3] = 1.0 - a_uvs[1]; + styleMappingMat[3][0] = a_uvs[2]; + + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); + vec4 project_pos = project_position(pos); + + if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 + project_pos.z = a_Position.z * a_Size; + project_pos.z += u_raisingHeight; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + } + + // project_pos.z += 500000.0; // amap1 + + // project_pos.z += (500000.0 * 4.0)/pow(2.0, 21.0 - u_Zoom); // mapbox + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + // gl_Position = u_Mvp * (vec4(project_pos.xyz * vec3(1.0, 1.0, -1.0), 1.0)); + gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + } + + float lightWeight = calc_lighting(pos); + styleMappingMat[3][1] = lightWeight; + + setPickingColor(a_PickingColor); +} +`,VA=`uniform float u_opacity: 1.0; +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; +uniform float u_linearColor: 0; + +uniform float u_topsurface: 1.0; +uniform float u_sidesurface: 1.0; + +varying vec4 v_Color; +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E +#pragma include "picking" + +void main() { + float opacity = styleMappingMat[0][0]; + float isSide = styleMappingMat[0][3]; + float sidey = styleMappingMat[3][0]; + float lightWeight = styleMappingMat[3][1]; + + if(isSide < 1.0) { + // side face + if(u_sidesurface < 1.0) { + discard; + } + + if( u_linearColor == 1.0) { + // side use linear + vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); + linearColor.rgb *= lightWeight; + gl_FragColor = linearColor; + } else { + // side notuse linear + gl_FragColor = v_Color; + } + } else { + // top face + if(u_topsurface < 1.0) { + discard; + } + gl_FragColor = v_Color; + } + + gl_FragColor.a *= opacity; + gl_FragColor = filterColorAlpha(gl_FragColor, lightWeight); +} +`,GA=`precision highp float; + +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec3 a_Normal; +attribute float a_Size; +attribute vec3 a_uvs; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; + +varying vec4 v_Color; +uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A +uniform float u_raisingHeight: 0.0; +uniform float u_opacity: 1.0; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - isSide + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 // sidey + ); + styleMappingMat[0][3] = a_Position.z; + styleMappingMat[3][0] = a_uvs[2]; + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); + vec4 project_pos = project_position(pos); + + if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 + project_pos.z = a_Position.z * a_Size; + project_pos.z += u_raisingHeight; + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + } + + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + // gl_Position = u_Mvp * (vec4(project_pos.xyz * vec3(1.0, 1.0, -1.0), 1.0)); + gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + } + + float lightWeight = calc_lighting(pos); + // v_Color = a_Color; + v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); + + styleMappingMat[3][1] = lightWeight; + + setPickingColor(a_PickingColor); +} +`,HA=function(e){(0,Ir.Z)(r,e);var i=BA(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&$e.length>0?this.createTexture2D({flipY:!0,data:$e,format:G.LUMINANCE,type:G.FLOAT,width:ot,height:bt}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}var _t=0,qt=[1,1,1,1],ar=[1,1,1,1];return X&&te&&(qt=Ji(X),ar=Ji(te),_t=1),{u_topsurface:Number(O),u_sidesurface:Number(j),u_heightfixed:Number(g),u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_raisingHeight:Number(C),u_opacity:fa()(f)?f:1,u_linearColor:_t,u_sourceColor:qt,u_targetColor:ar,u_texture:this.texture}}},{key:"initModels",value:function(){return this.loadTexture(),this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=this.getShaders(),C=x.frag,T=x.vert,O=x.type;return[this.layer.buildLayerModel({moduleName:O,vertexShader:T,fragmentShader:C,triangulation:hy,stencil:Pa(f,g)})]}},{key:"getShaders",value:function(){var a=this.layer.getLayerConfig(),s=a.pickLight,f=a.mapTexture;return f?{frag:ZA,vert:jA,type:"polygonExtrudeTexture"}:s?{frag:VA,vert:GA,type:"polygonExtrudePickLight"}:{frag:zA,vert:UA,type:"polygonExtrude"}}},{key:"clearModels",value:function(){var a,s;(a=this.dataTexture)===null||a===void 0||a.destroy(),(s=this.texture)===null||s===void 0||s.destroy()}},{key:"registerBuiltinAttributes",value:function(){var a=this.layer.getSource().extent,s=(0,on.Z)(a,4),f=s[0],v=s[1],g=s[2],x=s[3],C=g-f,T=x-v;this.styleAttributeService.registerStyleAttribute({name:"uvs",type:On.Attribute,descriptor:{name:"a_uvs",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(k,j,X,te,be){var Ne=X[0],$e=X[1];return[(Ne-f)/C,($e-v)/T,X[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:On.Attribute,descriptor:{name:"a_Normal",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(k,j,X,te,be){return be}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(k,j,X,te){var be=k.size,Ne=be===void 0?10:be;return Array.isArray(Ne)?[Ne[0]]:[Ne]}}})}},{key:"loadTexture",value:function(){var a=this,s=this.layer.getLayerConfig(),f=s.mapTexture,v=this.rendererService.createTexture2D;if(this.texture=v({height:0,width:0}),f){var g=new Image;g.crossOrigin="",g.src=f,g.onload=function(){a.texture=v({data:g,width:g.width,height:g.height,wrapS:G.CLAMP_TO_EDGE,wrapT:G.CLAMP_TO_EDGE,min:G.LINEAR,mag:G.LINEAR}),a.layerService.updateLayerRenderList(),a.layerService.renderLayers()}}}}]),r}(fo);function WA(e){var i=XA();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function XA(){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}}var YA=`uniform float u_opacity: 1.0; +varying vec4 v_Color; +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E + +#pragma include "picking" + +void main() { + float opacity = styleMappingMat[0][0]; + gl_FragColor = v_Color; + gl_FragColor.a *= opacity; + gl_FragColor = filterColor(gl_FragColor); +} +`,qA=`uniform float u_opacity: 1.0; +varying vec4 v_Color; +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E + +#pragma include "picking" +uniform float u_opacitylinear: 0.0; +uniform float u_dir: 1.0; +varying vec3 v_linear; +varying vec2 v_pos; + + +void main() { + float opacity = styleMappingMat[0][0]; + gl_FragColor = v_Color; + + if(u_opacitylinear > 0.0) { + gl_FragColor.a *= u_dir == 1.0 ? 1.0 - length(v_pos - v_linear.xy)/v_linear.z : length(v_pos - v_linear.xy)/v_linear.z; + } + + gl_FragColor.a *= opacity; + gl_FragColor = filterColor(gl_FragColor); +} +`,KA=`attribute vec4 a_Color; +attribute vec3 a_Position; + +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +uniform float u_opacity: 1.0; +uniform float u_raisingHeight: 0.0; + +varying vec4 v_Color; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "picking" + +uniform float u_opacitylinear: 0.0; + +attribute vec3 a_linear; +varying vec3 v_linear; +varying vec2 v_pos; + +void main() { + if(u_opacitylinear > 0.0) { + v_linear = a_linear; + v_pos = a_Position.xy; + } + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 +styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + v_Color = a_Color; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + project_pos.z += u_raisingHeight; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + } + + setPickingColor(a_PickingColor); +}`,$A=`attribute vec4 a_Color; +attribute vec3 a_Position; + +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; + +uniform float u_opacity: 1.0; +uniform float u_raisingHeight: 0.0; + +varying vec4 v_Color; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" +#pragma include "picking" + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 +styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + v_Color = a_Color; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + + project_pos.z += u_raisingHeight; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + } + + setPickingColor(a_PickingColor); +} + +`,QA=function(e){(0,Ir.Z)(r,e);var i=WA(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getUninforms",value:function(){var a=this.layer.getLayerConfig(),s=a.raisingHeight,f=s===void 0?0:s,v=a.opacity,g=v===void 0?1:v,x=a.opacityLinear,C=x===void 0?{enable:!1,dir:"in"}:x;if(this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:g})){this.judgeStyleAttributes({opacity:g});var T=this.layer.getEncodedData(),O=this.calDataFrame(this.cellLength,T,this.cellProperties),k=O.data,j=O.width,X=O.height;this.rowCount=X,this.dataTexture=this.cellLength>0&&k.length>0?this.createTexture2D({flipY:!0,data:k,format:G.LUMINANCE,type:G.FLOAT,width:j,height:X}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_raisingHeight:Number(f),u_opacity:fa()(g)?g:1,u_opacitylinear:Number(C.enable),u_dir:C.dir==="in"?1:0}}},{key:"initModels",value:function(){return this.buildModels()}},{key:"buildModels",value:function(){var a=this.getModelParams(),s=a.frag,f=a.vert,v=a.triangulation,g=a.type,x=this.layer.getLayerConfig(),C=x.mask,T=C===void 0?!1:C,O=x.maskInside,k=O===void 0?!0:O;return this.layer.triangulation=v,[this.layer.buildLayerModel({moduleName:g,vertexShader:f,fragmentShader:s,triangulation:v,blend:this.getBlend(),depth:{enable:!1},stencil:Pa(T,k)})]}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"registerBuiltinAttributes",value:function(){var a=this.layer.getLayerConfig(),s=a.opacityLinear,f=s===void 0?{enable:!1,dir:"in"}:s;f.enable&&this.styleAttributeService.registerStyleAttribute({name:"linear",type:On.Attribute,descriptor:{name:"a_linear",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(g,x,C,T,O){return[C[3],C[4],C[5]]}}})}},{key:"getModelParams",value:function(){var a=this.layer.getLayerConfig(),s=a.opacityLinear,f=s===void 0?{enable:!1}:s;return f.enable?{frag:qA,vert:KA,type:"polygon_linear",triangulation:NE}:{frag:YA,vert:$A,type:"polygon_fill",triangulation:Uv}}}]),r}(fo);function JA(e){var i=ew();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function ew(){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}}var tw=` +uniform float u_time: 0.0; +uniform float u_opacity: 1.0; + +varying vec2 v_uv; +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E + +float coast2water_fadedepth = 0.10; +float large_waveheight = .750; // change to adjust the "heavy" waves +float large_wavesize = 3.4; // factor to adjust the large wave size +float small_waveheight = 0.6; // change to adjust the small random waves +float small_wavesize = 0.5; // factor to ajust the small wave size +float water_softlight_fact = 15.; // range [1..200] (should be << smaller than glossy-fact) +float water_glossylight_fact= 120.; // range [1..200] +float particle_amount = 70.; +// vec3 watercolor = vec3(0.43, 0.60, 0.66); // 'transparent' low-water color (RGB) +// vec3 watercolor2 = vec3(0.06, 0.07, 0.11); // deep-water color (RGB, should be darker than the low-water color) +uniform vec4 u_watercolor; +uniform vec4 u_watercolor2; +vec3 water_specularcolor = vec3(1.3, 1.3, 0.9); // specular Color (RGB) of the water-highlights +#define light vec3(-0., sin(u_time*0.5)*.5 + .35, 2.8) // position of the sun + +uniform sampler2D u_texture1; +uniform sampler2D u_texture2; +uniform sampler2D u_texture3; + + + +float hash( float n ) { + return fract(sin(n)*43758.5453123); +} + +// 2d noise function +float noise1( in vec2 x ) { + vec2 p = floor(x); + vec2 f = smoothstep(0.0, 1.0, fract(x)); + float n = p.x + p.y*57.0; + return mix(mix( hash(n+ 0.0), hash(n+ 1.0),f.x), + mix( hash(n+ 57.0), hash(n+ 58.0),f.x),f.y); +} + +float noise(vec2 p) { + return texture2D(u_texture2,p*vec2(1./256.)).x; +} + +vec4 highness(vec2 p) { + vec4 t = texture2D(u_texture1,fract(p)); + float clipped = -2.0-smoothstep(3.,10.,t.a)*6.9-smoothstep(10.,100.,t.a)*89.9-smoothstep(0.,10000.,t.a)*10000.0; + return clamp(t, 0.0,3.0)+clamp(t/3.0-1.0, 0.0,1.0)+clamp(t/16.0-1.0, 0.0,1.0); +} + +float height_map( vec2 p ) { + vec4 height=highness(p); + /* + height = -0.5+ + 0.5*smoothstep(-100.,0.,-height)+ + 2.75*smoothstep(0.,2.,height)+ + 1.75*smoothstep(2.,4.,height)+ + 2.75*smoothstep(4.,16.,height)+ + 1.5*smoothstep(16.,1000.,height); + */ + + mat2 m = mat2( 0.9563*1.4, -0.2924*1.4, 0.2924*1.4, 0.9563*1.4 ); + //p = p*6.; + float f = 0.6000*noise1( p ); p = m*p*1.1*6.; + f += 0.2500*noise( p ); p = m*p*1.32; + f += 0.1666*noise( p ); p = m*p*1.11; + f += 0.0834*noise( p ); p = m*p*1.12; + f += 0.0634*noise( p ); p = m*p*1.13; + f += 0.0444*noise( p ); p = m*p*1.14; + f += 0.0274*noise( p ); p = m*p*1.15; + f += 0.0134*noise( p ); p = m*p*1.16; + f += 0.0104*noise( p ); p = m*p*1.17; + f += 0.0084*noise( p ); + f = .25*f+dot(height,vec4(-.03125,-.125,.25,.25))*.5; + const float FLAT_LEVEL = 0.92525; + //f = f*0.25+height*0.75; + if (f level) + { + col = CalcTerrain(uv, height); + } + if (height <= level) + { + vec2 dif = vec2(.0, .01); + vec2 pos = uv*15. + vec2(u_time*.01); + float h1 = water_map(pos-dif,waveheight); + float h2 = water_map(pos+dif,waveheight); + float h3 = water_map(pos-dif.yx,waveheight); + float h4 = water_map(pos+dif.yx,waveheight); + vec3 normwater = normalize(vec3(h3-h4, h1-h2, .125)); // norm-vector of the 'bumpy' water-plane + uv += normwater.xy*.002*(level-height); + + col = CalcTerrain(uv, height); + + float coastfade = clamp((level-height)/coast2water_fadedepth, 0., 1.); + float coastfade2= clamp((level-height)/deepwater_fadedepth, 0., 1.); + float intensity = col.r*.2126+col.g*.7152+col.b*.0722; + watercolor = mix(watercolor*intensity, watercolor2, smoothstep(0., 1., coastfade2)); + + vec3 r0 = vec3(uv, WATER_LEVEL); + vec3 rd = normalize( light - r0 ); // ray-direction to the light from water-position + float grad = dot(normwater, rd); // dot-product of norm-vector and light-direction + float specular = pow(grad, water_softlight_fact); // used for soft highlights + float specular2= pow(grad, water_glossylight_fact); // used for glossy highlights + float gradpos = dot(vec3(0., 0., 1.), rd); + float specular1= smoothstep(0., 1., pow(gradpos, 5.)); // used for diffusity (some darker corona around light's specular reflections...) + float watershade = test_shadow( uv, level ); + watercolor *= 2.2+watershade; + watercolor += (.2+.8*watershade) * ((grad-1.0)*.5+specular) * .25; + watercolor /= (1.+specular1*1.25); + watercolor += watershade*specular2*water_specularcolor; + watercolor += watershade*coastfade*(1.-coastfade2)*(vec3(.5, .6, .7)*nautic(uv)+vec3(1., 1., 1.)*particles(uv)); + + col = mix(col, watercolor, coastfade); + } + + + float opacity = styleMappingMat[0][0]; + gl_FragColor = vec4(col, opacity); +} +`,rw=`attribute vec2 a_uv; +attribute vec3 a_Position; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; + +varying vec2 v_uv; +uniform float u_opacity: 1.0; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" + +void main() { + v_uv = a_uv; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 +styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + } +} + +`,nw=function(e){(0,Ir.Z)(r,e);var i=JA(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&k.length>0?this.createTexture2D({flipY:!0,data:k,format:G.LUMINANCE,type:G.FLOAT,width:j,height:X}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_texture1:this.texture1,u_texture2:this.texture2,u_texture3:this.texture3,u_watercolor:Ji(g),u_watercolor2:Ji(C),u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1}}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.loadTexture(),this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;return[this.layer.buildLayerModel({moduleName:"polygon_ocean",vertexShader:rw,fragmentShader:tw,triangulation:Uv,depth:{enable:!1},stencil:Pa(f,g)})]}},{key:"clearModels",value:function(){var a,s,f,v;(a=this.texture1)===null||a===void 0||a.destroy(),(s=this.texture2)===null||s===void 0||s.destroy(),(f=this.texture3)===null||f===void 0||f.destroy(),(v=this.dataTexture)===null||v===void 0||v.destroy()}},{key:"registerBuiltinAttributes",value:function(){var a=this.layer.getSource().extent,s=(0,on.Z)(a,4),f=s[0],v=s[1],g=s[2],x=s[3],C=g-f,T=x-v;this.styleAttributeService.registerStyleAttribute({name:"oceanUv",type:On.Attribute,descriptor:{name:"a_uv",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(k,j,X,te,be){var Ne=(0,on.Z)(X,2),$e=Ne[0],ot=Ne[1];return[($e-f)/C,(ot-v)/T]}}})}},{key:"loadTexture",value:function(){var a=this,s=this.rendererService.createTexture2D,f={height:0,width:0};this.texture1=s(f),this.texture2=s(f),this.texture3=s(f),v(function(x){a.texture1=g(x[0]),a.texture2=g(x[1]),a.texture3=g(x[2]),a.layerService.updateLayerRenderList(),a.layerService.renderLayers()});function v(x){var C=0,T=[],O=["https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*MJ22QbpuCzIAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*-z2HSIVDsHIAAAAAAAAAAAAAARQnAQ"];O.map(function(k){var j=new Image;j.crossOrigin="",j.src=k,T.push(j),j.onload=function(){C++,C===3&&x(T)}})}function g(x){return s({data:x,width:x.width,height:x.height,wrapS:G.MIRRORED_REPEAT,wrapT:G.MIRRORED_REPEAT,min:G.LINEAR,mag:G.LINEAR})}}}]),r}(fo);function iw(e){var i=aw();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function aw(){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}}var ow=`uniform sampler2D u_texture; +uniform float u_time: 0.0; +uniform float u_speed: 1.0; +uniform float u_opacity: 1.0; + +varying vec4 v_Color; +varying vec2 v_uv; +varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E + + +float rand(vec2 n) { return 0.5 + 0.5 * fract(sin(dot(n.xy, vec2(12.9898, 78.233)))* 43758.5453); } + +float water(vec3 p) { + float t = u_time * u_speed; + p.z += t * 2.; p.x += t * 2.; + vec3 c1 = texture2D(u_texture, p.xz / 30.).xyz; + p.z += t * 3.; p.x += t * 0.52; + vec3 c2 = texture2D(u_texture, p.xz / 30.).xyz; + p.z += t * 4.; p.x += t * 0.8; + vec3 c3 = texture2D(u_texture, p.xz / 30.).xyz; + c1 += c2 - c3; + float z = (c1.x + c1.y + c1.z) / 3.; + return p.y + z / 4.; +} + +float map(vec3 p) { + float d = 100.0; + d = water(p); + return d; +} + +float intersect(vec3 ro, vec3 rd) { + float d = 0.0; + for (int i = 0; i <= 100; i++) { + float h = map(ro + rd * d); + if (h < 0.1) return d; + d += h; + } + return 0.0; +} + +vec3 norm(vec3 p) { + float eps = .1; + return normalize(vec3( + map(p + vec3(eps, 0, 0)) - map(p + vec3(-eps, 0, 0)), + map(p + vec3(0, eps, 0)) - map(p + vec3(0, -eps, 0)), + map(p + vec3(0, 0, eps)) - map(p + vec3(0, 0, -eps)) + )); +} + +float calSpc() { + vec3 l1 = normalize(vec3(1, 1, 1)); + vec3 ro = vec3(-3, 20, -8); + vec3 rc = vec3(0, 0, 0); + vec3 ww = normalize(rc - ro); + vec3 uu = normalize(cross(vec3(0,1,0), ww)); + vec3 vv = normalize(cross(rc - ro, uu)); + vec3 rd = normalize(uu * v_uv.x + vv * v_uv.y + ww); + float d = intersect(ro, rd); + vec3 p = ro + rd * d; + vec3 n = norm(p); + float spc = pow(max(0.0, dot(reflect(l1, n), rd)), 30.0); + return spc; +} + +void main() { + float opacity = styleMappingMat[0][0]; + gl_FragColor = v_Color; + gl_FragColor.a *= opacity; + + float spc = calSpc(); + gl_FragColor += spc * 0.4; +} +`,sw=`attribute vec4 a_Color; +attribute vec2 a_uv; +attribute vec3 a_Position; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; + +varying vec4 v_Color; +varying vec2 v_uv; +uniform float u_opacity: 1.0; +varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + +#pragma include "styleMapping" +#pragma include "styleMappingCalOpacity" + +#pragma include "projection" + +void main() { + v_uv = a_uv; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 +styleMappingMat = mat4( + 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty + 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA + 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] + 0.0, 0.0, 0.0, 0.0 + ); + + float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C + float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 + float columnWidth = 1.0/columnCount; // \u5217\u5BBD + float rowHeight = 1.0/rowCount; // \u884C\u9AD8 + float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets + float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 + float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C + float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 + + // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... + // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); + styleMappingMat[0][0] = opacityAndOffset.r; + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + v_Color = a_Color; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + } +} + +`,uw=function(e){(0,Ir.Z)(r,e);var i=iw(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&T.length>0?this.createTexture2D({flipY:!0,data:T,format:G.LUMINANCE,type:G.FLOAT,width:O,height:k}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_texture:this.texture,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_speed:g,u_opacity:fa()(f)?f:1}}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.loadTexture(),this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;return[this.layer.buildLayerModel({moduleName:"polygon_water",vertexShader:sw,fragmentShader:ow,triangulation:Uv,depth:{enable:!1},stencil:Pa(f,g)})]}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy()}},{key:"registerBuiltinAttributes",value:function(){var a=this.layer.getSource().extent,s=(0,on.Z)(a,4),f=s[0],v=s[1],g=s[2],x=s[3],C=g-f,T=x-v;this.styleAttributeService.registerStyleAttribute({name:"waterUv",type:On.Attribute,descriptor:{name:"a_uv",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(k,j,X,te,be){var Ne=(0,on.Z)(X,2),$e=Ne[0],ot=Ne[1];return[($e-f)/C,(ot-v)/T]}}})}},{key:"loadTexture",value:function(){var a=this,s=this.layer.getLayerConfig(),f=s.waterTexture,v=this.rendererService.createTexture2D;this.texture=v({height:0,width:0});var g=new Image;g.crossOrigin="",f?(console.warn("L7 recommend\uFF1Ahttps://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ"),g.src=f):g.src="https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ",g.onload=function(){a.texture=v({data:g,width:g.width,height:g.height,wrapS:G.MIRRORED_REPEAT,wrapT:G.MIRRORED_REPEAT,min:G.LINEAR,mag:G.LINEAR}),a.layerService.updateLayerRenderList(),a.layerService.renderLayers()}}}]),r}(fo),lw={fill:QA,line:Cy,extrude:HA,text:Gy,point_fill:Py,point_image:Iy,point_normal:Ry,point_extrude:Ty,water:uw,ocean:nw},cw=lw;function fw(e){var i=hw();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function hw(){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}}var Xy=function(e){(0,Ir.Z)(r,e);var i=fw(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f-1&&this.layerChildren.splice(s,1),a.destroy()}},{key:"clearChild",value:function(){this.layerChildren.forEach(function(a){a.destroy()}),this.layerChildren=[]}},{key:"hasChild",value:function(a){return this.layerChildren.includes(a)}}]),r}(qh);function mw(e){var i=gw();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function gw(){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}}var yw=function(e){(0,Ir.Z)(r,e);var i=mw(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f=3&&!C&&(a.layer.updateLayerConfig({visible:!0}),a.layerService.updateLayerRenderList())}a.lastViewStates&&a.lastViewStates.zoom===g&&a.lastViewStates.latLonBounds.toString()===v.toString()||(a.lastViewStates={zoom:g,latLonBounds:v},a.timer&&(clearTimeout(a.timer),a.timer=null),a.timer=setTimeout(function(){var T;(T=a.tilesetManager)===null||T===void 0||T.update(g,v),a.showGrid&&a.renderSubGridLayer()},250))}))}},{key:"creatSubLayer",value:function(a){var s=this.layer.getLayerConfig(),f=s.opacity,v=f===void 0?1:f,g=s.zIndex,x=g===void 0?0:g,C=new Ey({visible:a.isVisible,zIndex:x}).source(a.data,{parser:{type:"image",extent:a.bounds}}).style({opacity:v}),T=av(this.layer.sceneContainer);return C.setContainer(T,this.layer.sceneContainer),C.init(),C}},{key:"destroySubLayer",value:function(a){if(a.layer){var s=this.layer;s.removeChild(a.layer)}}},{key:"getCurrentView",value:function(){var a=this.mapService.getBounds(),s=[a[0][0],a[0][1],a[1][0],a[1][1]],f=this.mapService.getZoom();return{latLonBounds:s,zoom:f}}}]),r}(fo);function _w(e){var i=xw();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function xw(){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}}var bw=`precision mediump float; +uniform float u_opacity: 1.0; +uniform sampler2D u_texture; +uniform sampler2D u_colorTexture; +uniform float u_min; +uniform float u_max; +uniform vec2 u_domain; +uniform float u_noDataValue; +uniform bool u_clampLow: true; +uniform bool u_clampHigh: true; +varying vec2 v_texCoord; + +void main() { + + float value = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)).r; + if (value == u_noDataValue) + gl_FragColor = vec4(0.0, 0, 0, 0.0); + else if ((!u_clampLow && value < u_domain[0]) || (!u_clampHigh && value > u_domain[1])) + gl_FragColor = vec4(0, 0, 0, 0); + else { + float normalisedValue =(value - u_domain[0]) / (u_domain[1] -u_domain[0]); + vec4 color = texture2D(u_colorTexture,vec2(normalisedValue, 0)); + gl_FragColor = color; + gl_FragColor.a = gl_FragColor.a * u_opacity ; + } + + +} +`,Ew=`precision highp float; +uniform mat4 u_ModelMatrix; +uniform mat4 u_Mvp; +attribute vec3 a_Position; +attribute vec2 a_Uv; +varying vec2 v_texCoord; +#pragma include "projection" +void main() { + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xy,0., 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0)); + } +} +`,Yy=function(e){(0,Ir.Z)(r,e);var i=_w(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&this.mapService.version===js["GAODE2.x"]){var s=this.getLayerCenter(n);typeof r[0].coordinates[0]=="number"?r.filter(function(f){return!f.originCoordinates}).map(function(f){f.version=js["GAODE2.x"],f.originCoordinates=du()(f.coordinates),f.coordinates=a.mapService.lngLatToCoordByLayer(f.coordinates,s)}):r.filter(function(f){return!f.originCoordinates}).map(function(f){f.version=js["GAODE2.x"],f.originCoordinates=du()(f.coordinates),f.coordinates=a.mapService.lngLatToCoordsByLayer(f.coordinates,s)})}}},{key:"getLayerCenter",value:function(r){var n=r.getSource();return n.center}},{key:"adjustData2SimpleCoordinates",value:function(r){var n=this;r.length>0&&this.mapService.version===js.SIMPLE&&r.map(function(a){a.simpleCoordinate||(a.coordinates=n.unProjectCoordinates(a.coordinates),a.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(r){var n=this;if(typeof r[0]=="number")return this.mapService.simpleMapCoord.unproject(r);if(r[0]&&r[0][0]instanceof Array){var a=[];return r.map(function(f){var v=[];f.map(function(g){v.push(n.mapService.simpleMapCoord.unproject(g))}),a.push(v)}),a}else{var s=[];return r.map(function(f){s.push(n.mapService.simpleMapCoord.unproject(f))}),s}}},{key:"applyAttributeMapping",value:function(r,n,a){var s;if(!r.scale)return[];var f=(r==null||(s=r.scale)===null||s===void 0?void 0:s.scalers)||[],v=[];f.forEach(function(x){var C,T=x.field;(n.hasOwnProperty(T)||((C=r.scale)===null||C===void 0?void 0:C.type)==="variable")&&v.push(n[T])});var g=r.mapping?r.mapping(v):[];return r.name==="color"&&!al(g[0])?[a]:g}}]),e}(),e_=jn(uv.prototype,"configService",[Ky],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),t_=jn(uv.prototype,"mapService",[$y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r_=jn(uv.prototype,"fontService",[Qy],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),uv))||Jy),i_,a_,Uw=(i_=(0,Wr.b2)(),i_(a_=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"mapService",void 0)}return(0,Pt.Z)(e,[{key:"apply",value:function(r){var n=this;this.mapService=r.getContainer().get(Ht.IMapService),r.hooks.init.tap("DataSourcePlugin",function(){var a=r.getSource();if(!a){var s=r.sourceOption||{data:Al,options:Cf},f=s.data,v=s.options;r.setSource(new Vl(f,v))}n.updateClusterData(r)}),r.hooks.beforeRenderData.tap("DataSourcePlugin",function(){var a=n.updateClusterData(r),s=r.dataState.dataSourceNeedUpdate;return r.dataState.dataSourceNeedUpdate=!1,a||s})}},{key:"updateClusterData",value:function(r){var n=r.getSource(),a=n.cluster,s=n.clusterOptions,f=s.zoom,v=f===void 0?0:f,g=s.maxZoom,x=g===void 0?16:g,C=this.mapService.getZoom()-1,T=r.dataState.dataSourceNeedUpdate;return a&&(T||Math.abs(r.clusterZoom-C)>=1)?(v!==Math.floor(C)&&n.updateClusterData(Math.floor(C)),r.clusterZoom=C,!0):!1}}]),e}())||a_);function Z0(e,i){return ei?1:e>=i?0:NaN}function o_(e){return e.length===1&&(e=Zw(e)),{left:function(i,r,n,a){for(n==null&&(n=0),a==null&&(a=i.length);n>>1;e(i[s],r)<0?n=s+1:a=s}return n},right:function(i,r,n,a){for(n==null&&(n=0),a==null&&(a=i.length);n>>1;e(i[s],r)>0?a=s:n=s+1}return n}}}function Zw(e){return function(i,r){return Z0(e(i),r)}}var s_=o_(Z0),jw=s_.right,eI=s_.left,Vv=jw;function u_(e,i){var r=e.length,n=-1,a,s,f;if(i==null){for(;++n=a)for(s=f=a;++na&&(s=a),f=a)for(s=f=a;++na&&(s=a),f0)return[e];if((n=i0)for(e=Math.ceil(e/v),i=Math.floor(i/v),f=new Array(s=Math.ceil(i-e+1));++a=0?(s>=j0?10:s>=V0?5:s>=G0?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(s>=j0?10:s>=V0?5:s>=G0?2:1)}function H0(e,i,r){var n=Math.abs(i-e)/Math.max(0,r),a=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),s=n/a;return s>=j0?a*=10:s>=V0?a*=5:s>=G0&&(a*=2),iT;)O.pop(),--k;var j=new Array(k+1),X;for(s=0;s<=k;++s)X=j[s]=[],X.x0=s>0?O[s-1]:C,X.x1=s=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*i,s=Math.floor(a),f=+r(e[s],s,e),v=+r(e[s+1],s+1,e);return f+(v-f)*(a-s)}}var Hw=U(87765),Mc="$";function Hv(){}Hv.prototype=f_.prototype={constructor:Hv,has:function(e){return Mc+e in this},get:function(e){return this[Mc+e]},set:function(e,i){return this[Mc+e]=i,this},remove:function(e){var i=Mc+e;return i in this&&delete this[i]},clear:function(){for(var e in this)e[0]===Mc&&delete this[e]},keys:function(){var e=[];for(var i in this)i[0]===Mc&&e.push(i.slice(1));return e},values:function(){var e=[];for(var i in this)i[0]===Mc&&e.push(this[i]);return e},entries:function(){var e=[];for(var i in this)i[0]===Mc&&e.push({key:i.slice(1),value:this[i]});return e},size:function(){var e=0;for(var i in this)i[0]===Mc&&++e;return e},empty:function(){for(var e in this)if(e[0]===Mc)return!1;return!0},each:function(e){for(var i in this)i[0]===Mc&&e(this[i],i.slice(1),this)}};function f_(e,i){var r=new Hv;if(e instanceof Hv)e.each(function(v,g){r.set(g,v)});else if(Array.isArray(e)){var n=-1,a=e.length,s;if(i==null)for(;++n=e.length)return r!=null&&v.sort(r),n!=null?n(v):v;for(var T=-1,O=v.length,k=e[g++],j,X,te=map(),be,Ne=x();++Te.length)return v;var x,C=i[g-1];return n!=null&&g>=e.length?x=v.entries():(x=[],v.each(function(T,O){x.push({key:O,values:f(T,g)})})),C!=null?x.sort(function(T,O){return C(T.key,O.key)}):x}return a={object:function(v){return s(v,0,Ww,Xw)},map:function(v){return s(v,0,h_,p_)},entries:function(v){return f(s(v,0,h_,p_),0)},key:function(v){return e.push(v),a},sortKeys:function(v){return i[e.length-1]=v,a},sortValues:function(v){return r=v,a},rollup:function(v){return n=v,a}}}function Ww(){return{}}function Xw(e,i,r){e[i]=r}function h_(){return map()}function p_(e,i,r){e.set(i,r)}function Wv(){}var Rp=W0.prototype;Wv.prototype=Yw.prototype={constructor:Wv,has:Rp.has,add:function(e){return e+="",this[Mc+e]=e,this},remove:Rp.remove,clear:Rp.clear,values:Rp.keys,size:Rp.size,empty:Rp.empty,each:Rp.each};function Yw(e,i){var r=new Wv;if(e instanceof Wv)e.each(function(s){r.add(s)});else if(e){var n=-1,a=e.length;if(i==null)for(;++nr&&(n=i,i=r,r=n),function(a){return Math.max(i,Math.min(r,a))}}function Jw(e,i,r){var n=e[0],a=e[1],s=i[0],f=i[1];return a2?eT:Jw,g=x=null,T}function T(O){return isNaN(O=+O)?s:(g||(g=v(e.map(n),i,r)))(n(f(O)))}return T.invert=function(O){return f(a((x||(x=v(i,e.map(n),Kw.Z)))(O)))},T.domain=function(O){return arguments.length?(e=Xv.call(O,X0),f===el||(f=x_(e)),C()):e.slice()},T.range=function(O){return arguments.length?(i=Lp.call(O),C()):i.slice()},T.rangeRound=function(O){return i=Lp.call(O),r=$w,C()},T.clamp=function(O){return arguments.length?(f=O?x_(e):el,T):f!==el},T.interpolate=function(O){return arguments.length?(r=O,C()):r},T.unknown=function(O){return arguments.length?(s=O,T):s},function(O,k){return n=O,a=k,C()}}function b_(e,i){return q0()(e,i)}var tT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Kv(e){if(!(i=tT.exec(e)))throw new Error("invalid format: "+e);var i;return new K0({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}Kv.prototype=K0.prototype;function K0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}K0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function rT(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $v(e,i){if((r=(e=i?e.toExponential(i-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function yd(e){return e=$v(Math.abs(e)),e?e[1]:NaN}function nT(e,i){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(yd(i)/3)))*3-yd(Math.abs(e)))}function iT(e,i){return function(r,n){for(var a=r.length,s=[],f=0,v=e[0],g=0;a>0&&v>0&&(g+v+1>n&&(v=Math.max(1,n-g)),s.push(r.substring(a-=v,a+v)),!((g+=v+1)>n));)v=e[f=(f+1)%e.length];return s.reverse().join(i)}}function aT(e){return function(i){return i.replace(/[0-9]/g,function(r){return e[+r]})}}function oT(e){e:for(var i=e.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var E_;function sT(e,i){var r=$v(e,i);if(!r)return e+"";var n=r[0],a=r[1],s=a-(E_=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,f=n.length;return s===f?n:s>f?n+new Array(s-f+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+$v(e,Math.max(0,i+s-1))[0]}function S_(e,i){var r=$v(e,i);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}var C_={"%":function(e,i){return(e*100).toFixed(i)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:rT,e:function(e,i){return e.toExponential(i)},f:function(e,i){return e.toFixed(i)},g:function(e,i){return e.toPrecision(i)},o:function(e){return Math.round(e).toString(8)},p:function(e,i){return S_(e*100,i)},r:S_,s:sT,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function A_(e){return e}var w_=Array.prototype.map,T_=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function uT(e){var i=e.grouping===void 0||e.thousands===void 0?A_:iT(w_.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?A_:aT(w_.call(e.numerals,String)),f=e.percent===void 0?"%":e.percent+"",v=e.minus===void 0?"-":e.minus+"",g=e.nan===void 0?"NaN":e.nan+"";function x(T){T=Kv(T);var O=T.fill,k=T.align,j=T.sign,X=T.symbol,te=T.zero,be=T.width,Ne=T.comma,$e=T.precision,ot=T.trim,bt=T.type;bt==="n"?(Ne=!0,bt="g"):C_[bt]||($e===void 0&&($e=12),ot=!0,bt="g"),(te||O==="0"&&k==="=")&&(te=!0,O="0",k="=");var _t=X==="$"?r:X==="#"&&/[boxX]/.test(bt)?"0"+bt.toLowerCase():"",qt=X==="$"?n:/[%p]/.test(bt)?f:"",ar=C_[bt],Pr=/[defgprs%]/.test(bt);$e=$e===void 0?6:/[gprs]/.test(bt)?Math.max(1,Math.min(21,$e)):Math.max(0,Math.min(20,$e));function qr(gr){var un=_t,Ln=qt,Vn,Fa,Ro;if(bt==="c")Ln=ar(gr)+Ln,gr="";else{gr=+gr;var Ls=gr<0||1/gr<0;if(gr=isNaN(gr)?g:ar(Math.abs(gr),$e),ot&&(gr=oT(gr)),Ls&&+gr==0&&j!=="+"&&(Ls=!1),un=(Ls?j==="("?j:v:j==="-"||j==="("?"":j)+un,Ln=(bt==="s"?T_[8+E_/3]:"")+Ln+(Ls&&j==="("?")":""),Pr){for(Vn=-1,Fa=gr.length;++VnRo||Ro>57){Ln=(Ro===46?a+gr.slice(Vn+1):gr.slice(Vn))+Ln,gr=gr.slice(0,Vn);break}}}Ne&&!te&&(gr=i(gr,Infinity));var au=un.length+gr.length+Ln.length,Vs=au>1)+un+gr+Ln+Vs.slice(au);break;default:gr=Vs+un+gr+Ln;break}return s(gr)}return qr.toString=function(){return T+""},qr}function C(T,O){var k=x((T=Kv(T),T.type="f",T)),j=Math.max(-8,Math.min(8,Math.floor(yd(O)/3)))*3,X=Math.pow(10,-j),te=T_[8+j/3];return function(be){return k(X*be)+te}}return{format:x,formatPrefix:C}}var Qv,$0,M_;lT({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function lT(e){return Qv=uT(e),$0=Qv.format,M_=Qv.formatPrefix,Qv}function cT(e,i){return e=Math.abs(e),i=Math.abs(i)-e,Math.max(0,yd(i)-yd(e))+1}function fT(e){return Math.max(0,-yd(Math.abs(e)))}function hT(e,i,r,n){var a=H0(e,i,r),s;switch(n=Kv(n==null?",f":n),n.type){case"s":{var f=Math.max(Math.abs(e),Math.abs(i));return n.precision==null&&!isNaN(s=nT(a,f))&&(n.precision=s),M_(n,f)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(s=cT(a,Math.max(Math.abs(e),Math.abs(i))))&&(n.precision=s-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(s=fT(a))&&(n.precision=s-(n.type==="%")*2);break}}return $0(n)}function _d(e){var i=e.domain;return e.ticks=function(r){var n=i();return c_(n[0],n[n.length-1],r==null?10:r)},e.tickFormat=function(r,n){var a=i();return hT(a[0],a[a.length-1],r==null?10:r,n)},e.nice=function(r){r==null&&(r=10);var n=i(),a=0,s=n.length-1,f=n[a],v=n[s],g;return v0?(f=Math.floor(f/g)*g,v=Math.ceil(v/g)*g,g=Gv(f,v,r)):g<0&&(f=Math.ceil(f*g)/g,v=Math.floor(v*g)/g,g=Gv(f,v,r)),g>0?(n[a]=Math.floor(f/g)*g,n[s]=Math.ceil(v/g)*g,i(n)):g<0&&(n[a]=Math.ceil(f*g)/g,n[s]=Math.floor(v*g)/g,i(n)),e},e}function P_(){var e=b_(el,el);return e.copy=function(){return qv(e,P_())},Qh.apply(e,arguments),_d(e)}function I_(e){var i;function r(n){return isNaN(n=+n)?i:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Xv.call(n,X0),r):e.slice()},r.unknown=function(n){return arguments.length?(i=n,r):i},r.copy=function(){return I_(e).unknown(i)},e=arguments.length?Xv.call(e,X0):[0,1],_d(r)}function O_(e,i){e=e.slice();var r=0,n=e.length-1,a=e[r],s=e[n],f;return s0){for(;OC)break;Ne.push(te)}}else for(;O=1;--X)if(te=j*X,!(teC)break;Ne.push(te)}}else Ne=c_(O,k,Math.min(k-O,be)).map(s);return T?Ne.reverse():Ne},i.tickFormat=function(v,g){if(g==null&&(g=n===10?".0e":","),typeof g!="function"&&(g=$0(g)),v===Infinity)return g;v==null&&(v=10);var x=Math.max(1,n*v/i.ticks().length);return function(C){var T=C/s(Math.round(a(C)));return T*n0?r[v-1]:e[0],v=r?[n[r-1],i]:[n[x-1],n[x]]},f.unknown=function(g){return arguments.length&&(s=g),f},f.thresholds=function(){return n.slice()},f.copy=function(){return U_().domain([e,i]).range(a).unknown(s)},Qh.apply(_d(f),arguments)}function Z_(){var e=[.5],i=[0,1],r,n=1;function a(s){return s<=s?i[Vv(e,s,0,n)]:r}return a.domain=function(s){return arguments.length?(e=Lp.call(s),n=Math.min(e.length,i.length-1),a):e.slice()},a.range=function(s){return arguments.length?(i=Lp.call(s),n=Math.min(e.length,i.length-1),a):i.slice()},a.invertExtent=function(s){var f=i.indexOf(s);return[e[f-1],e[f]]},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return Z_().domain(e).range(i).unknown(r)},Qh.apply(a,arguments)}var J0=new Date,em=new Date;function ul(e,i,r,n){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return a.floor=function(s){return e(s=new Date(+s)),s},a.ceil=function(s){return e(s=new Date(s-1)),i(s,1),e(s),s},a.round=function(s){var f=a(s),v=a.ceil(s);return s-f0))return g;do g.push(x=new Date(+s)),i(s,v),e(s);while(x=f)for(;e(f),!s(f);)f.setTime(f-1)},function(f,v){if(f>=f)if(v<0)for(;++v<=0;)for(;i(f,-1),!s(f););else for(;--v>=0;)for(;i(f,1),!s(f););})},r&&(a.count=function(s,f){return J0.setTime(+s),em.setTime(+f),e(J0),e(em),Math.floor(r(J0,em))},a.every=function(s){return s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?a.filter(n?function(f){return n(f)%s==0}:function(f){return a.count(0,f)%s==0}):a}),a}var tm=ul(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,i){e.setFullYear(e.getFullYear()+i)},function(e,i){return i.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});tm.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ul(function(i){i.setFullYear(Math.floor(i.getFullYear()/e)*e),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,r){i.setFullYear(i.getFullYear()+r*e)})};var xd=tm,lI=tm.range,j_=ul(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,i){e.setMonth(e.getMonth()+i)},function(e,i){return i.getMonth()-e.getMonth()+(i.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()}),CT=j_,cI=j_.range,Jv=1e3,lv=6e4,V_=36e5,G_=864e5,H_=6048e5;function kp(e){return ul(function(i){i.setDate(i.getDate()-(i.getDay()+7-e)%7),i.setHours(0,0,0,0)},function(i,r){i.setDate(i.getDate()+r*7)},function(i,r){return(r-i-(r.getTimezoneOffset()-i.getTimezoneOffset())*lv)/H_})}var rm=kp(0),e0=kp(1),AT=kp(2),wT=kp(3),bd=kp(4),TT=kp(5),MT=kp(6),fI=rm.range,hI=e0.range,pI=AT.range,dI=wT.range,vI=bd.range,mI=TT.range,gI=MT.range,W_=ul(function(e){e.setHours(0,0,0,0)},function(e,i){e.setDate(e.getDate()+i)},function(e,i){return(i-e-(i.getTimezoneOffset()-e.getTimezoneOffset())*lv)/G_},function(e){return e.getDate()-1}),nm=W_,yI=W_.range,X_=ul(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jv-e.getMinutes()*lv)},function(e,i){e.setTime(+e+i*V_)},function(e,i){return(i-e)/V_},function(e){return e.getHours()}),PT=X_,_I=X_.range,Y_=ul(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jv)},function(e,i){e.setTime(+e+i*lv)},function(e,i){return(i-e)/lv},function(e){return e.getMinutes()}),IT=Y_,xI=Y_.range,q_=ul(function(e){e.setTime(e-e.getMilliseconds())},function(e,i){e.setTime(+e+i*Jv)},function(e,i){return(i-e)/Jv},function(e){return e.getUTCSeconds()}),OT=q_,bI=q_.range,t0=ul(function(){},function(e,i){e.setTime(+e+i)},function(e,i){return i-e});t0.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ul(function(i){i.setTime(Math.floor(i/e)*e)},function(i,r){i.setTime(+i+r*e)},function(i,r){return(r-i)/e}):t0};var RT=t0,EI=t0.range;function Dp(e){return ul(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-e)%7),i.setUTCHours(0,0,0,0)},function(i,r){i.setUTCDate(i.getUTCDate()+r*7)},function(i,r){return(r-i)/H_})}var K_=Dp(0),r0=Dp(1),LT=Dp(2),kT=Dp(3),Ed=Dp(4),DT=Dp(5),FT=Dp(6),SI=K_.range,CI=r0.range,AI=LT.range,wI=kT.range,TI=Ed.range,MI=DT.range,PI=FT.range,$_=ul(function(e){e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCDate(e.getUTCDate()+i)},function(e,i){return(i-e)/G_},function(e){return e.getUTCDate()-1}),Q_=$_,II=$_.range,im=ul(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCFullYear(e.getUTCFullYear()+i)},function(e,i){return i.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});im.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ul(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/e)*e),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,r){i.setUTCFullYear(i.getUTCFullYear()+r*e)})};var cv=im,OI=im.range;function am(e){if(0<=e.y&&e.y<100){var i=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return i.setFullYear(e.y),i}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function om(e){if(0<=e.y&&e.y<100){var i=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return i.setUTCFullYear(e.y),i}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function fv(e,i,r){return{y:e,m:i,d:r,H:0,M:0,S:0,L:0}}function BT(e){var i=e.dateTime,r=e.date,n=e.time,a=e.periods,s=e.days,f=e.shortDays,v=e.months,g=e.shortMonths,x=hv(a),C=pv(a),T=hv(s),O=pv(s),k=hv(f),j=pv(f),X=hv(v),te=pv(v),be=hv(g),Ne=pv(g),$e={a:Ls,A:au,b:Vs,B:Oc,c:null,d:i1,e:i1,f:oM,g:mM,G:yM,H:nM,I:iM,j:aM,L:a1,m:sM,M:uM,p:gm,q:g0,Q:f1,s:h1,S:lM,u:cM,U:fM,V:hM,w:pM,W:dM,x:null,X:null,y:vM,Y:gM,Z:_M,"%":c1},ot={a:bP,A:EP,b:SP,B:CP,c:null,d:s1,e:s1,f:SM,g:LM,G:DM,H:xM,I:bM,j:EM,L:u1,m:CM,M:AM,p:AP,q:wP,Q:f1,s:h1,S:wM,u:TM,U:MM,V:PM,w:IM,W:OM,x:null,X:null,y:RM,Y:kM,Z:FM,"%":c1},bt={a:qr,A:gr,b:un,B:Ln,c:Vn,d:r1,e:r1,f:JT,g:t1,G:e1,H:n1,I:n1,j:qT,L:QT,m:YT,M:KT,p:Pr,q:XT,Q:tM,s:rM,S:$T,u:jT,U:VT,V:GT,w:ZT,W:HT,x:Fa,X:Ro,y:t1,Y:e1,Z:WT,"%":eM};$e.x=_t(r,$e),$e.X=_t(n,$e),$e.c=_t(i,$e),ot.x=_t(r,ot),ot.X=_t(n,ot),ot.c=_t(i,ot);function _t(ci,Oa){return function(eo){var _n=[],Pl=-1,qo=0,ec=ci.length,tc,Np,hb;for(eo instanceof Date||(eo=new Date(+eo));++Pl53)return null;"w"in _n||(_n.w=1),"Z"in _n?(qo=om(fv(_n.y,0,1)),ec=qo.getUTCDay(),qo=ec>4||ec===0?r0.ceil(qo):r0(qo),qo=Q_.offset(qo,(_n.V-1)*7),_n.y=qo.getUTCFullYear(),_n.m=qo.getUTCMonth(),_n.d=qo.getUTCDate()+(_n.w+6)%7):(qo=am(fv(_n.y,0,1)),ec=qo.getDay(),qo=ec>4||ec===0?e0.ceil(qo):e0(qo),qo=nm.offset(qo,(_n.V-1)*7),_n.y=qo.getFullYear(),_n.m=qo.getMonth(),_n.d=qo.getDate()+(_n.w+6)%7)}else("W"in _n||"U"in _n)&&("w"in _n||(_n.w="u"in _n?_n.u%7:"W"in _n?1:0),ec="Z"in _n?om(fv(_n.y,0,1)).getUTCDay():am(fv(_n.y,0,1)).getDay(),_n.m=0,_n.d="W"in _n?(_n.w+6)%7+_n.W*7-(ec+5)%7:_n.w+_n.U*7-(ec+6)%7);return"Z"in _n?(_n.H+=_n.Z/100|0,_n.M+=_n.Z%100,om(_n)):am(_n)}}function ar(ci,Oa,eo,_n){for(var Pl=0,qo=Oa.length,ec=eo.length,tc,Np;Pl=ec)return-1;if(tc=Oa.charCodeAt(Pl++),tc===37){if(tc=Oa.charAt(Pl++),Np=bt[tc in J_?Oa.charAt(Pl++):tc],!Np||(_n=Np(ci,eo,_n))<0)return-1}else if(tc!=eo.charCodeAt(_n++))return-1}return _n}function Pr(ci,Oa,eo){var _n=x.exec(Oa.slice(eo));return _n?(ci.p=C[_n[0].toLowerCase()],eo+_n[0].length):-1}function qr(ci,Oa,eo){var _n=k.exec(Oa.slice(eo));return _n?(ci.w=j[_n[0].toLowerCase()],eo+_n[0].length):-1}function gr(ci,Oa,eo){var _n=T.exec(Oa.slice(eo));return _n?(ci.w=O[_n[0].toLowerCase()],eo+_n[0].length):-1}function un(ci,Oa,eo){var _n=be.exec(Oa.slice(eo));return _n?(ci.m=Ne[_n[0].toLowerCase()],eo+_n[0].length):-1}function Ln(ci,Oa,eo){var _n=X.exec(Oa.slice(eo));return _n?(ci.m=te[_n[0].toLowerCase()],eo+_n[0].length):-1}function Vn(ci,Oa,eo){return ar(ci,i,Oa,eo)}function Fa(ci,Oa,eo){return ar(ci,r,Oa,eo)}function Ro(ci,Oa,eo){return ar(ci,n,Oa,eo)}function Ls(ci){return f[ci.getDay()]}function au(ci){return s[ci.getDay()]}function Vs(ci){return g[ci.getMonth()]}function Oc(ci){return v[ci.getMonth()]}function gm(ci){return a[+(ci.getHours()>=12)]}function g0(ci){return 1+~~(ci.getMonth()/3)}function bP(ci){return f[ci.getUTCDay()]}function EP(ci){return s[ci.getUTCDay()]}function SP(ci){return g[ci.getUTCMonth()]}function CP(ci){return v[ci.getUTCMonth()]}function AP(ci){return a[+(ci.getUTCHours()>=12)]}function wP(ci){return 1+~~(ci.getUTCMonth()/3)}return{format:function(ci){var Oa=_t(ci+="",$e);return Oa.toString=function(){return ci},Oa},parse:function(ci){var Oa=qt(ci+="",!1);return Oa.toString=function(){return ci},Oa},utcFormat:function(ci){var Oa=_t(ci+="",ot);return Oa.toString=function(){return ci},Oa},utcParse:function(ci){var Oa=qt(ci+="",!0);return Oa.toString=function(){return ci},Oa}}}var J_={"-":"",_:" ","0":"0"},_u=/^\s*\d+/,NT=/^%/,zT=/[\\^$*+?|[\]().{}]/g;function Ja(e,i,r){var n=e<0?"-":"",a=(n?-e:e)+"",s=a.length;return n+(s68?1900:2e3),r+n[0].length):-1}function WT(e,i,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function XT(e,i,r){var n=_u.exec(i.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function YT(e,i,r){var n=_u.exec(i.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function r1(e,i,r){var n=_u.exec(i.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function qT(e,i,r){var n=_u.exec(i.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function n1(e,i,r){var n=_u.exec(i.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function KT(e,i,r){var n=_u.exec(i.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function $T(e,i,r){var n=_u.exec(i.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function QT(e,i,r){var n=_u.exec(i.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function JT(e,i,r){var n=_u.exec(i.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function eM(e,i,r){var n=NT.exec(i.slice(r,r+1));return n?r+n[0].length:-1}function tM(e,i,r){var n=_u.exec(i.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function rM(e,i,r){var n=_u.exec(i.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function i1(e,i){return Ja(e.getDate(),i,2)}function nM(e,i){return Ja(e.getHours(),i,2)}function iM(e,i){return Ja(e.getHours()%12||12,i,2)}function aM(e,i){return Ja(1+nm.count(xd(e),e),i,3)}function a1(e,i){return Ja(e.getMilliseconds(),i,3)}function oM(e,i){return a1(e,i)+"000"}function sM(e,i){return Ja(e.getMonth()+1,i,2)}function uM(e,i){return Ja(e.getMinutes(),i,2)}function lM(e,i){return Ja(e.getSeconds(),i,2)}function cM(e){var i=e.getDay();return i===0?7:i}function fM(e,i){return Ja(rm.count(xd(e)-1,e),i,2)}function o1(e){var i=e.getDay();return i>=4||i===0?bd(e):bd.ceil(e)}function hM(e,i){return e=o1(e),Ja(bd.count(xd(e),e)+(xd(e).getDay()===4),i,2)}function pM(e){return e.getDay()}function dM(e,i){return Ja(e0.count(xd(e)-1,e),i,2)}function vM(e,i){return Ja(e.getFullYear()%100,i,2)}function mM(e,i){return e=o1(e),Ja(e.getFullYear()%100,i,2)}function gM(e,i){return Ja(e.getFullYear()%1e4,i,4)}function yM(e,i){var r=e.getDay();return e=r>=4||r===0?bd(e):bd.ceil(e),Ja(e.getFullYear()%1e4,i,4)}function _M(e){var i=e.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+Ja(i/60|0,"0",2)+Ja(i%60,"0",2)}function s1(e,i){return Ja(e.getUTCDate(),i,2)}function xM(e,i){return Ja(e.getUTCHours(),i,2)}function bM(e,i){return Ja(e.getUTCHours()%12||12,i,2)}function EM(e,i){return Ja(1+Q_.count(cv(e),e),i,3)}function u1(e,i){return Ja(e.getUTCMilliseconds(),i,3)}function SM(e,i){return u1(e,i)+"000"}function CM(e,i){return Ja(e.getUTCMonth()+1,i,2)}function AM(e,i){return Ja(e.getUTCMinutes(),i,2)}function wM(e,i){return Ja(e.getUTCSeconds(),i,2)}function TM(e){var i=e.getUTCDay();return i===0?7:i}function MM(e,i){return Ja(K_.count(cv(e)-1,e),i,2)}function l1(e){var i=e.getUTCDay();return i>=4||i===0?Ed(e):Ed.ceil(e)}function PM(e,i){return e=l1(e),Ja(Ed.count(cv(e),e)+(cv(e).getUTCDay()===4),i,2)}function IM(e){return e.getUTCDay()}function OM(e,i){return Ja(r0.count(cv(e)-1,e),i,2)}function RM(e,i){return Ja(e.getUTCFullYear()%100,i,2)}function LM(e,i){return e=l1(e),Ja(e.getUTCFullYear()%100,i,2)}function kM(e,i){return Ja(e.getUTCFullYear()%1e4,i,4)}function DM(e,i){var r=e.getUTCDay();return e=r>=4||r===0?Ed(e):Ed.ceil(e),Ja(e.getUTCFullYear()%1e4,i,4)}function FM(){return"+0000"}function c1(){return"%"}function f1(e){return+e}function h1(e){return Math.floor(+e/1e3)}var Sd,p1,BM,NM,zM;UM({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function UM(e){return Sd=BT(e),p1=Sd.format,BM=Sd.parse,NM=Sd.utcFormat,zM=Sd.utcParse,Sd}var dv=1e3,vv=dv*60,mv=vv*60,gv=mv*24,ZM=gv*7,d1=gv*30,sm=gv*365;function jM(e){return new Date(e)}function VM(e){return e instanceof Date?+e:+new Date(+e)}function v1(e,i,r,n,a,s,f,v,g){var x=b_(el,el),C=x.invert,T=x.domain,O=g(".%L"),k=g(":%S"),j=g("%I:%M"),X=g("%I %p"),te=g("%a %d"),be=g("%b %d"),Ne=g("%B"),$e=g("%Y"),ot=[[f,1,dv],[f,5,5*dv],[f,15,15*dv],[f,30,30*dv],[s,1,vv],[s,5,5*vv],[s,15,15*vv],[s,30,30*vv],[a,1,mv],[a,3,3*mv],[a,6,6*mv],[a,12,12*mv],[n,1,gv],[n,2,2*gv],[r,1,ZM],[i,1,d1],[i,3,3*d1],[e,1,sm]];function bt(qt){return(f(qt)0&&arguments[0]!==void 0?arguments[0]:{};this.texture(r)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(r){var n=r.width,a=r.height;this.texture.resize(n,a),this.width=n,this.height=a}},{key:"destroy",value:function(){if(!this.isDistroy){var r;(r=this.texture)===null||r===void 0||r.destroy()}this.isDistroy=!0}}]),e}(),dx,vx,k5=(dx=(0,Wr.b2)(),dx(vx=function(){function e(){var i=this;(0,ht.Z)(this,e),(0,A.Z)(this,"extensionObject",void 0),(0,A.Z)(this,"gl",void 0),(0,A.Z)(this,"$container",void 0),(0,A.Z)(this,"canvas",void 0),(0,A.Z)(this,"width",void 0),(0,A.Z)(this,"height",void 0),(0,A.Z)(this,"isDirty",void 0),(0,A.Z)(this,"createModel",function(r){return new R5(i.gl,r)}),(0,A.Z)(this,"createAttribute",function(r){return new g5(i.gl,r)}),(0,A.Z)(this,"createBuffer",function(r){return new A5(i.gl,r)}),(0,A.Z)(this,"createElements",function(r){return new w5(i.gl,r)}),(0,A.Z)(this,"createTexture2D",function(r){return new L5(i.gl,r)}),(0,A.Z)(this,"createFramebuffer",function(r){return new T5(i.gl,r)}),(0,A.Z)(this,"useFramebuffer",function(r,n){i.gl({framebuffer:r?r.get():null})(n)}),(0,A.Z)(this,"clear",function(r){var n=r.color,a=r.depth,s=r.stencil,f=r.framebuffer,v=f===void 0?null:f,g={color:n,depth:a,stencil:s};g.framebuffer=v===null?v:v.get(),i.gl.clear(g)}),(0,A.Z)(this,"viewport",function(r){var n=r.x,a=r.y,s=r.width,f=r.height;i.gl._gl.viewport(n,a,s,f),i.width=s,i.height=f,i.gl._refresh()}),(0,A.Z)(this,"readPixels",function(r){var n=r.framebuffer,a=r.x,s=r.y,f=r.width,v=r.height,g={x:a,y:s,width:f,height:v};return n&&(g.framebuffer=n.get()),i.gl.read(g)}),(0,A.Z)(this,"getViewportSize",function(){return{width:i.gl._gl.drawingBufferWidth,height:i.gl._gl.drawingBufferHeight}}),(0,A.Z)(this,"getContainer",function(){if(ts)return i.canvas;var r;return(r=i.canvas)===null||r===void 0?void 0:r.parentElement}),(0,A.Z)(this,"getCanvas",function(){return i.canvas}),(0,A.Z)(this,"getGLContext",function(){return i.gl._gl}),(0,A.Z)(this,"destroy",function(){i.canvas=null,i.gl.destroy(),i.gl=null})}return(0,Pt.Z)(e,[{key:"init",value:function(){var i=(0,P.Z)(N().mark(function n(a,s){var f=this;return N().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return this.canvas=a,g.next=3,new Promise(function(x,C){m5()({canvas:f.canvas,attributes:{alpha:!0,antialias:s.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:s.preserveDrawingBuffer,stencil:s.stencil},extensions:["OES_element_index_uint","OES_standard_derivatives","ANGLE_instanced_arrays"],optionalExtensions:["oes_texture_float_linear","OES_texture_float","EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture"],profile:!0,onDone:function(O,k){(O||!k)&&C(O),x(k)}})});case 3:this.gl=g.sent,this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 5:case"end":return g.stop()}},n,this)}));function r(n,a){return i.apply(this,arguments)}return r}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(r){return!!this.getGLContext().getExtension(r)}},{key:"setState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!0,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setBaseState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!1,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setCustomLayerDefaults",value:function(){var r=this.getGLContext();r.disable(r.CULL_FACE)}},{key:"setDirty",value:function(r){this.isDirty=r}},{key:"getDirty",value:function(){return this.isDirty}}]),e}())||vx);function mx(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function gx(e){for(var i=1;ie.length)&&(i=e.length);for(var r=0,n=new Array(i);r=-90&&a<=90,"invalid latitude"),i*=hm;var s=n*xh,f=a*xh,v=i*(s+af)/(2*af),g=i*(af-Math.log(Math.tan(Cx+f*.5)))/(2*af);return[v,g]}function dm(e,i){var r=(0,on.Z)(e,2),n=r[0],a=r[1];i*=hm;var s=n/i*(2*af)-af,f=2*(Math.atan(Math.exp(af-a/i*(2*af)))-Cx);return[s*Ax,f*Ax]}function VI(e){var i=e.latitude;assert(Number.isFinite(i));var r=Math.cos(i*xh);return G5(pm*r)-9}function Mx(e){var i=e.latitude,r=e.longitude,n=e.zoom,a=e.scale,s=e.highPrecision,f=s===void 0?!1:s;a=a!==void 0?a:Tx(n),Bp(Number.isFinite(i)&&Number.isFinite(r)&&Number.isFinite(a));var v={},g=hm*a,x=Math.cos(i*xh),C=g/360,T=C/x,O=g/pm/x;if(v.pixelsPerMeter=[O,-O,O],v.metersPerPixel=[1/O,-1/O,1/O],v.pixelsPerDegree=[C,-T,O],v.degreesPerPixel=[1/C,-1/T,1/O],f){var k=xh*Math.tan(i*xh)/x,j=C*k/2,X=g/pm*k,te=X/T*O;v.pixelsPerDegree2=[0,-j,X],v.pixelsPerMeter2=[te,0,te]}return v}function GI(e,i){var r=_slicedToArray(e,3),n=r[0],a=r[1],s=r[2],f=_slicedToArray(i,3),v=f[0],g=f[1],x=f[2],C=1,T=Mx({longitude:n,latitude:a,scale:C,highPrecision:!0}),O=T.pixelsPerMeter,k=T.pixelsPerMeter2,j=f0(e,C);j[0]+=v*(O[0]+k[0]*g),j[1]+=g*(O[1]+k[1]*g);var X=dm(j,C),te=(s||0)+(x||0);return Number.isFinite(s)||Number.isFinite(x)?[X[0],X[1],te]:X}function H5(e){var i=e.height,r=e.pitch,n=e.bearing,a=e.altitude,s=e.center,f=s===void 0?null:s,v=e.flipY,g=v===void 0?!1:v,x=Cv();return jr(x,x,[0,0,-a]),en(x,x,[1,1,1/i]),ui(x,x,-r*xh),Ga(x,x,n*xh),g&&en(x,x,[1,-1,1]),f&&jr(x,x,Xa.negate([],f)),x}function W5(e){var i=e.width,r=e.height,n=e.altitude,a=n===void 0?V5:n,s=e.pitch,f=s===void 0?0:s,v=e.nearZMultiplier,g=v===void 0?1:v,x=e.farZMultiplier,C=x===void 0?1:x,T=f*xh,O=Math.atan(.5/a),k=Math.sin(O)*a/Math.sin(Math.PI/2-T-O),j=Math.cos(Math.PI/2-T)*k+a;return{fov:2*Math.atan(r/2/a),aspect:i/r,focalDistance:a,near:g,far:j*C}}function X5(e){var i=e.width,r=e.height,n=e.pitch,a=e.altitude,s=e.nearZMultiplier,f=e.farZMultiplier,v=W5({width:i,height:r,altitude:a,pitch:n,nearZMultiplier:s,farZMultiplier:f}),g=v.fov,x=v.aspect,C=v.near,T=v.far,O=ua([],g,x,C,T);return O}function Y5(e,i){var r=(0,on.Z)(e,3),n=r[0],a=r[1],s=r[2],f=s===void 0?0:s;return Bp(Number.isFinite(n)&&Number.isFinite(a)&&Number.isFinite(f)),c0(i,[n,a,f,1])}function Px(e,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=(0,on.Z)(e,3),a=n[0],s=n[1],f=n[2];if(Bp(Number.isFinite(a)&&Number.isFinite(s),"invalid pixel coordinate"),Number.isFinite(f)){var v=c0(i,[a,s,f,1]);return v}var g=c0(i,[a,s,0,1]),x=c0(i,[a,s,1,1]),C=g[2],T=x[2],O=C===T?0:((r||0)-C)/(T-C);return Ci.t7([],g,x,O)}var Ix=Cv(),q5=function(){function e(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=i.width,n=i.height,a=i.viewMatrix,s=a===void 0?Ix:a,f=i.projectionMatrix,v=f===void 0?Ix:f;(0,ht.Z)(this,e),this.width=r||1,this.height=n||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=s,this.projectionMatrix=v;var g=Cv();Gn(g,g,this.projectionMatrix),Gn(g,g,this.viewMatrix),this.viewProjectionMatrix=g;var x=Cv();en(x,x,[this.width/2,-this.height/2,1]),jr(x,x,[1,-1,0]),Gn(x,x,this.viewProjectionMatrix);var C=Hr(Cv(),x);if(!C)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=x,this.pixelUnprojectionMatrix=C,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return(0,Pt.Z)(e,[{key:"equals",value:function(r){return r instanceof e?r.width===this.width&&r.height===this.height&&nt(r.projectionMatrix,this.projectionMatrix)&&nt(r.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.topLeft,s=a===void 0?!0:a,f=this.projectPosition(r),v=Y5(f,this.pixelProjectionMatrix),g=(0,on.Z)(v,2),x=g[0],C=g[1],T=s?C:this.height-C;return r.length===2?[x,T]:[x,T,v[2]]}},{key:"unproject",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.topLeft,s=a===void 0?!0:a,f=n.targetZ,v=(0,on.Z)(r,3),g=v[0],x=v[1],C=v[2],T=s?x:this.height-x,O=f&&f*this.pixelsPerMeter,k=Px([g,T,C],this.pixelUnprojectionMatrix,O),j=this.unprojectPosition(k),X=(0,on.Z)(j,3),te=X[0],be=X[1],Ne=X[2];return Number.isFinite(C)?[te,be,Ne]:Number.isFinite(f)?[te,be,f]:[te,be]}},{key:"projectPosition",value:function(r){var n=this.projectFlat(r),a=(0,on.Z)(n,2),s=a[0],f=a[1],v=(r[2]||0)*this.pixelsPerMeter;return[s,f,v]}},{key:"unprojectPosition",value:function(r){var n=this.unprojectFlat(r),a=(0,on.Z)(n,2),s=a[0],f=a[1],v=(r[2]||0)/this.pixelsPerMeter;return[s,f,v]}},{key:"projectFlat",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return r}},{key:"unprojectFlat",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return r}}]),e}();function K5(e){var i=e.width,r=e.height,n=e.bounds,a=e.minExtent,s=a===void 0?0:a,f=e.maxZoom,v=f===void 0?24:f,g=e.padding,x=g===void 0?0:g,C=e.offset,T=C===void 0?[0,0]:C,O=(0,on.Z)(n,2),k=(0,on.Z)(O[0],2),j=k[0],X=k[1],te=(0,on.Z)(O[1],2),be=te[0],Ne=te[1];if(Number.isFinite(x)){var $e=x;x={top:$e,bottom:$e,left:$e,right:$e}}else Bp(Number.isFinite(x.top)&&Number.isFinite(x.bottom)&&Number.isFinite(x.left)&&Number.isFinite(x.right));var ot=new Ox({width:i,height:r,longitude:0,latitude:0,zoom:0}),bt=ot.project([j,Ne]),_t=ot.project([be,X]),qt=[Math.max(Math.abs(_t[0]-bt[0]),s),Math.max(Math.abs(_t[1]-bt[1]),s)],ar=[i-x.left-x.right-Math.abs(T[0])*2,r-x.top-x.bottom-Math.abs(T[1])*2];Bp(ar[0]>0&&ar[1]>0);var Pr=ar[0]/qt[0],qr=ar[1]/qt[1],gr=(x.right-x.left)/2/Pr,un=(x.bottom-x.top)/2/qr,Ln=[(_t[0]+bt[0])/2+gr,(_t[1]+bt[1])/2+un],Vn=ot.unproject(Ln),Fa=ot.zoom+Math.log2(Math.abs(Math.min(Pr,qr)));return{longitude:Vn[0],latitude:Vn[1],zoom:Math.min(Fa,v)}}var Ox=function(e){(0,Ir.Z)(i,e);function i(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=n.width,s=n.height,f=n.latitude,v=f===void 0?0:f,g=n.longitude,x=g===void 0?0:g,C=n.zoom,T=C===void 0?0:C,O=n.pitch,k=O===void 0?0:O,j=n.bearing,X=j===void 0?0:j,te=n.altitude,be=te===void 0?1.5:te,Ne=n.nearZMultiplier,$e=n.farZMultiplier;(0,ht.Z)(this,i),a=a||1,s=s||1;var ot=Tx(T);be=Math.max(.75,be);var bt=f0([x,v],ot);bt[2]=0;var _t=X5({width:a,height:s,pitch:k,bearing:X,altitude:be,nearZMultiplier:Ne||1/s,farZMultiplier:$e||1.01}),qt=H5({height:s,center:bt,pitch:k,bearing:X,altitude:be,flipY:!0});return r=(0,wr.Z)(this,(0,Mt.Z)(i).call(this,{width:a,height:s,viewMatrix:qt,projectionMatrix:_t})),r.latitude=v,r.longitude=x,r.zoom=T,r.pitch=k,r.bearing=X,r.altitude=be,r.scale=ot,r.center=bt,r.pixelsPerMeter=Mx((0,ne.Z)((0,ne.Z)(r))).pixelsPerMeter[2],Object.freeze((0,ne.Z)((0,ne.Z)(r))),r}return(0,Pt.Z)(i,[{key:"projectFlat",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return f0(n,a)}},{key:"unprojectFlat",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return dm(n,a)}},{key:"getMapCenterByLngLatPosition",value:function(n){var a=n.lngLat,s=n.pos,f=Px(s,this.pixelUnprojectionMatrix),v=f0(a,this.scale),g=Ci.IH([],v,Ci.tk([],f)),x=Ci.IH([],this.center,g);return dm(x,this.scale)}},{key:"getLocationAtPoint",value:function(n){var a=n.lngLat,s=n.pos;return this.getMapCenterByLngLatPosition({lngLat:a,pos:s})}},{key:"fitBounds",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.width,f=this.height,v=K5(Object.assign({width:s,height:f,bounds:n},a)),g=v.longitude,x=v.latitude,C=v.zoom;return new i({width:s,height:f,longitude:g,latitude:x,zoom:C})}}]),i}(q5),$5=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"viewport",void 0)}return(0,Pt.Z)(e,[{key:"syncWithMapCamera",value:function(r){var n=r.center,a=r.zoom,s=r.pitch,f=r.bearing,v=r.viewportHeight,g=r.viewportWidth;this.viewport=new Ox({width:g,height:v,longitude:n&&n[0],latitude:n&&n[1],zoom:a,pitch:s,bearing:f})}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(r,n){return this.viewport.projectFlat(r,n)}}]),e}(),Q5=function(){function e(i){(0,ht.Z)(this,e),(0,A.Z)(this,"size",1e4),this.size=i||1e4}return(0,Pt.Z)(e,[{key:"setSize",value:function(r){this.size=r}},{key:"getSize",value:function(){return[this.size,this.size]}},{key:"mercatorXfromLng",value:function(r){return(180+r)/360*this.size}},{key:"mercatorYfromLat",value:function(r){return(1-(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360)*this.size}},{key:"lngFromMercatorX",value:function(r){return r/this.size*360-180}},{key:"latFromMercatorY",value:function(r){var n=180-(1-r/this.size)*360;return 360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90}},{key:"project",value:function(r){var n=this.mercatorXfromLng(r[0]),a=this.mercatorYfromLat(r[1]);return[n,a]}},{key:"unproject",value:function(r){var n=this.lngFromMercatorX(r[0]),a=this.latFromMercatorY(r[1]);return[n,a]}}]),e}(),Rx={light:"mapbox://styles/zcxduo/ck2ypyb1r3q9o1co1766dex29",dark:"mapbox://styles/zcxduo/ck241p6413s0b1cpayzldv7x7",normal:"mapbox://styles/mapbox/streets-v11",blank:{version:8,sources:{},layers:[{id:"background",type:"background",layout:{visibility:"none"}}]}},J5=["id","attributionControl","style","token","rotation","mapInstance"],Lx,kx,Dx,Fx,Bx,Nx,wd,zx,Ux,Zx,jx;function Vx(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function e3(e){for(var i=1;i.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}`),window.mapboxgl=Sv();var Gx={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},r3=0,n3=12,Hx="pk.eyJ1IjoiMTg5Njk5NDg2MTkiLCJhIjoiY2s5OXVzdHlzMDVneDNscDVjdzVmeXl0dyJ9.81SQ5qaJS0xExYLbDZAGpQ",i3=(Lx=(0,Wr.b2)(),kx=(0,Wr.f3)(Ht.MapConfig),Dx=(0,Wr.f3)(Ht.IGlobalConfigService),Fx=(0,Wr.f3)(Ht.ICoordinateSystemService),Bx=(0,Wr.f3)(Ht.IEventEmitter),Lx(Nx=(wd=function(){function e(){var i=this;(0,ht.Z)(this,e),(0,A.Z)(this,"version",js.MAPBOX),(0,A.Z)(this,"map",void 0),(0,A.Z)(this,"simpleMapCoord",new Q5),(0,A.Z)(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),Ui(this,"config",zx,this),Ui(this,"configService",Ux,this),Ui(this,"coordinateSystemService",Zx,this),Ui(this,"eventEmitter",jx,this),(0,A.Z)(this,"viewport",void 0),(0,A.Z)(this,"markerContainer",void 0),(0,A.Z)(this,"cameraChangedCallback",void 0),(0,A.Z)(this,"$mapContainer",void 0),(0,A.Z)(this,"handleCameraChanged",function(){var r=i.map.getCenter().wrap(),n=r.lat,a=r.lng;i.emit("mapchange"),i.viewport.syncWithMapCamera({bearing:i.map.getBearing(),center:[a,n],viewportHeight:i.map.transform.height,pitch:i.map.getPitch(),viewportWidth:i.map.transform.width,zoom:i.map.getZoom(),cameraHeight:0});var s=i.config.offsetZoom,f=s===void 0?n3:s;i.viewport.getZoom()>f?i.coordinateSystemService.setCoordinateSystem(Ai.LNGLAT_OFFSET):i.coordinateSystemService.setCoordinateSystem(Ai.LNGLAT),i.cameraChangedCallback(i.viewport)})}return(0,Pt.Z)(e,[{key:"setBgColor",value:function(r){this.bgColor=r}},{key:"addMarkerContainer",value:function(){var r=this.map.getCanvasContainer();this.markerContainer=lo("div","l7-marker-container",r),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(r,n){j2.indexOf(r)!==-1?this.eventEmitter.on(r,n):this.map.on(Gx[r]||r,n)}},{key:"off",value:function(r,n){this.map.off(Gx[r]||r,n),this.eventEmitter.off(r,n)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){var r=this.map.transform;return[r.width,r.height]}},{key:"getType",value:function(){return"mapbox"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(r){return this.map.setZoom(r)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(r){this.map.setCenter(r)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return this.map.getBearing()}},{key:"getBounds",value:function(){return this.map.getBounds().toArray()}},{key:"getMinZoom",value:function(){return this.map.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.map.getMaxZoom()}},{key:"setRotation",value:function(r){this.map.setBearing(r)}},{key:"zoomIn",value:function(r,n){this.map.zoomIn(r,n)}},{key:"zoomOut",value:function(r,n){this.map.zoomOut(r,n)}},{key:"setPitch",value:function(r){return this.map.setPitch(r)}},{key:"panTo",value:function(r){this.map.panTo(r)}},{key:"panBy",value:function(r,n){this.panTo([r,n])}},{key:"fitBounds",value:function(r,n){this.map.fitBounds(r,n)}},{key:"setMaxZoom",value:function(r){this.map.setMaxZoom(r)}},{key:"setMinZoom",value:function(r){this.map.setMinZoom(r)}},{key:"setMapStatus",value:function(r){r.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),r.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),r.dragEnable===!1&&this.map.dragPan.disable(),r.dragEnable===!0&&this.map.dragPan.enable(),r.rotateEnable===!1&&this.map.dragRotate.disable(),r.rotateEnable===!0&&this.map.dragRotate.enable(),r.keyboardEnable===!1&&this.map.keyboard.disable(),r.keyboardEnable===!0&&this.map.keyboard.enable(),r.zoomEnable===!1&&this.map.scrollZoom.disable(),r.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(r,n){this.map.flyTo({zoom:r,center:n})}},{key:"setMapStyle",value:function(r){this.map.setStyle(this.getMapStyle(r))}},{key:"pixelToLngLat",value:function(r){return this.map.unproject(r)}},{key:"lngLatToPixel",value:function(r){return this.map.project(r)}},{key:"containerToLngLat",value:function(r){return this.map.unproject(r)}},{key:"lngLatToContainer",value:function(r){return this.map.project(r)}},{key:"lngLatToCoord",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},a=this.lngLatToMercator(r,0),s=a.x,f=a.y;return[s-n.x,f-n.y]}},{key:"lngLatToMercator",value:function(r,n){var a=window.mapboxgl.MercatorCoordinate.fromLngLat(r,n),s=a.x,f=s===void 0?0:s,v=a.y,g=v===void 0?0:v,x=a.z,C=x===void 0?0:x;return{x:f,y:g,z:C}}},{key:"getModelMatrix",value:function(r,n,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},v=window.mapboxgl.MercatorCoordinate.fromLngLat(r,n),g=v.meterInMercatorCoordinateUnits(),x=zr();return jr(x,x,Xa.fromValues(v.x-f.x,v.y-f.y,v.z||0-f.z)),en(x,x,Xa.fromValues(g*s[0],-g*s[1],g*s[2])),ui(x,x,a[0]),Ni(x,x,a[1]),Ga(x,x,a[2]),x}},{key:"init",value:function(){var i=(0,P.Z)(N().mark(function n(){var a,s,f,v,g,x,C,T,O,k,j,X,te;return N().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:a=this.config,s=a.id,f=s===void 0?"map":s,v=a.attributionControl,g=v===void 0?!1:v,x=a.style,C=x===void 0?"light":x,T=a.token,O=T===void 0?Hx:T,k=a.rotation,j=k===void 0?0:k,X=a.mapInstance,te=(0,Cc.Z)(a,J5),this.viewport=new $5,!X&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),O===Hx&&C!=="blank"&&!window.mapboxgl.accessToken&&!X&&console.warn(this.configService.getSceneWarninfo("MapToken")),!X&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=O),X?(this.map=X,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatAmapContainer(f),this.map=new window.mapboxgl.Map(e3({container:this.$mapContainer,style:this.getMapStyle(C),attributionControl:g,bearing:j},te))),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return Ne.stop()}},n,this)}));function r(){return i.apply(this,arguments)}return r}()},{key:"destroy",value:function(){var r,n;(r=this.$mapContainer)===null||r===void 0||(n=r.parentNode)===null||n===void 0||n.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(r){for(var n,a=arguments.length,s=new Array(a>1?a-1:0),f=1;f1?a-1:0),f=1;fe.length)&&(i=e.length);for(var r=0,n=new Array(i);re.length)&&(i=e.length);for(var r=0,n=new Array(i);re.length)&&(i=e.length);for(var r=0,n=new Array(i);re.length)&&(i=e.length);for(var r=0,n=new Array(i);r=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function R3(e,i){if(e==null)return{};var r={},n=Object.keys(e),a,s;for(s=0;s=0)&&(r[a]=e[a]);return r}var iO=null,tb=U(73935);function rb(e,i){return F3(e)||D3(e,i)||k3(e,i)||L3()}function L3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k3(e,i){if(!!e){if(typeof e=="string")return nb(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nb(e,i)}}function nb(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function q3(e,i){if(e==null)return{};var r={},n=Object.keys(e),a,s;for(s=0;s=0)&&(r[a]=e[a]);return r}var K3=re.memo(function(i){var r=i.layer,n=i.source,a=n.data,s=Y3(n,X3);return r.inited?r.setData(a,s):r.source(a,s),s.autoFit&&r.fitBounds(s&&s.fitBoundsOptions),null},Ff.isEqual),fO=re.useEffect,$3=re.memo(function(i){var r=i.layer,n=i.style;return r.style(n),null},Ff.isEqual);function Q3(e,i){return rP(e)||tP(e,i)||eP(e,i)||J3()}function J3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eP(e,i){if(!!e){if(typeof e=="string")return sb(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sb(e,i)}}function sb(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r0){fe+=Math.abs(ve(le[0]));for(var Le=1;Le2){for(gt=0;gt=0}},53645:function(){},9187:function(It){"use strict";It.exports=$,It.exports.default=$;function $(A,Ce,De){De=De||2;var wt=Ce&&Ce.length,mt=wt?Ce[0]*De:A.length,Bt=U(A,0,mt,De,!0),Kt=[];if(!Bt||Bt.next===Bt.prev)return Kt;var Cr,ei,vn,di,Wn,si,vi;if(wt&&(Bt=fe(A,Ce,Bt,De)),A.length>80*De){Cr=vn=A[0],ei=di=A[1];for(var qn=De;qnvn&&(vn=Wn),si>di&&(di=si);vi=Math.max(vn-Cr,di-ei),vi=vi!==0?1/vi:0}return re(Bt,Kt,De,Cr,ei,vi),Kt}function U(A,Ce,De,wt,mt){var Bt,Kt;if(mt===tn(A,Ce,De,wt)>0)for(Bt=Ce;Bt=Ce;Bt-=wt)Kt=Qt(Bt,A[Bt],A[Bt+1],Kt);return Kt&&it(Kt,Kt.next)&&(Er(Kt),Kt=Kt.next),Kt}function ae(A,Ce){if(!A)return A;Ce||(Ce=A);var De=A,wt;do if(wt=!1,!De.steiner&&(it(De,De.next)||at(De.prev,De,De.next)===0)){if(Er(De),De=Ce=De.prev,De===De.next)break;wt=!0}else De=De.next;while(wt||De!==Ce);return Ce}function re(A,Ce,De,wt,mt,Bt,Kt){if(!!A){!Kt&&Bt&&Ue(A,wt,mt,Bt);for(var Cr=A,ei,vn;A.prev!==A.next;){if(ei=A.prev,vn=A.next,Bt?ve(A,wt,mt,Bt):m(A)){Ce.push(ei.i/De),Ce.push(A.i/De),Ce.push(vn.i/De),Er(A),A=vn.next,Cr=vn.next;continue}if(A=vn,A===Cr){Kt?Kt===1?(A=Z(ae(A),Ce,De),re(A,Ce,De,wt,mt,Bt,2)):Kt===2&&le(A,Ce,De,wt,mt,Bt):re(ae(A),Ce,De,wt,mt,Bt,1);break}}}}function m(A){var Ce=A.prev,De=A,wt=A.next;if(at(Ce,De,wt)>=0)return!1;for(var mt=A.next.next;mt!==A.prev;){if(Yt(Ce.x,Ce.y,De.x,De.y,wt.x,wt.y,mt.x,mt.y)&&at(mt.prev,mt,mt.next)>=0)return!1;mt=mt.next}return!0}function ve(A,Ce,De,wt){var mt=A.prev,Bt=A,Kt=A.next;if(at(mt,Bt,Kt)>=0)return!1;for(var Cr=mt.xBt.x?mt.x>Kt.x?mt.x:Kt.x:Bt.x>Kt.x?Bt.x:Kt.x,di=mt.y>Bt.y?mt.y>Kt.y?mt.y:Kt.y:Bt.y>Kt.y?Bt.y:Kt.y,Wn=rr(Cr,ei,Ce,De,wt),si=rr(vn,di,Ce,De,wt),vi=A.prevZ,qn=A.nextZ;vi&&vi.z>=Wn&&qn&&qn.z<=si;){if(vi!==A.prev&&vi!==A.next&&Yt(mt.x,mt.y,Bt.x,Bt.y,Kt.x,Kt.y,vi.x,vi.y)&&at(vi.prev,vi,vi.next)>=0||(vi=vi.prevZ,qn!==A.prev&&qn!==A.next&&Yt(mt.x,mt.y,Bt.x,Bt.y,Kt.x,Kt.y,qn.x,qn.y)&&at(qn.prev,qn,qn.next)>=0))return!1;qn=qn.nextZ}for(;vi&&vi.z>=Wn;){if(vi!==A.prev&&vi!==A.next&&Yt(mt.x,mt.y,Bt.x,Bt.y,Kt.x,Kt.y,vi.x,vi.y)&&at(vi.prev,vi,vi.next)>=0)return!1;vi=vi.prevZ}for(;qn&&qn.z<=si;){if(qn!==A.prev&&qn!==A.next&&Yt(mt.x,mt.y,Bt.x,Bt.y,Kt.x,Kt.y,qn.x,qn.y)&&at(qn.prev,qn,qn.next)>=0)return!1;qn=qn.nextZ}return!0}function Z(A,Ce,De){var wt=A;do{var mt=wt.prev,Bt=wt.next.next;!it(mt,Bt)&&Zt(mt,wt,wt.next,Bt)&&Je(mt,Bt)&&Je(Bt,mt)&&(Ce.push(mt.i/De),Ce.push(wt.i/De),Ce.push(Bt.i/De),Er(wt),Er(wt.next),wt=A=Bt),wt=wt.next}while(wt!==A);return ae(wt)}function le(A,Ce,De,wt,mt,Bt){var Kt=A;do{for(var Cr=Kt.next.next;Cr!==Kt.prev;){if(Kt.i!==Cr.i&&Et(Kt,Cr)){var ei=Qe(Kt,Cr);Kt=ae(Kt,Kt.next),ei=ae(ei,ei.next),re(Kt,Ce,De,wt,mt,Bt),re(ei,Ce,De,wt,mt,Bt);return}Cr=Cr.next}Kt=Kt.next}while(Kt!==A)}function fe(A,Ce,De,wt){var mt=[],Bt,Kt,Cr,ei,vn;for(Bt=0,Kt=Ce.length;Bt=De.next.y&&De.next.y!==De.y){var Cr=De.x+(mt-De.y)*(De.next.x-De.x)/(De.next.y-De.y);if(Cr<=wt&&Cr>Bt){if(Bt=Cr,Cr===wt){if(mt===De.y)return De;if(mt===De.next.y)return De.next}Kt=De.x=De.x&&De.x>=vn&&wt!==De.x&&Yt(mtKt.x||De.x===Kt.x&&et(Kt,De)))&&(Kt=De,Wn=si)),De=De.next;while(De!==ei);return Kt}function et(A,Ce){return at(A.prev,A,Ce.prev)<0&&at(Ce.next,A,A.next)<0}function Ue(A,Ce,De,wt){var mt=A;do mt.z===null&&(mt.z=rr(mt.x,mt.y,Ce,De,wt)),mt.prevZ=mt.prev,mt.nextZ=mt.next,mt=mt.next;while(mt!==A);mt.prevZ.nextZ=null,mt.prevZ=null,gt(mt)}function gt(A){var Ce,De,wt,mt,Bt,Kt,Cr,ei,vn=1;do{for(De=A,A=null,Bt=null,Kt=0;De;){for(Kt++,wt=De,Cr=0,Ce=0;Ce0||ei>0&&wt;)Cr!==0&&(ei===0||!wt||De.z<=wt.z)?(mt=De,De=De.nextZ,Cr--):(mt=wt,wt=wt.nextZ,ei--),Bt?Bt.nextZ=mt:A=mt,mt.prevZ=Bt,Bt=mt;De=wt}Bt.nextZ=null,vn*=2}while(Kt>1);return A}function rr(A,Ce,De,wt,mt){return A=32767*(A-De)*mt,Ce=32767*(Ce-wt)*mt,A=(A|A<<8)&16711935,A=(A|A<<4)&252645135,A=(A|A<<2)&858993459,A=(A|A<<1)&1431655765,Ce=(Ce|Ce<<8)&16711935,Ce=(Ce|Ce<<4)&252645135,Ce=(Ce|Ce<<2)&858993459,Ce=(Ce|Ce<<1)&1431655765,A|Ce<<1}function xt(A){var Ce=A,De=A;do(Ce.x=0&&(A-Kt)*(wt-Cr)-(De-Kt)*(Ce-Cr)>=0&&(De-Kt)*(Bt-Cr)-(mt-Kt)*(wt-Cr)>=0}function Et(A,Ce){return A.next.i!==Ce.i&&A.prev.i!==Ce.i&&!ft(A,Ce)&&(Je(A,Ce)&&Je(Ce,A)&&At(A,Ce)&&(at(A.prev,A,Ce.prev)||at(A,Ce.prev,Ce))||it(A,Ce)&&at(A.prev,A,A.next)>0&&at(Ce.prev,Ce,Ce.next)>0)}function at(A,Ce,De){return(Ce.y-A.y)*(De.x-Ce.x)-(Ce.x-A.x)*(De.y-Ce.y)}function it(A,Ce){return A.x===Ce.x&&A.y===Ce.y}function Zt(A,Ce,De,wt){var mt=$t(at(A,Ce,De)),Bt=$t(at(A,Ce,wt)),Kt=$t(at(De,wt,A)),Cr=$t(at(De,wt,Ce));return!!(mt!==Bt&&Kt!==Cr||mt===0&&Y(A,De,Ce)||Bt===0&&Y(A,wt,Ce)||Kt===0&&Y(De,A,wt)||Cr===0&&Y(De,Ce,wt))}function Y(A,Ce,De){return Ce.x<=Math.max(A.x,De.x)&&Ce.x>=Math.min(A.x,De.x)&&Ce.y<=Math.max(A.y,De.y)&&Ce.y>=Math.min(A.y,De.y)}function $t(A){return A>0?1:A<0?-1:0}function ft(A,Ce){var De=A;do{if(De.i!==A.i&&De.next.i!==A.i&&De.i!==Ce.i&&De.next.i!==Ce.i&&Zt(De,De.next,A,Ce))return!0;De=De.next}while(De!==A);return!1}function Je(A,Ce){return at(A.prev,A,A.next)<0?at(A,Ce,A.next)>=0&&at(A,A.prev,Ce)>=0:at(A,Ce,A.prev)<0||at(A,A.next,Ce)<0}function At(A,Ce){var De=A,wt=!1,mt=(A.x+Ce.x)/2,Bt=(A.y+Ce.y)/2;do De.y>Bt!=De.next.y>Bt&&De.next.y!==De.y&&mt<(De.next.x-De.x)*(Bt-De.y)/(De.next.y-De.y)+De.x&&(wt=!wt),De=De.next;while(De!==A);return wt}function Qe(A,Ce){var De=new Nr(A.i,A.x,A.y),wt=new Nr(Ce.i,Ce.x,Ce.y),mt=A.next,Bt=Ce.prev;return A.next=Ce,Ce.prev=A,De.next=mt,mt.prev=De,wt.next=De,De.prev=wt,Bt.next=wt,wt.prev=Bt,wt}function Qt(A,Ce,De,wt){var mt=new Nr(A,Ce,De);return wt?(mt.next=wt.next,mt.prev=wt,wt.next.prev=mt,wt.next=mt):(mt.prev=mt,mt.next=mt),mt}function Er(A){A.next.prev=A.prev,A.prev.next=A.next,A.prevZ&&(A.prevZ.nextZ=A.nextZ),A.nextZ&&(A.nextZ.prevZ=A.prevZ)}function Nr(A,Ce,De){this.i=A,this.x=Ce,this.y=De,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}$.deviation=function(A,Ce,De,wt){var mt=Ce&&Ce.length,Bt=mt?Ce[0]*De:A.length,Kt=Math.abs(tn(A,0,Bt,De));if(mt)for(var Cr=0,ei=Ce.length;Cr0&&(wt+=A[mt-1].length,De.holes.push(wt))}return De}},67709:function(It){function $(ae){var re=ae.target||ae.srcElement;re.__resizeRAF__&&cancelAnimationFrame(re.__resizeRAF__),re.__resizeRAF__=requestAnimationFrame(function(){var m=re.__resizeTrigger__,ve=m&&m.__resizeListeners__;ve&&ve.forEach(function(Z){Z.call(m,ae)})})}var U=function(re,m){var ve=this,Z=ve.document,le,fe=Z.attachEvent;typeof navigator!="undefined"&&(le=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));function Le(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",$)}if(!re.__resizeListeners__)if(re.__resizeListeners__=[],fe)re.__resizeTrigger__=re,re.attachEvent("onresize",$);else{getComputedStyle(re).position==="static"&&(re.style.position="relative");var J=re.__resizeTrigger__=Z.createElement("object");J.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),J.setAttribute("class","resize-sensor"),J.setAttribute("tabindex","-1"),J.setAttribute("title",""),J.__resizeElement__=re,J.onload=Le,J.type="text/html",le&&re.appendChild(J),J.data="about:blank",le||re.appendChild(J)}re.__resizeListeners__.push(m)};It.exports=typeof window=="undefined"?U:U.bind(window),It.exports.unbind=function(ae,re){var m=document.attachEvent,ve=ae.__resizeListeners__||[];if(re){var Z=ve.indexOf(re);Z!==-1&&ve.splice(Z,1)}else ve=ae.__resizeListeners__=[];if(!ve.length){if(m)ae.detachEvent("onresize",$);else if(ae.__resizeTrigger__){var le=ae.__resizeTrigger__.contentDocument,fe=le&&le.defaultView;fe&&(fe.removeEventListener("resize",$),delete fe.__resizeTrigger__),ae.__resizeTrigger__=!ae.removeChild(ae.__resizeTrigger__)}delete ae.__resizeListeners__}}},26729:function(It){"use strict";var $=Object.prototype.hasOwnProperty,U="~";function ae(){}Object.create&&(ae.prototype=Object.create(null),new ae().__proto__||(U=!1));function re(le,fe,Le){this.fn=le,this.context=fe,this.once=Le||!1}function m(le,fe,Le,J,Xe){if(typeof Le!="function")throw new TypeError("The listener must be a function");var et=new re(Le,J||le,Xe),Ue=U?U+fe:fe;return le._events[Ue]?le._events[Ue].fn?le._events[Ue]=[le._events[Ue],et]:le._events[Ue].push(et):(le._events[Ue]=et,le._eventsCount++),le}function ve(le,fe){--le._eventsCount==0?le._events=new ae:delete le._events[fe]}function Z(){this._events=new ae,this._eventsCount=0}Z.prototype.eventNames=function(){var fe=[],Le,J;if(this._eventsCount===0)return fe;for(J in Le=this._events)$.call(Le,J)&&fe.push(U?J.slice(1):J);return Object.getOwnPropertySymbols?fe.concat(Object.getOwnPropertySymbols(Le)):fe},Z.prototype.listeners=function(fe){var Le=U?U+fe:fe,J=this._events[Le];if(!J)return[];if(J.fn)return[J.fn];for(var Xe=0,et=J.length,Ue=new Array(et);Xe= than the number of constructor arguments of its base class.")};$.ARGUMENTS_LENGTH_MISMATCH=ae,$.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",$.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",$.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",$.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",$.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var re=function(){for(var ve=[],Z=0;Z0&&$t[$t.length-1])&&(Qe[0]===6||Qe[0]===2)){it=0;continue}if(Qe[0]===3&&(!$t||Qe[1]>$t[0]&&Qe[1]<$t[3])){it.label=Qe[1];break}if(Qe[0]===6&&it.label<$t[1]){it.label=$t[1],$t=Qe;break}if($t&&it.label<$t[2]){it.label=$t[2],it.ops.push(Qe);break}$t[2]&&it.ops.pop(),it.trys.pop();continue}Qe=at.call(Et,it)}catch(Qt){Qe=[6,Qt],Y=0}finally{Zt=$t=0}if(Qe[0]&5)throw Qe[1];return{value:Qe[0]?Qe[1]:void 0,done:!0}}},m=this&&this.__spreadArray||function(Et,at){for(var it=0,Zt=at.length,Y=Et.length;it0?Z._map.set(fe,Le):Z._map.delete(fe)})},m.prototype.hasKey=function(ve){if(ve==null)throw new Error(ae.NULL_ARGUMENT);return this._map.has(ve)},m.prototype.clone=function(){var ve=new m;return this._map.forEach(function(Z,le){Z.forEach(function(fe){return ve.add(le,fe.clone())})}),ve},m.prototype.traverse=function(ve){this._map.forEach(function(Z,le){ve(le,Z)})},m}();$.Lookup=re},86700:function(It,$,U){"use strict";var ae;ae={value:!0},ae=ae=ae=ae=ae=ae=$.GW=ae=ae=$.zY=ae=ae=ae=ae=ae=$.f3=ae=ae=$.b2=ae=ae=ae=ae=ae=$.W2=ae=void 0;var re=U(6867);ae=re;var m=U(51389);Object.defineProperty($,"W2",{enumerable:!0,get:function(){return m.Container}});var ve=U(28421);ae={enumerable:!0,get:function(){return ve.BindingScopeEnum}},ae={enumerable:!0,get:function(){return ve.BindingTypeEnum}},ae={enumerable:!0,get:function(){return ve.TargetTypeEnum}};var Z=U(33244);ae={enumerable:!0,get:function(){return Z.AsyncContainerModule}},ae={enumerable:!0,get:function(){return Z.ContainerModule}};var le=U(64315);Object.defineProperty($,"b2",{enumerable:!0,get:function(){return le.injectable}});var fe=U(32052);ae={enumerable:!0,get:function(){return fe.tagged}};var Le=U(38085);ae={enumerable:!0,get:function(){return Le.named}};var J=U(5744);Object.defineProperty($,"f3",{enumerable:!0,get:function(){return J.inject}}),ae={enumerable:!0,get:function(){return J.LazyServiceIdentifer}};var Xe=U(6515);ae={enumerable:!0,get:function(){return Xe.optional}};var et=U(86757);ae={enumerable:!0,get:function(){return et.unmanaged}};var Ue=U(71693);ae={enumerable:!0,get:function(){return Ue.multiInject}};var gt=U(55638);ae={enumerable:!0,get:function(){return gt.targetName}};var rr=U(7014);Object.defineProperty($,"zY",{enumerable:!0,get:function(){return rr.postConstruct}});var xt=U(51377);ae={enumerable:!0,get:function(){return xt.MetadataReader}};var Yt=U(37791);ae={enumerable:!0,get:function(){return Yt.id}};var Et=U(99934);Object.defineProperty($,"GW",{enumerable:!0,get:function(){return Et.decorate}});var at=U(80758);ae={enumerable:!0,get:function(){return at.traverseAncerstors}},ae={enumerable:!0,get:function(){return at.taggedConstraint}},ae={enumerable:!0,get:function(){return at.namedConstraint}},ae={enumerable:!0,get:function(){return at.typeConstraint}};var it=U(55800);ae={enumerable:!0,get:function(){return it.getServiceIdentifierAsString}};var Zt=U(70600);ae={enumerable:!0,get:function(){return Zt.multiBindToService}}},95228:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.Context=void 0;var ae=U(37791),re=function(){function m(ve){this.id=ae.id(),this.container=ve}return m.prototype.addPlan=function(ve){this.plan=ve},m.prototype.setCurrentRequest=function(ve){this.currentRequest=ve},m}();$.Context=re},47738:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.Metadata=void 0;var ae=U(6867),re=function(){function m(ve,Z){this.key=ve,this.value=Z}return m.prototype.toString=function(){return this.key===ae.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},m}();$.Metadata=re},51377:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.MetadataReader=void 0;var ae=U(6867),re=function(){function m(){}return m.prototype.getConstructorMetadata=function(ve){var Z=Reflect.getMetadata(ae.PARAM_TYPES,ve),le=Reflect.getMetadata(ae.TAGGED,ve);return{compilerGeneratedMetadata:Z,userGeneratedMetadata:le||{}}},m.prototype.getPropertiesMetadata=function(ve){var Z=Reflect.getMetadata(ae.TAGGED_PROP,ve)||[];return Z},m}();$.MetadataReader=re},55314:function(It,$){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.Plan=void 0;var U=function(){function ae(re,m){this.parentContext=re,this.rootRequest=m}return ae}();$.Plan=U},86311:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.getBindingDictionary=$.createMockRequest=$.plan=void 0;var ae=U(23184),re=U(16674),m=U(28421),ve=U(6867),Z=U(85265),le=U(55800),fe=U(95228),Le=U(47738),J=U(55314),Xe=U(6e3),et=U(6748),Ue=U(18924);function gt(Y){return Y._bindingDictionary}$.getBindingDictionary=gt;function rr(Y,$t,ft,Je,At,Qe){var Qt=Y?ve.MULTI_INJECT_TAG:ve.INJECT_TAG,Er=new Le.Metadata(Qt,ft),Nr=new Ue.Target($t,Je,ft,Er);if(At!==void 0){var tn=new Le.Metadata(At,Qe);Nr.metadata.push(tn)}return Nr}function xt(Y,$t,ft,Je,At){var Qe=at(ft.container,At.serviceIdentifier),Qt=[];return Qe.length===ae.BindingCount.NoBindingsAvailable&&ft.container.options.autoBindInjectable&&typeof At.serviceIdentifier=="function"&&Y.getConstructorMetadata(At.serviceIdentifier).compilerGeneratedMetadata&&(ft.container.bind(At.serviceIdentifier).toSelf(),Qe=at(ft.container,At.serviceIdentifier)),$t?Qt=Qe:Qt=Qe.filter(function(Er){var Nr=new et.Request(Er.serviceIdentifier,ft,Je,Er,At);return Er.constraint(Nr)}),Yt(At.serviceIdentifier,Qt,At,ft.container),Qt}function Yt(Y,$t,ft,Je){switch($t.length){case ae.BindingCount.NoBindingsAvailable:if(ft.isOptional())return $t;var At=le.getServiceIdentifierAsString(Y),Qe=re.NOT_REGISTERED;throw Qe+=le.listMetadataForTarget(At,ft),Qe+=le.listRegisteredBindingsForServiceIdentifier(Je,At,at),new Error(Qe);case ae.BindingCount.OnlyOneBindingAvailable:if(!ft.isArray())return $t;case ae.BindingCount.MultipleBindingsAvailable:default:if(ft.isArray())return $t;var At=le.getServiceIdentifierAsString(Y),Qe=re.AMBIGUOUS_MATCH+" "+At;throw Qe+=le.listRegisteredBindingsForServiceIdentifier(Je,At,at),new Error(Qe)}}function Et(Y,$t,ft,Je,At,Qe){var Qt,Er;if(At===null){Qt=xt(Y,$t,Je,null,Qe),Er=new et.Request(ft,Je,null,Qt,Qe);var Nr=new J.Plan(Je,Er);Je.addPlan(Nr)}else Qt=xt(Y,$t,Je,At,Qe),Er=At.addChildRequest(Qe.serviceIdentifier,Qt,Qe);Qt.forEach(function(tn){var A=null;if(Qe.isArray())A=Er.addChildRequest(tn.serviceIdentifier,tn,Qe);else{if(tn.cache)return;A=Er}if(tn.type===m.BindingTypeEnum.Instance&&tn.implementationType!==null){var Ce=Xe.getDependencies(Y,tn.implementationType);if(!Je.container.options.skipBaseClassChecks){var De=Xe.getBaseClassDependencyCount(Y,tn.implementationType);if(Ce.length0,At=ft.length>Et.length,Qe=Je||At?ft.length:Et.length,Qt=et(at,Yt,Zt,$t,Qe),Er=Ue(xt,Et),Nr=ae(ae([],Qt),Er);return Nr}function Xe(xt,Yt,Et,at,it){var Zt=it[xt.toString()]||[],Y=rr(Zt),$t=Y.unmanaged!==!0,ft=at[xt],Je=Y.inject||Y.multiInject;if(ft=Je||ft,ft instanceof re.LazyServiceIdentifer&&(ft=ft.unwrap()),$t){var At=ft===Object,Qe=ft===Function,Qt=ft===void 0,Er=At||Qe||Qt;if(!Yt&&Er){var Nr=m.MISSING_INJECT_ANNOTATION+" argument "+xt+" in class "+Et+".";throw new Error(Nr)}var tn=new fe.Target(ve.TargetTypeEnum.ConstructorArgument,Y.targetName,ft);return tn.metadata=Zt,tn}return null}function et(xt,Yt,Et,at,it){for(var Zt=[],Y=0;Y0?$t:gt(xt,Et)}else return 0}$.getBaseClassDependencyCount=gt;function rr(xt){var Yt={};return xt.forEach(function(Et){Yt[Et.key.toString()]=Et.value}),{inject:Yt[Z.INJECT_TAG],multiInject:Yt[Z.MULTI_INJECT_TAG],targetName:Yt[Z.NAME_TAG],unmanaged:Yt[Z.UNMANAGED_TAG]}}},6748:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.Request=void 0;var ae=U(37791),re=function(){function m(ve,Z,le,fe,Le){this.id=ae.id(),this.serviceIdentifier=ve,this.parentContext=Z,this.parentRequest=le,this.target=Le,this.childRequests=[],this.bindings=Array.isArray(fe)?fe:[fe],this.requestScope=le===null?new Map:null}return m.prototype.addChildRequest=function(ve,Z,le){var fe=new m(ve,this.parentContext,this,Z,le);return this.childRequests.push(fe),fe},m}();$.Request=re},18924:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.Target=void 0;var ae=U(6867),re=U(37791),m=U(47738),ve=U(88460),Z=function(){function le(fe,Le,J,Xe){this.id=re.id(),this.type=fe,this.serviceIdentifier=J,this.name=new ve.QueryableString(Le||""),this.metadata=new Array;var et=null;typeof Xe=="string"?et=new m.Metadata(ae.NAMED_TAG,Xe):Xe instanceof m.Metadata&&(et=Xe),et!==null&&this.metadata.push(et)}return le.prototype.hasTag=function(fe){for(var Le=0,J=this.metadata;Le0){var gt=Xe.filter(function(xt){return xt.target!==null&&xt.target.type===m.TargetTypeEnum.ConstructorArgument}),rr=gt.map(et);Ue=le(J,rr),Ue=Z(Ue,Xe,et)}else Ue=new J;return fe(J,Ue),Ue}$.resolveInstance=Le},31927:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.resolve=void 0;var ae=U(16674),re=U(28421),m=U(85265),ve=U(55800),Z=U(52279),le=function(J,Xe,et){try{return et()}catch(Ue){throw m.isStackOverflowExeption(Ue)?new Error(ae.CIRCULAR_DEPENDENCY_IN_FACTORY(J,Xe.toString())):Ue}},fe=function(J){return function(Xe){Xe.parentContext.setCurrentRequest(Xe);var et=Xe.bindings,Ue=Xe.childRequests,gt=Xe.target&&Xe.target.isArray(),rr=!Xe.parentRequest||!Xe.parentRequest.target||!Xe.target||!Xe.parentRequest.target.matchesArray(Xe.target.serviceIdentifier);if(gt&&rr)return Ue.map(function(Zt){var Y=fe(J);return Y(Zt)});var xt=null;if(Xe.target.isOptional()&&et.length===0)return;var Yt=et[0],Et=Yt.scope===re.BindingScopeEnum.Singleton,at=Yt.scope===re.BindingScopeEnum.Request;if(Et&&Yt.activated)return Yt.cache;if(at&&J!==null&&J.has(Yt.id))return J.get(Yt.id);if(Yt.type===re.BindingTypeEnum.ConstantValue)xt=Yt.cache,Yt.activated=!0;else if(Yt.type===re.BindingTypeEnum.Function)xt=Yt.cache,Yt.activated=!0;else if(Yt.type===re.BindingTypeEnum.Constructor)xt=Yt.implementationType;else if(Yt.type===re.BindingTypeEnum.DynamicValue&&Yt.dynamicValue!==null)xt=le("toDynamicValue",Yt.serviceIdentifier,function(){return Yt.dynamicValue(Xe.parentContext)});else if(Yt.type===re.BindingTypeEnum.Factory&&Yt.factory!==null)xt=le("toFactory",Yt.serviceIdentifier,function(){return Yt.factory(Xe.parentContext)});else if(Yt.type===re.BindingTypeEnum.Provider&&Yt.provider!==null)xt=le("toProvider",Yt.serviceIdentifier,function(){return Yt.provider(Xe.parentContext)});else if(Yt.type===re.BindingTypeEnum.Instance&&Yt.implementationType!==null)xt=Z.resolveInstance(Yt.implementationType,Ue,fe(J));else{var it=ve.getServiceIdentifierAsString(Xe.serviceIdentifier);throw new Error(ae.INVALID_BINDING_TYPE+" "+it)}return typeof Yt.onActivation=="function"&&(xt=Yt.onActivation(Xe.parentContext,xt)),Et&&(Yt.cache=xt,Yt.activated=!0),at&&J!==null&&!J.has(Yt.id)&&J.set(Yt.id,xt),xt}};function Le(J){var Xe=fe(J.plan.rootRequest.requestScope);return Xe(J.plan.rootRequest)}$.resolve=Le},83366:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.BindingInSyntax=void 0;var ae=U(28421),re=U(71325),m=function(){function ve(Z){this._binding=Z}return ve.prototype.inRequestScope=function(){return this._binding.scope=ae.BindingScopeEnum.Request,new re.BindingWhenOnSyntax(this._binding)},ve.prototype.inSingletonScope=function(){return this._binding.scope=ae.BindingScopeEnum.Singleton,new re.BindingWhenOnSyntax(this._binding)},ve.prototype.inTransientScope=function(){return this._binding.scope=ae.BindingScopeEnum.Transient,new re.BindingWhenOnSyntax(this._binding)},ve}();$.BindingInSyntax=m},74889:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.BindingInWhenOnSyntax=void 0;var ae=U(83366),re=U(51811),m=U(98370),ve=function(){function Z(le){this._binding=le,this._bindingWhenSyntax=new m.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new re.BindingOnSyntax(this._binding),this._bindingInSyntax=new ae.BindingInSyntax(le)}return Z.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},Z.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},Z.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},Z.prototype.when=function(le){return this._bindingWhenSyntax.when(le)},Z.prototype.whenTargetNamed=function(le){return this._bindingWhenSyntax.whenTargetNamed(le)},Z.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},Z.prototype.whenTargetTagged=function(le,fe){return this._bindingWhenSyntax.whenTargetTagged(le,fe)},Z.prototype.whenInjectedInto=function(le){return this._bindingWhenSyntax.whenInjectedInto(le)},Z.prototype.whenParentNamed=function(le){return this._bindingWhenSyntax.whenParentNamed(le)},Z.prototype.whenParentTagged=function(le,fe){return this._bindingWhenSyntax.whenParentTagged(le,fe)},Z.prototype.whenAnyAncestorIs=function(le){return this._bindingWhenSyntax.whenAnyAncestorIs(le)},Z.prototype.whenNoAncestorIs=function(le){return this._bindingWhenSyntax.whenNoAncestorIs(le)},Z.prototype.whenAnyAncestorNamed=function(le){return this._bindingWhenSyntax.whenAnyAncestorNamed(le)},Z.prototype.whenAnyAncestorTagged=function(le,fe){return this._bindingWhenSyntax.whenAnyAncestorTagged(le,fe)},Z.prototype.whenNoAncestorNamed=function(le){return this._bindingWhenSyntax.whenNoAncestorNamed(le)},Z.prototype.whenNoAncestorTagged=function(le,fe){return this._bindingWhenSyntax.whenNoAncestorTagged(le,fe)},Z.prototype.whenAnyAncestorMatches=function(le){return this._bindingWhenSyntax.whenAnyAncestorMatches(le)},Z.prototype.whenNoAncestorMatches=function(le){return this._bindingWhenSyntax.whenNoAncestorMatches(le)},Z.prototype.onActivation=function(le){return this._bindingOnSyntax.onActivation(le)},Z}();$.BindingInWhenOnSyntax=ve},51811:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.BindingOnSyntax=void 0;var ae=U(98370),re=function(){function m(ve){this._binding=ve}return m.prototype.onActivation=function(ve){return this._binding.onActivation=ve,new ae.BindingWhenSyntax(this._binding)},m}();$.BindingOnSyntax=re},15451:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.BindingToSyntax=void 0;var ae=U(16674),re=U(28421),m=U(74889),ve=U(71325),Z=function(){function le(fe){this._binding=fe}return le.prototype.to=function(fe){return this._binding.type=re.BindingTypeEnum.Instance,this._binding.implementationType=fe,new m.BindingInWhenOnSyntax(this._binding)},le.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+ae.INVALID_TO_SELF_VALUE);var fe=this._binding.serviceIdentifier;return this.to(fe)},le.prototype.toConstantValue=function(fe){return this._binding.type=re.BindingTypeEnum.ConstantValue,this._binding.cache=fe,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=re.BindingScopeEnum.Singleton,new ve.BindingWhenOnSyntax(this._binding)},le.prototype.toDynamicValue=function(fe){return this._binding.type=re.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=fe,this._binding.implementationType=null,new m.BindingInWhenOnSyntax(this._binding)},le.prototype.toConstructor=function(fe){return this._binding.type=re.BindingTypeEnum.Constructor,this._binding.implementationType=fe,this._binding.scope=re.BindingScopeEnum.Singleton,new ve.BindingWhenOnSyntax(this._binding)},le.prototype.toFactory=function(fe){return this._binding.type=re.BindingTypeEnum.Factory,this._binding.factory=fe,this._binding.scope=re.BindingScopeEnum.Singleton,new ve.BindingWhenOnSyntax(this._binding)},le.prototype.toFunction=function(fe){if(typeof fe!="function")throw new Error(ae.INVALID_FUNCTION_BINDING);var Le=this.toConstantValue(fe);return this._binding.type=re.BindingTypeEnum.Function,this._binding.scope=re.BindingScopeEnum.Singleton,Le},le.prototype.toAutoFactory=function(fe){return this._binding.type=re.BindingTypeEnum.Factory,this._binding.factory=function(Le){var J=function(){return Le.container.get(fe)};return J},this._binding.scope=re.BindingScopeEnum.Singleton,new ve.BindingWhenOnSyntax(this._binding)},le.prototype.toProvider=function(fe){return this._binding.type=re.BindingTypeEnum.Provider,this._binding.provider=fe,this._binding.scope=re.BindingScopeEnum.Singleton,new ve.BindingWhenOnSyntax(this._binding)},le.prototype.toService=function(fe){this.toDynamicValue(function(Le){return Le.container.get(fe)})},le}();$.BindingToSyntax=Z},71325:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.BindingWhenOnSyntax=void 0;var ae=U(51811),re=U(98370),m=function(){function ve(Z){this._binding=Z,this._bindingWhenSyntax=new re.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new ae.BindingOnSyntax(this._binding)}return ve.prototype.when=function(Z){return this._bindingWhenSyntax.when(Z)},ve.prototype.whenTargetNamed=function(Z){return this._bindingWhenSyntax.whenTargetNamed(Z)},ve.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},ve.prototype.whenTargetTagged=function(Z,le){return this._bindingWhenSyntax.whenTargetTagged(Z,le)},ve.prototype.whenInjectedInto=function(Z){return this._bindingWhenSyntax.whenInjectedInto(Z)},ve.prototype.whenParentNamed=function(Z){return this._bindingWhenSyntax.whenParentNamed(Z)},ve.prototype.whenParentTagged=function(Z,le){return this._bindingWhenSyntax.whenParentTagged(Z,le)},ve.prototype.whenAnyAncestorIs=function(Z){return this._bindingWhenSyntax.whenAnyAncestorIs(Z)},ve.prototype.whenNoAncestorIs=function(Z){return this._bindingWhenSyntax.whenNoAncestorIs(Z)},ve.prototype.whenAnyAncestorNamed=function(Z){return this._bindingWhenSyntax.whenAnyAncestorNamed(Z)},ve.prototype.whenAnyAncestorTagged=function(Z,le){return this._bindingWhenSyntax.whenAnyAncestorTagged(Z,le)},ve.prototype.whenNoAncestorNamed=function(Z){return this._bindingWhenSyntax.whenNoAncestorNamed(Z)},ve.prototype.whenNoAncestorTagged=function(Z,le){return this._bindingWhenSyntax.whenNoAncestorTagged(Z,le)},ve.prototype.whenAnyAncestorMatches=function(Z){return this._bindingWhenSyntax.whenAnyAncestorMatches(Z)},ve.prototype.whenNoAncestorMatches=function(Z){return this._bindingWhenSyntax.whenNoAncestorMatches(Z)},ve.prototype.onActivation=function(Z){return this._bindingOnSyntax.onActivation(Z)},ve}();$.BindingWhenOnSyntax=m},98370:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.BindingWhenSyntax=void 0;var ae=U(51811),re=U(80758),m=function(){function ve(Z){this._binding=Z}return ve.prototype.when=function(Z){return this._binding.constraint=Z,new ae.BindingOnSyntax(this._binding)},ve.prototype.whenTargetNamed=function(Z){return this._binding.constraint=re.namedConstraint(Z),new ae.BindingOnSyntax(this._binding)},ve.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(Z){var le=Z.target!==null&&!Z.target.isNamed()&&!Z.target.isTagged();return le},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenTargetTagged=function(Z,le){return this._binding.constraint=re.taggedConstraint(Z)(le),new ae.BindingOnSyntax(this._binding)},ve.prototype.whenInjectedInto=function(Z){return this._binding.constraint=function(le){return re.typeConstraint(Z)(le.parentRequest)},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenParentNamed=function(Z){return this._binding.constraint=function(le){return re.namedConstraint(Z)(le.parentRequest)},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenParentTagged=function(Z,le){return this._binding.constraint=function(fe){return re.taggedConstraint(Z)(le)(fe.parentRequest)},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenAnyAncestorIs=function(Z){return this._binding.constraint=function(le){return re.traverseAncerstors(le,re.typeConstraint(Z))},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenNoAncestorIs=function(Z){return this._binding.constraint=function(le){return!re.traverseAncerstors(le,re.typeConstraint(Z))},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenAnyAncestorNamed=function(Z){return this._binding.constraint=function(le){return re.traverseAncerstors(le,re.namedConstraint(Z))},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenNoAncestorNamed=function(Z){return this._binding.constraint=function(le){return!re.traverseAncerstors(le,re.namedConstraint(Z))},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenAnyAncestorTagged=function(Z,le){return this._binding.constraint=function(fe){return re.traverseAncerstors(fe,re.taggedConstraint(Z)(le))},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenNoAncestorTagged=function(Z,le){return this._binding.constraint=function(fe){return!re.traverseAncerstors(fe,re.taggedConstraint(Z)(le))},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenAnyAncestorMatches=function(Z){return this._binding.constraint=function(le){return re.traverseAncerstors(le,Z)},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenNoAncestorMatches=function(Z){return this._binding.constraint=function(le){return!re.traverseAncerstors(le,Z)},new ae.BindingOnSyntax(this._binding)},ve}();$.BindingWhenSyntax=m},80758:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.typeConstraint=$.namedConstraint=$.taggedConstraint=$.traverseAncerstors=void 0;var ae=U(6867),re=U(47738),m=function(fe,Le){var J=fe.parentRequest;return J!==null?Le(J)?!0:m(J,Le):!1};$.traverseAncerstors=m;var ve=function(fe){return function(Le){var J=function(Xe){return Xe!==null&&Xe.target!==null&&Xe.target.matchesTag(fe)(Le)};return J.metaData=new re.Metadata(fe,Le),J}};$.taggedConstraint=ve;var Z=ve(ae.NAMED_TAG);$.namedConstraint=Z;var le=function(fe){return function(Le){var J=null;if(Le!==null)if(J=Le.bindings[0],typeof fe=="string"){var Xe=J.serviceIdentifier;return Xe===fe}else{var et=Le.bindings[0].implementationType;return fe===et}return!1}};$.typeConstraint=le},70600:function(It,$){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.multiBindToService=void 0;var U=function(ae){return function(re){return function(){for(var m=[],ve=0;ve ")}function le(J){J.childRequests.forEach(function(Xe){if(ve(Xe,Xe.serviceIdentifier)){var et=Z(Xe);throw new Error(ae.CIRCULAR_DEPENDENCY+" "+et)}else le(Xe)})}$.circularDependencyToException=le;function fe(J,Xe){if(Xe.isTagged()||Xe.isNamed()){var et="",Ue=Xe.getNamedTag(),gt=Xe.getCustomTags();return Ue!==null&&(et+=Ue.toString()+` +`),gt!==null&>.forEach(function(rr){et+=rr.toString()+` +`})," "+J+` + `+J+" - "+et}else return" "+J}$.listMetadataForTarget=fe;function Le(J){if(J.name)return J.name;var Xe=J.toString(),et=Xe.match(/^function\s*([^\s(]+)/);return et?et[1]:"Anonymous function: "+Xe}$.getFunctionName=Le},31745:function(It){"use strict";It.exports=U,It.exports.default=U;var $=1e20;function U(Z,le,fe,Le,J,Xe){this.fontSize=Z||24,this.buffer=le===void 0?3:le,this.cutoff=Le||.25,this.fontFamily=J||"sans-serif",this.fontWeight=Xe||"normal",this.radius=fe||8;var et=this.size=this.fontSize+this.buffer*2,Ue=et+this.buffer*2,gt=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0;gt?this.canvas=my.createOffscreenCanvas(et,et,"2d"):(this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=et),this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(Ue*Ue),this.gridInner=new Float64Array(Ue*Ue),this.f=new Float64Array(Ue),this.z=new Float64Array(Ue+1),this.v=new Uint16Array(Ue),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,gt?this.middle=Math.round(et/2*1):this.middle=Math.round(et/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function ae(Z,le,fe,Le,J,Xe,et){Xe.fill($,0,le*fe),et.fill(0,0,le*fe);for(var Ue=(le-Le)/2,gt=0;gt-1);gt++,Xe[gt]=Ue,et[gt]=rr,et[gt+1]=$}for(Ue=0,gt=0;Ue_)return!1;if(F+=M[R+1],F>=_)return!0}}function gt(_,M){return _<65?_===36:_<91?!0:_<97?_===95:_<123?!0:_<=65535?_>=170&&Le.test(String.fromCharCode(_)):M===!1?!1:Ue(_,Xe)}function rr(_,M){return _<48?_===36:_<58?!0:_<65?!1:_<91?!0:_<97?_===95:_<123?!0:_<=65535?_>=170&&J.test(String.fromCharCode(_)):M===!1?!1:Ue(_,Xe)||Ue(_,et)}var xt=function(M,F){F===void 0&&(F={}),this.label=M,this.keyword=F.keyword,this.beforeExpr=!!F.beforeExpr,this.startsExpr=!!F.startsExpr,this.isLoop=!!F.isLoop,this.isAssign=!!F.isAssign,this.prefix=!!F.prefix,this.postfix=!!F.postfix,this.binop=F.binop||null,this.updateContext=null};function Yt(_,M){return new xt(_,{beforeExpr:!0,binop:M})}var Et={beforeExpr:!0},at={startsExpr:!0},it={};function Zt(_,M){return M===void 0&&(M={}),M.keyword=_,it[_]=new xt(_,M)}var Y={num:new xt("num",at),regexp:new xt("regexp",at),string:new xt("string",at),name:new xt("name",at),eof:new xt("eof"),bracketL:new xt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new xt("]"),braceL:new xt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new xt("}"),parenL:new xt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new xt(")"),comma:new xt(",",Et),semi:new xt(";",Et),colon:new xt(":",Et),dot:new xt("."),question:new xt("?",Et),questionDot:new xt("?."),arrow:new xt("=>",Et),template:new xt("template"),invalidTemplate:new xt("invalidTemplate"),ellipsis:new xt("...",Et),backQuote:new xt("`",at),dollarBraceL:new xt("${",{beforeExpr:!0,startsExpr:!0}),eq:new xt("=",{beforeExpr:!0,isAssign:!0}),assign:new xt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new xt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new xt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Yt("||",1),logicalAND:Yt("&&",2),bitwiseOR:Yt("|",3),bitwiseXOR:Yt("^",4),bitwiseAND:Yt("&",5),equality:Yt("==/!=/===/!==",6),relational:Yt("/<=/>=",7),bitShift:Yt("<>/>>>",8),plusMin:new xt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Yt("%",10),star:Yt("*",10),slash:Yt("/",10),starstar:new xt("**",{beforeExpr:!0}),coalesce:Yt("??",1),_break:Zt("break"),_case:Zt("case",Et),_catch:Zt("catch"),_continue:Zt("continue"),_debugger:Zt("debugger"),_default:Zt("default",Et),_do:Zt("do",{isLoop:!0,beforeExpr:!0}),_else:Zt("else",Et),_finally:Zt("finally"),_for:Zt("for",{isLoop:!0}),_function:Zt("function",at),_if:Zt("if"),_return:Zt("return",Et),_switch:Zt("switch"),_throw:Zt("throw",Et),_try:Zt("try"),_var:Zt("var"),_const:Zt("const"),_while:Zt("while",{isLoop:!0}),_with:Zt("with"),_new:Zt("new",{beforeExpr:!0,startsExpr:!0}),_this:Zt("this",at),_super:Zt("super",at),_class:Zt("class",at),_extends:Zt("extends",Et),_export:Zt("export"),_import:Zt("import",at),_null:Zt("null",at),_true:Zt("true",at),_false:Zt("false",at),_in:Zt("in",{beforeExpr:!0,binop:7}),_instanceof:Zt("instanceof",{beforeExpr:!0,binop:7}),_typeof:Zt("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Zt("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Zt("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},$t=/\r\n?|\n|\u2028|\u2029/,ft=new RegExp($t.source,"g");function Je(_,M){return _===10||_===13||!M&&(_===8232||_===8233)}var At=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Qe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Qt=Object.prototype,Er=Qt.hasOwnProperty,Nr=Qt.toString;function tn(_,M){return Er.call(_,M)}var A=Array.isArray||function(_){return Nr.call(_)==="[object Array]"};function Ce(_){return new RegExp("^(?:"+_.replace(/ /g,"|")+")$")}var De=function(M,F){this.line=M,this.column=F};De.prototype.offset=function(M){return new De(this.line,this.column+M)};var wt=function(M,F,R){this.start=F,this.end=R,M.sourceFile!==null&&(this.source=M.sourceFile)};function mt(_,M){for(var F=1,R=0;;){ft.lastIndex=R;var K=ft.exec(_);if(K&&K.index=2015&&(M.ecmaVersion-=2009),M.allowReserved==null&&(M.allowReserved=M.ecmaVersion<5),A(M.onToken)){var R=M.onToken;M.onToken=function(K){return R.push(K)}}return A(M.onComment)&&(M.onComment=Cr(M,M.onComment)),M}function Cr(_,M){return function(F,R,K,_e,je,pt){var dt={type:F?"Block":"Line",value:R,start:K,end:_e};_.locations&&(dt.loc=new wt(this,je,pt)),_.ranges&&(dt.range=[K,_e]),M.push(dt)}}var ei=1,vn=2,di=ei|vn,Wn=4,si=8,vi=16,qn=32,mi=64,aa=128;function Wi(_,M){return vn|(_?Wn:0)|(M?si:0)}var Oi=0,Ki=1,oa=2,Mi=3,da=4,$n=5,wi=function(M,F,R){this.options=M=Kt(M),this.sourceFile=M.sourceFile,this.keywords=Ce(ve[M.ecmaVersion>=6?6:M.sourceType==="module"?"5module":5]);var K="";if(M.allowReserved!==!0){for(var _e=M.ecmaVersion;!(K=re[_e]);_e--);M.sourceType==="module"&&(K+=" await")}this.reservedWords=Ce(K);var je=(K?K+" ":"")+re.strict;this.reservedWordsStrict=Ce(je),this.reservedWordsStrictBind=Ce(je+" "+re.strictBind),this.input=String(F),this.containsEsc=!1,R?(this.pos=R,this.lineStart=this.input.lastIndexOf(` +`,R-1)+1,this.curLine=this.input.slice(0,this.lineStart).split($t).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Y.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=M.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&M.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ei),this.regexpState=null},ji={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};wi.prototype.parse=function(){var M=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(M)},ji.inFunction.get=function(){return(this.currentVarScope().flags&vn)>0},ji.inGenerator.get=function(){return(this.currentVarScope().flags&si)>0},ji.inAsync.get=function(){return(this.currentVarScope().flags&Wn)>0},ji.allowSuper.get=function(){return(this.currentThisScope().flags&mi)>0},ji.allowDirectSuper.get=function(){return(this.currentThisScope().flags&aa)>0},ji.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},wi.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&vn)>0},wi.extend=function(){for(var M=[],F=arguments.length;F--;)M[F]=arguments[F];for(var R=this,K=0;K=,?^&]/.test(K)||K==="!"&&this.input.charAt(R+1)==="=")}_+=M[0].length,Qe.lastIndex=_,_+=Qe.exec(this.input)[0].length,this.input[_]===";"&&_++}},$i.eat=function(_){return this.type===_?(this.next(),!0):!1},$i.isContextual=function(_){return this.type===Y.name&&this.value===_&&!this.containsEsc},$i.eatContextual=function(_){return this.isContextual(_)?(this.next(),!0):!1},$i.expectContextual=function(_){this.eatContextual(_)||this.unexpected()},$i.canInsertSemicolon=function(){return this.type===Y.eof||this.type===Y.braceR||$t.test(this.input.slice(this.lastTokEnd,this.start))},$i.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},$i.semicolon=function(){!this.eat(Y.semi)&&!this.insertSemicolon()&&this.unexpected()},$i.afterTrailingComma=function(_,M){if(this.type===_)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),M||this.next(),!0},$i.expect=function(_){this.eat(_)||this.unexpected()},$i.unexpected=function(_){this.raise(_!=null?_:this.start,"Unexpected token")};function me(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}$i.checkPatternErrors=function(_,M){if(!!_){_.trailingComma>-1&&this.raiseRecoverable(_.trailingComma,"Comma is not permitted after the rest element");var F=M?_.parenthesizedAssign:_.parenthesizedBind;F>-1&&this.raiseRecoverable(F,"Parenthesized pattern")}},$i.checkExpressionErrors=function(_,M){if(!_)return!1;var F=_.shorthandAssign,R=_.doubleProto;if(!M)return F>=0||R>=0;F>=0&&this.raise(F,"Shorthand property assignments are valid only in destructuring patterns"),R>=0&&this.raiseRecoverable(R,"Redefinition of __proto__ property")},$i.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(K,!1,!_);case Y._class:return _&&this.unexpected(),this.parseClass(K,!0);case Y._if:return this.parseIfStatement(K);case Y._return:return this.parseReturnStatement(K);case Y._switch:return this.parseSwitchStatement(K);case Y._throw:return this.parseThrowStatement(K);case Y._try:return this.parseTryStatement(K);case Y._const:case Y._var:return _e=_e||this.value,_&&_e!=="var"&&this.unexpected(),this.parseVarStatement(K,_e);case Y._while:return this.parseWhileStatement(K);case Y._with:return this.parseWithStatement(K);case Y.braceL:return this.parseBlock(!0,K);case Y.semi:return this.parseEmptyStatement(K);case Y._export:case Y._import:if(this.options.ecmaVersion>10&&R===Y._import){Qe.lastIndex=this.pos;var je=Qe.exec(this.input),pt=this.pos+je[0].length,dt=this.input.charCodeAt(pt);if(dt===40||dt===46)return this.parseExpressionStatement(K,this.parseExpression())}return this.options.allowImportExportEverywhere||(M||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),R===Y._import?this.parseImport(K):this.parseExport(K,F);default:if(this.isAsyncFunction())return _&&this.unexpected(),this.next(),this.parseFunctionStatement(K,!0,!_);var ur=this.value,yr=this.parseExpression();return R===Y.name&&yr.type==="Identifier"&&this.eat(Y.colon)?this.parseLabeledStatement(K,ur,yr,_):this.parseExpressionStatement(K,yr)}},Dn.parseBreakContinueStatement=function(_,M){var F=M==="break";this.next(),this.eat(Y.semi)||this.insertSemicolon()?_.label=null:this.type!==Y.name?this.unexpected():(_.label=this.parseIdent(),this.semicolon());for(var R=0;R=6?this.eat(Y.semi):this.semicolon(),this.finishNode(_,"DoWhileStatement")},Dn.parseForStatement=function(_){this.next();var M=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Za),this.enterScope(0),this.expect(Y.parenL),this.type===Y.semi)return M>-1&&this.unexpected(M),this.parseFor(_,null);var F=this.isLet();if(this.type===Y._var||this.type===Y._const||F){var R=this.startNode(),K=F?"let":this.value;return this.next(),this.parseVar(R,!0,K),this.finishNode(R,"VariableDeclaration"),(this.type===Y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&R.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===Y._in?M>-1&&this.unexpected(M):_.await=M>-1),this.parseForIn(_,R)):(M>-1&&this.unexpected(M),this.parseFor(_,R))}var _e=new me,je=this.parseExpression(!0,_e);return this.type===Y._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===Y._in?M>-1&&this.unexpected(M):_.await=M>-1),this.toAssignable(je,!1,_e),this.checkLVal(je),this.parseForIn(_,je)):(this.checkExpressionErrors(_e,!0),M>-1&&this.unexpected(M),this.parseFor(_,je))},Dn.parseFunctionStatement=function(_,M,F){return this.next(),this.parseFunction(_,nr|(F?0:Ar),!1,M)},Dn.parseIfStatement=function(_){return this.next(),_.test=this.parseParenExpression(),_.consequent=this.parseStatement("if"),_.alternate=this.eat(Y._else)?this.parseStatement("if"):null,this.finishNode(_,"IfStatement")},Dn.parseReturnStatement=function(_){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Y.semi)||this.insertSemicolon()?_.argument=null:(_.argument=this.parseExpression(),this.semicolon()),this.finishNode(_,"ReturnStatement")},Dn.parseSwitchStatement=function(_){this.next(),_.discriminant=this.parseParenExpression(),_.cases=[],this.expect(Y.braceL),this.labels.push(hs),this.enterScope(0);for(var M,F=!1;this.type!==Y.braceR;)if(this.type===Y._case||this.type===Y._default){var R=this.type===Y._case;M&&this.finishNode(M,"SwitchCase"),_.cases.push(M=this.startNode()),M.consequent=[],this.next(),R?M.test=this.parseExpression():(F&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),F=!0,M.test=null),this.expect(Y.colon)}else M||this.unexpected(),M.consequent.push(this.parseStatement(null));return this.exitScope(),M&&this.finishNode(M,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(_,"SwitchStatement")},Dn.parseThrowStatement=function(_){return this.next(),$t.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),_.argument=this.parseExpression(),this.semicolon(),this.finishNode(_,"ThrowStatement")};var Nt=[];Dn.parseTryStatement=function(_){if(this.next(),_.block=this.parseBlock(),_.handler=null,this.type===Y._catch){var M=this.startNode();if(this.next(),this.eat(Y.parenL)){M.param=this.parseBindingAtom();var F=M.param.type==="Identifier";this.enterScope(F?qn:0),this.checkLVal(M.param,F?da:oa),this.expect(Y.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),M.param=null,this.enterScope(0);M.body=this.parseBlock(!1),this.exitScope(),_.handler=this.finishNode(M,"CatchClause")}return _.finalizer=this.eat(Y._finally)?this.parseBlock():null,!_.handler&&!_.finalizer&&this.raise(_.start,"Missing catch or finally clause"),this.finishNode(_,"TryStatement")},Dn.parseVarStatement=function(_,M){return this.next(),this.parseVar(_,!1,M),this.semicolon(),this.finishNode(_,"VariableDeclaration")},Dn.parseWhileStatement=function(_){return this.next(),_.test=this.parseParenExpression(),this.labels.push(Za),_.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(_,"WhileStatement")},Dn.parseWithStatement=function(_){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),_.object=this.parseParenExpression(),_.body=this.parseStatement("with"),this.finishNode(_,"WithStatement")},Dn.parseEmptyStatement=function(_){return this.next(),this.finishNode(_,"EmptyStatement")},Dn.parseLabeledStatement=function(_,M,F,R){for(var K=0,_e=this.labels;K<_e.length;K+=1){var je=_e[K];je.name===M&&this.raise(F.start,"Label '"+M+"' is already declared")}for(var pt=this.type.isLoop?"loop":this.type===Y._switch?"switch":null,dt=this.labels.length-1;dt>=0;dt--){var ur=this.labels[dt];if(ur.statementStart===_.start)ur.statementStart=this.start,ur.kind=pt;else break}return this.labels.push({name:M,kind:pt,statementStart:this.start}),_.body=this.parseStatement(R?R.indexOf("label")===-1?R+"label":R:"label"),this.labels.pop(),_.label=F,this.finishNode(_,"LabeledStatement")},Dn.parseExpressionStatement=function(_,M){return _.expression=M,this.semicolon(),this.finishNode(_,"ExpressionStatement")},Dn.parseBlock=function(_,M,F){for(_===void 0&&(_=!0),M===void 0&&(M=this.startNode()),M.body=[],this.expect(Y.braceL),_&&this.enterScope(0);this.type!==Y.braceR;){var R=this.parseStatement(null);M.body.push(R)}return F&&(this.strict=!1),this.next(),_&&this.exitScope(),this.finishNode(M,"BlockStatement")},Dn.parseFor=function(_,M){return _.init=M,this.expect(Y.semi),_.test=this.type===Y.semi?null:this.parseExpression(),this.expect(Y.semi),_.update=this.type===Y.parenR?null:this.parseExpression(),this.expect(Y.parenR),_.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(_,"ForStatement")},Dn.parseForIn=function(_,M){var F=this.type===Y._in;return this.next(),M.type==="VariableDeclaration"&&M.declarations[0].init!=null&&(!F||this.options.ecmaVersion<8||this.strict||M.kind!=="var"||M.declarations[0].id.type!=="Identifier")?this.raise(M.start,(F?"for-in":"for-of")+" loop variable declaration may not have an initializer"):M.type==="AssignmentPattern"&&this.raise(M.start,"Invalid left-hand side in for-loop"),_.left=M,_.right=F?this.parseExpression():this.parseMaybeAssign(),this.expect(Y.parenR),_.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(_,F?"ForInStatement":"ForOfStatement")},Dn.parseVar=function(_,M,F){for(_.declarations=[],_.kind=F;;){var R=this.startNode();if(this.parseVarId(R,F),this.eat(Y.eq)?R.init=this.parseMaybeAssign(M):F==="const"&&!(this.type===Y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():R.id.type!=="Identifier"&&!(M&&(this.type===Y._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):R.init=null,_.declarations.push(this.finishNode(R,"VariableDeclarator")),!this.eat(Y.comma))break}return _},Dn.parseVarId=function(_,M){_.id=this.parseBindingAtom(),this.checkLVal(_.id,M==="var"?Ki:oa,!1)};var nr=1,Ar=2,rn=4;Dn.parseFunction=function(_,M,F,R){this.initFunction(_),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!R)&&(this.type===Y.star&&M&Ar&&this.unexpected(),_.generator=this.eat(Y.star)),this.options.ecmaVersion>=8&&(_.async=!!R),M&nr&&(_.id=M&rn&&this.type!==Y.name?null:this.parseIdent(),_.id&&!(M&Ar)&&this.checkLVal(_.id,this.strict||_.generator||_.async?this.treatFunctionsAsVar?Ki:oa:Mi));var K=this.yieldPos,_e=this.awaitPos,je=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Wi(_.async,_.generator)),M&nr||(_.id=this.type===Y.name?this.parseIdent():null),this.parseFunctionParams(_),this.parseFunctionBody(_,F,!1),this.yieldPos=K,this.awaitPos=_e,this.awaitIdentPos=je,this.finishNode(_,M&nr?"FunctionDeclaration":"FunctionExpression")},Dn.parseFunctionParams=function(_){this.expect(Y.parenL),_.params=this.parseBindingList(Y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Dn.parseClass=function(_,M){this.next();var F=this.strict;this.strict=!0,this.parseClassId(_,M),this.parseClassSuper(_);var R=this.startNode(),K=!1;for(R.body=[],this.expect(Y.braceL);this.type!==Y.braceR;){var _e=this.parseClassElement(_.superClass!==null);_e&&(R.body.push(_e),_e.type==="MethodDefinition"&&_e.kind==="constructor"&&(K&&this.raise(_e.start,"Duplicate constructor in the same class"),K=!0))}return this.strict=F,this.next(),_.body=this.finishNode(R,"ClassBody"),this.finishNode(_,M?"ClassDeclaration":"ClassExpression")},Dn.parseClassElement=function(_){var M=this;if(this.eat(Y.semi))return null;var F=this.startNode(),R=function(dt,ur){ur===void 0&&(ur=!1);var yr=M.start,In=M.startLoc;return M.eatContextual(dt)?M.type!==Y.parenL&&(!ur||!M.canInsertSemicolon())?!0:(F.key&&M.unexpected(),F.computed=!1,F.key=M.startNodeAt(yr,In),F.key.name=dt,M.finishNode(F.key,"Identifier"),!1):!1};F.kind="method",F.static=R("static");var K=this.eat(Y.star),_e=!1;K||(this.options.ecmaVersion>=8&&R("async",!0)?(_e=!0,K=this.options.ecmaVersion>=9&&this.eat(Y.star)):R("get")?F.kind="get":R("set")&&(F.kind="set")),F.key||this.parsePropertyName(F);var je=F.key,pt=!1;return!F.computed&&!F.static&&(je.type==="Identifier"&&je.name==="constructor"||je.type==="Literal"&&je.value==="constructor")?(F.kind!=="method"&&this.raise(je.start,"Constructor can't have get/set modifier"),K&&this.raise(je.start,"Constructor can't be a generator"),_e&&this.raise(je.start,"Constructor can't be an async method"),F.kind="constructor",pt=_):F.static&&je.type==="Identifier"&&je.name==="prototype"&&this.raise(je.start,"Classes may not have a static property named prototype"),this.parseClassMethod(F,K,_e,pt),F.kind==="get"&&F.value.params.length!==0&&this.raiseRecoverable(F.value.start,"getter should have no params"),F.kind==="set"&&F.value.params.length!==1&&this.raiseRecoverable(F.value.start,"setter should have exactly one param"),F.kind==="set"&&F.value.params[0].type==="RestElement"&&this.raiseRecoverable(F.value.params[0].start,"Setter cannot use rest params"),F},Dn.parseClassMethod=function(_,M,F,R){return _.value=this.parseMethod(M,F,R),this.finishNode(_,"MethodDefinition")},Dn.parseClassId=function(_,M){this.type===Y.name?(_.id=this.parseIdent(),M&&this.checkLVal(_.id,oa,!1)):(M===!0&&this.unexpected(),_.id=null)},Dn.parseClassSuper=function(_){_.superClass=this.eat(Y._extends)?this.parseExprSubscripts():null},Dn.parseExport=function(_,M){if(this.next(),this.eat(Y.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(_.exported=this.parseIdent(!0),this.checkExport(M,_.exported.name,this.lastTokStart)):_.exported=null),this.expectContextual("from"),this.type!==Y.string&&this.unexpected(),_.source=this.parseExprAtom(),this.semicolon(),this.finishNode(_,"ExportAllDeclaration");if(this.eat(Y._default)){this.checkExport(M,"default",this.lastTokStart);var F;if(this.type===Y._function||(F=this.isAsyncFunction())){var R=this.startNode();this.next(),F&&this.next(),_.declaration=this.parseFunction(R,nr|rn,!1,F)}else if(this.type===Y._class){var K=this.startNode();_.declaration=this.parseClass(K,"nullableID")}else _.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(_,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())_.declaration=this.parseStatement(null),_.declaration.type==="VariableDeclaration"?this.checkVariableExport(M,_.declaration.declarations):this.checkExport(M,_.declaration.id.name,_.declaration.id.start),_.specifiers=[],_.source=null;else{if(_.declaration=null,_.specifiers=this.parseExportSpecifiers(M),this.eatContextual("from"))this.type!==Y.string&&this.unexpected(),_.source=this.parseExprAtom();else{for(var _e=0,je=_.specifiers;_e=6&&_)switch(_.type){case"Identifier":this.inAsync&&_.name==="await"&&this.raise(_.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":_.type="ObjectPattern",F&&this.checkPatternErrors(F,!0);for(var R=0,K=_.properties;R=8&&!_e&&je.name==="async"&&!this.canInsertSemicolon()&&this.eat(Y._function))return this.parseFunction(this.startNodeAt(R,K),0,!1,!0);if(F&&!this.canInsertSemicolon()){if(this.eat(Y.arrow))return this.parseArrowExpression(this.startNodeAt(R,K),[je],!1);if(this.options.ecmaVersion>=8&&je.name==="async"&&this.type===Y.name&&!_e)return je=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(Y.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(R,K),[je],!0)}return je;case Y.regexp:var pt=this.value;return M=this.parseLiteral(pt.value),M.regex={pattern:pt.pattern,flags:pt.flags},M;case Y.num:case Y.string:return this.parseLiteral(this.value);case Y._null:case Y._true:case Y._false:return M=this.startNode(),M.value=this.type===Y._null?null:this.type===Y._true,M.raw=this.type.keyword,this.next(),this.finishNode(M,"Literal");case Y.parenL:var dt=this.start,ur=this.parseParenAndDistinguishExpression(F);return _&&(_.parenthesizedAssign<0&&!this.isSimpleAssignTarget(ur)&&(_.parenthesizedAssign=dt),_.parenthesizedBind<0&&(_.parenthesizedBind=dt)),ur;case Y.bracketL:return M=this.startNode(),this.next(),M.elements=this.parseExprList(Y.bracketR,!0,!0,_),this.finishNode(M,"ArrayExpression");case Y.braceL:return this.parseObj(!1,_);case Y._function:return M=this.startNode(),this.next(),this.parseFunction(M,0);case Y._class:return this.parseClass(this.startNode(),!1);case Y._new:return this.parseNew();case Y.backQuote:return this.parseTemplate();case Y._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Fn.parseExprImport=function(){var _=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var M=this.parseIdent(!0);switch(this.type){case Y.parenL:return this.parseDynamicImport(_);case Y.dot:return _.meta=M,this.parseImportMeta(_);default:this.unexpected()}},Fn.parseDynamicImport=function(_){if(this.next(),_.source=this.parseMaybeAssign(),!this.eat(Y.parenR)){var M=this.start;this.eat(Y.comma)&&this.eat(Y.parenR)?this.raiseRecoverable(M,"Trailing comma is not allowed in import()"):this.unexpected(M)}return this.finishNode(_,"ImportExpression")},Fn.parseImportMeta=function(_){this.next();var M=this.containsEsc;return _.property=this.parseIdent(!0),_.property.name!=="meta"&&this.raiseRecoverable(_.property.start,"The only valid meta property for import is 'import.meta'"),M&&this.raiseRecoverable(_.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(_.start,"Cannot use 'import.meta' outside a module"),this.finishNode(_,"MetaProperty")},Fn.parseLiteral=function(_){var M=this.startNode();return M.value=_,M.raw=this.input.slice(this.start,this.end),M.raw.charCodeAt(M.raw.length-1)===110&&(M.bigint=M.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(M,"Literal")},Fn.parseParenExpression=function(){this.expect(Y.parenL);var _=this.parseExpression();return this.expect(Y.parenR),_},Fn.parseParenAndDistinguishExpression=function(_){var M=this.start,F=this.startLoc,R,K=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var _e=this.start,je=this.startLoc,pt=[],dt=!0,ur=!1,yr=new me,In=this.yieldPos,Bn=this.awaitPos,Qn;for(this.yieldPos=0,this.awaitPos=0;this.type!==Y.parenR;)if(dt?dt=!1:this.expect(Y.comma),K&&this.afterTrailingComma(Y.parenR,!0)){ur=!0;break}else if(this.type===Y.ellipsis){Qn=this.start,pt.push(this.parseParenItem(this.parseRestBinding())),this.type===Y.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else pt.push(this.parseMaybeAssign(!1,yr,this.parseParenItem));var Vi=this.start,Li=this.startLoc;if(this.expect(Y.parenR),_&&!this.canInsertSemicolon()&&this.eat(Y.arrow))return this.checkPatternErrors(yr,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=In,this.awaitPos=Bn,this.parseParenArrowList(M,F,pt);(!pt.length||ur)&&this.unexpected(this.lastTokStart),Qn&&this.unexpected(Qn),this.checkExpressionErrors(yr,!0),this.yieldPos=In||this.yieldPos,this.awaitPos=Bn||this.awaitPos,pt.length>1?(R=this.startNodeAt(_e,je),R.expressions=pt,this.finishNodeAt(R,"SequenceExpression",Vi,Li)):R=pt[0]}else R=this.parseParenExpression();if(this.options.preserveParens){var ba=this.startNodeAt(M,F);return ba.expression=R,this.finishNode(ba,"ParenthesizedExpression")}else return R},Fn.parseParenItem=function(_){return _},Fn.parseParenArrowList=function(_,M,F){return this.parseArrowExpression(this.startNodeAt(_,M),F)};var gi=[];Fn.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var _=this.startNode(),M=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(Y.dot)){_.meta=M;var F=this.containsEsc;return _.property=this.parseIdent(!0),_.property.name!=="target"&&this.raiseRecoverable(_.property.start,"The only valid meta property for new is 'new.target'"),F&&this.raiseRecoverable(_.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(_.start,"'new.target' can only be used in functions"),this.finishNode(_,"MetaProperty")}var R=this.start,K=this.startLoc,_e=this.type===Y._import;return _.callee=this.parseSubscripts(this.parseExprAtom(),R,K,!0),_e&&_.callee.type==="ImportExpression"&&this.raise(R,"Cannot use new with import()"),this.eat(Y.parenL)?_.arguments=this.parseExprList(Y.parenR,this.options.ecmaVersion>=8,!1):_.arguments=gi,this.finishNode(_,"NewExpression")},Fn.parseTemplateElement=function(_){var M=_.isTagged,F=this.startNode();return this.type===Y.invalidTemplate?(M||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),F.value={raw:this.value,cooked:null}):F.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` +`),cooked:this.value},this.next(),F.tail=this.type===Y.backQuote,this.finishNode(F,"TemplateElement")},Fn.parseTemplate=function(_){_===void 0&&(_={});var M=_.isTagged;M===void 0&&(M=!1);var F=this.startNode();this.next(),F.expressions=[];var R=this.parseTemplateElement({isTagged:M});for(F.quasis=[R];!R.tail;)this.type===Y.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Y.dollarBraceL),F.expressions.push(this.parseExpression()),this.expect(Y.braceR),F.quasis.push(R=this.parseTemplateElement({isTagged:M}));return this.next(),this.finishNode(F,"TemplateLiteral")},Fn.isAsyncProp=function(_){return!_.computed&&_.key.type==="Identifier"&&_.key.name==="async"&&(this.type===Y.name||this.type===Y.num||this.type===Y.string||this.type===Y.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Y.star)&&!$t.test(this.input.slice(this.lastTokEnd,this.start))},Fn.parseObj=function(_,M){var F=this.startNode(),R=!0,K={};for(F.properties=[],this.next();!this.eat(Y.braceR);){if(R)R=!1;else if(this.expect(Y.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(Y.braceR))break;var _e=this.parseProperty(_,M);_||this.checkPropClash(_e,K,M),F.properties.push(_e)}return this.finishNode(F,_?"ObjectPattern":"ObjectExpression")},Fn.parseProperty=function(_,M){var F=this.startNode(),R,K,_e,je;if(this.options.ecmaVersion>=9&&this.eat(Y.ellipsis))return _?(F.argument=this.parseIdent(!1),this.type===Y.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(F,"RestElement")):(this.type===Y.parenL&&M&&(M.parenthesizedAssign<0&&(M.parenthesizedAssign=this.start),M.parenthesizedBind<0&&(M.parenthesizedBind=this.start)),F.argument=this.parseMaybeAssign(!1,M),this.type===Y.comma&&M&&M.trailingComma<0&&(M.trailingComma=this.start),this.finishNode(F,"SpreadElement"));this.options.ecmaVersion>=6&&(F.method=!1,F.shorthand=!1,(_||M)&&(_e=this.start,je=this.startLoc),_||(R=this.eat(Y.star)));var pt=this.containsEsc;return this.parsePropertyName(F),!_&&!pt&&this.options.ecmaVersion>=8&&!R&&this.isAsyncProp(F)?(K=!0,R=this.options.ecmaVersion>=9&&this.eat(Y.star),this.parsePropertyName(F,M)):K=!1,this.parsePropertyValue(F,_,R,K,_e,je,M,pt),this.finishNode(F,"Property")},Fn.parsePropertyValue=function(_,M,F,R,K,_e,je,pt){if((F||R)&&this.type===Y.colon&&this.unexpected(),this.eat(Y.colon))_.value=M?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,je),_.kind="init";else if(this.options.ecmaVersion>=6&&this.type===Y.parenL)M&&this.unexpected(),_.kind="init",_.method=!0,_.value=this.parseMethod(F,R);else if(!M&&!pt&&this.options.ecmaVersion>=5&&!_.computed&&_.key.type==="Identifier"&&(_.key.name==="get"||_.key.name==="set")&&this.type!==Y.comma&&this.type!==Y.braceR&&this.type!==Y.eq){(F||R)&&this.unexpected(),_.kind=_.key.name,this.parsePropertyName(_),_.value=this.parseMethod(!1);var dt=_.kind==="get"?0:1;if(_.value.params.length!==dt){var ur=_.value.start;_.kind==="get"?this.raiseRecoverable(ur,"getter should have no params"):this.raiseRecoverable(ur,"setter should have exactly one param")}else _.kind==="set"&&_.value.params[0].type==="RestElement"&&this.raiseRecoverable(_.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!_.computed&&_.key.type==="Identifier"?((F||R)&&this.unexpected(),this.checkUnreserved(_.key),_.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=K),_.kind="init",M?_.value=this.parseMaybeDefault(K,_e,_.key):this.type===Y.eq&&je?(je.shorthandAssign<0&&(je.shorthandAssign=this.start),_.value=this.parseMaybeDefault(K,_e,_.key)):_.value=_.key,_.shorthand=!0):this.unexpected()},Fn.parsePropertyName=function(_){if(this.options.ecmaVersion>=6){if(this.eat(Y.bracketL))return _.computed=!0,_.key=this.parseMaybeAssign(),this.expect(Y.bracketR),_.key;_.computed=!1}return _.key=this.type===Y.num||this.type===Y.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Fn.initFunction=function(_){_.id=null,this.options.ecmaVersion>=6&&(_.generator=_.expression=!1),this.options.ecmaVersion>=8&&(_.async=!1)},Fn.parseMethod=function(_,M,F){var R=this.startNode(),K=this.yieldPos,_e=this.awaitPos,je=this.awaitIdentPos;return this.initFunction(R),this.options.ecmaVersion>=6&&(R.generator=_),this.options.ecmaVersion>=8&&(R.async=!!M),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Wi(M,R.generator)|mi|(F?aa:0)),this.expect(Y.parenL),R.params=this.parseBindingList(Y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(R,!1,!0),this.yieldPos=K,this.awaitPos=_e,this.awaitIdentPos=je,this.finishNode(R,"FunctionExpression")},Fn.parseArrowExpression=function(_,M,F){var R=this.yieldPos,K=this.awaitPos,_e=this.awaitIdentPos;return this.enterScope(Wi(F,!1)|vi),this.initFunction(_),this.options.ecmaVersion>=8&&(_.async=!!F),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,_.params=this.toAssignableList(M,!0),this.parseFunctionBody(_,!0,!1),this.yieldPos=R,this.awaitPos=K,this.awaitIdentPos=_e,this.finishNode(_,"ArrowFunctionExpression")},Fn.parseFunctionBody=function(_,M,F){var R=M&&this.type!==Y.braceL,K=this.strict,_e=!1;if(R)_.body=this.parseMaybeAssign(),_.expression=!0,this.checkParams(_,!1);else{var je=this.options.ecmaVersion>=7&&!this.isSimpleParamList(_.params);(!K||je)&&(_e=this.strictDirective(this.end),_e&&je&&this.raiseRecoverable(_.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var pt=this.labels;this.labels=[],_e&&(this.strict=!0),this.checkParams(_,!K&&!_e&&!M&&!F&&this.isSimpleParamList(_.params)),this.strict&&_.id&&this.checkLVal(_.id,$n),_.body=this.parseBlock(!1,void 0,_e&&!K),_.expression=!1,this.adaptDirectivePrologue(_.body.body),this.labels=pt}this.exitScope()},Fn.isSimpleParamList=function(_){for(var M=0,F=_;M-1||K.functions.indexOf(_)>-1||K.var.indexOf(_)>-1,K.lexical.push(_),this.inModule&&K.flags&ei&&delete this.undefinedExports[_]}else if(M===da){var _e=this.currentScope();_e.lexical.push(_)}else if(M===Mi){var je=this.currentScope();this.treatFunctionsAsVar?R=je.lexical.indexOf(_)>-1:R=je.lexical.indexOf(_)>-1||je.var.indexOf(_)>-1,je.functions.push(_)}else for(var pt=this.scopeStack.length-1;pt>=0;--pt){var dt=this.scopeStack[pt];if(dt.lexical.indexOf(_)>-1&&!(dt.flags&qn&&dt.lexical[0]===_)||!this.treatFunctionsAsVarInScope(dt)&&dt.functions.indexOf(_)>-1){R=!0;break}if(dt.var.push(_),this.inModule&&dt.flags&ei&&delete this.undefinedExports[_],dt.flags&di)break}R&&this.raiseRecoverable(F,"Identifier '"+_+"' has already been declared")},fn.checkLocalExport=function(_){this.scopeStack[0].lexical.indexOf(_.name)===-1&&this.scopeStack[0].var.indexOf(_.name)===-1&&(this.undefinedExports[_.name]=_)},fn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},fn.currentVarScope=function(){for(var _=this.scopeStack.length-1;;_--){var M=this.scopeStack[_];if(M.flags&di)return M}},fn.currentThisScope=function(){for(var _=this.scopeStack.length-1;;_--){var M=this.scopeStack[_];if(M.flags&di&&!(M.flags&vi))return M}};var Ri=function(M,F,R){this.type="",this.start=F,this.end=0,M.options.locations&&(this.loc=new wt(M,R)),M.options.directSourceFile&&(this.sourceFile=M.options.directSourceFile),M.options.ranges&&(this.range=[F,0])},to=wi.prototype;to.startNode=function(){return new Ri(this,this.start,this.startLoc)},to.startNodeAt=function(_,M){return new Ri(this,_,M)};function Es(_,M,F,R){return _.type=M,_.end=F,this.options.locations&&(_.loc.end=R),this.options.ranges&&(_.range[1]=F),_}to.finishNode=function(_,M){return Es.call(this,_,M,this.lastTokEnd,this.lastTokEndLoc)},to.finishNodeAt=function(_,M,F,R){return Es.call(this,_,M,F,R)};var Ko=function(M,F,R,K,_e){this.token=M,this.isExpr=!!F,this.preserveSpace=!!R,this.override=K,this.generator=!!_e},Ba={b_stat:new Ko("{",!1),b_expr:new Ko("{",!0),b_tmpl:new Ko("${",!1),p_stat:new Ko("(",!1),p_expr:new Ko("(",!0),q_tmpl:new Ko("`",!0,!0,function(_){return _.tryReadTemplateToken()}),f_stat:new Ko("function",!1),f_expr:new Ko("function",!0),f_expr_gen:new Ko("function",!0,!1,null,!0),f_gen:new Ko("function",!1,!1,null,!0)},xa=wi.prototype;xa.initialContext=function(){return[Ba.b_stat]},xa.braceIsBlock=function(_){var M=this.curContext();return M===Ba.f_expr||M===Ba.f_stat?!0:_===Y.colon&&(M===Ba.b_stat||M===Ba.b_expr)?!M.isExpr:_===Y._return||_===Y.name&&this.exprAllowed?$t.test(this.input.slice(this.lastTokEnd,this.start)):_===Y._else||_===Y.semi||_===Y.eof||_===Y.parenR||_===Y.arrow?!0:_===Y.braceL?M===Ba.b_stat:_===Y._var||_===Y._const||_===Y.name?!1:!this.exprAllowed},xa.inGeneratorContext=function(){for(var _=this.context.length-1;_>=1;_--){var M=this.context[_];if(M.token==="function")return M.generator}return!1},xa.updateContext=function(_){var M,F=this.type;F.keyword&&_===Y.dot?this.exprAllowed=!1:(M=F.updateContext)?M.call(this,_):this.exprAllowed=F.beforeExpr},Y.parenR.updateContext=Y.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var _=this.context.pop();_===Ba.b_stat&&this.curContext().token==="function"&&(_=this.context.pop()),this.exprAllowed=!_.isExpr},Y.braceL.updateContext=function(_){this.context.push(this.braceIsBlock(_)?Ba.b_stat:Ba.b_expr),this.exprAllowed=!0},Y.dollarBraceL.updateContext=function(){this.context.push(Ba.b_tmpl),this.exprAllowed=!0},Y.parenL.updateContext=function(_){var M=_===Y._if||_===Y._for||_===Y._with||_===Y._while;this.context.push(M?Ba.p_stat:Ba.p_expr),this.exprAllowed=!0},Y.incDec.updateContext=function(){},Y._function.updateContext=Y._class.updateContext=function(_){_.beforeExpr&&_!==Y.semi&&_!==Y._else&&!(_===Y._return&&$t.test(this.input.slice(this.lastTokEnd,this.start)))&&!((_===Y.colon||_===Y.braceL)&&this.curContext()===Ba.b_stat)?this.context.push(Ba.f_expr):this.context.push(Ba.f_stat),this.exprAllowed=!1},Y.backQuote.updateContext=function(){this.curContext()===Ba.q_tmpl?this.context.pop():this.context.push(Ba.q_tmpl),this.exprAllowed=!1},Y.star.updateContext=function(_){if(_===Y._function){var M=this.context.length-1;this.context[M]===Ba.f_expr?this.context[M]=Ba.f_expr_gen:this.context[M]=Ba.f_gen}this.exprAllowed=!0},Y.name.updateContext=function(_){var M=!1;this.options.ecmaVersion>=6&&_!==Y.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(M=!0),this.exprAllowed=M};var H="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Q=H+" Extended_Pictographic",oe=Q,ye={9:H,10:Q,11:oe},Pe="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",He="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",rt=He+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",pe=rt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ke={9:He,10:rt,11:pe},vt={};function pr(_){var M=vt[_]={binary:Ce(ye[_]+" "+Pe),nonBinary:{General_Category:Ce(Pe),Script:Ce(ke[_])}};M.nonBinary.Script_Extensions=M.nonBinary.Script,M.nonBinary.gc=M.nonBinary.General_Category,M.nonBinary.sc=M.nonBinary.Script,M.nonBinary.scx=M.nonBinary.Script_Extensions}pr(9),pr(10),pr(11);var Ft=wi.prototype,zt=function(M){this.parser=M,this.validFlags="gim"+(M.options.ecmaVersion>=6?"uy":"")+(M.options.ecmaVersion>=9?"s":""),this.unicodeProperties=vt[M.options.ecmaVersion>=11?11:M.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};zt.prototype.reset=function(M,F,R){var K=R.indexOf("u")!==-1;this.start=M|0,this.source=F+"",this.flags=R,this.switchU=K&&this.parser.options.ecmaVersion>=6,this.switchN=K&&this.parser.options.ecmaVersion>=9},zt.prototype.raise=function(M){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+M)},zt.prototype.at=function(M,F){F===void 0&&(F=!1);var R=this.source,K=R.length;if(M>=K)return-1;var _e=R.charCodeAt(M);if(!(F||this.switchU)||_e<=55295||_e>=57344||M+1>=K)return _e;var je=R.charCodeAt(M+1);return je>=56320&&je<=57343?(_e<<10)+je-56613888:_e},zt.prototype.nextIndex=function(M,F){F===void 0&&(F=!1);var R=this.source,K=R.length;if(M>=K)return K;var _e=R.charCodeAt(M),je;return!(F||this.switchU)||_e<=55295||_e>=57344||M+1>=K||(je=R.charCodeAt(M+1))<56320||je>57343?M+1:M+2},zt.prototype.current=function(M){return M===void 0&&(M=!1),this.at(this.pos,M)},zt.prototype.lookahead=function(M){return M===void 0&&(M=!1),this.at(this.nextIndex(this.pos,M),M)},zt.prototype.advance=function(M){M===void 0&&(M=!1),this.pos=this.nextIndex(this.pos,M)},zt.prototype.eat=function(M,F){return F===void 0&&(F=!1),this.current(F)===M?(this.advance(F),!0):!1};function vr(_){return _<=65535?String.fromCharCode(_):(_-=65536,String.fromCharCode((_>>10)+55296,(_&1023)+56320))}Ft.validateRegExpFlags=function(_){for(var M=_.validFlags,F=_.flags,R=0;R-1&&this.raise(_.start,"Duplicate regular expression flag")}},Ft.validateRegExpPattern=function(_){this.regexp_pattern(_),!_.switchN&&this.options.ecmaVersion>=9&&_.groupNames.length>0&&(_.switchN=!0,this.regexp_pattern(_))},Ft.regexp_pattern=function(_){_.pos=0,_.lastIntValue=0,_.lastStringValue="",_.lastAssertionIsQuantifiable=!1,_.numCapturingParens=0,_.maxBackReference=0,_.groupNames.length=0,_.backReferenceNames.length=0,this.regexp_disjunction(_),_.pos!==_.source.length&&(_.eat(41)&&_.raise("Unmatched ')'"),(_.eat(93)||_.eat(125))&&_.raise("Lone quantifier brackets")),_.maxBackReference>_.numCapturingParens&&_.raise("Invalid escape");for(var M=0,F=_.backReferenceNames;M=9&&(F=_.eat(60)),_.eat(61)||_.eat(33))return this.regexp_disjunction(_),_.eat(41)||_.raise("Unterminated group"),_.lastAssertionIsQuantifiable=!F,!0}return _.pos=M,!1},Ft.regexp_eatQuantifier=function(_,M){return M===void 0&&(M=!1),this.regexp_eatQuantifierPrefix(_,M)?(_.eat(63),!0):!1},Ft.regexp_eatQuantifierPrefix=function(_,M){return _.eat(42)||_.eat(43)||_.eat(63)||this.regexp_eatBracedQuantifier(_,M)},Ft.regexp_eatBracedQuantifier=function(_,M){var F=_.pos;if(_.eat(123)){var R=0,K=-1;if(this.regexp_eatDecimalDigits(_)&&(R=_.lastIntValue,_.eat(44)&&this.regexp_eatDecimalDigits(_)&&(K=_.lastIntValue),_.eat(125)))return K!==-1&&K=9?this.regexp_groupSpecifier(_):_.current()===63&&_.raise("Invalid group"),this.regexp_disjunction(_),_.eat(41))return _.numCapturingParens+=1,!0;_.raise("Unterminated group")}return!1},Ft.regexp_eatExtendedAtom=function(_){return _.eat(46)||this.regexp_eatReverseSolidusAtomEscape(_)||this.regexp_eatCharacterClass(_)||this.regexp_eatUncapturingGroup(_)||this.regexp_eatCapturingGroup(_)||this.regexp_eatInvalidBracedQuantifier(_)||this.regexp_eatExtendedPatternCharacter(_)},Ft.regexp_eatInvalidBracedQuantifier=function(_){return this.regexp_eatBracedQuantifier(_,!0)&&_.raise("Nothing to repeat"),!1},Ft.regexp_eatSyntaxCharacter=function(_){var M=_.current();return En(M)?(_.lastIntValue=M,_.advance(),!0):!1};function En(_){return _===36||_>=40&&_<=43||_===46||_===63||_>=91&&_<=94||_>=123&&_<=125}Ft.regexp_eatPatternCharacters=function(_){for(var M=_.pos,F=0;(F=_.current())!==-1&&!En(F);)_.advance();return _.pos!==M},Ft.regexp_eatExtendedPatternCharacter=function(_){var M=_.current();return M!==-1&&M!==36&&!(M>=40&&M<=43)&&M!==46&&M!==63&&M!==91&&M!==94&&M!==124?(_.advance(),!0):!1},Ft.regexp_groupSpecifier=function(_){if(_.eat(63)){if(this.regexp_eatGroupName(_)){_.groupNames.indexOf(_.lastStringValue)!==-1&&_.raise("Duplicate capture group name"),_.groupNames.push(_.lastStringValue);return}_.raise("Invalid group")}},Ft.regexp_eatGroupName=function(_){if(_.lastStringValue="",_.eat(60)){if(this.regexp_eatRegExpIdentifierName(_)&&_.eat(62))return!0;_.raise("Invalid capture group name")}return!1},Ft.regexp_eatRegExpIdentifierName=function(_){if(_.lastStringValue="",this.regexp_eatRegExpIdentifierStart(_)){for(_.lastStringValue+=vr(_.lastIntValue);this.regexp_eatRegExpIdentifierPart(_);)_.lastStringValue+=vr(_.lastIntValue);return!0}return!1},Ft.regexp_eatRegExpIdentifierStart=function(_){var M=_.pos,F=this.options.ecmaVersion>=11,R=_.current(F);return _.advance(F),R===92&&this.regexp_eatRegExpUnicodeEscapeSequence(_,F)&&(R=_.lastIntValue),pn(R)?(_.lastIntValue=R,!0):(_.pos=M,!1)};function pn(_){return gt(_,!0)||_===36||_===95}Ft.regexp_eatRegExpIdentifierPart=function(_){var M=_.pos,F=this.options.ecmaVersion>=11,R=_.current(F);return _.advance(F),R===92&&this.regexp_eatRegExpUnicodeEscapeSequence(_,F)&&(R=_.lastIntValue),Ot(R)?(_.lastIntValue=R,!0):(_.pos=M,!1)};function Ot(_){return rr(_,!0)||_===36||_===95||_===8204||_===8205}Ft.regexp_eatAtomEscape=function(_){return this.regexp_eatBackReference(_)||this.regexp_eatCharacterClassEscape(_)||this.regexp_eatCharacterEscape(_)||_.switchN&&this.regexp_eatKGroupName(_)?!0:(_.switchU&&(_.current()===99&&_.raise("Invalid unicode escape"),_.raise("Invalid escape")),!1)},Ft.regexp_eatBackReference=function(_){var M=_.pos;if(this.regexp_eatDecimalEscape(_)){var F=_.lastIntValue;if(_.switchU)return F>_.maxBackReference&&(_.maxBackReference=F),!0;if(F<=_.numCapturingParens)return!0;_.pos=M}return!1},Ft.regexp_eatKGroupName=function(_){if(_.eat(107)){if(this.regexp_eatGroupName(_))return _.backReferenceNames.push(_.lastStringValue),!0;_.raise("Invalid named reference")}return!1},Ft.regexp_eatCharacterEscape=function(_){return this.regexp_eatControlEscape(_)||this.regexp_eatCControlLetter(_)||this.regexp_eatZero(_)||this.regexp_eatHexEscapeSequence(_)||this.regexp_eatRegExpUnicodeEscapeSequence(_,!1)||!_.switchU&&this.regexp_eatLegacyOctalEscapeSequence(_)||this.regexp_eatIdentityEscape(_)},Ft.regexp_eatCControlLetter=function(_){var M=_.pos;if(_.eat(99)){if(this.regexp_eatControlLetter(_))return!0;_.pos=M}return!1},Ft.regexp_eatZero=function(_){return _.current()===48&&!on(_.lookahead())?(_.lastIntValue=0,_.advance(),!0):!1},Ft.regexp_eatControlEscape=function(_){var M=_.current();return M===116?(_.lastIntValue=9,_.advance(),!0):M===110?(_.lastIntValue=10,_.advance(),!0):M===118?(_.lastIntValue=11,_.advance(),!0):M===102?(_.lastIntValue=12,_.advance(),!0):M===114?(_.lastIntValue=13,_.advance(),!0):!1},Ft.regexp_eatControlLetter=function(_){var M=_.current();return nn(M)?(_.lastIntValue=M%32,_.advance(),!0):!1};function nn(_){return _>=65&&_<=90||_>=97&&_<=122}Ft.regexp_eatRegExpUnicodeEscapeSequence=function(_,M){M===void 0&&(M=!1);var F=_.pos,R=M||_.switchU;if(_.eat(117)){if(this.regexp_eatFixedHexDigits(_,4)){var K=_.lastIntValue;if(R&&K>=55296&&K<=56319){var _e=_.pos;if(_.eat(92)&&_.eat(117)&&this.regexp_eatFixedHexDigits(_,4)){var je=_.lastIntValue;if(je>=56320&&je<=57343)return _.lastIntValue=(K-55296)*1024+(je-56320)+65536,!0}_.pos=_e,_.lastIntValue=K}return!0}if(R&&_.eat(123)&&this.regexp_eatHexDigits(_)&&_.eat(125)&&Zr(_.lastIntValue))return!0;R&&_.raise("Invalid unicode escape"),_.pos=F}return!1};function Zr(_){return _>=0&&_<=1114111}Ft.regexp_eatIdentityEscape=function(_){if(_.switchU)return this.regexp_eatSyntaxCharacter(_)?!0:_.eat(47)?(_.lastIntValue=47,!0):!1;var M=_.current();return M!==99&&(!_.switchN||M!==107)?(_.lastIntValue=M,_.advance(),!0):!1},Ft.regexp_eatDecimalEscape=function(_){_.lastIntValue=0;var M=_.current();if(M>=49&&M<=57){do _.lastIntValue=10*_.lastIntValue+(M-48),_.advance();while((M=_.current())>=48&&M<=57);return!0}return!1},Ft.regexp_eatCharacterClassEscape=function(_){var M=_.current();if(Yr(M))return _.lastIntValue=-1,_.advance(),!0;if(_.switchU&&this.options.ecmaVersion>=9&&(M===80||M===112)){if(_.lastIntValue=-1,_.advance(),_.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(_)&&_.eat(125))return!0;_.raise("Invalid property name")}return!1};function Yr(_){return _===100||_===68||_===115||_===83||_===119||_===87}Ft.regexp_eatUnicodePropertyValueExpression=function(_){var M=_.pos;if(this.regexp_eatUnicodePropertyName(_)&&_.eat(61)){var F=_.lastStringValue;if(this.regexp_eatUnicodePropertyValue(_)){var R=_.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(_,F,R),!0}}if(_.pos=M,this.regexp_eatLoneUnicodePropertyNameOrValue(_)){var K=_.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(_,K),!0}return!1},Ft.regexp_validateUnicodePropertyNameAndValue=function(_,M,F){tn(_.unicodeProperties.nonBinary,M)||_.raise("Invalid property name"),_.unicodeProperties.nonBinary[M].test(F)||_.raise("Invalid property value")},Ft.regexp_validateUnicodePropertyNameOrValue=function(_,M){_.unicodeProperties.binary.test(M)||_.raise("Invalid property name")},Ft.regexp_eatUnicodePropertyName=function(_){var M=0;for(_.lastStringValue="";_i(M=_.current());)_.lastStringValue+=vr(M),_.advance();return _.lastStringValue!==""};function _i(_){return nn(_)||_===95}Ft.regexp_eatUnicodePropertyValue=function(_){var M=0;for(_.lastStringValue="";an(M=_.current());)_.lastStringValue+=vr(M),_.advance();return _.lastStringValue!==""};function an(_){return _i(_)||on(_)}Ft.regexp_eatLoneUnicodePropertyNameOrValue=function(_){return this.regexp_eatUnicodePropertyValue(_)},Ft.regexp_eatCharacterClass=function(_){if(_.eat(91)){if(_.eat(94),this.regexp_classRanges(_),_.eat(93))return!0;_.raise("Unterminated character class")}return!1},Ft.regexp_classRanges=function(_){for(;this.regexp_eatClassAtom(_);){var M=_.lastIntValue;if(_.eat(45)&&this.regexp_eatClassAtom(_)){var F=_.lastIntValue;_.switchU&&(M===-1||F===-1)&&_.raise("Invalid character class"),M!==-1&&F!==-1&&M>F&&_.raise("Range out of order in character class")}}},Ft.regexp_eatClassAtom=function(_){var M=_.pos;if(_.eat(92)){if(this.regexp_eatClassEscape(_))return!0;if(_.switchU){var F=_.current();(F===99||Pi(F))&&_.raise("Invalid class escape"),_.raise("Invalid escape")}_.pos=M}var R=_.current();return R!==93?(_.lastIntValue=R,_.advance(),!0):!1},Ft.regexp_eatClassEscape=function(_){var M=_.pos;if(_.eat(98))return _.lastIntValue=8,!0;if(_.switchU&&_.eat(45))return _.lastIntValue=45,!0;if(!_.switchU&&_.eat(99)){if(this.regexp_eatClassControlLetter(_))return!0;_.pos=M}return this.regexp_eatCharacterClassEscape(_)||this.regexp_eatCharacterEscape(_)},Ft.regexp_eatClassControlLetter=function(_){var M=_.current();return on(M)||M===95?(_.lastIntValue=M%32,_.advance(),!0):!1},Ft.regexp_eatHexEscapeSequence=function(_){var M=_.pos;if(_.eat(120)){if(this.regexp_eatFixedHexDigits(_,2))return!0;_.switchU&&_.raise("Invalid escape"),_.pos=M}return!1},Ft.regexp_eatDecimalDigits=function(_){var M=_.pos,F=0;for(_.lastIntValue=0;on(F=_.current());)_.lastIntValue=10*_.lastIntValue+(F-48),_.advance();return _.pos!==M};function on(_){return _>=48&&_<=57}Ft.regexp_eatHexDigits=function(_){var M=_.pos,F=0;for(_.lastIntValue=0;Xi(F=_.current());)_.lastIntValue=16*_.lastIntValue+yi(F),_.advance();return _.pos!==M};function Xi(_){return _>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102}function yi(_){return _>=65&&_<=70?10+(_-65):_>=97&&_<=102?10+(_-97):_-48}Ft.regexp_eatLegacyOctalEscapeSequence=function(_){if(this.regexp_eatOctalDigit(_)){var M=_.lastIntValue;if(this.regexp_eatOctalDigit(_)){var F=_.lastIntValue;M<=3&&this.regexp_eatOctalDigit(_)?_.lastIntValue=M*64+F*8+_.lastIntValue:_.lastIntValue=M*8+F}else _.lastIntValue=M;return!0}return!1},Ft.regexp_eatOctalDigit=function(_){var M=_.current();return Pi(M)?(_.lastIntValue=M-48,_.advance(),!0):(_.lastIntValue=0,!1)};function Pi(_){return _>=48&&_<=55}Ft.regexp_eatFixedHexDigits=function(_,M){var F=_.pos;_.lastIntValue=0;for(var R=0;R=this.input.length)return this.finishToken(Y.eof);if(_.override)return _.override(this);this.readToken(this.fullCharCodeAtPos())},ht.readToken=function(_){return gt(_,this.options.ecmaVersion>=6)||_===92?this.readWord():this.getTokenFromCode(_)},ht.fullCharCodeAtPos=function(){var _=this.input.charCodeAt(this.pos);if(_<=55295||_>=57344)return _;var M=this.input.charCodeAt(this.pos+1);return(_<<10)+M-56613888},ht.skipBlockComment=function(){var _=this.options.onComment&&this.curPosition(),M=this.pos,F=this.input.indexOf("*/",this.pos+=2);if(F===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=F+2,this.options.locations){ft.lastIndex=M;for(var R;(R=ft.exec(this.input))&&R.index8&&_<14||_>=5760&&At.test(String.fromCharCode(_)))++this.pos;else break e}}},ht.finishToken=function(_,M){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var F=this.type;this.type=_,this.value=M,this.updateContext(F)},ht.readToken_dot=function(){var _=this.input.charCodeAt(this.pos+1);if(_>=48&&_<=57)return this.readNumber(!0);var M=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&_===46&&M===46?(this.pos+=3,this.finishToken(Y.ellipsis)):(++this.pos,this.finishToken(Y.dot))},ht.readToken_slash=function(){var _=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):_===61?this.finishOp(Y.assign,2):this.finishOp(Y.slash,1)},ht.readToken_mult_modulo_exp=function(_){var M=this.input.charCodeAt(this.pos+1),F=1,R=_===42?Y.star:Y.modulo;return this.options.ecmaVersion>=7&&_===42&&M===42&&(++F,R=Y.starstar,M=this.input.charCodeAt(this.pos+2)),M===61?this.finishOp(Y.assign,F+1):this.finishOp(R,F)},ht.readToken_pipe_amp=function(_){var M=this.input.charCodeAt(this.pos+1);if(M===_){if(this.options.ecmaVersion>=12){var F=this.input.charCodeAt(this.pos+2);if(F===61)return this.finishOp(Y.assign,3)}return this.finishOp(_===124?Y.logicalOR:Y.logicalAND,2)}return M===61?this.finishOp(Y.assign,2):this.finishOp(_===124?Y.bitwiseOR:Y.bitwiseAND,1)},ht.readToken_caret=function(){var _=this.input.charCodeAt(this.pos+1);return _===61?this.finishOp(Y.assign,2):this.finishOp(Y.bitwiseXOR,1)},ht.readToken_plus_min=function(_){var M=this.input.charCodeAt(this.pos+1);return M===_?M===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||$t.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(Y.incDec,2):M===61?this.finishOp(Y.assign,2):this.finishOp(Y.plusMin,1)},ht.readToken_lt_gt=function(_){var M=this.input.charCodeAt(this.pos+1),F=1;return M===_?(F=_===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+F)===61?this.finishOp(Y.assign,F+1):this.finishOp(Y.bitShift,F)):M===33&&_===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(M===61&&(F=2),this.finishOp(Y.relational,F))},ht.readToken_eq_excl=function(_){var M=this.input.charCodeAt(this.pos+1);return M===61?this.finishOp(Y.equality,this.input.charCodeAt(this.pos+2)===61?3:2):_===61&&M===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Y.arrow)):this.finishOp(_===61?Y.eq:Y.prefix,1)},ht.readToken_question=function(){var _=this.options.ecmaVersion;if(_>=11){var M=this.input.charCodeAt(this.pos+1);if(M===46){var F=this.input.charCodeAt(this.pos+2);if(F<48||F>57)return this.finishOp(Y.questionDot,2)}if(M===63){if(_>=12){var R=this.input.charCodeAt(this.pos+2);if(R===61)return this.finishOp(Y.assign,3)}return this.finishOp(Y.coalesce,2)}}return this.finishOp(Y.question,1)},ht.getTokenFromCode=function(_){switch(_){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Y.parenL);case 41:return++this.pos,this.finishToken(Y.parenR);case 59:return++this.pos,this.finishToken(Y.semi);case 44:return++this.pos,this.finishToken(Y.comma);case 91:return++this.pos,this.finishToken(Y.bracketL);case 93:return++this.pos,this.finishToken(Y.bracketR);case 123:return++this.pos,this.finishToken(Y.braceL);case 125:return++this.pos,this.finishToken(Y.braceR);case 58:return++this.pos,this.finishToken(Y.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Y.backQuote);case 48:var M=this.input.charCodeAt(this.pos+1);if(M===120||M===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(M===111||M===79)return this.readRadixNumber(8);if(M===98||M===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(_);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(_);case 124:case 38:return this.readToken_pipe_amp(_);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(_);case 60:case 62:return this.readToken_lt_gt(_);case 61:case 33:return this.readToken_eq_excl(_);case 63:return this.readToken_question();case 126:return this.finishOp(Y.prefix,1)}this.raise(this.pos,"Unexpected character '"+qi(_)+"'")},ht.finishOp=function(_,M){var F=this.input.slice(this.pos,this.pos+M);return this.pos+=M,this.finishToken(_,F)},ht.readRegexp=function(){for(var _,M,F=this.pos;;){this.pos>=this.input.length&&this.raise(F,"Unterminated regular expression");var R=this.input.charAt(this.pos);if($t.test(R)&&this.raise(F,"Unterminated regular expression"),_)_=!1;else{if(R==="[")M=!0;else if(R==="]"&&M)M=!1;else if(R==="/"&&!M)break;_=R==="\\"}++this.pos}var K=this.input.slice(F,this.pos);++this.pos;var _e=this.pos,je=this.readWord1();this.containsEsc&&this.unexpected(_e);var pt=this.regexpState||(this.regexpState=new zt(this));pt.reset(F,K,je),this.validateRegExpFlags(pt),this.validateRegExpPattern(pt);var dt=null;try{dt=new RegExp(K,je)}catch(ur){}return this.finishToken(Y.regexp,{pattern:K,flags:je,value:dt})},ht.readInt=function(_,M,F){for(var R=this.options.ecmaVersion>=12&&M===void 0,K=F&&this.input.charCodeAt(this.pos)===48,_e=this.pos,je=0,pt=0,dt=0,ur=M==null?Infinity:M;dt=97?In=yr-97+10:yr>=65?In=yr-65+10:yr>=48&&yr<=57?In=yr-48:In=Infinity,In>=_)break;pt=yr,je=je*_+In}return R&&pt===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===_e||M!=null&&this.pos-_e!==M?null:je};function Pt(_,M){return M?parseInt(_,8):parseFloat(_.replace(/_/g,""))}function Aa(_){return typeof BigInt!="function"?null:BigInt(_.replace(/_/g,""))}ht.readRadixNumber=function(_){var M=this.pos;this.pos+=2;var F=this.readInt(_);return F==null&&this.raise(this.start+2,"Expected number in radix "+_),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(F=Aa(this.input.slice(M,this.pos)),++this.pos):gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Y.num,F)},ht.readNumber=function(_){var M=this.pos;!_&&this.readInt(10,void 0,!0)===null&&this.raise(M,"Invalid number");var F=this.pos-M>=2&&this.input.charCodeAt(M)===48;F&&this.strict&&this.raise(M,"Invalid number");var R=this.input.charCodeAt(this.pos);if(!F&&!_&&this.options.ecmaVersion>=11&&R===110){var K=Aa(this.input.slice(M,this.pos));return++this.pos,gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Y.num,K)}F&&/[89]/.test(this.input.slice(M,this.pos))&&(F=!1),R===46&&!F&&(++this.pos,this.readInt(10),R=this.input.charCodeAt(this.pos)),(R===69||R===101)&&!F&&(R=this.input.charCodeAt(++this.pos),(R===43||R===45)&&++this.pos,this.readInt(10)===null&&this.raise(M,"Invalid number")),gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var _e=Pt(this.input.slice(M,this.pos),F);return this.finishToken(Y.num,_e)},ht.readCodePoint=function(){var _=this.input.charCodeAt(this.pos),M;if(_===123){this.options.ecmaVersion<6&&this.unexpected();var F=++this.pos;M=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,M>1114111&&this.invalidStringToken(F,"Code point out of bounds")}else M=this.readHexChar(4);return M};function qi(_){return _<=65535?String.fromCharCode(_):(_-=65536,String.fromCharCode((_>>10)+55296,(_&1023)+56320))}ht.readString=function(_){for(var M="",F=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var R=this.input.charCodeAt(this.pos);if(R===_)break;R===92?(M+=this.input.slice(F,this.pos),M+=this.readEscapedChar(!1),F=this.pos):(Je(R,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return M+=this.input.slice(F,this.pos++),this.finishToken(Y.string,M)};var Ii={};ht.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(_){if(_===Ii)this.readInvalidTemplateToken();else throw _}this.inTemplateElement=!1},ht.invalidStringToken=function(_,M){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ii;this.raise(_,M)},ht.readTmplToken=function(){for(var _="",M=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var F=this.input.charCodeAt(this.pos);if(F===96||F===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===Y.template||this.type===Y.invalidTemplate)?F===36?(this.pos+=2,this.finishToken(Y.dollarBraceL)):(++this.pos,this.finishToken(Y.backQuote)):(_+=this.input.slice(M,this.pos),this.finishToken(Y.template,_));if(F===92)_+=this.input.slice(M,this.pos),_+=this.readEscapedChar(!0),M=this.pos;else if(Je(F)){switch(_+=this.input.slice(M,this.pos),++this.pos,F){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:_+=` +`;break;default:_+=String.fromCharCode(F);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),M=this.pos}else++this.pos}},ht.readInvalidTemplateToken=function(){for(;this.pos=48&&M<=55){var R=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],K=parseInt(R,8);return K>255&&(R=R.slice(0,-1),K=parseInt(R,8)),this.pos+=R.length-1,M=this.input.charCodeAt(this.pos),(R!=="0"||M===56||M===57)&&(this.strict||_)&&this.invalidStringToken(this.pos-1-R.length,_?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(K)}return Je(M)?"":String.fromCharCode(M)}},ht.readHexChar=function(_){var M=this.pos,F=this.readInt(16,_);return F===null&&this.invalidStringToken(M,"Bad character escape sequence"),F},ht.readWord1=function(){this.containsEsc=!1;for(var _="",M=!0,F=this.pos,R=this.options.ecmaVersion>=6;this.pos1?F-1:0),K=1;KR},M.getNodePosition=function(R){if(R){var K="";return R.loc?" ["+R.loc.start.line+":"+R.loc.start.column+"]"+K:""}return""},M.createClosure=function(R){var K=this,_e;switch(R.type){case"BinaryExpression":_e=this.binaryExpressionHandler(R);break;case"LogicalExpression":_e=this.logicalExpressionHandler(R);break;case"UnaryExpression":_e=this.unaryExpressionHandler(R);break;case"UpdateExpression":_e=this.updateExpressionHandler(R);break;case"ObjectExpression":_e=this.objectExpressionHandler(R);break;case"ArrayExpression":_e=this.arrayExpressionHandler(R);break;case"CallExpression":_e=this.callExpressionHandler(R);break;case"NewExpression":_e=this.newExpressionHandler(R);break;case"MemberExpression":_e=this.memberExpressionHandler(R);break;case"ThisExpression":_e=this.thisExpressionHandler(R);break;case"SequenceExpression":_e=this.sequenceExpressionHandler(R);break;case"Literal":_e=this.literalHandler(R);break;case"Identifier":_e=this.identifierHandler(R);break;case"AssignmentExpression":_e=this.assignmentExpressionHandler(R);break;case"FunctionDeclaration":_e=this.functionDeclarationHandler(R);break;case"VariableDeclaration":_e=this.variableDeclarationHandler(R);break;case"BlockStatement":case"Program":_e=this.programHandler(R);break;case"ExpressionStatement":_e=this.expressionStatementHandler(R);break;case"EmptyStatement":_e=this.emptyStatementHandler(R);break;case"ReturnStatement":_e=this.returnStatementHandler(R);break;case"FunctionExpression":_e=this.functionExpressionHandler(R);break;case"IfStatement":_e=this.ifStatementHandler(R);break;case"ConditionalExpression":_e=this.conditionalExpressionHandler(R);break;case"ForStatement":_e=this.forStatementHandler(R);break;case"WhileStatement":_e=this.whileStatementHandler(R);break;case"DoWhileStatement":_e=this.doWhileStatementHandler(R);break;case"ForInStatement":_e=this.forInStatementHandler(R);break;case"WithStatement":_e=this.withStatementHandler(R);break;case"ThrowStatement":_e=this.throwStatementHandler(R);break;case"TryStatement":_e=this.tryStatementHandler(R);break;case"ContinueStatement":_e=this.continueStatementHandler(R);break;case"BreakStatement":_e=this.breakStatementHandler(R);break;case"SwitchStatement":_e=this.switchStatementHandler(R);break;case"LabeledStatement":_e=this.labeledStatementHandler(R);break;case"DebuggerStatement":_e=this.debuggerStatementHandler(R);break;default:throw this.createInternalThrowError(sa.NodeTypeSyntaxError,R.type,R)}return function(){var je=K.options.timeout;if(je&&je>0&&K.checkTimeout())throw K.createInternalThrowError(sa.ExecutionTimeOutError,je,null);return K.lastExecNode=R,_e.apply(void 0,arguments)}},M.binaryExpressionHandler=function(R){var K=this,_e=this.createClosure(R.left),je=this.createClosure(R.right);return function(){var pt=_e(),dt=je();switch(R.operator){case"==":return pt==dt;case"!=":return pt!=dt;case"===":return pt===dt;case"!==":return pt!==dt;case"<":return pt":return pt>dt;case">=":return pt>=dt;case"<<":return pt<>":return pt>>dt;case">>>":return pt>>>dt;case"+":return pt+dt;case"-":return pt-dt;case"*":return pt*dt;case"**":return Math.pow(pt,dt);case"/":return pt/dt;case"%":return pt%dt;case"|":return pt|dt;case"^":return pt^dt;case"&":return pt&dt;case"in":return pt in dt;case"instanceof":return pt instanceof dt;default:throw K.createInternalThrowError(sa.BinaryOperatorSyntaxError,R.operator,R)}}},M.logicalExpressionHandler=function(R){var K=this,_e=this.createClosure(R.left),je=this.createClosure(R.right);return function(){switch(R.operator){case"||":return _e()||je();case"&&":return _e()&&je();default:throw K.createInternalThrowError(sa.LogicalOperatorSyntaxError,R.operator,R)}}},M.unaryExpressionHandler=function(R){var K=this;switch(R.operator){case"delete":var _e=this.createObjectGetter(R.argument),je=this.createNameGetter(R.argument);return function(){var yr=_e(),In=je();return delete yr[In]};default:var pt;if(R.operator==="typeof"&&R.argument.type==="Identifier"){var dt=this.createObjectGetter(R.argument),ur=this.createNameGetter(R.argument);pt=function(){return dt()[ur()]}}else pt=this.createClosure(R.argument);return function(){var yr=pt();switch(R.operator){case"-":return-yr;case"+":return+yr;case"!":return!yr;case"~":return~yr;case"void":return;case"typeof":return typeof yr;default:throw K.createInternalThrowError(sa.UnaryOperatorSyntaxError,R.operator,R)}}}},M.updateExpressionHandler=function(R){var K=this,_e=this.createObjectGetter(R.argument),je=this.createNameGetter(R.argument);return function(){var pt=_e(),dt=je();switch(K.assertVariable(pt,dt,R),R.operator){case"++":return R.prefix?++pt[dt]:pt[dt]++;case"--":return R.prefix?--pt[dt]:pt[dt]--;default:throw K.createInternalThrowError(sa.UpdateOperatorSyntaxError,R.operator,R)}}},M.objectExpressionHandler=function(R){var K=this,_e=[];function je(dt){return dt.type==="Identifier"?dt.name:dt.type==="Literal"?dt.value:this.throwError(sa.ObjectStructureSyntaxError,dt.type,dt)}var pt=Object.create(null);return R.properties.forEach(function(dt){var ur=dt.kind,yr=je(dt.key);(!pt[yr]||ur==="init")&&(pt[yr]={}),pt[yr][ur]=K.createClosure(dt.value),_e.push({key:yr,property:dt})}),function(){for(var dt={},ur=_e.length,yr=0;yr>=":return dt[ur]>>=yr;case">>>=":return dt[ur]>>>=yr;case"&=":return dt[ur]&=yr;case"^=":return dt[ur]^=yr;case"|=":return dt[ur]|=yr;default:throw K.createInternalThrowError(sa.AssignmentExpressionSyntaxError,R.type,R)}}},M.functionDeclarationHandler=function(R){if(R.id){var K=this.functionExpressionHandler(R);Object.defineProperty(K,"isFunctionDeclareClosure",{value:!0,writable:!1,configurable:!1,enumerable:!1}),this.funcDeclaration(R.id.name,K)}return function(){return Rt}},M.getVariableName=function(R){if(R.type==="Identifier")return R.name;throw this.createInternalThrowError(sa.VariableTypeSyntaxError,R.type,R)},M.variableDeclarationHandler=function(R){for(var K=this,_e,je=[],pt=0;pt\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Ti=re.console&&(re.console.warn||re.console.log);return Ti&&Ti.call(re.console,Rt,Tn),ie.apply(this,arguments)}}var it;typeof Object.assign!="function"?it=function(Ee){if(Ee===Z||Ee===null)throw new TypeError("Cannot convert undefined or null to object");for(var qe=Object(Ee),Rt=1;Rt-1}function tn(ie){return ie.trim().split(/\s+/g)}function A(ie,Ee,qe){if(ie.indexOf&&!qe)return ie.indexOf(Ee);for(var Rt=0;Rtja[Ee]}):Rt=Rt.sort()),Rt}function wt(ie,Ee){for(var qe,Rt,Or=Ee[0].toUpperCase()+Ee.slice(1),Tn=0;Tn1&&!qe.firstMultiple?qe.firstMultiple=wn(Ee):Or===1&&(qe.firstMultiple=!1);var Tn=qe.firstInput,Ti=qe.firstMultiple,ro=Ti?Ti.center:Tn.center,La=Ee.center=Fn(Rt);Ee.timeStamp=rr(),Ee.deltaTime=Ee.timeStamp-Tn.timeStamp,Ee.angle=Di(ro,La),Ee.distance=fn(ro,La),Ar(qe,Ee),Ee.offsetDirection=ti(Ee.deltaX,Ee.deltaY);var ja=gi(Ee.deltaTime,Ee.deltaX,Ee.deltaY);Ee.overallVelocityX=ja.x,Ee.overallVelocityY=ja.y,Ee.overallVelocity=gt(ja.x)>gt(ja.y)?ja.x:ja.y,Ee.scale=Ti?to(Ti.pointers,Rt):1,Ee.rotation=Ti?Ri(Ti.pointers,Rt):0,Ee.maxPointers=qe.prevInput?Ee.pointers.length>qe.prevInput.maxPointers?Ee.pointers.length:qe.prevInput.maxPointers:Ee.pointers.length,rn(qe,Ee);var Qo=ie.element;Er(Ee.srcEvent.target,Qo)&&(Qo=Ee.srcEvent.target),Ee.target=Qo}function Ar(ie,Ee){var qe=Ee.center,Rt=ie.offsetDelta||{},Or=ie.prevDelta||{},Tn=ie.prevInput||{};(Ee.eventType===aa||Tn.eventType===Oi)&&(Or=ie.prevDelta={x:Tn.deltaX||0,y:Tn.deltaY||0},Rt=ie.offsetDelta={x:qe.x,y:qe.y}),Ee.deltaX=Or.x+(qe.x-Rt.x),Ee.deltaY=Or.y+(qe.y-Rt.y)}function rn(ie,Ee){var qe=ie.lastInterval||Ee,Rt=Ee.timeStamp-qe.timeStamp,Or,Tn,Ti,ro;if(Ee.eventType!=Ki&&(Rt>mi||qe.velocity===Z)){var La=Ee.deltaX-qe.deltaX,ja=Ee.deltaY-qe.deltaY,Qo=gi(Rt,La,ja);Tn=Qo.x,Ti=Qo.y,Or=gt(Qo.x)>gt(Qo.y)?Qo.x:Qo.y,ro=ti(La,ja),ie.lastInterval=Ee}else Or=qe.velocity,Tn=qe.velocityX,Ti=qe.velocityY,ro=qe.direction;Ee.velocity=Or,Ee.velocityX=Tn,Ee.velocityY=Ti,Ee.direction=ro}function wn(ie){for(var Ee=[],qe=0;qe=gt(Ee)?ie<0?Mi:da:Ee<0?$n:wi}function fn(ie,Ee,qe){qe||(qe=me);var Rt=Ee[qe[0]]-ie[qe[0]],Or=Ee[qe[1]]-ie[qe[1]];return Math.sqrt(Rt*Rt+Or*Or)}function Di(ie,Ee,qe){qe||(qe=me);var Rt=Ee[qe[0]]-ie[qe[0]],Or=Ee[qe[1]]-ie[qe[1]];return Math.atan2(Or,Rt)*180/Math.PI}function Ri(ie,Ee){return Di(Ee[1],Ee[0],Dn)+Di(ie[1],ie[0],Dn)}function to(ie,Ee){return fn(Ee[0],Ee[1],Dn)/fn(ie[0],ie[1],Dn)}var Es={mousedown:aa,mousemove:Wi,mouseup:Oi},Ko="mousedown",Ba="mousemove mouseup";function xa(){this.evEl=Ko,this.evWin=Ba,this.pressed=!1,Za.apply(this,arguments)}$t(xa,Za,{handler:function(Ee){var qe=Es[Ee.type];qe&aa&&Ee.button===0&&(this.pressed=!0),qe&Wi&&Ee.which!==1&&(qe=Oi),!!this.pressed&&(qe&Oi&&(this.pressed=!1),this.callback(this.manager,qe,{pointers:[Ee],changedPointers:[Ee],pointerType:vi,srcEvent:Ee}))}});var H={pointerdown:aa,pointermove:Wi,pointerup:Oi,pointercancel:Ki,pointerout:Ki},Q={2:Wn,3:si,4:vi,5:qn},oe="pointerdown",ye="pointermove pointerup pointercancel";!Le&&re.MSPointerEvent&&!re.PointerEvent&&(oe="MSPointerDown",ye="MSPointerMove MSPointerUp MSPointerCancel");function Pe(){this.evEl=oe,this.evWin=ye,Za.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}$t(Pe,Za,{handler:function(Ee){var qe=this.store,Rt=!1,Or=Ee.type.toLowerCase().replace("ms",""),Tn=H[Or],Ti=Q[Ee.pointerType]||Ee.pointerType,ro=Ti==Wn,La=A(qe,Ee.pointerId,"pointerId");Tn&aa&&(Ee.button===0||ro)?La<0&&(qe.push(Ee),La=qe.length-1):Tn&(Oi|Ki)&&(Rt=!0),!(La<0)&&(qe[La]=Ee,this.callback(this.manager,Tn,{pointers:qe,changedPointers:[Ee],pointerType:Ti,srcEvent:Ee}),Rt&&qe.splice(La,1))}});var He={touchstart:aa,touchmove:Wi,touchend:Oi,touchcancel:Ki},rt="touchstart",pe="touchstart touchmove touchend touchcancel";function ke(){this.evTarget=rt,this.evWin=pe,this.started=!1,Za.apply(this,arguments)}$t(ke,Za,{handler:function(Ee){var qe=He[Ee.type];if(qe===aa&&(this.started=!0),!!this.started){var Rt=vt.call(this,Ee,qe);qe&(Oi|Ki)&&Rt[0].length-Rt[1].length==0&&(this.started=!1),this.callback(this.manager,qe,{pointers:Rt[0],changedPointers:Rt[1],pointerType:Wn,srcEvent:Ee})}}});function vt(ie,Ee){var qe=Ce(ie.touches),Rt=Ce(ie.changedTouches);return Ee&(Oi|Ki)&&(qe=De(qe.concat(Rt),"identifier",!0)),[qe,Rt]}var pr={touchstart:aa,touchmove:Wi,touchend:Oi,touchcancel:Ki},Ft="touchstart touchmove touchend touchcancel";function zt(){this.evTarget=Ft,this.targetIds={},Za.apply(this,arguments)}$t(zt,Za,{handler:function(Ee){var qe=pr[Ee.type],Rt=vr.call(this,Ee,qe);!Rt||this.callback(this.manager,qe,{pointers:Rt[0],changedPointers:Rt[1],pointerType:Wn,srcEvent:Ee})}});function vr(ie,Ee){var qe=Ce(ie.touches),Rt=this.targetIds;if(Ee&(aa|Wi)&&qe.length===1)return Rt[qe[0].identifier]=!0,[qe,qe];var Or,Tn,Ti=Ce(ie.changedTouches),ro=[],La=this.target;if(Tn=qe.filter(function(ja){return Er(ja.target,La)}),Ee===aa)for(Or=0;Or-1&&Rt.splice(Tn,1)};setTimeout(Or,En)}}function Yr(ie){for(var Ee=ie.srcEvent.clientX,qe=ie.srcEvent.clientY,Rt=0;Rt-1&&this.requireFail.splice(Ee,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(ie){return!!this.simultaneous[ie.id]},emit:function(ie){var Ee=this,qe=this.state;function Rt(Or){Ee.manager.emit(Or,ie)}qe=Ir&&Rt(Ee.options.event+Fu(qe))},tryEmit:function(ie){if(this.canEmit())return this.emit(ie);this.state=bo},canEmit:function(){for(var ie=0;ieEe.threshold&&Or&Ee.direction},attrTest:function(ie){return Ta.prototype.attrTest.call(this,ie)&&(this.state&wa||!(this.state&wa)&&this.directionTest(ie))},emit:function(ie){this.pX=ie.deltaX,this.pY=ie.deltaY;var Ee=oo(ie.direction);Ee&&(ie.additionalEvent=this.options.event+Ee),this._super.emit.call(this,ie)}});function Uo(){Ta.apply(this,arguments)}$t(Uo,Ta,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Pi]},attrTest:function(ie){return this._super.attrTest.call(this,ie)&&(Math.abs(ie.scale-1)>this.options.threshold||this.state&wa)},emit:function(ie){if(ie.scale!==1){var Ee=ie.scale<1?"in":"out";ie.additionalEvent=this.options.event+Ee}this._super.emit.call(this,ie)}});function $o(){ne.apply(this,arguments),this._timer=null,this._input=null}$t($o,ne,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Xi]},process:function(ie){var Ee=this.options,qe=ie.pointers.length===Ee.pointers,Rt=ie.distanceEe.time;if(this._input=ie,!Rt||!qe||ie.eventType&(Oi|Ki)&&!Or)this.reset();else if(ie.eventType&aa)this.reset(),this._timer=xt(function(){this.state=wr,this.tryEmit()},Ee.time,this);else if(ie.eventType&Oi)return wr;return bo},reset:function(){clearTimeout(this._timer)},emit:function(ie){this.state===wr&&(ie&&ie.eventType&Oi?this.manager.emit(this.options.event+"up",ie):(this._input.timeStamp=rr(),this.manager.emit(this.options.event,this._input)))}});function xu(){Ta.apply(this,arguments)}$t(xu,Ta,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Pi]},attrTest:function(ie){return this._super.attrTest.call(this,ie)&&(Math.abs(ie.rotation)>this.options.threshold||this.state&wa)}});function Eo(){Ta.apply(this,arguments)}$t(Eo,Ta,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ji|$i,pointers:1},getTouchAction:function(){return Qi.prototype.getTouchAction.call(this)},attrTest:function(ie){var Ee=this.options.direction,qe;return Ee&(ji|$i)?qe=ie.overallVelocity:Ee&ji?qe=ie.overallVelocityX:Ee&$i&&(qe=ie.overallVelocityY),this._super.attrTest.call(this,ie)&&Ee&ie.offsetDirection&&ie.distance>this.options.threshold&&ie.maxPointers==this.options.pointers&>(qe)>this.options.velocity&&ie.eventType&Oi},emit:function(ie){var Ee=oo(ie.offsetDirection);Ee&&this.manager.emit(this.options.event+Ee,ie),this.manager.emit(this.options.event,ie)}});function Zo(){ne.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}$t(Zo,ne,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[yi]},process:function(ie){var Ee=this.options,qe=ie.pointers.length===Ee.pointers,Rt=ie.distance=0&&(B|0)===B||le("invalid parameter type, ("+B+")"+Le(ge)+". must be a nonnegative integer")}function rr(B,ge,Be){ge.indexOf(B)<0&&le("invalid value"+Le(Be)+". must be one of: "+ge)}var xt=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function Yt(B){Object.keys(B).forEach(function(ge){xt.indexOf(ge)<0&&le('invalid regl constructor argument "'+ge+'". must be one of '+xt)})}function Et(B,ge){for(B=B+"";B.length0&&ge.push(new Zt("unknown",0,Be))}}),ge}function At(B,ge){ge.forEach(function(Be){var Dt=B[Be.file];if(Dt){var sr=Dt.index[Be.line];if(sr){sr.errors.push(Be),Dt.hasErrors=!0;return}}B.unknown.hasErrors=!0,B.unknown.lines[0].errors.push(Be)})}function Qe(B,ge,Be,Dt,sr){if(!B.getShaderParameter(ge,B.COMPILE_STATUS)){var kt=B.getShaderInfoLog(ge),er=Dt===B.FRAGMENT_SHADER?"fragment":"vertex";De(Be,"string",er+" shader source must be a string",sr);var hr=ft(Be,sr),mr=Je(kt);At(hr,mr),Object.keys(hr).forEach(function(xr){var Tr=hr[xr];if(!Tr.hasErrors)return;var Rr=[""],Gr=[""];function _r(Mr,ut){Rr.push(Mr),Gr.push(ut||"")}_r("file number "+xr+": "+Tr.name+` +`,"color:red;text-decoration:underline;font-weight:bold"),Tr.lines.forEach(function(Mr){if(Mr.errors.length>0){_r(Et(Mr.number,4)+"| ","background-color:yellow; font-weight:bold"),_r(Mr.line+ve,"color:red; background-color:yellow; font-weight:bold");var ut=0;Mr.errors.forEach(function(Gt){var br=Gt.message,Br=/^\s*'(.*)'\s*:\s*(.*)$/.exec(br);if(Br){var cr=Br[1];switch(br=Br[2],cr){case"assign":cr="=";break}ut=Math.max(Mr.line.indexOf(cr,ut),0)}else ut=0;_r(Et("| ",6)),_r(Et("^^^",ut+3)+ve,"font-weight:bold"),_r(Et("| ",6)),_r(br+ve,"font-weight:bold")}),_r(Et("| ",6)+ve)}else _r(Et(Mr.number,4)+"| "),_r(Mr.line+ve,"color:red")}),typeof document!="undefined"&&!window.chrome?(Gr[0]=Rr.join("%c"),console.log.apply(console,Gr)):console.log(Rr.join(""))}),fe.raise("Error compiling "+er+" shader, "+hr[0].name)}}function Qt(B,ge,Be,Dt,sr){if(!B.getProgramParameter(ge,B.LINK_STATUS)){var kt=B.getProgramInfoLog(ge),er=ft(Be,sr),hr=ft(Dt,sr),mr='Error linking program with vertex shader, "'+hr[0].name+'", and fragment shader "'+er[0].name+'"';typeof document!="undefined"?console.log("%c"+mr+ve+"%c"+kt,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(mr+ve+kt),fe.raise(mr)}}function Er(B){B._commandRef=Y()}function Nr(B,ge,Be,Dt){Er(B);function sr(mr){return mr?Dt.id(mr):0}B._fragId=sr(B.static.frag),B._vertId=sr(B.static.vert);function kt(mr,xr){Object.keys(xr).forEach(function(Tr){mr[Dt.id(Tr)]=!0})}var er=B._uniformSet={};kt(er,ge.static),kt(er,ge.dynamic);var hr=B._attributeSet={};kt(hr,Be.static),kt(hr,Be.dynamic),B._hasCount="count"in B.static||"count"in B.dynamic||"elements"in B.static||"elements"in B.dynamic}function tn(B,ge){var Be=$t();le(B+" in command "+(ge||Y())+(Be==="unknown"?"":" called from "+Be))}function A(B,ge,Be){B||tn(ge,Be||Y())}function Ce(B,ge,Be,Dt){B in ge||tn("unknown parameter ("+B+")"+Le(Be)+". possible values: "+Object.keys(ge).join(),Dt||Y())}function De(B,ge,Be,Dt){et(B,ge)||tn("invalid parameter type"+Le(Be)+". expected "+ge+", got "+typeof B,Dt||Y())}function wt(B){B()}function mt(B,ge,Be){B.texture?rr(B.texture._texture.internalformat,ge,"unsupported texture format for attachment"):rr(B.renderbuffer._renderbuffer.format,Be,"unsupported renderbuffer format for attachment")}var Bt=33071,Kt=9728,Cr=9984,ei=9985,vn=9986,di=9987,Wn=5120,si=5121,vi=5122,qn=5123,mi=5124,aa=5125,Wi=5126,Oi=32819,Ki=32820,oa=33635,Mi=34042,da=36193,$n={};$n[Wn]=$n[si]=1,$n[vi]=$n[qn]=$n[da]=$n[oa]=$n[Oi]=$n[Ki]=2,$n[mi]=$n[aa]=$n[Wi]=$n[Mi]=4;function wi(B,ge){return B===Ki||B===Oi||B===oa?2:B===Mi?4:$n[B]*ge}function ji(B){return!(B&B-1)&&!!B}function $i(B,ge,Be){var Dt,sr=ge.width,kt=ge.height,er=ge.channels;fe(sr>0&&sr<=Be.maxTextureSize&&kt>0&&kt<=Be.maxTextureSize,"invalid texture shape"),(B.wrapS!==Bt||B.wrapT!==Bt)&&fe(ji(sr)&&ji(kt),"incompatible wrap mode for texture, both width and height must be power of 2"),ge.mipmask===1?sr!==1&&kt!==1&&fe(B.minFilter!==Cr&&B.minFilter!==vn&&B.minFilter!==ei&&B.minFilter!==di,"min filter requires mipmap"):(fe(ji(sr)&&ji(kt),"texture must be a square power of 2 to support mipmapping"),fe(ge.mipmask===(sr<<1)-1,"missing or incomplete mipmap data")),ge.type===Wi&&(Be.extensions.indexOf("oes_texture_float_linear")<0&&fe(B.minFilter===Kt&&B.magFilter===Kt,"filter not supported, must enable oes_texture_float_linear"),fe(!B.genMipmaps,"mipmap generation not supported with float textures"));var hr=ge.images;for(Dt=0;Dt<16;++Dt)if(hr[Dt]){var mr=sr>>Dt,xr=kt>>Dt;fe(ge.mipmask&1<0&&sr<=Dt.maxTextureSize&&kt>0&&kt<=Dt.maxTextureSize,"invalid texture shape"),fe(sr===kt,"cube map must be square"),fe(ge.wrapS===Bt&&ge.wrapT===Bt,"wrap mode not supported by cube map");for(var hr=0;hr>Tr,_r=kt>>Tr;fe(mr.mipmask&1<1&&ge===Be&&(ge==='"'||ge==="'"))return['"'+Ar(B.substr(1,B.length-2))+'"'];var Dt=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(B);if(Dt)return rn(B.substr(0,Dt.index)).concat(rn(Dt[1])).concat(rn(B.substr(Dt.index+Dt[0].length)));var sr=B.split(".");if(sr.length===1)return['"'+Ar(B)+'"'];for(var kt=[],er=0;er0,"invalid pixel ratio"))):me.raise("invalid arguments to regl"),Be&&(Be.nodeName.toLowerCase()==="canvas"?sr=Be:Dt=Be),!kt){if(!sr){me(typeof document!="undefined","must manually specify webgl context outside of DOM environments");var _r=Ko(Dt||document.body,Rr,xr);if(!_r)return null;sr=_r.canvas,Gr=_r.onDestroy}er.premultipliedAlpha===void 0&&(er.premultipliedAlpha=!0),kt=Ba(sr,er)}return kt?{gl:kt,canvas:sr,container:Dt,extensions:hr,optionalExtensions:mr,pixelRatio:xr,profile:Tr,onDone:Rr,onDestroy:Gr}:(Gr(),Rr("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function Pe(B,ge){var Be={};function Dt(hr){me.type(hr,"string","extension name must be string");var mr=hr.toLowerCase(),xr;try{xr=Be[mr]=sr(hr)}catch(Tr){}return!!xr}function sr(hr){return B.getExtension(hr)?B.getExtension(hr):B.getExtension(hr.toLowerCase())?B.getExtension(hr.toLowerCase()):null}for(var kt=0;kt65535)<<4,B>>>=ge,Be=(B>255)<<3,B>>>=Be,ge|=Be,Be=(B>15)<<2,B>>>=Be,ge|=Be,Be=(B>3)<<1,B>>>=Be,ge|=Be,ge|B>>1}function pn(){var B=He(8,function(){return[]});function ge(kt){var er=vr(kt),hr=B[En(er)>>2];return hr.length>0?hr.pop():new ArrayBuffer(er)}function Be(kt){B[En(kt.byteLength)>>2].push(kt)}function Dt(kt,er){var hr=null;switch(kt){case rt:hr=new Int8Array(ge(er),0,er);break;case pe:hr=new Uint8Array(ge(er),0,er);break;case ke:hr=new Int16Array(ge(2*er),0,er);break;case vt:hr=new Uint16Array(ge(2*er),0,er);break;case pr:hr=new Int32Array(ge(4*er),0,er);break;case Ft:hr=new Uint32Array(ge(4*er),0,er);break;case zt:hr=new Float32Array(ge(4*er),0,er);break;default:return null}return hr.length!==er?hr.subarray(0,er):hr}function sr(kt){Be(kt.buffer)}return{alloc:ge,free:Be,allocType:Dt,freeType:sr}}var Ot=pn();Ot.zero=pn();var nn=3408,Zr=3410,Yr=3411,_i=3412,an=3413,on=3414,Xi=3415,yi=33901,Pi=33902,bi=3379,ht=3386,Pt=34921,Aa=36347,qi=36348,Ii=35661,pi=35660,wa=34930,$s=36349,Ir=34076,wr=34024,Mt=7936,bo=7937,ne=7938,Fu=35724,oo=34047,Ra=36063,Ta=34852,Qi=3553,Uo=34067,$o=34069,xu=33984,Eo=6408,Zo=5126,sa=5121,so=36160,jo=36053,Ya=36064,Gs=16384,ll=function(B,ge){var Be=1;ge.ext_texture_filter_anisotropic&&(Be=B.getParameter(oo));var Dt=1,sr=1;ge.webgl_draw_buffers&&(Dt=B.getParameter(Ta),sr=B.getParameter(Ra));var kt=!!ge.oes_texture_float;if(kt){var er=B.createTexture();B.bindTexture(Qi,er),B.texImage2D(Qi,0,Eo,1,1,0,Eo,Zo,null);var hr=B.createFramebuffer();if(B.bindFramebuffer(so,hr),B.framebufferTexture2D(so,Ya,Qi,er,0),B.bindTexture(Qi,null),B.checkFramebufferStatus(so)!==jo)kt=!1;else{B.viewport(0,0,1,1),B.clearColor(1,0,0,1),B.clear(Gs);var mr=Ot.allocType(Zo,4);B.readPixels(0,0,1,1,Eo,Zo,mr),B.getError()?kt=!1:(B.deleteFramebuffer(hr),B.deleteTexture(er),kt=mr[0]===1),Ot.freeType(mr)}}var xr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Tr=!0;if(!xr){var Rr=B.createTexture(),Gr=Ot.allocType(sa,36);B.activeTexture(xu),B.bindTexture(Uo,Rr),B.texImage2D($o,0,Eo,3,3,0,Eo,sa,Gr),Ot.freeType(Gr),B.bindTexture(Uo,null),B.deleteTexture(Rr),Tr=!B.getError()}return{colorBits:[B.getParameter(Zr),B.getParameter(Yr),B.getParameter(_i),B.getParameter(an)],depthBits:B.getParameter(on),stencilBits:B.getParameter(Xi),subpixelBits:B.getParameter(nn),extensions:Object.keys(ge).filter(function(_r){return!!ge[_r]}),maxAnisotropic:Be,maxDrawbuffers:Dt,maxColorAttachments:sr,pointSizeDims:B.getParameter(yi),lineWidthDims:B.getParameter(Pi),maxViewportDims:B.getParameter(ht),maxCombinedTextureUnits:B.getParameter(Ii),maxCubeMapSize:B.getParameter(Ir),maxRenderbufferSize:B.getParameter(wr),maxTextureUnits:B.getParameter(wa),maxTextureSize:B.getParameter(bi),maxAttributes:B.getParameter(Pt),maxVertexUniforms:B.getParameter(Aa),maxVertexTextureUnits:B.getParameter(pi),maxVaryingVectors:B.getParameter(qi),maxFragmentUniforms:B.getParameter($s),glsl:B.getParameter(Fu),renderer:B.getParameter(bo),vendor:B.getParameter(Mt),version:B.getParameter(ne),readFloat:kt,npotTextureCube:Tr}};function os(B){return!!B&&typeof B=="object"&&Array.isArray(B.shape)&&Array.isArray(B.stride)&&typeof B.offset=="number"&&B.shape.length===B.stride.length&&(Array.isArray(B.data)||re(B.data))}var ie=function(B){return Object.keys(B).map(function(ge){return B[ge]})},Ee={shape:ro,flatten:Ti};function qe(B,ge,Be){for(var Dt=0;Dt0){var Un;if(Array.isArray(Gt[0])){zr=vs(Gt);for(var tr=1,ir=1;ir0)if(typeof tr[0]=="number"){var Sr=Ot.allocType(cr.dtype,tr.length);_(Sr,tr),zr(Sr,Sn),Ot.freeType(Sr)}else if(Array.isArray(tr[0])||re(tr[0])){Xr=vs(tr);var Hr=Il(tr,Xr,cr.dtype);zr(Hr,Sn),Ot.freeType(Hr)}else me.raise("invalid buffer data")}else if(os(tr)){Xr=tr.shape;var Jr=tr.stride,Ei=0,Gn=0,jr=0,en=0;Xr.length===1?(Ei=Xr[0],Gn=1,jr=Jr[0],en=0):Xr.length===2?(Ei=Xr[0],Gn=Xr[1],jr=Jr[0],en=Jr[1]):me.raise("invalid shape");var ni=Array.isArray(tr.data)?cr.dtype:cl(tr.data),ui=Ot.allocType(ni,Ei*Gn);M(ui,tr.data,Ei,Gn,jr,en,tr.offset),zr(ui,Sn),Ot.freeType(ui)}else me.raise("invalid data for buffer subdata");return or}return br||or(ut),or._reglType="buffer",or._buffer=cr,or.subdata=Un,Be.profile&&(or.stats=cr.stats),or.destroy=function(){Gr(cr)},or}function Mr(){ie(kt).forEach(function(ut){ut.buffer=B.createBuffer(),B.bindBuffer(ut.type,ut.buffer),B.bufferData(ut.type,ut.persistentData||ut.byteLength,ut.usage)})}return Be.profile&&(ge.getTotalBufferSize=function(){var ut=0;return Object.keys(kt).forEach(function(Gt){ut+=kt[Gt].stats.size}),ut}),{create:_r,createStream:mr,destroyStream:xr,clear:function(){ie(kt).forEach(Gr),hr.forEach(Gr)},getBuffer:function(ut){return ut&&ut._buffer instanceof er?ut._buffer:null},restore:Mr,_initBuffer:Rr}}var R=0,K=0,_e=1,je=1,pt=4,dt=4,ur={points:R,point:K,lines:_e,line:je,triangles:pt,triangle:dt,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},yr=0,In=1,Bn=4,Qn=5120,Vi=5121,Li=5122,ba=5123,Gi=5124,As=5125,Eu=34963,fl=35040,Rc=35044;function tl(B,ge,Be,Dt){var sr={},kt=0,er={uint8:Vi,uint16:ba};ge.oes_element_index_uint&&(er.uint32=As);function hr(Mr){this.id=kt++,sr[this.id]=this,this.buffer=Mr,this.primType=Bn,this.vertCount=0,this.type=0}hr.prototype.bind=function(){this.buffer.bind()};var mr=[];function xr(Mr){var ut=mr.pop();return ut||(ut=new hr(Be.create(null,Eu,!0,!1)._buffer)),Rr(ut,Mr,fl,-1,-1,0,0),ut}function Tr(Mr){mr.push(Mr)}function Rr(Mr,ut,Gt,br,Br,cr,or){Mr.buffer.bind();var zr;if(ut){var Un=or;!or&&(!re(ut)||os(ut)&&!re(ut.data))&&(Un=ge.oes_element_index_uint?As:ba),Be._initBuffer(Mr.buffer,ut,Gt,Un,3)}else B.bufferData(Eu,cr,Gt),Mr.buffer.dtype=zr||Vi,Mr.buffer.usage=Gt,Mr.buffer.dimension=3,Mr.buffer.byteLength=cr;if(zr=or,!or){switch(Mr.buffer.dtype){case Vi:case Qn:zr=Vi;break;case ba:case Li:zr=ba;break;case As:case Gi:zr=As;break;default:me.raise("unsupported type for element array")}Mr.buffer.dtype=zr}Mr.type=zr,me(zr!==As||!!ge.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var tr=Br;tr<0&&(tr=Mr.buffer.byteLength,zr===ba?tr>>=1:zr===As&&(tr>>=2)),Mr.vertCount=tr;var ir=br;if(br<0){ir=Bn;var Sn=Mr.buffer.dimension;Sn===1&&(ir=yr),Sn===2&&(ir=In),Sn===3&&(ir=Bn)}Mr.primType=ir}function Gr(Mr){Dt.elementsCount--,me(Mr.buffer!==null,"must not double destroy elements"),delete sr[Mr.id],Mr.buffer.destroy(),Mr.buffer=null}function _r(Mr,ut){var Gt=Be.create(null,Eu,!0),br=new hr(Gt._buffer);Dt.elementsCount++;function Br(cr){if(!cr)Gt(),br.primType=Bn,br.vertCount=0,br.type=Vi;else if(typeof cr=="number")Gt(cr),br.primType=Bn,br.vertCount=cr|0,br.type=Vi;else{var or=null,zr=Rc,Un=-1,tr=-1,ir=0,Sn=0;Array.isArray(cr)||re(cr)||os(cr)?or=cr:(me.type(cr,"object","invalid arguments for elements"),"data"in cr&&(or=cr.data,me(Array.isArray(or)||re(or)||os(or),"invalid data for element buffer")),"usage"in cr&&(me.parameter(cr.usage,ko,"invalid element buffer usage"),zr=ko[cr.usage]),"primitive"in cr&&(me.parameter(cr.primitive,ur,"invalid element buffer primitive"),Un=ur[cr.primitive]),"count"in cr&&(me(typeof cr.count=="number"&&cr.count>=0,"invalid vertex count for elements"),tr=cr.count|0),"type"in cr&&(me.parameter(cr.type,er,"invalid buffer type"),Sn=er[cr.type]),"length"in cr?ir=cr.length|0:(ir=tr,Sn===ba||Sn===Li?ir*=2:(Sn===As||Sn===Gi)&&(ir*=4))),Rr(br,or,zr,Un,tr,ir,Sn)}return Br}return Br(Mr),Br._reglType="elements",Br._elements=br,Br.subdata=function(cr,or){return Gt.subdata(cr,or),Br},Br.destroy=function(){Gr(br)},Br}return{create:_r,createStream:xr,destroyStream:Tr,getElements:function(Mr){return typeof Mr=="function"&&Mr._elements instanceof hr?Mr._elements:null},clear:function(){ie(sr).forEach(Gr)}}}var Lc=new Float32Array(1),Bu=new Uint32Array(Lc.buffer),Nu=5123;function zu(B){for(var ge=Ot.allocType(Nu,B.length),Be=0;Be>>31<<15,kt=(Dt<<1>>>24)-127,er=Dt>>13&(1<<10)-1;if(kt<-24)ge[Be]=sr;else if(kt<-14){var hr=-14-kt;ge[Be]=sr+(er+(1<<10)>>hr)}else kt>15?ge[Be]=sr+31744:ge[Be]=sr+(kt+15<<10)+er}return ge}function uo(B){return Array.isArray(B)||re(B)}var Bf=function(B){return!(B&B-1)&&!!B},Nf=34467,ws=3553,sf=34067,su=34069,Hs=6408,uf=6406,Ol=6407,ya=6409,nc=6410,Js=32854,hl=32855,zf=36194,ep=32819,lf=32820,ic=33635,ac=34042,oc=6402,sc=34041,uc=35904,Rl=35906,Ll=36193,pl=33776,eu=33777,kc=33778,cf=33779,Uf=35986,dl=35987,lc=34798,rl=35840,ff=35841,Dc=35842,bh=35843,kl=36196,Dl=5121,Zf=5123,jf=5125,vl=5126,Vf=10242,Eh=10243,Fc=10497,cc=33071,tp=33648,fc=10240,Va=10241,hc=9728,ts=9729,Uu=9984,kn=9985,Ma=9986,Ws=9987,Bc=33170,Zu=4352,Nc=4353,rp=4354,lo=34046,ju=3317,Su=37440,tu=37441,Do=37443,Fl=37444,ml=33984,ho=[Uu,Ma,kn,Ws],yn=[0,ya,nc,Ol,Hs],qa={};qa[ya]=qa[uf]=qa[oc]=1,qa[sc]=qa[nc]=2,qa[Ol]=qa[uc]=3,qa[Hs]=qa[Rl]=4;function nl(B){return"[object "+B+"]"}var pc=nl("HTMLCanvasElement"),uu=nl("OffscreenCanvas"),na=nl("CanvasRenderingContext2D"),hf=nl("ImageBitmap"),Kr=nl("HTMLImageElement"),zc=nl("HTMLVideoElement"),pf=Object.keys(La).concat([pc,uu,na,hf,Kr,zc]),gl=[];gl[Dl]=1,gl[vl]=4,gl[Ll]=2,gl[Zf]=2,gl[jf]=4;var Ea=[];Ea[Js]=2,Ea[hl]=2,Ea[zf]=2,Ea[sc]=4,Ea[pl]=.5,Ea[eu]=.5,Ea[kc]=1,Ea[cf]=1,Ea[Uf]=.5,Ea[dl]=1,Ea[lc]=1,Ea[rl]=.5,Ea[ff]=.25,Ea[Dc]=.5,Ea[bh]=.25,Ea[kl]=.5;function ms(B){return Array.isArray(B)&&(B.length===0||typeof B[0]=="number")}function Uc(B){if(!Array.isArray(B))return!1;var ge=B.length;return!(ge===0||!uo(B[0]))}function Cu(B){return Object.prototype.toString.call(B)}function ks(B){return Cu(B)===pc}function Vu(B){return Cu(B)===uu}function Zc(B){return Cu(B)===na}function Bl(B){return Cu(B)===hf}function Gf(B){return Cu(B)===Kr}function Hf(B){return Cu(B)===zc}function Ds(B){var ge=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0;return!!(ge&&B&&B.getContext)}function Fs(B){var ge=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0;return!!(ge&&B&&"src"in B&&"crossOrigin"in B)}function Fi(B){if(!B)return!1;if(Ds(B)||Fs(B))return!0;var ge=Cu(B);return pf.indexOf(ge)>=0?!0:ms(B)||Uc(B)||os(B)}function Au(B){return La[Object.prototype.toString.call(B)]|0}function wu(B,ge){var Be=ge.length;switch(B.type){case Dl:case Zf:case jf:case vl:var Dt=Ot.allocType(B.type,Be);Dt.set(ge),B.data=Dt;break;case Ll:B.data=zu(ge);break;default:me.raise("unsupported texture type, must specify a typed array")}}function rs(B,ge){return Ot.allocType(B.type===Ll?vl:B.type,ge)}function Gu(B,ge){B.type===Ll?(B.data=zu(ge),Ot.freeType(ge)):B.data=ge}function Tu(B,ge,Be,Dt,sr,kt){for(var er=B.width,hr=B.height,mr=B.channels,xr=er*hr*mr,Tr=rs(B,xr),Rr=0,Gr=0;Gr=1;)hr+=er*mr*mr,mr/=2;return hr}else return er*Be*Dt}function gs(B,ge,Be,Dt,sr,kt,er){var hr={"don't care":Zu,"dont care":Zu,nice:rp,fast:Nc},mr={repeat:Fc,clamp:cc,mirror:tp},xr={nearest:hc,linear:ts},Tr=m({mipmap:Ws,"nearest mipmap nearest":Uu,"linear mipmap nearest":kn,"nearest mipmap linear":Ma,"linear mipmap linear":Ws},xr),Rr={none:0,browser:Fl},Gr={uint8:Dl,rgba4:ep,rgb565:ic,"rgb5 a1":lf},_r={alpha:uf,luminance:ya,"luminance alpha":nc,rgb:Ol,rgba:Hs,rgba4:Js,"rgb5 a1":hl,rgb565:zf},Mr={};ge.ext_srgb&&(_r.srgb=uc,_r.srgba=Rl),ge.oes_texture_float&&(Gr.float32=Gr.float=vl),ge.oes_texture_half_float&&(Gr.float16=Gr["half float"]=Ll),ge.webgl_depth_texture&&(m(_r,{depth:oc,"depth stencil":sc}),m(Gr,{uint16:Zf,uint32:jf,"depth stencil":ac})),ge.webgl_compressed_texture_s3tc&&m(Mr,{"rgb s3tc dxt1":pl,"rgba s3tc dxt1":eu,"rgba s3tc dxt3":kc,"rgba s3tc dxt5":cf}),ge.webgl_compressed_texture_atc&&m(Mr,{"rgb atc":Uf,"rgba atc explicit alpha":dl,"rgba atc interpolated alpha":lc}),ge.webgl_compressed_texture_pvrtc&&m(Mr,{"rgb pvrtc 4bppv1":rl,"rgb pvrtc 2bppv1":ff,"rgba pvrtc 4bppv1":Dc,"rgba pvrtc 2bppv1":bh}),ge.webgl_compressed_texture_etc1&&(Mr["rgb etc1"]=kl);var ut=Array.prototype.slice.call(B.getParameter(Nf)||new Uint32Array(0));Object.keys(Mr).forEach(function(Te){var Ut=Mr[Te];ut.indexOf(Ut)>=0&&(_r[Te]=Ut)});var Gt=Object.keys(_r);Be.textureFormats=Gt;var br=[];Object.keys(_r).forEach(function(Te){var Ut=_r[Te];br[Ut]=Te});var Br=[];Object.keys(Gr).forEach(function(Te){var Ut=Gr[Te];Br[Ut]=Te});var cr=[];Object.keys(xr).forEach(function(Te){var Ut=xr[Te];cr[Ut]=Te});var or=[];Object.keys(Tr).forEach(function(Te){var Ut=Tr[Te];or[Ut]=Te});var zr=[];Object.keys(mr).forEach(function(Te){var Ut=mr[Te];zr[Ut]=Te});var Un=Gt.reduce(function(Te,Ut){var St=_r[Ut];return St===ya||St===uf||St===ya||St===nc||St===oc||St===sc||ge.ext_srgb&&(St===uc||St===Rl)?Te[St]=St:St===hl||Ut.indexOf("rgba")>=0?Te[St]=Hs:Te[St]=Ol,Te},{});function tr(){this.internalformat=Hs,this.format=Hs,this.type=Dl,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Fl,this.width=0,this.height=0,this.channels=0}function ir(Te,Ut){Te.internalformat=Ut.internalformat,Te.format=Ut.format,Te.type=Ut.type,Te.compressed=Ut.compressed,Te.premultiplyAlpha=Ut.premultiplyAlpha,Te.flipY=Ut.flipY,Te.unpackAlignment=Ut.unpackAlignment,Te.colorSpace=Ut.colorSpace,Te.width=Ut.width,Te.height=Ut.height,Te.channels=Ut.channels}function Sn(Te,Ut){if(!(typeof Ut!="object"||!Ut)){if("premultiplyAlpha"in Ut&&(me.type(Ut.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),Te.premultiplyAlpha=Ut.premultiplyAlpha),"flipY"in Ut&&(me.type(Ut.flipY,"boolean","invalid texture flip"),Te.flipY=Ut.flipY),"alignment"in Ut&&(me.oneOf(Ut.alignment,[1,2,4,8],"invalid texture unpack alignment"),Te.unpackAlignment=Ut.alignment),"colorSpace"in Ut&&(me.parameter(Ut.colorSpace,Rr,"invalid colorSpace"),Te.colorSpace=Rr[Ut.colorSpace]),"type"in Ut){var St=Ut.type;me(ge.oes_texture_float||!(St==="float"||St==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),me(ge.oes_texture_half_float||!(St==="half float"||St==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),me(ge.webgl_depth_texture||!(St==="uint16"||St==="uint32"||St==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),me.parameter(St,Gr,"invalid texture type"),Te.type=Gr[St]}var mn=Te.width,Hi=Te.height,Se=Te.channels,ue=!1;"shape"in Ut?(me(Array.isArray(Ut.shape)&&Ut.shape.length>=2,"shape must be an array"),mn=Ut.shape[0],Hi=Ut.shape[1],Ut.shape.length===3&&(Se=Ut.shape[2],me(Se>0&&Se<=4,"invalid number of channels"),ue=!0),me(mn>=0&&mn<=Be.maxTextureSize,"invalid width"),me(Hi>=0&&Hi<=Be.maxTextureSize,"invalid height")):("radius"in Ut&&(mn=Hi=Ut.radius,me(mn>=0&&mn<=Be.maxTextureSize,"invalid radius")),"width"in Ut&&(mn=Ut.width,me(mn>=0&&mn<=Be.maxTextureSize,"invalid width")),"height"in Ut&&(Hi=Ut.height,me(Hi>=0&&Hi<=Be.maxTextureSize,"invalid height")),"channels"in Ut&&(Se=Ut.channels,me(Se>0&&Se<=4,"invalid number of channels"),ue=!0)),Te.width=mn|0,Te.height=Hi|0,Te.channels=Se|0;var Ge=!1;if("format"in Ut){var lt=Ut.format;me(ge.webgl_depth_texture||!(lt==="depth"||lt==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),me.parameter(lt,_r,"invalid texture format");var Lt=Te.internalformat=_r[lt];Te.format=Un[Lt],lt in Gr&&("type"in Ut||(Te.type=Gr[lt])),lt in Mr&&(Te.compressed=!0),Ge=!0}!ue&&Ge?Te.channels=qa[Te.format]:ue&&!Ge?Te.channels!==yn[Te.format]&&(Te.format=Te.internalformat=yn[Te.channels]):Ge&&ue&&me(Te.channels===qa[Te.format],"number of channels inconsistent with specified format")}}function Xr(Te){B.pixelStorei(Su,Te.flipY),B.pixelStorei(tu,Te.premultiplyAlpha),B.pixelStorei(Do,Te.colorSpace),B.pixelStorei(ju,Te.unpackAlignment)}function Sr(){tr.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Hr(Te,Ut){var St=null;if(Fi(Ut)?St=Ut:Ut&&(me.type(Ut,"object","invalid pixel data type"),Sn(Te,Ut),"x"in Ut&&(Te.xOffset=Ut.x|0),"y"in Ut&&(Te.yOffset=Ut.y|0),Fi(Ut.data)&&(St=Ut.data)),me(!Te.compressed||St instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),Ut.copy){me(!St,"can not specify copy and data field for the same texture");var mn=sr.viewportWidth,Hi=sr.viewportHeight;Te.width=Te.width||mn-Te.xOffset,Te.height=Te.height||Hi-Te.yOffset,Te.needsCopy=!0,me(Te.xOffset>=0&&Te.xOffset=0&&Te.yOffset0&&Te.width<=mn&&Te.height>0&&Te.height<=Hi,"copy texture read out of bounds")}else if(!St)Te.width=Te.width||1,Te.height=Te.height||1,Te.channels=Te.channels||4;else if(re(St))Te.channels=Te.channels||4,Te.data=St,!("type"in Ut)&&Te.type===Dl&&(Te.type=Au(St));else if(ms(St))Te.channels=Te.channels||4,wu(Te,St),Te.alignment=1,Te.needsFree=!0;else if(os(St)){var Se=St.data;!Array.isArray(Se)&&Te.type===Dl&&(Te.type=Au(Se));var ue=St.shape,Ge=St.stride,lt,Lt,Ke,Fe,nt,xe;ue.length===3?(Ke=ue[2],xe=Ge[2]):(me(ue.length===2,"invalid ndarray pixel data, must be 2 or 3D"),Ke=1,xe=1),lt=ue[0],Lt=ue[1],Fe=Ge[0],nt=Ge[1],Te.alignment=1,Te.width=lt,Te.height=Lt,Te.channels=Ke,Te.format=Te.internalformat=yn[Ke],Te.needsFree=!0,Tu(Te,Se,Fe,nt,xe,St.offset)}else if(Ds(St)||ks(St)||Vu(St)||Zc(St))Ds(St)||ks(St)||Vu(St)?Te.element=St:Te.element=St.canvas,Te.width=Te.element.width,Te.height=Te.element.height,Te.channels=4;else if(Bl(St))Te.element=St,Te.width=St.width,Te.height=St.height,Te.channels=4;else if(Gf(St))Te.element=St,Te.width=St.naturalWidth,Te.height=St.naturalHeight,Te.channels=4;else if(Fs(St))Te.element=St,Te.width=St.width,Te.height=St.height,Te.channels=4;else if(Hf(St))Te.element=St,Te.width=St.videoWidth,Te.height=St.videoHeight,Te.channels=4;else if(Uc(St)){var Ze=Te.width||St[0].length,Ae=Te.height||St.length,ct=Te.channels;uo(St[0][0])?ct=ct||St[0][0].length:ct=ct||1;for(var Ct=Ee.shape(St),fr=1,Ur=0;Ur=0,"oes_texture_float extension not enabled"):Te.type===Ll&&me(Be.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function Jr(Te,Ut,St){var mn=Te.element,Hi=Te.data,Se=Te.internalformat,ue=Te.format,Ge=Te.type,lt=Te.width,Lt=Te.height;Xr(Te),mn?B.texImage2D(Ut,St,ue,ue,Ge,mn):Te.compressed?B.compressedTexImage2D(Ut,St,Se,lt,Lt,0,Hi):Te.needsCopy?(Dt(),B.copyTexImage2D(Ut,St,ue,Te.xOffset,Te.yOffset,lt,Lt,0)):B.texImage2D(Ut,St,ue,lt,Lt,0,ue,Ge,Hi||null)}function Ei(Te,Ut,St,mn,Hi){var Se=Te.element,ue=Te.data,Ge=Te.internalformat,lt=Te.format,Lt=Te.type,Ke=Te.width,Fe=Te.height;Xr(Te),Se?B.texSubImage2D(Ut,Hi,St,mn,lt,Lt,Se):Te.compressed?B.compressedTexSubImage2D(Ut,Hi,St,mn,Ge,Ke,Fe,ue):Te.needsCopy?(Dt(),B.copyTexSubImage2D(Ut,Hi,St,mn,Te.xOffset,Te.yOffset,Ke,Fe)):B.texSubImage2D(Ut,Hi,St,mn,Ke,Fe,lt,Lt,ue)}var Gn=[];function jr(){return Gn.pop()||new Sr}function en(Te){Te.needsFree&&Ot.freeType(Te.data),Sr.call(Te),Gn.push(Te)}function ni(){tr.call(this),this.genMipmaps=!1,this.mipmapHint=Zu,this.mipmask=0,this.images=Array(16)}function ui(Te,Ut,St){var mn=Te.images[0]=jr();Te.mipmask=1,mn.width=Te.width=Ut,mn.height=Te.height=St,mn.channels=Te.channels=4}function Ni(Te,Ut){var St=null;if(Fi(Ut))St=Te.images[0]=jr(),ir(St,Te),Hr(St,Ut),Te.mipmask=1;else if(Sn(Te,Ut),Array.isArray(Ut.mipmap))for(var mn=Ut.mipmap,Hi=0;Hi>=Hi,St.height>>=Hi,Hr(St,mn[Hi]),Te.mipmask|=1<=0&&!("faces"in Ut)&&(Te.genMipmaps=!0)}if("mag"in Ut){var mn=Ut.mag;me.parameter(mn,xr),Te.magFilter=xr[mn]}var Hi=Te.wrapS,Se=Te.wrapT;if("wrap"in Ut){var ue=Ut.wrap;typeof ue=="string"?(me.parameter(ue,mr),Hi=Se=mr[ue]):Array.isArray(ue)&&(me.parameter(ue[0],mr),me.parameter(ue[1],mr),Hi=mr[ue[0]],Se=mr[ue[1]])}else{if("wrapS"in Ut){var Ge=Ut.wrapS;me.parameter(Ge,mr),Hi=mr[Ge]}if("wrapT"in Ut){var lt=Ut.wrapT;me.parameter(lt,mr),Se=mr[lt]}}if(Te.wrapS=Hi,Te.wrapT=Se,"anisotropic"in Ut){var Lt=Ut.anisotropic;me(typeof Lt=="number"&&Lt>=1&&Lt<=Be.maxAnisotropic,"aniso samples must be between 1 and "),Te.anisotropic=Ut.anisotropic}if("mipmap"in Ut){var Ke=!1;switch(typeof Ut.mipmap){case"string":me.parameter(Ut.mipmap,hr,"invalid mipmap hint"),Te.mipmapHint=hr[Ut.mipmap],Te.genMipmaps=!0,Ke=!0;break;case"boolean":Ke=Te.genMipmaps=Ut.mipmap;break;case"object":me(Array.isArray(Ut.mipmap),"invalid mipmap type"),Te.genMipmaps=!1,Ke=!0;break;default:me.raise("invalid mipmap type")}Ke&&!("min"in Ut)&&(Te.minFilter=Uu)}}function wo(Te,Ut){B.texParameteri(Ut,Va,Te.minFilter),B.texParameteri(Ut,fc,Te.magFilter),B.texParameteri(Ut,Vf,Te.wrapS),B.texParameteri(Ut,Eh,Te.wrapT),ge.ext_texture_filter_anisotropic&&B.texParameteri(Ut,lo,Te.anisotropic),Te.genMipmaps&&(B.hint(Bc,Te.mipmapHint),B.generateMipmap(Ut))}var Wo=0,Xo={},bs=Be.maxTextureUnits,io=Array(bs).map(function(){return null});function Si(Te){tr.call(this),this.mipmask=0,this.internalformat=Hs,this.id=Wo++,this.refCount=1,this.target=Te,this.texture=B.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ha,er.profile&&(this.stats={size:0})}function Yo(Te){B.activeTexture(ml),B.bindTexture(Te.target,Te.texture)}function ra(){var Te=io[0];Te?B.bindTexture(Te.target,Te.texture):B.bindTexture(ws,null)}function us(Te){var Ut=Te.texture;me(Ut,"must not double destroy texture");var St=Te.unit,mn=Te.target;St>=0&&(B.activeTexture(ml+St),B.bindTexture(mn,null),io[St]=null),B.deleteTexture(Ut),Te.texture=null,Te.params=null,Te.pixels=null,Te.refCount=0,delete Xo[Te.id],kt.textureCount--}m(Si.prototype,{bind:function(){var Te=this;Te.bindCount+=1;var Ut=Te.unit;if(Ut<0){for(var St=0;St0)continue;mn.unit=-1}io[St]=Te,Ut=St;break}Ut>=bs&&me.raise("insufficient number of texture units"),er.profile&&kt.maxTextureUnits>nt)-Ke,xe.height=xe.height||(St.height>>nt)-Fe,me(St.type===xe.type&&St.format===xe.format&&St.internalformat===xe.internalformat,"incompatible format for texture.subimage"),me(Ke>=0&&Fe>=0&&Ke+xe.width<=St.width&&Fe+xe.height<=St.height,"texture.subimage write out of bounds"),me(St.mipmask&1<>Ke;++Ke){var Fe=lt>>Ke,nt=Lt>>Ke;if(!Fe||!nt)break;B.texImage2D(ws,Ke,St.format,Fe,nt,0,St.format,St.type,null)}return ra(),er.profile&&(St.stats.size=Xs(St.internalformat,St.type,lt,Lt,!1,!1)),mn}return mn(Te,Ut),mn.subimage=Hi,mn.resize=Se,mn._reglType="texture2d",mn._texture=St,er.profile&&(mn.stats=St.stats),mn.destroy=function(){St.decRef()},mn}function zi(Te,Ut,St,mn,Hi,Se){var ue=new Si(sf);Xo[ue.id]=ue,kt.cubeCount++;var Ge=new Array(6);function lt(Fe,nt,xe,Ze,Ae,ct){var Ct,fr=ue.texInfo;for(Ha.call(fr),Ct=0;Ct<6;++Ct)Ge[Ct]=Zi();if(typeof Fe=="number"||!Fe){var Ur=Fe|0||1;for(Ct=0;Ct<6;++Ct)ui(Ge[Ct],Ur,Ur)}else if(typeof Fe=="object")if(nt)Ni(Ge[0],Fe),Ni(Ge[1],nt),Ni(Ge[2],xe),Ni(Ge[3],Ze),Ni(Ge[4],Ae),Ni(Ge[5],ct);else if(as(fr,Fe),Sn(ue,Fe),"faces"in Fe){var Vr=Fe.faces;for(me(Array.isArray(Vr)&&Vr.length===6,"cube faces must be a length 6 array"),Ct=0;Ct<6;++Ct)me(typeof Vr[Ct]=="object"&&!!Vr[Ct],"invalid input for cube map face"),ir(Ge[Ct],ue),Ni(Ge[Ct],Vr[Ct])}else for(Ct=0;Ct<6;++Ct)Ni(Ge[Ct],Fe);else me.raise("invalid arguments to cube map");for(ir(ue,Ge[0]),me.optional(function(){Be.npotTextureCube||me(Bf(ue.width)&&Bf(ue.height),"your browser does not support non power or two texture dimensions")}),fr.genMipmaps?ue.mipmask=(Ge[0].width<<1)-1:ue.mipmask=Ge[0].mipmask,me.textureCube(ue,fr,Ge,Be),ue.internalformat=Ge[0].internalformat,lt.width=Ge[0].width,lt.height=Ge[0].height,Yo(ue),Ct=0;Ct<6;++Ct)Ga(Ge[Ct],su+Ct);for(wo(fr,sf),ra(),er.profile&&(ue.stats.size=Xs(ue.internalformat,ue.type,lt.width,lt.height,fr.genMipmaps,!0)),lt.format=br[ue.internalformat],lt.type=Br[ue.type],lt.mag=cr[fr.magFilter],lt.min=or[fr.minFilter],lt.wrapS=zr[fr.wrapS],lt.wrapT=zr[fr.wrapT],Ct=0;Ct<6;++Ct)ss(Ge[Ct]);return lt}function Lt(Fe,nt,xe,Ze,Ae){me(!!nt,"must specify image data"),me(typeof Fe=="number"&&Fe===(Fe|0)&&Fe>=0&&Fe<6,"invalid face");var ct=xe|0,Ct=Ze|0,fr=Ae|0,Ur=jr();return ir(Ur,ue),Ur.width=0,Ur.height=0,Hr(Ur,nt),Ur.width=Ur.width||(ue.width>>fr)-ct,Ur.height=Ur.height||(ue.height>>fr)-Ct,me(ue.type===Ur.type&&ue.format===Ur.format&&ue.internalformat===Ur.internalformat,"incompatible format for texture.subimage"),me(ct>=0&&Ct>=0&&ct+Ur.width<=ue.width&&Ct+Ur.height<=ue.height,"texture.subimage write out of bounds"),me(ue.mipmask&1<>Ze;++Ze)B.texImage2D(su+xe,Ze,ue.format,nt>>Ze,nt>>Ze,0,ue.format,ue.type,null);return ra(),er.profile&&(ue.stats.size=Xs(ue.internalformat,ue.type,lt.width,lt.height,!1,!0)),lt}}return lt(Te,Ut,St,mn,Hi,Se),lt.subimage=Lt,lt.resize=Ke,lt._reglType="textureCube",lt._texture=ue,er.profile&&(lt.stats=ue.stats),lt.destroy=function(){ue.decRef()},lt}function ua(){for(var Te=0;Te>mn,St.height>>mn,0,St.internalformat,St.type,null);else for(var Hi=0;Hi<6;++Hi)B.texImage2D(su+Hi,mn,St.internalformat,St.width>>mn,St.height>>mn,0,St.internalformat,St.type,null);wo(St.texInfo,St.target)})}function wl(){for(var Te=0;Te=2,"invalid renderbuffer shape"),or=ir[0]|0,zr=ir[1]|0}else"radius"in tr&&(or=zr=tr.radius|0),"width"in tr&&(or=tr.width|0),"height"in tr&&(zr=tr.height|0);"format"in tr&&(me.parameter(tr.format,kt,"invalid renderbuffer format"),Un=kt[tr.format])}else typeof Br=="number"?(or=Br|0,typeof cr=="number"?zr=cr|0:zr=or):Br?me.raise("invalid arguments to renderbuffer constructor"):or=zr=1;if(me(or>0&&zr>0&&or<=Be.maxRenderbufferSize&&zr<=Be.maxRenderbufferSize,"invalid renderbuffer size"),!(or===ut.width&&zr===ut.height&&Un===ut.format))return Gt.width=ut.width=or,Gt.height=ut.height=zr,ut.format=Un,B.bindRenderbuffer(Mu,ut.renderbuffer),B.renderbufferStorage(Mu,Un,or,zr),me(B.getError()===0,"invalid render buffer format"),sr.profile&&(ut.stats.size=dc(ut.format,ut.width,ut.height)),Gt.format=er[ut.format],Gt}function br(Br,cr){var or=Br|0,zr=cr|0||or;return or===ut.width&&zr===ut.height||(me(or>0&&zr>0&&or<=Be.maxRenderbufferSize&&zr<=Be.maxRenderbufferSize,"invalid renderbuffer size"),Gt.width=ut.width=or,Gt.height=ut.height=zr,B.bindRenderbuffer(Mu,ut.renderbuffer),B.renderbufferStorage(Mu,ut.format,or,zr),me(B.getError()===0,"invalid render buffer format"),sr.profile&&(ut.stats.size=dc(ut.format,ut.width,ut.height))),Gt}return Gt(_r,Mr),Gt.resize=br,Gt._reglType="renderbuffer",Gt._renderbuffer=ut,sr.profile&&(Gt.stats=ut.stats),Gt.destroy=function(){ut.decRef()},Gt}sr.profile&&(Dt.getTotalRenderbufferSize=function(){var _r=0;return Object.keys(mr).forEach(function(Mr){_r+=mr[Mr].stats.size}),_r});function Gr(){ie(mr).forEach(function(_r){_r.renderbuffer=B.createRenderbuffer(),B.bindRenderbuffer(Mu,_r.renderbuffer),B.renderbufferStorage(Mu,_r.format,_r.width,_r.height)}),B.bindRenderbuffer(Mu,null)}return{create:Rr,clear:function(){ie(mr).forEach(Tr)},restore:Gr}},Pu=36160,cu=36161,Fo=3553,il=34069,fu=36064,mf=36096,Nl=36128,jc=33306,gf=36053,Iu=36054,vc=36055,Vc=36057,al=36061,Ji=36193,ol=5121,hu=5126,Ts=6407,zl=6408,_l=6402,yf=[Ts,zl],Pa=[];Pa[zl]=4,Pa[Ts]=3;var l=[];l[ol]=1,l[hu]=4,l[Ji]=2;var h=32854,c=32855,d=36194,E=33189,w=36168,P=34041,L=35907,N=34836,q=34842,ce=34843,he=[h,c,d,L,q,ce,N],de={};de[gf]="complete",de[Iu]="incomplete attachment",de[Vc]="incomplete dimensions",de[vc]="incomplete, missing attachment",de[al]="unsupported";function Re(B,ge,Be,Dt,sr,kt){var er={cur:null,next:null,dirty:!1,setFBO:null},hr=["rgba"],mr=["rgba4","rgb565","rgb5 a1"];ge.ext_srgb&&mr.push("srgba"),ge.ext_color_buffer_half_float&&mr.push("rgba16f","rgb16f"),ge.webgl_color_buffer_float&&mr.push("rgba32f");var xr=["uint8"];ge.oes_texture_half_float&&xr.push("half float","float16"),ge.oes_texture_float&&xr.push("float","float32");function Tr(Sr,Hr,Jr){this.target=Sr,this.texture=Hr,this.renderbuffer=Jr;var Ei=0,Gn=0;Hr?(Ei=Hr.width,Gn=Hr.height):Jr&&(Ei=Jr.width,Gn=Jr.height),this.width=Ei,this.height=Gn}function Rr(Sr){Sr&&(Sr.texture&&Sr.texture._texture.decRef(),Sr.renderbuffer&&Sr.renderbuffer._renderbuffer.decRef())}function Gr(Sr,Hr,Jr){if(!!Sr)if(Sr.texture){var Ei=Sr.texture._texture,Gn=Math.max(1,Ei.width),jr=Math.max(1,Ei.height);me(Gn===Hr&&jr===Jr,"inconsistent width/height for supplied texture"),Ei.refCount+=1}else{var en=Sr.renderbuffer._renderbuffer;me(en.width===Hr&&en.height===Jr,"inconsistent width/height for renderbuffer"),en.refCount+=1}}function _r(Sr,Hr){Hr&&(Hr.texture?B.framebufferTexture2D(Pu,Sr,Hr.target,Hr.texture._texture.texture,0):B.framebufferRenderbuffer(Pu,Sr,cu,Hr.renderbuffer._renderbuffer.renderbuffer))}function Mr(Sr){var Hr=Fo,Jr=null,Ei=null,Gn=Sr;typeof Sr=="object"&&(Gn=Sr.data,"target"in Sr&&(Hr=Sr.target|0)),me.type(Gn,"function","invalid attachment data");var jr=Gn._reglType;return jr==="texture2d"?(Jr=Gn,me(Hr===Fo)):jr==="textureCube"?(Jr=Gn,me(Hr>=il&&Hr=2,"invalid shape for framebuffer"),ui=Yo[0],Ni=Yo[1]}else"radius"in Si&&(ui=Ni=Si.radius),"width"in Si&&(ui=Si.width),"height"in Si&&(Ni=Si.height);("color"in Si||"colors"in Si)&&(Zi=Si.color||Si.colors,Array.isArray(Zi)&&me(Zi.length===1||ge.webgl_draw_buffers,"multiple render targets not supported")),Zi||("colorCount"in Si&&(wo=Si.colorCount|0,me(wo>0,"invalid color buffer count")),"colorTexture"in Si&&(ss=!!Si.colorTexture,Ha="rgba4"),"colorType"in Si&&(as=Si.colorType,ss?(me(ge.oes_texture_float||!(as==="float"||as==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),me(ge.oes_texture_half_float||!(as==="half float"||as==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):as==="half float"||as==="float16"?(me(ge.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),Ha="rgba16f"):(as==="float"||as==="float32")&&(me(ge.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),Ha="rgba32f"),me.oneOf(as,xr,"invalid color type")),"colorFormat"in Si&&(Ha=Si.colorFormat,hr.indexOf(Ha)>=0?ss=!0:mr.indexOf(Ha)>=0?ss=!1:me.optional(function(){ss?me.oneOf(Si.colorFormat,hr,"invalid color format for texture"):me.oneOf(Si.colorFormat,mr,"invalid color format for renderbuffer")}))),("depthTexture"in Si||"depthStencilTexture"in Si)&&(io=!!(Si.depthTexture||Si.depthStencilTexture),me(!io||ge.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in Si&&(typeof Si.depth=="boolean"?Ga=Si.depth:(Wo=Si.depth,no=!1)),"stencil"in Si&&(typeof Si.stencil=="boolean"?no=Si.stencil:(Xo=Si.stencil,Ga=!1)),"depthStencil"in Si&&(typeof Si.depthStencil=="boolean"?Ga=no=Si.depthStencil:(bs=Si.depthStencil,Ga=!1,no=!1))}var ra=null,us=null,oi=null,zi=null;if(Array.isArray(Zi))ra=Zi.map(Mr);else if(Zi)ra=[Mr(Zi)];else for(ra=new Array(wo),ni=0;ni=0||ra[ni].renderbuffer&&he.indexOf(ra[ni].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+ni+" is invalid"),ra[ni]&&ra[ni].texture){var To=Pa[ra[ni].texture._texture.format]*l[ra[ni].texture._texture.type];ua===null?ua=To:me(ua===To,"all color attachments much have the same number of bits per pixel.")}return Gr(us,ui,Ni),me(!us||us.texture&&us.texture._texture.format===_l||us.renderbuffer&&us.renderbuffer._renderbuffer.format===E,"invalid depth attachment for framebuffer object"),Gr(oi,ui,Ni),me(!oi||oi.renderbuffer&&oi.renderbuffer._renderbuffer.format===w,"invalid stencil attachment for framebuffer object"),Gr(zi,ui,Ni),me(!zi||zi.texture&&zi.texture._texture.format===P||zi.renderbuffer&&zi.renderbuffer._renderbuffer.format===P,"invalid depth-stencil attachment for framebuffer object"),zr(Jr),Jr.width=ui,Jr.height=Ni,Jr.colorAttachments=ra,Jr.depthAttachment=us,Jr.stencilAttachment=oi,Jr.depthStencilAttachment=zi,Ei.color=ra.map(Gt),Ei.depth=Gt(us),Ei.stencil=Gt(oi),Ei.depthStencil=Gt(zi),Ei.width=Jr.width,Ei.height=Jr.height,tr(Jr),Ei}function Gn(jr,en){me(er.next!==Jr,"can not resize a framebuffer which is currently in use");var ni=Math.max(jr|0,1),ui=Math.max(en|0||ni,1);if(ni===Jr.width&&ui===Jr.height)return Ei;for(var Ni=Jr.colorAttachments,Ga=0;Ga=2,"invalid shape for framebuffer"),me(ss[0]===ss[1],"cube framebuffer must be square"),ni=ss[0]}else"radius"in Zi&&(ni=Zi.radius|0),"width"in Zi?(ni=Zi.width|0,"height"in Zi&&me(Zi.height===ni,"must be square")):"height"in Zi&&(ni=Zi.height|0);("color"in Zi||"colors"in Zi)&&(ui=Zi.color||Zi.colors,Array.isArray(ui)&&me(ui.length===1||ge.webgl_draw_buffers,"multiple render targets not supported")),ui||("colorCount"in Zi&&(no=Zi.colorCount|0,me(no>0,"invalid color buffer count")),"colorType"in Zi&&(me.oneOf(Zi.colorType,xr,"invalid color type"),Ga=Zi.colorType),"colorFormat"in Zi&&(Ni=Zi.colorFormat,me.oneOf(Zi.colorFormat,hr,"invalid color format for texture"))),"depth"in Zi&&(en.depth=Zi.depth),"stencil"in Zi&&(en.stencil=Zi.stencil),"depthStencil"in Zi&&(en.depthStencil=Zi.depthStencil)}var Ha;if(ui)if(Array.isArray(ui))for(Ha=[],jr=0;jr0&&(en.depth=Hr[0].depth,en.stencil=Hr[0].stencil,en.depthStencil=Hr[0].depthStencil),Hr[jr]?Hr[jr](en):Hr[jr]=ir(en)}return m(Jr,{width:ni,height:ni,color:Ha})}function Ei(Gn){var jr,en=Gn|0;if(me(en>0&&en<=Be.maxCubeMapSize,"invalid radius for cube fbo"),en===Jr.width)return Jr;var ni=Jr.color;for(jr=0;jr=0,'invalid option for vao: "'+Ga[no]+'" valid options are '+Ve)}),me(Array.isArray(Sr),"attributes must be an array")}me(Sr.length0,"must specify at least one attribute");var Jr={},Ei=ir.attributes;Ei.length=Sr.length;for(var Gn=0;Gn=ni.byteLength?ui.subdata(ni):(ui.destroy(),ir.buffers[Gn]=null)),ir.buffers[Gn]||(ui=ir.buffers[Gn]=sr.create(jr,We,!1,!0)),en.buffer=sr.getBuffer(ui),en.size=en.buffer.dimension|0,en.normalized=!1,en.type=en.buffer.dtype,en.offset=0,en.stride=0,en.divisor=0,en.state=1,Jr[Gn]=1}else sr.getBuffer(jr)?(en.buffer=sr.getBuffer(jr),en.size=en.buffer.dimension|0,en.normalized=!1,en.type=en.buffer.dtype,en.offset=0,en.stride=0,en.divisor=0,en.state=1):sr.getBuffer(jr.buffer)?(en.buffer=sr.getBuffer(jr.buffer),en.size=(+jr.size||en.buffer.dimension)|0,en.normalized=!!jr.normalized||!1,"type"in jr?(me.parameter(jr.type,ou,"invalid buffer type"),en.type=ou[jr.type]):en.type=en.buffer.dtype,en.offset=(jr.offset||0)|0,en.stride=(jr.stride||0)|0,en.divisor=(jr.divisor||0)|0,en.state=1,me(en.size>=1&&en.size<=4,"size must be between 1 and 4"),me(en.offset>=0,"invalid offset"),me(en.stride>=0&&en.stride<=255,"stride must be between 0 and 255"),me(en.divisor>=0,"divisor must be positive"),me(!en.divisor||!!ge.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in jr?(me(Gn>0,"first attribute must not be a constant"),en.x=+jr.x||0,en.y=+jr.y||0,en.z=+jr.z||0,en.w=+jr.w||0,en.state=2):me(!1,"invalid attribute spec for location "+Gn)}for(var Ni=0;Ni1)for(var Xr=0;Xrut&&(ut=Gt.stats.uniformsCount)}),ut},Be.getMaxAttributesCount=function(){var ut=0;return Tr.forEach(function(Gt){Gt.stats.attributesCount>ut&&(ut=Gt.stats.attributesCount)}),ut});function Mr(){sr={},kt={};for(var ut=0;ut=0,"missing vertex shader",br),me.command(Gt>=0,"missing fragment shader",br);var cr=xr[Gt];cr||(cr=xr[Gt]={});var or=cr[ut];if(or&&(or.refCount++,!Br))return or;var zr=new Gr(Gt,ut);return Be.shaderCount++,_r(zr,br,Br),or||(cr[ut]=zr),Tr.push(zr),m(zr,{destroy:function(){if(zr.refCount--,zr.refCount<=0){B.deleteProgram(zr.program);var Un=Tr.indexOf(zr);Tr.splice(Un,1),Be.shaderCount--}cr[zr.vertId].refCount<=0&&(B.deleteShader(kt[zr.vertId]),delete kt[zr.vertId],delete xr[zr.fragId][zr.vertId]),Object.keys(xr[zr.fragId]).length||(B.deleteShader(sr[zr.fragId]),delete sr[zr.fragId],delete xr[zr.fragId])}})},restore:Mr,shader:mr,frag:-1,vert:-1}}var kr=6408,ln=5121,Nn=3333,zn=5126;function Mn(B,ge,Be,Dt,sr,kt,er){function hr(Tr){var Rr;ge.next===null?(me(sr.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Rr=ln):(me(ge.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Rr=ge.next.colorAttachments[0].texture._texture.type,me.optional(function(){kt.oes_texture_float?(me(Rr===ln||Rr===zn,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Rr===zn&&me(er.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):me(Rr===ln,"Reading from a framebuffer is only allowed for the type 'uint8'")}));var Gr=0,_r=0,Mr=Dt.framebufferWidth,ut=Dt.framebufferHeight,Gt=null;re(Tr)?Gt=Tr:Tr&&(me.type(Tr,"object","invalid arguments to regl.read()"),Gr=Tr.x|0,_r=Tr.y|0,me(Gr>=0&&Gr=0&&_r0&&Mr+Gr<=Dt.framebufferWidth,"invalid width for read pixels"),me(ut>0&&ut+_r<=Dt.framebufferHeight,"invalid height for read pixels"),Be();var br=Mr*ut*4;return Gt||(Rr===ln?Gt=new Uint8Array(br):Rr===zn&&(Gt=Gt||new Float32Array(br))),me.isTypedArray(Gt,"data buffer for regl.read() must be a typedarray"),me(Gt.byteLength>=br,"data buffer for regl.read() too small"),B.pixelStorei(Nn,4),B.readPixels(Gr,_r,Mr,ut,kr,Rr,Gt),Gt}function mr(Tr){var Rr;return ge.setFBO({framebuffer:Tr.framebuffer},function(){Rr=hr(Tr)}),Rr}function xr(Tr){return!Tr||!("framebuffer"in Tr)?hr(Tr):mr(Tr)}return xr}function Bi(B){return Array.prototype.slice.call(B)}function Qr(B){return Bi(B).join("")}function li(){var B=0,ge=[],Be=[];function Dt(Rr){for(var Gr=0;Gr0&&(Rr.push(ut,"="),Rr.push.apply(Rr,Bi(arguments)),Rr.push(";")),ut}return m(Gr,{def:Mr,toString:function(){return Qr([_r.length>0?"var "+_r.join(",")+";":"",Qr(Rr)])}})}function kt(){var Rr=sr(),Gr=sr(),_r=Rr.toString,Mr=Gr.toString;function ut(Gt,br){Gr(Gt,br,"=",Rr.def(Gt,br),";")}return m(function(){Rr.apply(Rr,Bi(arguments))},{def:Rr.def,entry:Rr,exit:Gr,save:ut,set:function(Gt,br,Br){ut(Gt,br),Rr(Gt,br,"=",Br,";")},toString:function(){return _r()+Mr()}})}function er(){var Rr=Qr(arguments),Gr=kt(),_r=kt(),Mr=Gr.toString,ut=_r.toString;return m(Gr,{then:function(){return Gr.apply(Gr,Bi(arguments)),this},else:function(){return _r.apply(_r,Bi(arguments)),this},toString:function(){var Gt=ut();return Gt&&(Gt="else{"+Gt+"}"),Qr(["if(",Rr,"){",Mr(),"}",Gt])}})}var hr=sr(),mr={};function xr(Rr,Gr){var _r=[];function Mr(){var cr="a"+_r.length;return _r.push(cr),cr}Gr=Gr||0;for(var ut=0;ut":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Qc={"0":0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Wr={frag:Md,vert:Pd},op={cw:Vp,ccw:Lh};function Ht(B){return Array.isArray(B)||re(B)||os(B)}function sp(B){return B.sort(function(ge,Be){return ge===mo?-1:Be===mo?1:ge=1,Dt>=2,ge)}else if(Be===Ho){var sr=B.data;return new va(sr.thisDep,sr.contextDep,sr.propDep,ge)}else{if(Be===Bo)return new va(!1,!1,!1,ge);if(Be===za){for(var kt=!1,er=!1,hr=!1,mr=0;mr=1&&(er=!0),Tr>=2&&(hr=!0)}else xr.type===Ho&&(kt=kt||xr.data.thisDep,er=er||xr.data.contextDep,hr=hr||xr.data.propDep)}return new va(kt,er,hr,ge)}else return new va(Be===Ka,Be===po,Be===Kn,ge)}}var Yp=new va(!1,!1,!1,function(){});function up(B,ge,Be,Dt,sr,kt,er,hr,mr,xr,Tr,Rr,Gr,_r,Mr){var ut=xr.Record,Gt={add:32774,subtract:32778,"reverse subtract":32779};Be.ext_blend_minmax&&(Gt.min=Gp,Gt.max=Id);var br=Be.angle_instanced_arrays,Br=Be.webgl_draw_buffers,cr=Be.oes_vertex_array_object,or={dirty:!0,profile:Mr.profile},zr={},Un=[],tr={},ir={};function Sn(Se){return Se.replace(".","_")}function Xr(Se,ue,Ge){var lt=Sn(Se);Un.push(Se),zr[lt]=or[lt]=!!Ge,tr[lt]=ue}function Sr(Se,ue,Ge){var lt=Sn(Se);Un.push(Se),Array.isArray(Ge)?(or[lt]=Ge.slice(),zr[lt]=Ge.slice()):or[lt]=zr[lt]=Ge,ir[lt]=ue}Xr(co,Zp),Xr(Bs,qc),Sr(_s,"blendColor",[0,0,0,0]),Sr(Hu,"blendEquationSeparate",[$c,$c]),Sr(xs,"blendFuncSeparate",[kh,Wp,kh,Wp]),Xr(pu,Th,!0),Sr(vo,"depthFunc",qu),Sr(mc,"depthRange",[0,1]),Sr(ru,"depthMask",!0),Sr(Wu,Wu,[!0,!0,!0,!0]),Xr(du,Up),Sr(xl,"cullFace",Yu),Sr(vu,vu,Lh),Sr(Ul,Ul,1),Xr(Ou,Mh),Sr(So,"polygonOffset",[0,0]),Xr(ka,Xf),Xr(Ua,Yf),Sr(mu,"sampleCoverage",[1,!1]),Xr(ta,Co),Sr(is,"stencilMask",-1),Sr(Ms,"stencilFunc",[Hp,0,-1]),Sr(bl,"stencilOpSeparate",[Cl,gu,gu,gu]),Sr(_f,"stencilOpSeparate",[Yu,gu,gu,gu]),Xr(xf,jp),Sr(Gc,"scissor",[0,0,B.drawingBufferWidth,B.drawingBufferHeight]),Sr(mo,mo,[0,0,B.drawingBufferWidth,B.drawingBufferHeight]);var Hr={gl:B,context:Gr,strings:ge,next:zr,current:or,draw:Rr,elements:kt,buffer:sr,shader:Tr,attributes:xr.state,vao:xr,uniforms:mr,framebuffer:hr,extensions:Be,timer:_r,isBufferArgs:Ht},Jr={primTypes:ur,compareFuncs:Vl,blendFuncs:Al,blendEquations:Gt,stencilOps:Qc,glTypes:ou,orientationType:op};me.optional(function(){Hr.isArrayLike=uo}),Br&&(Jr.backBuffer=[Yu],Jr.drawBuffer=He(Dt.maxDrawbuffers,function(Se){return Se===0?[0]:He(Se,function(ue){return Od+ue})}));var Ei=0;function Gn(){var Se=li(),ue=Se.link,Ge=Se.global;Se.id=Ei++,Se.batchId="0";var lt=ue(Hr),Lt=Se.shared={props:"a0"};Object.keys(Hr).forEach(function(Ze){Lt[Ze]=Ge.def(lt,".",Ze)}),me.optional(function(){Se.CHECK=ue(me),Se.commandStr=me.guessCommand(),Se.command=ue(Se.commandStr),Se.assert=function(Ze,Ae,ct){Ze("if(!(",Ae,"))",this.CHECK,".commandRaise(",ue(ct),",",this.command,");")},Jr.invalidBlendCombinations=Cf});var Ke=Se.next={},Fe=Se.current={};Object.keys(ir).forEach(function(Ze){Array.isArray(or[Ze])&&(Ke[Ze]=Ge.def(Lt.next,".",Ze),Fe[Ze]=Ge.def(Lt.current,".",Ze))});var nt=Se.constants={};Object.keys(Jr).forEach(function(Ze){nt[Ze]=Ge.def(JSON.stringify(Jr[Ze]))}),Se.invoke=function(Ze,Ae){switch(Ae.type){case ri:var ct=["this",Lt.context,Lt.props,Se.batchId];return Ze.def(ue(Ae.data),".call(",ct.slice(0,Math.max(Ae.data.length+1,4)),")");case Kn:return Ze.def(Lt.props,Ae.data);case po:return Ze.def(Lt.context,Ae.data);case Ka:return Ze.def("this",Ae.data);case Ho:return Ae.data.append(Se,Ze),Ae.data.ref;case Bo:return Ae.data.toString();case za:return Ae.data.map(function(Ct){return Se.invoke(Ze,Ct)})}},Se.attribCache={};var xe={};return Se.scopeAttrib=function(Ze){var Ae=ge.id(Ze);if(Ae in xe)return xe[Ae];var ct=xr.scope[Ae];ct||(ct=xr.scope[Ae]=new ut);var Ct=xe[Ae]=ue(ct);return Ct},Se}function jr(Se){var ue=Se.static,Ge=Se.dynamic,lt;if(Hc in ue){var Lt=!!ue[Hc];lt=Ao(function(Fe,nt){return Lt}),lt.enable=Lt}else if(Hc in Ge){var Ke=Ge[Hc];lt=Ys(Ke,function(Fe,nt){return Fe.invoke(nt,Ke)})}return lt}function en(Se,ue){var Ge=Se.static,lt=Se.dynamic;if(Ru in Ge){var Lt=Ge[Ru];return Lt?(Lt=hr.getFramebuffer(Lt),me.command(Lt,"invalid framebuffer object"),Ao(function(Fe,nt){var xe=Fe.link(Lt),Ze=Fe.shared;nt.set(Ze.framebuffer,".next",xe);var Ae=Ze.context;return nt.set(Ae,"."+El,xe+".width"),nt.set(Ae,"."+Xc,xe+".height"),xe})):Ao(function(Fe,nt){var xe=Fe.shared;nt.set(xe.framebuffer,".next","null");var Ze=xe.context;return nt.set(Ze,"."+El,Ze+"."+Yc),nt.set(Ze,"."+Xc,Ze+"."+zp),"null"})}else if(Ru in lt){var Ke=lt[Ru];return Ys(Ke,function(Fe,nt){var xe=Fe.invoke(nt,Ke),Ze=Fe.shared,Ae=Ze.framebuffer,ct=nt.def(Ae,".getFramebuffer(",xe,")");me.optional(function(){Fe.assert(nt,"!"+xe+"||"+ct,"invalid framebuffer object")}),nt.set(Ae,".next",ct);var Ct=Ze.context;return nt.set(Ct,"."+El,ct+"?"+ct+".width:"+Ct+"."+Yc),nt.set(Ct,"."+Xc,ct+"?"+ct+".height:"+Ct+"."+zp),ct})}else return null}function ni(Se,ue,Ge){var lt=Se.static,Lt=Se.dynamic;function Ke(xe){if(xe in lt){var Ze=lt[xe];me.commandType(Ze,"object","invalid "+xe,Ge.commandStr);var Ae=!0,ct=Ze.x|0,Ct=Ze.y|0,fr,Ur;return"width"in Ze?(fr=Ze.width|0,me.command(fr>=0,"invalid "+xe,Ge.commandStr)):Ae=!1,"height"in Ze?(Ur=Ze.height|0,me.command(Ur>=0,"invalid "+xe,Ge.commandStr)):Ae=!1,new va(!Ae&&ue&&ue.thisDep,!Ae&&ue&&ue.contextDep,!Ae&&ue&&ue.propDep,function(Dr,An){var cn=Dr.shared.context,xn=fr;"width"in Ze||(xn=An.def(cn,".",El,"-",ct));var bn=Ur;return"height"in Ze||(bn=An.def(cn,".",Xc,"-",Ct)),[ct,Ct,xn,bn]})}else if(xe in Lt){var Vr=Lt[xe],sn=Ys(Vr,function(Dr,An){var cn=Dr.invoke(An,Vr);me.optional(function(){Dr.assert(An,cn+"&&typeof "+cn+'==="object"',"invalid "+xe)});var xn=Dr.shared.context,bn=An.def(cn,".x|0"),dn=An.def(cn,".y|0"),Jn=An.def('"width" in ',cn,"?",cn,".width|0:","(",xn,".",El,"-",bn,")"),_a=An.def('"height" in ',cn,"?",cn,".height|0:","(",xn,".",Xc,"-",dn,")");return me.optional(function(){Dr.assert(An,Jn+">=0&&"+_a+">=0","invalid "+xe)}),[bn,dn,Jn,_a]});return ue&&(sn.thisDep=sn.thisDep||ue.thisDep,sn.contextDep=sn.contextDep||ue.contextDep,sn.propDep=sn.propDep||ue.propDep),sn}else return ue?new va(ue.thisDep,ue.contextDep,ue.propDep,function(Dr,An){var cn=Dr.shared.context;return[0,0,An.def(cn,".",El),An.def(cn,".",Xc)]}):null}var Fe=Ke(mo);if(Fe){var nt=Fe;Fe=new va(Fe.thisDep,Fe.contextDep,Fe.propDep,function(xe,Ze){var Ae=nt.append(xe,Ze),ct=xe.shared.context;return Ze.set(ct,"."+Ah,Ae[2]),Ze.set(ct,"."+np,Ae[3]),Ae})}return{viewport:Fe,scissor_box:Ke(Gc)}}function ui(Se,ue){var Ge=Se.static,lt=typeof Ge[Xu]=="string"&&typeof Ge[Zl]=="string";if(lt){if(Object.keys(ue.dynamic).length>0)return null;var Lt=ue.static,Ke=Object.keys(Lt);if(Ke.length>0&&typeof Lt[Ke[0]]=="number"){for(var Fe=[],nt=0;nt=0,"invalid "+An,ue.commandStr),Ao(function(dn,Jn){return cn&&(dn.OFFSET=xn),xn})}else if(An in lt){var bn=lt[An];return Ys(bn,function(dn,Jn){var _a=dn.invoke(Jn,bn);return cn&&(dn.OFFSET=_a,me.optional(function(){dn.assert(Jn,_a+">=0","invalid "+An)})),_a})}else if(cn){if(xe)return Ao(function(dn,Jn){return dn.OFFSET=0,0});if(Ke)return new va(nt.thisDep,nt.contextDep,nt.propDep,function(dn,Jn){return Jn.def(dn.shared.vao+".currentVAO?"+dn.shared.vao+".currentVAO.offset:0")})}else if(Ke)return new va(nt.thisDep,nt.contextDep,nt.propDep,function(dn,Jn){return Jn.def(dn.shared.vao+".currentVAO?"+dn.shared.vao+".currentVAO.instances:-1")});return null}var fr=Ct(bf,!0);function Ur(){if(gc in Ge){var An=Ge[gc]|0;return Lt.count=An,me.command(typeof An=="number"&&An>=0,"invalid vertex count",ue.commandStr),Ao(function(){return An})}else if(gc in lt){var cn=lt[gc];return Ys(cn,function(Jn,_a){var ls=Jn.invoke(_a,cn);return me.optional(function(){Jn.assert(_a,"typeof "+ls+'==="number"&&'+ls+">=0&&"+ls+"===("+ls+"|0)","invalid vertex count")}),ls})}else if(xe)if(Gl(Ae)){if(Ae)return fr?new va(fr.thisDep,fr.contextDep,fr.propDep,function(Jn,_a){var ls=_a.def(Jn.ELEMENTS,".vertCount-",Jn.OFFSET);return me.optional(function(){Jn.assert(_a,ls+">=0","invalid vertex offset/element buffer too small")}),ls}):Ao(function(Jn,_a){return _a.def(Jn.ELEMENTS,".vertCount")});var xn=Ao(function(){return-1});return me.optional(function(){xn.MISSING=!0}),xn}else{var bn=new va(Ae.thisDep||fr.thisDep,Ae.contextDep||fr.contextDep,Ae.propDep||fr.propDep,function(Jn,_a){var ls=Jn.ELEMENTS;return Jn.OFFSET?_a.def(ls,"?",ls,".vertCount-",Jn.OFFSET,":-1"):_a.def(ls,"?",ls,".vertCount:-1")});return me.optional(function(){bn.DYNAMIC=!0}),bn}else if(Ke){var dn=new va(nt.thisDep,nt.contextDep,nt.propDep,function(Jn,_a){return _a.def(Jn.shared.vao,".currentVAO?",Jn.shared.vao,".currentVAO.count:-1")});return dn}return null}var Vr=ct(),sn=Ur(),Dr=Ct(Wc,!1);return{elements:Ae,primitive:Vr,count:sn,instances:Dr,offset:fr,vao:nt,vaoActive:Ke,elementsActive:xe,static:Lt}}function no(Se,ue){var Ge=Se.static,lt=Se.dynamic,Lt={};return Un.forEach(function(Ke){var Fe=Sn(Ke);function nt(xe,Ze){if(Ke in Ge){var Ae=xe(Ge[Ke]);Lt[Fe]=Ao(function(){return Ae})}else if(Ke in lt){var ct=lt[Ke];Lt[Fe]=Ys(ct,function(Ct,fr){return Ze(Ct,fr,Ct.invoke(fr,ct))})}}switch(Ke){case du:case Bs:case co:case ta:case pu:case xf:case Ou:case ka:case Ua:case ru:return nt(function(xe){return me.commandType(xe,"boolean",Ke,ue.commandStr),xe},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,"typeof "+Ae+'==="boolean"',"invalid flag "+Ke,xe.commandStr)}),Ae});case vo:return nt(function(xe){return me.commandParameter(xe,Vl,"invalid "+Ke,ue.commandStr),Vl[xe]},function(xe,Ze,Ae){var ct=xe.constants.compareFuncs;return me.optional(function(){xe.assert(Ze,Ae+" in "+ct,"invalid "+Ke+", must be one of "+Object.keys(Vl))}),Ze.def(ct,"[",Ae,"]")});case mc:return nt(function(xe){return me.command(uo(xe)&&xe.length===2&&typeof xe[0]=="number"&&typeof xe[1]=="number"&&xe[0]<=xe[1],"depth range is 2d array",ue.commandStr),xe},function(xe,Ze,Ae){me.optional(function(){xe.assert(Ze,xe.shared.isArrayLike+"("+Ae+")&&"+Ae+".length===2&&typeof "+Ae+'[0]==="number"&&typeof '+Ae+'[1]==="number"&&'+Ae+"[0]<="+Ae+"[1]","depth range must be a 2d array")});var ct=Ze.def("+",Ae,"[0]"),Ct=Ze.def("+",Ae,"[1]");return[ct,Ct]});case xs:return nt(function(xe){me.commandType(xe,"object","blend.func",ue.commandStr);var Ze="srcRGB"in xe?xe.srcRGB:xe.src,Ae="srcAlpha"in xe?xe.srcAlpha:xe.src,ct="dstRGB"in xe?xe.dstRGB:xe.dst,Ct="dstAlpha"in xe?xe.dstAlpha:xe.dst;return me.commandParameter(Ze,Al,Fe+".srcRGB",ue.commandStr),me.commandParameter(Ae,Al,Fe+".srcAlpha",ue.commandStr),me.commandParameter(ct,Al,Fe+".dstRGB",ue.commandStr),me.commandParameter(Ct,Al,Fe+".dstAlpha",ue.commandStr),me.command(Cf.indexOf(Ze+", "+ct)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+Ze+", "+ct+")",ue.commandStr),[Al[Ze],Al[ct],Al[Ae],Al[Ct]]},function(xe,Ze,Ae){var ct=xe.constants.blendFuncs;me.optional(function(){xe.assert(Ze,Ae+"&&typeof "+Ae+'==="object"',"invalid blend func, must be an object")});function Ct(cn,xn){var bn=Ze.def('"',cn,xn,'" in ',Ae,"?",Ae,".",cn,xn,":",Ae,".",cn);return me.optional(function(){xe.assert(Ze,bn+" in "+ct,"invalid "+Ke+"."+cn+xn+", must be one of "+Object.keys(Al))}),bn}var fr=Ct("src","RGB"),Ur=Ct("dst","RGB");me.optional(function(){var cn=xe.constants.invalidBlendCombinations;xe.assert(Ze,cn+".indexOf("+fr+'+", "+'+Ur+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var Vr=Ze.def(ct,"[",fr,"]"),sn=Ze.def(ct,"[",Ct("src","Alpha"),"]"),Dr=Ze.def(ct,"[",Ur,"]"),An=Ze.def(ct,"[",Ct("dst","Alpha"),"]");return[Vr,Dr,sn,An]});case Hu:return nt(function(xe){if(typeof xe=="string")return me.commandParameter(xe,Gt,"invalid "+Ke,ue.commandStr),[Gt[xe],Gt[xe]];if(typeof xe=="object")return me.commandParameter(xe.rgb,Gt,Ke+".rgb",ue.commandStr),me.commandParameter(xe.alpha,Gt,Ke+".alpha",ue.commandStr),[Gt[xe.rgb],Gt[xe.alpha]];me.commandRaise("invalid blend.equation",ue.commandStr)},function(xe,Ze,Ae){var ct=xe.constants.blendEquations,Ct=Ze.def(),fr=Ze.def(),Ur=xe.cond("typeof ",Ae,'==="string"');return me.optional(function(){function Vr(sn,Dr,An){xe.assert(sn,An+" in "+ct,"invalid "+Dr+", must be one of "+Object.keys(Gt))}Vr(Ur.then,Ke,Ae),xe.assert(Ur.else,Ae+"&&typeof "+Ae+'==="object"',"invalid "+Ke),Vr(Ur.else,Ke+".rgb",Ae+".rgb"),Vr(Ur.else,Ke+".alpha",Ae+".alpha")}),Ur.then(Ct,"=",fr,"=",ct,"[",Ae,"];"),Ur.else(Ct,"=",ct,"[",Ae,".rgb];",fr,"=",ct,"[",Ae,".alpha];"),Ze(Ur),[Ct,fr]});case _s:return nt(function(xe){return me.command(uo(xe)&&xe.length===4,"blend.color must be a 4d array",ue.commandStr),He(4,function(Ze){return+xe[Ze]})},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,xe.shared.isArrayLike+"("+Ae+")&&"+Ae+".length===4","blend.color must be a 4d array")}),He(4,function(ct){return Ze.def("+",Ae,"[",ct,"]")})});case is:return nt(function(xe){return me.commandType(xe,"number",Fe,ue.commandStr),xe|0},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,"typeof "+Ae+'==="number"',"invalid stencil.mask")}),Ze.def(Ae,"|0")});case Ms:return nt(function(xe){me.commandType(xe,"object",Fe,ue.commandStr);var Ze=xe.cmp||"keep",Ae=xe.ref||0,ct="mask"in xe?xe.mask:-1;return me.commandParameter(Ze,Vl,Ke+".cmp",ue.commandStr),me.commandType(Ae,"number",Ke+".ref",ue.commandStr),me.commandType(ct,"number",Ke+".mask",ue.commandStr),[Vl[Ze],Ae,ct]},function(xe,Ze,Ae){var ct=xe.constants.compareFuncs;me.optional(function(){function Vr(){xe.assert(Ze,Array.prototype.join.call(arguments,""),"invalid stencil.func")}Vr(Ae+"&&typeof ",Ae,'==="object"'),Vr('!("cmp" in ',Ae,")||(",Ae,".cmp in ",ct,")")});var Ct=Ze.def('"cmp" in ',Ae,"?",ct,"[",Ae,".cmp]",":",gu),fr=Ze.def(Ae,".ref|0"),Ur=Ze.def('"mask" in ',Ae,"?",Ae,".mask|0:-1");return[Ct,fr,Ur]});case bl:case _f:return nt(function(xe){me.commandType(xe,"object",Fe,ue.commandStr);var Ze=xe.fail||"keep",Ae=xe.zfail||"keep",ct=xe.zpass||"keep";return me.commandParameter(Ze,Qc,Ke+".fail",ue.commandStr),me.commandParameter(Ae,Qc,Ke+".zfail",ue.commandStr),me.commandParameter(ct,Qc,Ke+".zpass",ue.commandStr),[Ke===_f?Yu:Cl,Qc[Ze],Qc[Ae],Qc[ct]]},function(xe,Ze,Ae){var ct=xe.constants.stencilOps;me.optional(function(){xe.assert(Ze,Ae+"&&typeof "+Ae+'==="object"',"invalid "+Ke)});function Ct(fr){return me.optional(function(){xe.assert(Ze,'!("'+fr+'" in '+Ae+")||("+Ae+"."+fr+" in "+ct+")","invalid "+Ke+"."+fr+", must be one of "+Object.keys(Qc))}),Ze.def('"',fr,'" in ',Ae,"?",ct,"[",Ae,".",fr,"]:",gu)}return[Ke===_f?Yu:Cl,Ct("fail"),Ct("zfail"),Ct("zpass")]});case So:return nt(function(xe){me.commandType(xe,"object",Fe,ue.commandStr);var Ze=xe.factor|0,Ae=xe.units|0;return me.commandType(Ze,"number",Fe+".factor",ue.commandStr),me.commandType(Ae,"number",Fe+".units",ue.commandStr),[Ze,Ae]},function(xe,Ze,Ae){me.optional(function(){xe.assert(Ze,Ae+"&&typeof "+Ae+'==="object"',"invalid "+Ke)});var ct=Ze.def(Ae,".factor|0"),Ct=Ze.def(Ae,".units|0");return[ct,Ct]});case xl:return nt(function(xe){var Ze=0;return xe==="front"?Ze=Cl:xe==="back"&&(Ze=Yu),me.command(!!Ze,Fe,ue.commandStr),Ze},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,Ae+'==="front"||'+Ae+'==="back"',"invalid cull.face")}),Ze.def(Ae,'==="front"?',Cl,":",Yu)});case Ul:return nt(function(xe){return me.command(typeof xe=="number"&&xe>=Dt.lineWidthDims[0]&&xe<=Dt.lineWidthDims[1],"invalid line width, must be a positive number between "+Dt.lineWidthDims[0]+" and "+Dt.lineWidthDims[1],ue.commandStr),xe},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,"typeof "+Ae+'==="number"&&'+Ae+">="+Dt.lineWidthDims[0]+"&&"+Ae+"<="+Dt.lineWidthDims[1],"invalid line width")}),Ae});case vu:return nt(function(xe){return me.commandParameter(xe,op,Fe,ue.commandStr),op[xe]},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,Ae+'==="cw"||'+Ae+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),Ze.def(Ae+'==="cw"?'+Vp+":"+Lh)});case Wu:return nt(function(xe){return me.command(uo(xe)&&xe.length===4,"color.mask must be length 4 array",ue.commandStr),xe.map(function(Ze){return!!Ze})},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,xe.shared.isArrayLike+"("+Ae+")&&"+Ae+".length===4","invalid color.mask")}),He(4,function(ct){return"!!"+Ae+"["+ct+"]"})});case mu:return nt(function(xe){me.command(typeof xe=="object"&&xe,Fe,ue.commandStr);var Ze="value"in xe?xe.value:1,Ae=!!xe.invert;return me.command(typeof Ze=="number"&&Ze>=0&&Ze<=1,"sample.coverage.value must be a number between 0 and 1",ue.commandStr),[Ze,Ae]},function(xe,Ze,Ae){me.optional(function(){xe.assert(Ze,Ae+"&&typeof "+Ae+'==="object"',"invalid sample.coverage")});var ct=Ze.def('"value" in ',Ae,"?+",Ae,".value:1"),Ct=Ze.def("!!",Ae,".invert");return[ct,Ct]})}}),Lt}function Zi(Se,ue){var Ge=Se.static,lt=Se.dynamic,Lt={};return Object.keys(Ge).forEach(function(Ke){var Fe=Ge[Ke],nt;if(typeof Fe=="number"||typeof Fe=="boolean")nt=Ao(function(){return Fe});else if(typeof Fe=="function"){var xe=Fe._reglType;xe==="texture2d"||xe==="textureCube"?nt=Ao(function(Ze){return Ze.link(Fe)}):xe==="framebuffer"||xe==="framebufferCube"?(me.command(Fe.color.length>0,'missing color attachment for framebuffer sent to uniform "'+Ke+'"',ue.commandStr),nt=Ao(function(Ze){return Ze.link(Fe.color[0])})):me.commandRaise('invalid data for uniform "'+Ke+'"',ue.commandStr)}else uo(Fe)?nt=Ao(function(Ze){var Ae=Ze.global.def("[",He(Fe.length,function(ct){return me.command(typeof Fe[ct]=="number"||typeof Fe[ct]=="boolean","invalid uniform "+Ke,Ze.commandStr),Fe[ct]}),"]");return Ae}):me.commandRaise('invalid or missing data for uniform "'+Ke+'"',ue.commandStr);nt.value=Fe,Lt[Ke]=nt}),Object.keys(lt).forEach(function(Ke){var Fe=lt[Ke];Lt[Ke]=Ys(Fe,function(nt,xe){return nt.invoke(xe,Fe)})}),Lt}function ss(Se,ue){var Ge=Se.static,lt=Se.dynamic,Lt={};return Object.keys(Ge).forEach(function(Ke){var Fe=Ge[Ke],nt=ge.id(Ke),xe=new ut;if(Ht(Fe))xe.state=Xn,xe.buffer=sr.getBuffer(sr.create(Fe,Ef,!1,!0)),xe.type=0;else{var Ze=sr.getBuffer(Fe);if(Ze)xe.state=Xn,xe.buffer=Ze,xe.type=0;else if(me.command(typeof Fe=="object"&&Fe,"invalid data for attribute "+Ke,ue.commandStr),"constant"in Fe){var Ae=Fe.constant;xe.buffer="null",xe.state=xi,typeof Ae=="number"?xe.x=Ae:(me.command(uo(Ae)&&Ae.length>0&&Ae.length<=4,"invalid constant for attribute "+Ke,ue.commandStr),fi.forEach(function(Dr,An){An=0,'invalid offset for attribute "'+Ke+'"',ue.commandStr);var Ct=Fe.stride|0;me.command(Ct>=0&&Ct<256,'invalid stride for attribute "'+Ke+'", must be integer betweeen [0, 255]',ue.commandStr);var fr=Fe.size|0;me.command(!("size"in Fe)||fr>0&&fr<=4,'invalid size for attribute "'+Ke+'", must be 1,2,3,4',ue.commandStr);var Ur=!!Fe.normalized,Vr=0;"type"in Fe&&(me.commandParameter(Fe.type,ou,"invalid type for attribute "+Ke,ue.commandStr),Vr=ou[Fe.type]);var sn=Fe.divisor|0;me.optional(function(){"divisor"in Fe&&(me.command(sn===0||br,'cannot specify divisor for attribute "'+Ke+'", instancing not supported',ue.commandStr),me.command(sn>=0,'invalid divisor for attribute "'+Ke+'"',ue.commandStr));var Dr=ue.commandStr,An=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(Fe).forEach(function(cn){me.command(An.indexOf(cn)>=0,'unknown parameter "'+cn+'" for attribute pointer "'+Ke+'" (valid parameters are '+An+")",Dr)})}),xe.buffer=Ze,xe.state=Xn,xe.size=fr,xe.normalized=Ur,xe.type=Vr||Ze.dtype,xe.offset=ct,xe.stride=Ct,xe.divisor=sn}}Lt[Ke]=Ao(function(Dr,An){var cn=Dr.attribCache;if(nt in cn)return cn[nt];var xn={isStream:!1};return Object.keys(xe).forEach(function(bn){xn[bn]=xe[bn]}),xe.buffer&&(xn.buffer=Dr.link(xe.buffer),xn.type=xn.type||xn.buffer+".dtype"),cn[nt]=xn,xn})}),Object.keys(lt).forEach(function(Ke){var Fe=lt[Ke];function nt(xe,Ze){var Ae=xe.invoke(Ze,Fe),ct=xe.shared,Ct=xe.constants,fr=ct.isBufferArgs,Ur=ct.buffer;me.optional(function(){xe.assert(Ze,Ae+"&&(typeof "+Ae+'==="object"||typeof '+Ae+'==="function")&&('+fr+"("+Ae+")||"+Ur+".getBuffer("+Ae+")||"+Ur+".getBuffer("+Ae+".buffer)||"+fr+"("+Ae+'.buffer)||("constant" in '+Ae+"&&(typeof "+Ae+'.constant==="number"||'+ct.isArrayLike+"("+Ae+".constant))))",'invalid dynamic attribute "'+Ke+'"')});var Vr={isStream:Ze.def(!1)},sn=new ut;sn.state=Xn,Object.keys(sn).forEach(function(xn){Vr[xn]=Ze.def(""+sn[xn])});var Dr=Vr.buffer,An=Vr.type;Ze("if(",fr,"(",Ae,")){",Vr.isStream,"=true;",Dr,"=",Ur,".createStream(",Ef,",",Ae,");",An,"=",Dr,".dtype;","}else{",Dr,"=",Ur,".getBuffer(",Ae,");","if(",Dr,"){",An,"=",Dr,".dtype;",'}else if("constant" in ',Ae,"){",Vr.state,"=",xi,";","if(typeof "+Ae+'.constant === "number"){',Vr[fi[0]],"=",Ae,".constant;",fi.slice(1).map(function(xn){return Vr[xn]}).join("="),"=0;","}else{",fi.map(function(xn,bn){return Vr[xn]+"="+Ae+".constant.length>"+bn+"?"+Ae+".constant["+bn+"]:0;"}).join(""),"}}else{","if(",fr,"(",Ae,".buffer)){",Dr,"=",Ur,".createStream(",Ef,",",Ae,".buffer);","}else{",Dr,"=",Ur,".getBuffer(",Ae,".buffer);","}",An,'="type" in ',Ae,"?",Ct.glTypes,"[",Ae,".type]:",Dr,".dtype;",Vr.normalized,"=!!",Ae,".normalized;");function cn(xn){Ze(Vr[xn],"=",Ae,".",xn,"|0;")}return cn("size"),cn("offset"),cn("stride"),cn("divisor"),Ze("}}"),Ze.exit("if(",Vr.isStream,"){",Ur,".destroyStream(",Dr,");","}"),Vr}Lt[Ke]=Ys(Fe,nt)}),Lt}function Ha(Se){var ue=Se.static,Ge=Se.dynamic,lt={};return Object.keys(ue).forEach(function(Lt){var Ke=ue[Lt];lt[Lt]=Ao(function(Fe,nt){return typeof Ke=="number"||typeof Ke=="boolean"?""+Ke:Fe.link(Ke)})}),Object.keys(Ge).forEach(function(Lt){var Ke=Ge[Lt];lt[Lt]=Ys(Ke,function(Fe,nt){return Fe.invoke(nt,Ke)})}),lt}function as(Se,ue,Ge,lt,Lt){var Ke=Se.static,Fe=Se.dynamic;me.optional(function(){var cn=[Ru,Zl,Xu,nu,go,bf,gc,Wc,Hc,yc].concat(Un);function xn(bn){Object.keys(bn).forEach(function(dn){me.command(cn.indexOf(dn)>=0,'unknown parameter "'+dn+'"',Lt.commandStr)})}xn(Ke),xn(Fe)});var nt=ui(Se,ue),xe=en(Se,Lt),Ze=ni(Se,xe,Lt),Ae=Ga(Se,Lt),ct=no(Se,Lt),Ct=Ni(Se,Lt,nt);function fr(cn){var xn=Ze[cn];xn&&(ct[cn]=xn)}fr(mo),fr(Sn(Gc));var Ur=Object.keys(ct).length>0,Vr={framebuffer:xe,draw:Ae,shader:Ct,state:ct,dirty:Ur,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Vr.profile=jr(Se,Lt),Vr.uniforms=Zi(Ge,Lt),Vr.drawVAO=Vr.scopeVAO=Ae.vao,!Vr.drawVAO&&Ct.program&&!nt&&Be.angle_instanced_arrays&&Ae.static.elements){var sn=!0,Dr=Ct.program.attributes.map(function(cn){var xn=ue.static[cn];return sn=sn&&!!xn,xn});if(sn&&Dr.length>0){var An=xr.getVAO(xr.createVAO({attributes:Dr,elements:Ae.static.elements}));Vr.drawVAO=new va(null,null,null,function(cn,xn){return cn.link(An)}),Vr.useVAO=!0}}return nt?Vr.useVAO=!0:Vr.attributes=ss(ue,Lt),Vr.context=Ha(lt,Lt),Vr}function wo(Se,ue,Ge){var lt=Se.shared,Lt=lt.context,Ke=Se.scope();Object.keys(Ge).forEach(function(Fe){ue.save(Lt,"."+Fe);var nt=Ge[Fe],xe=nt.append(Se,ue);Array.isArray(xe)?Ke(Lt,".",Fe,"=[",xe.join(),"];"):Ke(Lt,".",Fe,"=",xe,";")}),ue(Ke)}function Wo(Se,ue,Ge,lt){var Lt=Se.shared,Ke=Lt.gl,Fe=Lt.framebuffer,nt;Br&&(nt=ue.def(Lt.extensions,".webgl_draw_buffers"));var xe=Se.constants,Ze=xe.drawBuffer,Ae=xe.backBuffer,ct;Ge?ct=Ge.append(Se,ue):ct=ue.def(Fe,".next"),lt||ue("if(",ct,"!==",Fe,".cur){"),ue("if(",ct,"){",Ke,".bindFramebuffer(",Xp,",",ct,".framebuffer);"),Br&&ue(nt,".drawBuffersWEBGL(",Ze,"[",ct,".colorAttachments.length]);"),ue("}else{",Ke,".bindFramebuffer(",Xp,",null);"),Br&&ue(nt,".drawBuffersWEBGL(",Ae,");"),ue("}",Fe,".cur=",ct,";"),lt||ue("}")}function Xo(Se,ue,Ge){var lt=Se.shared,Lt=lt.gl,Ke=Se.current,Fe=Se.next,nt=lt.current,xe=lt.next,Ze=Se.cond(nt,".dirty");Un.forEach(function(Ae){var ct=Sn(Ae);if(!(ct in Ge.state)){var Ct,fr;if(ct in Fe){Ct=Fe[ct],fr=Ke[ct];var Ur=He(or[ct].length,function(sn){return Ze.def(Ct,"[",sn,"]")});Ze(Se.cond(Ur.map(function(sn,Dr){return sn+"!=="+fr+"["+Dr+"]"}).join("||")).then(Lt,".",ir[ct],"(",Ur,");",Ur.map(function(sn,Dr){return fr+"["+Dr+"]="+sn}).join(";"),";"))}else{Ct=Ze.def(xe,".",ct);var Vr=Se.cond(Ct,"!==",nt,".",ct);Ze(Vr),ct in tr?Vr(Se.cond(Ct).then(Lt,".enable(",tr[ct],");").else(Lt,".disable(",tr[ct],");"),nt,".",ct,"=",Ct,";"):Vr(Lt,".",ir[ct],"(",Ct,");",nt,".",ct,"=",Ct,";")}}}),Object.keys(Ge.state).length===0&&Ze(nt,".dirty=false;"),ue(Ze)}function bs(Se,ue,Ge,lt){var Lt=Se.shared,Ke=Se.current,Fe=Lt.current,nt=Lt.gl;sp(Object.keys(Ge)).forEach(function(xe){var Ze=Ge[xe];if(!(lt&&!lt(Ze))){var Ae=Ze.append(Se,ue);if(tr[xe]){var ct=tr[xe];Gl(Ze)?Ae?ue(nt,".enable(",ct,");"):ue(nt,".disable(",ct,");"):ue(Se.cond(Ae).then(nt,".enable(",ct,");").else(nt,".disable(",ct,");")),ue(Fe,".",xe,"=",Ae,";")}else if(uo(Ae)){var Ct=Ke[xe];ue(nt,".",ir[xe],"(",Ae,");",Ae.map(function(fr,Ur){return Ct+"["+Ur+"]="+fr}).join(";"),";")}else ue(nt,".",ir[xe],"(",Ae,");",Fe,".",xe,"=",Ae,";")}})}function io(Se,ue){br&&(Se.instancing=ue.def(Se.shared.extensions,".angle_instanced_arrays"))}function Si(Se,ue,Ge,lt,Lt){var Ke=Se.shared,Fe=Se.stats,nt=Ke.current,xe=Ke.timer,Ze=Ge.profile;function Ae(){var cn=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0;return cn||typeof performance=="undefined"?"Date.now()":"performance.now()"}var ct,Ct;function fr(cn){ct=ue.def(),cn(ct,"=",Ae(),";"),typeof Lt=="string"?cn(Fe,".count+=",Lt,";"):cn(Fe,".count++;"),_r&&(lt?(Ct=ue.def(),cn(Ct,"=",xe,".getNumPendingQueries();")):cn(xe,".beginQuery(",Fe,");"))}function Ur(cn){cn(Fe,".cpuTime+=",Ae(),"-",ct,";"),_r&&(lt?cn(xe,".pushScopeStats(",Ct,",",xe,".getNumPendingQueries(),",Fe,");"):cn(xe,".endQuery();"))}function Vr(cn){var xn=ue.def(nt,".profile");ue(nt,".profile=",cn,";"),ue.exit(nt,".profile=",xn,";")}var sn;if(Ze){if(Gl(Ze)){Ze.enable?(fr(ue),Ur(ue.exit),Vr("true")):Vr("false");return}sn=Ze.append(Se,ue),Vr(sn)}else sn=ue.def(nt,".profile");var Dr=Se.block();fr(Dr),ue("if(",sn,"){",Dr,"}");var An=Se.block();Ur(An),ue.exit("if(",sn,"){",An,"}")}function Yo(Se,ue,Ge,lt,Lt){var Ke=Se.shared;function Fe(xe){switch(xe){case qf:case Ih:case Qf:return 2;case jl:case _c:case Sf:return 3;case Sl:case Oh:case Kc:return 4;default:return 1}}function nt(xe,Ze,Ae){var ct=Ke.gl,Ct=ue.def(xe,".location"),fr=ue.def(Ke.attributes,"[",Ct,"]"),Ur=Ae.state,Vr=Ae.buffer,sn=[Ae.x,Ae.y,Ae.z,Ae.w],Dr=["buffer","normalized","offset","stride"];function An(){ue("if(!",fr,".buffer){",ct,".enableVertexAttribArray(",Ct,");}");var xn=Ae.type,bn;if(Ae.size?bn=ue.def(Ae.size,"||",Ze):bn=Ze,ue("if(",fr,".type!==",xn,"||",fr,".size!==",bn,"||",Dr.map(function(Jn){return fr+"."+Jn+"!=="+Ae[Jn]}).join("||"),"){",ct,".bindBuffer(",Ef,",",Vr,".buffer);",ct,".vertexAttribPointer(",[Ct,bn,xn,Ae.normalized,Ae.stride,Ae.offset],");",fr,".type=",xn,";",fr,".size=",bn,";",Dr.map(function(Jn){return fr+"."+Jn+"="+Ae[Jn]+";"}).join(""),"}"),br){var dn=Ae.divisor;ue("if(",fr,".divisor!==",dn,"){",Se.instancing,".vertexAttribDivisorANGLE(",[Ct,dn],");",fr,".divisor=",dn,";}")}}function cn(){ue("if(",fr,".buffer){",ct,".disableVertexAttribArray(",Ct,");",fr,".buffer=null;","}if(",fi.map(function(xn,bn){return fr+"."+xn+"!=="+sn[bn]}).join("||"),"){",ct,".vertexAttrib4f(",Ct,",",sn,");",fi.map(function(xn,bn){return fr+"."+xn+"="+sn[bn]+";"}).join(""),"}")}Ur===Xn?An():Ur===xi?cn():(ue("if(",Ur,"===",Xn,"){"),An(),ue("}else{"),cn(),ue("}"))}lt.forEach(function(xe){var Ze=xe.name,Ae=Ge.attributes[Ze],ct;if(Ae){if(!Lt(Ae))return;ct=Ae.append(Se,ue)}else{if(!Lt(Yp))return;var Ct=Se.scopeAttrib(Ze);me.optional(function(){Se.assert(ue,Ct+".state","missing attribute "+Ze)}),ct={},Object.keys(new ut).forEach(function(fr){ct[fr]=ue.def(Ct,".",fr)})}nt(Se.link(xe),Fe(xe.info.type),ct)})}function ra(Se,ue,Ge,lt,Lt,Ke){for(var Fe=Se.shared,nt=Fe.gl,xe,Ze=0;Ze1){for(var ls=[],Ia=[],pa=0;pa=0","missing vertex count")})):(dn=Jn.def(Fe,".",gc),me.optional(function(){Se.assert(Jn,dn+">=0","missing vertex count")})),dn}var Ae=xe();function ct(bn){var dn=nt[bn];return dn?dn.contextDep&<.contextDynamic||dn.propDep?dn.append(Se,Ge):dn.append(Se,ue):ue.def(Fe,".",bn)}var Ct=ct(go),fr=ct(bf),Ur=Ze();if(typeof Ur=="number"){if(Ur===0)return}else Ge("if(",Ur,"){"),Ge.exit("}");var Vr,sn;br&&(Vr=ct(Wc),sn=Se.instancing);var Dr=Ae+".type",An=nt.elements&&Gl(nt.elements)&&!nt.vaoActive;function cn(){function bn(){Ge(sn,".drawElementsInstancedANGLE(",[Ct,Ur,Dr,fr+"<<(("+Dr+"-"+ii+")>>1)",Vr],");")}function dn(){Ge(sn,".drawArraysInstancedANGLE(",[Ct,fr,Ur,Vr],");")}Ae&&Ae!=="null"?An?bn():(Ge("if(",Ae,"){"),bn(),Ge("}else{"),dn(),Ge("}")):dn()}function xn(){function bn(){Ge(Ke+".drawElements("+[Ct,Ur,Dr,fr+"<<(("+Dr+"-"+ii+")>>1)"]+");")}function dn(){Ge(Ke+".drawArrays("+[Ct,fr,Ur]+");")}Ae&&Ae!=="null"?An?bn():(Ge("if(",Ae,"){"),bn(),Ge("}else{"),dn(),Ge("}")):dn()}br&&(typeof Vr!="number"||Vr>=0)?typeof Vr=="string"?(Ge("if(",Vr,">0){"),cn(),Ge("}else if(",Vr,"<0){"),xn(),Ge("}")):cn():xn()}function oi(Se,ue,Ge,lt,Lt){var Ke=Gn(),Fe=Ke.proc("body",Lt);return me.optional(function(){Ke.commandStr=ue.commandStr,Ke.command=Ke.link(ue.commandStr)}),br&&(Ke.instancing=Fe.def(Ke.shared.extensions,".angle_instanced_arrays")),Se(Ke,Fe,Ge,lt),Ke.compile().body}function zi(Se,ue,Ge,lt){io(Se,ue),Ge.useVAO?Ge.drawVAO?ue(Se.shared.vao,".setVAO(",Ge.drawVAO.append(Se,ue),");"):ue(Se.shared.vao,".setVAO(",Se.shared.vao,".targetVAO);"):(ue(Se.shared.vao,".setVAO(null);"),Yo(Se,ue,Ge,lt.attributes,function(){return!0})),ra(Se,ue,Ge,lt.uniforms,function(){return!0},!1),us(Se,ue,ue,Ge)}function ua(Se,ue){var Ge=Se.proc("draw",1);io(Se,Ge),wo(Se,Ge,ue.context),Wo(Se,Ge,ue.framebuffer),Xo(Se,Ge,ue),bs(Se,Ge,ue.state),Si(Se,Ge,ue,!1,!0);var lt=ue.shader.progVar.append(Se,Ge);if(Ge(Se.shared.gl,".useProgram(",lt,".program);"),ue.shader.program)zi(Se,Ge,ue,ue.shader.program);else{Ge(Se.shared.vao,".setVAO(null);");var Lt=Se.global.def("{}"),Ke=Ge.def(lt,".id"),Fe=Ge.def(Lt,"[",Ke,"]");Ge(Se.cond(Fe).then(Fe,".call(this,a0);").else(Fe,"=",Lt,"[",Ke,"]=",Se.link(function(nt){return oi(zi,Se,ue,nt,1)}),"(",lt,");",Fe,".call(this,a0);"))}Object.keys(ue.state).length>0&&Ge(Se.shared.current,".dirty=true;"),Se.shared.vao&&Ge(Se.shared.vao,".setVAO(null);")}function To(Se,ue,Ge,lt){Se.batchId="a1",io(Se,ue);function Lt(){return!0}Yo(Se,ue,Ge,lt.attributes,Lt),ra(Se,ue,Ge,lt.uniforms,Lt,!1),us(Se,ue,ue,Ge)}function wl(Se,ue,Ge,lt){io(Se,ue);var Lt=Ge.contextDep,Ke=ue.def(),Fe="a0",nt="a1",xe=ue.def();Se.shared.props=xe,Se.batchId=Ke;var Ze=Se.scope(),Ae=Se.scope();ue(Ze.entry,"for(",Ke,"=0;",Ke,"<",nt,";++",Ke,"){",xe,"=",Fe,"[",Ke,"];",Ae,"}",Ze.exit);function ct(Dr){return Dr.contextDep&&Lt||Dr.propDep}function Ct(Dr){return!ct(Dr)}if(Ge.needsContext&&wo(Se,Ae,Ge.context),Ge.needsFramebuffer&&Wo(Se,Ae,Ge.framebuffer),bs(Se,Ae,Ge.state,ct),Ge.profile&&ct(Ge.profile)&&Si(Se,Ae,Ge,!1,!0),lt)Ge.useVAO?Ge.drawVAO?ct(Ge.drawVAO)?Ae(Se.shared.vao,".setVAO(",Ge.drawVAO.append(Se,Ae),");"):Ze(Se.shared.vao,".setVAO(",Ge.drawVAO.append(Se,Ze),");"):Ze(Se.shared.vao,".setVAO(",Se.shared.vao,".targetVAO);"):(Ze(Se.shared.vao,".setVAO(null);"),Yo(Se,Ze,Ge,lt.attributes,Ct),Yo(Se,Ae,Ge,lt.attributes,ct)),ra(Se,Ze,Ge,lt.uniforms,Ct,!1),ra(Se,Ae,Ge,lt.uniforms,ct,!0),us(Se,Ze,Ae,Ge);else{var fr=Se.global.def("{}"),Ur=Ge.shader.progVar.append(Se,Ae),Vr=Ae.def(Ur,".id"),sn=Ae.def(fr,"[",Vr,"]");Ae(Se.shared.gl,".useProgram(",Ur,".program);","if(!",sn,"){",sn,"=",fr,"[",Vr,"]=",Se.link(function(Dr){return oi(To,Se,Ge,Dr,2)}),"(",Ur,");}",sn,".call(this,a0[",Ke,"],",Ke,");")}}function Te(Se,ue){var Ge=Se.proc("batch",2);Se.batchId="0",io(Se,Ge);var lt=!1,Lt=!0;Object.keys(ue.context).forEach(function(fr){lt=lt||ue.context[fr].propDep}),lt||(wo(Se,Ge,ue.context),Lt=!1);var Ke=ue.framebuffer,Fe=!1;Ke?(Ke.propDep?lt=Fe=!0:Ke.contextDep&<&&(Fe=!0),Fe||Wo(Se,Ge,Ke)):Wo(Se,Ge,null),ue.state.viewport&&ue.state.viewport.propDep&&(lt=!0);function nt(fr){return fr.contextDep&<||fr.propDep}Xo(Se,Ge,ue),bs(Se,Ge,ue.state,function(fr){return!nt(fr)}),(!ue.profile||!nt(ue.profile))&&Si(Se,Ge,ue,!1,"a1"),ue.contextDep=lt,ue.needsContext=Lt,ue.needsFramebuffer=Fe;var xe=ue.shader.progVar;if(xe.contextDep&<||xe.propDep)wl(Se,Ge,ue,null);else{var Ze=xe.append(Se,Ge);if(Ge(Se.shared.gl,".useProgram(",Ze,".program);"),ue.shader.program)wl(Se,Ge,ue,ue.shader.program);else{Ge(Se.shared.vao,".setVAO(null);");var Ae=Se.global.def("{}"),ct=Ge.def(Ze,".id"),Ct=Ge.def(Ae,"[",ct,"]");Ge(Se.cond(Ct).then(Ct,".call(this,a0,a1);").else(Ct,"=",Ae,"[",ct,"]=",Se.link(function(fr){return oi(wl,Se,ue,fr,2)}),"(",Ze,");",Ct,".call(this,a0,a1);"))}}Object.keys(ue.state).length>0&&Ge(Se.shared.current,".dirty=true;"),Se.shared.vao&&Ge(Se.shared.vao,".setVAO(null);")}function Ut(Se,ue){var Ge=Se.proc("scope",3);Se.batchId="a2";var lt=Se.shared,Lt=lt.current;wo(Se,Ge,ue.context),ue.framebuffer&&ue.framebuffer.append(Se,Ge),sp(Object.keys(ue.state)).forEach(function(Fe){var nt=ue.state[Fe],xe=nt.append(Se,Ge);uo(xe)?xe.forEach(function(Ze,Ae){Ge.set(Se.next[Fe],"["+Ae+"]",Ze)}):Ge.set(lt.next,"."+Fe,xe)}),Si(Se,Ge,ue,!0,!0),[nu,bf,gc,Wc,go].forEach(function(Fe){var nt=ue.draw[Fe];!nt||Ge.set(lt.draw,"."+Fe,""+nt.append(Se,Ge))}),Object.keys(ue.uniforms).forEach(function(Fe){var nt=ue.uniforms[Fe].append(Se,Ge);Array.isArray(nt)&&(nt="["+nt.join()+"]"),Ge.set(lt.uniforms,"["+ge.id(Fe)+"]",nt)}),Object.keys(ue.attributes).forEach(function(Fe){var nt=ue.attributes[Fe].append(Se,Ge),xe=Se.scopeAttrib(Fe);Object.keys(new ut).forEach(function(Ze){Ge.set(xe,"."+Ze,nt[Ze])})}),ue.scopeVAO&&Ge.set(lt.vao,".targetVAO",ue.scopeVAO.append(Se,Ge));function Ke(Fe){var nt=ue.shader[Fe];nt&&Ge.set(lt.shader,"."+Fe,nt.append(Se,Ge))}Ke(Zl),Ke(Xu),Object.keys(ue.state).length>0&&(Ge(Lt,".dirty=true;"),Ge.exit(Lt,".dirty=true;")),Ge("a1(",Se.shared.context,",a0,",Se.batchId,");")}function St(Se){if(!(typeof Se!="object"||uo(Se))){for(var ue=Object.keys(Se),Ge=0;Ge=0;--oi){var zi=Jr[oi];zi&&zi(_r,null,0)}Be.flush(),xr&&xr.update()}function ui(){!en&&Jr.length>0&&(en=Di.next(ni))}function Ni(){en&&(Di.cancel(ni),en=null)}function Ga(oi){oi.preventDefault(),sr=!0,Ni(),Ei.forEach(function(zi){zi()})}function no(oi){Be.getError(),sr=!1,kt.restore(),zr.restore(),br.restore(),Un.restore(),tr.restore(),ir.restore(),cr.restore(),xr&&xr.restore(),Sn.procs.refresh(),ui(),Gn.forEach(function(zi){zi()})}var Zi=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0;!Zi&&Hr&&(Hr.addEventListener(wf,Ga,!1),Hr.addEventListener(Sa,no,!1));function ss(){Jr.length=0,Ni(),!Zi&&Hr&&(Hr.removeEventListener(wf,Ga),Hr.removeEventListener(Sa,no)),zr.clear(),ir.clear(),tr.clear(),cr.clear(),Un.clear(),Br.clear(),br.clear(),xr&&xr.clear(),jr.forEach(function(oi){oi()})}function Ha(oi){me(!!oi,"invalid args to regl({...})"),me.type(oi,"object","invalid args to regl({...})");function zi(Ke){var Fe=m({},Ke);delete Fe.uniforms,delete Fe.attributes,delete Fe.context,delete Fe.vao,"stencil"in Fe&&Fe.stencil.op&&(Fe.stencil.opBack=Fe.stencil.opFront=Fe.stencil.op,delete Fe.stencil.op);function nt(xe){if(xe in Fe){var Ze=Fe[xe];delete Fe[xe],Object.keys(Ze).forEach(function(Ae){Fe[xe+"."+Ae]=Ze[Ae]})}}return nt("blend"),nt("depth"),nt("cull"),nt("stencil"),nt("polygonOffset"),nt("scissor"),nt("sample"),"vao"in Ke&&(Fe.vao=Ke.vao),Fe}function ua(Ke,Fe){var nt={},xe={};return Object.keys(Ke).forEach(function(Ze){var Ae=Ke[Ze];if(fn.isDynamic(Ae)){xe[Ze]=fn.unbox(Ae,Ze);return}else if(Fe&&Array.isArray(Ae)){for(var ct=0;ct0)return Se.call(this,lt(Ke|0),Ke|0)}else if(Array.isArray(Ke)){if(Ke.length)return Se.call(this,Ke,Ke.length)}else return Hi.call(this,Ke)}return m(Lt,{stats:St,destroy:function(){mn.destroy()}})}var as=ir.setFBO=Ha({framebuffer:fn.define.call(null,ih,"framebuffer")});function wo(oi,zi){var ua=0;Sn.procs.poll();var To=zi.color;To&&(Be.clearColor(+To[0]||0,+To[1]||0,+To[2]||0,+To[3]||0),ua|=Kp),"depth"in zi&&(Be.clearDepth(+zi.depth),ua|=Af),"stencil"in zi&&(Be.clearStencil(zi.stencil|0),ua|=lp),me(!!ua,"called regl.clear with no buffer specified"),Be.clear(ua)}function Wo(oi){if(me(typeof oi=="object"&&oi,"regl.clear() takes an object as input"),"framebuffer"in oi)if(oi.framebuffer&&oi.framebuffer_reglType==="framebufferCube")for(var zi=0;zi<6;++zi)as(m({framebuffer:oi.framebuffer.faces[zi]},oi),wo);else as(oi,wo);else wo(null,oi)}function Xo(oi){me.type(oi,"function","regl.frame() callback must be a function"),Jr.push(oi);function zi(){var ua=cp(Jr,oi);me(ua>=0,"cannot cancel a frame twice");function To(){var wl=cp(Jr,To);Jr[wl]=Jr[Jr.length-1],Jr.length-=1,Jr.length<=0&&Ni()}Jr[ua]=To}return ui(),{cancel:zi}}function bs(){var oi=Sr.viewport,zi=Sr.scissor_box;oi[0]=oi[1]=zi[0]=zi[1]=0,_r.viewportWidth=_r.framebufferWidth=_r.drawingBufferWidth=oi[2]=zi[2]=Be.drawingBufferWidth,_r.viewportHeight=_r.framebufferHeight=_r.drawingBufferHeight=oi[3]=zi[3]=Be.drawingBufferHeight}function io(){_r.tick+=1,_r.time=Yo(),bs(),Sn.procs.poll()}function Si(){Un.refresh(),bs(),Sn.procs.refresh(),xr&&xr.update()}function Yo(){return(to()-Tr)/1e3}Si();function ra(oi,zi){me.type(zi,"function","listener callback must be a function");var ua;switch(oi){case"frame":return Xo(zi);case"lost":ua=Ei;break;case"restore":ua=Gn;break;case"destroy":ua=jr;break;default:me.raise("invalid event, must be one of frame,lost,restore,destroy")}return ua.push(zi),{cancel:function(){for(var To=0;To=0},read:Xr,destroy:ss,_gl:Be,_refresh:Si,poll:function(){io(),xr&&xr.update()},now:Yo,stats:hr});return ge.onDone(null,us),us}return kd})},77412:function(It){function $(U,ae){for(var re=-1,m=U==null?0:U.length;++re-1}It.exports=re},1196:function(It){function $(U,ae,re){for(var m=-1,ve=U==null?0:U.length;++m=ae?U:ae)),U}It.exports=$},85990:function(It,$,U){var ae=U(46384),re=U(77412),m=U(34865),ve=U(44037),Z=U(63886),le=U(64626),fe=U(278),Le=U(18805),J=U(1911),Xe=U(58234),et=U(46904),Ue=U(64160),gt=U(43824),rr=U(29148),xt=U(38517),Yt=U(1469),Et=U(44144),at=U(56688),it=U(13218),Zt=U(72928),Y=U(3674),$t=U(81704),ft=1,Je=2,At=4,Qe="[object Arguments]",Qt="[object Array]",Er="[object Boolean]",Nr="[object Date]",tn="[object Error]",A="[object Function]",Ce="[object GeneratorFunction]",De="[object Map]",wt="[object Number]",mt="[object Object]",Bt="[object RegExp]",Kt="[object Set]",Cr="[object String]",ei="[object Symbol]",vn="[object WeakMap]",di="[object ArrayBuffer]",Wn="[object DataView]",si="[object Float32Array]",vi="[object Float64Array]",qn="[object Int8Array]",mi="[object Int16Array]",aa="[object Int32Array]",Wi="[object Uint8Array]",Oi="[object Uint8ClampedArray]",Ki="[object Uint16Array]",oa="[object Uint32Array]",Mi={};Mi[Qe]=Mi[Qt]=Mi[di]=Mi[Wn]=Mi[Er]=Mi[Nr]=Mi[si]=Mi[vi]=Mi[qn]=Mi[mi]=Mi[aa]=Mi[De]=Mi[wt]=Mi[mt]=Mi[Bt]=Mi[Kt]=Mi[Cr]=Mi[ei]=Mi[Wi]=Mi[Oi]=Mi[Ki]=Mi[oa]=!0,Mi[tn]=Mi[A]=Mi[vn]=!1;function da($n,wi,ji,$i,zo,me){var Dn,Za=wi&ft,hs=wi&Je,Nt=wi&At;if(ji&&(Dn=zo?ji($n,$i,zo,me):ji($n)),Dn!==void 0)return Dn;if(!it($n))return $n;var nr=Yt($n);if(nr){if(Dn=gt($n),!Za)return fe($n,Dn)}else{var Ar=Ue($n),rn=Ar==A||Ar==Ce;if(Et($n))return le($n,Za);if(Ar==mt||Ar==Qe||rn&&!zo){if(Dn=hs||rn?{}:xt($n),!Za)return hs?J($n,Z(Dn,$n)):Le($n,ve(Dn,$n))}else{if(!Mi[Ar])return zo?$n:{};Dn=rr($n,Ar,Za)}}me||(me=new ae);var wn=me.get($n);if(wn)return wn;me.set($n,Dn),Zt($n)?$n.forEach(function(ti){Dn.add(da(ti,wi,ji,ti,$n,me))}):at($n)&&$n.forEach(function(ti,fn){Dn.set(fn,da(ti,wi,ji,fn,$n,me))});var Fn=Nt?hs?et:Xe:hs?$t:Y,gi=nr?void 0:Fn($n);return re(gi||$n,function(ti,fn){gi&&(fn=ti,ti=$n[fn]),m(Dn,fn,da(ti,wi,ji,fn,$n,me))}),Dn}It.exports=da},41848:function(It){function $(U,ae,re,m){for(var ve=U.length,Z=re+(m?1:-1);m?Z--:++Z=fe){var at=Xe?null:Z(J);if(at)return le(at);xt=!1,gt=ve,Et=new ae}else Et=Xe?[]:Yt;e:for(;++Ue(p=1))return p;for(;ub?u=y:p=y,y=.5*(p-u)+u}return y},le.prototype.solve=function(t,o){return this.sampleCurveY(this.solveCurveX(t,o))};var fe=Le;function Le(t,o){this.x=t,this.y=o}Le.prototype={clone:function(){return new Le(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,o){return this.clone()._rotateAround(t,o)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var o=t.x-this.x,u=t.y-this.y;return o*o+u*u},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,o){return Math.atan2(this.x*o-this.y*t,this.x*t+this.y*o)},_matMult:function(t){var o=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=o,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var o=Math.cos(t),u=Math.sin(t),p=u*this.x+o*this.y;return this.x=o*this.x-u*this.y,this.y=p,this},_rotateAround:function(t,o){var u=Math.cos(t),p=Math.sin(t),y=o.y+p*(this.x-o.x)+u*(this.y-o.y);return this.x=o.x+u*(this.x-o.x)-p*(this.y-o.y),this.y=y,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Le.convert=function(t){return t instanceof Le?t:Array.isArray(t)?new Le(t[0],t[1]):t};var J=typeof self!="undefined"?self:{},Xe=Math.pow(2,53)-1;function et(t,o,u,p){var y=new Z(t,o,u,p);return function(b){return y.solve(b)}}var Ue=et(.25,.1,.25,1);function gt(t,o,u){return Math.min(u,Math.max(o,t))}function rr(t,o,u){var p=u-o,y=((t-o)%p+p)%p+o;return y===o?u:y}function xt(t){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,y=o;p>o/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function it(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function Zt(t,o){t.forEach(function(u){o[u]&&(o[u]=o[u].bind(o))})}function Y(t,o){return t.indexOf(o,t.length-o.length)!==-1}function $t(t,o,u){var p={};for(var y in t)p[y]=o.call(u||this,t[y],y,t);return p}function ft(t,o,u){var p={};for(var y in t)o.call(u||this,t[y],y,t)&&(p[y]=t[y]);return p}function Je(t){return Array.isArray(t)?t.map(Je):typeof t=="object"&&t?$t(t,Je):t}var At={};function Qe(t){At[t]||(typeof console!="undefined"&&console.warn(t),At[t]=!0)}function Qt(t,o,u){return(u.y-t.y)*(o.x-t.x)>(o.y-t.y)*(u.x-t.x)}function Er(t){for(var o=0,u=0,p=t.length,y=p-1,b=void 0,S=void 0;u@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(p,y,b,S){var I=b||S;return o[y]=!I||I.toLowerCase(),""}),o["max-age"]){var u=parseInt(o["max-age"],10);isNaN(u)?delete o["max-age"]:o["max-age"]=u}return o}var A=null;function Ce(t){if(A==null){var o=t.navigator?t.navigator.userAgent:null;A=!!t.safari||!(!o||!(/\b(iPad|iPhone|iPod)\b/.test(o)||o.match("Safari")&&!o.match("Chrome")))}return A}function De(t){try{var o=J[t];return o.setItem("_mapbox_test_",1),o.removeItem("_mapbox_test_"),!0}catch(u){return!1}}var wt,mt,Bt,Kt,Cr=J.performance&&J.performance.now?J.performance.now.bind(J.performance):Date.now.bind(Date),ei=J.requestAnimationFrame||J.mozRequestAnimationFrame||J.webkitRequestAnimationFrame||J.msRequestAnimationFrame,vn=J.cancelAnimationFrame||J.mozCancelAnimationFrame||J.webkitCancelAnimationFrame||J.msCancelAnimationFrame,di={now:Cr,frame:function(t){var o=ei(t);return{cancel:function(){return vn(o)}}},getImageData:function(t,o){o===void 0&&(o=0);var u=J.document.createElement("canvas"),p=u.getContext("2d");if(!p)throw new Error("failed to create canvas 2d context");return u.width=t.width,u.height=t.height,p.drawImage(t,0,0,t.width,t.height),p.getImageData(-o,-o,t.width+2*o,t.height+2*o)},resolveURL:function(t){return wt||(wt=J.document.createElement("a")),wt.href=t,wt.href},hardwareConcurrency:J.navigator&&J.navigator.hardwareConcurrency||4,get devicePixelRatio(){return J.devicePixelRatio},get prefersReducedMotion(){return!!J.matchMedia&&(mt==null&&(mt=J.matchMedia("(prefers-reduced-motion: reduce)")),mt.matches)}},Wn={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},si={supported:!1,testSupport:function(t){!vi&&Kt&&(qn?mi(t):Bt=t)}},vi=!1,qn=!1;function mi(t){var o=t.createTexture();t.bindTexture(t.TEXTURE_2D,o);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,Kt),t.isContextLost())return;si.supported=!0}catch(u){}t.deleteTexture(o),vi=!0}J.document&&((Kt=J.document.createElement("img")).onload=function(){Bt&&mi(Bt),Bt=null,qn=!0},Kt.onerror=function(){vi=!0,Bt=null},Kt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var aa="01",Wi=function(t,o){this._transformRequestFn=t,this._customAccessToken=o,this._createSkuToken()};function Oi(t){return t.indexOf("mapbox:")===0}Wi.prototype._createSkuToken=function(){var t=function(){for(var o="",u=0;u<10;u++)o+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",aa,o].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},Wi.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Wi.prototype.transformRequest=function(t,o){return this._transformRequestFn&&this._transformRequestFn(t,o)||{url:t}},Wi.prototype.normalizeStyleURL=function(t,o){if(!Oi(t))return t;var u=da(t);return u.path="/styles/v1"+u.path,this._makeAPIURL(u,this._customAccessToken||o)},Wi.prototype.normalizeGlyphsURL=function(t,o){if(!Oi(t))return t;var u=da(t);return u.path="/fonts/v1"+u.path,this._makeAPIURL(u,this._customAccessToken||o)},Wi.prototype.normalizeSourceURL=function(t,o){if(!Oi(t))return t;var u=da(t);return u.path="/v4/"+u.authority+".json",u.params.push("secure"),this._makeAPIURL(u,this._customAccessToken||o)},Wi.prototype.normalizeSpriteURL=function(t,o,u,p){var y=da(t);return Oi(t)?(y.path="/styles/v1"+y.path+"/sprite"+o+u,this._makeAPIURL(y,this._customAccessToken||p)):(y.path+=""+o+u,$n(y))},Wi.prototype.normalizeTileURL=function(t,o){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!Oi(t))return t;var u=da(t);u.path=u.path.replace(/(\.(png|jpg)\d*)(?=$)/,(di.devicePixelRatio>=2||o===512?"@2x":"")+(si.supported?".webp":"$1")),u.path=u.path.replace(/^.+\/v4\//,"/"),u.path="/v4"+u.path;var p=this._customAccessToken||function(y){for(var b=0,S=y;b=0&&t.params.splice(y,1)}if(p.path!=="/"&&(t.path=""+p.path+t.path),!Wn.REQUIRE_ACCESS_TOKEN)return $n(t);if(!(o=o||Wn.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+u);if(o[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+u);return t.params=t.params.filter(function(b){return b.indexOf("access_token")===-1}),t.params.push("access_token="+o),$n(t)};var Ki=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function oa(t){return Ki.test(t)}var Mi=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function da(t){var o=t.match(Mi);if(!o)throw new Error("Unable to parse URL object");return{protocol:o[1],authority:o[2],path:o[3]||"/",params:o[4]?o[4].split("&"):[]}}function $n(t){var o=t.params.length?"?"+t.params.join("&"):"";return t.protocol+"://"+t.authority+t.path+o}function wi(t){if(!t)return null;var o=t.split(".");if(!o||o.length!==3)return null;try{return JSON.parse(decodeURIComponent(J.atob(o[1]).split("").map(function(u){return"%"+("00"+u.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(u){return null}}var ji=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};ji.prototype.getStorageKey=function(t){var o,u=wi(Wn.ACCESS_TOKEN);return o=u&&u.u?J.btoa(encodeURIComponent(u.u).replace(/%([0-9A-F]{2})/g,function(p,y){return String.fromCharCode(Number("0x"+y))})):Wn.ACCESS_TOKEN||"",t?"mapbox.eventData."+t+":"+o:"mapbox.eventData:"+o},ji.prototype.fetchEventData=function(){var t=De("localStorage"),o=this.getStorageKey(),u=this.getStorageKey("uuid");if(t)try{var p=J.localStorage.getItem(o);p&&(this.eventData=JSON.parse(p));var y=J.localStorage.getItem(u);y&&(this.anonId=y)}catch(b){Qe("Unable to read from LocalStorage")}},ji.prototype.saveEventData=function(){var t=De("localStorage"),o=this.getStorageKey(),u=this.getStorageKey("uuid");if(t)try{J.localStorage.setItem(u,this.anonId),Object.keys(this.eventData).length>=1&&J.localStorage.setItem(o,JSON.stringify(this.eventData))}catch(p){Qe("Unable to write to LocalStorage")}},ji.prototype.processRequests=function(t){},ji.prototype.postEvent=function(t,o,u,p){var y=this;if(Wn.EVENTS_URL){var b=da(Wn.EVENTS_URL);b.params.push("access_token="+(p||Wn.ACCESS_TOKEN||""));var S={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.2",skuId:aa,userId:this.anonId},I=o?xt(S,o):S,D={url:$n(b),headers:{"Content-Type":"text/plain"},body:JSON.stringify([I])};this.pendingRequest=xa(D,function(z){y.pendingRequest=null,u(z),y.saveEventData(),y.processRequests(p)})}},ji.prototype.queueRequest=function(t,o){this.queue.push(t),this.processRequests(o)};var $i,zo,me=function(t){function o(){t.call(this,"map.load"),this.success={},this.skuToken=""}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.postMapLoadEvent=function(u,p,y,b){this.skuToken=y,(Wn.EVENTS_URL&&b||Wn.ACCESS_TOKEN&&Array.isArray(u)&&u.some(function(S){return Oi(S)||oa(S)}))&&this.queueRequest({id:p,timestamp:Date.now()},b)},o.prototype.processRequests=function(u){var p=this;if(!this.pendingRequest&&this.queue.length!==0){var y=this.queue.shift(),b=y.id,S=y.timestamp;b&&this.success[b]||(this.anonId||this.fetchEventData(),it(this.anonId)||(this.anonId=at()),this.postEvent(S,{skuToken:this.skuToken},function(I){I||b&&(p.success[b]=!0)},u))}},o}(ji),Dn=new(function(t){function o(u){t.call(this,"appUserTurnstile"),this._customAccessToken=u}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.postTurnstileEvent=function(u,p){Wn.EVENTS_URL&&Wn.ACCESS_TOKEN&&Array.isArray(u)&&u.some(function(y){return Oi(y)||oa(y)})&&this.queueRequest(Date.now(),p)},o.prototype.processRequests=function(u){var p=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var y=wi(Wn.ACCESS_TOKEN),b=y?y.u:Wn.ACCESS_TOKEN,S=b!==this.eventData.tokenU;it(this.anonId)||(this.anonId=at(),S=!0);var I=this.queue.shift();if(this.eventData.lastSuccess){var D=new Date(this.eventData.lastSuccess),z=new Date(I),V=(I-this.eventData.lastSuccess)/864e5;S=S||V>=1||V<-1||D.getDate()!==z.getDate()}else S=!0;if(!S)return this.processRequests();this.postEvent(I,{"enabled.telemetry":!1},function(W){W||(p.eventData.lastSuccess=I,p.eventData.tokenU=b)},u)}},o}(ji)),Za=Dn.postTurnstileEvent.bind(Dn),hs=new me,Nt=hs.postMapLoadEvent.bind(hs),nr=500,Ar=50;function rn(){J.caches&&!$i&&($i=J.caches.open("mapbox-tiles"))}function wn(t){var o=t.indexOf("?");return o<0?t:t.slice(0,o)}var Fn,gi=1/0;function ti(){return Fn==null&&(Fn=J.OffscreenCanvas&&new J.OffscreenCanvas(1,1).getContext("2d")&&typeof J.createImageBitmap=="function"),Fn}var fn={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(fn);var Di=function(t){function o(u,p,y){p===401&&oa(y)&&(u+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),t.call(this,u),this.status=p,this.url=y,this.name=this.constructor.name,this.message=u}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},o}(Error),Ri=Nr()?function(){return self.worker&&self.worker.referrer}:function(){return(J.location.protocol==="blob:"?J.parent:J).location.href},to,Es,Ko=function(t,o){if(!(/^file:/.test(u=t.url)||/^file:/.test(Ri())&&!/^\w+:/.test(u))){if(J.fetch&&J.Request&&J.AbortController&&J.Request.prototype.hasOwnProperty("signal"))return function(p,y){var b,S=new J.AbortController,I=new J.Request(p.url,{method:p.method||"GET",body:p.body,credentials:p.credentials,headers:p.headers,referrer:Ri(),signal:S.signal}),D=!1,z=!1,V=(b=I.url).indexOf("sku=")>0&&oa(b);p.type==="json"&&I.headers.set("Accept","application/json");var W=function(se,Me,Oe){if(!z){if(se&&se.message!=="SecurityError"&&Qe(se),Me&&Oe)return ee(Me);var Ye=Date.now();J.fetch(I).then(function(ze){if(ze.ok){var st=V?ze.clone():null;return ee(ze,st,Ye)}return y(new Di(ze.statusText,ze.status,p.url))}).catch(function(ze){ze.code!==20&&y(new Error(ze.message))})}},ee=function(se,Me,Oe){(p.type==="arrayBuffer"?se.arrayBuffer():p.type==="json"?se.json():se.text()).then(function(Ye){z||(Me&&Oe&&function(ze,st,Tt){if(rn(),$i){var Vt={status:st.status,statusText:st.statusText,headers:new J.Headers};st.headers.forEach(function(lr,Lr){return Vt.headers.set(Lr,lr)});var Xt=tn(st.headers.get("Cache-Control")||"");Xt["no-store"]||(Xt["max-age"]&&Vt.headers.set("Expires",new Date(Tt+1e3*Xt["max-age"]).toUTCString()),new Date(Vt.headers.get("Expires")).getTime()-Tt<42e4||function(lr,Lr){if(zo===void 0)try{new Response(new ReadableStream),zo=!0}catch($r){zo=!1}zo?Lr(lr.body):lr.blob().then(Lr)}(st,function(lr){var Lr=new J.Response(lr,Vt);rn(),$i&&$i.then(function($r){return $r.put(wn(ze.url),Lr)}).catch(function($r){return Qe($r.message)})}))}}(I,Me,Oe),D=!0,y(null,Ye,se.headers.get("Cache-Control"),se.headers.get("Expires")))}).catch(function(Ye){z||y(new Error(Ye.message))})};return V?function(se,Me){if(rn(),!$i)return Me(null);var Oe=wn(se.url);$i.then(function(Ye){Ye.match(Oe).then(function(ze){var st=function(Tt){if(!Tt)return!1;var Vt=new Date(Tt.headers.get("Expires")||0),Xt=tn(Tt.headers.get("Cache-Control")||"");return Vt>Date.now()&&!Xt["no-cache"]}(ze);Ye.delete(Oe),st&&Ye.put(Oe,ze.clone()),Me(null,ze,st)}).catch(Me)}).catch(Me)}(I,W):W(null,null),{cancel:function(){z=!0,D||S.abort()}}}(t,o);if(Nr()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,o,void 0,!0)}var u;return function(p,y){var b=new J.XMLHttpRequest;for(var S in b.open(p.method||"GET",p.url,!0),p.type==="arrayBuffer"&&(b.responseType="arraybuffer"),p.headers)b.setRequestHeader(S,p.headers[S]);return p.type==="json"&&(b.responseType="text",b.setRequestHeader("Accept","application/json")),b.withCredentials=p.credentials==="include",b.onerror=function(){y(new Error(b.statusText))},b.onload=function(){if((b.status>=200&&b.status<300||b.status===0)&&b.response!==null){var I=b.response;if(p.type==="json")try{I=JSON.parse(b.response)}catch(D){return y(D)}y(null,I,b.getResponseHeader("Cache-Control"),b.getResponseHeader("Expires"))}else y(new Di(b.statusText,b.status,p.url))},b.send(p.body),{cancel:function(){return b.abort()}}}(t,o)},Ba=function(t,o){return Ko(xt(t,{type:"arrayBuffer"}),o)},xa=function(t,o){return Ko(xt(t,{method:"POST"}),o)},H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";to=[],Es=0;var Q=function(t,o){if(si.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),Es>=Wn.MAX_PARALLEL_IMAGE_REQUESTS){var u={requestParameters:t,callback:o,cancelled:!1,cancel:function(){this.cancelled=!0}};return to.push(u),u}Es++;var p=!1,y=function(){if(!p)for(p=!0,Es--;to.length&&Es0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},rt.prototype.setEventedParent=function(t,o){return this._eventedParent=t,this._eventedParentData=o,this};var pe={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},ke=function(t,o,u,p){this.message=(t?t+": ":"")+u,p&&(this.identifier=p),o!=null&&o.__line__&&(this.line=o.__line__)};function vt(t){var o=t.value;return o?[new ke(t.key,o,"constants have been deprecated as of v8")]:[]}function pr(t){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,y=o;p":t.itemType.kind==="value"?"array":"array<"+o+">"}return t.kind}var ht=[pn,Ot,nn,Zr,Yr,Xi,_i,Pi(an),yi];function Pt(t,o){if(o.kind==="error")return null;if(t.kind==="array"){if(o.kind==="array"&&(o.N===0&&o.itemType.kind==="value"||!Pt(t.itemType,o.itemType))&&(typeof t.N!="number"||t.N===o.N))return null}else{if(t.kind===o.kind)return null;if(t.kind==="value"){for(var u=0,p=ht;u255?255:I}function y(I){return p(I[I.length-1]==="%"?parseFloat(I)/100*255:parseInt(I))}function b(I){return(D=I[I.length-1]==="%"?parseFloat(I)/100:parseFloat(I))<0?0:D>1?1:D;var D}function S(I,D,z){return z<0?z+=1:z>1&&(z-=1),6*z<1?I+(D-I)*z*6:2*z<1?D:3*z<2?I+(D-I)*(2/3-z)*6:I}try{o.parseCSSColor=function(I){var D,z=I.replace(/ /g,"").toLowerCase();if(z in u)return u[z].slice();if(z[0]==="#")return z.length===4?(D=parseInt(z.substr(1),16))>=0&&D<=4095?[(3840&D)>>4|(3840&D)>>8,240&D|(240&D)>>4,15&D|(15&D)<<4,1]:null:z.length===7&&(D=parseInt(z.substr(1),16))>=0&&D<=16777215?[(16711680&D)>>16,(65280&D)>>8,255&D,1]:null;var V=z.indexOf("("),W=z.indexOf(")");if(V!==-1&&W+1===z.length){var ee=z.substr(0,V),se=z.substr(V+1,W-(V+1)).split(","),Me=1;switch(ee){case"rgba":if(se.length!==4)return null;Me=b(se.pop());case"rgb":return se.length!==3?null:[y(se[0]),y(se[1]),y(se[2]),Me];case"hsla":if(se.length!==4)return null;Me=b(se.pop());case"hsl":if(se.length!==3)return null;var Oe=(parseFloat(se[0])%360+360)%360/360,Ye=b(se[1]),ze=b(se[2]),st=ze<=.5?ze*(Ye+1):ze+Ye-ze*Ye,Tt=2*ze-st;return[p(255*S(Tt,st,Oe+1/3)),p(255*S(Tt,st,Oe)),p(255*S(Tt,st,Oe-1/3)),Me];default:return null}}return null}}catch(I){}}).parseCSSColor,pi=function(t,o,u,p){p===void 0&&(p=1),this.r=t,this.g=o,this.b=u,this.a=p};pi.parse=function(t){if(t){if(t instanceof pi)return t;if(typeof t=="string"){var o=Ii(t);if(o)return new pi(o[0]/255*o[3],o[1]/255*o[3],o[2]/255*o[3],o[3])}}},pi.prototype.toString=function(){var t=this.toArray(),o=t[1],u=t[2],p=t[3];return"rgba("+Math.round(t[0])+","+Math.round(o)+","+Math.round(u)+","+p+")"},pi.prototype.toArray=function(){var t=this.a;return t===0?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},pi.black=new pi(0,0,0,1),pi.white=new pi(1,1,1,1),pi.transparent=new pi(0,0,0,0),pi.red=new pi(1,0,0,1);var wa=function(t,o,u){this.sensitivity=t?o?"variant":"case":o?"accent":"base",this.locale=u,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};wa.prototype.compare=function(t,o){return this.collator.compare(t,o)},wa.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $s=function(t,o,u,p,y){this.text=t,this.image=o,this.scale=u,this.fontStack=p,this.textColor=y},Ir=function(t){this.sections=t};Ir.fromString=function(t){return new Ir([new $s(t,null,null,null,null)])},Ir.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(t){return t.text.length!==0||t.image&&t.image.name.length!==0})},Ir.factory=function(t){return t instanceof Ir?t:Ir.fromString(t)},Ir.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(t){return t.text}).join("")},Ir.prototype.serialize=function(){for(var t=["format"],o=0,u=this.sections;o=0&&t<=255&&typeof o=="number"&&o>=0&&o<=255&&typeof u=="number"&&u>=0&&u<=255?p===void 0||typeof p=="number"&&p>=0&&p<=1?null:"Invalid rgba value ["+[t,o,u,p].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof p=="number"?[t,o,u,p]:[t,o,u]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function bo(t){if(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||t instanceof pi||t instanceof wa||t instanceof Ir||t instanceof wr)return!0;if(Array.isArray(t)){for(var o=0,u=t;o2){var I=t[1];if(typeof I!="string"||!(I in Ta)||I==="object")return o.error('The item type argument of "array" must be one of string, number, boolean',1);b=Ta[I],p++}else b=an;if(t.length>3){if(t[2]!==null&&(typeof t[2]!="number"||t[2]<0||t[2]!==Math.floor(t[2])))return o.error('The length argument to "array" must be a positive integer literal',2);S=t[2],p++}u=Pi(b,S)}else u=Ta[y];for(var D=[];p1)&&o.push(p)}}return o.concat(this.args.map(function(y){return y.serialize()}))};var Uo=function(t){this.type=Xi,this.sections=t};Uo.parse=function(t,o){if(t.length<2)return o.error("Expected at least one argument.");var u=t[1];if(!Array.isArray(u)&&typeof u=="object")return o.error("First argument must be an image or text section.");for(var p=[],y=!1,b=1;b<=t.length-1;++b){var S=t[b];if(y&&typeof S=="object"&&!Array.isArray(S)){y=!1;var I=null;if(S["font-scale"]&&!(I=o.parse(S["font-scale"],1,Ot)))return null;var D=null;if(S["text-font"]&&!(D=o.parse(S["text-font"],1,Pi(nn))))return null;var z=null;if(S["text-color"]&&!(z=o.parse(S["text-color"],1,Yr)))return null;var V=p[p.length-1];V.scale=I,V.font=D,V.textColor=z}else{var W=o.parse(t[b],1,an);if(!W)return null;var ee=W.type.kind;if(ee!=="string"&&ee!=="value"&&ee!=="null"&&ee!=="resolvedImage")return o.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");y=!0,p.push({content:W,scale:null,font:null,textColor:null})}}return new Uo(p)},Uo.prototype.evaluate=function(t){return new Ir(this.sections.map(function(o){var u=o.content.evaluate(t);return ne(u)===yi?new $s("",u,null,null,null):new $s(Fu(u),null,o.scale?o.scale.evaluate(t):null,o.font?o.font.evaluate(t).join(","):null,o.textColor?o.textColor.evaluate(t):null)}))},Uo.prototype.eachChild=function(t){for(var o=0,u=this.sections;o-1),u},$o.prototype.eachChild=function(t){t(this.input)},$o.prototype.outputDefined=function(){return!1},$o.prototype.serialize=function(){return["image",this.input.serialize()]};var xu={"to-boolean":Zr,"to-color":Yr,"to-number":Ot,"to-string":nn},Eo=function(t,o){this.type=t,this.args=o};Eo.parse=function(t,o){if(t.length<2)return o.error("Expected at least one argument.");var u=t[0];if((u==="to-boolean"||u==="to-string")&&t.length!==2)return o.error("Expected one argument.");for(var p=xu[u],y=[],b=1;b4?"Invalid rbga value "+JSON.stringify(o)+": expected an array containing either three or four numeric values.":Mt(o[0],o[1],o[2],o[3])))return new pi(o[0]/255,o[1]/255,o[2]/255,o[3])}throw new Ra(u||"Could not parse color from value '"+(typeof o=="string"?o:String(JSON.stringify(o)))+"'")}if(this.type.kind==="number"){for(var S=null,I=0,D=this.args;I=o[2]||t[1]<=o[1]||t[3]>=o[3])}function ll(t,o){var u=(180+t[0])/360,p=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,y=Math.pow(2,o.z);return[Math.round(u*y*8192),Math.round(p*y*8192)]}function os(t,o,u){return o[1]>t[1]!=u[1]>t[1]&&t[0]<(u[0]-o[0])*(t[1]-o[1])/(u[1]-o[1])+o[0]}function ie(t,o){for(var u,p,y,b,S,I,D,z=!1,V=0,W=o.length;V0&&I<0||S<0&&I>0}function Rt(t,o,u){for(var p=0,y=u;pu[2]){var y=.5*p,b=t[0]-u[0]>y?-p:u[0]-t[0]>y?p:0;b===0&&(b=t[0]-u[2]>y?-p:u[2]-t[0]>y?p:0),t[0]+=b}Ya(o,t)}function ja(t,o,u,p){for(var y=8192*Math.pow(2,p.z),b=[8192*p.x,8192*p.y],S=[],I=0,D=t;I=0)return!1;var u=!0;return t.eachChild(function(p){u&&!Lo(p,o)&&(u=!1)}),u}ps.parse=function(t,o){if(t.length!==2)return o.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(bo(t[1])){var u=t[1];if(u.type==="FeatureCollection")for(var p=0;po))throw new Ra("Input is not a number.");b=S-1}return 0}Qs.prototype.parse=function(t,o,u,p,y){return y===void 0&&(y={}),o?this.concat(o,u,p)._parse(t,y):this._parse(t,y)},Qs.prototype._parse=function(t,o){function u(z,V,W){return W==="assert"?new Qi(V,[z]):W==="coerce"?new Eo(V,[z]):z}if(t!==null&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"||(t=["literal",t]),Array.isArray(t)){if(t.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var p=t[0];if(typeof p!="string")return this.error("Expression name must be a string, but found "+typeof p+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var y=this.registry[p];if(y){var b=y.parse(t,this);if(!b)return null;if(this.expectedType){var S=this.expectedType,I=b.type;if(S.kind!=="string"&&S.kind!=="number"&&S.kind!=="boolean"&&S.kind!=="object"&&S.kind!=="array"||I.kind!=="value")if(S.kind!=="color"&&S.kind!=="formatted"&&S.kind!=="resolvedImage"||I.kind!=="value"&&I.kind!=="string"){if(this.checkSubtype(S,I))return null}else b=u(b,S,o.typeAnnotation||"coerce");else b=u(b,S,o.typeAnnotation||"assert")}if(!(b instanceof oo)&&b.type.kind!=="resolvedImage"&&function z(V){if(V instanceof Vo)return z(V.boundExpression);if(V instanceof so&&V.name==="error"||V instanceof jo||V instanceof ps)return!1;var W=V instanceof Eo||V instanceof Qi,ee=!0;return V.eachChild(function(se){ee=W?ee&&z(se):ee&&se instanceof oo}),!!ee&&Jo(V)&&Lo(V,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(b)){var D=new sa;try{b=new oo(b.type,b.evaluate(D))}catch(z){return this.error(z.message),null}}return b}return this.error('Unknown expression "'+p+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(t===void 0?"'undefined' value invalid. Use null instead.":typeof t=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof t+" instead.")},Qs.prototype.concat=function(t,o,u){var p=typeof t=="number"?this.path.concat(t):this.path,y=u?this.scope.concat(u):this.scope;return new Qs(this.registry,p,o||null,y,this.errors)},Qs.prototype.error=function(t){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];var p=""+this.key+o.map(function(y){return"["+y+"]"}).join("");this.errors.push(new vr(p,t))},Qs.prototype.checkSubtype=function(t,o){var u=Pt(t,o);return u&&this.error(u),u};var ds=function(t,o,u){this.type=t,this.input=o,this.labels=[],this.outputs=[];for(var p=0,y=u;p=S)return o.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',D);var V=o.parse(I,z,y);if(!V)return null;y=y||V.type,p.push([S,V])}return new ds(y,u,p)},ds.prototype.evaluate=function(t){var o=this.labels,u=this.outputs;if(o.length===1)return u[0].evaluate(t);var p=this.input.evaluate(t);if(p<=o[0])return u[0].evaluate(t);var y=o.length;return p>=o[y-1]?u[y-1].evaluate(t):u[ou(o,p)].evaluate(t)},ds.prototype.eachChild=function(t){t(this.input);for(var o=0,u=this.outputs;o0&&t.push(this.labels[o]),t.push(this.outputs[o].serialize());return t};var ko=Object.freeze({__proto__:null,number:ga,color:function(t,o,u){return new pi(ga(t.r,o.r,u),ga(t.g,o.g,u),ga(t.b,o.b,u),ga(t.a,o.a,u))},array:function(t,o,u){return t.map(function(p,y){return ga(p,o[y],u)})}}),Il=6/29*3*(6/29),vs=Math.PI/180,es=180/Math.PI;function of(t){return t>.008856451679035631?Math.pow(t,1/3):t/Il+4/29}function rc(t){return t>6/29?t*t*t:Il*(t-4/29)}function Cs(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function bu(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function cl(t){var o=bu(t.r),u=bu(t.g),p=bu(t.b),y=of((.4124564*o+.3575761*u+.1804375*p)/.95047),b=of((.2126729*o+.7151522*u+.072175*p)/1);return{l:116*b-16,a:500*(y-b),b:200*(b-of((.0193339*o+.119192*u+.9503041*p)/1.08883)),alpha:t.a}}function _(t){var o=(t.l+16)/116,u=isNaN(t.a)?o:o+t.a/500,p=isNaN(t.b)?o:o-t.b/200;return o=1*rc(o),u=.95047*rc(u),p=1.08883*rc(p),new pi(Cs(3.2404542*u-1.5371385*o-.4985314*p),Cs(-.969266*u+1.8760108*o+.041556*p),Cs(.0556434*u-.2040259*o+1.0572252*p),t.alpha)}function M(t,o,u){var p=o-t;return t+u*(p>180||p<-180?p-360*Math.round(p/360):p)}var F={forward:cl,reverse:_,interpolate:function(t,o,u){return{l:ga(t.l,o.l,u),a:ga(t.a,o.a,u),b:ga(t.b,o.b,u),alpha:ga(t.alpha,o.alpha,u)}}},R={forward:function(t){var o=cl(t),u=o.l,p=o.a,y=o.b,b=Math.atan2(y,p)*es;return{h:b<0?b+360:b,c:Math.sqrt(p*p+y*y),l:u,alpha:t.a}},reverse:function(t){var o=t.h*vs,u=t.c;return _({l:t.l,a:Math.cos(o)*u,b:Math.sin(o)*u,alpha:t.alpha})},interpolate:function(t,o,u){return{h:M(t.h,o.h,u),c:ga(t.c,o.c,u),l:ga(t.l,o.l,u),alpha:ga(t.alpha,o.alpha,u)}}},K=Object.freeze({__proto__:null,lab:F,hcl:R}),_e=function(t,o,u,p,y){this.type=t,this.operator=o,this.interpolation=u,this.input=p,this.labels=[],this.outputs=[];for(var b=0,S=y;b1}))return o.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);p={name:"cubic-bezier",controlPoints:I}}if(t.length-1<4)return o.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return o.error("Expected an even number of arguments.");if(!(y=o.parse(y,2,Ot)))return null;var D=[],z=null;u==="interpolate-hcl"||u==="interpolate-lab"?z=Yr:o.expectedType&&o.expectedType.kind!=="value"&&(z=o.expectedType);for(var V=0;V=W)return o.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',se);var Oe=o.parse(ee,Me,z);if(!Oe)return null;z=z||Oe.type,D.push([W,Oe])}return z.kind==="number"||z.kind==="color"||z.kind==="array"&&z.itemType.kind==="number"&&typeof z.N=="number"?new _e(z,u,p,y,D):o.error("Type "+bi(z)+" is not interpolatable.")},_e.prototype.evaluate=function(t){var o=this.labels,u=this.outputs;if(o.length===1)return u[0].evaluate(t);var p=this.input.evaluate(t);if(p<=o[0])return u[0].evaluate(t);var y=o.length;if(p>=o[y-1])return u[y-1].evaluate(t);var b=ou(o,p),S=_e.interpolationFactor(this.interpolation,p,o[b],o[b+1]),I=u[b].evaluate(t),D=u[b+1].evaluate(t);return this.operator==="interpolate"?ko[this.type.kind.toLowerCase()](I,D,S):this.operator==="interpolate-hcl"?R.reverse(R.interpolate(R.forward(I),R.forward(D),S)):F.reverse(F.interpolate(F.forward(I),F.forward(D),S))},_e.prototype.eachChild=function(t){t(this.input);for(var o=0,u=this.outputs;o=u.length)throw new Ra("Array index out of bounds: "+o+" > "+(u.length-1)+".");if(o!==Math.floor(o))throw new Ra("Array index must be an integer, but found "+o+" instead.");return u[o]},ur.prototype.eachChild=function(t){t(this.index),t(this.input)},ur.prototype.outputDefined=function(){return!1},ur.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var yr=function(t,o){this.type=Zr,this.needle=t,this.haystack=o};yr.parse=function(t,o){if(t.length!==3)return o.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var u=o.parse(t[1],1,an),p=o.parse(t[2],2,an);return u&&p?Aa(u.type,[Zr,nn,Ot,pn,an])?new yr(u,p):o.error("Expected first argument to be of type boolean, string, number or null, but found "+bi(u.type)+" instead"):null},yr.prototype.evaluate=function(t){var o=this.needle.evaluate(t),u=this.haystack.evaluate(t);if(!u)return!1;if(!qi(o,["boolean","string","number","null"]))throw new Ra("Expected first argument to be of type boolean, string, number or null, but found "+bi(ne(o))+" instead.");if(!qi(u,["string","array"]))throw new Ra("Expected second argument to be of type array or string, but found "+bi(ne(u))+" instead.");return u.indexOf(o)>=0},yr.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},yr.prototype.outputDefined=function(){return!0},yr.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var In=function(t,o,u){this.type=Ot,this.needle=t,this.haystack=o,this.fromIndex=u};In.parse=function(t,o){if(t.length<=2||t.length>=5)return o.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var u=o.parse(t[1],1,an),p=o.parse(t[2],2,an);if(!u||!p)return null;if(!Aa(u.type,[Zr,nn,Ot,pn,an]))return o.error("Expected first argument to be of type boolean, string, number or null, but found "+bi(u.type)+" instead");if(t.length===4){var y=o.parse(t[3],3,Ot);return y?new In(u,p,y):null}return new In(u,p)},In.prototype.evaluate=function(t){var o=this.needle.evaluate(t),u=this.haystack.evaluate(t);if(!qi(o,["boolean","string","number","null"]))throw new Ra("Expected first argument to be of type boolean, string, number or null, but found "+bi(ne(o))+" instead.");if(!qi(u,["string","array"]))throw new Ra("Expected second argument to be of type array or string, but found "+bi(ne(u))+" instead.");if(this.fromIndex){var p=this.fromIndex.evaluate(t);return u.indexOf(o,p)}return u.indexOf(o)},In.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},In.prototype.outputDefined=function(){return!1},In.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Bn=function(t,o,u,p,y,b){this.inputType=t,this.type=o,this.input=u,this.cases=p,this.outputs=y,this.otherwise=b};Bn.parse=function(t,o){if(t.length<5)return o.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return o.error("Expected an even number of arguments.");var u,p;o.expectedType&&o.expectedType.kind!=="value"&&(p=o.expectedType);for(var y={},b=[],S=2;SNumber.MAX_SAFE_INTEGER)return z.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof ee=="number"&&Math.floor(ee)!==ee)return z.error("Numeric branch labels must be integer values.");if(u){if(z.checkSubtype(u,ne(ee)))return null}else u=ne(ee);if(y[String(ee)]!==void 0)return z.error("Branch labels must be unique.");y[String(ee)]=b.length}var se=o.parse(D,S,p);if(!se)return null;p=p||se.type,b.push(se)}var Me=o.parse(t[1],1,an);if(!Me)return null;var Oe=o.parse(t[t.length-1],t.length-1,p);return Oe?Me.type.kind!=="value"&&o.concat(1).checkSubtype(u,Me.type)?null:new Bn(u,p,Me,y,b,Oe):null},Bn.prototype.evaluate=function(t){var o=this.input.evaluate(t);return(ne(o)===this.inputType&&this.outputs[this.cases[o]]||this.otherwise).evaluate(t)},Bn.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},Bn.prototype.outputDefined=function(){return this.outputs.every(function(t){return t.outputDefined()})&&this.otherwise.outputDefined()},Bn.prototype.serialize=function(){for(var t=this,o=["match",this.input.serialize()],u=[],p={},y=0,b=Object.keys(this.cases).sort();y=5)return o.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var u=o.parse(t[1],1,an),p=o.parse(t[2],2,Ot);if(!u||!p)return null;if(!Aa(u.type,[Pi(an),nn,an]))return o.error("Expected first argument to be of type array or string, but found "+bi(u.type)+" instead");if(t.length===4){var y=o.parse(t[3],3,Ot);return y?new Vi(u.type,u,p,y):null}return new Vi(u.type,u,p)},Vi.prototype.evaluate=function(t){var o=this.input.evaluate(t),u=this.beginIndex.evaluate(t);if(!qi(o,["string","array"]))throw new Ra("Expected first argument to be of type array or string, but found "+bi(ne(o))+" instead.");if(this.endIndex){var p=this.endIndex.evaluate(t);return o.slice(u,p)}return o.slice(u)},Vi.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},Vi.prototype.outputDefined=function(){return!1},Vi.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var As=Gi("==",function(t,o,u){return o===u},ba),Eu=Gi("!=",function(t,o,u){return o!==u},function(t,o,u,p){return!ba(0,o,u,p)}),fl=Gi("<",function(t,o,u){return o",function(t,o,u){return o>u},function(t,o,u,p){return p.compare(o,u)>0}),tl=Gi("<=",function(t,o,u){return o<=u},function(t,o,u,p){return p.compare(o,u)<=0}),Lc=Gi(">=",function(t,o,u){return o>=u},function(t,o,u,p){return p.compare(o,u)>=0}),Bu=function(t,o,u,p,y){this.type=nn,this.number=t,this.locale=o,this.currency=u,this.minFractionDigits=p,this.maxFractionDigits=y};Bu.parse=function(t,o){if(t.length!==3)return o.error("Expected two arguments.");var u=o.parse(t[1],1,Ot);if(!u)return null;var p=t[2];if(typeof p!="object"||Array.isArray(p))return o.error("NumberFormat options argument must be an object.");var y=null;if(p.locale&&!(y=o.parse(p.locale,1,nn)))return null;var b=null;if(p.currency&&!(b=o.parse(p.currency,1,nn)))return null;var S=null;if(p["min-fraction-digits"]&&!(S=o.parse(p["min-fraction-digits"],1,Ot)))return null;var I=null;return p["max-fraction-digits"]&&!(I=o.parse(p["max-fraction-digits"],1,Ot))?null:new Bu(u,y,b,S,I)},Bu.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Bu.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},Bu.prototype.outputDefined=function(){return!1},Bu.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var Nu=function(t){this.type=Ot,this.input=t};Nu.parse=function(t,o){if(t.length!==2)return o.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var u=o.parse(t[1],1);return u?u.type.kind!=="array"&&u.type.kind!=="string"&&u.type.kind!=="value"?o.error("Expected argument of type string or array, but found "+bi(u.type)+" instead."):new Nu(u):null},Nu.prototype.evaluate=function(t){var o=this.input.evaluate(t);if(typeof o=="string"||Array.isArray(o))return o.length;throw new Ra("Expected value to be of type string or array, but found "+bi(ne(o))+" instead.")},Nu.prototype.eachChild=function(t){t(this.input)},Nu.prototype.outputDefined=function(){return!1},Nu.prototype.serialize=function(){var t=["length"];return this.eachChild(function(o){t.push(o.serialize())}),t};var zu={"==":As,"!=":Eu,">":Rc,"<":fl,">=":Lc,"<=":tl,array:Qi,at:ur,boolean:Qi,case:Qn,coalesce:pt,collator:jo,format:Uo,image:$o,in:yr,"index-of":In,interpolate:_e,"interpolate-hcl":_e,"interpolate-lab":_e,length:Nu,let:dt,literal:oo,match:Bn,number:Qi,"number-format":Bu,object:Qi,slice:Vi,step:ds,string:Qi,"to-boolean":Eo,"to-color":Eo,"to-number":Eo,"to-string":Eo,var:Vo,within:ps};function uo(t,o){var u=o[0],p=o[1],y=o[2],b=o[3];u=u.evaluate(t),p=p.evaluate(t),y=y.evaluate(t);var S=b?b.evaluate(t):1,I=Mt(u,p,y,S);if(I)throw new Ra(I);return new pi(u/255*S,p/255*S,y/255*S,S)}function Bf(t,o){return t in o}function Nf(t,o){var u=o[t];return u===void 0?null:u}function ws(t){return{type:t}}function sf(t){return{result:"success",value:t}}function su(t){return{result:"error",value:t}}function Hs(t){return t["property-type"]==="data-driven"||t["property-type"]==="cross-faded-data-driven"}function uf(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Ol(t){return!!t.expression&&t.expression.interpolated}function ya(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":t===null?"null":typeof t}function nc(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Js(t){return t}function hl(t,o,u){return t!==void 0?t:o!==void 0?o:u!==void 0?u:void 0}function zf(t,o,u,p,y){return hl(typeof u===y?p[u]:void 0,t.default,o.default)}function ep(t,o,u){if(ya(u)!=="number")return hl(t.default,o.default);var p=t.stops.length;if(p===1||u<=t.stops[0][0])return t.stops[0][1];if(u>=t.stops[p-1][0])return t.stops[p-1][1];var y=ou(t.stops.map(function(b){return b[0]}),u);return t.stops[y][1]}function lf(t,o,u){var p=t.base!==void 0?t.base:1;if(ya(u)!=="number")return hl(t.default,o.default);var y=t.stops.length;if(y===1||u<=t.stops[0][0])return t.stops[0][1];if(u>=t.stops[y-1][0])return t.stops[y-1][1];var b=ou(t.stops.map(function(W){return W[0]}),u),S=function(W,ee,se,Me){var Oe=Me-se,Ye=W-se;return Oe===0?0:ee===1?Ye/Oe:(Math.pow(ee,Ye)-1)/(Math.pow(ee,Oe)-1)}(u,p,t.stops[b][0],t.stops[b+1][0]),I=t.stops[b][1],D=t.stops[b+1][1],z=ko[o.type]||Js;if(t.colorSpace&&t.colorSpace!=="rgb"){var V=K[t.colorSpace];z=function(W,ee){return V.reverse(V.interpolate(V.forward(W),V.forward(ee),S))}}return typeof I.evaluate=="function"?{evaluate:function(){for(var W=[],ee=arguments.length;ee--;)W[ee]=arguments[ee];var se=I.evaluate.apply(void 0,W),Me=D.evaluate.apply(void 0,W);if(se!==void 0&&Me!==void 0)return z(se,Me,S)}}:z(I,D,S)}function ic(t,o,u){return o.type==="color"?u=pi.parse(u):o.type==="formatted"?u=Ir.fromString(u.toString()):o.type==="resolvedImage"?u=wr.fromString(u.toString()):ya(u)===o.type||o.type==="enum"&&o.values[u]||(u=void 0),hl(u,t.default,o.default)}so.register(zu,{error:[{kind:"error"},[nn],function(t,o){throw new Ra(o[0].evaluate(t))}],typeof:[nn,[an],function(t,o){return bi(ne(o[0].evaluate(t)))}],"to-rgba":[Pi(Ot,4),[Yr],function(t,o){return o[0].evaluate(t).toArray()}],rgb:[Yr,[Ot,Ot,Ot],uo],rgba:[Yr,[Ot,Ot,Ot,Ot],uo],has:{type:Zr,overloads:[[[nn],function(t,o){return Bf(o[0].evaluate(t),t.properties())}],[[nn,_i],function(t,o){var u=o[1];return Bf(o[0].evaluate(t),u.evaluate(t))}]]},get:{type:an,overloads:[[[nn],function(t,o){return Nf(o[0].evaluate(t),t.properties())}],[[nn,_i],function(t,o){var u=o[1];return Nf(o[0].evaluate(t),u.evaluate(t))}]]},"feature-state":[an,[nn],function(t,o){return Nf(o[0].evaluate(t),t.featureState||{})}],properties:[_i,[],function(t){return t.properties()}],"geometry-type":[nn,[],function(t){return t.geometryType()}],id:[an,[],function(t){return t.id()}],zoom:[Ot,[],function(t){return t.globals.zoom}],"heatmap-density":[Ot,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Ot,[],function(t){return t.globals.lineProgress||0}],accumulated:[an,[],function(t){return t.globals.accumulated===void 0?null:t.globals.accumulated}],"+":[Ot,ws(Ot),function(t,o){for(var u=0,p=0,y=o;p":[Zr,[nn,an],function(t,o){var u=o[0],p=o[1],y=t.properties()[u.value],b=p.value;return typeof y==typeof b&&y>b}],"filter-id->":[Zr,[an],function(t,o){var u=o[0],p=t.id(),y=u.value;return typeof p==typeof y&&p>y}],"filter-<=":[Zr,[nn,an],function(t,o){var u=o[0],p=o[1],y=t.properties()[u.value],b=p.value;return typeof y==typeof b&&y<=b}],"filter-id-<=":[Zr,[an],function(t,o){var u=o[0],p=t.id(),y=u.value;return typeof p==typeof y&&p<=y}],"filter->=":[Zr,[nn,an],function(t,o){var u=o[0],p=o[1],y=t.properties()[u.value],b=p.value;return typeof y==typeof b&&y>=b}],"filter-id->=":[Zr,[an],function(t,o){var u=o[0],p=t.id(),y=u.value;return typeof p==typeof y&&p>=y}],"filter-has":[Zr,[an],function(t,o){return o[0].value in t.properties()}],"filter-has-id":[Zr,[],function(t){return t.id()!==null&&t.id()!==void 0}],"filter-type-in":[Zr,[Pi(nn)],function(t,o){return o[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[Zr,[Pi(an)],function(t,o){return o[0].value.indexOf(t.id())>=0}],"filter-in-small":[Zr,[nn,Pi(an)],function(t,o){var u=o[0];return o[1].value.indexOf(t.properties()[u.value])>=0}],"filter-in-large":[Zr,[nn,Pi(an)],function(t,o){var u=o[0],p=o[1];return function(y,b,S,I){for(;S<=I;){var D=S+I>>1;if(b[D]===y)return!0;b[D]>y?I=D-1:S=D+1}return!1}(t.properties()[u.value],p.value,0,p.value.length-1)}],all:{type:Zr,overloads:[[[Zr,Zr],function(t,o){var u=o[1];return o[0].evaluate(t)&&u.evaluate(t)}],[ws(Zr),function(t,o){for(var u=0,p=o;u0&&typeof t[0]=="string"&&t[0]in zu}function sc(t,o){var u=new Qs(zu,[],o?function(y){var b={color:Yr,string:nn,number:Ot,enum:nn,boolean:Zr,formatted:Xi,resolvedImage:yi};return y.type==="array"?Pi(b[y.value]||an,y.length):b[y.type]}(o):void 0),p=u.parse(t,void 0,void 0,void 0,o&&o.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?sf(new ac(p,o)):su(u.errors)}ac.prototype.evaluateWithoutErrorHandling=function(t,o,u,p,y,b){return this._evaluator.globals=t,this._evaluator.feature=o,this._evaluator.featureState=u,this._evaluator.canonical=p,this._evaluator.availableImages=y||null,this._evaluator.formattedSection=b,this.expression.evaluate(this._evaluator)},ac.prototype.evaluate=function(t,o,u,p,y,b){this._evaluator.globals=t,this._evaluator.feature=o||null,this._evaluator.featureState=u||null,this._evaluator.canonical=p,this._evaluator.availableImages=y||null,this._evaluator.formattedSection=b||null;try{var S=this.expression.evaluate(this._evaluator);if(S==null||typeof S=="number"&&S!=S)return this._defaultValue;if(this._enumValues&&!(S in this._enumValues))throw new Ra("Expected value to be one of "+Object.keys(this._enumValues).map(function(I){return JSON.stringify(I)}).join(", ")+", but found "+JSON.stringify(S)+" instead.");return S}catch(I){return this._warningHistory[I.message]||(this._warningHistory[I.message]=!0,typeof console!="undefined"&&console.warn(I.message)),this._defaultValue}};var uc=function(t,o){this.kind=t,this._styleExpression=o,this.isStateDependent=t!=="constant"&&!Ss(o.expression)};uc.prototype.evaluateWithoutErrorHandling=function(t,o,u,p,y,b){return this._styleExpression.evaluateWithoutErrorHandling(t,o,u,p,y,b)},uc.prototype.evaluate=function(t,o,u,p,y,b){return this._styleExpression.evaluate(t,o,u,p,y,b)};var Rl=function(t,o,u,p){this.kind=t,this.zoomStops=u,this._styleExpression=o,this.isStateDependent=t!=="camera"&&!Ss(o.expression),this.interpolationType=p};function Ll(t,o){if((t=sc(t,o)).result==="error")return t;var u=t.value.expression,p=Jo(u);if(!p&&!Hs(o))return su([new vr("","data expressions not supported")]);var y=Lo(u,["zoom"]);if(!y&&!uf(o))return su([new vr("","zoom expressions not supported")]);var b=function S(I){var D=null;if(I instanceof dt)D=S(I.result);else if(I instanceof pt)for(var z=0,V=I.args;zp.maximum?[new ke(o,u,u+" is greater than the maximum value "+p.maximum)]:[]}function Uf(t){var o,u,p,y=t.valueSpec,b=Ft(t.value.type),S={},I=b!=="categorical"&&t.value.property===void 0,D=!I,z=ya(t.value.stops)==="array"&&ya(t.value.stops[0])==="array"&&ya(t.value.stops[0][0])==="object",V=eu({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(se){if(b==="identity")return[new ke(se.key,se.value,'identity function may not have a "stops" property')];var Me=[],Oe=se.value;return Me=Me.concat(kc({key:se.key,value:Oe,valueSpec:se.valueSpec,style:se.style,styleSpec:se.styleSpec,arrayElementValidator:W})),ya(Oe)==="array"&&Oe.length===0&&Me.push(new ke(se.key,Oe,"array must have at least one stop")),Me},default:function(se){return kn({key:se.key,value:se.value,valueSpec:y,style:se.style,styleSpec:se.styleSpec})}}});return b==="identity"&&I&&V.push(new ke(t.key,t.value,'missing required property "property"')),b==="identity"||t.value.stops||V.push(new ke(t.key,t.value,'missing required property "stops"')),b==="exponential"&&t.valueSpec.expression&&!Ol(t.valueSpec)&&V.push(new ke(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(D&&!Hs(t.valueSpec)?V.push(new ke(t.key,t.value,"property functions not supported")):I&&!uf(t.valueSpec)&&V.push(new ke(t.key,t.value,"zoom functions not supported"))),b!=="categorical"&&!z||t.value.property!==void 0||V.push(new ke(t.key,t.value,'"property" property is required')),V;function W(se){var Me=[],Oe=se.value,Ye=se.key;if(ya(Oe)!=="array")return[new ke(Ye,Oe,"array expected, "+ya(Oe)+" found")];if(Oe.length!==2)return[new ke(Ye,Oe,"array length 2 expected, length "+Oe.length+" found")];if(z){if(ya(Oe[0])!=="object")return[new ke(Ye,Oe,"object expected, "+ya(Oe[0])+" found")];if(Oe[0].zoom===void 0)return[new ke(Ye,Oe,"object stop key must have zoom")];if(Oe[0].value===void 0)return[new ke(Ye,Oe,"object stop key must have value")];if(p&&p>Ft(Oe[0].zoom))return[new ke(Ye,Oe[0].zoom,"stop zoom values must appear in ascending order")];Ft(Oe[0].zoom)!==p&&(p=Ft(Oe[0].zoom),u=void 0,S={}),Me=Me.concat(eu({key:Ye+"[0]",value:Oe[0],valueSpec:{zoom:{}},style:se.style,styleSpec:se.styleSpec,objectElementValidators:{zoom:cf,value:ee}}))}else Me=Me.concat(ee({key:Ye+"[0]",value:Oe[0],valueSpec:{},style:se.style,styleSpec:se.styleSpec},Oe));return oc(zt(Oe[1]))?Me.concat([new ke(Ye+"[1]",Oe[1],"expressions are not allowed in function stops.")]):Me.concat(kn({key:Ye+"[1]",value:Oe[1],valueSpec:y,style:se.style,styleSpec:se.styleSpec}))}function ee(se,Me){var Oe=ya(se.value),Ye=Ft(se.value),ze=se.value!==null?se.value:Me;if(o){if(Oe!==o)return[new ke(se.key,ze,Oe+" stop domain type must match previous stop domain type "+o)]}else o=Oe;if(Oe!=="number"&&Oe!=="string"&&Oe!=="boolean")return[new ke(se.key,ze,"stop domain value must be a number, string, or boolean")];if(Oe!=="number"&&b!=="categorical"){var st="number expected, "+Oe+" found";return Hs(y)&&b===void 0&&(st+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ke(se.key,ze,st)]}return b!=="categorical"||Oe!=="number"||isFinite(Ye)&&Math.floor(Ye)===Ye?b!=="categorical"&&Oe==="number"&&u!==void 0&&Ye=2&&t[1]!=="$id"&&t[1]!=="$type";case"in":return t.length>=3&&(typeof t[1]!="string"||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return t.length!==3||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var o=0,u=t.slice(1);oo?1:0}function kl(t){if(!t)return!0;var o,u=t[0];return t.length<=1?u!=="any":u==="=="?Dl(t[1],t[2],"=="):u==="!="?vl(Dl(t[1],t[2],"==")):u==="<"||u===">"||u==="<="||u===">="?Dl(t[1],t[2],u):u==="any"?(o=t.slice(1),["any"].concat(o.map(kl))):u==="all"?["all"].concat(t.slice(1).map(kl)):u==="none"?["all"].concat(t.slice(1).map(kl).map(vl)):u==="in"?Zf(t[1],t.slice(2)):u==="!in"?vl(Zf(t[1],t.slice(2))):u==="has"?jf(t[1]):u==="!has"?vl(jf(t[1])):u!=="within"||t}function Dl(t,o,u){switch(t){case"$type":return["filter-type-"+u,o];case"$id":return["filter-id-"+u,o];default:return["filter-"+u,t,o]}}function Zf(t,o){if(o.length===0)return!1;switch(t){case"$type":return["filter-type-in",["literal",o]];case"$id":return["filter-id-in",["literal",o]];default:return o.length>200&&!o.some(function(u){return typeof u!=typeof o[0]})?["filter-in-large",t,["literal",o.sort(bh)]]:["filter-in-small",t,["literal",o]]}}function jf(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function vl(t){return["!",t]}function Vf(t){return rl(zt(t.value))?dl(pr({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function o(u){var p=u.value,y=u.key;if(ya(p)!=="array")return[new ke(y,p,"array expected, "+ya(p)+" found")];var b,S=u.styleSpec,I=[];if(p.length<1)return[new ke(y,p,"filter array must have at least 1 element")];switch(I=I.concat(lc({key:y+"[0]",value:p[0],valueSpec:S.filter_operator,style:u.style,styleSpec:u.styleSpec})),Ft(p[0])){case"<":case"<=":case">":case">=":p.length>=2&&Ft(p[1])==="$type"&&I.push(new ke(y,p,'"$type" cannot be use with operator "'+p[0]+'"'));case"==":case"!=":p.length!==3&&I.push(new ke(y,p,'filter array for operator "'+p[0]+'" must have 3 elements'));case"in":case"!in":p.length>=2&&(b=ya(p[1]))!=="string"&&I.push(new ke(y+"[1]",p[1],"string expected, "+b+" found"));for(var D=2;D=V[se+0]&&p>=V[se+1])?(S[ee]=!0,b.push(z[ee])):S[ee]=!1}}},Do.prototype._forEachCell=function(t,o,u,p,y,b,S,I){for(var D=this._convertToCellCoord(t),z=this._convertToCellCoord(o),V=this._convertToCellCoord(u),W=this._convertToCellCoord(p),ee=D;ee<=V;ee++)for(var se=z;se<=W;se++){var Me=this.d*se+ee;if((!I||I(this._convertFromCellCoord(ee),this._convertFromCellCoord(se),this._convertFromCellCoord(ee+1),this._convertFromCellCoord(se+1)))&&y.call(this,t,o,u,p,Me,b,S,I))return}},Do.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Do.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Do.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,o=3+this.cells.length+1+1,u=0,p=0;p=0)){var V=t[z];D[z]=ho[I].shallow.indexOf(z)>=0?V:uu(V,o)}t instanceof Error&&(D.message=t.message)}if(D.$name)throw new Error("$name property is reserved for worker serialization logic.");return I!=="Object"&&(D.$name=I),D}throw new Error("can't serialize object of type "+typeof t)}function na(t){if(t==null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||nl(t)||pc(t)||ArrayBuffer.isView(t)||t instanceof Fl)return t;if(Array.isArray(t))return t.map(na);if(typeof t=="object"){var o=t.$name||"Object",u=ho[o].klass;if(!u)throw new Error("can't deserialize unregistered class "+o);if(u.deserialize)return u.deserialize(t);for(var p=Object.create(u.prototype),y=0,b=Object.keys(t);y=0?I:na(I)}}return p}throw new Error("can't deserialize object of type "+typeof t)}var hf=function(){this.first=!0};hf.prototype.update=function(t,o){var u=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=u,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=u,!0):(this.lastFloorZoom>u?(this.lastIntegerZoom=u+1,this.lastIntegerZoomTime=o):this.lastFloorZoom=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}};function zc(t){for(var o=0,u=t;o=65097&&t<=65103)||Kr["CJK Compatibility Ideographs"](t)||Kr["CJK Compatibility"](t)||Kr["CJK Radicals Supplement"](t)||Kr["CJK Strokes"](t)||!(!Kr["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||t===12336)||Kr["CJK Unified Ideographs Extension A"](t)||Kr["CJK Unified Ideographs"](t)||Kr["Enclosed CJK Letters and Months"](t)||Kr["Hangul Compatibility Jamo"](t)||Kr["Hangul Jamo Extended-A"](t)||Kr["Hangul Jamo Extended-B"](t)||Kr["Hangul Jamo"](t)||Kr["Hangul Syllables"](t)||Kr.Hiragana(t)||Kr["Ideographic Description Characters"](t)||Kr.Kanbun(t)||Kr["Kangxi Radicals"](t)||Kr["Katakana Phonetic Extensions"](t)||Kr.Katakana(t)&&t!==12540||!(!Kr["Halfwidth and Fullwidth Forms"](t)||t===65288||t===65289||t===65293||t>=65306&&t<=65310||t===65339||t===65341||t===65343||t>=65371&&t<=65503||t===65507||t>=65512&&t<=65519)||!(!Kr["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||Kr["Unified Canadian Aboriginal Syllabics"](t)||Kr["Unified Canadian Aboriginal Syllabics Extended"](t)||Kr["Vertical Forms"](t)||Kr["Yijing Hexagram Symbols"](t)||Kr["Yi Syllables"](t)||Kr["Yi Radicals"](t))))}function gl(t){return!(pf(t)||function(o){return!!(Kr["Latin-1 Supplement"](o)&&(o===167||o===169||o===174||o===177||o===188||o===189||o===190||o===215||o===247)||Kr["General Punctuation"](o)&&(o===8214||o===8224||o===8225||o===8240||o===8241||o===8251||o===8252||o===8258||o===8263||o===8264||o===8265||o===8273)||Kr["Letterlike Symbols"](o)||Kr["Number Forms"](o)||Kr["Miscellaneous Technical"](o)&&(o>=8960&&o<=8967||o>=8972&&o<=8991||o>=8996&&o<=9e3||o===9003||o>=9085&&o<=9114||o>=9150&&o<=9165||o===9167||o>=9169&&o<=9179||o>=9186&&o<=9215)||Kr["Control Pictures"](o)&&o!==9251||Kr["Optical Character Recognition"](o)||Kr["Enclosed Alphanumerics"](o)||Kr["Geometric Shapes"](o)||Kr["Miscellaneous Symbols"](o)&&!(o>=9754&&o<=9759)||Kr["Miscellaneous Symbols and Arrows"](o)&&(o>=11026&&o<=11055||o>=11088&&o<=11097||o>=11192&&o<=11243)||Kr["CJK Symbols and Punctuation"](o)||Kr.Katakana(o)||Kr["Private Use Area"](o)||Kr["CJK Compatibility Forms"](o)||Kr["Small Form Variants"](o)||Kr["Halfwidth and Fullwidth Forms"](o)||o===8734||o===8756||o===8757||o>=9984&&o<=10087||o>=10102&&o<=10131||o===65532||o===65533)}(t))}function Ea(t){return t>=1424&&t<=2303||Kr["Arabic Presentation Forms-A"](t)||Kr["Arabic Presentation Forms-B"](t)}function ms(t,o){return!(!o&&Ea(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||Kr.Khmer(t))}function Uc(t){for(var o=0,u=t;o-1&&(ks="error"),Cu&&Cu(t)};function Bl(){Gf.fire(new Pe("pluginStateChange",{pluginStatus:ks,pluginURL:Vu}))}var Gf=new rt,Hf=function(){return ks},Ds=function(){if(ks!=="deferred"||!Vu)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ks="loading",Bl(),Vu&&Ba({url:Vu},function(t){t?Zc(t):(ks="loaded",Bl())})},Fs={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return ks==="loaded"||Fs.applyArabicShaping!=null},isLoading:function(){return ks==="loading"},setState:function(t){ks=t.pluginStatus,Vu=t.pluginURL},isParsed:function(){return Fs.applyArabicShaping!=null&&Fs.processBidirectionalText!=null&&Fs.processStyledBidirectionalText!=null},getPluginURL:function(){return Vu}},Fi=function(t,o){this.zoom=t,o?(this.now=o.now,this.fadeDuration=o.fadeDuration,this.zoomHistory=o.zoomHistory,this.transition=o.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new hf,this.transition={})};Fi.prototype.isSupportedScript=function(t){return function(o,u){for(var p=0,y=o;pthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:o+(1-o)*u}:{fromScale:.5,toScale:1,t:1-(1-u)*o}};var Au=function(t,o){this.property=t,this.value=o,this.expression=function(u,p){if(nc(u))return new pl(u,p);if(oc(u)){var y=Ll(u,p);if(y.result==="error")throw new Error(y.value.map(function(S){return S.key+": "+S.message}).join(", "));return y.value}var b=u;return typeof u=="string"&&p.type==="color"&&(b=pi.parse(u)),{kind:"constant",evaluate:function(){return b}}}(o===void 0?t.specification.default:o,t.specification)};Au.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Au.prototype.possiblyEvaluate=function(t,o,u){return this.property.possiblyEvaluate(this,t,o,u)};var wu=function(t){this.property=t,this.value=new Au(t,void 0)};wu.prototype.transitioned=function(t,o){return new Gu(this.property,this.value,o,xt({},t.transition,this.transition),t.now)},wu.prototype.untransitioned=function(){return new Gu(this.property,this.value,null,{},0)};var rs=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};rs.prototype.getValue=function(t){return Je(this._values[t].value.value)},rs.prototype.setValue=function(t,o){this._values.hasOwnProperty(t)||(this._values[t]=new wu(this._values[t].property)),this._values[t].value=new Au(this._values[t].property,o===null?void 0:Je(o))},rs.prototype.getTransition=function(t){return Je(this._values[t].transition)},rs.prototype.setTransition=function(t,o){this._values.hasOwnProperty(t)||(this._values[t]=new wu(this._values[t].property)),this._values[t].transition=Je(o)||void 0},rs.prototype.serialize=function(){for(var t={},o=0,u=Object.keys(this._values);othis.end)return this.prior=null,y;if(this.value.isDataDriven())return this.prior=null,y;if(p=1)return 1;var D=I*I,z=D*I;return 4*(I<.5?z:3*(I-D)+z-.75)}(S))}return y};var Tu=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};Tu.prototype.possiblyEvaluate=function(t,o,u){for(var p=new Mu(this._properties),y=0,b=Object.keys(this._values);yb.zoomHistory.lastIntegerZoom?{from:u,to:p}:{from:y,to:p}},o.prototype.interpolate=function(u){return u},o}(Cn),ys=function(t){this.specification=t};ys.prototype.possiblyEvaluate=function(t,o,u,p){if(t.value!==void 0){if(t.expression.kind==="constant"){var y=t.expression.evaluate(o,null,{},u,p);return this._calculate(y,y,y,o)}return this._calculate(t.expression.evaluate(new Fi(Math.floor(o.zoom-1),o)),t.expression.evaluate(new Fi(Math.floor(o.zoom),o)),t.expression.evaluate(new Fi(Math.floor(o.zoom+1),o)),o)}},ys.prototype._calculate=function(t,o,u,p){return p.zoom>p.zoomHistory.lastIntegerZoom?{from:t,to:o}:{from:u,to:o}},ys.prototype.interpolate=function(t){return t};var lu=function(t){this.specification=t};lu.prototype.possiblyEvaluate=function(t,o,u,p){return!!t.expression.evaluate(o,null,{},u,p)},lu.prototype.interpolate=function(){return!1};var ns=function(t){for(var o in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var u=t[o];u.specification.overridable&&this.overridableProperties.push(o);var p=this.defaultPropertyValues[o]=new Au(u,void 0),y=this.defaultTransitionablePropertyValues[o]=new wu(u);this.defaultTransitioningPropertyValues[o]=y.untransitioned(),this.defaultPossiblyEvaluatedValues[o]=p.possiblyEvaluate({})}};yn("DataDrivenProperty",Cn),yn("DataConstantProperty",Rn),yn("CrossFadedDataDrivenProperty",df),yn("CrossFadedProperty",ys),yn("ColorRampProperty",lu);var Go=function(t){function o(u,p){if(t.call(this),this.id=u.id,this.type=u.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},u.type!=="custom"&&(this.metadata=(u=u).metadata,this.minzoom=u.minzoom,this.maxzoom=u.maxzoom,u.type!=="background"&&(this.source=u.source,this.sourceLayer=u["source-layer"],this.filter=u.filter),p.layout&&(this._unevaluatedLayout=new Xs(p.layout)),p.paint)){for(var y in this._transitionablePaint=new rs(p.paint),u.paint)this.setPaintProperty(y,u.paint[y],{validate:!1});for(var b in u.layout)this.setLayoutProperty(b,u.layout[b],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Mu(p.paint)}}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},o.prototype.getLayoutProperty=function(u){return u==="visibility"?this.visibility:this._unevaluatedLayout.getValue(u)},o.prototype.setLayoutProperty=function(u,p,y){y===void 0&&(y={}),p!=null&&this._validate(ju,"layers."+this.id+".layout."+u,u,p,y)||(u!=="visibility"?this._unevaluatedLayout.setValue(u,p):this.visibility=p)},o.prototype.getPaintProperty=function(u){return Y(u,"-transition")?this._transitionablePaint.getTransition(u.slice(0,-"-transition".length)):this._transitionablePaint.getValue(u)},o.prototype.setPaintProperty=function(u,p,y){if(y===void 0&&(y={}),p!=null&&this._validate(lo,"layers."+this.id+".paint."+u,u,p,y))return!1;if(Y(u,"-transition"))return this._transitionablePaint.setTransition(u.slice(0,-"-transition".length),p||void 0),!1;var b=this._transitionablePaint._values[u],S=b.property.specification["property-type"]==="cross-faded-data-driven",I=b.value.isDataDriven(),D=b.value;this._transitionablePaint.setValue(u,p),this._handleSpecialPaintPropertyUpdate(u);var z=this._transitionablePaint._values[u].value;return z.isDataDriven()||I||S||this._handleOverridablePaintPropertyUpdate(u,D,z)},o.prototype._handleSpecialPaintPropertyUpdate=function(u){},o.prototype._handleOverridablePaintPropertyUpdate=function(u,p,y){return!1},o.prototype.isHidden=function(u){return!!(this.minzoom&&u=this.maxzoom)||this.visibility==="none"},o.prototype.updateTransitions=function(u){this._transitioningPaint=this._transitionablePaint.transitioned(u,this._transitioningPaint)},o.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},o.prototype.recalculate=function(u,p){u.getCrossfadeParameters&&(this._crossfadeParameters=u.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(u,void 0,p)),this.paint=this._transitioningPaint.possiblyEvaluate(u,void 0,p)},o.prototype.serialize=function(){var u={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(u.layout=u.layout||{},u.layout.visibility=this.visibility),ft(u,function(p,y){return!(p===void 0||y==="layout"&&!Object.keys(p).length||y==="paint"&&!Object.keys(p).length)})},o.prototype._validate=function(u,p,y,b,S){return S===void 0&&(S={}),(!S||S.validate!==!1)&&Su(this,u.call(Nc,{key:p,layerType:this.type,objectKey:y,value:b,styleSpec:pe,style:{glyphs:!0,sprite:!0}}))},o.prototype.is3D=function(){return!1},o.prototype.isTileClipped=function(){return!1},o.prototype.hasOffscreenPass=function(){return!1},o.prototype.resize=function(){},o.prototype.isStateDependent=function(){for(var u in this.paint._values){var p=this.paint.get(u);if(p instanceof gs&&Hs(p.property.specification)&&(p.value.kind==="source"||p.value.kind==="composite")&&p.value.isStateDependent)return!0}return!1},o}(rt),Wf={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},vf=function(t,o){this._structArray=t,this._pos1=o*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ha=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Na(t,o){o===void 0&&(o=1);var u=0,p=0;return{members:t.map(function(y){var b=Wf[y.type].BYTES_PER_ELEMENT,S=u=dc(u,Math.max(o,b)),I=y.components||1;return p=Math.max(p,b),u+=b*I,{name:y.name,type:y.type,components:I,offset:S}}),size:dc(u,Math.max(p,o)),alignment:o}}function dc(t,o){return Math.ceil(t/o)*o}ha.serialize=function(t,o){return t._trim(),o&&(t.isTransferred=!0,o.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},ha.deserialize=function(t){var o=Object.create(this.prototype);return o.arrayBuffer=t.arrayBuffer,o.length=t.length,o.capacity=t.arrayBuffer.byteLength/o.bytesPerElement,o._refreshViews(),o},ha.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ha.prototype.clear=function(){this.length=0},ha.prototype.resize=function(t){this.reserve(t),this.length=t},ha.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var o=this.uint8;this._refreshViews(),o&&this.uint8.set(o)}},ha.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var yl=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p){var y=this.length;return this.resize(y+1),this.emplace(y,u,p)},o.prototype.emplace=function(u,p,y){var b=2*u;return this.int16[b+0]=p,this.int16[b+1]=y,u},o}(ha);yl.prototype.bytesPerElement=4,yn("StructArrayLayout2i4",yl);var Pu=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b){var S=this.length;return this.resize(S+1),this.emplace(S,u,p,y,b)},o.prototype.emplace=function(u,p,y,b,S){var I=4*u;return this.int16[I+0]=p,this.int16[I+1]=y,this.int16[I+2]=b,this.int16[I+3]=S,u},o}(ha);Pu.prototype.bytesPerElement=8,yn("StructArrayLayout4i8",Pu);var cu=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S,I){var D=this.length;return this.resize(D+1),this.emplace(D,u,p,y,b,S,I)},o.prototype.emplace=function(u,p,y,b,S,I,D){var z=6*u;return this.int16[z+0]=p,this.int16[z+1]=y,this.int16[z+2]=b,this.int16[z+3]=S,this.int16[z+4]=I,this.int16[z+5]=D,u},o}(ha);cu.prototype.bytesPerElement=12,yn("StructArrayLayout2i4i12",cu);var Fo=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S,I){var D=this.length;return this.resize(D+1),this.emplace(D,u,p,y,b,S,I)},o.prototype.emplace=function(u,p,y,b,S,I,D){var z=4*u,V=8*u;return this.int16[z+0]=p,this.int16[z+1]=y,this.uint8[V+4]=b,this.uint8[V+5]=S,this.uint8[V+6]=I,this.uint8[V+7]=D,u},o}(ha);Fo.prototype.bytesPerElement=8,yn("StructArrayLayout2i4ub8",Fo);var il=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p){var y=this.length;return this.resize(y+1),this.emplace(y,u,p)},o.prototype.emplace=function(u,p,y){var b=2*u;return this.float32[b+0]=p,this.float32[b+1]=y,u},o}(ha);il.prototype.bytesPerElement=8,yn("StructArrayLayout2f8",il);var fu=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S,I,D,z,V,W){var ee=this.length;return this.resize(ee+1),this.emplace(ee,u,p,y,b,S,I,D,z,V,W)},o.prototype.emplace=function(u,p,y,b,S,I,D,z,V,W,ee){var se=10*u;return this.uint16[se+0]=p,this.uint16[se+1]=y,this.uint16[se+2]=b,this.uint16[se+3]=S,this.uint16[se+4]=I,this.uint16[se+5]=D,this.uint16[se+6]=z,this.uint16[se+7]=V,this.uint16[se+8]=W,this.uint16[se+9]=ee,u},o}(ha);fu.prototype.bytesPerElement=20,yn("StructArrayLayout10ui20",fu);var mf=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S,I,D,z,V,W,ee,se){var Me=this.length;return this.resize(Me+1),this.emplace(Me,u,p,y,b,S,I,D,z,V,W,ee,se)},o.prototype.emplace=function(u,p,y,b,S,I,D,z,V,W,ee,se,Me){var Oe=12*u;return this.int16[Oe+0]=p,this.int16[Oe+1]=y,this.int16[Oe+2]=b,this.int16[Oe+3]=S,this.uint16[Oe+4]=I,this.uint16[Oe+5]=D,this.uint16[Oe+6]=z,this.uint16[Oe+7]=V,this.int16[Oe+8]=W,this.int16[Oe+9]=ee,this.int16[Oe+10]=se,this.int16[Oe+11]=Me,u},o}(ha);mf.prototype.bytesPerElement=24,yn("StructArrayLayout4i4ui4i24",mf);var Nl=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y){var b=this.length;return this.resize(b+1),this.emplace(b,u,p,y)},o.prototype.emplace=function(u,p,y,b){var S=3*u;return this.float32[S+0]=p,this.float32[S+1]=y,this.float32[S+2]=b,u},o}(ha);Nl.prototype.bytesPerElement=12,yn("StructArrayLayout3f12",Nl);var jc=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u){var p=this.length;return this.resize(p+1),this.emplace(p,u)},o.prototype.emplace=function(u,p){return this.uint32[1*u+0]=p,u},o}(ha);jc.prototype.bytesPerElement=4,yn("StructArrayLayout1ul4",jc);var gf=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S,I,D,z,V){var W=this.length;return this.resize(W+1),this.emplace(W,u,p,y,b,S,I,D,z,V)},o.prototype.emplace=function(u,p,y,b,S,I,D,z,V,W){var ee=10*u,se=5*u;return this.int16[ee+0]=p,this.int16[ee+1]=y,this.int16[ee+2]=b,this.int16[ee+3]=S,this.int16[ee+4]=I,this.int16[ee+5]=D,this.uint32[se+3]=z,this.uint16[ee+8]=V,this.uint16[ee+9]=W,u},o}(ha);gf.prototype.bytesPerElement=20,yn("StructArrayLayout6i1ul2ui20",gf);var Iu=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S,I){var D=this.length;return this.resize(D+1),this.emplace(D,u,p,y,b,S,I)},o.prototype.emplace=function(u,p,y,b,S,I,D){var z=6*u;return this.int16[z+0]=p,this.int16[z+1]=y,this.int16[z+2]=b,this.int16[z+3]=S,this.int16[z+4]=I,this.int16[z+5]=D,u},o}(ha);Iu.prototype.bytesPerElement=12,yn("StructArrayLayout2i2i2i12",Iu);var vc=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S){var I=this.length;return this.resize(I+1),this.emplace(I,u,p,y,b,S)},o.prototype.emplace=function(u,p,y,b,S,I){var D=4*u,z=8*u;return this.float32[D+0]=p,this.float32[D+1]=y,this.float32[D+2]=b,this.int16[z+6]=S,this.int16[z+7]=I,u},o}(ha);vc.prototype.bytesPerElement=16,yn("StructArrayLayout2f1f2i16",vc);var Vc=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b){var S=this.length;return this.resize(S+1),this.emplace(S,u,p,y,b)},o.prototype.emplace=function(u,p,y,b,S){var I=12*u,D=3*u;return this.uint8[I+0]=p,this.uint8[I+1]=y,this.float32[D+1]=b,this.float32[D+2]=S,u},o}(ha);Vc.prototype.bytesPerElement=12,yn("StructArrayLayout2ub2f12",Vc);var al=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y){var b=this.length;return this.resize(b+1),this.emplace(b,u,p,y)},o.prototype.emplace=function(u,p,y,b){var S=3*u;return this.uint16[S+0]=p,this.uint16[S+1]=y,this.uint16[S+2]=b,u},o}(ha);al.prototype.bytesPerElement=6,yn("StructArrayLayout3ui6",al);var Ji=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe,Ye,ze,st){var Tt=this.length;return this.resize(Tt+1),this.emplace(Tt,u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe,Ye,ze,st)},o.prototype.emplace=function(u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe,Ye,ze,st,Tt){var Vt=24*u,Xt=12*u,lr=48*u;return this.int16[Vt+0]=p,this.int16[Vt+1]=y,this.uint16[Vt+2]=b,this.uint16[Vt+3]=S,this.uint32[Xt+2]=I,this.uint32[Xt+3]=D,this.uint32[Xt+4]=z,this.uint16[Vt+10]=V,this.uint16[Vt+11]=W,this.uint16[Vt+12]=ee,this.float32[Xt+7]=se,this.float32[Xt+8]=Me,this.uint8[lr+36]=Oe,this.uint8[lr+37]=Ye,this.uint8[lr+38]=ze,this.uint32[Xt+10]=st,this.int16[Vt+22]=Tt,u},o}(ha);Ji.prototype.bytesPerElement=48,yn("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Ji);var ol=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe,Ye,ze,st,Tt,Vt,Xt,lr,Lr,$r,Zn,gn,Yn,hn,ki){var ai=this.length;return this.resize(ai+1),this.emplace(ai,u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe,Ye,ze,st,Tt,Vt,Xt,lr,Lr,$r,Zn,gn,Yn,hn,ki)},o.prototype.emplace=function(u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe,Ye,ze,st,Tt,Vt,Xt,lr,Lr,$r,Zn,gn,Yn,hn,ki,ai){var Pn=34*u,Ai=17*u;return this.int16[Pn+0]=p,this.int16[Pn+1]=y,this.int16[Pn+2]=b,this.int16[Pn+3]=S,this.int16[Pn+4]=I,this.int16[Pn+5]=D,this.int16[Pn+6]=z,this.int16[Pn+7]=V,this.uint16[Pn+8]=W,this.uint16[Pn+9]=ee,this.uint16[Pn+10]=se,this.uint16[Pn+11]=Me,this.uint16[Pn+12]=Oe,this.uint16[Pn+13]=Ye,this.uint16[Pn+14]=ze,this.uint16[Pn+15]=st,this.uint16[Pn+16]=Tt,this.uint16[Pn+17]=Vt,this.uint16[Pn+18]=Xt,this.uint16[Pn+19]=lr,this.uint16[Pn+20]=Lr,this.uint16[Pn+21]=$r,this.uint16[Pn+22]=Zn,this.uint32[Ai+12]=gn,this.float32[Ai+13]=Yn,this.float32[Ai+14]=hn,this.float32[Ai+15]=ki,this.float32[Ai+16]=ai,u},o}(ha);ol.prototype.bytesPerElement=68,yn("StructArrayLayout8i15ui1ul4f68",ol);var hu=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u){var p=this.length;return this.resize(p+1),this.emplace(p,u)},o.prototype.emplace=function(u,p){return this.float32[1*u+0]=p,u},o}(ha);hu.prototype.bytesPerElement=4,yn("StructArrayLayout1f4",hu);var Ts=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y){var b=this.length;return this.resize(b+1),this.emplace(b,u,p,y)},o.prototype.emplace=function(u,p,y,b){var S=3*u;return this.int16[S+0]=p,this.int16[S+1]=y,this.int16[S+2]=b,u},o}(ha);Ts.prototype.bytesPerElement=6,yn("StructArrayLayout3i6",Ts);var zl=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y){var b=this.length;return this.resize(b+1),this.emplace(b,u,p,y)},o.prototype.emplace=function(u,p,y,b){var S=4*u;return this.uint32[2*u+0]=p,this.uint16[S+2]=y,this.uint16[S+3]=b,u},o}(ha);zl.prototype.bytesPerElement=8,yn("StructArrayLayout1ul2ui8",zl);var _l=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p){var y=this.length;return this.resize(y+1),this.emplace(y,u,p)},o.prototype.emplace=function(u,p,y){var b=2*u;return this.uint16[b+0]=p,this.uint16[b+1]=y,u},o}(ha);_l.prototype.bytesPerElement=4,yn("StructArrayLayout2ui4",_l);var yf=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u){var p=this.length;return this.resize(p+1),this.emplace(p,u)},o.prototype.emplace=function(u,p){return this.uint16[1*u+0]=p,u},o}(ha);yf.prototype.bytesPerElement=2,yn("StructArrayLayout1ui2",yf);var Pa=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b){var S=this.length;return this.resize(S+1),this.emplace(S,u,p,y,b)},o.prototype.emplace=function(u,p,y,b,S){var I=4*u;return this.float32[I+0]=p,this.float32[I+1]=y,this.float32[I+2]=b,this.float32[I+3]=S,u},o}(ha);Pa.prototype.bytesPerElement=16,yn("StructArrayLayout4f16",Pa);var l=function(t){function o(){t.apply(this,arguments)}t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o;var u={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return u.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},u.x1.get=function(){return this._structArray.int16[this._pos2+2]},u.y1.get=function(){return this._structArray.int16[this._pos2+3]},u.x2.get=function(){return this._structArray.int16[this._pos2+4]},u.y2.get=function(){return this._structArray.int16[this._pos2+5]},u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.anchorPoint.get=function(){return new fe(this.anchorPointX,this.anchorPointY)},Object.defineProperties(o.prototype,u),o}(vf);l.prototype.size=20;var h=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.get=function(u){return new l(this,u)},o}(gf);yn("CollisionBoxArray",h);var c=function(t){function o(){t.apply(this,arguments)}t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},u.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},u.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},u.segment.get=function(){return this._structArray.uint16[this._pos2+10]},u.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},u.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},u.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},u.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},u.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},u.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},u.placedOrientation.set=function(p){this._structArray.uint8[this._pos1+37]=p},u.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},u.hidden.set=function(p){this._structArray.uint8[this._pos1+38]=p},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+10]=p},u.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(o.prototype,u),o}(vf);c.prototype.size=48;var d=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.get=function(u){return new c(this,u)},o}(Ji);yn("PlacedSymbolArray",d);var E=function(t){function o(){t.apply(this,arguments)}t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},u.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},u.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},u.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},u.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},u.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},u.key.get=function(){return this._structArray.uint16[this._pos2+8]},u.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},u.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},u.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},u.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},u.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},u.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},u.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},u.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},u.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},u.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},u.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},u.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},u.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+12]=p},u.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},u.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},u.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},u.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(o.prototype,u),o}(vf);E.prototype.size=68;var w=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.get=function(u){return new E(this,u)},o}(ol);yn("SymbolInstanceArray",w);var P=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.getoffsetX=function(u){return this.float32[1*u+0]},o}(hu);yn("GlyphOffsetArray",P);var L=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.getx=function(u){return this.int16[3*u+0]},o.prototype.gety=function(u){return this.int16[3*u+1]},o.prototype.gettileUnitDistanceFromAnchor=function(u){return this.int16[3*u+2]},o}(Ts);yn("SymbolLineVertexArray",L);var N=function(t){function o(){t.apply(this,arguments)}t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o;var u={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(o.prototype,u),o}(vf);N.prototype.size=8;var q=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.get=function(u){return new N(this,u)},o}(zl);yn("FeatureIndexArray",q);var ce=Na([{name:"a_pos",components:2,type:"Int16"}],4).members,he=function(t){t===void 0&&(t=[]),this.segments=t};function de(t,o){return 256*(t=gt(Math.floor(t),0,255))+gt(Math.floor(o),0,255)}he.prototype.prepareSegment=function(t,o,u,p){var y=this.segments[this.segments.length-1];return t>he.MAX_VERTEX_ARRAY_LENGTH&&Qe("Max vertices per segment is "+he.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!y||y.vertexLength+t>he.MAX_VERTEX_ARRAY_LENGTH||y.sortKey!==p)&&(y={vertexOffset:o.length,primitiveOffset:u.length,vertexLength:0,primitiveLength:0},p!==void 0&&(y.sortKey=p),this.segments.push(y)),y},he.prototype.get=function(){return this.segments},he.prototype.destroy=function(){for(var t=0,o=this.segments;t>>16)*I&65535)<<16)&4294967295)<<15|z>>>17))*D+(((z>>>16)*D&65535)<<16)&4294967295)<<13|b>>>19))+((5*(b>>>16)&65535)<<16)&4294967295))+((58964+(S>>>16)&65535)<<16);switch(z=0,p){case 3:z^=(255&o.charCodeAt(V+2))<<16;case 2:z^=(255&o.charCodeAt(V+1))<<8;case 1:b^=z=(65535&(z=(z=(65535&(z^=255&o.charCodeAt(V)))*I+(((z>>>16)*I&65535)<<16)&4294967295)<<15|z>>>17))*D+(((z>>>16)*D&65535)<<16)&4294967295}return b^=o.length,b=2246822507*(65535&(b^=b>>>16))+((2246822507*(b>>>16)&65535)<<16)&4294967295,b=3266489909*(65535&(b^=b>>>13))+((3266489909*(b>>>16)&65535)<<16)&4294967295,(b^=b>>>16)>>>0}}),We=ve(function(t){t.exports=function(o,u){for(var p,y=o.length,b=u^y,S=0;y>=4;)p=1540483477*(65535&(p=255&o.charCodeAt(S)|(255&o.charCodeAt(++S))<<8|(255&o.charCodeAt(++S))<<16|(255&o.charCodeAt(++S))<<24))+((1540483477*(p>>>16)&65535)<<16),b=1540483477*(65535&b)+((1540483477*(b>>>16)&65535)<<16)^(p=1540483477*(65535&(p^=p>>>24))+((1540483477*(p>>>16)&65535)<<16)),y-=4,++S;switch(y){case 3:b^=(255&o.charCodeAt(S+2))<<16;case 2:b^=(255&o.charCodeAt(S+1))<<8;case 1:b=1540483477*(65535&(b^=255&o.charCodeAt(S)))+((1540483477*(b>>>16)&65535)<<16)}return b=1540483477*(65535&(b^=b>>>13))+((1540483477*(b>>>16)&65535)<<16),(b^=b>>>15)>>>0}}),we=Ie,Ve=We;we.murmur3=Ie,we.murmur2=Ve;var tt=function(){this.ids=[],this.positions=[],this.indexed=!1};tt.prototype.add=function(t,o,u,p){this.ids.push(Wt(t)),this.positions.push(o,u,p)},tt.prototype.getPositions=function(t){for(var o=Wt(t),u=0,p=this.ids.length-1;u>1;this.ids[y]>=o?p=y:u=y+1}for(var b=[];this.ids[u]===o;)b.push({index:this.positions[3*u],start:this.positions[3*u+1],end:this.positions[3*u+2]}),u++;return b},tt.serialize=function(t,o){var u=new Float64Array(t.ids),p=new Uint32Array(t.positions);return function y(b,S,I,D){for(;I>1],V=I-1,W=D+1;;){do V++;while(b[V]z);if(V>=W)break;jt(b,V,W),jt(S,3*V,3*W),jt(S,3*V+1,3*W+1),jt(S,3*V+2,3*W+2)}W-IS.x+1||DS.y+1)&&Qe("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return u}function co(t,o){return{type:t.type,id:t.id,properties:t.properties,geometry:o?za(t):[]}}function Bs(t,o,u,p,y){t.emplaceBack(2*o+(p+1)/2,2*u+(y+1)/2)}var _s=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(o){return o.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new yl,this.indexArray=new al,this.segments=new he,this.programConfigurations=new Kn(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(function(o){return o.isStateDependent()}).map(function(o){return o.id})};function Hu(t,o){for(var u=0;u1){if(mc(t,o))return!0;for(var p=0;p1?u:u.sub(o)._mult(y)._add(o))}function xl(t,o){for(var u,p,y,b=!1,S=0;So.y!=(y=u[D]).y>o.y&&o.x<(y.x-p.x)*(o.y-p.y)/(y.y-p.y)+p.x&&(b=!b);return b}function vu(t,o){for(var u=!1,p=0,y=t.length-1;po.y!=S.y>o.y&&o.x<(S.x-b.x)*(o.y-b.y)/(S.y-b.y)+b.x&&(u=!u)}return u}function Ul(t,o,u){var p=u[0],y=u[2];if(t.xy.x&&o.x>y.x||t.yy.y&&o.y>y.y)return!1;var b=Qt(t,o,u[0]);return b!==Qt(t,o,u[1])||b!==Qt(t,o,u[2])||b!==Qt(t,o,u[3])}function Ou(t,o,u){var p=o.paint.get(t).value;return p.kind==="constant"?p.value:u.programConfigurations.get(o.id).getMaxValue(t)}function So(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ka(t,o,u,p,y){if(!o[0]&&!o[1])return t;var b=fe.convert(o)._mult(y);u==="viewport"&&b._rotate(-p);for(var S=[],I=0;I=8192||V<0||V>=8192)){var W=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),ee=W.vertexLength;Bs(this.layoutVertexArray,z,V,-1,-1),Bs(this.layoutVertexArray,z,V,1,-1),Bs(this.layoutVertexArray,z,V,1,1),Bs(this.layoutVertexArray,z,V,-1,1),this.indexArray.emplaceBack(ee,ee+1,ee+2),this.indexArray.emplaceBack(ee,ee+3,ee+2),W.vertexLength+=4,W.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,u,{},p)},yn("CircleBucket",_s,{omit:["layers"]});var Ua=new ns({"circle-sort-key":new Cn(pe.layout_circle["circle-sort-key"])}),mu={paint:new ns({"circle-radius":new Cn(pe.paint_circle["circle-radius"]),"circle-color":new Cn(pe.paint_circle["circle-color"]),"circle-blur":new Cn(pe.paint_circle["circle-blur"]),"circle-opacity":new Cn(pe.paint_circle["circle-opacity"]),"circle-translate":new Rn(pe.paint_circle["circle-translate"]),"circle-translate-anchor":new Rn(pe.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Rn(pe.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Rn(pe.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Cn(pe.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Cn(pe.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Cn(pe.paint_circle["circle-stroke-opacity"])}),layout:Ua},ta=typeof Float32Array!="undefined"?Float32Array:Array;function is(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Ms(t,o,u){var p=o[0],y=o[1],b=o[2],S=o[3],I=o[4],D=o[5],z=o[6],V=o[7],W=o[8],ee=o[9],se=o[10],Me=o[11],Oe=o[12],Ye=o[13],ze=o[14],st=o[15],Tt=u[0],Vt=u[1],Xt=u[2],lr=u[3];return t[0]=Tt*p+Vt*I+Xt*W+lr*Oe,t[1]=Tt*y+Vt*D+Xt*ee+lr*Ye,t[2]=Tt*b+Vt*z+Xt*se+lr*ze,t[3]=Tt*S+Vt*V+Xt*Me+lr*st,t[4]=(Tt=u[4])*p+(Vt=u[5])*I+(Xt=u[6])*W+(lr=u[7])*Oe,t[5]=Tt*y+Vt*D+Xt*ee+lr*Ye,t[6]=Tt*b+Vt*z+Xt*se+lr*ze,t[7]=Tt*S+Vt*V+Xt*Me+lr*st,t[8]=(Tt=u[8])*p+(Vt=u[9])*I+(Xt=u[10])*W+(lr=u[11])*Oe,t[9]=Tt*y+Vt*D+Xt*ee+lr*Ye,t[10]=Tt*b+Vt*z+Xt*se+lr*ze,t[11]=Tt*S+Vt*V+Xt*Me+lr*st,t[12]=(Tt=u[12])*p+(Vt=u[13])*I+(Xt=u[14])*W+(lr=u[15])*Oe,t[13]=Tt*y+Vt*D+Xt*ee+lr*Ye,t[14]=Tt*b+Vt*z+Xt*se+lr*ze,t[15]=Tt*S+Vt*V+Xt*Me+lr*st,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,o=0,u=arguments.length;u--;)o+=t[u]*t[u];return Math.sqrt(o)});var bl,_f=Ms;function xf(t,o,u){var p=o[0],y=o[1],b=o[2],S=o[3];return t[0]=u[0]*p+u[4]*y+u[8]*b+u[12]*S,t[1]=u[1]*p+u[5]*y+u[9]*b+u[13]*S,t[2]=u[2]*p+u[6]*y+u[10]*b+u[14]*S,t[3]=u[3]*p+u[7]*y+u[11]*b+u[15]*S,t}bl=new ta(3),ta!=Float32Array&&(bl[0]=0,bl[1]=0,bl[2]=0),function(){var t=new ta(4);ta!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var Gc=(function(){var t=new ta(2);ta!=Float32Array&&(t[0]=0,t[1]=0)}(),function(t){function o(u){t.call(this,u,mu)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.createBucket=function(u){return new _s(u)},o.prototype.queryRadius=function(u){var p=u;return Ou("circle-radius",this,p)+Ou("circle-stroke-width",this,p)+So(this.paint.get("circle-translate"))},o.prototype.queryIntersectsFeature=function(u,p,y,b,S,I,D,z){for(var V=ka(u,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),I.angle,D),W=this.paint.get("circle-radius").evaluate(p,y)+this.paint.get("circle-stroke-width").evaluate(p,y),ee=this.paint.get("circle-pitch-alignment")==="map",se=ee?V:function(Lr,$r){return Lr.map(function(Zn){return mo(Zn,$r)})}(V,z),Me=ee?W*D:W,Oe=0,Ye=b;Oet.width||y.height>t.height||u.x>t.width-y.width||u.y>t.height-y.height)throw new RangeError("out of range source coordinates for image copy");if(y.width>o.width||y.height>o.height||p.x>o.width-y.width||p.y>o.height-y.height)throw new RangeError("out of range destination coordinates for image copy");for(var S=t.data,I=o.data,D=0;D80*u){p=b=t[0],y=S=t[1];for(var Me=u;Meb&&(b=I),D>S&&(S=D);z=(z=Math.max(b-p,S-y))!==0?1/z:0}return Yc(ee,se,u,p,y,z),se}function np(t,o,u,p,y){var b,S;if(y===Kf(t,o,u,p)>0)for(b=o;b=o;b-=p)S=qf(b,t[b],t[b+1],S);return S&&Th(S,S.next)&&(jl(S),S=S.next),S}function Ps(t,o){if(!t)return t;o||(o=t);var u,p=t;do if(u=!1,p.steiner||!Th(p,p.next)&&Co(p.prev,p,p.next)!==0)p=p.next;else{if(jl(p),(p=o=p.prev)===p.next)break;u=!0}while(u||p!==o);return o}function Yc(t,o,u,p,y,b,S){if(t){!S&&b&&function(V,W,ee,se){var Me=V;do Me.z===null&&(Me.z=ap(Me.x,Me.y,W,ee,se)),Me.prevZ=Me.prev,Me.nextZ=Me.next,Me=Me.next;while(Me!==V);Me.prevZ.nextZ=null,Me.prevZ=null,function(Oe){var Ye,ze,st,Tt,Vt,Xt,lr,Lr,$r=1;do{for(ze=Oe,Oe=null,Vt=null,Xt=0;ze;){for(Xt++,st=ze,lr=0,Ye=0;Ye<$r&&(lr++,st=st.nextZ);Ye++);for(Lr=$r;lr>0||Lr>0&&st;)lr!==0&&(Lr===0||!st||ze.z<=st.z)?(Tt=ze,ze=ze.nextZ,lr--):(Tt=st,st=st.nextZ,Lr--),Vt?Vt.nextZ=Tt:Oe=Tt,Tt.prevZ=Vt,Vt=Tt;ze=st}Vt.nextZ=null,$r*=2}while(Xt>1)}(Me)}(t,p,y,b);for(var I,D,z=t;t.prev!==t.next;)if(I=t.prev,D=t.next,b?Td(t,p,y,b):zp(t))o.push(I.i/u),o.push(t.i/u),o.push(D.i/u),jl(t),t=D.next,z=D.next;else if((t=D)===z){S?S===1?Yc(t=Ef(Ps(t),o,u),o,u,p,y,b,2):S===2&&ip(t,o,u,p,y,b):Yc(Ps(t),o,u,p,y,b,1);break}}}function zp(t){var o=t.prev,u=t,p=t.next;if(Co(o,u,p)>=0)return!1;for(var y=t.next.next;y!==t.prev;){if(qc(o.x,o.y,u.x,u.y,p.x,p.y,y.x,y.y)&&Co(y.prev,y,y.next)>=0)return!1;y=y.next}return!0}function Td(t,o,u,p){var y=t.prev,b=t,S=t.next;if(Co(y,b,S)>=0)return!1;for(var I=y.x>b.x?y.x>S.x?y.x:S.x:b.x>S.x?b.x:S.x,D=y.y>b.y?y.y>S.y?y.y:S.y:b.y>S.y?b.y:S.y,z=ap(y.x=z&&ee&&ee.z<=V;){if(W!==t.prev&&W!==t.next&&qc(y.x,y.y,b.x,b.y,S.x,S.y,W.x,W.y)&&Co(W.prev,W,W.next)>=0||(W=W.prevZ,ee!==t.prev&&ee!==t.next&&qc(y.x,y.y,b.x,b.y,S.x,S.y,ee.x,ee.y)&&Co(ee.prev,ee,ee.next)>=0))return!1;ee=ee.nextZ}for(;W&&W.z>=z;){if(W!==t.prev&&W!==t.next&&qc(y.x,y.y,b.x,b.y,S.x,S.y,W.x,W.y)&&Co(W.prev,W,W.next)>=0)return!1;W=W.prevZ}for(;ee&&ee.z<=V;){if(ee!==t.prev&&ee!==t.next&&qc(y.x,y.y,b.x,b.y,S.x,S.y,ee.x,ee.y)&&Co(ee.prev,ee,ee.next)>=0)return!1;ee=ee.nextZ}return!0}function Ef(t,o,u){var p=t;do{var y=p.prev,b=p.next.next;!Th(y,b)&&jp(y,p,p.next,b)&&Yf(y,b)&&Yf(b,y)&&(o.push(y.i/u),o.push(p.i/u),o.push(b.i/u),jl(p),jl(p.next),p=t=b),p=p.next}while(p!==t);return Ps(p)}function ip(t,o,u,p,y,b){var S=t;do{for(var I=S.next.next;I!==S.prev;){if(S.i!==I.i&&Zp(S,I)){var D=Ph(S,I);return S=Ps(S,S.next),D=Ps(D,D.next),Yc(S,o,u,p,y,b),void Yc(D,o,u,p,y,b)}I=I.next}S=S.next}while(S!==t)}function Md(t,o){return t.x-o.x}function Pd(t,o){if(o=function(p,y){var b,S=y,I=p.x,D=p.y,z=-1/0;do{if(D<=S.y&&D>=S.next.y&&S.next.y!==S.y){var V=S.x+(D-S.y)*(S.next.x-S.x)/(S.next.y-S.y);if(V<=I&&V>z){if(z=V,V===I){if(D===S.y)return S;if(D===S.next.y)return S.next}b=S.x=S.x&&S.x>=se&&I!==S.x&&qc(Db.x||S.x===b.x&&wh(b,S)))&&(b=S,Oe=W)),S=S.next;while(S!==ee);return b}(t,o)){var u=Ph(o,t);Ps(o,o.next),Ps(u,u.next)}}function wh(t,o){return Co(t.prev,t,o.prev)<0&&Co(o.next,t,t.next)<0}function ap(t,o,u,p,y){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-u)*y)|t<<8))|t<<4))|t<<2))|t<<1))|(o=1431655765&((o=858993459&((o=252645135&((o=16711935&((o=32767*(o-p)*y)|o<<8))|o<<4))|o<<2))|o<<1))<<1}function Up(t){var o=t,u=t;do(o.x=0&&(t-S)*(p-I)-(u-S)*(o-I)>=0&&(u-S)*(b-I)-(y-S)*(p-I)>=0}function Zp(t,o){return t.next.i!==o.i&&t.prev.i!==o.i&&!function(u,p){var y=u;do{if(y.i!==u.i&&y.next.i!==u.i&&y.i!==p.i&&y.next.i!==p.i&&jp(y,y.next,u,p))return!0;y=y.next}while(y!==u);return!1}(t,o)&&(Yf(t,o)&&Yf(o,t)&&function(u,p){var y=u,b=!1,S=(u.x+p.x)/2,I=(u.y+p.y)/2;do y.y>I!=y.next.y>I&&y.next.y!==y.y&&S<(y.next.x-y.x)*(I-y.y)/(y.next.y-y.y)+y.x&&(b=!b),y=y.next;while(y!==u);return b}(t,o)&&(Co(t.prev,t,o.prev)||Co(t,o.prev,o))||Th(t,o)&&Co(t.prev,t,t.next)>0&&Co(o.prev,o,o.next)>0)}function Co(t,o,u){return(o.y-t.y)*(u.x-o.x)-(o.x-t.x)*(u.y-o.y)}function Th(t,o){return t.x===o.x&&t.y===o.y}function jp(t,o,u,p){var y=Xf(Co(t,o,u)),b=Xf(Co(t,o,p)),S=Xf(Co(u,p,t)),I=Xf(Co(u,p,o));return y!==b&&S!==I||!(y!==0||!Mh(t,u,o))||!(b!==0||!Mh(t,p,o))||!(S!==0||!Mh(u,t,p))||!(I!==0||!Mh(u,o,p))}function Mh(t,o,u){return o.x<=Math.max(t.x,u.x)&&o.x>=Math.min(t.x,u.x)&&o.y<=Math.max(t.y,u.y)&&o.y>=Math.min(t.y,u.y)}function Xf(t){return t>0?1:t<0?-1:0}function Yf(t,o){return Co(t.prev,t,t.next)<0?Co(t,o,t.next)>=0&&Co(t,t.prev,o)>=0:Co(t,o,t.prev)<0||Co(t,t.next,o)<0}function Ph(t,o){var u=new Sl(t.i,t.x,t.y),p=new Sl(o.i,o.x,o.y),y=t.next,b=o.prev;return t.next=o,o.prev=t,u.next=y,y.prev=u,p.next=u,u.prev=p,b.next=p,p.prev=b,p}function qf(t,o,u,p){var y=new Sl(t,o,u);return p?(y.next=p.next,y.prev=p,p.next.prev=y,p.next=y):(y.prev=y,y.next=y),y}function jl(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Sl(t,o,u){this.i=t,this.x=o,this.y=u,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Kf(t,o,u,p){for(var y=0,b=o,S=u-p;bD;){if(z-D>600){var W=z-D+1,ee=I-D+1,se=Math.log(W),Me=.5*Math.exp(2*se/3),Oe=.5*Math.sqrt(se*Me*(W-Me)/W)*(ee-W/2<0?-1:1);b(S,I,Math.max(D,Math.floor(I-ee*Me/W+Oe)),Math.min(z,Math.floor(I+(W-ee)*Me/W+Oe)),V)}var Ye=S[I],ze=D,st=z;for(_c(S,D,I),V(S[z],Ye)>0&&_c(S,D,z);ze0;)st--}V(S[D],Ye)===0?_c(S,D,st):_c(S,++st,z),st<=I&&(D=st+1),I<=st&&(z=st-1)}})(t,o,u||0,p||t.length-1,y||Oh)}function _c(t,o,u){var p=t[o];t[o]=t[u],t[u]=p}function Oh(t,o){return to?1:0}function $f(t,o){var u=t.length;if(u<=1)return[t];for(var p,y,b=[],S=0;S1)for(var D=0;D0&&u.holes.push(p+=t[y-1].length)}return u},El.default=Xc;var Ns=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(o){return o.id}),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new yl,this.indexArray=new al,this.indexArray2=new _l,this.programConfigurations=new Kn(t.layers,t.zoom),this.segments=new he,this.segments2=new he,this.stateDependentLayerIds=this.layers.filter(function(o){return o.isStateDependent()}).map(function(o){return o.id})};Ns.prototype.populate=function(t,o,u){this.hasPattern=Sf("fill",this.layers,o);for(var p=this.layers[0].layout.get("fill-sort-key"),y=[],b=0,S=t;b>3}if(y--,p===1||p===2)b+=t.readSVarint(),S+=t.readSVarint(),p===1&&(o&&I.push(o),o=[]),o.push(new fe(b,S));else{if(p!==7)throw new Error("unknown command "+p);o&&o.push(o[0].clone())}}return o&&I.push(o),I},Cl.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var o=t.readVarint()+t.pos,u=1,p=0,y=0,b=0,S=1/0,I=-1/0,D=1/0,z=-1/0;t.pos>3}if(p--,u===1||u===2)(y+=t.readSVarint())I&&(I=y),(b+=t.readSVarint())z&&(z=b);else if(u!==7)throw new Error("unknown command "+u)}return[S,D,I,z]},Cl.prototype.toGeoJSON=function(t,o,u){var p,y,b=this.extent*Math.pow(2,u),S=this.extent*t,I=this.extent*o,D=this.loadGeometry(),z=Cl.types[this.type];function V(se){for(var Me=0;Me>3;y=S===1?p.readString():S===2?p.readFloat():S===3?p.readDouble():S===4?p.readVarint64():S===5?p.readVarint():S===6?p.readSVarint():S===7?p.readBoolean():null}return y}(u))}function Hp(t,o,u){if(t===3){var p=new Lh(u,u.readVarint()+u.pos);p.length&&(o[p.name]=p)}}Gp.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var o=this._pbf.readVarint()+this._pbf.pos;return new Rh(this._pbf,o,this.extent,this._keys,this._values)};var gu={VectorTile:function(t,o){this.layers=t.readFields(Hp,{},o)},VectorTileFeature:Rh,VectorTileLayer:Lh},Wp=gu.VectorTileFeature.types,kh=Math.pow(2,13);function $c(t,o,u,p,y,b,S,I){t.emplaceBack(o,u,2*Math.floor(p*kh)+S,y*kh*2,b*kh*2,Math.round(I))}var qu=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(o){return o.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new cu,this.indexArray=new al,this.programConfigurations=new Kn(t.layers,t.zoom),this.segments=new he,this.stateDependentLayerIds=this.layers.filter(function(o){return o.isStateDependent()}).map(function(o){return o.id})};function Xp(t,o){return t.x===o.x&&(t.x<0||t.x>8192)||t.y===o.y&&(t.y<0||t.y>8192)}qu.prototype.populate=function(t,o,u){this.features=[],this.hasPattern=Sf("fill-extrusion",this.layers,o);for(var p=0,y=t;p8192})||Ai.every(function(hi){return hi.y<0})||Ai.every(function(hi){return hi.y>8192})))for(var Oe=0,Ye=0;Ye=1){var st=Me[Ye-1];if(!Xp(ze,st)){W.vertexLength+4>he.MAX_VERTEX_ARRAY_LENGTH&&(W=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Tt=ze.sub(st)._perp()._unit(),Vt=st.dist(ze);Oe+Vt>32768&&(Oe=0),$c(this.layoutVertexArray,ze.x,ze.y,Tt.x,Tt.y,0,0,Oe),$c(this.layoutVertexArray,ze.x,ze.y,Tt.x,Tt.y,0,1,Oe),$c(this.layoutVertexArray,st.x,st.y,Tt.x,Tt.y,0,0,Oe+=Vt),$c(this.layoutVertexArray,st.x,st.y,Tt.x,Tt.y,0,1,Oe);var Xt=W.vertexLength;this.indexArray.emplaceBack(Xt,Xt+2,Xt+1),this.indexArray.emplaceBack(Xt+1,Xt+2,Xt+3),W.vertexLength+=4,W.primitiveLength+=2}}}}if(W.vertexLength+D>he.MAX_VERTEX_ARRAY_LENGTH&&(W=this.segments.prepareSegment(D,this.layoutVertexArray,this.indexArray)),Wp[t.type]==="Polygon"){for(var lr=[],Lr=[],$r=W.vertexLength,Zn=0,gn=I;Zn=2&&t[D-1].equals(t[D-2]);)D--;for(var z=0;z0;if(Lr&&ze>z){var Zn=V.dist(se);if(Zn>2*W){var gn=V.sub(V.sub(se)._mult(W/Zn)._round());this.updateDistance(se,gn),this.addCurrentVertex(gn,Oe,0,0,ee),se=gn}}var Yn=se&&Me,hn=Yn?u:I?"butt":p;if(Yn&&hn==="round"&&(Xty&&(hn="bevel"),hn==="bevel"&&(Xt>2&&(hn="flipbevel"),Xt100)st=Ye.mult(-1);else{var ki=Xt*Oe.add(Ye).mag()/Oe.sub(Ye).mag();st._perp()._mult(ki*($r?-1:1))}this.addCurrentVertex(V,st,0,0,ee),this.addCurrentVertex(V,st.mult(-1),0,0,ee)}else if(hn==="bevel"||hn==="fakeround"){var ai=-Math.sqrt(Xt*Xt-1),Pn=$r?ai:0,Ai=$r?0:ai;if(se&&this.addCurrentVertex(V,Oe,Pn,Ai,ee),hn==="fakeround")for(var hi=Math.round(180*lr/Math.PI/20),ea=1;ea2*W){var ao=V.add(Me.sub(V)._mult(W/_o)._round());this.updateDistance(V,ao),this.addCurrentVertex(ao,Ye,0,0,ee),V=ao}}}}},va.prototype.addCurrentVertex=function(t,o,u,p,y,b){b===void 0&&(b=!1);var S=o.y*p-o.x,I=-o.y-o.x*p;this.addHalfVertex(t,o.x+o.y*u,o.y-o.x*u,b,!1,u,y),this.addHalfVertex(t,S,I,b,!0,-p,y),this.distance>sp/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(t,o,u,p,y,b))},va.prototype.addHalfVertex=function(t,o,u,p,y,b,S){var I=.5*(this.lineClips?this.scaledDistance*(sp-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((t.x<<1)+(p?1:0),(t.y<<1)+(y?1:0),Math.round(63*o)+128,Math.round(63*u)+128,1+(b===0?0:b<0?-1:1)|(63&I)<<2,I>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var D=S.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,D),S.primitiveLength++),y?this.e2=D:this.e1=D},va.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},va.prototype.updateDistance=function(t,o){this.distance+=t.dist(o),this.updateScaledDistance()},yn("LineBucket",va,{omit:["layers","patternFeatures"]});var Gl=new ns({"line-cap":new Rn(pe.layout_line["line-cap"]),"line-join":new Cn(pe.layout_line["line-join"]),"line-miter-limit":new Rn(pe.layout_line["line-miter-limit"]),"line-round-limit":new Rn(pe.layout_line["line-round-limit"]),"line-sort-key":new Cn(pe.layout_line["line-sort-key"])}),Ao={paint:new ns({"line-opacity":new Cn(pe.paint_line["line-opacity"]),"line-color":new Cn(pe.paint_line["line-color"]),"line-translate":new Rn(pe.paint_line["line-translate"]),"line-translate-anchor":new Rn(pe.paint_line["line-translate-anchor"]),"line-width":new Cn(pe.paint_line["line-width"]),"line-gap-width":new Cn(pe.paint_line["line-gap-width"]),"line-offset":new Cn(pe.paint_line["line-offset"]),"line-blur":new Cn(pe.paint_line["line-blur"]),"line-dasharray":new ys(pe.paint_line["line-dasharray"]),"line-pattern":new df(pe.paint_line["line-pattern"]),"line-gradient":new lu(pe.paint_line["line-gradient"])}),layout:Gl},Ys=new(function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.possiblyEvaluate=function(u,p){return p=new Fi(Math.floor(p.zoom),{now:p.now,fadeDuration:p.fadeDuration,zoomHistory:p.zoomHistory,transition:p.transition}),t.prototype.possiblyEvaluate.call(this,u,p)},o.prototype.evaluate=function(u,p,y,b){return p=xt({},p,{zoom:Math.floor(p.zoom)}),t.prototype.evaluate.call(this,u,p,y,b)},o}(Cn))(Ao.paint.properties["line-width"].specification);Ys.useIntegerZoom=!0;var Yp=function(t){function o(u){t.call(this,u,Ao),this.gradientVersion=0}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._handleSpecialPaintPropertyUpdate=function(u){u==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof ds,this.gradientVersion=(this.gradientVersion+1)%Xe)},o.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},o.prototype.recalculate=function(u,p){t.prototype.recalculate.call(this,u,p),this.paint._values["line-floorwidth"]=Ys.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,u)},o.prototype.createBucket=function(u){return new va(u)},o.prototype.queryRadius=function(u){var p=u,y=up(Ou("line-width",this,p),Ou("line-gap-width",this,p)),b=Ou("line-offset",this,p);return y/2+Math.abs(b)+So(this.paint.get("line-translate"))},o.prototype.queryIntersectsFeature=function(u,p,y,b,S,I,D){var z=ka(u,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),I.angle,D),V=D/2*up(this.paint.get("line-width").evaluate(p,y),this.paint.get("line-gap-width").evaluate(p,y)),W=this.paint.get("line-offset").evaluate(p,y);return W&&(b=function(ee,se){for(var Me=[],Oe=new fe(0,0),Ye=0;Ye=3){for(var ze=0;ze0?o+2*t:t}var nh=Na([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Rd=Na([{name:"a_projected_pos",components:3,type:"Float32"}],4),Ld=(Na([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Na([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Dh=(Na([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),Na([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),qp=Na([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Kp(t,o,u){return t.sections.forEach(function(p){p.text=function(y,b,S){var I=b.layout.get("text-transform").evaluate(S,{});return I==="uppercase"?y=y.toLocaleUpperCase():I==="lowercase"&&(y=y.toLocaleLowerCase()),Fs.applyArabicShaping&&(y=Fs.applyArabicShaping(y)),y}(p.text,o,u)}),t}Na([{name:"triangle",components:3,type:"Uint16"}]),Na([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Na([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Na([{type:"Float32",name:"offsetX"}]),Na([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Af={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"},lp=function(t,o,u,p,y){var b,S,I=8*y-p-1,D=(1<>1,V=-7,W=u?y-1:0,ee=u?-1:1,se=t[o+W];for(W+=ee,b=se&(1<<-V)-1,se>>=-V,V+=I;V>0;b=256*b+t[o+W],W+=ee,V-=8);for(S=b&(1<<-V)-1,b>>=-V,V+=p;V>0;S=256*S+t[o+W],W+=ee,V-=8);if(b===0)b=1-z;else{if(b===D)return S?NaN:1/0*(se?-1:1);S+=Math.pow(2,p),b-=z}return(se?-1:1)*S*Math.pow(2,b-p)},$p=function(t,o,u,p,y,b){var S,I,D,z=8*b-y-1,V=(1<>1,ee=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,se=p?0:b-1,Me=p?1:-1,Oe=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(I=isNaN(o)?1:0,S=V):(S=Math.floor(Math.log(o)/Math.LN2),o*(D=Math.pow(2,-S))<1&&(S--,D*=2),(o+=S+W>=1?ee/D:ee*Math.pow(2,1-W))*D>=2&&(S++,D/=2),S+W>=V?(I=0,S=V):S+W>=1?(I=(o*D-1)*Math.pow(2,y),S+=W):(I=o*Math.pow(2,W-1)*Math.pow(2,y),S=0));y>=8;t[u+se]=255&I,se+=Me,I/=256,y-=8);for(S=S<0;t[u+se]=255&S,se+=Me,S/=256,z-=8);t[u+se-Me]|=128*Oe},wf=Sa;function Sa(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Sa.Varint=0,Sa.Fixed64=1,Sa.Bytes=2,Sa.Fixed32=5;var ih=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function Hl(t){return t.type===Sa.Bytes?t.readVarint()+t.pos:t.pos+1}function Tf(t,o,u){return u?4294967296*o+(t>>>0):4294967296*(o>>>0)+(t>>>0)}function cp(t,o,u){var p=o<=16383?1:o<=2097151?2:o<=268435455?3:Math.floor(Math.log(o)/(7*Math.LN2));u.realloc(p);for(var y=u.pos-1;y>=t;y--)u.buf[y+p]=u.buf[y]}function kd(t,o){for(var u=0;u>>8,t[u+2]=o>>>16,t[u+3]=o>>>24}function Tr(t,o){return(t[o]|t[o+1]<<8|t[o+2]<<16)+(t[o+3]<<24)}function Rr(t,o,u){t===1&&u.readMessage(Gr,o)}function Gr(t,o,u){if(t===3){var p=u.readMessage(_r,{}),y=p.width,b=p.height,S=p.left,I=p.top,D=p.advance;o.push({id:p.id,bitmap:new nu({width:y+6,height:b+6},p.bitmap),metrics:{width:y,height:b,left:S,top:I,advance:D}})}}function _r(t,o,u){t===1?o.id=u.readVarint():t===2?o.bitmap=u.readBytes():t===3?o.width=u.readVarint():t===4?o.height=u.readVarint():t===5?o.left=u.readSVarint():t===6?o.top=u.readSVarint():t===7&&(o.advance=u.readVarint())}function Mr(t){for(var o=0,u=0,p=0,y=t;p=0;ee--){var se=S[ee];if(!(W.w>se.w||W.h>se.h)){if(W.x=se.x,W.y=se.y,D=Math.max(D,W.y+W.h),I=Math.max(I,W.x+W.w),W.w===se.w&&W.h===se.h){var Me=S.pop();ee>3,b=this.pos;this.type=7&p,t(y,o,this),this.pos===b&&this.skip(p)}return o},readMessage:function(t,o){return this.readFields(t,o,this.readVarint()+this.pos)},readFixed32:function(){var t=mr(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=Tr(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=mr(this.buf,this.pos)+4294967296*mr(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=mr(this.buf,this.pos)+4294967296*Tr(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=lp(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=lp(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var o,u,p=this.buf;return o=127&(u=p[this.pos++]),u<128?o:(o|=(127&(u=p[this.pos++]))<<7,u<128?o:(o|=(127&(u=p[this.pos++]))<<14,u<128?o:(o|=(127&(u=p[this.pos++]))<<21,u<128?o:function(y,b,S){var I,D,z=S.buf;if(I=(112&(D=z[S.pos++]))>>4,D<128||(I|=(127&(D=z[S.pos++]))<<3,D<128)||(I|=(127&(D=z[S.pos++]))<<10,D<128)||(I|=(127&(D=z[S.pos++]))<<17,D<128)||(I|=(127&(D=z[S.pos++]))<<24,D<128)||(I|=(1&(D=z[S.pos++]))<<31,D<128))return Tf(y,I,b);throw new Error("Expected varint not more than 10 bytes")}(o|=(15&(u=p[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,o=this.pos;return this.pos=t,t-o>=12&&ih?function(u,p,y){return ih.decode(u.subarray(p,y))}(this.buf,o,t):function(u,p,y){for(var b="",S=p;S239?4:V>223?3:V>191?2:1;if(S+ee>y)break;ee===1?V<128&&(W=V):ee===2?(192&(I=u[S+1]))==128&&(W=(31&V)<<6|63&I)<=127&&(W=null):ee===3?(D=u[S+2],(192&(I=u[S+1]))==128&&(192&D)==128&&((W=(15&V)<<12|(63&I)<<6|63&D)<=2047||W>=55296&&W<=57343)&&(W=null)):ee===4&&(D=u[S+2],z=u[S+3],(192&(I=u[S+1]))==128&&(192&D)==128&&(192&z)==128&&((W=(15&V)<<18|(63&I)<<12|(63&D)<<6|63&z)<=65535||W>=1114112)&&(W=null)),W===null?(W=65533,ee=1):W>65535&&(W-=65536,b+=String.fromCharCode(W>>>10&1023|55296),W=56320|1023&W),b+=String.fromCharCode(W),S+=ee}return b}(this.buf,o,t)},readBytes:function(){var t=this.readVarint()+this.pos,o=this.buf.subarray(this.pos,t);return this.pos=t,o},readPackedVarint:function(t,o){if(this.type!==Sa.Bytes)return t.push(this.readVarint(o));var u=Hl(this);for(t=t||[];this.pos127;);else if(o===Sa.Bytes)this.pos=this.readVarint()+this.pos;else if(o===Sa.Fixed32)this.pos+=4;else{if(o!==Sa.Fixed64)throw new Error("Unimplemented type: "+o);this.pos+=8}},writeTag:function(t,o){this.writeVarint(t<<3|o)},realloc:function(t){for(var o=this.length||16;o268435455||t<0?function(o,u){var p,y;if(o>=0?(p=o%4294967296|0,y=o/4294967296|0):(y=~(-o/4294967296),4294967295^(p=~(-o%4294967296))?p=p+1|0:(p=0,y=y+1|0)),o>=18446744073709552e3||o<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");u.realloc(10),function(b,S,I){I.buf[I.pos++]=127&b|128,b>>>=7,I.buf[I.pos++]=127&b|128,b>>>=7,I.buf[I.pos++]=127&b|128,b>>>=7,I.buf[I.pos++]=127&b|128,I.buf[I.pos]=127&(b>>>=7)}(p,0,u),function(b,S){var I=(7&b)<<4;S.buf[S.pos++]|=I|((b>>>=3)?128:0),b&&(S.buf[S.pos++]=127&b|((b>>>=7)?128:0),b&&(S.buf[S.pos++]=127&b|((b>>>=7)?128:0),b&&(S.buf[S.pos++]=127&b|((b>>>=7)?128:0),b&&(S.buf[S.pos++]=127&b|((b>>>=7)?128:0),b&&(S.buf[S.pos++]=127&b)))))}(y,u)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var o=this.pos;this.pos=function(p,y,b){for(var S,I,D=0;D55295&&S<57344){if(!I){S>56319||D+1===y.length?(p[b++]=239,p[b++]=191,p[b++]=189):I=S;continue}if(S<56320){p[b++]=239,p[b++]=191,p[b++]=189,I=S;continue}S=I-55296<<10|S-56320|65536,I=null}else I&&(p[b++]=239,p[b++]=191,p[b++]=189,I=null);S<128?p[b++]=S:(S<2048?p[b++]=S>>6|192:(S<65536?p[b++]=S>>12|224:(p[b++]=S>>18|240,p[b++]=S>>12&63|128),p[b++]=S>>6&63|128),p[b++]=63&S|128)}return b}(this.buf,t,this.pos);var u=this.pos-o;u>=128&&cp(o,u,this),this.pos=o-1,this.writeVarint(u),this.pos+=u},writeFloat:function(t){this.realloc(4),$p(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),$p(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var o=t.length;this.writeVarint(o),this.realloc(o);for(var u=0;u=128&&cp(u,p,this),this.pos=u-1,this.writeVarint(p),this.pos+=p},writeMessage:function(t,o,u){this.writeTag(t,Sa.Bytes),this.writeRawMessage(o,u)},writePackedVarint:function(t,o){o.length&&this.writeMessage(t,kd,o)},writePackedSVarint:function(t,o){o.length&&this.writeMessage(t,B,o)},writePackedBoolean:function(t,o){o.length&&this.writeMessage(t,Dt,o)},writePackedFloat:function(t,o){o.length&&this.writeMessage(t,ge,o)},writePackedDouble:function(t,o){o.length&&this.writeMessage(t,Be,o)},writePackedFixed32:function(t,o){o.length&&this.writeMessage(t,sr,o)},writePackedSFixed32:function(t,o){o.length&&this.writeMessage(t,kt,o)},writePackedFixed64:function(t,o){o.length&&this.writeMessage(t,er,o)},writePackedSFixed64:function(t,o){o.length&&this.writeMessage(t,hr,o)},writeBytesField:function(t,o){this.writeTag(t,Sa.Bytes),this.writeBytes(o)},writeFixed32Field:function(t,o){this.writeTag(t,Sa.Fixed32),this.writeFixed32(o)},writeSFixed32Field:function(t,o){this.writeTag(t,Sa.Fixed32),this.writeSFixed32(o)},writeFixed64Field:function(t,o){this.writeTag(t,Sa.Fixed64),this.writeFixed64(o)},writeSFixed64Field:function(t,o){this.writeTag(t,Sa.Fixed64),this.writeSFixed64(o)},writeVarintField:function(t,o){this.writeTag(t,Sa.Varint),this.writeVarint(o)},writeSVarintField:function(t,o){this.writeTag(t,Sa.Varint),this.writeSVarint(o)},writeStringField:function(t,o){this.writeTag(t,Sa.Bytes),this.writeString(o)},writeFloatField:function(t,o){this.writeTag(t,Sa.Fixed32),this.writeFloat(o)},writeDoubleField:function(t,o){this.writeTag(t,Sa.Fixed64),this.writeDouble(o)},writeBooleanField:function(t,o){this.writeVarintField(t,Boolean(o))}};var ut=function(t,o){var u=o.pixelRatio,p=o.version,y=o.stretchX,b=o.stretchY,S=o.content;this.paddedRect=t,this.pixelRatio=u,this.stretchX=y,this.stretchY=b,this.content=S,this.version=p},Gt={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};Gt.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},Gt.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},Gt.tlbr.get=function(){return this.tl.concat(this.br)},Gt.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(ut.prototype,Gt);var br=function(t,o){var u={},p={};this.haveRenderCallbacks=[];var y=[];this.addImages(t,u,y),this.addImages(o,p,y);var b=Mr(y),S=new go({width:b.w||1,height:b.h||1});for(var I in t){var D=t[I],z=u[I].paddedRect;go.copy(D.data,S,{x:0,y:0},{x:z.x+1,y:z.y+1},D.data)}for(var V in o){var W=o[V],ee=p[V].paddedRect,se=ee.x+1,Me=ee.y+1,Oe=W.data.width,Ye=W.data.height;go.copy(W.data,S,{x:0,y:0},{x:se,y:Me},W.data),go.copy(W.data,S,{x:0,y:Ye-1},{x:se,y:Me-1},{width:Oe,height:1}),go.copy(W.data,S,{x:0,y:0},{x:se,y:Me+Ye},{width:Oe,height:1}),go.copy(W.data,S,{x:Oe-1,y:0},{x:se-1,y:Me},{width:1,height:Ye}),go.copy(W.data,S,{x:0,y:0},{x:se+Oe,y:Me},{width:1,height:Ye})}this.image=S,this.iconPositions=u,this.patternPositions=p};br.prototype.addImages=function(t,o,u){for(var p in t){var y=t[p],b={x:0,y:0,w:y.data.width+2,h:y.data.height+2};u.push(b),o[p]=new ut(b,y),y.hasRenderCallback&&this.haveRenderCallbacks.push(p)}},br.prototype.patchUpdatedImages=function(t,o){for(var u in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[u],t.getImage(u),o),this.patchUpdatedImage(this.patternPositions[u],t.getImage(u),o)},br.prototype.patchUpdatedImage=function(t,o,u){if(t&&o&&t.version!==o.version){t.version=o.version;var p=t.tl;u.update(o.data,void 0,{x:p[0],y:p[1]})}},yn("ImagePosition",ut),yn("ImageAtlas",br);var Br={horizontal:1,vertical:2,horizontalOnly:3},cr=function(){this.scale=1,this.fontStack="",this.imageName=null};cr.forText=function(t,o){var u=new cr;return u.scale=t||1,u.fontStack=o,u},cr.forImage=function(t){var o=new cr;return o.imageName=t,o};var or=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function zr(t,o,u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe){var Ye,ze=or.fromFeature(t,y);W===Br.vertical&&ze.verticalizePunctuation();var st=Fs.processBidirectionalText,Tt=Fs.processStyledBidirectionalText;if(st&&ze.sections.length===1){Ye=[];for(var Vt=0,Xt=st(ze.toString(),Hr(ze,z,b,o,p,se,Me));Vt0&&ch>G&&(G=ch)}else{var hp=hi[ca.fontStack],Jc=hp&&hp[ku];if(Jc&&Jc.rect)Yl=Jc.rect,Io=Jc.metrics;else{var pp=Ai[ca.fontStack],Jp=pp&&pp[ku];if(!Jp)continue;Io=Jp.metrics}Xl=24*(ia-ca.scale)}If?(Pn.verticalizable=!0,$a.push({glyph:ku,imageName:qs,x:ma,y:zs+Xl,vertical:If,scale:ca.scale,fontStack:ca.fontStack,sectionIndex:Wl,metrics:Io,rect:Yl}),ma+=uh*ca.scale+ao):($a.push({glyph:ku,imageName:qs,x:ma,y:zs+Xl,vertical:If,scale:ca.scale,fontStack:ca.fontStack,sectionIndex:Wl,metrics:Io,rect:Yl}),ma+=Io.advance*ca.scale+ao)}$a.length!==0&&(cs=Math.max(ma-ao,cs),Ei($a,0,$a.length-1,xo,G)),ma=0;var dp=la*ia+G;Zs.lineOffset=Math.max(G,iu),zs+=dp,Us=Math.max(dp,Us),++fs}else zs+=la,++fs}var Ec,Bh=zs- -17,fh=Jr(Wa),ef=fh.horizontalAlign,Sc=fh.verticalAlign;(function(vp,mp,Nh,gp,ed,zh,yp,Cc,td){var $u,rd=(mp-Nh)*ed;$u=zh!==yp?-Cc*gp- -17:(-gp*td+.5)*yp;for(var Uh=0,_p=vp;Uh<_p.length;Uh+=1)for(var ql=0,Zh=_p[Uh].positionedGlyphs;ql=0&&p>=t&&Un[this.text.charCodeAt(p)];p--)u--;this.text=this.text.substring(t,u),this.sectionIndex=this.sectionIndex.slice(t,u)},or.prototype.substring=function(t,o){var u=new or;return u.text=this.text.substring(t,o),u.sectionIndex=this.sectionIndex.slice(t,o),u.sections=this.sections,u},or.prototype.toString=function(){return this.text},or.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce(function(o,u){return Math.max(o,t.sections[u].scale)},0)},or.prototype.addTextSection=function(t,o){this.text+=t.text,this.sections.push(cr.forText(t.scale,t.fontStack||o));for(var u=this.sections.length-1,p=0;p=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Un={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},tr={};function ir(t,o,u,p,y,b){if(o.imageName){var S=p[o.imageName];return S?S.displaySize[0]*o.scale*24/b+y:0}var I=u[o.fontStack],D=I&&I[t];return D?D.metrics.advance*o.scale+y:0}function Sn(t,o,u,p){var y=Math.pow(t-o,2);return p?t=0,W=0,ee=0;ee-u/2;){if(--S<0)return!1;I-=t[S].dist(b),b=t[S]}I+=t[S].dist(t[S+1]),S++;for(var D=[],z=0;Ip;)z-=D.shift().angleDelta;if(z>y)return!1;S++,I+=V.dist(W)}return!0}function no(t){for(var o=0,u=0;uz){var Me=(z-D)/se,Oe=ga(W.x,ee.x,Me),Ye=ga(W.y,ee.y,Me),ze=new jr(Oe,Ye,ee.angleTo(W),V);return ze._round(),!S||Ga(t,ze,I,S,o)?ze:void 0}D+=se}}function as(t,o,u,p,y,b,S,I,D){var z=Zi(p,b,S),V=ss(p,y),W=V*S,ee=t[0].x===0||t[0].x===D||t[0].y===0||t[0].y===D;return o-W=0&&ea=0&&Hn=0&&gn+Lr<=$r){var la=new jr(ea,Hn,Ai,hn);la._round(),ze&&!Ga(Me,la,Tt,ze,st)||Yn.push(la)}}Zn+=Pn}return Xt||Yn.length||Vt||(Yn=se(Me,Zn/2,Ye,ze,st,Tt,Vt,!0,lr)),Yn}(t,ee?o/2*I%o:(V/2+2*b)*S*I%o,o,z,u,W,ee,!1,D)}function wo(t,o,u,p,y){for(var b=[],S=0;S=p&&W.x>=p||(V.x>=p?V=new fe(p,V.y+(p-V.x)/(W.x-V.x)*(W.y-V.y))._round():W.x>=p&&(W=new fe(p,V.y+(p-V.x)/(W.x-V.x)*(W.y-V.y))._round()),V.y>=y&&W.y>=y||(V.y>=y?V=new fe(V.x+(y-V.y)/(W.y-V.y)*(W.x-V.x),y)._round():W.y>=y&&(W=new fe(V.x+(y-V.y)/(W.y-V.y)*(W.x-V.x),y)._round()),D&&V.equals(D[D.length-1])||b.push(D=[V]),D.push(W)))))}return b}function Wo(t,o,u,p){var y=[],b=t.image,S=b.pixelRatio,I=b.paddedRect.w-2,D=b.paddedRect.h-2,z=t.right-t.left,V=t.bottom-t.top,W=b.stretchX||[[0,I]],ee=b.stretchY||[[0,D]],se=function(ea,Hn){return ea+Hn[1]-Hn[0]},Me=W.reduce(se,0),Oe=ee.reduce(se,0),Ye=I-Me,ze=D-Oe,st=0,Tt=Me,Vt=0,Xt=Oe,lr=0,Lr=Ye,$r=0,Zn=ze;if(b.content&&p){var gn=b.content;st=Xo(W,0,gn[0]),Vt=Xo(ee,0,gn[1]),Tt=Xo(W,gn[0],gn[2]),Xt=Xo(ee,gn[1],gn[3]),lr=gn[0]-st,$r=gn[1]-Vt,Lr=gn[2]-gn[0]-Tt,Zn=gn[3]-gn[1]-Xt}var Yn=function(ea,Hn,la,Wa){var yo=io(ea.stretch-st,Tt,z,t.left),_o=Si(ea.fixed-lr,Lr,ea.stretch,Me),ao=io(Hn.stretch-Vt,Xt,V,t.top),Mo=Si(Hn.fixed-$r,Zn,Hn.stretch,Oe),Po=io(la.stretch-st,Tt,z,t.left),ma=Si(la.fixed-lr,Lr,la.stretch,Me),zs=io(Wa.stretch-Vt,Xt,V,t.top),cs=Si(Wa.fixed-$r,Zn,Wa.stretch,Oe),Us=new fe(yo,ao),xo=new fe(Po,ao),fs=new fe(Po,zs),Yi=new fe(yo,zs),Da=new fe(_o/S,Mo/S),Ca=new fe(ma/S,cs/S),ia=o*Math.PI/180;if(ia){var iu=Math.sin(ia),Zs=Math.cos(ia),$a=[Zs,-iu,iu,Zs];Us._matMult($a),xo._matMult($a),Yi._matMult($a),fs._matMult($a)}var G=ea.stretch+ea.fixed,Rs=Hn.stretch+Hn.fixed;return{tl:Us,tr:xo,bl:Yi,br:fs,tex:{x:b.paddedRect.x+1+G,y:b.paddedRect.y+1+Rs,w:la.stretch+la.fixed-G,h:Wa.stretch+Wa.fixed-Rs},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Da,pixelOffsetBR:Ca,minFontScaleX:Lr/S/z,minFontScaleY:Zn/S/V,isSDF:u}};if(p&&(b.stretchX||b.stretchY))for(var hn=bs(W,Ye,Me),ki=bs(ee,ze,Oe),ai=0;ai0&&(se=Math.max(10,se),this.circleDiameter=se)}else{var Me=b.top*S-I,Oe=b.bottom*S+I,Ye=b.left*S-I,ze=b.right*S+I,st=b.collisionPadding;if(st&&(Ye-=st[0]*S,Me-=st[1]*S,ze+=st[2]*S,Oe+=st[3]*S),z){var Tt=new fe(Ye,Me),Vt=new fe(ze,Me),Xt=new fe(Ye,Oe),lr=new fe(ze,Oe),Lr=z*Math.PI/180;Tt._rotate(Lr),Vt._rotate(Lr),Xt._rotate(Lr),lr._rotate(Lr),Ye=Math.min(Tt.x,Vt.x,Xt.x,lr.x),ze=Math.max(Tt.x,Vt.x,Xt.x,lr.x),Me=Math.min(Tt.y,Vt.y,Xt.y,lr.y),Oe=Math.max(Tt.y,Vt.y,Xt.y,lr.y)}t.emplaceBack(o.x,o.y,Ye,Me,ze,Oe,u,p,y)}this.boxEndIndex=t.length},ra=function(t,o){if(t===void 0&&(t=[]),o===void 0&&(o=us),this.data=t,this.length=this.data.length,this.compare=o,this.length>0)for(var u=(this.length>>1)-1;u>=0;u--)this._down(u)};function us(t,o){return to?1:0}function oi(t,o,u){o===void 0&&(o=1),u===void 0&&(u=!1);for(var p=1/0,y=1/0,b=-1/0,S=-1/0,I=t[0],D=0;Db)&&(b=z.x),(!D||z.y>S)&&(S=z.y)}var V=Math.min(b-p,S-y),W=V/2,ee=new ra([],zi);if(V===0)return new fe(p,y);for(var se=p;seOe.d||!Oe.d)&&(Oe=ze,u&&console.log("found best %d after %d probes",Math.round(1e4*ze.d)/1e4,Ye)),ze.max-Oe.d<=o||(ee.push(new ua(ze.p.x-(W=ze.h/2),ze.p.y-W,W,t)),ee.push(new ua(ze.p.x+W,ze.p.y-W,W,t)),ee.push(new ua(ze.p.x-W,ze.p.y+W,W,t)),ee.push(new ua(ze.p.x+W,ze.p.y+W,W,t)),Ye+=4)}return u&&(console.log("num probes: "+Ye),console.log("best distance: "+Oe.d)),Oe.p}function zi(t,o){return o.max-t.max}function ua(t,o,u,p){this.p=new fe(t,o),this.h=u,this.d=function(y,b){for(var S=!1,I=1/0,D=0;Dy.y!=Me.y>y.y&&y.x<(Me.x-se.x)*(y.y-se.y)/(Me.y-se.y)+se.x&&(S=!S),I=Math.min(I,du(y,se,Me))}return(S?1:-1)*Math.sqrt(I)}(this.p,p),this.max=this.d+this.h*Math.SQRT2}ra.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},ra.prototype.pop=function(){if(this.length!==0){var t=this.data[0],o=this.data.pop();return this.length--,this.length>0&&(this.data[0]=o,this._down(0)),t}},ra.prototype.peek=function(){return this.data[0]},ra.prototype._up=function(t){for(var o=this.data,u=this.compare,p=o[t];t>0;){var y=t-1>>1,b=o[y];if(u(p,b)>=0)break;o[t]=b,t=y}o[t]=p},ra.prototype._down=function(t){for(var o=this.data,u=this.compare,p=this.length>>1,y=o[t];t=0)break;o[t]=S,t=b}o[t]=y};var To=Number.POSITIVE_INFINITY;function wl(t,o){return o[1]!==To?function(u,p,y){var b=0,S=0;switch(p=Math.abs(p),y=Math.abs(y),u){case"top-right":case"top-left":case"top":S=y-7;break;case"bottom-right":case"bottom-left":case"bottom":S=7-y}switch(u){case"top-right":case"bottom-right":case"right":b=-p;break;case"top-left":case"bottom-left":case"left":b=p}return[b,S]}(t,o[0],o[1]):function(u,p){var y=0,b=0;p<0&&(p=0);var S=p/Math.sqrt(2);switch(u){case"top-right":case"top-left":b=S-7;break;case"bottom-right":case"bottom-left":b=7-S;break;case"bottom":b=7-p;break;case"top":b=p-7}switch(u){case"top-right":case"bottom-right":y=-S;break;case"top-left":case"bottom-left":y=S;break;case"left":y=p;break;case"right":y=-p}return[y,b]}(t,o[0])}function Te(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Ut(t,o,u,p,y,b,S,I,D,z,V,W,ee,se,Me){var Oe=function(Vt,Xt,lr,Lr,$r,Zn,gn,Yn){for(var hn=Lr.layout.get("text-rotate").evaluate(Zn,{})*Math.PI/180,ki=[],ai=0,Pn=Xt.positionedLines;ai32640&&Qe(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):Ye.kind==="composite"&&((ze=[128*se.compositeTextSizes[0].evaluate(S,{},Me),128*se.compositeTextSizes[1].evaluate(S,{},Me)])[0]>32640||ze[1]>32640)&&Qe(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),t.addSymbols(t.text,Oe,ze,I,b,S,z,o,D.lineStartIndex,D.lineLength,ee,Me);for(var st=0,Tt=V;st=0;S--)if(p.dist(b[S])0)&&(b.value.kind!=="constant"||b.value.value.length>0),z=I.value.kind!=="constant"||!!I.value.value||Object.keys(I.parameters).length>0,V=y.get("symbol-sort-key");if(this.features=[],D||z){for(var W=o.iconDependencies,ee=o.glyphDependencies,se=o.availableImages,Me=new Fi(this.zoom),Oe=0,Ye=t;Oe=0;for(var Ai=0,hi=$r.sections;Ai=0;I--)b[I]={x:o[I].x,y:o[I].y,tileUnitDistanceFromAnchor:y},I>0&&(y+=o[I-1].dist(o[I]));for(var D=0;D0},Fe.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Fe.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Fe.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Fe.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Fe.prototype.addIndicesForPlacedSymbol=function(t,o){for(var u=t.placedSymbolArray.get(o),p=u.vertexStartIndex+4*u.numGlyphs,y=u.vertexStartIndex;y1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var u=0,p=this.symbolInstanceIndexes;u=0&&I.indexOf(b)===S&&o.addIndicesForPlacedSymbol(o.text,b)}),y.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,y.verticalPlacedTextSymbolIndex),y.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,y.placedIconSymbolIndex),y.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,y.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},yn("SymbolBucket",Fe,{omit:["layers","collisionBoxArray","features","compareText"]}),Fe.MAX_GLYPHS=65535,Fe.addDynamicAttributes=Ge;var nt=new ns({"symbol-placement":new Rn(pe.layout_symbol["symbol-placement"]),"symbol-spacing":new Rn(pe.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Rn(pe.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Cn(pe.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Rn(pe.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Rn(pe.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Rn(pe.layout_symbol["icon-ignore-placement"]),"icon-optional":new Rn(pe.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Rn(pe.layout_symbol["icon-rotation-alignment"]),"icon-size":new Cn(pe.layout_symbol["icon-size"]),"icon-text-fit":new Rn(pe.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Rn(pe.layout_symbol["icon-text-fit-padding"]),"icon-image":new Cn(pe.layout_symbol["icon-image"]),"icon-rotate":new Cn(pe.layout_symbol["icon-rotate"]),"icon-padding":new Rn(pe.layout_symbol["icon-padding"]),"icon-keep-upright":new Rn(pe.layout_symbol["icon-keep-upright"]),"icon-offset":new Cn(pe.layout_symbol["icon-offset"]),"icon-anchor":new Cn(pe.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Rn(pe.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Rn(pe.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Rn(pe.layout_symbol["text-rotation-alignment"]),"text-field":new Cn(pe.layout_symbol["text-field"]),"text-font":new Cn(pe.layout_symbol["text-font"]),"text-size":new Cn(pe.layout_symbol["text-size"]),"text-max-width":new Cn(pe.layout_symbol["text-max-width"]),"text-line-height":new Rn(pe.layout_symbol["text-line-height"]),"text-letter-spacing":new Cn(pe.layout_symbol["text-letter-spacing"]),"text-justify":new Cn(pe.layout_symbol["text-justify"]),"text-radial-offset":new Cn(pe.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Rn(pe.layout_symbol["text-variable-anchor"]),"text-anchor":new Cn(pe.layout_symbol["text-anchor"]),"text-max-angle":new Rn(pe.layout_symbol["text-max-angle"]),"text-writing-mode":new Rn(pe.layout_symbol["text-writing-mode"]),"text-rotate":new Cn(pe.layout_symbol["text-rotate"]),"text-padding":new Rn(pe.layout_symbol["text-padding"]),"text-keep-upright":new Rn(pe.layout_symbol["text-keep-upright"]),"text-transform":new Cn(pe.layout_symbol["text-transform"]),"text-offset":new Cn(pe.layout_symbol["text-offset"]),"text-allow-overlap":new Rn(pe.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Rn(pe.layout_symbol["text-ignore-placement"]),"text-optional":new Rn(pe.layout_symbol["text-optional"])}),xe={paint:new ns({"icon-opacity":new Cn(pe.paint_symbol["icon-opacity"]),"icon-color":new Cn(pe.paint_symbol["icon-color"]),"icon-halo-color":new Cn(pe.paint_symbol["icon-halo-color"]),"icon-halo-width":new Cn(pe.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Cn(pe.paint_symbol["icon-halo-blur"]),"icon-translate":new Rn(pe.paint_symbol["icon-translate"]),"icon-translate-anchor":new Rn(pe.paint_symbol["icon-translate-anchor"]),"text-opacity":new Cn(pe.paint_symbol["text-opacity"]),"text-color":new Cn(pe.paint_symbol["text-color"],{runtimeType:Yr,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new Cn(pe.paint_symbol["text-halo-color"]),"text-halo-width":new Cn(pe.paint_symbol["text-halo-width"]),"text-halo-blur":new Cn(pe.paint_symbol["text-halo-blur"]),"text-translate":new Rn(pe.paint_symbol["text-translate"]),"text-translate-anchor":new Rn(pe.paint_symbol["text-translate-anchor"])}),layout:nt},Ze=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:pn,this.defaultValue=t};Ze.prototype.evaluate=function(t){if(t.formattedSection){var o=this.defaultValue.property.overrides;if(o&&o.hasOverride(t.formattedSection))return o.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},Ze.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},Ze.prototype.outputDefined=function(){return!1},Ze.prototype.serialize=function(){return null},yn("FormatSectionOverride",Ze,{omit:["defaultValue"]});var Ae=function(t){function o(u){t.call(this,u,xe)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.recalculate=function(u,p){if(t.prototype.recalculate.call(this,u,p),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var y=this.layout.get("text-writing-mode");if(y){for(var b=[],S=0,I=y;S",targetMapId:p,sourceMapId:b.mapId})}}},_a.prototype.receive=function(t){var o=t.data,u=o.id;if(u&&(!o.targetMapId||this.mapId===o.targetMapId))if(o.type===""){delete this.tasks[u];var p=this.cancelCallbacks[u];delete this.cancelCallbacks[u],p&&p()}else Nr()||o.mustQueue?(this.tasks[u]=o,this.taskQueue.push(u),this.invoker.trigger()):this.processTask(u,o)},_a.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),o=this.tasks[t];delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),o&&this.processTask(t,o)}},_a.prototype.processTask=function(t,o){var u=this;if(o.type===""){var p=this.callbacks[t];delete this.callbacks[t],p&&(o.error?p(na(o.error)):p(null,na(o.data)))}else{var y=!1,b=Ce(this.globalScope)?void 0:[],S=o.hasCallback?function(V,W){y=!0,delete u.cancelCallbacks[t],u.target.postMessage({id:t,type:"",sourceMapId:u.mapId,error:V?uu(V):null,data:uu(W,b)},b)}:function(V){y=!0},I=null,D=na(o.data);if(this.parent[o.type])I=this.parent[o.type](o.sourceMapId,D,S);else if(this.parent.getWorkerSource){var z=o.type.split(".");I=this.parent.getWorkerSource(o.sourceMapId,z[0],D.source)[z[1]](D,S)}else S(new Error("Could not find function "+o.type));!y&&I&&I.cancel&&(this.cancelCallbacks[t]=I.cancel)}},_a.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Ia=function(t,o){t&&(o?this.setSouthWest(t).setNorthEast(o):t.length===4?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Ia.prototype.setNorthEast=function(t){return this._ne=t instanceof pa?new pa(t.lng,t.lat):pa.convert(t),this},Ia.prototype.setSouthWest=function(t){return this._sw=t instanceof pa?new pa(t.lng,t.lat):pa.convert(t),this},Ia.prototype.extend=function(t){var o,u,p=this._sw,y=this._ne;if(t instanceof pa)o=t,u=t;else{if(!(t instanceof Ia))return Array.isArray(t)?t.length===4||t.every(Array.isArray)?this.extend(Ia.convert(t)):this.extend(pa.convert(t)):this;if(u=t._ne,!(o=t._sw)||!u)return this}return p||y?(p.lng=Math.min(o.lng,p.lng),p.lat=Math.min(o.lat,p.lat),y.lng=Math.max(u.lng,y.lng),y.lat=Math.max(u.lat,y.lat)):(this._sw=new pa(o.lng,o.lat),this._ne=new pa(u.lng,u.lat)),this},Ia.prototype.getCenter=function(){return new pa((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Ia.prototype.getSouthWest=function(){return this._sw},Ia.prototype.getNorthEast=function(){return this._ne},Ia.prototype.getNorthWest=function(){return new pa(this.getWest(),this.getNorth())},Ia.prototype.getSouthEast=function(){return new pa(this.getEast(),this.getSouth())},Ia.prototype.getWest=function(){return this._sw.lng},Ia.prototype.getSouth=function(){return this._sw.lat},Ia.prototype.getEast=function(){return this._ne.lng},Ia.prototype.getNorth=function(){return this._ne.lat},Ia.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Ia.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Ia.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Ia.prototype.contains=function(t){var o=pa.convert(t),u=o.lng,p=o.lat,y=this._sw.lng<=u&&u<=this._ne.lng;return this._sw.lng>this._ne.lng&&(y=this._sw.lng>=u&&u>=this._ne.lng),this._sw.lat<=p&&p<=this._ne.lat&&y},Ia.convert=function(t){return!t||t instanceof Ia?t:new Ia(t)};var pa=function(t,o){if(isNaN(t)||isNaN(o))throw new Error("Invalid LngLat object: ("+t+", "+o+")");if(this.lng=+t,this.lat=+o,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};pa.prototype.wrap=function(){return new pa(rr(this.lng,-180,180),this.lat)},pa.prototype.toArray=function(){return[this.lng,this.lat]},pa.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},pa.prototype.distanceTo=function(t){var o=Math.PI/180,u=this.lat*o,p=t.lat*o,y=Math.sin(u)*Math.sin(p)+Math.cos(u)*Math.cos(p)*Math.cos((t.lng-this.lng)*o);return 63710088e-1*Math.acos(Math.min(y,1))},pa.prototype.toBounds=function(t){t===void 0&&(t=0);var o=360*t/40075017,u=o/Math.cos(Math.PI/180*this.lat);return new Ia(new pa(this.lng-u,this.lat-o),new pa(this.lng+u,this.lat+o))},pa.convert=function(t){if(t instanceof pa)return t;if(Array.isArray(t)&&(t.length===2||t.length===3))return new pa(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&typeof t=="object"&&t!==null)return new pa(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Tl=2*Math.PI*63710088e-1;function Is(t){return Tl*Math.cos(t*Math.PI/180)}function Ku(t){return(180+t)/360}function yu(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function ah(t,o){return t/Is(o)}function Lu(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var xc=function(t,o,u){u===void 0&&(u=0),this.x=+t,this.y=+o,this.z=+u};xc.fromLngLat=function(t,o){o===void 0&&(o=0);var u=pa.convert(t);return new xc(Ku(u.lng),yu(u.lat),ah(o,u.lat))},xc.prototype.toLngLat=function(){return new pa(360*this.x-180,Lu(this.y))},xc.prototype.toAltitude=function(){return this.z*Is(Lu(this.y))},xc.prototype.meterInMercatorCoordinateUnits=function(){return 1/Tl*(t=Lu(this.y),1/Math.cos(t*Math.PI/180));var t};var oh=function(t,o,u){this.z=t,this.x=o,this.y=u,this.key=Fh(0,t,t,o,u)};oh.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},oh.prototype.url=function(t,o){var u,p,y,b,S,I=(p=this.y,y=this.z,b=ls(256*(u=this.x),256*(p=Math.pow(2,y)-p-1),y),S=ls(256*(u+1),256*(p+1),y),b[0]+","+b[1]+","+S[0]+","+S[1]),D=function(z,V,W){for(var ee,se="",Me=z;Me>0;Me--)se+=(V&(ee=1<this.canonical.z?new jn(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new jn(t,this.wrap,t,this.canonical.x>>o,this.canonical.y>>o)},jn.prototype.calculateScaledKey=function(t,o){var u=this.canonical.z-t;return t>this.canonical.z?Fh(this.wrap*+o,t,this.canonical.z,this.canonical.x,this.canonical.y):Fh(this.wrap*+o,t,t,this.canonical.x>>u,this.canonical.y>>u)},jn.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var o=this.canonical.z-t.canonical.z;return t.overscaledZ===0||t.overscaledZ>o&&t.canonical.y===this.canonical.y>>o},jn.prototype.children=function(t){if(this.overscaledZ>=t)return[new jn(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var o=this.canonical.z+1,u=2*this.canonical.x,p=2*this.canonical.y;return[new jn(o,this.wrap,o,u,p),new jn(o,this.wrap,o,u+1,p),new jn(o,this.wrap,o,u,p+1),new jn(o,this.wrap,o,u+1,p+1)]},jn.prototype.isLessThan=function(t){return this.wrapt.wrap)&&(this.overscaledZt.overscaledZ)&&(this.canonical.xt.canonical.x)&&this.canonical.y=this.dim+1||o<-1||o>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(o+1)*this.stride+(t+1)},Mf.prototype._unpackMapbox=function(t,o,u){return(256*t*256+256*o+u)/10-1e4},Mf.prototype._unpackTerrarium=function(t,o,u){return 256*t+o+u/256-32768},Mf.prototype.getPixels=function(){return new go({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Mf.prototype.backfillBorder=function(t,o,u){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var p=o*this.dim,y=o*this.dim+this.dim,b=u*this.dim,S=u*this.dim+this.dim;switch(o){case-1:p=y-1;break;case 1:y=p+1}switch(u){case-1:b=S-1;break;case 1:S=b+1}for(var I=-o*this.dim,D=-u*this.dim,z=b;z=0&&V[3]>=0&&I.insert(S,V[0],V[1],V[2],V[3])}},Pf.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new gu.VectorTile(new wf(this.rawTileData)).layers,this.sourceLayerCoder=new Qp(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Pf.prototype.query=function(t,o,u,p){var y=this;this.loadVTLayers();for(var b=t.params||{},S=8192/t.tileSize/t.scale,I=Dc(b.filter),D=t.queryGeometry,z=t.queryPadding*S,V=_0(D),W=this.grid.query(V.minX-z,V.minY-z,V.maxX+z,V.maxY+z),ee=_0(t.cameraQueryGeometry),se=this.grid3D.query(ee.minX-z,ee.minY-z,ee.maxX+z,ee.maxY+z,function(Vt,Xt,lr,Lr){return function($r,Zn,gn,Yn,hn){for(var ki=0,ai=$r;ki=Pn.x&&hn>=Pn.y)return!0}var Ai=[new fe(Zn,gn),new fe(Zn,hn),new fe(Yn,hn),new fe(Yn,gn)];if($r.length>2){for(var hi=0,ea=Ai;hi=0)return!0;return!1}(b,W)){var ee=this.sourceLayerCoder.decode(u),se=this.vtLayers[ee].feature(p);if(y.needGeometry){var Me=co(se,!0);if(!y.filter(new Fi(this.tileID.overscaledZ),Me,this.tileID.canonical))return}else if(!y.filter(new Fi(this.tileID.overscaledZ),se))return;for(var Oe=this.getId(se,ee),Ye=0;Yep)y=!1;else if(o)if(this.expirationTimeAr&&(t.getActor().send("enforceCacheSizeLimit",nr),gi=0)},m.clamp=gt,m.clearTileCache=function(t){var o=J.caches.delete("mapbox-tiles");t&&o.catch(t).then(function(){return t()})},m.clipLine=wo,m.clone=function(t){var o=new ta(16);return o[0]=t[0],o[1]=t[1],o[2]=t[2],o[3]=t[3],o[4]=t[4],o[5]=t[5],o[6]=t[6],o[7]=t[7],o[8]=t[8],o[9]=t[9],o[10]=t[10],o[11]=t[11],o[12]=t[12],o[13]=t[13],o[14]=t[14],o[15]=t[15],o},m.clone$1=Je,m.clone$2=function(t){var o=new ta(3);return o[0]=t[0],o[1]=t[1],o[2]=t[2],o},m.collisionCircleLayout=qp,m.config=Wn,m.create=function(){var t=new ta(16);return ta!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},m.create$1=function(){var t=new ta(9);return ta!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},m.create$2=function(){var t=new ta(4);return ta!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},m.createCommonjsModule=ve,m.createExpression=sc,m.createLayout=Na,m.createStyleLayer=function(t){return t.type==="custom"?new Vr(t):new sn[t.type](t)},m.cross=function(t,o,u){var p=o[0],y=o[1],b=o[2],S=u[0],I=u[1],D=u[2];return t[0]=y*D-b*I,t[1]=b*S-p*D,t[2]=p*I-y*S,t},m.deepEqual=function t(o,u){if(Array.isArray(o)){if(!Array.isArray(u)||o.length!==u.length)return!1;for(var p=0;p0&&(b=1/Math.sqrt(b)),t[0]=o[0]*b,t[1]=o[1]*b,t[2]=o[2]*b,t},m.number=ga,m.offscreenCanvasSupported=ti,m.ortho=function(t,o,u,p,y,b,S){var I=1/(o-u),D=1/(p-y),z=1/(b-S);return t[0]=-2*I,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*D,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*z,t[11]=0,t[12]=(o+u)*I,t[13]=(y+p)*D,t[14]=(S+b)*z,t[15]=1,t},m.parseGlyphPBF=function(t){return new wf(t).readFields(Rr,[])},m.pbf=wf,m.performSymbolLayout=function(t,o,u,p,y,b,S){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var I=t.layers[0].layout,D=t.layers[0]._unevaluatedLayout._values,z={};if(t.textSizeData.kind==="composite"){var V=t.textSizeData,W=V.maxZoom;z.compositeTextSizes=[D["text-size"].possiblyEvaluate(new Fi(V.minZoom),S),D["text-size"].possiblyEvaluate(new Fi(W),S)]}if(t.iconSizeData.kind==="composite"){var ee=t.iconSizeData,se=ee.maxZoom;z.compositeIconSizes=[D["icon-size"].possiblyEvaluate(new Fi(ee.minZoom),S),D["icon-size"].possiblyEvaluate(new Fi(se),S)]}z.layoutTextSize=D["text-size"].possiblyEvaluate(new Fi(t.zoom+1),S),z.layoutIconSize=D["icon-size"].possiblyEvaluate(new Fi(t.zoom+1),S),z.textMaxSize=D["text-size"].possiblyEvaluate(new Fi(18));for(var Me=24*I.get("text-line-height"),Oe=I.get("text-rotation-alignment")==="map"&&I.get("symbol-placement")!=="point",Ye=I.get("text-keep-upright"),ze=I.get("text-size"),st=function(){var Xt=Vt[Tt],lr=I.get("text-font").evaluate(Xt,{},S).join(","),Lr=ze.evaluate(Xt,{},S),$r=z.layoutTextSize.evaluate(Xt,{},S),Zn=z.layoutIconSize.evaluate(Xt,{},S),gn={horizontal:{},vertical:void 0},Yn=Xt.text,hn=[0,0];if(Yn){var ki=Yn.toString(),ai=24*I.get("text-letter-spacing").evaluate(Xt,{},S),Pn=function(Yi){for(var Da=0,Ca=Yi;Da=8192||xp.y<0||xp.y>=8192||function(No,Ml,b0,tf,od,Bd,bp,Kl,Ep,Vh,Sp,Cp,sd,Nd,Gh,zd,Ud,Zd,jd,Vd,Qa,Ap,Gd,$l,Tv){var Hd,Of,ph,dh,vh,mh=No.addToLineVertexArray(Ml,b0),Wd=0,Xd=0,Yd=0,qd=0,ud=-1,Kd=-1,rf={},Mv=we(""),$d=0,ld=0;if(Kl._unevaluatedLayout.getValue("text-radial-offset")===void 0?($d=(Hd=Kl.layout.get("text-offset").evaluate(Qa,{},$l).map(function(wp){return 24*wp}))[0],ld=Hd[1]):($d=24*Kl.layout.get("text-radial-offset").evaluate(Qa,{},$l),ld=To),No.allowVerticalPlacement&&tf.vertical){var Pv=Kl.layout.get("text-rotate").evaluate(Qa,{},$l)+90;dh=new Yo(Ep,Ml,Vh,Sp,Cp,tf.vertical,sd,Nd,Gh,Pv),bp&&(vh=new Yo(Ep,Ml,Vh,Sp,Cp,bp,Ud,Zd,Gh,Pv))}if(od){var Qd=Kl.layout.get("icon-rotate").evaluate(Qa,{}),Jd=Kl.layout.get("icon-text-fit")!=="none",ev=Wo(od,Qd,Gd,Jd),cd=bp?Wo(bp,Qd,Gd,Jd):void 0;ph=new Yo(Ep,Ml,Vh,Sp,Cp,od,Ud,Zd,!1,Qd),Wd=4*ev.length;var tv=No.iconSizeData,nf=null;tv.kind==="source"?(nf=[128*Kl.layout.get("icon-size").evaluate(Qa,{})])[0]>32640&&Qe(No.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):tv.kind==="composite"&&((nf=[128*Ap.compositeIconSizes[0].evaluate(Qa,{},$l),128*Ap.compositeIconSizes[1].evaluate(Qa,{},$l)])[0]>32640||nf[1]>32640)&&Qe(No.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),No.addSymbols(No.icon,ev,nf,Vd,jd,Qa,!1,Ml,mh.lineStartIndex,mh.lineLength,-1,$l),ud=No.icon.placedSymbolArray.length-1,cd&&(Xd=4*cd.length,No.addSymbols(No.icon,cd,nf,Vd,jd,Qa,Br.vertical,Ml,mh.lineStartIndex,mh.lineLength,-1,$l),Kd=No.icon.placedSymbolArray.length-1)}for(var rv in tf.horizontal){var fd=tf.horizontal[rv];if(!Of){Mv=we(fd.text);var E0=Kl.layout.get("text-rotate").evaluate(Qa,{},$l);Of=new Yo(Ep,Ml,Vh,Sp,Cp,fd,sd,Nd,Gh,E0)}var Iv=fd.positionedLines.length===1;if(Yd+=Ut(No,Ml,fd,Bd,Kl,Gh,Qa,zd,mh,tf.vertical?Br.horizontal:Br.horizontalOnly,Iv?Object.keys(tf.horizontal):[rv],rf,ud,Ap,$l),Iv)break}tf.vertical&&(qd+=Ut(No,Ml,tf.vertical,Bd,Kl,Gh,Qa,zd,mh,Br.vertical,["vertical"],rf,Kd,Ap,$l));var S0=Of?Of.boxStartIndex:No.collisionBoxArray.length,C0=Of?Of.boxEndIndex:No.collisionBoxArray.length,A0=dh?dh.boxStartIndex:No.collisionBoxArray.length,w0=dh?dh.boxEndIndex:No.collisionBoxArray.length,T0=ph?ph.boxStartIndex:No.collisionBoxArray.length,M0=ph?ph.boxEndIndex:No.collisionBoxArray.length,P0=vh?vh.boxStartIndex:No.collisionBoxArray.length,I0=vh?vh.boxEndIndex:No.collisionBoxArray.length,Ac=-1,hd=function(wp,Rv){return wp&&wp.circleDiameter?Math.max(wp.circleDiameter,Rv):Rv};Ac=hd(Of,Ac),Ac=hd(dh,Ac),Ac=hd(ph,Ac);var Ov=(Ac=hd(vh,Ac))>-1?1:0;Ov&&(Ac*=Tv/24),No.glyphOffsetArray.length>=Fe.MAX_GLYPHS&&Qe("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Qa.sortKey!==void 0&&No.addToSortKeyRanges(No.symbolInstances.length,Qa.sortKey),No.symbolInstances.emplaceBack(Ml.x,Ml.y,rf.right>=0?rf.right:-1,rf.center>=0?rf.center:-1,rf.left>=0?rf.left:-1,rf.vertical||-1,ud,Kd,Mv,S0,C0,A0,w0,T0,M0,P0,I0,Vh,Yd,qd,Wd,Xd,Ov,0,sd,$d,ld,Ac)}(Yi,xp,_m,Ca,ia,iu,Xl,Yi.layers[0],Yi.collisionBoxArray,Da.index,Da.sourceLayerIndex,Yi.index,If,hp,Jp,Rs,bc,Jc,dp,Yl,Da,Zs,ca,Wl,$a)};if(Ec==="line")for(var Sc=0,vp=wo(Da.geometry,0,0,8192,8192);Sc1){var td=Ha(Cc,pp,Ca.vertical||qs,ia,24,lh);td&&ef(Cc,td)}}else if(Da.type==="Polygon")for(var $u=0,rd=$f(Da.geometry,0);$u=Pi.maxzoom||Pi.visibility!=="none"&&(J(yi,this.zoom,oe),(zt[Pi.id]=Pi.createBucket({index:pe.bucketLayerIDs.length,layers:yi,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:nn,sourceID:this.source})).populate(Zr,vr,this.tileID.canonical),pe.bucketLayerIDs.push(yi.map(function(qi){return qi.id})))}}}var bi=m.mapObject(vr.glyphDependencies,function(qi){return Object.keys(qi).map(Number)});Object.keys(bi).length?ye.send("getGlyphs",{uid:this.uid,stacks:bi},function(qi,Ii){ke||(ke=qi,vt=Ii,Aa.call(He))}):vt={};var ht=Object.keys(vr.iconDependencies);ht.length?ye.send("getImages",{icons:ht,source:this.source,tileID:this.tileID,type:"icons"},function(qi,Ii){ke||(ke=qi,pr=Ii,Aa.call(He))}):pr={};var Pt=Object.keys(vr.patternDependencies);function Aa(){if(ke)return Pe(ke);if(vt&&pr&&Ft){var qi=new fe(vt),Ii=new m.ImageAtlas(pr,Ft);for(var pi in zt){var wa=zt[pi];wa instanceof m.SymbolBucket?(J(wa.layers,this.zoom,oe),m.performSymbolLayout(wa,vt,qi.positions,pr,Ii.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):wa.hasPattern&&(wa instanceof m.LineBucket||wa instanceof m.FillBucket||wa instanceof m.FillExtrusionBucket)&&(J(wa.layers,this.zoom,oe),wa.addFeatures(vr,this.tileID.canonical,Ii.patternPositions))}this.status="done",Pe(null,{buckets:m.values(zt).filter(function($s){return!$s.isEmpty()}),featureIndex:pe,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:qi.image,imageAtlas:Ii,glyphMap:this.returnDependencies?vt:null,iconMap:this.returnDependencies?pr:null,glyphPositions:this.returnDependencies?qi.positions:null})}}Pt.length?ye.send("getImages",{icons:Pt,source:this.source,tileID:this.tileID,type:"patterns"},function(qi,Ii){ke||(ke=qi,Ft=Ii,Aa.call(He))}):Ft={},Aa.call(this)};var et=function(H,Q,oe,ye){this.actor=H,this.layerIndex=Q,this.availableImages=oe,this.loadVectorData=ye||Xe,this.loading={},this.loaded={}};et.prototype.loadTile=function(H,Q){var oe=this,ye=H.uid;this.loading||(this.loading={});var Pe=!!(H&&H.request&&H.request.collectResourceTiming)&&new m.RequestPerformance(H.request),He=this.loading[ye]=new Le(H);He.abort=this.loadVectorData(H,function(rt,pe){if(delete oe.loading[ye],rt||!pe)return He.status="done",oe.loaded[ye]=He,Q(rt);var ke=pe.rawData,vt={};pe.expires&&(vt.expires=pe.expires),pe.cacheControl&&(vt.cacheControl=pe.cacheControl);var pr={};if(Pe){var Ft=Pe.finish();Ft&&(pr.resourceTiming=JSON.parse(JSON.stringify(Ft)))}He.vectorTile=pe.vectorTile,He.parse(pe.vectorTile,oe.layerIndex,oe.availableImages,oe.actor,function(zt,vr){if(zt||!vr)return Q(zt);Q(null,m.extend({rawTileData:ke.slice(0)},vr,vt,pr))}),oe.loaded=oe.loaded||{},oe.loaded[ye]=He})},et.prototype.reloadTile=function(H,Q){var oe=this,ye=this.loaded,Pe=H.uid,He=this;if(ye&&ye[Pe]){var rt=ye[Pe];rt.showCollisionBoxes=H.showCollisionBoxes;var pe=function(ke,vt){var pr=rt.reloadCallback;pr&&(delete rt.reloadCallback,rt.parse(rt.vectorTile,He.layerIndex,oe.availableImages,He.actor,pr)),Q(ke,vt)};rt.status==="parsing"?rt.reloadCallback=pe:rt.status==="done"&&(rt.vectorTile?rt.parse(rt.vectorTile,this.layerIndex,this.availableImages,this.actor,pe):pe())}},et.prototype.abortTile=function(H,Q){var oe=this.loading,ye=H.uid;oe&&oe[ye]&&oe[ye].abort&&(oe[ye].abort(),delete oe[ye]),Q()},et.prototype.removeTile=function(H,Q){var oe=this.loaded,ye=H.uid;oe&&oe[ye]&&delete oe[ye],Q()};var Ue=m.window.ImageBitmap,gt=function(){this.loaded={}};function rr(H,Q){if(H.length!==0){xt(H[0],Q);for(var oe=1;oe=0!=!!Q&&H.reverse()}gt.prototype.loadTile=function(H,Q){var oe=H.uid,ye=H.encoding,Pe=H.rawImageData,He=Ue&&Pe instanceof Ue?this.getImageData(Pe):Pe,rt=new m.DEMData(oe,He,ye);this.loaded=this.loaded||{},this.loaded[oe]=rt,Q(null,rt)},gt.prototype.getImageData=function(H){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(H.width,H.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=H.width,this.offscreenCanvas.height=H.height,this.offscreenCanvasContext.drawImage(H,0,0,H.width,H.height);var Q=this.offscreenCanvasContext.getImageData(-1,-1,H.width+2,H.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new m.RGBAImage({width:Q.width,height:Q.height},Q.data)},gt.prototype.removeTile=function(H){var Q=this.loaded,oe=H.uid;Q&&Q[oe]&&delete Q[oe]};var Yt=m.vectorTile.VectorTileFeature.prototype.toGeoJSON,Et=function(H){this._feature=H,this.extent=m.EXTENT,this.type=H.type,this.properties=H.tags,"id"in H&&!isNaN(H.id)&&(this.id=parseInt(H.id,10))};Et.prototype.loadGeometry=function(){if(this._feature.type===1){for(var H=[],Q=0,oe=this._feature.geometry;Q>31}function A(H,Q){for(var oe=H.loadGeometry(),ye=H.type,Pe=0,He=0,rt=oe.length,pe=0;pe>1;(function nn(Zr,Yr,_i,an,on,Xi){for(;on>an;){if(on-an>600){var yi=on-an+1,Pi=_i-an+1,bi=Math.log(yi),ht=.5*Math.exp(2*bi/3),Pt=.5*Math.sqrt(bi*ht*(yi-ht)/yi)*(Pi-yi/2<0?-1:1);nn(Zr,Yr,_i,Math.max(an,Math.floor(_i-Pi*ht/yi+Pt)),Math.min(on,Math.floor(_i+(yi-Pi)*ht/yi+Pt)),Xi)}var Aa=Yr[2*_i+Xi],qi=an,Ii=on;for(De(Zr,Yr,an,_i),Yr[2*on+Xi]>Aa&&De(Zr,Yr,an,on);qiAa;)Ii--}Yr[2*an+Xi]===Aa?De(Zr,Yr,an,Ii):De(Zr,Yr,++Ii,on),Ii<=_i&&(an=Ii+1),_i<=Ii&&(on=Ii-1)}})(pr,Ft,Ot,vr,En,pn%2),vt(pr,Ft,zt,vr,Ot-1,pn+1),vt(pr,Ft,zt,Ot+1,En,pn+1)}})(rt,pe,ye,0,rt.length-1,0)};Cr.prototype.range=function(H,Q,oe,ye){return function(Pe,He,rt,pe,ke,vt,pr){for(var Ft,zt,vr=[0,Pe.length-1,0],En=[];vr.length;){var pn=vr.pop(),Ot=vr.pop(),nn=vr.pop();if(Ot-nn<=pr)for(var Zr=nn;Zr<=Ot;Zr++)zt=He[2*Zr+1],(Ft=He[2*Zr])>=rt&&Ft<=ke&&zt>=pe&&zt<=vt&&En.push(Pe[Zr]);else{var Yr=Math.floor((nn+Ot)/2);zt=He[2*Yr+1],(Ft=He[2*Yr])>=rt&&Ft<=ke&&zt>=pe&&zt<=vt&&En.push(Pe[Yr]);var _i=(pn+1)%2;(pn===0?rt<=Ft:pe<=zt)&&(vr.push(nn),vr.push(Yr-1),vr.push(_i)),(pn===0?ke>=Ft:vt>=zt)&&(vr.push(Yr+1),vr.push(Ot),vr.push(_i))}}return En}(this.ids,this.coords,H,Q,oe,ye,this.nodeSize)},Cr.prototype.within=function(H,Q,oe){return function(ye,Pe,He,rt,pe,ke){for(var vt=[0,ye.length-1,0],pr=[],Ft=pe*pe;vt.length;){var zt=vt.pop(),vr=vt.pop(),En=vt.pop();if(vr-En<=ke)for(var pn=En;pn<=vr;pn++)mt(Pe[2*pn],Pe[2*pn+1],He,rt)<=Ft&&pr.push(ye[pn]);else{var Ot=Math.floor((En+vr)/2),nn=Pe[2*Ot],Zr=Pe[2*Ot+1];mt(nn,Zr,He,rt)<=Ft&&pr.push(ye[Ot]);var Yr=(zt+1)%2;(zt===0?He-pe<=nn:rt-pe<=Zr)&&(vt.push(En),vt.push(Ot-1),vt.push(Yr)),(zt===0?He+pe>=nn:rt+pe>=Zr)&&(vt.push(Ot+1),vt.push(vr),vt.push(Yr))}}return pr}(this.ids,this.coords,H,Q,oe,this.nodeSize)};var ei={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(H){return H}},vn=function(H){this.options=aa(Object.create(ei),H),this.trees=new Array(this.options.maxZoom+1)};function di(H,Q,oe,ye,Pe){return{x:H,y:Q,zoom:1/0,id:oe,parentId:-1,numPoints:ye,properties:Pe}}function Wn(H,Q){var oe=H.geometry.coordinates,ye=oe[1];return{x:qn(oe[0]),y:mi(ye),zoom:1/0,index:Q,parentId:-1}}function si(H){return{type:"Feature",id:H.id,properties:vi(H),geometry:{type:"Point",coordinates:[(ye=H.x,360*(ye-.5)),(Q=H.y,oe=(180-360*Q)*Math.PI/180,360*Math.atan(Math.exp(oe))/Math.PI-90)]}};var Q,oe,ye}function vi(H){var Q=H.numPoints,oe=Q>=1e4?Math.round(Q/1e3)+"k":Q>=1e3?Math.round(Q/100)/10+"k":Q;return aa(aa({},H.properties),{cluster:!0,cluster_id:H.id,point_count:Q,point_count_abbreviated:oe})}function qn(H){return H/360+.5}function mi(H){var Q=Math.sin(H*Math.PI/180),oe=.5-.25*Math.log((1+Q)/(1-Q))/Math.PI;return oe<0?0:oe>1?1:oe}function aa(H,Q){for(var oe in Q)H[oe]=Q[oe];return H}function Wi(H){return H.x}function Oi(H){return H.y}function Ki(H,Q,oe,ye,Pe,He){var rt=Pe-oe,pe=He-ye;if(rt!==0||pe!==0){var ke=((H-oe)*rt+(Q-ye)*pe)/(rt*rt+pe*pe);ke>1?(oe=Pe,ye=He):ke>0&&(oe+=rt*ke,ye+=pe*ke)}return(rt=H-oe)*rt+(pe=Q-ye)*pe}function oa(H,Q,oe,ye){var Pe={id:H===void 0?null:H,type:Q,geometry:oe,tags:ye,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(He){var rt=He.geometry,pe=He.type;if(pe==="Point"||pe==="MultiPoint"||pe==="LineString")Mi(He,rt);else if(pe==="Polygon"||pe==="MultiLineString")for(var ke=0;ke0&&(rt+=ye?(Pe*vt-ke*He)/2:Math.sqrt(Math.pow(ke-Pe,2)+Math.pow(vt-He,2))),Pe=ke,He=vt}var pr=Q.length-3;Q[2]=1,function Ft(zt,vr,En,pn){for(var Ot,nn=pn,Zr=En-vr>>1,Yr=En-vr,_i=zt[vr],an=zt[vr+1],on=zt[En],Xi=zt[En+1],yi=vr+3;yinn)Ot=yi,nn=Pi;else if(Pi===nn){var bi=Math.abs(yi-Zr);bipn&&(Ot-vr>3&&Ft(zt,vr,Ot,pn),zt[Ot+2]=nn,En-Ot>3&&Ft(zt,Ot,En,pn))}(Q,0,pr,oe),Q[pr+2]=1,Q.size=Math.abs(rt),Q.start=0,Q.end=Q.size}function ji(H,Q,oe,ye){for(var Pe=0;Pe1?1:oe}function me(H,Q,oe,ye,Pe,He,rt,pe){if(ye/=Q,He>=(oe/=Q)&&rt=ye)return null;for(var ke=[],vt=0;vt=oe&&En=ye)){var pn=[];if(zt==="Point"||zt==="MultiPoint")Dn(Ft,pn,oe,ye,Pe);else if(zt==="LineString")Za(Ft,pn,oe,ye,Pe,!1,pe.lineMetrics);else if(zt==="MultiLineString")Nt(Ft,pn,oe,ye,Pe,!1);else if(zt==="Polygon")Nt(Ft,pn,oe,ye,Pe,!0);else if(zt==="MultiPolygon")for(var Ot=0;Ot=oe&&rt<=ye&&(Q.push(H[He]),Q.push(H[He+1]),Q.push(H[He+2]))}}function Za(H,Q,oe,ye,Pe,He,rt){for(var pe,ke,vt=hs(H),pr=Pe===0?Ar:rn,Ft=H.start,zt=0;ztoe&&(ke=pr(vt,vr,En,Ot,nn,oe),rt&&(vt.start=Ft+pe*ke)):Zr>ye?Yr=oe&&(ke=pr(vt,vr,En,Ot,nn,oe),_i=!0),Yr>ye&&Zr<=ye&&(ke=pr(vt,vr,En,Ot,nn,ye),_i=!0),!He&&_i&&(rt&&(vt.end=Ft+pe*ke),Q.push(vt),vt=hs(H)),rt&&(Ft+=pe)}var an=H.length-3;vr=H[an],En=H[an+1],pn=H[an+2],(Zr=Pe===0?vr:En)>=oe&&Zr<=ye&&nr(vt,vr,En,pn),an=vt.length-3,He&&an>=3&&(vt[an]!==vt[0]||vt[an+1]!==vt[1])&&nr(vt,vt[0],vt[1],vt[2]),vt.length&&Q.push(vt)}function hs(H){var Q=[];return Q.size=H.size,Q.start=H.start,Q.end=H.end,Q}function Nt(H,Q,oe,ye,Pe,He){for(var rt=0;rtrt.maxX&&(rt.maxX=pr),Ft>rt.maxY&&(rt.maxY=Ft)}return rt}function Di(H,Q,oe,ye){var Pe=Q.geometry,He=Q.type,rt=[];if(He==="Point"||He==="MultiPoint")for(var pe=0;pe0&&Q.size<(Pe?rt:ye))oe.numPoints+=Q.length/3;else{for(var pe=[],ke=0;kert)&&(oe.numSimplified++,pe.push(Q[ke]),pe.push(Q[ke+1])),oe.numPoints++;Pe&&function(vt,pr){for(var Ft=0,zt=0,vr=vt.length,En=vr-2;zt0===pr)for(zt=0,vr=vt.length;zt24)throw new Error("maxZoom should be in the 0-24 range");if(Q.promoteId&&Q.generateId)throw new Error("promoteId and generateId cannot be used together.");var ye=function(Pe,He){var rt=[];if(Pe.type==="FeatureCollection")for(var pe=0;pe=ye;vt--){var pr=+Date.now();pe=this._cluster(pe,vt),this.trees[vt]=new Cr(pe,Wi,Oi,He,Float32Array),oe&&console.log("z%d: %d clusters in %dms",vt,pe.length,+Date.now()-pr)}return oe&&console.timeEnd("total time"),this},vn.prototype.getClusters=function(H,Q){var oe=((H[0]+180)%360+360)%360-180,ye=Math.max(-90,Math.min(90,H[1])),Pe=H[2]===180?180:((H[2]+180)%360+360)%360-180,He=Math.max(-90,Math.min(90,H[3]));if(H[2]-H[0]>=360)oe=-180,Pe=180;else if(oe>Pe){var rt=this.getClusters([oe,ye,180,He],Q),pe=this.getClusters([-180,ye,Pe,He],Q);return rt.concat(pe)}for(var ke=this.trees[this._limitZoom(Q)],vt=[],pr=0,Ft=ke.range(qn(oe),mi(He),qn(Pe),mi(ye));prQ&&(zt+=pn.numPoints||1)}if(zt>=He){for(var Ot=ke.x*Ft,nn=ke.y*Ft,Zr=Pe&&Ft>1?this._map(ke,!0):null,Yr=(pe<<5)+(Q+1)+this.points.length,_i=0,an=pr;_i1)for(var yi=0,Pi=pr;yi>5},vn.prototype._getOriginZoom=function(H){return(H-this.points.length)%32},vn.prototype._map=function(H,Q){if(H.numPoints)return Q?aa({},H.properties):H.properties;var oe=this.points[H.index].properties,ye=this.options.map(oe);return Q&&ye===oe?aa({},ye):ye},to.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},to.prototype.splitTile=function(H,Q,oe,ye,Pe,He,rt){for(var pe=[H,Q,oe,ye],ke=this.options,vt=ke.debug;pe.length;){ye=pe.pop(),oe=pe.pop(),Q=pe.pop(),H=pe.pop();var pr=1<1&&console.time("creation"),zt=this.tiles[Ft]=fn(H,Q,oe,ye,ke),this.tileCoords.push({z:Q,x:oe,y:ye}),vt)){vt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Q,oe,ye,zt.numFeatures,zt.numPoints,zt.numSimplified),console.timeEnd("creation"));var vr="z"+Q;this.stats[vr]=(this.stats[vr]||0)+1,this.total++}if(zt.source=H,Pe){if(Q===ke.maxZoom||Q===Pe)continue;var En=1<1&&console.time("clipping");var pn,Ot,nn,Zr,Yr,_i,an=.5*ke.buffer/ke.extent,on=.5-an,Xi=.5+an,yi=1+an;pn=Ot=nn=Zr=null,Yr=me(H,pr,oe-an,oe+Xi,0,zt.minX,zt.maxX,ke),_i=me(H,pr,oe+on,oe+yi,0,zt.minX,zt.maxX,ke),H=null,Yr&&(pn=me(Yr,pr,ye-an,ye+Xi,1,zt.minY,zt.maxY,ke),Ot=me(Yr,pr,ye+on,ye+yi,1,zt.minY,zt.maxY,ke),Yr=null),_i&&(nn=me(_i,pr,ye-an,ye+Xi,1,zt.minY,zt.maxY,ke),Zr=me(_i,pr,ye+on,ye+yi,1,zt.minY,zt.maxY,ke),_i=null),vt>1&&console.timeEnd("clipping"),pe.push(pn||[],Q+1,2*oe,2*ye),pe.push(Ot||[],Q+1,2*oe,2*ye+1),pe.push(nn||[],Q+1,2*oe+1,2*ye),pe.push(Zr||[],Q+1,2*oe+1,2*ye+1)}}},to.prototype.getTile=function(H,Q,oe){var ye=this.options,Pe=ye.extent,He=ye.debug;if(H<0||H>24)return null;var rt=1<1&&console.log("drilling down to z%d-%d-%d",H,Q,oe);for(var ke,vt=H,pr=Q,Ft=oe;!ke&&vt>0;)vt--,pr=Math.floor(pr/2),Ft=Math.floor(Ft/2),ke=this.tiles[Es(vt,pr,Ft)];return ke&&ke.source?(He>1&&console.log("found parent tile z%d-%d-%d",vt,pr,Ft),He>1&&console.time("drilling down"),this.splitTile(ke.source,vt,pr,Ft,H,Q,oe),He>1&&console.timeEnd("drilling down"),this.tiles[pe]?gi(this.tiles[pe],Pe):null):null};var Ba=function(H){function Q(oe,ye,Pe,He){H.call(this,oe,ye,Pe,Ko),He&&(this.loadGeoJSON=He)}return H&&(Q.__proto__=H),(Q.prototype=Object.create(H&&H.prototype)).constructor=Q,Q.prototype.loadData=function(oe,ye){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=ye,this._pendingLoadDataParams=oe,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},Q.prototype._loadData=function(){var oe=this;if(this._pendingCallback&&this._pendingLoadDataParams){var ye=this._pendingCallback,Pe=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var He=!!(Pe&&Pe.request&&Pe.request.collectResourceTiming)&&new m.RequestPerformance(Pe.request);this.loadGeoJSON(Pe,function(rt,pe){if(rt||!pe)return ye(rt);if(typeof pe!="object")return ye(new Error("Input data given to '"+Pe.source+"' is not a valid GeoJSON object."));(function zt(vr,En){var pn,Ot=vr&&vr.type;if(Ot==="FeatureCollection")for(pn=0;pn=0?0:l.button},Z.remove=function(l){l.parentNode&&l.parentNode.removeChild(l)};var xt=function(l){function h(){l.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new m.RGBAImage({width:1,height:1}),this.dirty=!0}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h.prototype.isLoaded=function(){return this.loaded},h.prototype.setLoaded=function(c){if(this.loaded!==c&&(this.loaded=c,c)){for(var d=0,E=this.requestors;d=0?1.2:1))}function Zt(l,h,c,d,E,w,P){for(var L=0;L65535)N(new Error("glyphs > 65535 not supported"));else if(he.ranges[Re])N(null,{stack:q,id:ce,glyph:de});else{var Ie=he.requests[Re];Ie||(Ie=he.requests[Re]=[],$t.loadGlyphRange(q,Re,c.url,c.requestManager,function(We,we){if(we){for(var Ve in we)c._doesCharSupportLocalGlyph(+Ve)||(he.glyphs[+Ve]=we[+Ve]);he.ranges[Re]=!0}for(var tt=0,yt=Ie;tt1&&(L=l[++P]);var q=Math.abs(N-L.left),ce=Math.abs(N-L.right),he=Math.min(q,ce),de=void 0,Re=E/c*(d+1);if(L.isDash){var Ie=d-Math.abs(Re);de=Math.sqrt(he*he+Ie*Ie)}else de=d-Math.sqrt(he*he+Re*Re);this.data[w+N]=Math.max(0,Math.min(255,de+128))}},Qe.prototype.addRegularDash=function(l){for(var h=l.length-1;h>=0;--h){var c=l[h],d=l[h+1];c.zeroLength?l.splice(h,1):d&&d.isDash===c.isDash&&(d.left=c.left,l.splice(h,1))}var E=l[0],w=l[l.length-1];E.isDash===w.isDash&&(E.left=w.left-this.width,w.right=E.right+this.width);for(var P=this.width*this.nextRow,L=0,N=l[L],q=0;q1&&(N=l[++L]);var ce=Math.abs(q-N.left),he=Math.abs(q-N.right),de=Math.min(ce,he);this.data[P+q]=Math.max(0,Math.min(255,(N.isDash?de:-de)+128))}},Qe.prototype.addDash=function(l,h){var c=h?7:0,d=2*c+1;if(this.nextRow+d>this.height)return m.warnOnce("LineAtlas out of space"),null;for(var E=0,w=0;w=c&&l.x=d&&l.y0&&(q[new m.OverscaledTileID(c.overscaledZ,P,d.z,w,d.y-1).key]={backfilled:!1},q[new m.OverscaledTileID(c.overscaledZ,c.wrap,d.z,d.x,d.y-1).key]={backfilled:!1},q[new m.OverscaledTileID(c.overscaledZ,N,d.z,L,d.y-1).key]={backfilled:!1}),d.y+10&&(E.resourceTiming=c._resourceTiming,c._resourceTiming=[]),c.fire(new m.Event("data",E))}})},h.prototype.onAdd=function(c){this.map=c,this.load()},h.prototype.setData=function(c){var d=this;return this._data=c,this.fire(new m.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(E){if(E)d.fire(new m.ErrorEvent(E));else{var w={dataType:"source",sourceDataType:"content"};d._collectResourceTiming&&d._resourceTiming&&d._resourceTiming.length>0&&(w.resourceTiming=d._resourceTiming,d._resourceTiming=[]),d.fire(new m.Event("data",w))}}),this},h.prototype.getClusterExpansionZoom=function(c,d){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:c,source:this.id},d),this},h.prototype.getClusterChildren=function(c,d){return this.actor.send("geojson.getClusterChildren",{clusterId:c,source:this.id},d),this},h.prototype.getClusterLeaves=function(c,d,E,w){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:c,limit:d,offset:E},w),this},h.prototype._updateWorkerData=function(c){var d=this;this._loaded=!1;var E=m.extend({},this.workerOptions),w=this._data;typeof w=="string"?(E.request=this.map._requestManager.transformRequest(m.browser.resolveURL(w),m.ResourceType.Source),E.request.collectResourceTiming=this._collectResourceTiming):E.data=JSON.stringify(w),this.actor.send(this.type+".loadData",E,function(P,L){d._removed||L&&L.abandoned||(d._loaded=!0,L&&L.resourceTiming&&L.resourceTiming[d.id]&&(d._resourceTiming=L.resourceTiming[d.id].slice(0)),d.actor.send(d.type+".coalesce",{source:E.source},null),c(P))})},h.prototype.loaded=function(){return this._loaded},h.prototype.loadTile=function(c,d){var E=this,w=c.actor?"reloadTile":"loadTile";c.actor=this.actor,c.request=this.actor.send(w,{type:this.type,uid:c.uid,tileID:c.tileID,zoom:c.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:m.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(P,L){return delete c.request,c.unloadVectorData(),c.aborted?d(null):P?d(P):(c.loadVectorData(L,E.map.painter,w==="reloadTile"),d(null))})},h.prototype.abortTile=function(c){c.request&&(c.request.cancel(),delete c.request),c.aborted=!0},h.prototype.unloadTile=function(c){c.unloadVectorData(),this.actor.send("removeTile",{uid:c.uid,type:this.type,source:this.id})},h.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},h.prototype.serialize=function(){return m.extend({},this._options,{type:this.type,data:this._data})},h.prototype.hasTransition=function(){return!1},h}(m.Evented),wt=m.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),mt=function(l){function h(c,d,E,w){l.call(this),this.id=c,this.dispatcher=E,this.coordinates=d.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(w),this.options=d}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h.prototype.load=function(c,d){var E=this;this._loaded=!1,this.fire(new m.Event("dataloading",{dataType:"source"})),this.url=this.options.url,m.getImage(this.map._requestManager.transformRequest(this.url,m.ResourceType.Image),function(w,P){E._loaded=!0,w?E.fire(new m.ErrorEvent(w)):P&&(E.image=P,c&&(E.coordinates=c),d&&d(),E._finishLoading())})},h.prototype.loaded=function(){return this._loaded},h.prototype.updateImage=function(c){var d=this;return this.image&&c.url?(this.options.url=c.url,this.load(c.coordinates,function(){d.texture=null}),this):this},h.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new m.Event("data",{dataType:"source",sourceDataType:"metadata"})))},h.prototype.onAdd=function(c){this.map=c,this.load()},h.prototype.setCoordinates=function(c){var d=this;this.coordinates=c;var E=c.map(m.MercatorCoordinate.fromLngLat);this.tileID=function(P){for(var L=1/0,N=1/0,q=-1/0,ce=-1/0,he=0,de=P;hed.end(0)?this.fire(new m.ErrorEvent(new m.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+d.start(0)+" and "+d.end(0)+"-second mark."))):this.video.currentTime=c}},h.prototype.getVideo=function(){return this.video},h.prototype.onAdd=function(c){this.map||(this.map=c,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},h.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var c=this.map.painter.context,d=c.gl;for(var E in this.boundsBuffer||(this.boundsBuffer=c.createVertexBuffer(this._boundsArray,wt.members)),this.boundsSegments||(this.boundsSegments=m.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(d.LINEAR,d.CLAMP_TO_EDGE),d.texSubImage2D(d.TEXTURE_2D,0,0,0,d.RGBA,d.UNSIGNED_BYTE,this.video)):(this.texture=new m.Texture(c,this.video,d.RGBA),this.texture.bind(d.LINEAR,d.CLAMP_TO_EDGE)),this.tiles){var w=this.tiles[E];w.state!=="loaded"&&(w.state="loaded",w.texture=this.texture)}}},h.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},h.prototype.hasTransition=function(){return this.video&&!this.video.paused},h}(mt),Kt=function(l){function h(c,d,E,w){l.call(this,c,d,E,w),d.coordinates?Array.isArray(d.coordinates)&&d.coordinates.length===4&&!d.coordinates.some(function(P){return!Array.isArray(P)||P.length!==2||P.some(function(L){return typeof L!="number"})})||this.fire(new m.ErrorEvent(new m.ValidationError("sources."+c,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new m.ErrorEvent(new m.ValidationError("sources."+c,null,'missing required property "coordinates"'))),d.animate&&typeof d.animate!="boolean"&&this.fire(new m.ErrorEvent(new m.ValidationError("sources."+c,null,'optional "animate" property must be a boolean value'))),d.canvas?typeof d.canvas=="string"||d.canvas instanceof m.window.HTMLCanvasElement||this.fire(new m.ErrorEvent(new m.ValidationError("sources."+c,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new m.ErrorEvent(new m.ValidationError("sources."+c,null,'missing required property "canvas"'))),this.options=d,this.animate=d.animate===void 0||d.animate}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof m.window.HTMLCanvasElement?this.options.canvas:m.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new m.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},h.prototype.getCanvas=function(){return this.canvas},h.prototype.onAdd=function(c){this.map=c,this.load(),this.canvas&&this.animate&&this.play()},h.prototype.onRemove=function(){this.pause()},h.prototype.prepare=function(){var c=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,c=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,c=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var d=this.map.painter.context,E=d.gl;for(var w in this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,wt.members)),this.boundsSegments||(this.boundsSegments=m.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(c||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new m.Texture(d,this.canvas,E.RGBA,{premultiply:!0}),this.tiles){var P=this.tiles[w];P.state!=="loaded"&&(P.state="loaded",P.texture=this.texture)}}},h.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},h.prototype.hasTransition=function(){return this._playing},h.prototype._hasInvalidDimensions=function(){for(var c=0,d=[this.canvas.width,this.canvas.height];cthis.max){var P=this._getAndRemoveByKey(this.order[0]);P&&this.onRemove(P)}return this},Wn.prototype.has=function(l){return l.wrapped().key in this.data},Wn.prototype.getAndRemove=function(l){return this.has(l)?this._getAndRemoveByKey(l.wrapped().key):null},Wn.prototype._getAndRemoveByKey=function(l){var h=this.data[l].shift();return h.timeout&&clearTimeout(h.timeout),this.data[l].length===0&&delete this.data[l],this.order.splice(this.order.indexOf(l),1),h.value},Wn.prototype.getByKey=function(l){var h=this.data[l];return h?h[0].value:null},Wn.prototype.get=function(l){return this.has(l)?this.data[l.wrapped().key][0].value:null},Wn.prototype.remove=function(l,h){if(!this.has(l))return this;var c=l.wrapped().key,d=h===void 0?0:this.data[c].indexOf(h),E=this.data[c][d];return this.data[c].splice(d,1),E.timeout&&clearTimeout(E.timeout),this.data[c].length===0&&delete this.data[c],this.onRemove(E.value),this.order.splice(this.order.indexOf(c),1),this},Wn.prototype.setMaxSize=function(l){for(this.max=l;this.order.length>this.max;){var h=this._getAndRemoveByKey(this.order[0]);h&&this.onRemove(h)}return this},Wn.prototype.filter=function(l){var h=[];for(var c in this.data)for(var d=0,E=this.data[c];d1||(Math.abs(ce)>1&&(Math.abs(ce+de)===1?ce+=de:Math.abs(ce-de)===1&&(ce-=de)),q.dem&&N.dem&&(N.dem.backfillBorder(q.dem,ce,he),N.neighboringTiles&&N.neighboringTiles[Re]&&(N.neighboringTiles[Re].backfilled=!0)))}},h.prototype.getTile=function(c){return this.getTileByID(c.key)},h.prototype.getTileByID=function(c){return this._tiles[c]},h.prototype._retainLoadedChildren=function(c,d,E,w){for(var P in this._tiles){var L=this._tiles[P];if(!(w[P]||!L.hasData()||L.tileID.overscaledZ<=d||L.tileID.overscaledZ>E)){for(var N=L.tileID;L&&L.tileID.overscaledZ>d+1;){var q=L.tileID.scaledTo(L.tileID.overscaledZ-1);(L=this._tiles[q.key])&&L.hasData()&&(N=q)}for(var ce=N;ce.overscaledZ>d;)if(c[(ce=ce.scaledTo(ce.overscaledZ-1)).key]){w[N.key]=N;break}}}},h.prototype.findLoadedParent=function(c,d){if(c.key in this._loadedParentTiles){var E=this._loadedParentTiles[c.key];return E&&E.tileID.overscaledZ>=d?E:null}for(var w=c.overscaledZ-1;w>=d;w--){var P=c.scaledTo(w),L=this._getLoadedTile(P);if(L)return L}},h.prototype._getLoadedTile=function(c){var d=this._tiles[c.key];return d&&d.hasData()?d:this._cache.getByKey(c.wrapped().key)},h.prototype.updateCacheSize=function(c){var d=Math.ceil(c.width/this._source.tileSize)+1,E=Math.ceil(c.height/this._source.tileSize)+1,w=Math.floor(d*E*5),P=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,w):w;this._cache.setMaxSize(P)},h.prototype.handleWrapJump=function(c){var d=Math.round((c-(this._prevLng===void 0?c:this._prevLng))/360);if(this._prevLng=c,d){var E={};for(var w in this._tiles){var P=this._tiles[w];P.tileID=P.tileID.unwrapTo(P.tileID.wrap+d),E[P.tileID.key]=P}for(var L in this._tiles=E,this._timers)clearTimeout(this._timers[L]),delete this._timers[L];for(var N in this._tiles)this._setTileReloadTimer(N,this._tiles[N])}},h.prototype.update=function(c){var d=this;if(this.transform=c,this._sourceLoaded&&!this._paused){var E;this.updateCacheSize(c),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?E=c.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(dr){return new m.OverscaledTileID(dr.canonical.z,dr.wrap,dr.canonical.z,dr.canonical.x,dr.canonical.y)}):(E=c.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(E=E.filter(function(dr){return d._source.hasTile(dr)}))):E=[];var w=c.coveringZoomLevel(this._source),P=Math.max(w-h.maxOverzooming,this._source.minzoom),L=Math.max(w+h.maxUnderzooming,this._source.minzoom),N=this._updateRetainedTiles(E,w);if(pr(this._source.type)){for(var q={},ce={},he=0,de=Object.keys(N);hethis._source.maxzoom){var Ve=We.children(this._source.maxzoom)[0],tt=this.getTile(Ve);if(tt&&tt.hasData()){E[Ve.key]=Ve;continue}}else{var yt=We.children(this._source.maxzoom);if(E[yt[0].key]&&E[yt[1].key]&&E[yt[2].key]&&E[yt[3].key])continue}for(var Wt=we.wasRequested(),jt=We.overscaledZ-1;jt>=P;--jt){var Jt=We.scaledTo(jt);if(w[Jt.key]||(w[Jt.key]=!0,!(we=this.getTile(Jt))&&Wt&&(we=this._addTile(Jt)),we&&(E[Jt.key]=Jt,Wt=we.wasRequested(),we.hasData())))break}}}return E},h.prototype._updateLoadedParentTileCache=function(){for(var c in this._loadedParentTiles={},this._tiles){for(var d=[],E=void 0,w=this._tiles[c].tileID;w.overscaledZ>0;){if(w.key in this._loadedParentTiles){E=this._loadedParentTiles[w.key];break}d.push(w.key);var P=w.scaledTo(w.overscaledZ-1);if(E=this._getLoadedTile(P))break;w=P}for(var L=0,N=d;L0||(d.hasData()&&d.state!=="reloading"?this._cache.add(d.tileID,d,d.getExpiryTimeout()):(d.aborted=!0,this._abortTile(d),this._unloadTile(d))))},h.prototype.clearTiles=function(){for(var c in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(c);this._cache.reset()},h.prototype.tilesIn=function(c,d,E){var w=this,P=[],L=this.transform;if(!L)return P;for(var N=E?L.getCameraQueryGeometry(c):c,q=c.map(function(jt){return L.pointCoordinate(jt)}),ce=N.map(function(jt){return L.pointCoordinate(jt)}),he=this.getIds(),de=1/0,Re=1/0,Ie=-1/0,We=-1/0,we=0,Ve=ce;we=0&&ln[1].y+kr>=0){var Nn=q.map(function(Mn){return dr.getTilePoint(Mn)}),zn=ce.map(function(Mn){return dr.getTilePoint(Mn)});P.push({tile:Jt,tileID:dr,queryGeometry:Nn,cameraQueryGeometry:zn,scale:Fr})}}},Wt=0;Wt=m.browser.now())return!0}return!1},h.prototype.setFeatureState=function(c,d,E){this._state.updateState(c=c||"_geojsonTileLayer",d,E)},h.prototype.removeFeatureState=function(c,d,E){this._state.removeFeatureState(c=c||"_geojsonTileLayer",d,E)},h.prototype.getFeatureState=function(c,d){return this._state.getState(c=c||"_geojsonTileLayer",d)},h.prototype.setDependencies=function(c,d,E){var w=this._tiles[c];w&&w.setDependencies(d,E)},h.prototype.reloadTilesForDependencies=function(c,d){for(var E in this._tiles)this._tiles[E].hasDependency(c,d)&&this._reloadTile(E,"reloading");this._cache.filter(function(w){return!w.hasDependency(c,d)})},h}(m.Evented);function vt(l,h){var c=Math.abs(2*l.wrap)-+(l.wrap<0),d=Math.abs(2*h.wrap)-+(h.wrap<0);return l.overscaledZ-h.overscaledZ||d-c||h.canonical.y-l.canonical.y||h.canonical.x-l.canonical.x}function pr(l){return l==="raster"||l==="image"||l==="video"}function Ft(){return new m.window.Worker(Pa.workerUrl)}ke.maxOverzooming=10,ke.maxUnderzooming=3;var zt="mapboxgl_preloaded_worker_pool",vr=function(){this.active={}};vr.prototype.acquire=function(l){if(!this.workers)for(this.workers=[];this.workers.length0?(d-w)/P:0;return this.points[E].mult(1-L).add(this.points[h].mult(L))};var Pt=function(l,h,c){var d=this.boxCells=[],E=this.circleCells=[];this.xCellCount=Math.ceil(l/c),this.yCellCount=Math.ceil(h/c);for(var w=0;w=-h[0]&&c<=h[0]&&d>=-h[1]&&d<=h[1]}function $s(l,h,c,d,E,w,P,L){var N=d?l.textSizeData:l.iconSizeData,q=m.evaluateSizeForZoom(N,c.transform.zoom),ce=[256/c.width*2+1,256/c.height*2+1],he=d?l.text.dynamicLayoutVertexArray:l.icon.dynamicLayoutVertexArray;he.clear();for(var de=l.lineVertexArray,Re=d?l.text.placedSymbolArray:l.icon.placedSymbolArray,Ie=c.transform.width/c.transform.height,We=!1,we=0;weMath.abs(c.x-h.x)*d?{useVertical:!0}:(l===m.WritingMode.vertical?h.yc.x)?{needsFlipping:!0}:null}function Mt(l,h,c,d,E,w,P,L,N,q,ce,he,de,Re){var Ie,We=h/24,we=l.lineOffsetX*We,Ve=l.lineOffsetY*We;if(l.numGlyphs>1){var tt=l.glyphStartIndex+l.numGlyphs,yt=l.lineStartIndex,Wt=l.lineStartIndex+l.lineLength,jt=Ir(We,L,we,Ve,c,ce,he,l,N,w,de);if(!jt)return{notEnoughRoom:!0};var Jt=Ii(jt.first.point,P).point,dr=Ii(jt.last.point,P).point;if(d&&!c){var Fr=wr(l.writingMode,Jt,dr,Re);if(Fr)return Fr}Ie=[jt.first];for(var kr=l.glyphStartIndex+1;kr0?Mn.point:bo(he,zn,ln,1,E),Qr=wr(l.writingMode,ln,Bi,Re);if(Qr)return Qr}var li=ne(We*L.getoffsetX(l.glyphStartIndex),we,Ve,c,ce,he,l.segment,l.lineStartIndex,l.lineStartIndex+l.lineLength,N,w,de);if(!li)return{notEnoughRoom:!0};Ie=[li]}for(var fi=0,ii=Ie;fi0?1:-1,Ie=0;d&&(Re*=-1,Ie=Math.PI),Re<0&&(Ie+=Math.PI);for(var We=Re>0?L+P:L+P+1,we=E,Ve=E,tt=0,yt=0,Wt=Math.abs(de),jt=[];tt+yt<=Wt;){if((We+=Re)=N)return null;if(Ve=we,jt.push(we),(we=he[We])===void 0){var Jt=new m.Point(q.getx(We),q.gety(We)),dr=Ii(Jt,ce);if(dr.signedDistanceFromCamera>0)we=he[We]=dr.point;else{var Fr=We-Re;we=bo(tt===0?w:new m.Point(q.getx(Fr),q.gety(Fr)),Jt,Ve,Wt-tt+1,ce)}}tt+=yt,yt=Ve.dist(we)}var kr=(Wt-tt)/yt,ln=we.sub(Ve),Nn=ln.mult(kr)._add(Ve);Nn._add(ln._unit()._perp()._mult(c*Re));var zn=Ie+Math.atan2(we.y-Ve.y,we.x-Ve.x);return jt.push(Nn),{point:Nn,angle:zn,path:jt}}Pt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Pt.prototype.insert=function(l,h,c,d,E){this._forEachCell(h,c,d,E,this._insertBoxCell,this.boxUid++),this.boxKeys.push(l),this.bboxes.push(h),this.bboxes.push(c),this.bboxes.push(d),this.bboxes.push(E)},Pt.prototype.insertCircle=function(l,h,c,d){this._forEachCell(h-d,c-d,h+d,c+d,this._insertCircleCell,this.circleUid++),this.circleKeys.push(l),this.circles.push(h),this.circles.push(c),this.circles.push(d)},Pt.prototype._insertBoxCell=function(l,h,c,d,E,w){this.boxCells[E].push(w)},Pt.prototype._insertCircleCell=function(l,h,c,d,E,w){this.circleCells[E].push(w)},Pt.prototype._query=function(l,h,c,d,E,w){if(c<0||l>this.width||d<0||h>this.height)return!E&&[];var P=[];if(l<=0&&h<=0&&this.width<=c&&this.height<=d){if(E)return!0;for(var L=0;L0:P},Pt.prototype._queryCircle=function(l,h,c,d,E){var w=l-c,P=l+c,L=h-c,N=h+c;if(P<0||w>this.width||N<0||L>this.height)return!d&&[];var q=[];return this._forEachCell(w,L,P,N,this._queryCellCircle,q,{hitTest:d,circle:{x:l,y:h,radius:c},seenUids:{box:{},circle:{}}},E),d?q.length>0:q},Pt.prototype.query=function(l,h,c,d,E){return this._query(l,h,c,d,!1,E)},Pt.prototype.hitTest=function(l,h,c,d,E){return this._query(l,h,c,d,!0,E)},Pt.prototype.hitTestCircle=function(l,h,c,d){return this._queryCircle(l,h,c,!0,d)},Pt.prototype._queryCell=function(l,h,c,d,E,w,P,L){var N=P.seenUids,q=this.boxCells[E];if(q!==null)for(var ce=this.bboxes,he=0,de=q;he=ce[Ie+0]&&d>=ce[Ie+1]&&(!L||L(this.boxKeys[Re]))){if(P.hitTest)return w.push(!0),!0;w.push({key:this.boxKeys[Re],x1:ce[Ie],y1:ce[Ie+1],x2:ce[Ie+2],y2:ce[Ie+3]})}}}var We=this.circleCells[E];if(We!==null)for(var we=this.circles,Ve=0,tt=We;VeP*P+L*L},Pt.prototype._circleAndRectCollide=function(l,h,c,d,E,w,P){var L=(w-d)/2,N=Math.abs(l-(d+L));if(N>L+c)return!1;var q=(P-E)/2,ce=Math.abs(h-(E+q));if(ce>q+c)return!1;if(N<=L||ce<=q)return!0;var he=N-L,de=ce-q;return he*he+de*de<=c*c};var Fu=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function oo(l,h){for(var c=0;c=1;Bi--)Mn.push(Nn.path[Bi]);for(var Qr=1;Qr0){for(var Xn=Mn[0].clone(),xi=Mn[0].clone(),ri=1;ri=Fr.x&&xi.x<=kr.x&&Xn.y>=Fr.y&&xi.y<=kr.y?[Mn]:xi.xkr.x||xi.ykr.y?[]:m.clipLine([Mn],Fr.x,Fr.y,kr.x,kr.y)}for(var Kn=0,po=ii;Kn=this.screenRightBoundary||d<100||h>this.screenBottomBoundary},Ta.prototype.isInsideGrid=function(l,h,c,d){return c>=0&&l=0&&h0?(this.prevPlacement&&this.prevPlacement.variableOffsets[he.crossTileID]&&this.prevPlacement.placements[he.crossTileID]&&this.prevPlacement.placements[he.crossTileID].text&&(We=this.prevPlacement.variableOffsets[he.crossTileID].anchor),this.variableOffsets[he.crossTileID]={textOffset:we,width:c,height:d,anchor:l,textBoxScale:E,prevAnchor:We},this.markUsedJustification(de,l,he,Re),de.allowVerticalPlacement&&(this.markUsedOrientation(de,Re,he),this.placedOrientations[he.crossTileID]=Re),{shift:Ve,placedGlyphBoxes:tt}):void 0},Ya.prototype.placeLayerBucketPart=function(l,h,c){var d=this,E=l.parameters,w=E.bucket,P=E.layout,L=E.posMatrix,N=E.textLabelPlaneMatrix,q=E.labelToScreenMatrix,ce=E.textPixelRatio,he=E.holdingForFade,de=E.collisionBoxArray,Re=E.partiallyEvaluatedTextSize,Ie=E.collisionGroup,We=P.get("text-optional"),we=P.get("icon-optional"),Ve=P.get("text-allow-overlap"),tt=P.get("icon-allow-overlap"),yt=P.get("text-rotation-alignment")==="map",Wt=P.get("text-pitch-alignment")==="map",jt=P.get("icon-text-fit")!=="none",Jt=P.get("symbol-z-order")==="viewport-y",dr=Ve&&(tt||!w.hasIconData()||we),Fr=tt&&(Ve||!w.hasTextData()||We);!w.collisionArrays&&de&&w.deserializeCollisionBoxes(de);var kr=function(Qr,li){if(!h[Qr.crossTileID])if(he)d.placements[Qr.crossTileID]=new xu(!1,!1,!1);else{var fi,ii=!1,Xn=!1,xi=!0,ri=null,Kn={box:null,offscreen:null},po={box:null,offscreen:null},Ka=null,Ho=null,Bo=0,za=0,co=0;li.textFeatureIndex?Bo=li.textFeatureIndex:Qr.useRuntimeCollisionCircles&&(Bo=Qr.featureIndex),li.verticalTextFeatureIndex&&(za=li.verticalTextFeatureIndex);var Bs=li.textBox;if(Bs){var _s=function(ta){var is=m.WritingMode.horizontal;if(w.allowVerticalPlacement&&!ta&&d.prevPlacement){var Ms=d.prevPlacement.placedOrientations[Qr.crossTileID];Ms&&(d.placedOrientations[Qr.crossTileID]=Ms,d.markUsedOrientation(w,is=Ms,Qr))}return is},Hu=function(ta,is){if(w.allowVerticalPlacement&&Qr.numVerticalGlyphVertices>0&&li.verticalTextBox)for(var Ms=0,bl=w.writingModes;Ms0&&(xs=xs.filter(function(ta){return ta!==pu.anchor})).unshift(pu.anchor)}var vo=function(ta,is,Ms){for(var bl=ta.x2-ta.x1,_f=ta.y2-ta.y1,xf=Qr.textBoxScale,Gc=jt&&!tt?is:null,mo={box:[],offscreen:!1},Hc=Ve?2*xs.length:xs.length,Ru=0;Ru=xs.length,Qr,w,Ms,Gc);if(Zl&&(mo=Zl.placedGlyphBoxes)&&mo.box&&mo.box.length){ii=!0,ri=Zl.shift;break}}return mo};Hu(function(){return vo(Bs,li.iconBox,m.WritingMode.horizontal)},function(){var ta=li.verticalTextBox;return w.allowVerticalPlacement&&!(Kn&&Kn.box&&Kn.box.length)&&Qr.numVerticalGlyphVertices>0&&ta?vo(ta,li.verticalIconBox,m.WritingMode.vertical):{box:null,offscreen:null}}),Kn&&(ii=Kn.box,xi=Kn.offscreen);var mc=_s(Kn&&Kn.box);if(!ii&&d.prevPlacement){var ru=d.prevPlacement.variableOffsets[Qr.crossTileID];ru&&(d.variableOffsets[Qr.crossTileID]=ru,d.markUsedJustification(w,ru.anchor,Qr,mc))}}else{var Wu=function(ta,is){var Ms=d.collisionIndex.placeCollisionBox(ta,Ve,ce,L,Ie.predicate);return Ms&&Ms.box&&Ms.box.length&&(d.markUsedOrientation(w,is,Qr),d.placedOrientations[Qr.crossTileID]=is),Ms};Hu(function(){return Wu(Bs,m.WritingMode.horizontal)},function(){var ta=li.verticalTextBox;return w.allowVerticalPlacement&&Qr.numVerticalGlyphVertices>0&&ta?Wu(ta,m.WritingMode.vertical):{box:null,offscreen:null}}),_s(Kn&&Kn.box&&Kn.box.length)}}if(ii=(fi=Kn)&&fi.box&&fi.box.length>0,xi=fi&&fi.offscreen,Qr.useRuntimeCollisionCircles){var du=w.text.placedSymbolArray.get(Qr.centerJustifiedTextSymbolIndex),xl=m.evaluateSizeForFeature(w.textSizeData,Re,du),vu=P.get("text-padding");Ka=d.collisionIndex.placeCollisionCircles(Ve,du,w.lineVertexArray,w.glyphOffsetArray,xl,L,N,q,c,Wt,Ie.predicate,Qr.collisionCircleDiameter,vu),ii=Ve||Ka.circles.length>0&&!Ka.collisionDetected,xi=xi&&Ka.offscreen}if(li.iconFeatureIndex&&(co=li.iconFeatureIndex),li.iconBox){var Ul=function(ta){var is=jt&&ri?jo(ta,ri.x,ri.y,yt,Wt,d.transform.angle):ta;return d.collisionIndex.placeCollisionBox(is,tt,ce,L,Ie.predicate)};Xn=po&&po.box&&po.box.length&&li.verticalIconBox?(Ho=Ul(li.verticalIconBox)).box.length>0:(Ho=Ul(li.iconBox)).box.length>0,xi=xi&&Ho.offscreen}var Ou=We||Qr.numHorizontalGlyphVertices===0&&Qr.numVerticalGlyphVertices===0,So=we||Qr.numIconVertices===0;if(Ou||So?So?Ou||(Xn=Xn&&ii):ii=Xn&&ii:Xn=ii=Xn&&ii,ii&&fi&&fi.box&&d.collisionIndex.insertCollisionBox(fi.box,P.get("text-ignore-placement"),w.bucketInstanceId,po&&po.box&&za?za:Bo,Ie.ID),Xn&&Ho&&d.collisionIndex.insertCollisionBox(Ho.box,P.get("icon-ignore-placement"),w.bucketInstanceId,co,Ie.ID),Ka&&(ii&&d.collisionIndex.insertCollisionCircles(Ka.circles,P.get("text-ignore-placement"),w.bucketInstanceId,Bo,Ie.ID),c)){var ka=w.bucketInstanceId,Ua=d.collisionCircleArrays[ka];Ua===void 0&&(Ua=d.collisionCircleArrays[ka]=new Eo);for(var mu=0;mu=0;--Nn){var zn=ln[Nn];kr(w.symbolInstances.get(zn),w.collisionArrays[zn])}else for(var Mn=l.symbolInstanceStart;Mn=0&&(l.text.placedSymbolArray.get(L).crossTileID=E>=0&&L!==E?0:c.crossTileID)}},Ya.prototype.markUsedOrientation=function(l,h,c){for(var d=h===m.WritingMode.horizontal||h===m.WritingMode.horizontalOnly?h:0,E=h===m.WritingMode.vertical?h:0,w=0,P=[c.leftJustifiedTextSymbolIndex,c.centerJustifiedTextSymbolIndex,c.rightJustifiedTextSymbolIndex];w0,Fr=d.placedOrientations[tt.crossTileID],kr=Fr===m.WritingMode.vertical,ln=Fr===m.WritingMode.horizontal||Fr===m.WritingMode.horizontalOnly;if(yt>0||Wt>0){var Nn=Tn(Jt.text);Re(l.text,yt,kr?Ti:Nn),Re(l.text,Wt,ln?Ti:Nn);var zn=Jt.text.isHidden();[tt.rightJustifiedTextSymbolIndex,tt.centerJustifiedTextSymbolIndex,tt.leftJustifiedTextSymbolIndex].forEach(function(Kn){Kn>=0&&(l.text.placedSymbolArray.get(Kn).hidden=zn||kr?1:0)}),tt.verticalPlacedTextSymbolIndex>=0&&(l.text.placedSymbolArray.get(tt.verticalPlacedTextSymbolIndex).hidden=zn||ln?1:0);var Mn=d.variableOffsets[tt.crossTileID];Mn&&d.markUsedJustification(l,Mn.anchor,tt,Fr);var Bi=d.placedOrientations[tt.crossTileID];Bi&&(d.markUsedJustification(l,"left",tt,Bi),d.markUsedOrientation(l,Bi,tt))}if(dr){var Qr=Tn(Jt.icon),li=!(he&&tt.verticalPlacedIconSymbolIndex&&kr);tt.placedIconSymbolIndex>=0&&(Re(l.icon,tt.numIconVertices,li?Qr:Ti),l.icon.placedSymbolArray.get(tt.placedIconSymbolIndex).hidden=Jt.icon.isHidden()),tt.verticalPlacedIconSymbolIndex>=0&&(Re(l.icon,tt.numVerticalIconVertices,li?Ti:Qr),l.icon.placedSymbolArray.get(tt.verticalPlacedIconSymbolIndex).hidden=Jt.icon.isHidden())}if(l.hasIconCollisionBoxData()||l.hasTextCollisionBoxData()){var fi=l.collisionArrays[Ve];if(fi){var ii=new m.Point(0,0);if(fi.textBox||fi.verticalTextBox){var Xn=!0;if(N){var xi=d.variableOffsets[jt];xi?(ii=so(xi.anchor,xi.width,xi.height,xi.textOffset,xi.textBoxScale),q&&ii._rotate(ce?d.transform.angle:-d.transform.angle)):Xn=!1}fi.textBox&&Gs(l.textCollisionBox.collisionVertexArray,Jt.text.placed,!Xn||kr,ii.x,ii.y),fi.verticalTextBox&&Gs(l.textCollisionBox.collisionVertexArray,Jt.text.placed,!Xn||ln,ii.x,ii.y)}var ri=Boolean(!ln&&fi.verticalIconBox);fi.iconBox&&Gs(l.iconCollisionBox.collisionVertexArray,Jt.icon.placed,ri,he?ii.x:0,he?ii.y:0),fi.verticalIconBox&&Gs(l.iconCollisionBox.collisionVertexArray,Jt.icon.placed,!ri,he?ii.x:0,he?ii.y:0)}}},We=0;Wel},Ya.prototype.setStale=function(){this.stale=!0};var ll=Math.pow(2,25),os=Math.pow(2,24),ie=Math.pow(2,17),Ee=Math.pow(2,16),qe=Math.pow(2,9),Rt=Math.pow(2,8),Or=Math.pow(2,1);function Tn(l){if(l.opacity===0&&!l.placed)return 0;if(l.opacity===1&&l.placed)return 4294967295;var h=l.placed?1:0,c=Math.floor(127*l.opacity);return c*ll+h*os+c*ie+h*Ee+c*qe+h*Rt+c*Or+h}var Ti=0,ro=function(l){this._sortAcrossTiles=l.layout.get("symbol-z-order")!=="viewport-y"&&l.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ro.prototype.continuePlacement=function(l,h,c,d,E){for(var w=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var P=h[l[this._currentPlacementIndex]],L=this.placement.collisionIndex.transform.zoom;if(P.type==="symbol"&&(!P.minzoom||P.minzoom<=L)&&(!P.maxzoom||P.maxzoom>L)){if(this._inProgressLayer||(this._inProgressLayer=new ro(P)),this._inProgressLayer.continuePlacement(c[P.source],this.placement,this._showCollisionBoxes,P,w))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},La.prototype.commit=function(l){return this.placement.commit(l),this.placement};var ja=512/m.EXTENT/2,Qo=function(l,h,c){this.tileID=l,this.indexedSymbolInstances={},this.bucketInstanceId=c;for(var d=0;dl.overscaledZ)for(var L in P){var N=P[L];N.tileID.isChildOf(l)&&N.findMatches(h.symbolInstances,l,E)}else{var q=P[l.scaledTo(Number(w)).key];q&&q.findMatches(h.symbolInstances,l,E)}}for(var ce=0;ce1?"@2x":"",he=m.getJSON(w.transformRequest(w.normalizeSpriteURL(E,ce,".json"),m.ResourceType.SpriteJSON),function(Ie,We){he=null,q||(q=Ie,L=We,Re())}),de=m.getImage(w.transformRequest(w.normalizeSpriteURL(E,ce,".png"),m.ResourceType.SpriteImage),function(Ie,We){de=null,q||(q=Ie,N=We,Re())});function Re(){if(q)P(q);else if(L&&N){var Ie=m.browser.getImageData(N),We={};for(var we in L){var Ve=L[we],tt=Ve.width,yt=Ve.height,Wt=Ve.x,jt=Ve.y,Jt=Ve.sdf,dr=Ve.pixelRatio,Fr=Ve.stretchX,kr=Ve.stretchY,ln=Ve.content,Nn=new m.RGBAImage({width:tt,height:yt});m.RGBAImage.copy(Ie,Nn,{x:Wt,y:jt},{x:0,y:0},{width:tt,height:yt}),We[we]={data:Nn,pixelRatio:dr,sdf:Jt,stretchX:Fr,stretchY:kr,content:ln}}P(null,We)}}return{cancel:function(){he&&(he.cancel(),he=null),de&&(de.cancel(),de=null)}}}(c,this.map._requestManager,function(E,w){if(d._spriteRequest=null,E)d.fire(new m.ErrorEvent(E));else if(w)for(var P in w)d.imageManager.addImage(P,w[P]);d.imageManager.setLoaded(!0),d._availableImages=d.imageManager.listImages(),d.dispatcher.broadcast("setImages",d._availableImages),d.fire(new m.Event("data",{dataType:"style"}))})},h.prototype._validateLayer=function(c){var d=this.sourceCaches[c.source];if(d){var E=c.sourceLayer;if(E){var w=d.getSource();(w.type==="geojson"||w.vectorLayerIds&&w.vectorLayerIds.indexOf(E)===-1)&&this.fire(new m.ErrorEvent(new Error('Source layer "'+E+'" does not exist on source "'+w.id+'" as specified by style layer "'+c.id+'"')))}}},h.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var c in this.sourceCaches)if(!this.sourceCaches[c].loaded())return!1;return!!this.imageManager.isLoaded()},h.prototype._serializeLayers=function(c){for(var d=[],E=0,w=c;E0)throw new Error("Unimplemented: "+w.map(function(P){return P.command}).join(", ")+".");return E.forEach(function(P){P.command!=="setTransition"&&d[P.command].apply(d,P.args)}),this.stylesheet=c,!0},h.prototype.addImage=function(c,d){if(this.getImage(c))return this.fire(new m.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(c,d),this._afterImageUpdated(c)},h.prototype.updateImage=function(c,d){this.imageManager.updateImage(c,d)},h.prototype.getImage=function(c){return this.imageManager.getImage(c)},h.prototype.removeImage=function(c){if(!this.getImage(c))return this.fire(new m.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(c),this._afterImageUpdated(c)},h.prototype._afterImageUpdated=function(c){this._availableImages=this.imageManager.listImages(),this._changedImages[c]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new m.Event("data",{dataType:"style"}))},h.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},h.prototype.addSource=function(c,d,E){var w=this;if(E===void 0&&(E={}),this._checkLoaded(),this.sourceCaches[c]!==void 0)throw new Error("There is already a source with this ID");if(!d.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(d).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(d.type)>=0&&this._validate(m.validateStyle.source,"sources."+c,d,null,E))){this.map&&this.map._collectResourceTiming&&(d.collectResourceTiming=!0);var P=this.sourceCaches[c]=new ke(c,d,this.dispatcher);P.style=this,P.setEventedParent(this,function(){return{isSourceLoaded:w.loaded(),source:P.serialize(),sourceId:c}}),P.onAdd(this.map),this._changed=!0}},h.prototype.removeSource=function(c){if(this._checkLoaded(),this.sourceCaches[c]===void 0)throw new Error("There is no source with this ID");for(var d in this._layers)if(this._layers[d].source===c)return this.fire(new m.ErrorEvent(new Error('Source "'+c+'" cannot be removed while layer "'+d+'" is using it.')));var E=this.sourceCaches[c];delete this.sourceCaches[c],delete this._updatedSources[c],E.fire(new m.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:c})),E.setEventedParent(null),E.clearTiles(),E.onRemove&&E.onRemove(this.map),this._changed=!0},h.prototype.setGeoJSONSourceData=function(c,d){this._checkLoaded(),this.sourceCaches[c].getSource().setData(d),this._changed=!0},h.prototype.getSource=function(c){return this.sourceCaches[c]&&this.sourceCaches[c].getSource()},h.prototype.addLayer=function(c,d,E){E===void 0&&(E={}),this._checkLoaded();var w=c.id;if(this.getLayer(w))this.fire(new m.ErrorEvent(new Error('Layer with id "'+w+'" already exists on this map')));else{var P;if(c.type==="custom"){if(Lo(this,m.validateCustomStyleLayer(c)))return;P=m.createStyleLayer(c)}else{if(typeof c.source=="object"&&(this.addSource(w,c.source),c=m.clone$1(c),c=m.extend(c,{source:w})),this._validate(m.validateStyle.layer,"layers."+w,c,{arrayIndex:-1},E))return;P=m.createStyleLayer(c),this._validateLayer(P),P.setEventedParent(this,{layer:{id:w}}),this._serializedLayers[P.id]=P.serialize()}var L=d?this._order.indexOf(d):this._order.length;if(d&&L===-1)this.fire(new m.ErrorEvent(new Error('Layer with id "'+d+'" does not exist on this map.')));else{if(this._order.splice(L,0,w),this._layerOrderChanged=!0,this._layers[w]=P,this._removedLayers[w]&&P.source&&P.type!=="custom"){var N=this._removedLayers[w];delete this._removedLayers[w],N.type!==P.type?this._updatedSources[P.source]="clear":(this._updatedSources[P.source]="reload",this.sourceCaches[P.source].pause())}this._updateLayer(P),P.onAdd&&P.onAdd(this.map)}}},h.prototype.moveLayer=function(c,d){if(this._checkLoaded(),this._changed=!0,this._layers[c]){if(c!==d){var E=this._order.indexOf(c);this._order.splice(E,1);var w=d?this._order.indexOf(d):this._order.length;d&&w===-1?this.fire(new m.ErrorEvent(new Error('Layer with id "'+d+'" does not exist on this map.'))):(this._order.splice(w,0,c),this._layerOrderChanged=!0)}}else this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style and cannot be moved.")))},h.prototype.removeLayer=function(c){this._checkLoaded();var d=this._layers[c];if(d){d.setEventedParent(null);var E=this._order.indexOf(c);this._order.splice(E,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[c]=d,delete this._layers[c],delete this._serializedLayers[c],delete this._updatedLayers[c],delete this._updatedPaintProps[c],d.onRemove&&d.onRemove(this.map)}else this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style and cannot be removed.")))},h.prototype.getLayer=function(c){return this._layers[c]},h.prototype.hasLayer=function(c){return c in this._layers},h.prototype.setLayerZoomRange=function(c,d,E){this._checkLoaded();var w=this.getLayer(c);w?w.minzoom===d&&w.maxzoom===E||(d!=null&&(w.minzoom=d),E!=null&&(w.maxzoom=E),this._updateLayer(w)):this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style and cannot have zoom extent.")))},h.prototype.setFilter=function(c,d,E){E===void 0&&(E={}),this._checkLoaded();var w=this.getLayer(c);if(w){if(!m.deepEqual(w.filter,d))return d==null?(w.filter=void 0,void this._updateLayer(w)):void(this._validate(m.validateStyle.filter,"layers."+w.id+".filter",d,null,E)||(w.filter=m.clone$1(d),this._updateLayer(w)))}else this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style and cannot be filtered.")))},h.prototype.getFilter=function(c){return m.clone$1(this.getLayer(c).filter)},h.prototype.setLayoutProperty=function(c,d,E,w){w===void 0&&(w={}),this._checkLoaded();var P=this.getLayer(c);P?m.deepEqual(P.getLayoutProperty(d),E)||(P.setLayoutProperty(d,E,w),this._updateLayer(P)):this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style and cannot be styled.")))},h.prototype.getLayoutProperty=function(c,d){var E=this.getLayer(c);if(E)return E.getLayoutProperty(d);this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style.")))},h.prototype.setPaintProperty=function(c,d,E,w){w===void 0&&(w={}),this._checkLoaded();var P=this.getLayer(c);P?m.deepEqual(P.getPaintProperty(d),E)||(P.setPaintProperty(d,E,w)&&this._updateLayer(P),this._changed=!0,this._updatedPaintProps[c]=!0):this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style and cannot be styled.")))},h.prototype.getPaintProperty=function(c,d){return this.getLayer(c).getPaintProperty(d)},h.prototype.setFeatureState=function(c,d){this._checkLoaded();var E=c.source,w=c.sourceLayer,P=this.sourceCaches[E];if(P!==void 0){var L=P.getSource().type;L==="geojson"&&w?this.fire(new m.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):L!=="vector"||w?(c.id===void 0&&this.fire(new m.ErrorEvent(new Error("The feature id parameter must be provided."))),P.setFeatureState(w,c.id,d)):this.fire(new m.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new m.ErrorEvent(new Error("The source '"+E+"' does not exist in the map's style.")))},h.prototype.removeFeatureState=function(c,d){this._checkLoaded();var E=c.source,w=this.sourceCaches[E];if(w!==void 0){var P=w.getSource().type,L=P==="vector"?c.sourceLayer:void 0;P!=="vector"||L?d&&typeof c.id!="string"&&typeof c.id!="number"?this.fire(new m.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):w.removeFeatureState(L,c.id,d):this.fire(new m.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new m.ErrorEvent(new Error("The source '"+E+"' does not exist in the map's style.")))},h.prototype.getFeatureState=function(c){this._checkLoaded();var d=c.source,E=c.sourceLayer,w=this.sourceCaches[d];if(w!==void 0){if(w.getSource().type!=="vector"||E)return c.id===void 0&&this.fire(new m.ErrorEvent(new Error("The feature id parameter must be provided."))),w.getFeatureState(E,c.id);this.fire(new m.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new m.ErrorEvent(new Error("The source '"+d+"' does not exist in the map's style.")))},h.prototype.getTransition=function(){return m.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},h.prototype.serialize=function(){return m.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:m.mapObject(this.sourceCaches,function(c){return c.serialize()}),layers:this._serializeLayers(this._order)},function(c){return c!==void 0})},h.prototype._updateLayer=function(c){this._updatedLayers[c.id]=!0,c.source&&!this._updatedSources[c.source]&&this.sourceCaches[c.source].getSource().type!=="raster"&&(this._updatedSources[c.source]="reload",this.sourceCaches[c.source].pause()),this._changed=!0},h.prototype._flattenAndSortRenderedFeatures=function(c){for(var d=this,E=function(Fr){return d._layers[Fr].type==="fill-extrusion"},w={},P=[],L=this._order.length-1;L>=0;L--){var N=this._order[L];if(E(N)){w[N]=L;for(var q=0,ce=c;q=0;We--){var we=this._order[We];if(E(we))for(var Ve=P.length-1;Ve>=0;Ve--){var tt=P[Ve].feature;if(w[tt.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),cl=Gi("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),_=Gi("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),M=Gi(`#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_FragColor=color*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_Position=u_matrix*vec4(a_pos,0,1);}`),F=Gi(`varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 outline_color +#pragma mapbox: initialize lowp float opacity +float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 outline_color +#pragma mapbox: initialize lowp float opacity +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),R=Gi(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),K=Gi(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),_e=Gi(`varying vec4 v_color;void main() {gl_FragColor=v_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color; +#pragma mapbox: define highp float base +#pragma mapbox: define highp float height +#pragma mapbox: define highp vec4 color +void main() { +#pragma mapbox: initialize highp float base +#pragma mapbox: initialize highp float height +#pragma mapbox: initialize highp vec4 color +vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),je=Gi(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 +? a_pos +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),pt=Gi(`#ifdef GL_ES +precision highp float; +#endif +uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),dt=Gi(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +#define PI 3.141592653589793 +void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),ur=Gi(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),yr=Gi(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),In=Gi(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),Bn=Gi(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),Qn=Gi(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),Vi=Gi(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),Li=Gi(`#define SDF_PX 8.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),ba=Gi(`#define SDF_PX 8.0 +#define SDF 1.0 +#define ICON 0.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function Gi(l,h){var c=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,d=h.match(/attribute ([\w]+) ([\w]+)/g),E=l.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),w=h.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),P=w?w.concat(E):E,L={};return{fragmentSource:l=l.replace(c,function(N,q,ce,he,de){return L[de]=!0,q==="define"?` +#ifndef HAS_UNIFORM_u_`+de+` +varying `+ce+" "+he+" "+de+`; +#else +uniform `+ce+" "+he+" u_"+de+`; +#endif +`:` +#ifdef HAS_UNIFORM_u_`+de+` + `+ce+" "+he+" "+de+" = u_"+de+`; +#endif +`}),vertexSource:h=h.replace(c,function(N,q,ce,he,de){var Re=he==="float"?"vec2":"vec4",Ie=de.match(/color/)?"color":Re;return L[de]?q==="define"?` +#ifndef HAS_UNIFORM_u_`+de+` +uniform lowp float u_`+de+`_t; +attribute `+ce+" "+Re+" a_"+de+`; +varying `+ce+" "+he+" "+de+`; +#else +uniform `+ce+" "+he+" u_"+de+`; +#endif +`:Ie==="vec4"?` +#ifndef HAS_UNIFORM_u_`+de+` + `+de+" = a_"+de+`; +#else + `+ce+" "+he+" "+de+" = u_"+de+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+de+` + `+de+" = unpack_mix_"+Ie+"(a_"+de+", u_"+de+`_t); +#else + `+ce+" "+he+" "+de+" = u_"+de+`; +#endif +`:q==="define"?` +#ifndef HAS_UNIFORM_u_`+de+` +uniform lowp float u_`+de+`_t; +attribute `+ce+" "+Re+" a_"+de+`; +#else +uniform `+ce+" "+he+" u_"+de+`; +#endif +`:Ie==="vec4"?` +#ifndef HAS_UNIFORM_u_`+de+` + `+ce+" "+he+" "+de+" = a_"+de+`; +#else + `+ce+" "+he+" "+de+" = u_"+de+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+de+` + `+ce+" "+he+" "+de+" = unpack_mix_"+Ie+"(a_"+de+", u_"+de+`_t); +#else + `+ce+" "+he+" "+de+" = u_"+de+`; +#endif +`}),staticAttributes:d,staticUniforms:P}}var As=Object.freeze({__proto__:null,prelude:ko,background:Il,backgroundPattern:vs,circle:es,clippingMask:of,heatmap:rc,heatmapTexture:Cs,collisionBox:bu,collisionCircle:cl,debug:_,fill:M,fillOutline:F,fillOutlinePattern:R,fillPattern:K,fillExtrusion:_e,fillExtrusionPattern:je,hillshadePrepare:pt,hillshade:dt,line:ur,lineGradient:yr,linePattern:In,lineSDF:Bn,raster:Qn,symbolIcon:Vi,symbolSDF:Li,symbolTextAndIcon:ba}),Eu=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function fl(l){for(var h=[],c=0;c>16,L>>16],u_pixel_coord_lower:[65535&P,65535&L]}}Rc.prototype.draw=function(l,h,c,d,E,w,P,L,N,q,ce,he,de,Re,Ie,We){var we,Ve=l.gl;if(!this.failedToCreate){for(var tt in l.program.set(this.program),l.setDepthMode(c),l.setStencilMode(d),l.setColorMode(E),l.setCullFace(w),this.fixedUniforms)this.fixedUniforms[tt].set(P[tt]);Re&&Re.setUniforms(l,this.binderUniforms,he,{zoom:de});for(var yt=(we={},we[Ve.LINES]=2,we[Ve.TRIANGLES]=3,we[Ve.LINE_STRIP]=1,we)[h],Wt=0,jt=ce.get();Wt0?1-1/(1.001-P):-P),u_contrast_factor:(w=E.paint.get("raster-contrast"),w>0?1/(1-w):1+w),u_spin_weights:lf(E.paint.get("raster-hue-rotate"))};var w,P};function lf(l){l*=Math.PI/180;var h=Math.sin(l),c=Math.cos(l);return[(2*c+1)/3,(-Math.sqrt(3)*h-c+1)/3,(Math.sqrt(3)*h-c+1)/3]}var ic,ac=function(l,h,c,d,E,w,P,L,N,q){var ce=E.transform;return{u_is_size_zoom_constant:+(l==="constant"||l==="source"),u_is_size_feature_constant:+(l==="constant"||l==="camera"),u_size_t:h?h.uSizeT:0,u_size:h?h.uSize:0,u_camera_to_center_distance:ce.cameraToCenterDistance,u_pitch:ce.pitch/360*2*Math.PI,u_rotate_symbol:+c,u_aspect_ratio:ce.width/ce.height,u_fade_change:E.options.fadeDuration?E.symbolFadeChange:1,u_matrix:w,u_label_plane_matrix:P,u_coord_matrix:L,u_is_text:+N,u_pitch_with_map:+d,u_texsize:q,u_texture:0}},oc=function(l,h,c,d,E,w,P,L,N,q,ce){var he=E.transform;return m.extend(ac(l,h,c,d,E,w,P,L,N,q),{u_gamma_scale:d?Math.cos(he._pitch)*he.cameraToCenterDistance:1,u_device_pixel_ratio:m.browser.devicePixelRatio,u_is_halo:+ce})},sc=function(l,h,c,d,E,w,P,L,N,q){return m.extend(oc(l,h,c,d,E,w,P,L,!0,N,!0),{u_texsize_icon:q,u_texture_icon:1})},uc=function(l,h,c){return{u_matrix:l,u_opacity:h,u_color:c}},Rl=function(l,h,c,d,E,w){return m.extend(function(P,L,N,q){var ce=N.imageManager.getPattern(P.from.toString()),he=N.imageManager.getPattern(P.to.toString()),de=N.imageManager.getPixelSize(),Re=de.width,Ie=de.height,We=Math.pow(2,q.tileID.overscaledZ),we=q.tileSize*Math.pow(2,N.transform.tileZoom)/We,Ve=we*(q.tileID.canonical.x+q.tileID.wrap*We),tt=we*q.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ce.tl,u_pattern_br_a:ce.br,u_pattern_tl_b:he.tl,u_pattern_br_b:he.br,u_texsize:[Re,Ie],u_mix:L.t,u_pattern_size_a:ce.displaySize,u_pattern_size_b:he.displaySize,u_scale_a:L.fromScale,u_scale_b:L.toScale,u_tile_units_to_pixels:1/Qi(q,1,N.transform.tileZoom),u_pixel_coord_upper:[Ve>>16,tt>>16],u_pixel_coord_lower:[65535&Ve,65535&tt]}}(d,w,c,E),{u_matrix:l,u_opacity:h})},Ll={fillExtrusion:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_lightpos:new m.Uniform3f(l,h.u_lightpos),u_lightintensity:new m.Uniform1f(l,h.u_lightintensity),u_lightcolor:new m.Uniform3f(l,h.u_lightcolor),u_vertical_gradient:new m.Uniform1f(l,h.u_vertical_gradient),u_opacity:new m.Uniform1f(l,h.u_opacity)}},fillExtrusionPattern:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_lightpos:new m.Uniform3f(l,h.u_lightpos),u_lightintensity:new m.Uniform1f(l,h.u_lightintensity),u_lightcolor:new m.Uniform3f(l,h.u_lightcolor),u_vertical_gradient:new m.Uniform1f(l,h.u_vertical_gradient),u_height_factor:new m.Uniform1f(l,h.u_height_factor),u_image:new m.Uniform1i(l,h.u_image),u_texsize:new m.Uniform2f(l,h.u_texsize),u_pixel_coord_upper:new m.Uniform2f(l,h.u_pixel_coord_upper),u_pixel_coord_lower:new m.Uniform2f(l,h.u_pixel_coord_lower),u_scale:new m.Uniform3f(l,h.u_scale),u_fade:new m.Uniform1f(l,h.u_fade),u_opacity:new m.Uniform1f(l,h.u_opacity)}},fill:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix)}},fillPattern:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_image:new m.Uniform1i(l,h.u_image),u_texsize:new m.Uniform2f(l,h.u_texsize),u_pixel_coord_upper:new m.Uniform2f(l,h.u_pixel_coord_upper),u_pixel_coord_lower:new m.Uniform2f(l,h.u_pixel_coord_lower),u_scale:new m.Uniform3f(l,h.u_scale),u_fade:new m.Uniform1f(l,h.u_fade)}},fillOutline:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_world:new m.Uniform2f(l,h.u_world)}},fillOutlinePattern:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_world:new m.Uniform2f(l,h.u_world),u_image:new m.Uniform1i(l,h.u_image),u_texsize:new m.Uniform2f(l,h.u_texsize),u_pixel_coord_upper:new m.Uniform2f(l,h.u_pixel_coord_upper),u_pixel_coord_lower:new m.Uniform2f(l,h.u_pixel_coord_lower),u_scale:new m.Uniform3f(l,h.u_scale),u_fade:new m.Uniform1f(l,h.u_fade)}},circle:function(l,h){return{u_camera_to_center_distance:new m.Uniform1f(l,h.u_camera_to_center_distance),u_scale_with_map:new m.Uniform1i(l,h.u_scale_with_map),u_pitch_with_map:new m.Uniform1i(l,h.u_pitch_with_map),u_extrude_scale:new m.Uniform2f(l,h.u_extrude_scale),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_matrix:new m.UniformMatrix4f(l,h.u_matrix)}},collisionBox:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_camera_to_center_distance:new m.Uniform1f(l,h.u_camera_to_center_distance),u_pixels_to_tile_units:new m.Uniform1f(l,h.u_pixels_to_tile_units),u_extrude_scale:new m.Uniform2f(l,h.u_extrude_scale),u_overscale_factor:new m.Uniform1f(l,h.u_overscale_factor)}},collisionCircle:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_inv_matrix:new m.UniformMatrix4f(l,h.u_inv_matrix),u_camera_to_center_distance:new m.Uniform1f(l,h.u_camera_to_center_distance),u_viewport_size:new m.Uniform2f(l,h.u_viewport_size)}},debug:function(l,h){return{u_color:new m.UniformColor(l,h.u_color),u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_overlay:new m.Uniform1i(l,h.u_overlay),u_overlay_scale:new m.Uniform1f(l,h.u_overlay_scale)}},clippingMask:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix)}},heatmap:function(l,h){return{u_extrude_scale:new m.Uniform1f(l,h.u_extrude_scale),u_intensity:new m.Uniform1f(l,h.u_intensity),u_matrix:new m.UniformMatrix4f(l,h.u_matrix)}},heatmapTexture:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_world:new m.Uniform2f(l,h.u_world),u_image:new m.Uniform1i(l,h.u_image),u_color_ramp:new m.Uniform1i(l,h.u_color_ramp),u_opacity:new m.Uniform1f(l,h.u_opacity)}},hillshade:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_image:new m.Uniform1i(l,h.u_image),u_latrange:new m.Uniform2f(l,h.u_latrange),u_light:new m.Uniform2f(l,h.u_light),u_shadow:new m.UniformColor(l,h.u_shadow),u_highlight:new m.UniformColor(l,h.u_highlight),u_accent:new m.UniformColor(l,h.u_accent)}},hillshadePrepare:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_image:new m.Uniform1i(l,h.u_image),u_dimension:new m.Uniform2f(l,h.u_dimension),u_zoom:new m.Uniform1f(l,h.u_zoom),u_unpack:new m.Uniform4f(l,h.u_unpack)}},line:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_ratio:new m.Uniform1f(l,h.u_ratio),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_units_to_pixels:new m.Uniform2f(l,h.u_units_to_pixels)}},lineGradient:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_ratio:new m.Uniform1f(l,h.u_ratio),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_units_to_pixels:new m.Uniform2f(l,h.u_units_to_pixels),u_image:new m.Uniform1i(l,h.u_image),u_image_height:new m.Uniform1f(l,h.u_image_height)}},linePattern:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_texsize:new m.Uniform2f(l,h.u_texsize),u_ratio:new m.Uniform1f(l,h.u_ratio),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_image:new m.Uniform1i(l,h.u_image),u_units_to_pixels:new m.Uniform2f(l,h.u_units_to_pixels),u_scale:new m.Uniform3f(l,h.u_scale),u_fade:new m.Uniform1f(l,h.u_fade)}},lineSDF:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_ratio:new m.Uniform1f(l,h.u_ratio),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_units_to_pixels:new m.Uniform2f(l,h.u_units_to_pixels),u_patternscale_a:new m.Uniform2f(l,h.u_patternscale_a),u_patternscale_b:new m.Uniform2f(l,h.u_patternscale_b),u_sdfgamma:new m.Uniform1f(l,h.u_sdfgamma),u_image:new m.Uniform1i(l,h.u_image),u_tex_y_a:new m.Uniform1f(l,h.u_tex_y_a),u_tex_y_b:new m.Uniform1f(l,h.u_tex_y_b),u_mix:new m.Uniform1f(l,h.u_mix)}},raster:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_tl_parent:new m.Uniform2f(l,h.u_tl_parent),u_scale_parent:new m.Uniform1f(l,h.u_scale_parent),u_buffer_scale:new m.Uniform1f(l,h.u_buffer_scale),u_fade_t:new m.Uniform1f(l,h.u_fade_t),u_opacity:new m.Uniform1f(l,h.u_opacity),u_image0:new m.Uniform1i(l,h.u_image0),u_image1:new m.Uniform1i(l,h.u_image1),u_brightness_low:new m.Uniform1f(l,h.u_brightness_low),u_brightness_high:new m.Uniform1f(l,h.u_brightness_high),u_saturation_factor:new m.Uniform1f(l,h.u_saturation_factor),u_contrast_factor:new m.Uniform1f(l,h.u_contrast_factor),u_spin_weights:new m.Uniform3f(l,h.u_spin_weights)}},symbolIcon:function(l,h){return{u_is_size_zoom_constant:new m.Uniform1i(l,h.u_is_size_zoom_constant),u_is_size_feature_constant:new m.Uniform1i(l,h.u_is_size_feature_constant),u_size_t:new m.Uniform1f(l,h.u_size_t),u_size:new m.Uniform1f(l,h.u_size),u_camera_to_center_distance:new m.Uniform1f(l,h.u_camera_to_center_distance),u_pitch:new m.Uniform1f(l,h.u_pitch),u_rotate_symbol:new m.Uniform1i(l,h.u_rotate_symbol),u_aspect_ratio:new m.Uniform1f(l,h.u_aspect_ratio),u_fade_change:new m.Uniform1f(l,h.u_fade_change),u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_label_plane_matrix:new m.UniformMatrix4f(l,h.u_label_plane_matrix),u_coord_matrix:new m.UniformMatrix4f(l,h.u_coord_matrix),u_is_text:new m.Uniform1i(l,h.u_is_text),u_pitch_with_map:new m.Uniform1i(l,h.u_pitch_with_map),u_texsize:new m.Uniform2f(l,h.u_texsize),u_texture:new m.Uniform1i(l,h.u_texture)}},symbolSDF:function(l,h){return{u_is_size_zoom_constant:new m.Uniform1i(l,h.u_is_size_zoom_constant),u_is_size_feature_constant:new m.Uniform1i(l,h.u_is_size_feature_constant),u_size_t:new m.Uniform1f(l,h.u_size_t),u_size:new m.Uniform1f(l,h.u_size),u_camera_to_center_distance:new m.Uniform1f(l,h.u_camera_to_center_distance),u_pitch:new m.Uniform1f(l,h.u_pitch),u_rotate_symbol:new m.Uniform1i(l,h.u_rotate_symbol),u_aspect_ratio:new m.Uniform1f(l,h.u_aspect_ratio),u_fade_change:new m.Uniform1f(l,h.u_fade_change),u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_label_plane_matrix:new m.UniformMatrix4f(l,h.u_label_plane_matrix),u_coord_matrix:new m.UniformMatrix4f(l,h.u_coord_matrix),u_is_text:new m.Uniform1i(l,h.u_is_text),u_pitch_with_map:new m.Uniform1i(l,h.u_pitch_with_map),u_texsize:new m.Uniform2f(l,h.u_texsize),u_texture:new m.Uniform1i(l,h.u_texture),u_gamma_scale:new m.Uniform1f(l,h.u_gamma_scale),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_is_halo:new m.Uniform1i(l,h.u_is_halo)}},symbolTextAndIcon:function(l,h){return{u_is_size_zoom_constant:new m.Uniform1i(l,h.u_is_size_zoom_constant),u_is_size_feature_constant:new m.Uniform1i(l,h.u_is_size_feature_constant),u_size_t:new m.Uniform1f(l,h.u_size_t),u_size:new m.Uniform1f(l,h.u_size),u_camera_to_center_distance:new m.Uniform1f(l,h.u_camera_to_center_distance),u_pitch:new m.Uniform1f(l,h.u_pitch),u_rotate_symbol:new m.Uniform1i(l,h.u_rotate_symbol),u_aspect_ratio:new m.Uniform1f(l,h.u_aspect_ratio),u_fade_change:new m.Uniform1f(l,h.u_fade_change),u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_label_plane_matrix:new m.UniformMatrix4f(l,h.u_label_plane_matrix),u_coord_matrix:new m.UniformMatrix4f(l,h.u_coord_matrix),u_is_text:new m.Uniform1i(l,h.u_is_text),u_pitch_with_map:new m.Uniform1i(l,h.u_pitch_with_map),u_texsize:new m.Uniform2f(l,h.u_texsize),u_texsize_icon:new m.Uniform2f(l,h.u_texsize_icon),u_texture:new m.Uniform1i(l,h.u_texture),u_texture_icon:new m.Uniform1i(l,h.u_texture_icon),u_gamma_scale:new m.Uniform1f(l,h.u_gamma_scale),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_is_halo:new m.Uniform1i(l,h.u_is_halo)}},background:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_opacity:new m.Uniform1f(l,h.u_opacity),u_color:new m.UniformColor(l,h.u_color)}},backgroundPattern:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_opacity:new m.Uniform1f(l,h.u_opacity),u_image:new m.Uniform1i(l,h.u_image),u_pattern_tl_a:new m.Uniform2f(l,h.u_pattern_tl_a),u_pattern_br_a:new m.Uniform2f(l,h.u_pattern_br_a),u_pattern_tl_b:new m.Uniform2f(l,h.u_pattern_tl_b),u_pattern_br_b:new m.Uniform2f(l,h.u_pattern_br_b),u_texsize:new m.Uniform2f(l,h.u_texsize),u_mix:new m.Uniform1f(l,h.u_mix),u_pattern_size_a:new m.Uniform2f(l,h.u_pattern_size_a),u_pattern_size_b:new m.Uniform2f(l,h.u_pattern_size_b),u_scale_a:new m.Uniform1f(l,h.u_scale_a),u_scale_b:new m.Uniform1f(l,h.u_scale_b),u_pixel_coord_upper:new m.Uniform2f(l,h.u_pixel_coord_upper),u_pixel_coord_lower:new m.Uniform2f(l,h.u_pixel_coord_lower),u_tile_units_to_pixels:new m.Uniform1f(l,h.u_tile_units_to_pixels)}}};function pl(l,h,c,d,E,w,P){for(var L=l.context,N=L.gl,q=l.useProgram("collisionBox"),ce=[],he=0,de=0,Re=0;Re0){var Wt=m.create(),jt=Ve;m.mul(Wt,we.placementInvProjMatrix,l.transform.glCoordMatrix),m.mul(Wt,Wt,we.placementViewportMatrix),ce.push({circleArray:yt,circleOffset:de,transform:jt,invTransform:Wt}),de=he+=yt.length/4}tt&&q.draw(L,N.LINES,ye.disabled,Pe.disabled,l.colorModeForRenderPass(),rt.disabled,ws(Ve,l.transform,We),c.id,tt.layoutVertexBuffer,tt.indexBuffer,tt.segments,null,l.transform.zoom,null,null,tt.collisionVertexBuffer)}}if(P&&ce.length){var Jt=l.useProgram("collisionCircle"),dr=new m.StructArrayLayout2f1f2i16;dr.resize(4*he),dr._trim();for(var Fr=0,kr=0,ln=ce;kr=0&&(Ie[we.associatedIconIndex]={shiftedAnchor:dr,angle:Fr})}else oo(we.numGlyphs,de)}if(ce){Re.clear();for(var ln=l.icon.placedSymbolArray,Nn=0;Nn0){var P=m.browser.now(),L=(P-l.timeAdded)/w,N=h?(P-h.timeAdded)/w:-1,q=c.getSource(),ce=E.coveringZoomLevel({tileSize:q.tileSize,roundZoom:q.roundZoom}),he=!h||Math.abs(h.tileID.overscaledZ-ce)>Math.abs(l.tileID.overscaledZ-ce),de=he&&l.refreshedUponExpiration?1:m.clamp(he?L:1-N,0,1);return l.refreshedUponExpiration&&L>=1&&(l.refreshedUponExpiration=!1),h?{opacity:1,mix:1-de}:{opacity:de,mix:0}}return{opacity:1,mix:0}}var Dl=new m.Color(1,0,0,1),Zf=new m.Color(0,1,0,1),jf=new m.Color(0,0,1,1),vl=new m.Color(1,0,1,1),Vf=new m.Color(0,1,1,1);function Eh(l,h,c,d){cc(l,0,h+c/2,l.transform.width,c,d)}function Fc(l,h,c,d){cc(l,h-c/2,0,c,l.transform.height,d)}function cc(l,h,c,d,E,w){var P=l.context,L=P.gl;L.enable(L.SCISSOR_TEST),L.scissor(h*m.browser.devicePixelRatio,c*m.browser.devicePixelRatio,d*m.browser.devicePixelRatio,E*m.browser.devicePixelRatio),P.clear({color:w}),L.disable(L.SCISSOR_TEST)}function tp(l,h,c){var d=l.context,E=d.gl,w=c.posMatrix,P=l.useProgram("debug"),L=ye.disabled,N=Pe.disabled,q=l.colorModeForRenderPass();d.activeTexture.set(E.TEXTURE0),l.emptyTexture.bind(E.LINEAR,E.CLAMP_TO_EDGE),P.draw(d,E.LINE_STRIP,L,N,q,rt.disabled,su(w,m.Color.red),"$debug",l.debugBuffer,l.tileBorderIndexBuffer,l.debugSegments);var ce=h.getTileByID(c.key).latestRawTileData,he=Math.floor((ce&&ce.byteLength||0)/1024),de=h.getTile(c).tileSize,Re=512/Math.min(de,512)*(c.overscaledZ/l.transform.zoom)*.5,Ie=c.canonical.toString();c.overscaledZ!==c.canonical.z&&(Ie+=" => "+c.overscaledZ),function(We,we){We.initDebugOverlayCanvas();var Ve=We.debugOverlayCanvas,tt=We.context.gl,yt=We.debugOverlayCanvas.getContext("2d");yt.clearRect(0,0,Ve.width,Ve.height),yt.shadowColor="white",yt.shadowBlur=2,yt.lineWidth=1.5,yt.strokeStyle="white",yt.textBaseline="top",yt.font="bold 36px Open Sans, sans-serif",yt.fillText(we,5,5),yt.strokeText(we,5,5),We.debugOverlayTexture.update(Ve),We.debugOverlayTexture.bind(tt.LINEAR,tt.CLAMP_TO_EDGE)}(l,Ie+" "+he+"kb"),P.draw(d,E.TRIANGLES,L,N,He.alphaBlended,rt.disabled,su(w,m.Color.transparent,Re),"$debug",l.debugBuffer,l.quadTriangleIndexBuffer,l.debugSegments)}var fc={symbol:function(l,h,c,d,E){if(l.renderPass==="translucent"){var w=Pe.disabled,P=l.colorModeForRenderPass();c.layout.get("text-variable-anchor")&&function(L,N,q,ce,he,de,Re){for(var Ie=N.transform,We=he==="map",we=de==="map",Ve=0,tt=L;Ve256&&this.clearStencil(),c.setColorMode(He.disabled),c.setDepthMode(ye.disabled);var E=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var w=0,P=h;w256&&this.clearStencil();var l=this.nextStencilID++,h=this.context.gl;return new Pe({func:h.NOTEQUAL,mask:255},l,255,h.KEEP,h.KEEP,h.REPLACE)},Va.prototype.stencilModeForClipping=function(l){var h=this.context.gl;return new Pe({func:h.EQUAL,mask:255},this._tileClippingMaskIDs[l.key],0,h.KEEP,h.KEEP,h.REPLACE)},Va.prototype.stencilConfigForOverlap=function(l){var h,c=this.context.gl,d=l.sort(function(N,q){return q.overscaledZ-N.overscaledZ}),E=d[d.length-1].overscaledZ,w=d[0].overscaledZ-E+1;if(w>1){this.currentStencilSource=void 0,this.nextStencilID+w>256&&this.clearStencil();for(var P={},L=0;L=0;this.currentLayer--){var yt=this.style._layers[d[this.currentLayer]],Wt=E[yt.source],jt=q[yt.source];this._renderTileClippingMasks(yt,jt),this.renderLayer(this,Wt,yt,jt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?h.pop():null},Va.prototype.isPatternMissing=function(l){if(!l)return!1;if(!l.from||!l.to)return!0;var h=this.imageManager.getPattern(l.from.toString()),c=this.imageManager.getPattern(l.to.toString());return!h||!c},Va.prototype.useProgram=function(l,h){this.cache=this.cache||{};var c=""+l+(h?h.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[c]||(this.cache[c]=new Rc(this.context,l,As[l],h,Ll[l],this._showOverdrawInspector)),this.cache[c]},Va.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Va.prototype.setBaseState=function(){var l=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(l.FUNC_ADD)},Va.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=m.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new m.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},Va.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var hc=function(l,h){this.points=l,this.planes=h};hc.fromInvProjectionMatrix=function(l,h,c){var d=Math.pow(2,c),E=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(P){return m.transformMat4([],P,l)}).map(function(P){return m.scale$1([],P,1/P[3]/h*d)}),w=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(P){var L=m.sub([],E[P[0]],E[P[1]]),N=m.sub([],E[P[2]],E[P[1]]),q=m.normalize([],m.cross([],L,N)),ce=-m.dot(q,E[P[1]]);return q.concat(ce)});return new hc(E,w)};var ts=function(l,h){this.min=l,this.max=h,this.center=m.scale$2([],m.add([],this.min,this.max),.5)};ts.prototype.quadrant=function(l){for(var h=[l%2==0,l<2],c=m.clone$2(this.min),d=m.clone$2(this.max),E=0;E=0;if(w===0)return 0;w!==h.length&&(c=!1)}if(c)return 2;for(var L=0;L<3;L++){for(var N=Number.MAX_VALUE,q=-Number.MAX_VALUE,ce=0;cethis.max[L]-this.min[L])return 0}return 1};var Uu=function(l,h,c,d){if(l===void 0&&(l=0),h===void 0&&(h=0),c===void 0&&(c=0),d===void 0&&(d=0),isNaN(l)||l<0||isNaN(h)||h<0||isNaN(c)||c<0||isNaN(d)||d<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=l,this.bottom=h,this.left=c,this.right=d};Uu.prototype.interpolate=function(l,h,c){return h.top!=null&&l.top!=null&&(this.top=m.number(l.top,h.top,c)),h.bottom!=null&&l.bottom!=null&&(this.bottom=m.number(l.bottom,h.bottom,c)),h.left!=null&&l.left!=null&&(this.left=m.number(l.left,h.left,c)),h.right!=null&&l.right!=null&&(this.right=m.number(l.right,h.right,c)),this},Uu.prototype.getCenter=function(l,h){var c=m.clamp((this.left+l-this.right)/2,0,l),d=m.clamp((this.top+h-this.bottom)/2,0,h);return new m.Point(c,d)},Uu.prototype.equals=function(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right},Uu.prototype.clone=function(){return new Uu(this.top,this.bottom,this.left,this.right)},Uu.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var kn=function(l,h,c,d,E){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=E===void 0||E,this._minZoom=l||0,this._maxZoom=h||22,this._minPitch=c==null?0:c,this._maxPitch=d==null?60:d,this.setMaxBounds(),this.width=0,this.height=0,this._center=new m.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Uu,this._posMatrixCache={},this._alignedPosMatrixCache={}},Ma={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};kn.prototype.clone=function(){var l=new kn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return l.tileSize=this.tileSize,l.latRange=this.latRange,l.width=this.width,l.height=this.height,l._center=this._center,l.zoom=this.zoom,l.angle=this.angle,l._fov=this._fov,l._pitch=this._pitch,l._unmodified=this._unmodified,l._edgeInsets=this._edgeInsets.clone(),l._calcMatrices(),l},Ma.minZoom.get=function(){return this._minZoom},Ma.minZoom.set=function(l){this._minZoom!==l&&(this._minZoom=l,this.zoom=Math.max(this.zoom,l))},Ma.maxZoom.get=function(){return this._maxZoom},Ma.maxZoom.set=function(l){this._maxZoom!==l&&(this._maxZoom=l,this.zoom=Math.min(this.zoom,l))},Ma.minPitch.get=function(){return this._minPitch},Ma.minPitch.set=function(l){this._minPitch!==l&&(this._minPitch=l,this.pitch=Math.max(this.pitch,l))},Ma.maxPitch.get=function(){return this._maxPitch},Ma.maxPitch.set=function(l){this._maxPitch!==l&&(this._maxPitch=l,this.pitch=Math.min(this.pitch,l))},Ma.renderWorldCopies.get=function(){return this._renderWorldCopies},Ma.renderWorldCopies.set=function(l){l===void 0?l=!0:l===null&&(l=!1),this._renderWorldCopies=l},Ma.worldSize.get=function(){return this.tileSize*this.scale},Ma.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Ma.size.get=function(){return new m.Point(this.width,this.height)},Ma.bearing.get=function(){return-this.angle/Math.PI*180},Ma.bearing.set=function(l){var h=-m.wrap(l,-180,180)*Math.PI/180;this.angle!==h&&(this._unmodified=!1,this.angle=h,this._calcMatrices(),this.rotationMatrix=m.create$2(),m.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Ma.pitch.get=function(){return this._pitch/Math.PI*180},Ma.pitch.set=function(l){var h=m.clamp(l,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==h&&(this._unmodified=!1,this._pitch=h,this._calcMatrices())},Ma.fov.get=function(){return this._fov/Math.PI*180},Ma.fov.set=function(l){l=Math.max(.01,Math.min(60,l)),this._fov!==l&&(this._unmodified=!1,this._fov=l/180*Math.PI,this._calcMatrices())},Ma.zoom.get=function(){return this._zoom},Ma.zoom.set=function(l){var h=Math.min(Math.max(l,this.minZoom),this.maxZoom);this._zoom!==h&&(this._unmodified=!1,this._zoom=h,this.scale=this.zoomScale(h),this.tileZoom=Math.floor(h),this.zoomFraction=h-this.tileZoom,this._constrain(),this._calcMatrices())},Ma.center.get=function(){return this._center},Ma.center.set=function(l){l.lat===this._center.lat&&l.lng===this._center.lng||(this._unmodified=!1,this._center=l,this._constrain(),this._calcMatrices())},Ma.padding.get=function(){return this._edgeInsets.toJSON()},Ma.padding.set=function(l){this._edgeInsets.equals(l)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,l,1),this._calcMatrices())},Ma.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},kn.prototype.isPaddingEqual=function(l){return this._edgeInsets.equals(l)},kn.prototype.interpolatePadding=function(l,h,c){this._unmodified=!1,this._edgeInsets.interpolate(l,h,c),this._constrain(),this._calcMatrices()},kn.prototype.coveringZoomLevel=function(l){var h=(l.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/l.tileSize));return Math.max(0,h)},kn.prototype.getVisibleUnwrappedCoordinates=function(l){var h=[new m.UnwrappedTileID(0,l)];if(this._renderWorldCopies)for(var c=this.pointCoordinate(new m.Point(0,0)),d=this.pointCoordinate(new m.Point(this.width,0)),E=this.pointCoordinate(new m.Point(this.width,this.height)),w=this.pointCoordinate(new m.Point(0,this.height)),P=Math.floor(Math.min(c.x,d.x,E.x,w.x)),L=Math.floor(Math.max(c.x,d.x,E.x,w.x)),N=P-1;N<=L+1;N++)N!==0&&h.push(new m.UnwrappedTileID(N,l));return h},kn.prototype.coveringTiles=function(l){var h=this.coveringZoomLevel(l),c=h;if(l.minzoom!==void 0&&hl.maxzoom&&(h=l.maxzoom);var d=m.MercatorCoordinate.fromLngLat(this.center),E=Math.pow(2,h),w=[E*d.x,E*d.y,0],P=hc.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,h),L=l.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(L=h);var N=function(kr){return{aabb:new ts([kr*E,0,0],[(kr+1)*E,E,0]),zoom:0,x:0,y:0,wrap:kr,fullyVisible:!1}},q=[],ce=[],he=h,de=l.reparseOverscaled?c:h;if(this._renderWorldCopies)for(var Re=1;Re<=3;Re++)q.push(N(-Re)),q.push(N(Re));for(q.push(N(0));q.length>0;){var Ie=q.pop(),We=Ie.x,we=Ie.y,Ve=Ie.fullyVisible;if(!Ve){var tt=Ie.aabb.intersects(P);if(tt===0)continue;Ve=tt===2}var yt=Ie.aabb.distanceX(w),Wt=Ie.aabb.distanceY(w),jt=Math.max(Math.abs(yt),Math.abs(Wt));if(Ie.zoom===he||jt>3+(1<=L)ce.push({tileID:new m.OverscaledTileID(Ie.zoom===he?de:Ie.zoom,Ie.wrap,Ie.zoom,We,we),distanceSq:m.sqrLen([w[0]-.5-We,w[1]-.5-we])});else for(var Jt=0;Jt<4;Jt++){var dr=(We<<1)+Jt%2,Fr=(we<<1)+(Jt>>1);q.push({aabb:Ie.aabb.quadrant(Jt),zoom:Ie.zoom+1,x:dr,y:Fr,wrap:Ie.wrap,fullyVisible:Ve})}}return ce.sort(function(kr,ln){return kr.distanceSq-ln.distanceSq}).map(function(kr){return kr.tileID})},kn.prototype.resize=function(l,h){this.width=l,this.height=h,this.pixelsToGLUnits=[2/l,-2/h],this._constrain(),this._calcMatrices()},Ma.unmodified.get=function(){return this._unmodified},kn.prototype.zoomScale=function(l){return Math.pow(2,l)},kn.prototype.scaleZoom=function(l){return Math.log(l)/Math.LN2},kn.prototype.project=function(l){var h=m.clamp(l.lat,-this.maxValidLatitude,this.maxValidLatitude);return new m.Point(m.mercatorXfromLng(l.lng)*this.worldSize,m.mercatorYfromLat(h)*this.worldSize)},kn.prototype.unproject=function(l){return new m.MercatorCoordinate(l.x/this.worldSize,l.y/this.worldSize).toLngLat()},Ma.point.get=function(){return this.project(this.center)},kn.prototype.setLocationAtPoint=function(l,h){var c=this.pointCoordinate(h),d=this.pointCoordinate(this.centerPoint),E=this.locationCoordinate(l),w=new m.MercatorCoordinate(E.x-(c.x-d.x),E.y-(c.y-d.y));this.center=this.coordinateLocation(w),this._renderWorldCopies&&(this.center=this.center.wrap())},kn.prototype.locationPoint=function(l){return this.coordinatePoint(this.locationCoordinate(l))},kn.prototype.pointLocation=function(l){return this.coordinateLocation(this.pointCoordinate(l))},kn.prototype.locationCoordinate=function(l){return m.MercatorCoordinate.fromLngLat(l)},kn.prototype.coordinateLocation=function(l){return l.toLngLat()},kn.prototype.pointCoordinate=function(l){var h=[l.x,l.y,0,1],c=[l.x,l.y,1,1];m.transformMat4(h,h,this.pixelMatrixInverse),m.transformMat4(c,c,this.pixelMatrixInverse);var d=h[3],E=c[3],w=h[1]/d,P=c[1]/E,L=h[2]/d,N=c[2]/E,q=L===N?0:(0-L)/(N-L);return new m.MercatorCoordinate(m.number(h[0]/d,c[0]/E,q)/this.worldSize,m.number(w,P,q)/this.worldSize)},kn.prototype.coordinatePoint=function(l){var h=[l.x*this.worldSize,l.y*this.worldSize,0,1];return m.transformMat4(h,h,this.pixelMatrix),new m.Point(h[0]/h[3],h[1]/h[3])},kn.prototype.getBounds=function(){return new m.LngLatBounds().extend(this.pointLocation(new m.Point(0,0))).extend(this.pointLocation(new m.Point(this.width,0))).extend(this.pointLocation(new m.Point(this.width,this.height))).extend(this.pointLocation(new m.Point(0,this.height)))},kn.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new m.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},kn.prototype.setMaxBounds=function(l){l?(this.lngRange=[l.getWest(),l.getEast()],this.latRange=[l.getSouth(),l.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},kn.prototype.calculatePosMatrix=function(l,h){h===void 0&&(h=!1);var c=l.key,d=h?this._alignedPosMatrixCache:this._posMatrixCache;if(d[c])return d[c];var E=l.canonical,w=this.worldSize/this.zoomScale(E.z),P=E.x+Math.pow(2,E.z)*l.wrap,L=m.identity(new Float64Array(16));return m.translate(L,L,[P*w,E.y*w,0]),m.scale(L,L,[w/m.EXTENT,w/m.EXTENT,1]),m.multiply(L,h?this.alignedProjMatrix:this.projMatrix,L),d[c]=new Float32Array(L),d[c]},kn.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},kn.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var l,h,c,d,E=-90,w=90,P=-180,L=180,N=this.size,q=this._unmodified;if(this.latRange){var ce=this.latRange;E=m.mercatorYfromLat(ce[1])*this.worldSize,l=(w=m.mercatorYfromLat(ce[0])*this.worldSize)-Ew&&(d=w-We)}if(this.lngRange){var we=de.x,Ve=N.x/2;we-VeL&&(c=L-Ve)}c===void 0&&d===void 0||(this.center=this.unproject(new m.Point(c!==void 0?c:de.x,d!==void 0?d:de.y))),this._unmodified=q,this._constraining=!1}},kn.prototype._calcMatrices=function(){if(this.height){var l=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var h=Math.PI/2+this._pitch,c=this._fov*(.5+l.y/this.height),d=Math.sin(c)*this.cameraToCenterDistance/Math.sin(m.clamp(Math.PI-h-c,.01,Math.PI-.01)),E=this.point,w=E.x,P=E.y,L=1.01*(Math.cos(Math.PI/2-this._pitch)*d+this.cameraToCenterDistance),N=this.height/50,q=new Float64Array(16);m.perspective(q,this._fov,this.width/this.height,N,L),q[8]=2*-l.x/this.width,q[9]=2*l.y/this.height,m.scale(q,q,[1,-1,1]),m.translate(q,q,[0,0,-this.cameraToCenterDistance]),m.rotateX(q,q,this._pitch),m.rotateZ(q,q,this.angle),m.translate(q,q,[-w,-P,0]),this.mercatorMatrix=m.scale([],q,[this.worldSize,this.worldSize,this.worldSize]),m.scale(q,q,[1,1,m.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=q,this.invProjMatrix=m.invert([],this.projMatrix);var ce=this.width%2/2,he=this.height%2/2,de=Math.cos(this.angle),Re=Math.sin(this.angle),Ie=w-Math.round(w)+de*ce+Re*he,We=P-Math.round(P)+de*he+Re*ce,we=new Float64Array(q);if(m.translate(we,we,[Ie>.5?Ie-1:Ie,We>.5?We-1:We,0]),this.alignedProjMatrix=we,q=m.create(),m.scale(q,q,[this.width/2,-this.height/2,1]),m.translate(q,q,[1,-1,0]),this.labelPlaneMatrix=q,q=m.create(),m.scale(q,q,[1,-1,1]),m.translate(q,q,[-1,-1,0]),m.scale(q,q,[2/this.width,2/this.height,1]),this.glCoordMatrix=q,this.pixelMatrix=m.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(q=m.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=q,this._posMatrixCache={},this._alignedPosMatrixCache={}}},kn.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var l=this.pointCoordinate(new m.Point(0,0)),h=[l.x*this.worldSize,l.y*this.worldSize,0,1];return m.transformMat4(h,h,this.pixelMatrix)[3]/this.cameraToCenterDistance},kn.prototype.getCameraPoint=function(){var l=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new m.Point(0,l))},kn.prototype.getCameraQueryGeometry=function(l){var h=this.getCameraPoint();if(l.length===1)return[l[0],h];for(var c=h.x,d=h.y,E=h.x,w=h.y,P=0,L=l;P=3&&!l.some(function(c){return isNaN(c)})){var h=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(l[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+l[2],+l[1]],zoom:+l[0],bearing:h,pitch:+(l[4]||0)}),!0}return!1},Ws.prototype._updateHashUnthrottled=function(){var l=m.window.location.href.replace(/(#.+)?$/,this.getHashString());try{m.window.history.replaceState(m.window.history.state,null,l)}catch(h){}};var Bc={linearity:.3,easing:m.bezier(0,0,.3,1)},Zu=m.extend({deceleration:2500,maxSpeed:1400},Bc),Nc=m.extend({deceleration:20,maxSpeed:1400},Bc),rp=m.extend({deceleration:1e3,maxSpeed:360},Bc),lo=m.extend({deceleration:1e3,maxSpeed:90},Bc),ju=function(l){this._map=l,this.clear()};function Su(l,h){(!l.duration||l.duration0&&h-l[0].time>160;)l.shift()},ju.prototype._onMoveEnd=function(l){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var h={zoom:0,bearing:0,pitch:0,pan:new m.Point(0,0),pinchAround:void 0,around:void 0},c=0,d=this._inertiaBuffer;c=this._clickTolerance||this._map.fire(new Do(l.type,this._map,l))},ho.prototype.dblclick=function(l){return this._firePreventable(new Do(l.type,this._map,l))},ho.prototype.mouseover=function(l){this._map.fire(new Do(l.type,this._map,l))},ho.prototype.mouseout=function(l){this._map.fire(new Do(l.type,this._map,l))},ho.prototype.touchstart=function(l){return this._firePreventable(new Fl(l.type,this._map,l))},ho.prototype.touchmove=function(l){this._map.fire(new Fl(l.type,this._map,l))},ho.prototype.touchend=function(l){this._map.fire(new Fl(l.type,this._map,l))},ho.prototype.touchcancel=function(l){this._map.fire(new Fl(l.type,this._map,l))},ho.prototype._firePreventable=function(l){if(this._map.fire(l),l.defaultPrevented)return{}},ho.prototype.isEnabled=function(){return!0},ho.prototype.isActive=function(){return!1},ho.prototype.enable=function(){},ho.prototype.disable=function(){};var yn=function(l){this._map=l};yn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},yn.prototype.mousemove=function(l){this._map.fire(new Do(l.type,this._map,l))},yn.prototype.mousedown=function(){this._delayContextMenu=!0},yn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Do("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},yn.prototype.contextmenu=function(l){this._delayContextMenu?this._contextMenuEvent=l:this._map.fire(new Do(l.type,this._map,l)),this._map.listens("contextmenu")&&l.preventDefault()},yn.prototype.isEnabled=function(){return!0},yn.prototype.isActive=function(){return!1},yn.prototype.enable=function(){},yn.prototype.disable=function(){};var qa=function(l,h){this._map=l,this._el=l.getCanvasContainer(),this._container=l.getContainer(),this._clickTolerance=h.clickTolerance||1};function nl(l,h){for(var c={},d=0;dthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=l.timeStamp),c.length===this.numTouches&&(this.centroid=function(d){for(var E=new m.Point(0,0),w=0,P=d;w30)&&(this.aborted=!0)}}},pc.prototype.touchend=function(l,h,c){if((!this.centroid||l.timeStamp-this.startTime>500)&&(this.aborted=!0),c.length===0){var d=!this.aborted&&this.centroid;if(this.reset(),d)return d}};var uu=function(l){this.singleTap=new pc(l),this.numTaps=l.numTaps,this.reset()};uu.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},uu.prototype.touchstart=function(l,h,c){this.singleTap.touchstart(l,h,c)},uu.prototype.touchmove=function(l,h,c){this.singleTap.touchmove(l,h,c)},uu.prototype.touchend=function(l,h,c){var d=this.singleTap.touchend(l,h,c);if(d){var E=l.timeStamp-this.lastTime<500,w=!this.lastTap||this.lastTap.dist(d)<30;if(E&&w||this.reset(),this.count++,this.lastTime=l.timeStamp,this.lastTap=d,this.count===this.numTaps)return this.reset(),d}};var na=function(){this._zoomIn=new uu({numTouches:1,numTaps:2}),this._zoomOut=new uu({numTouches:2,numTaps:1}),this.reset()};na.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},na.prototype.touchstart=function(l,h,c){this._zoomIn.touchstart(l,h,c),this._zoomOut.touchstart(l,h,c)},na.prototype.touchmove=function(l,h,c){this._zoomIn.touchmove(l,h,c),this._zoomOut.touchmove(l,h,c)},na.prototype.touchend=function(l,h,c){var d=this,E=this._zoomIn.touchend(l,h,c),w=this._zoomOut.touchend(l,h,c);return E?(this._active=!0,l.preventDefault(),setTimeout(function(){return d.reset()},0),{cameraAnimation:function(P){return P.easeTo({duration:300,zoom:P.getZoom()+1,around:P.unproject(E)},{originalEvent:l})}}):w?(this._active=!0,l.preventDefault(),setTimeout(function(){return d.reset()},0),{cameraAnimation:function(P){return P.easeTo({duration:300,zoom:P.getZoom()-1,around:P.unproject(w)},{originalEvent:l})}}):void 0},na.prototype.touchcancel=function(){this.reset()},na.prototype.enable=function(){this._enabled=!0},na.prototype.disable=function(){this._enabled=!1,this.reset()},na.prototype.isEnabled=function(){return this._enabled},na.prototype.isActive=function(){return this._active};var hf={0:1,2:2},Kr=function(l){this.reset(),this._clickTolerance=l.clickTolerance||1};Kr.prototype.blur=function(){this.reset()},Kr.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Kr.prototype._correctButton=function(l,h){return!1},Kr.prototype._move=function(l,h){return{}},Kr.prototype.mousedown=function(l,h){if(!this._lastPoint){var c=Z.mouseButton(l);this._correctButton(l,c)&&(this._lastPoint=h,this._eventButton=c)}},Kr.prototype.mousemoveWindow=function(l,h){var c=this._lastPoint;if(c){if(l.preventDefault(),function(d,E){var w=hf[E];return d.buttons===void 0||(d.buttons&w)!==w}(l,this._eventButton))this.reset();else if(this._moved||!(h.dist(c)0&&(this._active=!0);var d=nl(c,h),E=new m.Point(0,0),w=new m.Point(0,0),P=0;for(var L in d){var N=d[L],q=this._touches[L];q&&(E._add(N),w._add(N.sub(q)),P++,d[L]=N)}if(this._touches=d,!(PMath.abs(l.x)}var Gf=function(l){function h(){l.apply(this,arguments)}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h.prototype.reset=function(){l.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},h.prototype._start=function(c){this._lastPoints=c,Bl(c[0].sub(c[1]))&&(this._valid=!1)},h.prototype._move=function(c,d,E){var w=c[0].sub(this._lastPoints[0]),P=c[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(w,P,E.timeStamp),this._valid)return this._lastPoints=c,this._active=!0,{pitchDelta:(w.y+P.y)/2*-.5}},h.prototype.gestureBeginsVertically=function(c,d,E){if(this._valid!==void 0)return this._valid;var w=c.mag()>=2,P=d.mag()>=2;if(w||P){if(!w||!P)return this._firstMove===void 0&&(this._firstMove=E),E-this._firstMove<100&&void 0;var L=c.y>0==d.y>0;return Bl(c)&&Bl(d)&&L}},h}(ms),Hf={panStep:100,bearingStep:15,pitchStep:10},Ds=function(){var l=Hf;this._panStep=l.panStep,this._bearingStep=l.bearingStep,this._pitchStep=l.pitchStep,this._rotationDisabled=!1};function Fs(l){return l*(2-l)}Ds.prototype.blur=function(){this.reset()},Ds.prototype.reset=function(){this._active=!1},Ds.prototype.keydown=function(l){var h=this;if(!(l.altKey||l.ctrlKey||l.metaKey)){var c=0,d=0,E=0,w=0,P=0;switch(l.keyCode){case 61:case 107:case 171:case 187:c=1;break;case 189:case 109:case 173:c=-1;break;case 37:l.shiftKey?d=-1:(l.preventDefault(),w=-1);break;case 39:l.shiftKey?d=1:(l.preventDefault(),w=1);break;case 38:l.shiftKey?E=1:(l.preventDefault(),P=-1);break;case 40:l.shiftKey?E=-1:(l.preventDefault(),P=1);break;default:return}return this._rotationDisabled&&(d=0,E=0),{cameraAnimation:function(L){var N=L.getZoom();L.easeTo({duration:300,easeId:"keyboardHandler",easing:Fs,zoom:c?Math.round(N)+c*(l.shiftKey?2:1):N,bearing:L.getBearing()+d*h._bearingStep,pitch:L.getPitch()+E*h._pitchStep,offset:[-w*h._panStep,-P*h._panStep],center:L.getCenter()},{originalEvent:l})}}}},Ds.prototype.enable=function(){this._enabled=!0},Ds.prototype.disable=function(){this._enabled=!1,this.reset()},Ds.prototype.isEnabled=function(){return this._enabled},Ds.prototype.isActive=function(){return this._active},Ds.prototype.disableRotation=function(){this._rotationDisabled=!0},Ds.prototype.enableRotation=function(){this._rotationDisabled=!1};var Fi=function(l,h){this._map=l,this._el=l.getCanvasContainer(),this._handler=h,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,m.bindAll(["_onTimeout"],this)};Fi.prototype.setZoomRate=function(l){this._defaultZoomRate=l},Fi.prototype.setWheelZoomRate=function(l){this._wheelZoomRate=l},Fi.prototype.isEnabled=function(){return!!this._enabled},Fi.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Fi.prototype.isZooming=function(){return!!this._zooming},Fi.prototype.enable=function(l){this.isEnabled()||(this._enabled=!0,this._aroundCenter=l&&l.around==="center")},Fi.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Fi.prototype.wheel=function(l){if(this.isEnabled()){var h=l.deltaMode===m.window.WheelEvent.DOM_DELTA_LINE?40*l.deltaY:l.deltaY,c=m.browser.now(),d=c-(this._lastWheelEventTime||0);this._lastWheelEventTime=c,h!==0&&h%4.000244140625==0?this._type="wheel":h!==0&&Math.abs(h)<4?this._type="trackpad":d>400?(this._type=null,this._lastValue=h,this._timeout=setTimeout(this._onTimeout,40,l)):this._type||(this._type=Math.abs(d*h)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,h+=this._lastValue)),l.shiftKey&&h&&(h/=4),this._type&&(this._lastWheelEvent=l,this._delta-=h,this._active||this._start(l)),l.preventDefault()}},Fi.prototype._onTimeout=function(l){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(l)},Fi.prototype._start=function(l){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var h=Z.mousePos(this._el,l);this._around=m.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(h)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Fi.prototype.renderFrame=function(){var l=this;if(this._frameId&&(this._frameId=null,this.isActive())){var h=this._map.transform;if(this._delta!==0){var c=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,d=2/(1+Math.exp(-Math.abs(this._delta*c)));this._delta<0&&d!==0&&(d=1/d);var E=typeof this._targetZoom=="number"?h.zoomScale(this._targetZoom):h.scale;this._targetZoom=Math.min(h.maxZoom,Math.max(h.minZoom,h.scaleZoom(E*d))),this._type==="wheel"&&(this._startZoom=h.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var w,P=typeof this._targetZoom=="number"?this._targetZoom:h.zoom,L=this._startZoom,N=this._easing,q=!1;if(this._type==="wheel"&&L&&N){var ce=Math.min((m.browser.now()-this._lastWheelEventTime)/200,1),he=N(ce);w=m.number(L,P,he),ce<1?this._frameId||(this._frameId=!0):q=!0}else w=P,q=!0;return this._active=!0,q&&(this._active=!1,this._finishTimeout=setTimeout(function(){l._zooming=!1,l._handler._triggerRenderFrame(),delete l._targetZoom,delete l._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!q,zoomDelta:w-h.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Fi.prototype._smoothOutEasing=function(l){var h=m.ease;if(this._prevEase){var c=this._prevEase,d=(m.browser.now()-c.start)/c.duration,E=c.easing(d+.01)-c.easing(d),w=.27/Math.sqrt(E*E+1e-4)*.01,P=Math.sqrt(.0729-w*w);h=m.bezier(w,P,.25,1)}return this._prevEase={start:m.browser.now(),duration:l,easing:h},h},Fi.prototype.blur=function(){this.reset()},Fi.prototype.reset=function(){this._active=!1};var Au=function(l,h){this._clickZoom=l,this._tapZoom=h};Au.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Au.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Au.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Au.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var wu=function(){this.reset()};wu.prototype.reset=function(){this._active=!1},wu.prototype.blur=function(){this.reset()},wu.prototype.dblclick=function(l,h){return l.preventDefault(),{cameraAnimation:function(c){c.easeTo({duration:300,zoom:c.getZoom()+(l.shiftKey?-1:1),around:c.unproject(h)},{originalEvent:l})}}},wu.prototype.enable=function(){this._enabled=!0},wu.prototype.disable=function(){this._enabled=!1,this.reset()},wu.prototype.isEnabled=function(){return this._enabled},wu.prototype.isActive=function(){return this._active};var rs=function(){this._tap=new uu({numTouches:1,numTaps:1}),this.reset()};rs.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},rs.prototype.touchstart=function(l,h,c){this._swipePoint||(this._tapTime&&l.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?c.length>0&&(this._swipePoint=h[0],this._swipeTouch=c[0].identifier):this._tap.touchstart(l,h,c))},rs.prototype.touchmove=function(l,h,c){if(this._tapTime){if(this._swipePoint){if(c[0].identifier!==this._swipeTouch)return;var d=h[0],E=d.y-this._swipePoint.y;return this._swipePoint=d,l.preventDefault(),this._active=!0,{zoomDelta:E/128}}}else this._tap.touchmove(l,h,c)},rs.prototype.touchend=function(l,h,c){this._tapTime?this._swipePoint&&c.length===0&&this.reset():this._tap.touchend(l,h,c)&&(this._tapTime=l.timeStamp)},rs.prototype.touchcancel=function(){this.reset()},rs.prototype.enable=function(){this._enabled=!0},rs.prototype.disable=function(){this._enabled=!1,this.reset()},rs.prototype.isEnabled=function(){return this._enabled},rs.prototype.isActive=function(){return this._active};var Gu=function(l,h,c){this._el=l,this._mousePan=h,this._touchPan=c};Gu.prototype.enable=function(l){this._inertiaOptions=l||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Gu.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Gu.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Gu.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Tu=function(l,h,c){this._pitchWithRotate=l.pitchWithRotate,this._mouseRotate=h,this._mousePitch=c};Tu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Tu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Tu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Tu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Xs=function(l,h,c,d){this._el=l,this._touchZoom=h,this._touchRotate=c,this._tapDragZoom=d,this._rotationDisabled=!1,this._enabled=!0};Xs.prototype.enable=function(l){this._touchZoom.enable(l),this._rotationDisabled||this._touchRotate.enable(l),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Xs.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Xs.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Xs.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Xs.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Xs.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var gs=function(l){return l.zoom||l.drag||l.pitch||l.rotate},Mu=function(l){function h(){l.apply(this,arguments)}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h}(m.Event);function Rn(l){return l.panDelta&&l.panDelta.mag()||l.zoomDelta||l.bearingDelta||l.pitchDelta}var Cn=function(l,h){this._map=l,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ju(l),this._bearingSnap=h.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(h),m.bindAll(["handleEvent","handleWindowEvent"],this);var c=this._el;this._listeners=[[c,"touchstart",{passive:!0}],[c,"touchmove",{passive:!1}],[c,"touchend",void 0],[c,"touchcancel",void 0],[c,"mousedown",void 0],[c,"mousemove",void 0],[c,"mouseup",void 0],[m.window.document,"mousemove",{capture:!0}],[m.window.document,"mouseup",void 0],[c,"mouseover",void 0],[c,"mouseout",void 0],[c,"dblclick",void 0],[c,"click",void 0],[c,"keydown",{capture:!1}],[c,"keyup",void 0],[c,"wheel",{passive:!1}],[c,"contextmenu",void 0],[m.window,"blur",void 0]];for(var d=0,E=this._listeners;dP?Math.min(2,Jt):Math.max(.5,Jt),Nn=Math.pow(ln,1-Fr),zn=w.unproject(Wt.add(jt.mult(Fr*Nn)).mult(kr));w.setLocationAtPoint(w.renderWorldCopies?zn.wrap():zn,We)}E._fireMoveEvents(d)},function(Fr){E._afterEase(d,Fr)},c),this},h.prototype._prepareEase=function(c,d,E){E===void 0&&(E={}),this._moving=!0,d||E.moving||this.fire(new m.Event("movestart",c)),this._zooming&&!E.zooming&&this.fire(new m.Event("zoomstart",c)),this._rotating&&!E.rotating&&this.fire(new m.Event("rotatestart",c)),this._pitching&&!E.pitching&&this.fire(new m.Event("pitchstart",c))},h.prototype._fireMoveEvents=function(c){this.fire(new m.Event("move",c)),this._zooming&&this.fire(new m.Event("zoom",c)),this._rotating&&this.fire(new m.Event("rotate",c)),this._pitching&&this.fire(new m.Event("pitch",c))},h.prototype._afterEase=function(c,d){if(!this._easeId||!d||this._easeId!==d){delete this._easeId;var E=this._zooming,w=this._rotating,P=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,E&&this.fire(new m.Event("zoomend",c)),w&&this.fire(new m.Event("rotateend",c)),P&&this.fire(new m.Event("pitchend",c)),this.fire(new m.Event("moveend",c))}},h.prototype.flyTo=function(c,d){var E=this;if(!c.essential&&m.browser.prefersReducedMotion){var w=m.pick(c,["center","zoom","bearing","pitch","around"]);return this.jumpTo(w,d)}this.stop(),c=m.extend({offset:[0,0],speed:1.2,curve:1.42,easing:m.ease},c);var P=this.transform,L=this.getZoom(),N=this.getBearing(),q=this.getPitch(),ce=this.getPadding(),he="zoom"in c?m.clamp(+c.zoom,P.minZoom,P.maxZoom):L,de="bearing"in c?this._normalizeBearing(c.bearing,N):N,Re="pitch"in c?+c.pitch:q,Ie="padding"in c?c.padding:P.padding,We=P.zoomScale(he-L),we=m.Point.convert(c.offset),Ve=P.centerPoint.add(we),tt=P.pointLocation(Ve),yt=m.LngLat.convert(c.center||tt);this._normalizeCenter(yt);var Wt=P.project(tt),jt=P.project(yt).sub(Wt),Jt=c.curve,dr=Math.max(P.width,P.height),Fr=dr/We,kr=jt.mag();if("minZoom"in c){var ln=m.clamp(Math.min(c.minZoom,L,he),P.minZoom,P.maxZoom),Nn=dr/P.zoomScale(ln-L);Jt=Math.sqrt(Nn/kr*2)}var zn=Jt*Jt;function Mn(ri){var Kn=(Fr*Fr-dr*dr+(ri?-1:1)*zn*zn*kr*kr)/(2*(ri?Fr:dr)*zn*kr);return Math.log(Math.sqrt(Kn*Kn+1)-Kn)}function Bi(ri){return(Math.exp(ri)-Math.exp(-ri))/2}function Qr(ri){return(Math.exp(ri)+Math.exp(-ri))/2}var li=Mn(0),fi=function(ri){return Qr(li)/Qr(li+Jt*ri)},ii=function(ri){return dr*((Qr(li)*(Bi(Kn=li+Jt*ri)/Qr(Kn))-Bi(li))/zn)/kr;var Kn},Xn=(Mn(1)-li)/Jt;if(Math.abs(kr)<1e-6||!isFinite(Xn)){if(Math.abs(dr-Fr)<1e-6)return this.easeTo(c,d);var xi=Frc.maxDuration&&(c.duration=0),this._zooming=!0,this._rotating=N!==de,this._pitching=Re!==q,this._padding=!P.isPaddingEqual(Ie),this._prepareEase(d,!1),this._ease(function(ri){var Kn=ri*Xn,po=1/fi(Kn);P.zoom=ri===1?he:L+P.scaleZoom(po),E._rotating&&(P.bearing=m.number(N,de,ri)),E._pitching&&(P.pitch=m.number(q,Re,ri)),E._padding&&(P.interpolatePadding(ce,Ie,ri),Ve=P.centerPoint.add(we));var Ka=ri===1?yt:P.unproject(Wt.add(jt.mult(ii(Kn))).mult(po));P.setLocationAtPoint(P.renderWorldCopies?Ka.wrap():Ka,Ve),E._fireMoveEvents(d)},function(){return E._afterEase(d)},c),this},h.prototype.isEasing=function(){return!!this._easeFrameId},h.prototype.stop=function(){return this._stop()},h.prototype._stop=function(c,d){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var E=this._onEaseEnd;delete this._onEaseEnd,E.call(this,d)}if(!c){var w=this.handlers;w&&w.stop(!1)}return this},h.prototype._ease=function(c,d,E){E.animate===!1||E.duration===0?(c(1),d()):(this._easeStart=m.browser.now(),this._easeOptions=E,this._onEaseFrame=c,this._onEaseEnd=d,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},h.prototype._renderFrameCallback=function(){var c=Math.min((m.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(c)),c<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},h.prototype._normalizeBearing=function(c,d){c=m.wrap(c,-180,180);var E=Math.abs(c-d);return Math.abs(c-360-d)180?-360:E<-180?360:0}},h}(m.Evented),ys=function(l){l===void 0&&(l={}),this.options=l,m.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};ys.prototype.getDefaultPosition=function(){return"bottom-right"},ys.prototype.onAdd=function(l){var h=this.options&&this.options.compact;return this._map=l,this._container=Z.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=Z.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=Z.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),h&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),h===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ys.prototype.onRemove=function(){Z.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},ys.prototype._setElementTitle=function(l,h){var c=this._map._getUIString("AttributionControl."+h);l.title=c,l.setAttribute("aria-label",c)},ys.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},ys.prototype._updateEditLink=function(){var l=this._editLink;l||(l=this._editLink=this._container.querySelector(".mapbox-improve-map"));var h=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||m.config.ACCESS_TOKEN}];if(l){var c=h.reduce(function(d,E,w){return E.value&&(d+=E.key+"="+E.value+(w=0)return!1;return!0})).join(" | ");P!==this._attribHTML&&(this._attribHTML=P,l.length?(this._innerContainer.innerHTML=P,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},ys.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var lu=function(){m.bindAll(["_updateLogo"],this),m.bindAll(["_updateCompact"],this)};lu.prototype.onAdd=function(l){this._map=l,this._container=Z.create("div","mapboxgl-ctrl");var h=Z.create("a","mapboxgl-ctrl-logo");return h.target="_blank",h.rel="noopener nofollow",h.href="https://www.mapbox.com/",h.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),h.setAttribute("rel","noopener nofollow"),this._container.appendChild(h),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},lu.prototype.onRemove=function(){Z.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},lu.prototype.getDefaultPosition=function(){return"bottom-left"},lu.prototype._updateLogo=function(l){l&&l.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},lu.prototype._logoRequired=function(){if(this._map.style){var l=this._map.style.sourceCaches;for(var h in l)if(l[h].getSource().mapbox_logo)return!0;return!1}},lu.prototype._updateCompact=function(){var l=this._container.children;if(l.length){var h=l[0];this._map.getCanvasContainer().offsetWidth<250?h.classList.add("mapboxgl-compact"):h.classList.remove("mapboxgl-compact")}};var ns=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};ns.prototype.add=function(l){var h=++this._id;return this._queue.push({callback:l,id:h,cancelled:!1}),h},ns.prototype.remove=function(l){for(var h=this._currentlyRunning,c=0,d=h?this._queue.concat(h):this._queue;cd.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(d.minPitch!=null&&d.maxPitch!=null&&d.minPitch>d.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(d.minPitch!=null&&d.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(d.maxPitch!=null&&d.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var w=new kn(d.minZoom,d.maxZoom,d.minPitch,d.maxPitch,d.renderWorldCopies);if(l.call(this,w,d),this._interactive=d.interactive,this._maxTileCacheSize=d.maxTileCacheSize,this._failIfMajorPerformanceCaveat=d.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=d.preserveDrawingBuffer,this._antialias=d.antialias,this._trackResize=d.trackResize,this._bearingSnap=d.bearingSnap,this._refreshExpiredTiles=d.refreshExpiredTiles,this._fadeDuration=d.fadeDuration,this._crossSourceCollisions=d.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=d.collectResourceTiming,this._renderTaskQueue=new ns,this._controls=[],this._mapId=m.uniqueId(),this._locale=m.extend({},Go,d.locale),this._clickTolerance=d.clickTolerance,this._requestManager=new m.RequestManager(d.transformRequest,d.accessToken),typeof d.container=="string"){if(this._container=m.window.document.getElementById(d.container),!this._container)throw new Error("Container '"+d.container+"' not found.")}else{if(!(d.container instanceof vf))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=d.container}if(d.maxBounds&&this.setMaxBounds(d.maxBounds),m.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return E._update(!1)}),this.on("moveend",function(){return E._update(!1)}),this.on("zoom",function(){return E._update(!0)}),m.window!==void 0&&(m.window.addEventListener("online",this._onWindowOnline,!1),m.window.addEventListener("resize",this._onWindowResize,!1),m.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Cn(this,d),this._hash=d.hash&&new Ws(typeof d.hash=="string"&&d.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:d.center,zoom:d.zoom,bearing:d.bearing,pitch:d.pitch}),d.bounds&&(this.resize(),this.fitBounds(d.bounds,m.extend({},d.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=d.localIdeographFontFamily,d.style&&this.setStyle(d.style,{localIdeographFontFamily:d.localIdeographFontFamily}),d.attributionControl&&this.addControl(new ys({customAttribution:d.customAttribution})),this.addControl(new lu,d.logoPosition),this.on("style.load",function(){E.transform.unmodified&&E.jumpTo(E.style.stylesheet)}),this.on("data",function(P){E._update(P.dataType==="style"),E.fire(new m.Event(P.dataType+"data",P))}),this.on("dataloading",function(P){E.fire(new m.Event(P.dataType+"dataloading",P))})}l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h;var c={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return h.prototype._getMapId=function(){return this._mapId},h.prototype.addControl=function(d,E){if(E===void 0&&(E=d.getDefaultPosition?d.getDefaultPosition():"top-right"),!d||!d.onAdd)return this.fire(new m.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var w=d.onAdd(this);this._controls.push(d);var P=this._controlPositions[E];return E.indexOf("bottom")!==-1?P.insertBefore(w,P.firstChild):P.appendChild(w),this},h.prototype.removeControl=function(d){if(!d||!d.onRemove)return this.fire(new m.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var E=this._controls.indexOf(d);return E>-1&&this._controls.splice(E,1),d.onRemove(this),this},h.prototype.hasControl=function(d){return this._controls.indexOf(d)>-1},h.prototype.resize=function(d){var E=this._containerDimensions(),w=E[0],P=E[1];if(w===this.transform.width&&P===this.transform.height)return this;this._resizeCanvas(w,P),this.transform.resize(w,P),this.painter.resize(w,P);var L=!this._moving;return L&&this.fire(new m.Event("movestart",d)).fire(new m.Event("move",d)),this.fire(new m.Event("resize",d)),L&&this.fire(new m.Event("moveend",d)),this},h.prototype.getBounds=function(){return this.transform.getBounds()},h.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},h.prototype.setMaxBounds=function(d){return this.transform.setMaxBounds(m.LngLatBounds.convert(d)),this._update()},h.prototype.setMinZoom=function(d){if((d=d==null?-2:d)>=-2&&d<=this.transform.maxZoom)return this.transform.minZoom=d,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=d,this._update(),this.getZoom()>d&&this.setZoom(d),this;throw new Error("maxZoom must be greater than the current minZoom")},h.prototype.getMaxZoom=function(){return this.transform.maxZoom},h.prototype.setMinPitch=function(d){if((d=d==null?0:d)<0)throw new Error("minPitch must be greater than or equal to 0");if(d>=0&&d<=this.transform.maxPitch)return this.transform.minPitch=d,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(d>=this.transform.minPitch)return this.transform.maxPitch=d,this._update(),this.getPitch()>d&&this.setPitch(d),this;throw new Error("maxPitch must be greater than the current minPitch")},h.prototype.getMaxPitch=function(){return this.transform.maxPitch},h.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},h.prototype.setRenderWorldCopies=function(d){return this.transform.renderWorldCopies=d,this._update()},h.prototype.project=function(d){return this.transform.locationPoint(m.LngLat.convert(d))},h.prototype.unproject=function(d){return this.transform.pointLocation(m.Point.convert(d))},h.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},h.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},h.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},h.prototype._createDelegatedListener=function(d,E,w){var P,L=this;if(d==="mouseenter"||d==="mouseover"){var N=!1;return{layer:E,listener:w,delegates:{mousemove:function(ce){var he=L.getLayer(E)?L.queryRenderedFeatures(ce.point,{layers:[E]}):[];he.length?N||(N=!0,w.call(L,new Do(d,L,ce.originalEvent,{features:he}))):N=!1},mouseout:function(){N=!1}}}}if(d==="mouseleave"||d==="mouseout"){var q=!1;return{layer:E,listener:w,delegates:{mousemove:function(ce){(L.getLayer(E)?L.queryRenderedFeatures(ce.point,{layers:[E]}):[]).length?q=!0:q&&(q=!1,w.call(L,new Do(d,L,ce.originalEvent)))},mouseout:function(ce){q&&(q=!1,w.call(L,new Do(d,L,ce.originalEvent)))}}}}return{layer:E,listener:w,delegates:(P={},P[d]=function(ce){var he=L.getLayer(E)?L.queryRenderedFeatures(ce.point,{layers:[E]}):[];he.length&&(ce.features=he,w.call(L,ce),delete ce.features)},P)}},h.prototype.on=function(d,E,w){if(w===void 0)return l.prototype.on.call(this,d,E);var P=this._createDelegatedListener(d,E,w);for(var L in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[d]=this._delegatedListeners[d]||[],this._delegatedListeners[d].push(P),P.delegates)this.on(L,P.delegates[L]);return this},h.prototype.once=function(d,E,w){if(w===void 0)return l.prototype.once.call(this,d,E);var P=this._createDelegatedListener(d,E,w);for(var L in P.delegates)this.once(L,P.delegates[L]);return this},h.prototype.off=function(d,E,w){var P=this;return w===void 0?l.prototype.off.call(this,d,E):(this._delegatedListeners&&this._delegatedListeners[d]&&function(L){for(var N=L[d],q=0;q180;){var P=c.locationPoint(l);if(P.x>=0&&P.y>=0&&P.x<=c.width&&P.y<=c.height)break;l.lng>c.center.lng?l.lng-=360:l.lng+=360}return l}Fo.prototype.down=function(l,h){this.mouseRotate.mousedown(l,h),this.mousePitch&&this.mousePitch.mousedown(l,h),Z.disableDrag()},Fo.prototype.move=function(l,h){var c=this.map,d=this.mouseRotate.mousemoveWindow(l,h);if(d&&d.bearingDelta&&c.setBearing(c.getBearing()+d.bearingDelta),this.mousePitch){var E=this.mousePitch.mousemoveWindow(l,h);E&&E.pitchDelta&&c.setPitch(c.getPitch()+E.pitchDelta)}},Fo.prototype.off=function(){var l=this.element;Z.removeEventListener(l,"mousedown",this.mousedown),Z.removeEventListener(l,"touchstart",this.touchstart,{passive:!1}),Z.removeEventListener(l,"touchmove",this.touchmove),Z.removeEventListener(l,"touchend",this.touchend),Z.removeEventListener(l,"touchcancel",this.reset),this.offTemp()},Fo.prototype.offTemp=function(){Z.enableDrag(),Z.removeEventListener(m.window,"mousemove",this.mousemove),Z.removeEventListener(m.window,"mouseup",this.mouseup)},Fo.prototype.mousedown=function(l){this.down(m.extend({},l,{ctrlKey:!0,preventDefault:function(){return l.preventDefault()}}),Z.mousePos(this.element,l)),Z.addEventListener(m.window,"mousemove",this.mousemove),Z.addEventListener(m.window,"mouseup",this.mouseup)},Fo.prototype.mousemove=function(l){this.move(l,Z.mousePos(this.element,l))},Fo.prototype.mouseup=function(l){this.mouseRotate.mouseupWindow(l),this.mousePitch&&this.mousePitch.mouseupWindow(l),this.offTemp()},Fo.prototype.touchstart=function(l){l.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=Z.touchPos(this.element,l.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return l.preventDefault()}},this._startPos))},Fo.prototype.touchmove=function(l){l.targetTouches.length!==1?this.reset():(this._lastPos=Z.touchPos(this.element,l.targetTouches)[0],this.move({preventDefault:function(){return l.preventDefault()}},this._lastPos))},Fo.prototype.touchend=function(l){l.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=d}this._isDragging&&(this._pos=c.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new m.Event("dragstart"))),this.fire(new m.Event("drag")))},h.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new m.Event("dragend")),this._state="inactive"},h.prototype._addDragHandler=function(c){this._element.contains(c.originalEvent.target)&&(c.preventDefault(),this._positionDelta=c.point.sub(this._pos).add(this._offset),this._pointerdownPos=c.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},h.prototype.setDraggable=function(c){return this._draggable=!!c,this._map&&(c?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},h.prototype.isDraggable=function(){return this._draggable},h.prototype.setRotation=function(c){return this._rotation=c||0,this._update(),this},h.prototype.getRotation=function(){return this._rotation},h.prototype.setRotationAlignment=function(c){return this._rotationAlignment=c||"auto",this._update(),this},h.prototype.getRotationAlignment=function(){return this._rotationAlignment},h.prototype.setPitchAlignment=function(c){return this._pitchAlignment=c&&c!=="auto"?c:this._rotationAlignment,this._update(),this},h.prototype.getPitchAlignment=function(){return this._pitchAlignment},h}(m.Evented),gf={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Iu=0,vc=!1,Vc=function(l){function h(c){l.call(this),this.options=m.extend({},gf,c),m.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h.prototype.onAdd=function(c){var d;return this._map=c,this._container=Z.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),d=this._setupUI,Nl!==void 0?d(Nl):m.window.navigator.permissions!==void 0?m.window.navigator.permissions.query({name:"geolocation"}).then(function(E){d(Nl=E.state!=="denied")}):d(Nl=!!m.window.navigator.geolocation),this._container},h.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(m.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),Z.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Iu=0,vc=!1},h.prototype._isOutOfMapMaxBounds=function(c){var d=this._map.getMaxBounds(),E=c.coords;return d&&(E.longituded.getEast()||E.latituded.getNorth())},h.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},h.prototype._onSuccess=function(c){if(this._map){if(this._isOutOfMapMaxBounds(c))return this._setErrorState(),this.fire(new m.Event("outofmaxbounds",c)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=c,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(c),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(c),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new m.Event("geolocate",c)),this._finish()}},h.prototype._updateCamera=function(c){var d=new m.LngLat(c.coords.longitude,c.coords.latitude),E=c.coords.accuracy,w=this._map.getBearing(),P=m.extend({bearing:w},this.options.fitBoundsOptions);this._map.fitBounds(d.toBounds(E),P,{geolocateSource:!0})},h.prototype._updateMarker=function(c){if(c){var d=new m.LngLat(c.coords.longitude,c.coords.latitude);this._accuracyCircleMarker.setLngLat(d).addTo(this._map),this._userLocationDotMarker.setLngLat(d).addTo(this._map),this._accuracy=c.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},h.prototype._updateCircleRadius=function(){var c=this._map._container.clientHeight/2,d=this._map.unproject([0,c]),E=this._map.unproject([1,c]),w=d.distanceTo(E),P=Math.ceil(2*this._accuracy/w);this._circleElement.style.width=P+"px",this._circleElement.style.height=P+"px"},h.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},h.prototype._onError=function(c){if(this._map){if(this.options.trackUserLocation)if(c.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var d=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=d,this._geolocateButton.setAttribute("aria-label",d),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(c.code===3&&vc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new m.Event("error",c)),this._finish()}},h.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},h.prototype._setupUI=function(c){var d=this;if(this._container.addEventListener("contextmenu",function(P){return P.preventDefault()}),this._geolocateButton=Z.create("button","mapboxgl-ctrl-geolocate",this._container),Z.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",c===!1){m.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var E=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=E,this._geolocateButton.setAttribute("aria-label",E)}else{var w=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=w,this._geolocateButton.setAttribute("aria-label",w)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=Z.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new jc(this._dotElement),this._circleElement=Z.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new jc({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(P){P.geolocateSource||d._watchState!=="ACTIVE_LOCK"||P.originalEvent&&P.originalEvent.type==="resize"||(d._watchState="BACKGROUND",d._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),d._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),d.fire(new m.Event("trackuserlocationend")))})},h.prototype.trigger=function(){if(!this._setup)return m.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new m.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Iu--,vc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new m.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new m.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var c;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Iu>1?(c={maximumAge:6e5,timeout:0},vc=!0):(c=this.options.positionOptions,vc=!1),this._geolocationWatchID=m.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,c)}}else m.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},h.prototype._clearWatch=function(){m.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},h}(m.Evented),al={maxWidth:100,unit:"metric"},Ji=function(l){this.options=m.extend({},al,l),m.bindAll(["_onMove","setUnit"],this)};function ol(l,h,c){var d=c&&c.maxWidth||100,E=l._container.clientHeight/2,w=l.unproject([0,E]),P=l.unproject([d,E]),L=w.distanceTo(P);if(c&&c.unit==="imperial"){var N=3.2808*L;N>5280?hu(h,d,N/5280,l._getUIString("ScaleControl.Miles")):hu(h,d,N,l._getUIString("ScaleControl.Feet"))}else c&&c.unit==="nautical"?hu(h,d,L/1852,l._getUIString("ScaleControl.NauticalMiles")):L>=1e3?hu(h,d,L/1e3,l._getUIString("ScaleControl.Kilometers")):hu(h,d,L,l._getUIString("ScaleControl.Meters"))}function hu(l,h,c,d){var E,w,P,L=(E=c,(w=Math.pow(10,(""+Math.floor(E)).length-1))*(P=(P=E/w)>=10?10:P>=5?5:P>=3?3:P>=2?2:P>=1?1:function(N){var q=Math.pow(10,Math.ceil(-Math.log(N)/Math.LN10));return Math.round(N*q)/q}(P)));l.style.width=h*(L/c)+"px",l.innerHTML=L+" "+d}Ji.prototype.getDefaultPosition=function(){return"bottom-left"},Ji.prototype._onMove=function(){ol(this._map,this._container,this.options)},Ji.prototype.onAdd=function(l){return this._map=l,this._container=Z.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",l.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ji.prototype.onRemove=function(){Z.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ji.prototype.setUnit=function(l){this.options.unit=l,ol(this._map,this._container,this.options)};var Ts=function(l){this._fullscreen=!1,l&&l.container&&(l.container instanceof m.window.HTMLElement?this._container=l.container:m.warnOnce("Full screen control 'container' must be a DOM element.")),m.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in m.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in m.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in m.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in m.window.document&&(this._fullscreenchange="MSFullscreenChange")};Ts.prototype.onAdd=function(l){return this._map=l,this._container||(this._container=this._map.getContainer()),this._controlContainer=Z.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",m.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Ts.prototype.onRemove=function(){Z.remove(this._controlContainer),this._map=null,m.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Ts.prototype._checkFullscreenSupport=function(){return!!(m.window.document.fullscreenEnabled||m.window.document.mozFullScreenEnabled||m.window.document.msFullscreenEnabled||m.window.document.webkitFullscreenEnabled)},Ts.prototype._setupUI=function(){var l=this._fullscreenButton=Z.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);Z.create("span","mapboxgl-ctrl-icon",l).setAttribute("aria-hidden",!0),l.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),m.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Ts.prototype._updateTitle=function(){var l=this._getTitle();this._fullscreenButton.setAttribute("aria-label",l),this._fullscreenButton.title=l},Ts.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Ts.prototype._isFullscreen=function(){return this._fullscreen},Ts.prototype._changeIcon=function(){(m.window.document.fullscreenElement||m.window.document.mozFullScreenElement||m.window.document.webkitFullscreenElement||m.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Ts.prototype._onClickFullscreen=function(){this._isFullscreen()?m.window.document.exitFullscreen?m.window.document.exitFullscreen():m.window.document.mozCancelFullScreen?m.window.document.mozCancelFullScreen():m.window.document.msExitFullscreen?m.window.document.msExitFullscreen():m.window.document.webkitCancelFullScreen&&m.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var zl={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},_l=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),yf=function(l){function h(c){l.call(this),this.options=m.extend(Object.create(zl),c),m.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h.prototype.addTo=function(c){return this._map&&this.remove(),this._map=c,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new m.Event("open")),this},h.prototype.isOpen=function(){return!!this._map},h.prototype.remove=function(){return this._content&&Z.remove(this._content),this._container&&(Z.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new m.Event("close")),this},h.prototype.getLngLat=function(){return this._lngLat},h.prototype.setLngLat=function(c){return this._lngLat=m.LngLat.convert(c),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},h.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},h.prototype.getElement=function(){return this._container},h.prototype.setText=function(c){return this.setDOMContent(m.window.document.createTextNode(c))},h.prototype.setHTML=function(c){var d,E=m.window.document.createDocumentFragment(),w=m.window.document.createElement("body");for(w.innerHTML=c;d=w.firstChild;)E.appendChild(d);return this.setDOMContent(E)},h.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},h.prototype.setMaxWidth=function(c){return this.options.maxWidth=c,this._update(),this},h.prototype.setDOMContent=function(c){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=Z.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(c),this._createCloseButton(),this._update(),this._focusFirstElement(),this},h.prototype.addClassName=function(c){this._container&&this._container.classList.add(c)},h.prototype.removeClassName=function(c){this._container&&this._container.classList.remove(c)},h.prototype.setOffset=function(c){return this.options.offset=c,this._update(),this},h.prototype.toggleClassName=function(c){if(this._container)return this._container.classList.toggle(c)},h.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=Z.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},h.prototype._onMouseUp=function(c){this._update(c.point)},h.prototype._onMouseMove=function(c){this._update(c.point)},h.prototype._onDrag=function(c){this._update(c.point)},h.prototype._update=function(c){var d=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=Z.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=Z.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(he){return d._container.classList.add(he)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=il(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||c)){var E=this._pos=this._trackPointer&&c?c:this._map.project(this._lngLat),w=this.options.anchor,P=function he(de){if(de){if(typeof de=="number"){var Re=Math.round(Math.sqrt(.5*Math.pow(de,2)));return{center:new m.Point(0,0),top:new m.Point(0,de),"top-left":new m.Point(Re,Re),"top-right":new m.Point(-Re,Re),bottom:new m.Point(0,-de),"bottom-left":new m.Point(Re,-Re),"bottom-right":new m.Point(-Re,-Re),left:new m.Point(de,0),right:new m.Point(-de,0)}}if(de instanceof m.Point||Array.isArray(de)){var Ie=m.Point.convert(de);return{center:Ie,top:Ie,"top-left":Ie,"top-right":Ie,bottom:Ie,"bottom-left":Ie,"bottom-right":Ie,left:Ie,right:Ie}}return{center:m.Point.convert(de.center||[0,0]),top:m.Point.convert(de.top||[0,0]),"top-left":m.Point.convert(de["top-left"]||[0,0]),"top-right":m.Point.convert(de["top-right"]||[0,0]),bottom:m.Point.convert(de.bottom||[0,0]),"bottom-left":m.Point.convert(de["bottom-left"]||[0,0]),"bottom-right":m.Point.convert(de["bottom-right"]||[0,0]),left:m.Point.convert(de.left||[0,0]),right:m.Point.convert(de.right||[0,0])}}return he(new m.Point(0,0))}(this.options.offset);if(!w){var L,N=this._container.offsetWidth,q=this._container.offsetHeight;L=E.y+P.bottom.ythis._map.transform.height-q?["bottom"]:[],E.xthis._map.transform.width-N/2&&L.push("right"),w=L.length===0?"bottom":L.join("-")}var ce=E.add(P[w]).round();Z.setTransform(this._container,fu[w]+" translate("+ce.x+"px,"+ce.y+"px)"),mf(this._container,w,"popup")}},h.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var c=this._container.querySelector(_l);c&&c.focus()}},h.prototype._onClose=function(){this.remove()},h}(m.Evented),Pa={version:m.version,supported:ve,setRTLTextPlugin:m.setRTLTextPlugin,getRTLTextPluginStatus:m.getRTLTextPluginStatus,Map:dc,NavigationControl:cu,GeolocateControl:Vc,AttributionControl:ys,ScaleControl:Ji,FullscreenControl:Ts,Popup:yf,Marker:jc,Style:ds,LngLat:m.LngLat,LngLatBounds:m.LngLatBounds,Point:m.Point,MercatorCoordinate:m.MercatorCoordinate,Evented:m.Evented,config:m.config,prewarm:function(){Ot().acquire(zt)},clearPrewarmedResources:function(){var l=En;l&&(l.isPreloaded()&&l.numActive()===1?(l.release(zt),En=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return m.config.ACCESS_TOKEN},set accessToken(l){m.config.ACCESS_TOKEN=l},get baseApiUrl(){return m.config.API_URL},set baseApiUrl(l){m.config.API_URL=l},get workerCount(){return vr.workerCount},set workerCount(l){vr.workerCount=l},get maxParallelImageRequests(){return m.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(l){m.config.MAX_PARALLEL_IMAGE_REQUESTS=l},clearStorage:function(l){m.clearTileCache(l)},workerUrl:""};return Pa}),ae})},28660:function(It,$,U){var ae=U(34155);/*! ***************************************************************************** +Copyright (C) Microsoft. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var re;(function(m){(function(ve){var Z=typeof U.g=="object"?U.g:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),le=fe(m);typeof Z.Reflect=="undefined"?Z.Reflect=m:le=fe(Z.Reflect,le),ve(le);function fe(Le,J){return function(Xe,et){typeof Le[Xe]!="function"&&Object.defineProperty(Le,Xe,{configurable:!0,writable:!0,value:et}),J&&J(Xe,et)}}})(function(ve){var Z=Object.prototype.hasOwnProperty,le=typeof Symbol=="function",fe=le&&typeof Symbol.toPrimitive!="undefined"?Symbol.toPrimitive:"@@toPrimitive",Le=le&&typeof Symbol.iterator!="undefined"?Symbol.iterator:"@@iterator",J=typeof Object.create=="function",Xe={__proto__:[]}instanceof Array,et=!J&&!Xe,Ue={create:J?function(){return hs(Object.create(null))}:Xe?function(){return hs({__proto__:null})}:function(){return hs({})},has:et?function(Nt,nr){return Z.call(Nt,nr)}:function(Nt,nr){return nr in Nt},get:et?function(Nt,nr){return Z.call(Nt,nr)?Nt[nr]:void 0}:function(Nt,nr){return Nt[nr]}},gt=Object.getPrototypeOf(Function),rr=typeof ae=="object"&&{NODE_ENV:"production"}&&{NODE_ENV:"production"}.REFLECT_METADATA_USE_MAP_POLYFILL==="true",xt=!rr&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:me(),Yt=!rr&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Dn(),Et=!rr&&typeof WeakMap=="function"?WeakMap:Za(),at=new Et;function it(Nt,nr,Ar,rn){if(vn(Ar)){if(!Oi(Nt))throw new TypeError;if(!oa(nr))throw new TypeError;return Nr(Nt,nr)}else{if(!Oi(Nt))throw new TypeError;if(!si(nr))throw new TypeError;if(!si(rn)&&!vn(rn)&&!di(rn))throw new TypeError;return di(rn)&&(rn=void 0),Ar=Wi(Ar),tn(Nt,nr,Ar,rn)}}ve("decorate",it);function Zt(Nt,nr){function Ar(rn,wn){if(!si(rn))throw new TypeError;if(!vn(wn)&&!Mi(wn))throw new TypeError;Bt(Nt,nr,rn,wn)}return Ar}ve("metadata",Zt);function Y(Nt,nr,Ar,rn){if(!si(Ar))throw new TypeError;return vn(rn)||(rn=Wi(rn)),Bt(Nt,nr,Ar,rn)}ve("defineMetadata",Y);function $t(Nt,nr,Ar){if(!si(nr))throw new TypeError;return vn(Ar)||(Ar=Wi(Ar)),Ce(Nt,nr,Ar)}ve("hasMetadata",$t);function ft(Nt,nr,Ar){if(!si(nr))throw new TypeError;return vn(Ar)||(Ar=Wi(Ar)),De(Nt,nr,Ar)}ve("hasOwnMetadata",ft);function Je(Nt,nr,Ar){if(!si(nr))throw new TypeError;return vn(Ar)||(Ar=Wi(Ar)),wt(Nt,nr,Ar)}ve("getMetadata",Je);function At(Nt,nr,Ar){if(!si(nr))throw new TypeError;return vn(Ar)||(Ar=Wi(Ar)),mt(Nt,nr,Ar)}ve("getOwnMetadata",At);function Qe(Nt,nr){if(!si(Nt))throw new TypeError;return vn(nr)||(nr=Wi(nr)),Kt(Nt,nr)}ve("getMetadataKeys",Qe);function Qt(Nt,nr){if(!si(Nt))throw new TypeError;return vn(nr)||(nr=Wi(nr)),Cr(Nt,nr)}ve("getOwnMetadataKeys",Qt);function Er(Nt,nr,Ar){if(!si(nr))throw new TypeError;vn(Ar)||(Ar=Wi(Ar));var rn=A(nr,Ar,!1);if(vn(rn)||!rn.delete(Nt))return!1;if(rn.size>0)return!0;var wn=at.get(nr);return wn.delete(Ar),wn.size>0||at.delete(nr),!0}ve("deleteMetadata",Er);function Nr(Nt,nr){for(var Ar=Nt.length-1;Ar>=0;--Ar){var rn=Nt[Ar],wn=rn(nr);if(!vn(wn)&&!di(wn)){if(!oa(wn))throw new TypeError;nr=wn}}return nr}function tn(Nt,nr,Ar,rn){for(var wn=Nt.length-1;wn>=0;--wn){var Fn=Nt[wn],gi=Fn(nr,Ar,rn);if(!vn(gi)&&!di(gi)){if(!si(gi))throw new TypeError;rn=gi}}return rn}function A(Nt,nr,Ar){var rn=at.get(Nt);if(vn(rn)){if(!Ar)return;rn=new xt,at.set(Nt,rn)}var wn=rn.get(nr);if(vn(wn)){if(!Ar)return;wn=new xt,rn.set(nr,wn)}return wn}function Ce(Nt,nr,Ar){var rn=De(Nt,nr,Ar);if(rn)return!0;var wn=zo(nr);return di(wn)?!1:Ce(Nt,wn,Ar)}function De(Nt,nr,Ar){var rn=A(nr,Ar,!1);return vn(rn)?!1:mi(rn.has(Nt))}function wt(Nt,nr,Ar){var rn=De(Nt,nr,Ar);if(rn)return mt(Nt,nr,Ar);var wn=zo(nr);if(!di(wn))return wt(Nt,wn,Ar)}function mt(Nt,nr,Ar){var rn=A(nr,Ar,!1);if(!vn(rn))return rn.get(Nt)}function Bt(Nt,nr,Ar,rn){var wn=A(Ar,rn,!0);wn.set(Nt,nr)}function Kt(Nt,nr){var Ar=Cr(Nt,nr),rn=zo(Nt);if(rn===null)return Ar;var wn=Kt(rn,nr);if(wn.length<=0)return Ar;if(Ar.length<=0)return wn;for(var Fn=new Yt,gi=[],ti=0,fn=Ar;ti=0&&ti=this._keys.length?(this._index=-1,this._keys=nr,this._values=nr):this._index++,{value:fn,done:!1}}return{value:void 0,done:!0}},gi.prototype.throw=function(ti){throw this._index>=0&&(this._index=-1,this._keys=nr,this._values=nr),ti},gi.prototype.return=function(ti){return this._index>=0&&(this._index=-1,this._keys=nr,this._values=nr),{value:ti,done:!0}},gi}();return function(){function gi(){this._keys=[],this._values=[],this._cacheKey=Nt,this._cacheIndex=-2}return Object.defineProperty(gi.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),gi.prototype.has=function(ti){return this._find(ti,!1)>=0},gi.prototype.get=function(ti){var fn=this._find(ti,!1);return fn>=0?this._values[fn]:void 0},gi.prototype.set=function(ti,fn){var Di=this._find(ti,!0);return this._values[Di]=fn,this},gi.prototype.delete=function(ti){var fn=this._find(ti,!1);if(fn>=0){for(var Di=this._keys.length,Ri=fn+1;Ri>1;U(ft,Je,Nr,Qe,Qt,Er%2),$(ft,Je,At,Qe,Nr-1,Er+1),$(ft,Je,At,Nr+1,Qt,Er+1)}}function U(ft,Je,At,Qe,Qt,Er){for(;Qt>Qe;){if(Qt-Qe>600){var Nr=Qt-Qe+1,tn=At-Qe+1,A=Math.log(Nr),Ce=.5*Math.exp(2*A/3),De=.5*Math.sqrt(A*Ce*(Nr-Ce)/Nr)*(tn-Nr/2<0?-1:1),wt=Math.max(Qe,Math.floor(At-tn*Ce/Nr+De)),mt=Math.min(Qt,Math.floor(At+(Nr-tn)*Ce/Nr+De));U(ft,Je,At,wt,mt,Er)}var Bt=Je[2*At+Er],Kt=Qe,Cr=Qt;for(ae(ft,Je,Qe,At),Je[2*Qt+Er]>Bt&&ae(ft,Je,Qe,Qt);KtBt;)Cr--}Je[2*Qe+Er]===Bt?ae(ft,Je,Qe,Cr):(Cr++,ae(ft,Je,Cr,Qt)),Cr<=At&&(Qe=Cr+1),At<=Cr&&(Qt=Cr-1)}}function ae(ft,Je,At,Qe){re(ft,At,Qe),re(Je,2*At,2*Qe),re(Je,2*At+1,2*Qe+1)}function re(ft,Je,At){var Qe=ft[Je];ft[Je]=ft[At],ft[At]=Qe}function m(ft,Je,At,Qe,Qt,Er,Nr){for(var tn=[0,ft.length-1,0],A=[],Ce,De;tn.length;){var wt=tn.pop(),mt=tn.pop(),Bt=tn.pop();if(mt-Bt<=Nr){for(var Kt=Bt;Kt<=mt;Kt++)Ce=Je[2*Kt],De=Je[2*Kt+1],Ce>=At&&Ce<=Qt&&De>=Qe&&De<=Er&&A.push(ft[Kt]);continue}var Cr=Math.floor((Bt+mt)/2);Ce=Je[2*Cr],De=Je[2*Cr+1],Ce>=At&&Ce<=Qt&&De>=Qe&&De<=Er&&A.push(ft[Cr]);var ei=(wt+1)%2;(wt===0?At<=Ce:Qe<=De)&&(tn.push(Bt),tn.push(Cr-1),tn.push(ei)),(wt===0?Qt>=Ce:Er>=De)&&(tn.push(Cr+1),tn.push(mt),tn.push(ei))}return A}function ve(ft,Je,At,Qe,Qt,Er){for(var Nr=[0,ft.length-1,0],tn=[],A=Qt*Qt;Nr.length;){var Ce=Nr.pop(),De=Nr.pop(),wt=Nr.pop();if(De-wt<=Er){for(var mt=wt;mt<=De;mt++)Z(Je[2*mt],Je[2*mt+1],At,Qe)<=A&&tn.push(ft[mt]);continue}var Bt=Math.floor((wt+De)/2),Kt=Je[2*Bt],Cr=Je[2*Bt+1];Z(Kt,Cr,At,Qe)<=A&&tn.push(ft[Bt]);var ei=(Ce+1)%2;(Ce===0?At-Qt<=Kt:Qe-Qt<=Cr)&&(Nr.push(wt),Nr.push(Bt-1),Nr.push(ei)),(Ce===0?At+Qt>=Kt:Qe+Qt>=Cr)&&(Nr.push(Bt+1),Nr.push(De),Nr.push(ei))}return tn}function Z(ft,Je,At,Qe){var Qt=ft-At,Er=Je-Qe;return Qt*Qt+Er*Er}var le=function(ft){return ft[0]},fe=function(ft){return ft[1]},Le=function(Je,At,Qe,Qt,Er){At===void 0&&(At=le),Qe===void 0&&(Qe=fe),Qt===void 0&&(Qt=64),Er===void 0&&(Er=Float64Array),this.nodeSize=Qt,this.points=Je;for(var Nr=Je.length<65536?Uint16Array:Uint32Array,tn=this.ids=new Nr(Je.length),A=this.coords=new Er(Je.length*2),Ce=0;Ce=Qt;De--){var wt=+Date.now();A=this._cluster(A,De),this.trees[De]=new Le(A,Y,$t,Nr,Float32Array),Qe&&console.log("z%d: %d clusters in %dms",De,A.length,+Date.now()-wt)}return Qe&&console.timeEnd("total time"),this},et.prototype.getClusters=function(Je,At){var Qe=((Je[0]+180)%360+360)%360-180,Qt=Math.max(-90,Math.min(90,Je[1])),Er=Je[2]===180?180:((Je[2]+180)%360+360)%360-180,Nr=Math.max(-90,Math.min(90,Je[3]));if(Je[2]-Je[0]>=360)Qe=-180,Er=180;else if(Qe>Er){var tn=this.getClusters([Qe,Qt,180,Nr],At),A=this.getClusters([-180,Qt,Er,Nr],At);return tn.concat(A)}for(var Ce=this.trees[this._limitZoom(At)],De=Ce.range(Yt(Qe),Et(Nr),Yt(Er),Et(Qt)),wt=[],mt=0,Bt=De;mtAt&&(Cr+=Wn.numPoints||1)}if(Cr>Kt&&Cr>=A){for(var si=wt.x*Kt,vi=wt.y*Kt,qn=tn&&Kt>1?this._map(wt,!0):null,mi=(De<<5)+(At+1)+this.points.length,aa=0,Wi=Bt;aa1)for(var Mi=0,da=Bt;Mi>5},et.prototype._getOriginZoom=function(Je){return(Je-this.points.length)%32},et.prototype._map=function(Je,At){if(Je.numPoints)return At?Zt({},Je.properties):Je.properties;var Qe=this.points[Je.index].properties,Qt=this.options.map(Qe);return At&&Qt===Qe?Zt({},Qt):Qt};function Ue(ft,Je,At,Qe,Qt){return{x:Xe(ft),y:Xe(Je),zoom:Infinity,id:At,parentId:-1,numPoints:Qe,properties:Qt}}function gt(ft,Je){var At=ft.geometry.coordinates,Qe=At[0],Qt=At[1];return{x:Xe(Yt(Qe)),y:Xe(Et(Qt)),zoom:Infinity,index:Je,parentId:-1}}function rr(ft){return{type:"Feature",id:ft.id,properties:xt(ft),geometry:{type:"Point",coordinates:[at(ft.x),it(ft.y)]}}}function xt(ft){var Je=ft.numPoints,At=Je>=1e4?Math.round(Je/1e3)+"k":Je>=1e3?Math.round(Je/100)/10+"k":Je;return Zt(Zt({},ft.properties),{cluster:!0,cluster_id:ft.id,point_count:Je,point_count_abbreviated:At})}function Yt(ft){return ft/360+.5}function Et(ft){var Je=Math.sin(ft*Math.PI/180),At=.5-.25*Math.log((1+Je)/(1-Je))/Math.PI;return At<0?0:At>1?1:At}function at(ft){return(ft-.5)*360}function it(ft){var Je=(180-ft*360)*Math.PI/180;return 360*Math.atan(Math.exp(Je))/Math.PI-90}function Zt(ft,Je){for(var At in Je)ft[At]=Je[At];return ft}function Y(ft){return ft.x}function $t(ft){return ft.y}return et})},75752:function(It){It.exports.RADIUS=6378137,It.exports.FLATTENING=1/298.257223563,It.exports.POLAR_RADIUS=63567523142e-4}}]); diff --git a/4738.15d70875.async.js b/4738.15d70875.async.js new file mode 100644 index 00000000..df12ea62 --- /dev/null +++ b/4738.15d70875.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4738],{34442:function(){},15746:function(fe,ae,o){"use strict";var d=o(21584);ae.Z=d.Z},89032:function(fe,ae,o){"use strict";var d=o(38663),se=o.n(d),$=o(6999)},86835:function(fe,ae,o){"use strict";o.d(ae,{Z:function(){return $t}});var d=o(22122),se=o(90484),$=o(28481),M=o(96156),n=o(67294),Ie=o(94184),le=o.n(Ie),ue=o(48526),Ce=o(53124),D=o(65223);function Ne(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Se(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function pe(e,t){if(e.clientHeightt||i>e&&s=t&&f>=a?i-e-r:s>t&&fa?s-t+l:0}function we(e,t){var a=window,r=t.scrollMode,l=t.block,i=t.inline,s=t.boundary,f=t.skipOverflowHiddenElements,v=typeof s=="function"?s:function(Ze){return Ze!==s};if(!Ne(e))throw new TypeError("Invalid target");for(var m=document.scrollingElement||document.documentElement,b=[],u=e;Ne(u)&&v(u);){if((u=u.parentElement)===m){b.push(u);break}u!=null&&u===document.body&&pe(u)&&!pe(document.documentElement)||u!=null&&pe(u,f)&&b.push(u)}for(var c=a.visualViewport?a.visualViewport.width:innerWidth,p=a.visualViewport?a.visualViewport.height:innerHeight,E=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,h=e.getBoundingClientRect(),N=h.height,y=h.width,I=h.top,B=h.right,L=h.bottom,W=h.left,F=l==="start"||l==="nearest"?I:l==="end"?L:I+N/2,_=i==="center"?W+y/2:i==="end"?B:W,H=[],P=0;P=0&&W>=0&&L<=p&&B<=c&&I>=S&&L<=A&&W>=Q&&B<=O)return H;var oe=getComputedStyle(C),ee=parseInt(oe.borderLeftWidth,10),V=parseInt(oe.borderTopWidth,10),te=parseInt(oe.borderRightWidth,10),ie=parseInt(oe.borderBottomWidth,10),U=0,R=0,J="offsetWidth"in C?C.offsetWidth-C.clientWidth-ee-te:0,re="offsetHeight"in C?C.offsetHeight-C.clientHeight-V-ie:0;if(m===C)U=l==="start"?F:l==="end"?F-p:l==="nearest"?Ee(g,g+p,p,V,ie,g+F,g+F+N,N):F-p/2,R=i==="start"?_:i==="center"?_-c/2:i==="end"?_-c:Ee(E,E+c,c,ee,te,E+_,E+_+y,y),U=Math.max(0,U+g),R=Math.max(0,R+E);else{U=l==="start"?F-S-V:l==="end"?F-A+ie+re:l==="nearest"?Ee(S,A,T,V,ie+re,F,F+N,N):F-(S+T/2)+re/2,R=i==="start"?_-Q-ee:i==="center"?_-(Q+Y/2)+J/2:i==="end"?_-O+te+J:Ee(Q,O,Y,ee,te+J,_,_+y,y);var ye=C.scrollLeft,be=C.scrollTop;F+=be-(U=Math.max(0,Math.min(be+U,C.scrollHeight-T+re))),_+=ye-(R=Math.max(0,Math.min(ye+R,C.scrollWidth-Y+J)))}H.push({el:C,top:U,left:R})}return H}function Le(e){return e===Object(e)&&Object.keys(e).length!==0}function et(e,t){t===void 0&&(t="auto");var a="scrollBehavior"in document.body.style;e.forEach(function(r){var l=r.el,i=r.top,s=r.left;l.scroll&&a?l.scroll({top:i,left:s,behavior:t}):(l.scrollTop=i,l.scrollLeft=s)})}function tt(e){return e===!1?{block:"end",inline:"nearest"}:Le(e)?e:{block:"start",inline:"nearest"}}function rt(e,t){var a=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Le(t)&&typeof t.behavior=="function")return t.behavior(a?we(e,t):[]);if(!!a){var r=tt(t);return et(we(e,r),r.behavior)}}var nt=rt,at=["parentNode"],lt="form_item";function de(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Te(e,t){if(!!e.length){var a=e.join("_");if(t)return"".concat(t,"_").concat(a);var r=at.indexOf(a)>=0;return r?"".concat(lt,"_").concat(a):a}}function Ae(e){var t=de(e);return t.join("_")}function De(e){var t=(0,ue.cI)(),a=(0,$.Z)(t,1),r=a[0],l=n.useRef({}),i=n.useMemo(function(){return e!=null?e:(0,d.Z)((0,d.Z)({},r),{__INTERNAL__:{itemRef:function(f){return function(v){var m=Ae(f);v?l.current[m]=v:delete l.current[m]}}},scrollToField:function(f){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=de(f),b=Te(m,i.__INTERNAL__.name),u=b?document.getElementById(b):null;u&&nt(u,(0,d.Z)({scrollMode:"if-needed",block:"nearest"},v))},getFieldInstance:function(f){var v=Ae(f);return l.current[v]}})},[e,r]);return[i]}var We=o(97647),je=o(98866),ot=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:"".concat(a,"-").concat(r),error:e,errorStatus:t}}function ke(e){var t=e.help,a=e.helpStatus,r=e.errors,l=r===void 0?ze:r,i=e.warnings,s=i===void 0?ze:i,f=e.className,v=n.useContext(D.Rk),m=v.prefixCls,b=n.useContext(Ce.E_),u=b.getPrefixCls,c="".concat(m,"-item-explain"),p=u(),E=n.useMemo(function(){return t!=null?[Fe(t,a,"help")]:[].concat((0,k.Z)(l.map(function(g,h){return Fe(g,"error","error",h)})),(0,k.Z)(s.map(function(g,h){return Fe(g,"warning","warning",h)})))},[t,a,l,s]);return n.createElement(Ke.Z,(0,d.Z)({},Ue.ZP,{motionName:"".concat(p,"-show-help"),motionAppear:!1,motionEnter:!1,visible:!!E.length,onLeaveStart:function(h){return h.style.height="auto",{height:h.offsetHeight}}}),function(g){var h=g.className,N=g.style;return n.createElement("div",{className:le()(c,h,f),style:N},n.createElement(Ke.V,(0,d.Z)({keys:E},Ue.ZP,{motionName:"".concat(p,"-show-help-item"),component:!1}),function(y){var I=y.key,B=y.error,L=y.errorStatus,W=y.className,F=y.style;return n.createElement("div",{key:I,role:"alert",className:le()(W,(0,M.Z)({},"".concat(c,"-").concat(L),L)),style:F},B)}))})}var Et=function(t){var a=t.prefixCls,r=t.status,l=t.wrapperCol,i=t.children,s=t.errors,f=t.warnings,v=t._internalItemRender,m=t.extra,b=t.help,u="".concat(a,"-item"),c=n.useContext(D.q3),p=l||c.wrapperCol||{},E=le()("".concat(u,"-control"),p.className),g=n.useMemo(function(){return(0,d.Z)({},c)},[c]);delete g.labelCol,delete g.wrapperCol;var h=n.createElement("div",{className:"".concat(u,"-control-input")},n.createElement("div",{className:"".concat(u,"-control-input-content")},i)),N=n.useMemo(function(){return{prefixCls:a,status:r}},[a,r]),y=n.createElement(D.Rk.Provider,{value:N},n.createElement(ke,{errors:s,warnings:f,help:b,helpStatus:r,className:"".concat(u,"-explain-connected")})),I=m?n.createElement("div",{className:"".concat(u,"-extra")},m):null,B=v&&v.mark==="pro_table_render"&&v.render?v.render(t,{input:h,errorList:y,extra:I}):n.createElement(n.Fragment,null,h,y,I);return n.createElement(D.q3.Provider,{value:g},n.createElement(Be.Z,(0,d.Z)({},p,{className:E}),B))},yt=Et,bt=o(1870),Zt=o(42051),xt=o(85636),pt=o(61580),Ft=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after,.ant-steps-item:last-child>.ant-steps-item-container>.ant-steps-item-tail{display:none}.ant-steps-item-content,.ant-steps-item-icon{display:inline-block;vertical-align:top}.ant-steps-item-icon{width:32px;height:32px;margin:0 8px 0 0;font-size:16px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";line-height:32px;text-align:center;border:1px solid rgba(0,0,0,.25);border-radius:32px;transition:background-color .3s,border-color .3s}.ant-steps-item-icon .ant-steps-icon{position:relative;top:-.5px;color:#1890ff;color:var(--ant-primary-color);line-height:1}.ant-steps-item-tail{position:absolute;top:12px;left:0;width:100%;padding:0 10px}.ant-steps-item-tail:after{display:inline-block;width:100%;height:1px;background:rgba(0,0,0,.06);border-radius:1px;transition:background .3s;content:""}.ant-steps-item-title{position:relative;display:inline-block;padding-right:16px;color:rgba(0,0,0,.85);font-size:16px;line-height:32px}.ant-steps-item-title:after{position:absolute;top:16px;left:100%;display:block;width:9999px;height:1px;background:rgba(0,0,0,.06);content:""}.ant-steps-item-subtitle{display:inline;margin-left:8px;color:rgba(0,0,0,.45);font-weight:400;font-size:14px}.ant-steps-item-description{color:rgba(0,0,0,.45);font-size:14px}.ant-steps-item-wait .ant-steps-item-icon{background-color:#fff;border-color:rgba(0,0,0,.25)}.ant-steps-item-wait .ant-steps-item-icon>.ant-steps-icon{color:rgba(0,0,0,.25)}.ant-steps-item-wait .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:rgba(0,0,0,.25)}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:rgba(0,0,0,.45)}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:rgba(0,0,0,.06)}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:rgba(0,0,0,.45)}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:rgba(0,0,0,.06)}.ant-steps-item-process .ant-steps-item-icon{background-color:#fff;border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-steps-item-process .ant-steps-item-icon>.ant-steps-icon{color:#1890ff;color:var(--ant-primary-color)}.ant-steps-item-process .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:#1890ff;background:var(--ant-primary-color)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:rgba(0,0,0,.85)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:rgba(0,0,0,.06)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:rgba(0,0,0,.85)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:rgba(0,0,0,.06)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-icon{background:#1890ff;background:var(--ant-primary-color)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-icon .ant-steps-icon{color:#fff}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-title{font-weight:500}.ant-steps-item-finish .ant-steps-item-icon{background-color:#fff;border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-steps-item-finish .ant-steps-item-icon>.ant-steps-icon{color:#1890ff;color:var(--ant-primary-color)}.ant-steps-item-finish .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:#1890ff;background:var(--ant-primary-color)}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:rgba(0,0,0,.85)}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:#1890ff;background-color:var(--ant-primary-color)}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:rgba(0,0,0,.45)}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:#1890ff;background-color:var(--ant-primary-color)}.ant-steps-item-error .ant-steps-item-icon{background-color:#fff;border-color:#ff4d4f;border-color:var(--ant-error-color)}.ant-steps-item-error .ant-steps-item-icon>.ant-steps-icon{color:#ff4d4f;color:var(--ant-error-color)}.ant-steps-item-error .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:#ff4d4f;background:var(--ant-error-color)}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:#ff4d4f;color:var(--ant-error-color)}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:rgba(0,0,0,.06)}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:#ff4d4f;color:var(--ant-error-color)}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:rgba(0,0,0,.06)}.ant-steps-item.ant-steps-next-error .ant-steps-item-title:after{background:#ff4d4f;background:var(--ant-error-color)}.ant-steps-item-disabled{cursor:not-allowed}.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]{cursor:pointer}.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button] .ant-steps-item-description,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button] .ant-steps-item-icon .ant-steps-icon,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button] .ant-steps-item-subtitle,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button] .ant-steps-item-title{transition:color .3s}.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]:hover .ant-steps-item-description,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]:hover .ant-steps-item-subtitle,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]:hover .ant-steps-item-title{color:#1890ff;color:var(--ant-primary-color)}.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process)>.ant-steps-item-container[role=button]:hover .ant-steps-item-icon{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process)>.ant-steps-item-container[role=button]:hover .ant-steps-item-icon .ant-steps-icon{color:#1890ff;color:var(--ant-primary-color)}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item{padding-left:16px;white-space:nowrap}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child{padding-left:0}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:last-child .ant-steps-item-title{padding-right:0}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item-tail{display:none}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item-description{max-width:140px;white-space:normal}.ant-steps-item-custom>.ant-steps-item-container>.ant-steps-item-icon{height:auto;background:none;border:0}.ant-steps-item-custom>.ant-steps-item-container>.ant-steps-item-icon>.ant-steps-icon{top:0;left:.5px;width:32px;height:32px;font-size:24px;line-height:32px}.ant-steps-item-custom.ant-steps-item-process .ant-steps-item-icon>.ant-steps-icon{color:#1890ff;color:var(--ant-primary-color)}.ant-steps:not(.ant-steps-vertical) .ant-steps-item-custom .ant-steps-item-icon{width:auto;background:none}.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item{padding-left:12px}.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child{padding-left:0}.ant-steps-small .ant-steps-item-icon{width:24px;height:24px;margin:0 8px 0 0;font-size:12px;line-height:24px;text-align:center;border-radius:24px}.ant-steps-small .ant-steps-item-title{padding-right:12px;font-size:14px;line-height:24px}.ant-steps-small .ant-steps-item-title:after{top:12px}.ant-steps-small .ant-steps-item-description{color:rgba(0,0,0,.45);font-size:14px}.ant-steps-small .ant-steps-item-tail{top:8px}.ant-steps-small .ant-steps-item-custom .ant-steps-item-icon{width:inherit;height:inherit;line-height:inherit;background:none;border:0;border-radius:0}.ant-steps-small .ant-steps-item-custom .ant-steps-item-icon>.ant-steps-icon{font-size:24px;line-height:24px;transform:none}.ant-steps-vertical{display:flex;flex-direction:column}.ant-steps-vertical>.ant-steps-item{display:block;flex:1 0 auto;padding-left:0;overflow:visible}.ant-steps-vertical>.ant-steps-item .ant-steps-item-icon{float:left;margin-right:16px}.ant-steps-vertical>.ant-steps-item .ant-steps-item-content{display:block;min-height:48px;overflow:hidden}.ant-steps-vertical>.ant-steps-item .ant-steps-item-title{line-height:32px}.ant-steps-vertical>.ant-steps-item .ant-steps-item-description{padding-bottom:12px}.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{position:absolute;top:0;left:16px;width:1px;height:100%;padding:38px 0 6px}.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail:after{width:1px;height:100%}.ant-steps-vertical>.ant-steps-item:not(:last-child)>.ant-steps-item-container>.ant-steps-item-tail{display:block}.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{display:none}.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-tail{position:absolute;top:0;left:12px;padding:30px 0 6px}.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-title{line-height:24px}.ant-steps-label-vertical .ant-steps-item{overflow:visible}.ant-steps-label-vertical .ant-steps-item-tail{margin-left:58px;padding:3.5px 24px}.ant-steps-label-vertical .ant-steps-item-content{display:block;width:116px;margin-top:8px;text-align:center}.ant-steps-label-vertical .ant-steps-item-icon{display:inline-block;margin-left:42px}.ant-steps-label-vertical .ant-steps-item-title{padding-right:0;padding-left:0}.ant-steps-label-vertical .ant-steps-item-title:after{display:none}.ant-steps-label-vertical .ant-steps-item-subtitle{display:block;margin-bottom:4px;margin-left:0;line-height:1.5715}.ant-steps-label-vertical.ant-steps-small:not(.ant-steps-dot) .ant-steps-item-icon{margin-left:46px}.ant-steps-dot .ant-steps-item-title,.ant-steps-dot.ant-steps-small .ant-steps-item-title{line-height:1.5715}.ant-steps-dot .ant-steps-item-tail,.ant-steps-dot.ant-steps-small .ant-steps-item-tail{top:2px;width:100%;margin:0 0 0 70px;padding:0}.ant-steps-dot .ant-steps-item-tail:after,.ant-steps-dot.ant-steps-small .ant-steps-item-tail:after{width:calc(100% - 20px);height:3px;margin-left:12px}.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot,.ant-steps-dot.ant-steps-small .ant-steps-item:first-child .ant-steps-icon-dot{left:2px}.ant-steps-dot .ant-steps-item-icon,.ant-steps-dot.ant-steps-small .ant-steps-item-icon{width:8px;height:8px;margin-left:67px;padding-right:0;line-height:8px;background:transparent;border:0}.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot,.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot{position:relative;float:left;width:100%;height:100%;border-radius:100px;transition:all .3s}.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot:after,.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot:after{position:absolute;top:-12px;left:-26px;width:60px;height:32px;background:rgba(0,0,0,.001);content:""}.ant-steps-dot .ant-steps-item-content,.ant-steps-dot.ant-steps-small .ant-steps-item-content{width:140px}.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon,.ant-steps-dot.ant-steps-small .ant-steps-item-process .ant-steps-item-icon{position:relative;top:-1px;width:10px;height:10px;line-height:10px;background:none}.ant-steps-dot .ant-steps-item-process .ant-steps-icon:first-child .ant-steps-icon-dot,.ant-steps-dot.ant-steps-small .ant-steps-item-process .ant-steps-icon:first-child .ant-steps-icon-dot{left:0}.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon{margin-top:13px;margin-left:0;background:none}.ant-steps-vertical.ant-steps-dot .ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{top:6.5px;left:-9px;margin:0;padding:22px 0 4px}.ant-steps-vertical.ant-steps-dot.ant-steps-small .ant-steps-item-icon{margin-top:10px}.ant-steps-vertical.ant-steps-dot.ant-steps-small .ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{top:3.5px}.ant-steps-vertical.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot{left:0}.ant-steps-vertical.ant-steps-dot .ant-steps-item-content{width:inherit}.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-item-container .ant-steps-item-icon .ant-steps-icon-dot{top:-1px;left:-1px}.ant-steps-navigation{padding-top:12px}.ant-steps-navigation.ant-steps-small .ant-steps-item-container{margin-left:-12px}.ant-steps-navigation .ant-steps-item{overflow:visible;text-align:center}.ant-steps-navigation .ant-steps-item-container{display:inline-block;height:100%;margin-left:-16px;padding-bottom:12px;text-align:left;transition:opacity .3s}.ant-steps-navigation .ant-steps-item-container .ant-steps-item-content{max-width:auto}.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title{max-width:100%;padding-right:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title:after{display:none}.ant-steps-navigation .ant-steps-item:not(.ant-steps-item-active) .ant-steps-item-container[role=button]{cursor:pointer}.ant-steps-navigation .ant-steps-item:not(.ant-steps-item-active) .ant-steps-item-container[role=button]:hover{opacity:.85}.ant-steps-navigation .ant-steps-item:last-child{flex:1 1}.ant-steps-navigation .ant-steps-item:last-child:after{display:none}.ant-steps-navigation .ant-steps-item:after{position:absolute;top:50%;left:100%;display:inline-block;width:12px;height:12px;margin-top:-14px;margin-left:-2px;border:1px solid rgba(0,0,0,.25);border-bottom:none;border-left:none;transform:rotate(45deg);content:""}.ant-steps-navigation .ant-steps-item:before{position:absolute;bottom:0;left:50%;display:inline-block;width:0;height:2px;background-color:#1890ff;background-color:var(--ant-primary-color);transition:width .3s,left .3s;transition-timing-function:ease-out;content:""}.ant-steps-navigation .ant-steps-item.ant-steps-item-active:before{left:0;width:100%}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item{margin-right:0!important}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item:before{display:none}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item.ant-steps-item-active:before{top:0;right:0;left:unset;display:block;width:3px;height:calc(100% - 24px)}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item:after{position:relative;top:-2px;left:50%;display:block;width:8px;height:8px;margin-bottom:8px;text-align:center;transform:rotate(135deg)}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{visibility:hidden}.ant-steps-navigation.ant-steps-horizontal>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{visibility:hidden}.ant-steps-rtl{direction:rtl}.ant-steps.ant-steps-rtl .ant-steps-item-icon{margin-right:0;margin-left:8px}.ant-steps-rtl .ant-steps-item-tail{right:0;left:auto}.ant-steps-rtl .ant-steps-item-title{padding-right:0;padding-left:16px}.ant-steps-rtl .ant-steps-item-title .ant-steps-item-subtitle{float:left;margin-right:8px;margin-left:0}.ant-steps-rtl .ant-steps-item-title:after{right:100%;left:auto}.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item{padding-right:16px;padding-left:0}.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child{padding-right:0}.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:last-child .ant-steps-item-title{padding-left:0}.ant-steps-rtl .ant-steps-item-custom .ant-steps-item-icon>.ant-steps-icon{right:.5px;left:auto}.ant-steps-rtl.ant-steps-navigation.ant-steps-small .ant-steps-item-container{margin-right:-12px;margin-left:0}.ant-steps-rtl.ant-steps-navigation .ant-steps-item-container{margin-right:-16px;margin-left:0;text-align:right}.ant-steps-rtl.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title{padding-left:0}.ant-steps-rtl.ant-steps-navigation .ant-steps-item:after{right:100%;left:auto;margin-right:-2px;margin-left:0;transform:rotate(225deg)}.ant-steps-rtl.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item{padding-right:12px;padding-left:0}.ant-steps-rtl.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child{padding-right:0}.ant-steps-rtl.ant-steps-small .ant-steps-item-title{padding-right:0;padding-left:12px}.ant-steps-rtl.ant-steps-vertical>.ant-steps-item .ant-steps-item-icon{float:right;margin-right:0;margin-left:16px}.ant-steps-rtl.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{right:16px;left:auto}.ant-steps-rtl.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-tail{right:12px;left:auto}.ant-steps-rtl.ant-steps-label-vertical .ant-steps-item-title{padding-left:0}.ant-steps-rtl.ant-steps-dot .ant-steps-item-tail,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-tail{margin:0 70px 0 0}.ant-steps-rtl.ant-steps-dot .ant-steps-item-tail:after,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-tail:after{margin-right:12px;margin-left:0}.ant-steps-rtl.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item:first-child .ant-steps-icon-dot{right:2px;left:auto}.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon{margin-right:67px;margin-left:0}.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot{float:right}.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot:after,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot:after{right:-26px;left:auto}.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon{margin-right:0;margin-left:16px}.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{right:-9px;left:auto}.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot{right:0;left:auto}.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot{right:-2px;left:auto}.ant-steps-rtl.ant-steps-with-progress.ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:first-child{padding-right:4px;padding-left:0}.ant-steps-rtl.ant-steps-with-progress.ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:first-child.ant-steps-item-active{padding-right:4px}.ant-steps-with-progress .ant-steps-item{padding-top:4px}.ant-steps-with-progress .ant-steps-item .ant-steps-item-tail{top:4px!important}.ant-steps-with-progress.ant-steps-horizontal .ant-steps-item:first-child{padding-bottom:4px;padding-left:4px}.ant-steps-with-progress .ant-steps-item-icon{position:relative}.ant-steps-with-progress .ant-steps-item-icon .ant-progress{position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px} \ No newline at end of file diff --git a/5362.be0836e3.async.js b/5362.be0836e3.async.js new file mode 100644 index 00000000..a91c5d04 --- /dev/null +++ b/5362.be0836e3.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5362],{64335:function(ce,$,i){"use strict";var K=i(67294),S=(0,K.createContext)({});$.Z=S},85224:function(ce,$,i){"use strict";var K=i(22122),S=i(28991),b=i(84305),A=i(75901),w=i(81253),k=i(94184),p=i.n(k),j=i(97435),y=i(67294),a=i(64335),O=i(56264),W=i.n(O),_=["children","className","extra","style","renderContent"],G=function(B){var F=B.children,X=B.className,z=B.extra,ne=B.style,Y=B.renderContent,de=(0,w.Z)(B,_),fe=(0,y.useContext)(A.ZP.ConfigContext),ue=fe.getPrefixCls,V=B.prefixCls||ue("pro"),ve="".concat(V,"-footer-bar"),E=(0,y.useContext)(a.Z),oe=(0,y.useMemo)(function(){var q=E.hasSiderMenu,J=E.isMobile,ee=E.siderWidth;if(!!q)return ee?J?"100%":"calc(100% - ".concat(ee,"px)"):"100%"},[E.collapsed,E.hasSiderMenu,E.isMobile,E.siderWidth]),ie=y.createElement(y.Fragment,null,y.createElement("div",{className:"".concat(ve,"-left")},z),y.createElement("div",{className:"".concat(ve,"-right")},F));return(0,y.useEffect)(function(){return!E||!(E==null?void 0:E.setHasFooterToolbar)?function(){}:(E==null||E.setHasFooterToolbar(!0),function(){var q;E==null||(q=E.setHasFooterToolbar)===null||q===void 0||q.call(E,!1)})},[]),y.createElement("div",(0,K.Z)({className:p()(X,"".concat(ve)),style:(0,S.Z)({width:oe},ne)},(0,j.Z)(de,["prefixCls"])),Y?Y((0,S.Z)((0,S.Z)((0,S.Z)({},B),E),{},{leftWidth:oe}),ie):ie)};$.Z=G},21349:function(ce,$,i){"use strict";var K=i(84305),S=i(75901),b=i(94184),A=i.n(b),w=i(67294),k=i(64335),p=i(53645),j=i.n(p),y=function(O){var W=(0,w.useContext)(k.Z),_=O.children,G=O.contentWidth,M=O.className,B=O.style,F=(0,w.useContext)(S.ZP.ConfigContext),X=F.getPrefixCls,z=O.prefixCls||X("pro"),ne=G||W.contentWidth,Y="".concat(z,"-grid-content");return w.createElement("div",{className:A()(Y,M,{wide:ne==="Fixed"}),style:B},w.createElement("div",{className:"".concat(z,"-grid-content-children")},_))};$.Z=y},75362:function(ce,$,i){"use strict";i.d($,{ZP:function(){return Mt}});var K=i(38663),S=i(70883),b=i(22122),A=i(96156),w=i(6610),k=i(5991),p=i(10379),j=i(60446),y=i(90484),a=i(67294),O=i(94184),W=i.n(O),_=i(98423),G=i(48717),M=i(53124),B=i(85061),F=i(75164);function X(o){var e,r=function(l){return function(){e=null,o.apply(void 0,(0,B.Z)(l))}},t=function(){if(e==null){for(var l=arguments.length,s=new Array(l),c=0;co.top-r)return r+e.top}function fe(o,e,r){if(r!==void 0&&e.bottom=0;c--)(s=o[c])&&(l=(n<3?s(l):n>3?s(e,r,l):s(e,r))||l);return n>3&&l&&Object.defineProperty(e,r,l),l};function q(){return typeof window!="undefined"?window:null}var J;(function(o){o[o.None=0]="None",o[o.Prepare=1]="Prepare"})(J||(J={}));var ee=function(o){(0,p.Z)(r,o);var e=(0,j.Z)(r);function r(){var t;return(0,w.Z)(this,r),t=e.apply(this,arguments),t.state={status:J.None,lastAffix:!1,prevTarget:null},t.getOffsetTop=function(){var n=t.props,l=n.offsetBottom,s=n.offsetTop;return l===void 0&&s===void 0?0:s},t.getOffsetBottom=function(){return t.props.offsetBottom},t.savePlaceholderNode=function(n){t.placeholderNode=n},t.saveFixedNode=function(n){t.fixedNode=n},t.measure=function(){var n=t.state,l=n.status,s=n.lastAffix,c=t.props.onChange,d=t.getTargetFunc();if(!(l!==J.Prepare||!t.fixedNode||!t.placeholderNode||!d)){var v=t.getOffsetTop(),m=t.getOffsetBottom(),h=d();if(!!h){var f={status:J.None},g=Y(h),u=Y(t.placeholderNode),C=de(u,g,v),R=fe(u,g,m);C!==void 0?(f.affixStyle={position:"fixed",top:C,width:u.width,height:u.height},f.placeholderStyle={width:u.width,height:u.height}):R!==void 0&&(f.affixStyle={position:"fixed",bottom:R,width:u.width,height:u.height},f.placeholderStyle={width:u.width,height:u.height}),f.lastAffix=!!f.affixStyle,c&&s!==f.lastAffix&&c(f.lastAffix),t.setState(f)}}},t.prepareMeasure=function(){if(t.setState({status:J.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var n},t}return(0,k.Z)(r,[{key:"getTargetFunc",value:function(){var n=this.context.getTargetContainer,l=this.props.target;return l!==void 0?l:n||q}},{key:"componentDidMount",value:function(){var n=this,l=this.getTargetFunc();l&&(this.timeout=setTimeout(function(){E(l(),n),n.updatePosition()}))}},{key:"componentDidUpdate",value:function(n){var l=this.state.prevTarget,s=this.getTargetFunc(),c=(s==null?void 0:s())||null;l!==c&&(oe(this),c&&(E(c,this),this.updatePosition()),this.setState({prevTarget:c})),(n.offsetTop!==this.props.offsetTop||n.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),oe(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var n=this.getTargetFunc(),l=this.state.affixStyle;if(n&&l){var s=this.getOffsetTop(),c=this.getOffsetBottom(),d=n();if(d&&this.placeholderNode){var v=Y(d),m=Y(this.placeholderNode),h=de(m,v,s),f=fe(m,v,c);if(h!==void 0&&l.top===h||f!==void 0&&l.bottom===f)return}}this.prepareMeasure()}},{key:"render",value:function(){var n=this,l=this.state,s=l.affixStyle,c=l.placeholderStyle,d=this.props,v=d.affixPrefixCls,m=d.children,h=W()((0,A.Z)({},v,!!s)),f=(0,_.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls"]);return a.createElement(G.Z,{onResize:function(){n.updatePosition()}},a.createElement("div",(0,b.Z)({},f,{ref:this.savePlaceholderNode}),s&&a.createElement("div",{style:c,"aria-hidden":"true"}),a.createElement("div",{className:h,ref:this.saveFixedNode,style:s},a.createElement(G.Z,{onResize:function(){n.updatePosition()}},m))))}}]),r}(a.Component);ee.contextType=M.E_,ie([z()],ee.prototype,"updatePosition",null),ie([z()],ee.prototype,"lazyUpdatePosition",null);var Ue=a.forwardRef(function(o,e){var r=o.prefixCls,t=a.useContext(M.E_),n=t.getPrefixCls,l=n("affix",r),s=(0,b.Z)((0,b.Z)({},o),{affixPrefixCls:l});return a.createElement(ee,(0,b.Z)({},s,{ref:e}))}),We=Ue,$t=i(84305),ge=i(75901),jt=i(59903),Gt=i(81262),Xt=i(30887),Yt=i(59250),Vt=i(94233),Jt=i(49111),Ce=i(28481),Fe=i(30470),Z=i(28991),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Ke=He,xe=i(27029),Pe=function(e,r){return a.createElement(xe.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:r,icon:Ke}))};Pe.displayName="ArrowLeftOutlined";var we=a.forwardRef(Pe),ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},$e=ze,Ee=function(e,r){return a.createElement(xe.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:r,icon:$e}))};Ee.displayName="ArrowRightOutlined";var je=a.forwardRef(Ee),Ge=i(50344),Xe=i(57254),Ye=i(81555),Ve=function(o,e){var r={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(o);n0){var T=[];x=c.map(function(P){var L=Oe(P.path,f);L&&T.push(L);var I;return P.children&&P.children.length&&(I=a.createElement(Qe.Z,{items:P.children.map(function(U){return{key:U.path||U.breadcrumbName,label:m(U,f,c,tt(T,U.path,f))}})})),a.createElement(ye,{overlay:I,separator:n,key:L||P.breadcrumbName},m(P,f,c,T))})}else d&&(x=(0,Ge.Z)(d).map(function(P,L){return P&&(0,ke.Tm)(P,{separator:n,key:L})}));var H=W()(N,(0,A.Z)({},"".concat(N,"-rtl"),R==="rtl"),s);return a.createElement("nav",(0,b.Z)({className:H,style:l},g),a.createElement("ol",null,x))};me.Item=ye,me.Separator=Je;var rt=me,at=rt,nt=i(51890),ot=i(19650),it=i(34952),lt=i(42051),st=function(e,r,t){return!r||!t?null:a.createElement(lt.Z,{componentName:"PageHeader"},function(n){var l=n.back;return a.createElement("div",{className:"".concat(e,"-back")},a.createElement(it.Z,{onClick:function(c){t==null||t(c)},className:"".concat(e,"-back-button"),"aria-label":l},r))})},ct=function(e){return a.createElement(at,(0,b.Z)({},e))},dt=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return e.backIcon!==void 0?e.backIcon:r==="rtl"?a.createElement(je,null):a.createElement(we,null)},ft=function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",n=r.title,l=r.avatar,s=r.subTitle,c=r.tags,d=r.extra,v=r.onBack,m="".concat(e,"-heading"),h=n||s||c||d;if(!h)return null;var f=dt(r,t),g=st(e,f,v),u=g||l||h;return a.createElement("div",{className:m},u&&a.createElement("div",{className:"".concat(m,"-left")},g,l&&a.createElement(nt.C,(0,b.Z)({},l)),n&&a.createElement("span",{className:"".concat(m,"-title"),title:typeof n=="string"?n:void 0},n),s&&a.createElement("span",{className:"".concat(m,"-sub-title"),title:typeof s=="string"?s:void 0},s),c&&a.createElement("span",{className:"".concat(m,"-tags")},c)),d&&a.createElement("span",{className:"".concat(m,"-extra")},a.createElement(ot.Z,null,d)))},ut=function(e,r){return r?a.createElement("div",{className:"".concat(e,"-footer")},r):null},vt=function(e,r){return a.createElement("div",{className:"".concat(e,"-content")},r)},mt=function(e){var r=(0,Fe.Z)(!1),t=(0,Ce.Z)(r,2),n=t[0],l=t[1],s=function(d){var v=d.width;l(v<768,!0)};return a.createElement(M.C,null,function(c){var d,v=c.getPrefixCls,m=c.pageHeader,h=c.direction,f,g=e.prefixCls,u=e.style,C=e.footer,R=e.children,x=e.breadcrumb,N=e.breadcrumbRender,T=e.className,H=!0;"ghost"in e?H=e.ghost:m&&"ghost"in m&&(H=m.ghost);var P=v("page-header",g),L=function(){return(x==null?void 0:x.routes)?ct(x):null},I=L(),U=x&&"props"in x,te=(f=N==null?void 0:N(e,I))!==null&&f!==void 0?f:I,D=U?x:te,ae=W()(P,T,(d={"has-breadcrumb":!!D,"has-footer":!!C},(0,A.Z)(d,"".concat(P,"-ghost"),H),(0,A.Z)(d,"".concat(P,"-rtl"),h==="rtl"),(0,A.Z)(d,"".concat(P,"-compact"),n),d));return a.createElement(G.Z,{onResize:s},a.createElement("div",{className:ae,style:u},D,ft(P,e,h),R&&vt(P,R),ut(P,C)))})},ht=mt,Re=i(81253),Qt=i(18106),Ze=i(51752),Ne=i(64335),gt=i(85224),Ct=i(21349),xt=i(83832),Pt=function(e){if(!e)return 1;var r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r},Et=function(e){var r=e.children,t=e.style,n=e.className,l=e.markStyle,s=e.markClassName,c=e.zIndex,d=c===void 0?9:c,v=e.gapX,m=v===void 0?212:v,h=e.gapY,f=h===void 0?222:h,g=e.width,u=g===void 0?120:g,C=e.height,R=C===void 0?64:C,x=e.rotate,N=x===void 0?-22:x,T=e.image,H=e.content,P=e.offsetLeft,L=e.offsetTop,I=e.fontStyle,U=I===void 0?"normal":I,te=e.fontWeight,D=te===void 0?"normal":te,ae=e.fontColor,he=ae===void 0?"rgba(0,0,0,.15)":ae,Te=e.fontSize,Me=Te===void 0?16:Te,Be=e.fontFamily,De=Be===void 0?"sans-serif":Be,Bt=e.prefixCls,Dt=(0,a.useContext)(ge.ZP.ConfigContext),At=Dt.getPrefixCls,Ae=At("pro-layout-watermark",Bt),St=W()("".concat(Ae,"-wrapper"),n),Lt=W()(Ae,s),It=(0,a.useState)(""),Se=(0,Ce.Z)(It,2),Ut=Se[0],Le=Se[1];return(0,a.useEffect)(function(){var le=document.createElement("canvas"),Q=le.getContext("2d"),re=Pt(Q),Wt="".concat((m+u)*re,"px"),Ft="".concat((f+R)*re,"px"),Ht=P||m/2,Kt=L||f/2;if(le.setAttribute("width",Wt),le.setAttribute("height",Ft),Q){Q.translate(Ht*re,Kt*re),Q.rotate(Math.PI/180*Number(N));var wt=u*re,Ie=R*re;if(T){var se=new Image;se.crossOrigin="anonymous",se.referrerPolicy="no-referrer",se.src=T,se.onload=function(){Q.drawImage(se,0,0,wt,Ie),Le(le.toDataURL())}}else if(H){var zt=Number(Me)*re;Q.font="".concat(U," normal ").concat(D," ").concat(zt,"px/").concat(Ie,"px ").concat(De),Q.fillStyle=he,Q.fillText(H,0,0),Le(le.toDataURL())}}else console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas")},[m,f,P,L,N,U,D,u,R,De,he,T,H,Me]),a.createElement("div",{style:(0,Z.Z)({position:"relative"},t),className:St},r,a.createElement("div",{className:Lt,style:(0,Z.Z)({zIndex:d,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(m+u,"px"),pointerEvents:"none",backgroundRepeat:"repeat",backgroundImage:"url('".concat(Ut,"')")},l)}))},bt=Et,kt=i(12395),yt=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","style","prefixCls","breadcrumbRender"],pt=["children","loading","className","style","footer","affixProps","ghost","fixedHeader","breadcrumbRender"];function Ot(o){return(0,y.Z)(o)==="object"?o:{spinning:o}}var Rt=function(e){var r=e.tabList,t=e.tabActiveKey,n=e.onTabChange,l=e.tabBarExtraContent,s=e.tabProps,c=e.prefixedClassName;return Array.isArray(r)||l?a.createElement(Ze.Z,(0,b.Z)({className:"".concat(c,"-tabs"),activeKey:t,onChange:function(v){n&&n(v)},tabBarExtraContent:l},s),r==null?void 0:r.map(function(d,v){return a.createElement(Ze.Z.TabPane,(0,b.Z)({},d,{tab:d.tab,key:d.key||v}))})):null},Zt=function(e,r,t){return!e&&!r?null:a.createElement("div",{className:"".concat(t,"-detail")},a.createElement("div",{className:"".concat(t,"-main")},a.createElement("div",{className:"".concat(t,"-row")},e&&a.createElement("div",{className:"".concat(t,"-content")},e),r&&a.createElement("div",{className:"".concat(t,"-extraContent")},r))))},_t=function(e){var r=useContext(RouteContext);return React.createElement("div",{style:{height:"100%",display:"flex",alignItems:"center"}},React.createElement(_Breadcrumb,_extends({},r==null?void 0:r.breadcrumb,r==null?void 0:r.breadcrumbProps,e)))},Nt=function(e){var r,t=(0,a.useContext)(Ne.Z),n=e.title,l=e.content,s=e.pageHeaderRender,c=e.header,d=e.prefixedClassName,v=e.extraContent,m=e.style,h=e.prefixCls,f=e.breadcrumbRender,g=(0,Re.Z)(e,yt),u=(0,a.useMemo)(function(){if(!!f)return f},[f]);if(s===!1)return null;if(s)return a.createElement(a.Fragment,null," ",s((0,Z.Z)((0,Z.Z)({},e),t)));var C=n;!n&&n!==!1&&(C=t.title);var R=(0,Z.Z)((0,Z.Z)((0,Z.Z)({},t),{},{title:C},g),{},{footer:Rt((0,Z.Z)((0,Z.Z)({},g),{},{breadcrumbRender:f,prefixedClassName:d}))},c),x=R.breadcrumb,N=(!x||!(x==null?void 0:x.itemRender)&&!(x==null||(r=x.routes)===null||r===void 0?void 0:r.length))&&!f;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(T){return!R[T]})&&N&&!l&&!v?null:a.createElement("div",{className:"".concat(d,"-warp")},a.createElement(ht,(0,b.Z)({},R,{breadcrumb:f===!1?void 0:(0,Z.Z)((0,Z.Z)({},R.breadcrumb),t.breadcrumbProps),breadcrumbRender:u,prefixCls:h}),(c==null?void 0:c.children)||Zt(l,v,d)))},Tt=function(e){var r,t,n=e.children,l=e.loading,s=l===void 0?!1:l,c=e.className,d=e.style,v=e.footer,m=e.affixProps,h=e.ghost,f=e.fixedHeader,g=e.breadcrumbRender,u=(0,Re.Z)(e,pt),C=(0,a.useContext)(Ne.Z),R=(0,a.useContext)(ge.ZP.ConfigContext),x=R.getPrefixCls,N=e.prefixCls||x("pro"),T="".concat(N,"-page-container"),H=W()(T,c,(r={},(0,A.Z)(r,"".concat(N,"-page-container-ghost"),h),(0,A.Z)(r,"".concat(N,"-page-container-with-footer"),v),r)),P=(0,a.useMemo)(function(){return n?a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(T,"-children-content")},n),C.hasFooterToolbar&&a.createElement("div",{style:{height:48,marginTop:24}})):null},[n,T,C.hasFooterToolbar]),L=(0,a.useMemo)(function(){var D;return g==!1?!1:g||(u==null||(D=u.header)===null||D===void 0?void 0:D.breadcrumbRender)},[g,u==null||(t=u.header)===null||t===void 0?void 0:t.breadcrumbRender]),I=a.createElement(Nt,(0,b.Z)({},u,{breadcrumbRender:L,ghost:h,prefixCls:void 0,prefixedClassName:T})),U=(0,a.useMemo)(function(){if(a.isValidElement(s))return s;if(typeof s=="boolean"&&!s)return null;var D=Ot(s);return a.createElement(xt.Z,D)},[s]),te=(0,a.useMemo)(function(){var D=U||P;if(e.waterMarkProps||C.waterMarkProps){var ae=(0,Z.Z)((0,Z.Z)({},C.waterMarkProps),e.waterMarkProps);return a.createElement(bt,ae,D)}return D},[e.waterMarkProps,C.waterMarkProps,U,P]);return a.createElement("div",{style:d,className:H},f&&I?a.createElement(We,(0,b.Z)({offsetTop:C.hasHeader&&C.fixedHeader?C.headerHeight:0},m),I):I,te&&a.createElement(Ct.Z,null,te),v&&a.createElement(gt.Z,{prefixCls:N},v))},Mt=Tt},56264:function(){},53645:function(){},12395:function(){},70883:function(){},81262:function(){},59903:function(){},34952:function(ce,$,i){"use strict";var K=i(22122),S=i(67294),b=i(15105),A=function(p,j){var y={};for(var a in p)Object.prototype.hasOwnProperty.call(p,a)&&j.indexOf(a)<0&&(y[a]=p[a]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,a=Object.getOwnPropertySymbols(p);O2&&arguments[2]!==void 0?arguments[2]:!0,Re=Object.keys($).reduce(function(j,ee){var K=$[ee];return(0,Fe.Z)(K)||(j[ee]=K),j},{});if(Object.keys(Re).length<1||typeof window=="undefined"||(0,A.Z)(U)!=="object"||(0,Fe.Z)(U)||U instanceof Blob)return U;var ce=Array.isArray(U)?[]:{},me=function j(ee,K){var Le=Array.isArray(ee),re=Le?[]:{};return ee==null||ee===void 0?re:(Object.keys(ee).forEach(function(Ce){var qe=K?[K,Ce].flat(1):[Ce].flat(1),Q=ee[Ce],q=(0,N.Z)(Re,qe),Ae=function(){var I=typeof q=="function"?q==null?void 0:q(Q,Ce,ee):Ce;if(Array.isArray(I)){re=(0,M.Z)(re,I,Q);return}(0,A.Z)(I)==="object"&&!Array.isArray(ce)?ce=(0,g.Z)((0,g.Z)({},ce),I):(0,A.Z)(I)==="object"&&Array.isArray(ce)?re=(0,g.Z)((0,g.Z)({},re),I):I&&(re=(0,M.Z)(re,[I],Q))};if(q&&typeof q=="function"&&Ae(),typeof window!="undefined"){if(pe(Q)){var Ze=j(Q,qe);if(Object.keys(Ze).length<1)return;re=(0,M.Z)(re,[Ce],Ze);return}Ae()}}),se?re:ee)};return ce=Array.isArray(U)&&Array.isArray(ce)?(0,ue.Z)(me(U)):(0,He.T)({},me(U),ce),ce},je=Qe,Be=t(29405),Ge=0;function nr(C){var U=(0,E.useState)(function(){return C.proFieldKey?C.proFieldKey.toString():(Ge+=1,Ge.toString())}),$=(0,_.Z)(U,1),se=$[0],Re=(0,E.useRef)(se),ce=function(){var K=(0,L.Z)((0,S.Z)().mark(function Le(){var re,Ce;return(0,S.Z)().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,(re=C.request)===null||re===void 0?void 0:re.call(C,C.params,C);case 2:return Ce=Q.sent,Q.abrupt("return",Ce);case 4:case"end":return Q.stop()}},Le)}));return function(){return K.apply(this,arguments)}}();(0,E.useEffect)(function(){return function(){Ge+=1}},[]);var me=(0,Be.ZP)([Re.current,C.params],ce,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),j=me.data,ee=me.error;return[j||ee]}var Xe=nr,ar=t(96202),Sr=t(78822),mr=t(28664),de=t(91285),fr=t(1914),or=t(60222),b=t(45095),T=t(80334),ke=t(49111),ie=t(19650),J=t(57663),X=t(71577),ye=t(97435),ae=function(U){var $=(0,Pe.YB)();if(U.render===!1)return null;var se=U.form,Re=U.onSubmit,ce=U.render,me=U.onReset,j=U.searchConfig,ee=j===void 0?{}:j,K=U.submitButtonProps,Le=U.resetButtonProps,re=Le===void 0?{}:Le,Ce=function(){se.submit(),Re==null||Re()},qe=function(){se.resetFields(),me==null||me()},Q=ee.submitText,q=Q===void 0?$.getMessage("tableForm.submit","\u63D0\u4EA4"):Q,Ae=ee.resetText,Ze=Ae===void 0?$.getMessage("tableForm.reset","\u91CD\u7F6E"):Ae,Ee=[];re!==!1&&Ee.push(E.createElement(X.Z,(0,R.Z)({},(0,ye.Z)(re,["preventDefault"]),{key:"rest",onClick:function(br){var Je;(re==null?void 0:re.preventDefault)||qe(),re==null||(Je=re.onClick)===null||Je===void 0||Je.call(re,br)}}),Ze)),K!==!1&&Ee.push(E.createElement(X.Z,(0,R.Z)({type:"primary"},(0,ye.Z)(K||{},["preventDefault"]),{key:"submit",onClick:function(br){var Je;(K==null?void 0:K.preventDefault)||Ce(),K==null||(Je=K.onClick)===null||Je===void 0||Je.call(K,br)}}),q));var I=ce?ce((0,g.Z)((0,g.Z)({},U),{},{submit:Ce,reset:qe}),Ee):Ee;return I?Array.isArray(I)?(I==null?void 0:I.length)<1?null:(I==null?void 0:I.length)===1?I[0]:E.createElement(ie.Z,{wrap:!0},I):I:null},We=ae,Ve=t(66758),Ue=t(2514),oe=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","extraUrlParams","syncToUrl","syncToInitialValues","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],Y=["request","params","initialValues","formKey"],xe=function(U,$,se){return U===!0?$:(0,ar.h)(U,$,se)},ve=function(U){return!U||Array.isArray(U)?U:[U]};function Ie(C){var U=C.children,$=C.contentRender,se=C.submitter,Re=C.fieldProps,ce=C.formItemProps,me=C.groupProps,j=C.dateFormatter,ee=j===void 0?"string":j,K=C.formRef,Le=C.onInit,re=C.form,Ce=C.formComponentType,qe=C.extraUrlParams,Q=qe===void 0?{}:qe,q=C.syncToUrl,Ae=C.syncToInitialValues,Ze=Ae===void 0?!0:Ae,Ee=C.onReset,I=C.omitNil,we=I===void 0?!0:I,br=C.isKeyPressSubmit,Je=C.autoFocusFirstInput,Or=Je===void 0?!0:Je,Ir=C.grid,Ur=C.rowProps,Kr=C.colProps,xr=(0,r.Z)(C,oe),Yr=(0,E.useContext)(p.ZP.SizeContext),at=D.Z.useForm(re),qr=(0,_.Z)(at,1),Hr=qr[0],$r=(0,b.l)({},{disabled:!q}),De=(0,_.Z)($r,2),Ar=De[0],gr=De[1],k=(0,E.useRef)(Hr||{}),Rr=(0,Ue.zx)({grid:Ir,rowProps:Ur}),ur=Rr.RowWrapper,Lr=(0,E.useRef)({}),dt=(0,E.useRef)({}),Br=(0,E.useCallback)(function(ze,Ne,Ke){return je((0,Sr.ZP)(ze,ee,Lr.current,Ne,Ke),dt.current,Ne)},[ee]),Xr=(0,E.useMemo)(function(){return{getFieldsFormatValue:function(Ne){var Ke;return Br((Ke=k.current)===null||Ke===void 0?void 0:Ke.getFieldsValue(Ne),we)},getFieldFormatValue:function(){var Ne,Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],rr=ve(Ke);if(!rr)throw new Error("nameList is require");var hr=(Ne=k.current)===null||Ne===void 0?void 0:Ne.getFieldValue(rr),Wr=rr?(0,M.Z)({},rr,hr):hr;return(0,N.Z)(Br(Wr,we,rr),rr)},getFieldFormatValueObject:function(Ne){var Ke,rr=ve(Ne),hr=(Ke=k.current)===null||Ke===void 0?void 0:Ke.getFieldValue(rr),Wr=rr?(0,M.Z)({},rr,hr):hr;return Br(Wr,we,rr)},validateFieldsReturnFormatValue:function(){var ze=(0,L.Z)((0,S.Z)().mark(function Ke(rr){var hr,Wr,pr;return(0,S.Z)().wrap(function(zr){for(;;)switch(zr.prev=zr.next){case 0:if(!(!Array.isArray(rr)&&rr)){zr.next=2;break}throw new Error("nameList must be array");case 2:return zr.next=4,(hr=k.current)===null||hr===void 0?void 0:hr.validateFields(rr);case 4:return Wr=zr.sent,pr=Br(Wr,we),zr.abrupt("return",pr||{});case 7:case"end":return zr.stop()}},Ke)}));function Ne(Ke){return ze.apply(this,arguments)}return Ne}(),formRef:k}},[we,Br]),ot=(0,E.useMemo)(function(){var ze=(0,g.Z)({},k.current);return Object.keys(k.current||{}).forEach(function(Ne){Object.defineProperty(ze,Ne,{get:function(){return k.current[Ne]}})}),Object.keys(Xr).forEach(function(Ne){Object.defineProperty(ze,Ne,{get:function(){return Xr[Ne]}})}),ze},[]),Dr=(0,mr.Z)(!1),vt=(0,_.Z)(Dr,2),st=vt[0],_r=vt[1],mt=(0,E.useMemo)(function(){return E.Children.toArray(U).map(function(ze,Ne){return Ne===0&&E.isValidElement(ze)&&Or?E.cloneElement(ze,(0,g.Z)((0,g.Z)({},ze.props),{},{autoFocus:Or})):ze})},[Or,U]),et=(0,E.useMemo)(function(){return typeof se=="boolean"||!se?{}:se},[se]);(0,E.useImperativeHandle)(K,function(){return ot});var rt=(0,E.useMemo)(function(){if(se!==!1)return E.createElement(We,(0,R.Z)({key:"submitter"},et,{onReset:function(){var Ne,Ke,rr=Br((Ne=k.current)===null||Ne===void 0?void 0:Ne.getFieldsValue(),we);if(et==null||(Ke=et.onReset)===null||Ke===void 0||Ke.call(et,rr),Ee==null||Ee(rr),q){var hr,Wr=Object.keys(Br((hr=k.current)===null||hr===void 0?void 0:hr.getFieldsValue(),!1)).reduce(function(pr,Gr){return(0,g.Z)((0,g.Z)({},pr),{},(0,h.Z)({},Gr,rr[Gr]||void 0))},Q);gr(xe(q,Wr,"set"))}},form:ot,submitButtonProps:(0,g.Z)({loading:st},et.submitButtonProps)}))},[se,et,ot,st,Br,we,Ee,q,Q,gr]),Et=(0,E.useMemo)(function(){var ze=Ir?E.createElement(ur,null,mt):mt;return $?$(ze,rt,k.current):ze},[Ir,ur,mt,$,rt]),tt=(0,E.useMemo)(function(){if(typeof window!="undefined"&&Ce&&["DrawerForm"].includes(Ce))return function(ze){return ze.parentNode||document.body}},[Ce]);(0,E.useEffect)(function(){var ze,Ne=Br((ze=k.current)===null||ze===void 0?void 0:ze.getFieldsValue(!0),we);Le==null||Le(Ne,ot)},[]);var ht=(0,E.useState)(function(){return q?xe(q,Ar,"get"):{}}),ft=(0,_.Z)(ht,2),pt=ft[0],Pt=ft[1];(0,E.useEffect)(function(){Ze||Pt({})},[Ze]);var yt=(0,de.Z)(C.initialValues);return(0,E.useEffect)(function(){if(!(q||!C.initialValues||!yt||xr.request)){var ze=(0,fr.Z)(C.initialValues,yt);(0,T.ET)(ze,"initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ?
: null "),(0,T.ET)(ze,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[C.initialValues]),(0,E.useEffect)(function(){!q||gr((0,g.Z)((0,g.Z)({},Ar),Q))},[Q,q]),E.createElement(Ve.Z.Provider,{value:{formRef:k,fieldProps:Re,formItemProps:ce,groupProps:me,formComponentType:Ce,getPopupContainer:tt,setFieldValueType:function(Ne,Ke){var rr=Ke.valueType,hr=rr===void 0?"text":rr,Wr=Ke.dateFormat,pr=Ke.transform;!Array.isArray(Ne)||(dt.current=(0,M.Z)(dt.current,Ne,pr),Lr.current=(0,M.Z)(Lr.current,Ne,{valueType:hr,dateFormat:Wr}))}}},E.createElement(or.Z.Provider,{value:Xr},E.createElement(p.ZP.SizeContext.Provider,{value:xr.size||Yr},E.createElement(Ue._p.Provider,{value:{grid:Ir,colProps:Kr}},E.createElement(D.Z,(0,R.Z)({onKeyPress:function(Ne){if(!!br&&Ne.key==="Enter"){var Ke;(Ke=k.current)===null||Ke===void 0||Ke.submit()}},form:Hr},xr,{initialValues:(0,g.Z)((0,g.Z)({},pt),xr.initialValues),onValuesChange:function(Ne,Ke){var rr;xr==null||(rr=xr.onValuesChange)===null||rr===void 0||rr.call(xr,Br(Ne,we),Br(Ke,we))},onFinish:(0,L.Z)((0,S.Z)().mark(function ze(){var Ne,Ke,rr,hr;return(0,S.Z)().wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:if(xr.onFinish){pr.next=2;break}return pr.abrupt("return");case 2:if(!st){pr.next=4;break}return pr.abrupt("return");case 4:return _r(!0),pr.prev=5,Ke=Br((Ne=k.current)===null||Ne===void 0?void 0:Ne.getFieldsValue(),we),pr.next=9,xr.onFinish(Ke);case 9:q&&(hr=Object.keys(Br((rr=k.current)===null||rr===void 0?void 0:rr.getFieldsValue(),!1)).reduce(function(Gr,zr){var ut;return(0,g.Z)((0,g.Z)({},Gr),{},(0,h.Z)({},zr,(ut=Ke[zr])!==null&&ut!==void 0?ut:void 0))},Q),Object.keys(Ar).forEach(function(Gr){hr[Gr]!==!1&&hr[Gr]!==0&&!hr[Gr]&&(hr[Gr]=void 0)}),gr(xe(q,hr,"set"))),_r(!1),pr.next=16;break;case 13:pr.prev=13,pr.t0=pr.catch(5),_r(!1);case 16:case"end":return pr.stop()}},ze,null,[[5,13]])}))}),xr.component!==!1&&E.createElement("input",{type:"text",style:{display:"none"}}),E.createElement(D.Z.Item,{noStyle:!0,shouldUpdate:!0},function(ze){return K&&(K.current=(0,g.Z)((0,g.Z)({},ze),Xr)),k.current=ze,null}),Et)))))}var Oe=0;function er(C){var U=C.request,$=C.params,se=C.initialValues,Re=C.formKey,ce=Re===void 0?Oe:Re,me=(0,r.Z)(C,Y);(0,E.useEffect)(function(){Oe+=0},[]);var j=Xe({request:U,params:$,proFieldKey:ce}),ee=(0,_.Z)(j,1),K=ee[0];return!K&&C.request?E.createElement("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"}},E.createElement(i.Z,null)):E.createElement(Pe.oK,null,E.createElement(Ie,(0,R.Z)({autoComplete:"off"},me,{initialValues:(0,g.Z)((0,g.Z)({},se),K)})))}},71436:function(Pr,ge,t){"use strict";t.d(ge,{G:function(){return Ge}});var v=t(22122),i=t(96156),R=t(28481),h=t(28991),g=t(81253),S=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter"];function L(nr){var Xe={};return S.forEach(function(ar){nr[ar]!==void 0&&(Xe[ar]=nr[ar])}),Xe}var B=t(37004),D=t(91285),_=t(1914),he=t(94184),p=t.n(he),r=t(48526),Pe=t(80334),ue=t(67294),A=t(30939),N=t(87808),M=t(97462),E=t(66758),Fe=t(2514),He=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],pe=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],Qe=Symbol("ProFormComponent"),je={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},Be=["switch","radioButton","radio","rate"];function Ge(nr,Xe){nr.displayName="ProFormComponent";var ar=function(de){var fr=(0,h.Z)((0,h.Z)({},de==null?void 0:de.filedConfig),Xe)||{},or=fr.valueType,b=fr.customLightMode,T=fr.lightFilterLabelFormatter,ke=fr.valuePropName,ie=ke===void 0?"value":ke,J=fr.ignoreWidth,X=fr.defaultProps,ye=(0,g.Z)(fr,He),ae=(0,h.Z)((0,h.Z)({},X),de),We=ae.label,Ve=ae.tooltip,Ue=ae.placeholder,oe=ae.width,Y=ae.bordered,xe=ae.messageVariables,ve=ae.ignoreFormItem,Ie=ae.transform,Oe=ae.convertValue,er=ae.readonly,C=ae.allowClear,U=ae.colSize,$=ae.getFormItemProps,se=ae.getFieldProps,Re=ae.filedConfig,ce=ae.cacheForSwr,me=ae.proFieldProps,j=(0,g.Z)(ae,pe),ee=or||j.valueType,K=(0,ue.useMemo)(function(){return J||Be.includes(ee)},[J,ee]),Le=(0,ue.useState)(),re=(0,R.Z)(Le,2),Ce=re[1],qe=(0,ue.useState)(),Q=(0,R.Z)(qe,2),q=Q[0],Ae=Q[1],Ze=ue.useContext(E.Z),Ee=(0,ue.useMemo)(function(){return{formItemProps:$==null?void 0:$(),fieldProps:se==null?void 0:se()}},[se,$,j.dependenciesValues,q]),I=(0,ue.useMemo)(function(){var k=(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({},ve?(0,B.Z)({value:j.value}):{}),{},{placeholder:Ue,disabled:de.disabled},Ze.fieldProps),Ee.fieldProps),j.fieldProps);return k.style=(0,B.Z)(k==null?void 0:k.style),k},[ve,j.value,j.fieldProps,Ue,de.disabled,Ze.fieldProps,Ee.fieldProps]),we=L(j),br=(0,ue.useMemo)(function(){return(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({},Ze.formItemProps),we),Ee.formItemProps),j.formItemProps)},[Ee.formItemProps,Ze.formItemProps,j.formItemProps,we]),Je=(0,ue.useMemo)(function(){return(0,h.Z)((0,h.Z)({messageVariables:xe},ye),br)},[ye,br,xe]);(0,Pe.ET)(!j.defaultValue,"\u8BF7\u4E0D\u8981\u5728 Form \u4E2D\u4F7F\u7528 defaultXXX\u3002\u5982\u679C\u9700\u8981\u9ED8\u8BA4\u503C\u8BF7\u4F7F\u7528 initialValues \u548C initialValue\u3002");var Or=(0,ue.useContext)(r.zb),Ir=Or.prefixName,Ur=(0,ue.useMemo)(function(){var k=Je==null?void 0:Je.name;return Array.isArray(k)&&(k=k.join("_")),Array.isArray(Ir)&&k&&(k="".concat(Ir.join("."),".").concat(k)),k&&"form-field-".concat(k)},[(0,A.P)(Je==null?void 0:Je.name),Ir]),Kr=(0,D.Z)(j),xr=(0,ue.useCallback)(function(){var k;$||se?Ae([]):j.renderFormItem&&Ce([]);for(var Rr=arguments.length,ur=new Array(Rr),Lr=0;Lr1&&arguments[1]!==void 0?arguments[1]:100,a=arguments.length>2?arguments[2]:void 0,n=(0,r.useState)(f),l=(0,A.Z)(n,2),u=l[0],s=l[1],o=(0,T.Z)(f);return(0,r.useEffect)(function(){var d=setTimeout(function(){s(o.current)},e);return function(){return clearTimeout(d)}},a?[e].concat((0,Be.Z)(a)):void 0),u}var ie=t(29405),J=t(54029),X=t(79166),ye=t(52436),ae={Success:function(e){var a=e.children;return r.createElement(X.Z,{status:"success",text:a})},Error:function(e){var a=e.children;return r.createElement(X.Z,{status:"error",text:a})},Default:function(e){var a=e.children;return r.createElement(X.Z,{status:"default",text:a})},Processing:function(e){var a=e.children;return r.createElement(X.Z,{status:"processing",text:a})},Warning:function(e){var a=e.children;return r.createElement(X.Z,{status:"warning",text:a})},success:function(e){var a=e.children;return r.createElement(X.Z,{status:"success",text:a})},error:function(e){var a=e.children;return r.createElement(X.Z,{status:"error",text:a})},default:function(e){var a=e.children;return r.createElement(X.Z,{status:"default",text:a})},processing:function(e){var a=e.children;return r.createElement(X.Z,{status:"processing",text:a})},warning:function(e){var a=e.children;return r.createElement(X.Z,{status:"warning",text:a})}},We=function(e){var a=e.color,n=e.children;return r.createElement(X.Z,{color:a,text:n})},Ve=ae,Ue=t(78848),oe=t(43358),Y=t(34041),xe=t(47673),ve=t(4107),Ie=t(96156),Oe=t(76570),er=t(59949),C=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger"],U=function(e,a){return(0,S.Z)(a)!=="object"?e[a]||a:e[a==null?void 0:a.value]||a.label},$=function(e,a){var n=e.label,l=e.prefixCls,u=e.onChange,s=e.value,o=e.mode,d=e.children,c=e.defaultValue,m=e.size,y=e.showSearch,P=e.disabled,Z=e.style,w=e.className,F=e.bordered,O=e.options,te=e.onSearch,H=e.allowClear,W=e.labelInValue,le=e.fieldNames,ne=e.lightLabel,z=e.labelTrigger,be=(0,R.Z)(e,C),Se=e.placeholder,Me=Se===void 0?n:Se,Ye=le||{},x=Ye.label,fe=x===void 0?"label":x,V=Ye.value,G=V===void 0?"value":V,sr=(0,r.useContext)(M.ZP.ConfigContext),Zr=sr.getPrefixCls,vr=Zr("pro-field-select-light-select"),cr=(0,r.useState)(!1),lr=(0,A.Z)(cr,2),dr=lr[0],_e=lr[1],Mr=(0,r.useState)(""),wr=(0,A.Z)(Mr,2),Fr=wr[0],Tr=wr[1],Nr=(0,r.useMemo)(function(){var Cr={};return O==null||O.forEach(function(tr){var Er=tr[fe],$e=tr[G];Cr[$e]=Er||$e}),Cr},[fe,O,G]),jr=Array.isArray(s)?s.map(function(Cr){return U(Nr,Cr)}):U(Nr,s);return r.createElement("div",{className:pe()(vr,(0,Ie.Z)({},"".concat(vr,"-searchable"),y),w),style:Z,onClick:function(tr){var Er,$e,Te;if(!P){var yr=ne==null||(Er=ne.current)===null||Er===void 0||($e=Er.labelRef)===null||$e===void 0||(Te=$e.current)===null||Te===void 0?void 0:Te.contains(tr.target);_e(yr?!dr:!0)}}},r.createElement(Y.Z,(0,v.Z)({},be,{allowClear:H,value:s,mode:o,labelInValue:W,size:m,disabled:P,onChange:function(tr,Er){u==null||u(tr,Er),o!=="multiple"&&setTimeout(function(){_e(!1)},0)},bordered:F,showSearch:y,onSearch:te,style:Z,dropdownRender:function(tr){return r.createElement("div",{ref:a},y&&r.createElement("div",{style:{margin:"4px 8px"}},r.createElement(ve.Z,{value:Fr,allowClear:H,onChange:function($e){Tr($e.target.value.toLowerCase()),te==null||te($e.target.value)},onKeyDown:function($e){$e.stopPropagation()},style:{width:"100%"},prefix:r.createElement(Oe.Z,null)})),tr)},open:dr,onDropdownVisibleChange:function(tr){tr||setTimeout(function(){Tr("")},0),z||_e(tr)},prefixCls:l,options:Fr?O==null?void 0:O.filter(function(Cr){var tr,Er,$e,Te,yr;return((tr=String(Cr[fe]))===null||tr===void 0||(Er=tr.toLowerCase())===null||Er===void 0?void 0:Er.includes(Fr))||(($e=Cr[G])===null||$e===void 0||(Te=$e.toString())===null||Te===void 0||(yr=Te.toLowerCase())===null||yr===void 0?void 0:yr.includes(Fr))}):O})),r.createElement(Fe.Z,{ellipsis:!0,size:m,label:n,placeholder:Me,disabled:P,expanded:dr,bordered:F,allowClear:H,value:jr||(s==null?void 0:s.label)||s,onClear:function(){u==null||u(void 0,void 0)},ref:ne}))},se=r.forwardRef($),Re=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames"],ce=Y.Z.Option,me=Y.Z.OptGroup,j=function(e,a){var n=e.optionItemRender,l=e.mode,u=e.onSearch,s=e.onFocus,o=e.onChange,d=e.autoClearSearchValue,c=e.searchOnFocus,m=c===void 0?!1:c,y=e.resetAfterSelect,P=y===void 0?!1:y,Z=e.fetchDataOnSearch,w=Z===void 0?!0:Z,F=e.optionFilterProp,O=F===void 0?"label":F,te=e.optionLabelProp,H=te===void 0?"label":te,W=e.className,le=e.disabled,ne=e.options,z=e.fetchData,be=e.resetData,Se=e.prefixCls,Me=e.onClear,Ye=e.searchValue,x=e.showSearch,fe=e.fieldNames,V=(0,R.Z)(e,Re),G=fe||{},sr=G.label,Zr=sr===void 0?"label":sr,vr=G.value,cr=vr===void 0?"value":vr,lr=G.options,dr=lr===void 0?"options":lr,_e=(0,r.useState)(Ye),Mr=(0,A.Z)(_e,2),wr=Mr[0],Fr=Mr[1],Tr=(0,r.useRef)();(0,r.useImperativeHandle)(a,function(){return Tr.current}),(0,r.useEffect)(function(){if(V.autoFocus){var Te;Tr==null||(Te=Tr.current)===null||Te===void 0||Te.focus()}},[V.autoFocus]),(0,r.useEffect)(function(){Fr(Ye)},[Ye]);var Nr=(0,r.useContext)(M.ZP.ConfigContext),jr=Nr.getPrefixCls,Cr=jr("pro-filed-search-select",Se),tr=pe()(Cr,W,(0,Ie.Z)({},"".concat(Cr,"-disabled"),le)),Er=function(yr,ir){return Array.isArray(yr)&&yr.length>0?yr.map(function(Jr,Qr){var Vr=ir==null?void 0:ir[Qr],nt=(Vr==null?void 0:Vr["data-item"])||{};return(0,i.Z)((0,i.Z)({},nt),Jr)}):[]},$e=function Te(yr){return yr.map(function(ir){var Jr,Qr=ir.disabled,Vr=ir.className,nt=ir.optionType,kr=ir[Zr],ct=ir[cr],it=(Jr=ir[dr])!==null&&Jr!==void 0?Jr:[];return nt==="optGroup"||ir.options?r.createElement(me,{key:ct,label:kr},Te(it)):r.createElement(ce,(0,v.Z)({},ir,{value:ct,key:ct||(kr==null?void 0:kr.toString()),disabled:Qr,"data-item":ir,className:"".concat(Cr,"-option ").concat(Vr||""),label:kr}),(n==null?void 0:n(ir))||kr)})};return r.createElement(Y.Z,(0,v.Z)({ref:Tr,className:tr,allowClear:!0,autoClearSearchValue:d,disabled:le,mode:l,showSearch:x,searchValue:wr,optionFilterProp:O,optionLabelProp:H,onClear:function(){Me==null||Me(),z(""),x&&Fr("")}},V,{onSearch:x?function(Te){w&&z(Te),u==null||u(Te),Fr(Te)}:void 0,onChange:function(yr,ir){x&&d&&(z(""),u==null||u(""),Fr(""));for(var Jr=arguments.length,Qr=new Array(Jr>2?Jr-2:0),Vr=2;VrG?le([G,V]):V===void 0&&G===void 0&&le(void 0)}},Se=function(fe,V){var G=(0,Be.Z)(W||[]);G[fe]=V===null?void 0:V,le(G)},Me=(d==null?void 0:d.placeholder)||s,Ye=r.createElement(ve.Z.Group,{compact:!0,onBlur:be},r.createElement(tt.Z,(0,v.Z)({},d,{placeholder:Array.isArray(Me)?Me[0]:Me,id:O!=null?O:"".concat(O,"-0"),style:{width:"calc((100% - ".concat(P,"px) / 2)")},value:W==null?void 0:W[0],defaultValue:w==null?void 0:w[0],onChange:function(fe){return Se(0,fe)}})),r.createElement(ve.Z,{style:{width:P,textAlign:"center",borderLeft:0,borderRight:0,pointerEvents:"none",backgroundColor:"#FFF"},placeholder:m,disabled:!0}),r.createElement(tt.Z,(0,v.Z)({},d,{placeholder:Array.isArray(Me)?Me[1]:Me,id:O!=null?O:"".concat(O,"-1"),style:{width:"calc((100% - ".concat(P,"px) / 2)"),borderLeft:0},value:W==null?void 0:W[1],defaultValue:w==null?void 0:w[1],onChange:function(fe){return Se(1,fe)}})));return o?o(n,(0,i.Z)({mode:l},d),Ye):Ye}return null},Pt=r.forwardRef(pt),yt=t(22385),ze=t(61580),Ne=function(e){var a=e.text,n=e.mode,l=e.render,u=e.renderFormItem,s=e.format,o=e.fieldProps,d=(0,L.YB)();if(n==="read"){var c=r.createElement(ze.Z,{title:Dr()(a).format((o==null?void 0:o.format)||s||"YYYY-MM-DD HH:mm:ss")},Dr()(a).fromNow());return l?l(a,(0,i.Z)({mode:n},o),r.createElement(r.Fragment,null,c)):r.createElement(r.Fragment,null,c)}if(n==="edit"||n==="update"){var m=d.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),y=_r(o.value),P=r.createElement(Xr.Z,(0,v.Z)({placeholder:m,showTime:!0},o,{value:y}));return u?u(a,(0,i.Z)({mode:n},o),P):P}return null},Ke=Ne,rr=t(12968),hr=t(62462),Wr=r.forwardRef(function(f,e){var a=f.text,n=f.mode,l=f.render,u=f.renderFormItem,s=f.fieldProps,o=f.placeholder,d=f.width;if(n==="read"){var c=r.createElement(hr.Z,(0,v.Z)({ref:e,width:d||32,src:a},s));return l?l(a,(0,i.Z)({mode:n},s),c):c}if(n==="edit"||n==="update"){var m=r.createElement(ve.Z,(0,v.Z)({ref:e,placeholder:o},s));return u?u(a,(0,i.Z)({mode:n},s),m):m}return null}),pr=Wr,Gr=t(98849),zr=function(e,a){var n,l=e.border,u=l===void 0?!1:l,s=e.children,o=(0,r.useContext)(M.ZP.ConfigContext),d=o.getPrefixCls,c=d("pro-field-index-column");return r.createElement("div",{ref:a,className:pe()(c,(n={},(0,Ie.Z)(n,"".concat(c,"-border"),u),(0,Ie.Z)(n,"top-three",s>3),n))},s)},ut=r.forwardRef(zr),bt=t(97435),wt=["content","numberFormatOptions","numberPopoverRender"],$t=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],Wt=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),zt={style:"currency",currency:"USD"},jt={style:"currency",currency:"RUB"},Vt={style:"currency",currency:"RSD"},Ut={style:"currency",currency:"MYR"},Kt={style:"currency",currency:"BRL"},St={default:Wt,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":zt,"ru-RU":jt,"ms-MY":Ut,"sr-RS":Vt,"pt-BR":Kt},Rt=function(e,a,n,l){var u=a;return typeof u=="string"&&(u=Number(u)),!u&&u!==0?"":new Intl.NumberFormat(e||"zh-Hans-CN",(0,i.Z)((0,i.Z)({},St[e||"zh-Hans-CN"]||St["zh-Hans-CN"]),{},{maximumFractionDigits:n},l)).format(u)},Ft=2,Yt=r.forwardRef(function(f,e){var a=f.content,n=f.numberFormatOptions,l=f.numberPopoverRender,u=(0,R.Z)(f,wt),s=(0,gr.Z)(function(){return u.defaultValue},{value:u.value,onChange:u.onChange}),o=(0,A.Z)(s,2),d=o[0],c=o[1],m=a==null?void 0:a((0,i.Z)((0,i.Z)({},u),{},{value:d})),y={visible:m?u.visible:!1};return r.createElement(De.Z,(0,v.Z)({placement:"topLeft"},y,{trigger:["focus","click"],content:m,getPopupContainer:function(Z){return(Z==null?void 0:Z.parentElement)||document.body}}),r.createElement(tt.Z,(0,v.Z)({ref:e},u,{value:d,onChange:c})))}),Ht=function(e,a){var n,l,u=e.text,s=e.mode,o=e.render,d=e.renderFormItem,c=e.fieldProps,m=e.proFieldKey,y=e.plain,P=e.valueEnum,Z=e.placeholder,w=e.locale,F=w===void 0?(n=c.customSymbol)!==null&&n!==void 0?n:"zh-Hans-CN":w,O=e.customSymbol,te=O===void 0?c.customSymbol:O,H=e.numberFormatOptions,W=H===void 0?c==null?void 0:c.numberFormatOptions:H,le=e.numberPopoverRender,ne=le===void 0?(c==null?void 0:c.numberPopoverRender)||!1:le,z=(0,R.Z)(e,$t),be=(l=c==null?void 0:c.precision)!==null&&l!==void 0?l:Ft,Se=(0,L.YB)();F&&L.Go[F]&&(Se=L.Go[F]);var Me=(0,r.useMemo)(function(){if(te)return te;var fe=Se.getMessage("moneySymbol","\uFFE5");if(!(z.moneySymbol===!1||c.moneySymbol===!1))return fe},[te,c.moneySymbol,Se,z.moneySymbol]);if(s==="read"){var Ye=r.createElement("span",{ref:a},Rt(Me?F:!1,u,be,W!=null?W:c.numberFormatOptions));return o?o(u,(0,i.Z)({mode:s},c),Ye):Ye}if(s==="edit"||s==="update"){var x=r.createElement(Yt,(0,v.Z)({content:function(V){var G,sr;if(ne!==!1&&!!V.value){var Zr=new RegExp("/B(?=(d{".concat(3+(be-Ft),"})+(?!d))/g")),vr=Rt(Me?F:!1,(G=V.value)===null||G===void 0||(sr=G.toString())===null||sr===void 0?void 0:sr.replace(Zr,","),be,(0,i.Z)((0,i.Z)({},W),{},{notation:"compact"}));return typeof ne=="function"?ne==null?void 0:ne(V,vr):vr}},ref:a,precision:be,formatter:function(V){if(V&&Me){var G=new RegExp("/B(?=(d{".concat(3+(be-Ft),"})+(?!d))/g"));return"".concat(Me," ").concat(V).replace(G,",")}return V==null?void 0:V.toString()},parser:function(V){return Me&&V?V.replace(new RegExp("\\".concat(Me,"\\s?|(,*)"),"g"),""):V},placeholder:Z},(0,bt.Z)(c,["numberFormatOptions","precision","numberPopoverRender","customSymbol"])));return d?d(u,(0,i.Z)({mode:s},c),x):x}return null},Dt=r.forwardRef(Ht),Mt=function(e){return e.map(function(a,n){return r.isValidElement(a)?r.cloneElement(a,(0,i.Z)({key:n},a==null?void 0:a.props)):r.createElement(r.Fragment,{key:n},a)})},Gt=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.fieldProps,o=(0,r.useContext)(M.ZP.ConfigContext),d=o.getPrefixCls,c=d("pro-field-option");if((0,r.useImperativeHandle)(a,function(){return{}}),u){var m=u(n,(0,i.Z)({mode:l},s),r.createElement(r.Fragment,null));return!m||(m==null?void 0:m.length)<1||!Array.isArray(m)?null:r.createElement(nr.Z,{size:16,className:c},Mt(m))}return!n||!Array.isArray(n)?r.isValidElement(n)?n:null:r.createElement(nr.Z,{size:16,className:c},Mt(n))},Jt=r.forwardRef(Gt),Qt=t(95357),Xt=t(88633),kt=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],qt=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.renderFormItem,o=e.fieldProps,d=e.proFieldKey,c=(0,R.Z)(e,kt),m=(0,L.YB)(),y=(0,gr.Z)(function(){return c.visible||!1},{value:c.visible,onChange:c.onVisible}),P=(0,A.Z)(y,2),Z=P[0],w=P[1];if(l==="read"){var F=r.createElement(r.Fragment,null,"-");return n&&(F=r.createElement(nr.Z,null,r.createElement("span",{ref:a},Z?n:"\uFF0A \uFF0A \uFF0A \uFF0A \uFF0A"),r.createElement("a",{onClick:function(){return w(!Z)}},Z?r.createElement(Qt.Z,null):r.createElement(Xt.Z,null)))),u?u(n,(0,i.Z)({mode:l},o),F):F}if(l==="edit"||l==="update"){var O=r.createElement(ve.Z.Password,(0,v.Z)({placeholder:m.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ref:a},o));return s?s(n,(0,i.Z)({mode:l},o),O):O}return null},_t=r.forwardRef(qt),en=t(49323),gt=t.n(en);function rn(f){return f===0?null:f>0?"+":"-"}function tn(f){return f===0?"#595959":f>0?"#ff4d4f":"#52c41a"}function nn(f){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return e>=0?f.toFixed(e):f}var an=function(e,a){var n=e.text,l=e.prefix,u=e.precision,s=e.suffix,o=s===void 0?"%":s,d=e.mode,c=e.showColor,m=c===void 0?!1:c,y=e.render,P=e.renderFormItem,Z=e.fieldProps,w=e.placeholder,F=e.showSymbol,O=(0,r.useMemo)(function(){return typeof n=="string"&&n.includes("%")?gt()(n.replace("%","")):gt()(n)},[n]),te=(0,r.useMemo)(function(){return typeof F=="function"?F==null?void 0:F(n):F},[F,n]);if(d==="read"){var H=m?{color:tn(O)}:{},W=r.createElement("span",{style:H,ref:a},l&&r.createElement("span",null,l),te&&r.createElement(r.Fragment,null,rn(O)," "),nn(Math.abs(O),u),o&&o);return y?y(n,(0,i.Z)((0,i.Z)({mode:d},Z),{},{prefix:l,precision:u,showSymbol:te,suffix:o}),W):W}if(d==="edit"||d==="update"){var le=r.createElement(tt.Z,(0,v.Z)({ref:a,formatter:function(z){return z&&l?"".concat(l," ").concat(z).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):z},parser:function(z){return z?z.replace(/.*\s|,/g,""):""},placeholder:w},Z));return P?P(n,(0,i.Z)({mode:d},Z),le):le}return null},Tt=r.forwardRef(an),Yn=t(34669),ln=t(54458);function on(f){return f===100?"success":f<0?"exception":f<100?"active":"normal"}var un=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.plain,o=e.renderFormItem,d=e.fieldProps,c=e.placeholder,m=(0,r.useMemo)(function(){return typeof n=="string"&&n.includes("%")?gt()(n.replace("%","")):gt()(n)},[n]);if(l==="read"){var y=r.createElement(ln.Z,(0,v.Z)({ref:a,size:"small",style:{minWidth:100,maxWidth:320},percent:m,steps:s?10:void 0,status:on(m)},d));return u?u(m,(0,i.Z)({mode:l},d),y):y}if(l==="edit"||l==="update"){var P=r.createElement(tt.Z,(0,v.Z)({ref:a,placeholder:c},d));return o?o(n,(0,i.Z)({mode:l},d),P):P}return null},It=r.forwardRef(un),Hn=t(88983),Ct=t(47933),Gn=t(877),dn=["radioType","renderFormItem","mode","render"],sn=function(e,a){var n=e.radioType,l=e.renderFormItem,u=e.mode,s=e.render,o=(0,R.Z)(e,dn),d=(0,r.useContext)(M.ZP.ConfigContext),c=d.getPrefixCls,m=c("pro-field-radio"),y=Ze(o),P=(0,A.Z)(y,3),Z=P[0],w=P[1],F=P[2],O=(0,r.useRef)();if((0,r.useImperativeHandle)(a,function(){return(0,i.Z)((0,i.Z)({},O.current||{}),{},{fetchData:function(){return F()}})}),Z)return r.createElement(je.Z,{size:"small"});if(u==="read"){var te=(w==null?void 0:w.length)?w==null?void 0:w.reduce(function(z,be){var Se;return(0,i.Z)((0,i.Z)({},z),{},(0,Ie.Z)({},(Se=be.value)!==null&&Se!==void 0?Se:"",be.label))},{}):void 0,H=r.createElement(r.Fragment,null,Ce(o.text,re(o.valueEnum||te)));return s?s(o.text,(0,i.Z)({mode:u},o.fieldProps),H)||null:H}if(u==="edit"){var W,le=n==="button"?Ct.ZP.Button:Ct.ZP,ne=r.createElement(Ct.ZP.Group,(0,v.Z)({ref:O},o.fieldProps,{className:pe()((W=o.fieldProps)===null||W===void 0?void 0:W.className,"".concat(m,"-").concat(o.fieldProps.layout||"horizontal")),options:void 0}),w==null?void 0:w.map(function(z){return r.createElement(le,(0,v.Z)({key:z.value},z),z.label)}));return l?l(o.text,(0,i.Z)({mode:u},o.fieldProps),ne)||null:ne}return null},Ot=r.forwardRef(sn),cn=function(e,a){var n=e.text,l=e.mode,u=e.format,s=e.render,o=e.renderFormItem,d=e.plain,c=e.showTime,m=e.fieldProps,y=(0,L.YB)(),P=Array.isArray(n)?n:[],Z=(0,A.Z)(P,2),w=Z[0],F=Z[1],O=(0,r.useCallback)(function(z){if(typeof(m==null?void 0:m.format)=="function"){var be;return m==null||(be=m.format)===null||be===void 0?void 0:be.call(m,z)}return(m==null?void 0:m.format)||u||"YYYY-MM-DD"},[m,u]),te=w?Dr()(w).format(O(Dr()(w))):"",H=F?Dr()(F).format(O(Dr()(F))):"";if(l==="read"){var W=r.createElement("div",{ref:a},r.createElement("div",null,te||"-"),r.createElement("div",null,H||"-"));return s?s(n,(0,i.Z)({mode:l},m),r.createElement("span",null,W)):W}if(l==="edit"||l==="update"){var le=_r(m.value),ne=r.createElement(Xr.Z.RangePicker,(0,v.Z)({ref:a,format:u,showTime:c,placeholder:[y.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),y.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],bordered:d===void 0?!0:!d},m,{value:le}));return o?o(n,(0,i.Z)({mode:l},m),ne):ne}return null},Lt=r.forwardRef(cn),Jn=t(96433),At=t(2864),vn=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.renderFormItem,o=e.fieldProps;if(l==="read"){var d=r.createElement(At.Z,(0,v.Z)({allowHalf:!0,disabled:!0,ref:a},o,{value:n}));return u?u(n,(0,i.Z)({mode:l},o),r.createElement(r.Fragment,null,d)):d}if(l==="edit"||l==="update"){var c=r.createElement(At.Z,(0,v.Z)({allowHalf:!0,ref:a},o));return s?s(n,(0,i.Z)({mode:l},o),c):c}return null},mn=r.forwardRef(vn);function fn(f){var e="",a=Math.floor(f/(3600*24)),n=Math.floor(f/3600),l=Math.floor(f/60%60),u=Math.floor(f%60);return e="".concat(u,"\u79D2"),l>0&&(e="".concat(l,"\u5206\u949F").concat(e)),n>0&&(e="".concat(n,"\u5C0F\u65F6").concat(e)),a>0&&(e="".concat(a,"\u5929").concat(e)),e}var gn=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.renderFormItem,o=e.fieldProps,d=e.placeholder;if(l==="read"){var c=fn(Number(n)),m=r.createElement("span",{ref:a},c);return u?u(n,(0,i.Z)({mode:l},o),m):m}if(l==="edit"||l==="update"){var y=r.createElement(tt.Z,(0,v.Z)({ref:a,min:0,style:{width:"100%"},placeholder:d},o));return s?s(n,(0,i.Z)({mode:l},o),y):y}return null},hn=r.forwardRef(gn),Qn=t(77576),pn=t(12028),Pn=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.renderFormItem,o=e.fieldProps,d=(0,L.YB)(),c=(0,r.useMemo)(function(){var P,Z;return n==null||"".concat(n).length<1?"-":n?(P=o==null?void 0:o.checkedChildren)!==null&&P!==void 0?P:d.getMessage("switch.open","\u6253\u5F00"):(Z=o==null?void 0:o.unCheckedChildren)!==null&&Z!==void 0?Z:d.getMessage("switch.close","\u5173\u95ED")},[o==null?void 0:o.checkedChildren,o==null?void 0:o.unCheckedChildren,n]);if(l==="read")return u?u(n,(0,i.Z)({mode:l},o),r.createElement(r.Fragment,null,c)):c!=null?c:"-";if(l==="edit"||l==="update"){var m,y=r.createElement(pn.Z,(0,v.Z)({ref:a},(0,bt.Z)(o,["value"]),{checked:(m=o==null?void 0:o.checked)!==null&&m!==void 0?m:o==null?void 0:o.value}));return s?s(n,(0,i.Z)({mode:l},o),y):y}return null},yn=r.forwardRef(Pn),Fn=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.renderFormItem,o=e.fieldProps,d=e.emptyText,c=d===void 0?"-":d,m=o||{},y=m.autoFocus,P=m.prefix,Z=P===void 0?"":P,w=m.suffix,F=w===void 0?"":w,O=(0,L.YB)(),te=(0,r.useRef)();if((0,r.useImperativeHandle)(a,function(){return te.current}),(0,r.useEffect)(function(){if(y){var z;(z=te.current)===null||z===void 0||z.focus()}},[y]),l==="read"){var H=r.createElement(r.Fragment,null,Z,n!=null?n:c,F);if(u){var W;return(W=u(n,(0,i.Z)({mode:l},o),H))!==null&&W!==void 0?W:c}return H}if(l==="edit"||l==="update"){var le=O.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ne=r.createElement(ve.Z,(0,v.Z)({ref:te,placeholder:le,allowClear:!0},o));return s?s(n,(0,i.Z)({mode:l},o),ne):ne}return null},Cn=r.forwardRef(Fn),xn=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.renderFormItem,o=e.fieldProps,d=(0,L.YB)();if(l==="read"){var c=r.createElement("span",{ref:a},n!=null?n:"-");return u?u(n,(0,i.Z)({mode:l},o),c):c}if(l==="edit"||l==="update"){var m=r.createElement(ve.Z.TextArea,(0,v.Z)({ref:a,rows:3,onKeyPress:function(P){P.key==="Enter"&&P.stopPropagation()},placeholder:d.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")},o));return s?s(n,(0,i.Z)({mode:l},o),m):m}return null},Zn=r.forwardRef(xn),Xn=t(39002),Nt=t(68351),En=function(e,a){var n=e.text,l=e.mode,u=e.light,s=e.label,o=e.format,d=e.render,c=e.renderFormItem,m=e.plain,y=e.fieldProps,P=e.lightLabel,Z=e.labelTrigger,w=(0,r.useState)(!1),F=(0,A.Z)(w,2),O=F[0],te=F[1],H=(0,r.useContext)(M.ZP.SizeContext),W=(0,r.useContext)(M.ZP.ConfigContext),le=W.getPrefixCls,ne=le("pro-field-date-picker"),z=(y==null?void 0:y.format)||o||"HH:mm:ss",be=Dr().isMoment(n)||typeof n=="number";if(l==="read"){var Se=r.createElement("span",{ref:a},n?Dr()(n,be?void 0:z).format(z):"-");return d?d(n,(0,i.Z)({mode:l},y),r.createElement("span",null,Se)):Se}if(l==="edit"||l==="update"){var Me,Ye=y.disabled,x=y.onChange,fe=y.placeholder,V=y.allowClear,G=y.value,sr=_r(G,z);if(u){var Zr=sr&&sr.format(z)||"";Me=r.createElement("div",{className:"".concat(ne,"-light"),onClick:function(cr){var lr,dr,_e,Mr=P==null||(lr=P.current)===null||lr===void 0||(dr=lr.labelRef)===null||dr===void 0||(_e=dr.current)===null||_e===void 0?void 0:_e.contains(cr.target);te(Mr?!O:!0)}},r.createElement(Nt.Z,(0,v.Z)({value:sr,format:o,ref:a},y,{onChange:function(cr){x==null||x(cr),setTimeout(function(){te(!1)},0)},onOpenChange:function(cr){Z||te(cr)},open:O})),r.createElement(Fe.Z,{label:s,disabled:Ye,placeholder:fe,size:H,value:Zr,allowClear:V,onClear:function(){return x==null?void 0:x(null)},expanded:O,ref:P}))}else Me=r.createElement(Xr.Z.TimePicker,(0,v.Z)({ref:a,format:o,bordered:m===void 0?!0:!m},y,{value:sr}));return c?c(n,(0,i.Z)({mode:l},y),Me):Me}return null},bn=function(e){var a=e.text,n=e.mode,l=e.format,u=e.render,s=e.renderFormItem,o=e.plain,d=e.fieldProps,c=(d==null?void 0:d.format)||l||"HH:mm:ss",m=Array.isArray(a)?a:[],y=(0,A.Z)(m,2),P=y[0],Z=y[1],w=Dr().isMoment(P)||typeof P=="number",F=Dr().isMoment(Z)||typeof Z=="number",O=P?Dr()(P,w?void 0:c).format(c):"",te=Z?Dr()(Z,F?void 0:c).format(c):"";if(n==="read"){var H=r.createElement("div",null,r.createElement("div",null,O||"-"),r.createElement("div",null,te||"-"));return u?u(a,(0,i.Z)({mode:n},d),r.createElement("span",null,H)):H}if(n==="edit"||n==="update"){var W=d.value,le=_r(W,c),ne=r.createElement(Nt.Z.RangePicker,(0,v.Z)({format:l,bordered:o===void 0?!0:!o},d,{value:le}));return s?s(a,(0,i.Z)({mode:n},d),ne):ne}return null},Sn=r.forwardRef(En),kn=t(62999),Rn=t(54680),Dn=["radioType","renderFormItem","mode","light","label","render"],Mn=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","searchValue"],Tn=function(e,a){var n=e.radioType,l=e.renderFormItem,u=e.mode,s=e.light,o=e.label,d=e.render,c=(0,R.Z)(e,Dn),m=(0,r.useContext)(M.ZP.ConfigContext),y=m.getPrefixCls,P=y("pro-field-tree-select"),Z=(0,r.useRef)(null),w=(0,r.useState)(!1),F=(0,A.Z)(w,2),O=F[0],te=F[1],H=c.fieldProps||{},W=H.onSearch,le=H.onClear,ne=H.onChange,z=H.onBlur,be=H.showSearch,Se=H.autoClearSearchValue,Me=H.treeData,Ye=H.searchValue,x=(0,R.Z)(H,Mn),fe=(0,r.useContext)(M.ZP.SizeContext),V=Ze((0,i.Z)((0,i.Z)({},c),{},{defaultKeyWords:Ye})),G=(0,A.Z)(V,3),sr=G[0],Zr=G[1],vr=G[2],cr=(0,gr.Z)("",{onChange:W,value:Ye}),lr=(0,A.Z)(cr,2),dr=lr[0],_e=lr[1];(0,r.useImperativeHandle)(a,function(){return(0,i.Z)((0,i.Z)({},Z.current||{}),{},{fetchData:function(){return vr()}})});var Mr=(0,r.useMemo)(function(){if(u==="read"){var $e=(x==null?void 0:x.fieldNames)||{},Te=$e.value,yr=Te===void 0?"value":Te,ir=$e.label,Jr=ir===void 0?"label":ir,Qr=$e.children,Vr=Qr===void 0?"children":Qr,nt=new Map,kr=function ct(it){if(!(it==null?void 0:it.length))return nt;for(var Kn=it.length,Bt=0;Bt0?r.createElement("div",{className:"".concat(Y,"-action")},Kr):null,Yr={name:K.name,field:$,index:se,record:Re==null||(X=Re.getFieldValue)===null||X===void 0?void 0:X.call(Re,[Le.listName,K.name,$.name].filter(function(De){return De!==void 0}).flat(1)),fields:C,operation:ve,meta:U},at=(0,Pe.zx)(),qr=at.grid,Hr=(Ve==null?void 0:Ve(Je,Yr))||Je,$r=(Ue==null?void 0:Ue({listDom:r.createElement("div",{className:"".concat(Y,"-container"),style:{width:qr?"100%":void 0}},Hr),action:xr},Yr))||r.createElement("div",{className:"".concat(Y,"-item ").concat(oe?"".concat(Y,"-item-show-label"):""),style:{display:"flex",alignItems:"flex-end"}},r.createElement("div",{className:"".concat(Y,"-container"),style:{width:qr?"100%":void 0}},Hr),xr);return r.createElement(T.Provider,{key:$.name,value:(0,g.Z)((0,g.Z)({},$),{},{listName:[Le.listName,ce,$.name].filter(function(De){return De!==void 0}).flat(1)})},$r)},or=function(J){var X=J.creatorButtonProps,ye=J.prefixCls,ae=J.children,We=J.creatorRecord,Ve=J.action,Ue=J.fields,oe=J.actionGuard,Y=J.max,xe=J.fieldExtraRender,ve=J.meta,Ie=(0,r.useRef)(new Map),Oe=(0,r.useState)(!1),er=(0,Fe.Z)(Oe,2),C=er[0],U=er[1],$=(0,r.useMemo)(function(){return Ue.map(function(ce){var me,j;if(!((me=Ie.current)===null||me===void 0?void 0:me.has(ce.key.toString()))){var ee;(ee=Ie.current)===null||ee===void 0||ee.set(ce.key.toString(),(0,pe.x)())}var K=(j=Ie.current)===null||j===void 0?void 0:j.get(ce.key.toString());return(0,g.Z)((0,g.Z)({},ce),{},{uuid:K})})},[Ue]),se=(0,r.useMemo)(function(){var ce=(0,g.Z)({},Ve),me=$.length;return(oe==null?void 0:oe.beforeAddRow)&&(ce.add=(0,E.Z)((0,M.Z)().mark(function j(){var ee,K,Le,re,Ce=arguments;return(0,M.Z)().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:for(ee=Ce.length,K=new Array(ee),Le=0;Le0&&arguments[0]!==void 0?arguments[0]:{},pe=He.children,Qe=He.Wrapper,je=(0,B.Z)(He,_);return N?D.createElement(S.Z,(0,L.Z)({gutter:8},M,je),pe):Qe?D.createElement(Qe,null,pe):pe},ColWrapper:function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},pe=He.children,Qe=He.Wrapper,je=(0,B.Z)(He,he),Be=(0,D.useMemo)(function(){var Ge=(0,h.Z)((0,h.Z)({},E),je);return typeof Ge.span=="undefined"&&typeof Ge.xs=="undefined"&&(Ge.xs=24),Ge},[je]);return N?D.createElement(R.Z,Be,pe):Qe?D.createElement(Qe,null,pe):pe}}},Pe=function(A){var N=(0,D.useMemo)(function(){return(0,v.Z)(A)==="object"?A:{grid:A}},[A]),M=(0,D.useContext)(p),E=M.grid,Fe=M.colProps;return(0,D.useMemo)(function(){return r({grid:!!(E||N.grid),rowProps:N==null?void 0:N.rowProps,colProps:(N==null?void 0:N.colProps)||Fe,Wrapper:N==null?void 0:N.Wrapper})},[N==null?void 0:N.Wrapper,N.grid,E,JSON.stringify([Fe,N==null?void 0:N.colProps,N==null?void 0:N.rowProps])])}},57863:function(Pr,ge,t){"use strict";t.d(ge,{oK:function(){return Le},ZP:function(){return qe},Go:function(){return se},YB:function(){return re}});var v=t(84305),i=t(75901),R=t(28991),h=t(11965),g=t(84378),S=t(67294),L=t(29405),B={moneySymbol:"$",form:{lightFilter:{more:"\u0627\u0644\u0645\u0632\u064A\u062F",clear:"\u0646\u0638\u0641",confirm:"\u062A\u0623\u0643\u064A\u062F",itemUnit:"\u0639\u0646\u0627\u0635\u0631"}},tableForm:{search:"\u0627\u0628\u062D\u062B",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",submit:"\u0627\u0631\u0633\u0627\u0644",collapsed:"\u0645\u064F\u0642\u0644\u0635",expand:"\u0645\u064F\u0648\u0633\u0639",inputPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062F\u062E\u0627\u0644",selectPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062E\u062A\u064A\u0627\u0631"},alert:{clear:"\u0646\u0638\u0641",selected:"\u0645\u062D\u062F\u062F",item:"\u0639\u0646\u0635\u0631"},pagination:{total:{range:" ",total:"\u0645\u0646",item:"\u0639\u0646\u0627\u0635\u0631"}},tableToolBar:{leftPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noPin:"\u0627\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u062B\u0628\u064A\u062A",leftFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noFixedTitle:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0644\u0635\u0627\u0642",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",columnDisplay:"\u0627\u0644\u0623\u0639\u0645\u062F\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629",columnSetting:"\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",fullScreen:"\u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",exitFullScreen:"\u0627\u0644\u062E\u0631\u0648\u062C \u0645\u0646 \u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",reload:"\u062A\u062D\u062F\u064A\u062B",density:"\u0627\u0644\u0643\u062B\u0627\u0641\u0629",densityDefault:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",densityLarger:"\u0623\u0643\u0628\u0631",densityMiddle:"\u0648\u0633\u0637",densitySmall:"\u0645\u062F\u0645\u062C"},stepsForm:{next:"\u0627\u0644\u062A\u0627\u0644\u064A",prev:"\u0627\u0644\u0633\u0627\u0628\u0642"},loginForm:{submitText:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644"}},D={moneySymbol:"\u20AC",tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col\xB7lapsar",inputPlaceholder:"Introdu\xEFu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitj\xE0",densitySmall:"Compacte"},stepsForm:{next:"Seg\xFCent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"}},_={moneySymbol:"\u20AC",form:{lightFilter:{more:"Mehr",clear:"Zur\xFCcksetzen",confirm:"Best\xE4tigen",itemUnit:"Eintr\xE4ge"}},tableForm:{search:"Suchen",reset:"Zur\xFCcksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte ausw\xE4hlen"},alert:{clear:"Zur\xFCcksetzen",selected:"Ausgew\xE4hlt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Eintr\xE4gen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zur\xFCcksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Gr\xF6\xDFer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Anmelden"}},he={moneySymbol:"\xA3",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},p={moneySymbol:"$",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},r={moneySymbol:"\u20AC",form:{lightFilter:{more:"M\xE1s",clear:"Limpiar",confirm:"Confirmar",itemsUnits:"Objetos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"art\xEDculos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3n",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar"}},switch:{open:"abrir",close:"cerrar"}},Pe={moneySymbol:"\u062A\u0648\u0645\u0627\u0646",form:{lightFilter:{more:"\u0628\u06CC\u0634\u062A\u0631",clear:"\u067E\u0627\u06A9 \u06A9\u0631\u062F\u0646",confirm:"\u062A\u0627\u06CC\u06CC\u062F",itemUnit:"\u0645\u0648\u0631\u062F"}},tableForm:{search:"\u062C\u0633\u062A\u062C\u0648",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",submit:"\u062A\u0627\u06CC\u06CC\u062F",collapsed:"\u0646\u0645\u0627\u06CC\u0634 \u0628\u06CC\u0634\u062A\u0631",expand:"\u0646\u0645\u0627\u06CC\u0634 \u06A9\u0645\u062A\u0631",inputPlaceholder:"\u067E\u06CC\u062F\u0627 \u06A9\u0646\u06CC\u062F",selectPlaceholder:"\u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F"},alert:{clear:"\u067E\u0627\u06A9 \u0633\u0627\u0632\u06CC",selected:"\u0627\u0646\u062A\u062E\u0627\u0628",item:"\u0645\u0648\u0631\u062F"},pagination:{total:{range:" ",total:"\u0627\u0632",item:"\u0645\u0648\u0631\u062F"}},tableToolBar:{leftPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0686\u067E",rightPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0631\u0627\u0633\u062A",noPin:"\u0633\u0646\u062C\u0627\u0642 \u0646\u0634\u062F\u0647",leftFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0686\u067E",rightFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0631\u0627\u0633\u062A",noFixedTitle:"\u0634\u0646\u0627\u0648\u0631",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",columnDisplay:"\u0646\u0645\u0627\u06CC\u0634 \u0647\u0645\u0647",columnSetting:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A",fullScreen:"\u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",exitFullScreen:"\u062E\u0631\u0648\u062C \u0627\u0632 \u062D\u0627\u0644\u062A \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",reload:"\u062A\u0627\u0632\u0647 \u0633\u0627\u0632\u06CC",density:"\u062A\u0631\u0627\u06A9\u0645",densityDefault:"\u067E\u06CC\u0634 \u0641\u0631\u0636",densityLarger:"\u0628\u0632\u0631\u06AF",densityMiddle:"\u0645\u062A\u0648\u0633\u0637",densitySmall:"\u06A9\u0648\u0686\u06A9"},stepsForm:{next:"\u0628\u0639\u062F\u06CC",prev:"\u0642\u0628\u0644\u06CC",submit:"\u0627\u062A\u0645\u0627\u0645"},loginForm:{submitText:"\u0648\u0631\u0648\u062F"},editableTable:{action:{save:"\u0630\u062E\u06CC\u0631\u0647",cancel:"\u0644\u063A\u0648",delete:"\u062D\u0630\u0641"}}},ue={moneySymbol:"\u20AC",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"R\xE9initialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"R\xE9duire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"S\xE9lectionner une valeur"},alert:{clear:"R\xE9initialiser",selected:"S\xE9lectionn\xE9",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"\xE9l\xE9ments"}},tableToolBar:{leftPin:"\xC9pingler \xE0 gauche",rightPin:"\xC9pingler \xE0 gauche",noPin:"Sans \xE9pingle",leftFixedTitle:"Fixer \xE0 gauche",rightFixedTitle:"Fixer \xE0 droite",noFixedTitle:"Non fix\xE9",reset:"R\xE9initialiser",columnDisplay:"Affichage colonne",columnSetting:"R\xE9glages",fullScreen:"Plein \xE9cran",exitFullScreen:"Quitter Plein \xE9cran",reload:"Rafraichir",density:"Densit\xE9",densityDefault:"Par d\xE9faut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Pr\xE9c\xE9dente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer"}}},A={moneySymbol:"kn",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretra\u017Ei",reset:"Poni\u0161ti",submit:"Potvrdi",collapsed:"Ra\u0161iri",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"O\u010Disti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prika\u010Di lijevo",rightPin:"Prika\u010Di desno",noPin:"Bez prika\u010Denja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Iza\u0111i iz punog zaslona",reload:"Ponovno u\u010Ditaj",density:"Veli\u010Dina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljede\u0107i",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obri\u0161i"}},switch:{open:"otvori",close:"zatvori"}},N={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"}},M={moneySymbol:"\u20AC",tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalit\xE0 schermo intero",exitFullScreen:"Esci da modalit\xE0 schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},loginForm:{submitText:"Accedi"}},E={moneySymbol:"\xA5",tableForm:{search:"\u691C\u7D22",reset:"\u30EA\u30BB\u30C3\u30C8",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u53CE\u7D0D",inputPlaceholder:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",selectPlaceholder:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},alert:{clear:"\u30AF\u30EA\u30A2",selected:"\u9078\u629E\u3057\u305F",item:"\u9805\u76EE"},pagination:{total:{range:"\u8A18\u4E8B",total:"/\u5408\u8A08",item:" "}},tableToolBar:{leftPin:"\u5DE6\u306B\u56FA\u5B9A",rightPin:"\u53F3\u306B\u56FA\u5B9A",noPin:"\u30AD\u30E3\u30F3\u30BB\u30EB",leftFixedTitle:"\u5DE6\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",rightFixedTitle:"\u53F3\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",noFixedTitle:"\u56FA\u5B9A\u3055\u308C\u3066\u306A\u3044\u9805\u76EE",reset:"\u30EA\u30BB\u30C3\u30C8",columnDisplay:"\u8868\u793A\u5217",columnSetting:"\u5217\u8868\u793A\u8A2D\u5B9A",fullScreen:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",exitFullScreen:"\u7D42\u4E86",reload:"\u66F4\u65B0",density:"\u884C\u9AD8",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D",densitySmall:"\u5C0F"},stepsForm:{next:"\u6B21\u306E\u30B9\u30C6\u30C3\u30D7",pre:"\u524D\u3078",submit:"\u9001\u4FE1"},loginForm:{submitText:"\u30ED\u30B0\u30A4\u30F3"}},Fe={moneySymbol:"\u20A9",form:{lightFilter:{more:"\uB354\uBCF4\uAE30",clear:"\uCDE8\uC18C",confirm:"\uD655\uC778",itemUnit:"\uAC74\uC218"}},tableForm:{search:"\uC870\uD68C",reset:"\uCD08\uAE30\uD654",submit:"\uC81C\uCD9C",collapsed:"\uD655\uC7A5",expand:"\uB2EB\uAE30",inputPlaceholder:"\uC785\uB825\uD574 \uC8FC\uC138\uC694",selectPlaceholder:"\uC120\uD0DD\uD574 \uC8FC\uC138\uC694"},alert:{clear:"\uCDE8\uC18C",selected:"\uC120\uD0DD",item:"\uAC74"},pagination:{total:{range:" ",total:"/ \uCD1D",item:"\uAC74"}},tableToolBar:{leftPin:"\uC67C\uCABD\uC73C\uB85C \uD540",rightPin:"\uC624\uB978\uCABD\uC73C\uB85C \uD540",noPin:"\uD540 \uC81C\uAC70",leftFixedTitle:"\uC67C\uCABD\uC73C\uB85C \uACE0\uC815",rightFixedTitle:"\uC624\uB978\uCABD\uC73C\uB85C \uACE0\uC815",noFixedTitle:"\uBE44\uACE0\uC815",reset:"\uCD08\uAE30\uD654",columnDisplay:"\uCEEC\uB7FC \uD45C\uC2DC",columnSetting:"\uC124\uC815",fullScreen:"\uC804\uCCB4 \uD654\uBA74",exitFullScreen:"\uC804\uCCB4 \uD654\uBA74 \uCDE8\uC18C",reload:"\uB2E4\uC2DC \uC77D\uAE30",density:"\uC5EC\uBC31",densityDefault:"\uAE30\uBCF8",densityLarger:"\uB9CE\uC740 \uC5EC\uBC31",densityMiddle:"\uC911\uAC04 \uC5EC\uBC31",densitySmall:"\uC881\uC740 \uC5EC\uBC31"},stepsForm:{next:"\uB2E4\uC74C",prev:"\uC774\uC804",submit:"\uC885\uB8CC"},loginForm:{submitText:"\uB85C\uADF8\uC778"},editableTable:{action:{save:"\uC800\uC7A5",cancel:"\uCDE8\uC18C",delete:"\uC0AD\uC81C"}}},He={moneySymbol:"\u20AE",form:{lightFilter:{more:"\u0418\u043B\u04AF\u04AF",clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",confirm:"\u0411\u0430\u0442\u0430\u043B\u0433\u0430\u0430\u0436\u0443\u0443\u043B\u0430\u0445",itemUnit:"\u041D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableForm:{search:"\u0425\u0430\u0439\u0445",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",submit:"\u0418\u043B\u0433\u044D\u044D\u0445",collapsed:"\u04E8\u0440\u0433\u04E9\u0442\u0433\u04E9\u0445",expand:"\u0425\u0443\u0440\u0430\u0430\u0445",inputPlaceholder:"\u0423\u0442\u0433\u0430 \u043E\u0440\u0443\u0443\u043B\u043D\u0430 \u0443\u0443",selectPlaceholder:"\u0423\u0442\u0433\u0430 \u0441\u043E\u043D\u0433\u043E\u043D\u043E \u0443\u0443"},alert:{clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",selected:"\u0421\u043E\u043D\u0433\u043E\u0433\u0434\u0441\u043E\u043D",item:"\u041D\u044D\u0433\u0436"},pagination:{total:{range:" ",total:"of",item:"\u043D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableToolBar:{leftPin:"\u0417\u04AF\u04AF\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",rightPin:"\u0411\u0430\u0440\u0443\u0443\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",noPin:"\u0411\u044D\u0445\u043B\u044D\u0445\u0433\u04AF\u0439",leftFixedTitle:"\u0417\u04AF\u04AF\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",rightFixedTitle:"\u0411\u0430\u0440\u0443\u0443\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",noFixedTitle:"\u0417\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445\u0433\u04AF\u0439",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",columnDisplay:"\u0411\u0430\u0433\u0430\u043D\u0430\u0430\u0440 \u0445\u0430\u0440\u0443\u0443\u043B\u0430\u0445",columnSetting:"\u0422\u043E\u0445\u0438\u0445\u0440\u0433\u043E\u043E",fullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446\u044D\u044D\u0440",exitFullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446 \u0446\u0443\u0446\u043B\u0430\u0445",reload:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",density:"\u0425\u044D\u043C\u0436\u044D\u044D",densityDefault:"\u0425\u044D\u0432\u0438\u0439\u043D",densityLarger:"\u0422\u043E\u043C",densityMiddle:"\u0414\u0443\u043D\u0434",densitySmall:"\u0416\u0438\u0436\u0438\u0433"},stepsForm:{next:"\u0414\u0430\u0440\u0430\u0430\u0445",prev:"\u04E8\u043C\u043D\u04E9\u0445",submit:"\u0414\u0443\u0443\u0441\u0433\u0430\u0445"},loginForm:{submitText:"\u041D\u044D\u0432\u0442\u0440\u044D\u0445"},editableTable:{action:{save:"\u0425\u0430\u0434\u0433\u0430\u043B\u0430\u0445",cancel:"\u0426\u0443\u0446\u043B\u0430\u0445",delete:"\u0423\u0441\u0442\u0433\u0430\u0445"}},switch:{open:"\u041D\u044D\u044D\u0445",close:"\u0425\u0430\u0430\u0445"}},pe={moneySymbol:"RM",tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},loginForm:{submitText:"Log Masuk"}},Qe={moneySymbol:"z\u0142",form:{lightFilter:{more:"Wi\u0119cej",clear:"Wyczy\u015B\u0107",confirm:"Potwierd\u017A",itemUnit:"Ilo\u015B\u0107"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierd\u017A",collapsed:"Poka\u017C wiecej",expand:"Poka\u017C mniej",inputPlaceholder:"Prosz\u0119 poda\u0107",selectPlaceholder:"Prosz\u0119 wybra\u0107"},alert:{clear:"Wyczy\u015B\u0107",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpis\xF3w"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypi\u0119te do lewej",rightFixedTitle:"Przypi\u0119te do prawej",noFixedTitle:"Nieprzypi\u0119te",reset:"Reset",columnDisplay:"Wy\u015Bwietlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pe\u0142en ekran",exitFullScreen:"Zamknij pe\u0142en ekran",reload:"Od\u015Bwie\u017C",density:"Odst\u0119p",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Zaloguj si\u0119"}},je={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"items"}},tableToolBar:{leftPin:"Fixar \xE0 esquerda",rightPin:"Fixar \xE0 direita",noPin:"Desfixado",leftFixedTitle:"Fixado \xE0 esquerda",rightFixedTitle:"Fixado \xE0 direita",noFixedTitle:"N\xE3o fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configura\xE7\xF5es",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padr\xE3o",densityLarger:"Largo",densityMiddle:"M\xE9dio",densitySmall:"Compacto"},stepsForm:{next:"Pr\xF3ximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar"}}},Be={moneySymbol:"\u20BD",form:{lightFilter:{more:"\u0415\u0449\u0435",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",confirm:"\u041E\u041A",itemUnit:"\u041F\u043E\u0437\u0438\u0446\u0438\u0438"}},tableForm:{search:"\u041D\u0430\u0439\u0442\u0438",reset:"\u0421\u0431\u0440\u043E\u0441",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",collapsed:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"},alert:{clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",selected:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},pagination:{total:{range:" ",total:"\u0438\u0437",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043B\u0435\u0432\u0430",rightPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043F\u0440\u0430\u0432\u0430",noPin:"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C",leftFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043B\u0435\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043F\u0440\u0430\u0432\u0430",noFixedTitle:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E",reset:"\u0421\u0431\u0440\u043E\u0441",columnDisplay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u043E\u043B\u0431\u0446\u0430",columnSetting:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",fullScreen:"\u041F\u043E\u043B\u043D\u044B\u0439 \u044D\u043A\u0440\u0430\u043D",exitFullScreen:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",reload:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",density:"\u0420\u0430\u0437\u043C\u0435\u0440",densityDefault:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",densityLarger:"\u0411\u043E\u043B\u044C\u0448\u043E\u0439",densityMiddle:"\u0421\u0440\u0435\u0434\u043D\u0438\u0439",densitySmall:"\u0421\u0436\u0430\u0442\u044B\u0439"},stepsForm:{next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C"},loginForm:{submitText:"\u0412\u0445\u043E\u0434"},editableTable:{action:{save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"}}},Ge={moneySymbol:"RSD",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Prona\u0111i",reset:"Resetuj",submit:"Po\u0161alji",collapsed:"Pro\u0161iri",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"O\u010Disti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zaka\u010Di levo",rightPin:"Zaka\u010Di desno",noPin:"Nije zaka\u010Deno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Pode\u0161avanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osve\u017Ei",density:"Veli\u010Dina",densityDefault:"Podrazumevana",densityLarger:"Ve\u0107a",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sa\u010Duvaj",cancel:"Poni\u0161ti",delete:"Obri\u0161i"}}},nr={moneySymbol:"\u20BA",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"\xD6\u011Feler"}},tableForm:{search:"Filtrele",reset:"S\u0131f\u0131rla",submit:"G\xF6nder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer girin",selectPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer se\xE7in"},alert:{clear:"Temizle",selected:"Se\xE7ili",item:"\xD6\u011Fe"},pagination:{total:{range:" ",total:"Toplam",item:"\xD6\u011Fe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sa\u011Fa sabitle",noPin:"Sabitlemeyi kald\u0131r",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sa\u011Fa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"S\u0131f\u0131rla",columnDisplay:"Kolon G\xF6r\xFCn\xFCm\xFC",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan \xC7\u0131k",reload:"Yenile",density:"Kal\u0131nl\u0131k",densityDefault:"Varsay\u0131lan",densityLarger:"B\xFCy\xFCk",densityMiddle:"Orta",densitySmall:"K\xFC\xE7\xFCk"},stepsForm:{next:"S\u0131radaki",prev:"\xD6nceki",submit:"G\xF6nder"},loginForm:{submitText:"Giri\u015F Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazge\xE7",delete:"Sil"}}},Xe={moneySymbol:"\u20AB",tableForm:{search:"T\xECm ki\u1EBFm",reset:"L\xE0m l\u1EA1i",submit:"G\u1EEDi \u0111i",collapsed:"M\u1EDF r\u1ED9ng",expand:"Thu g\u1ECDn",inputPlaceholder:"nh\u1EADp d\u1EEF li\u1EC7u",selectPlaceholder:"Vui l\xF2ng ch\u1ECDn"},alert:{clear:"X\xF3a",selected:"\u0111\xE3 ch\u1ECDn",item:"m\u1EE5c"},pagination:{total:{range:" ",total:"tr\xEAn",item:"m\u1EB7t h\xE0ng"}},tableToolBar:{leftPin:"Ghim tr\xE1i",rightPin:"Ghim ph\u1EA3i",noPin:"B\u1ECF ghim",leftFixedTitle:"C\u1ED1 \u0111\u1ECBnh tr\xE1i",rightFixedTitle:"C\u1ED1 \u0111\u1ECBnh ph\u1EA3i",noFixedTitle:"Ch\u01B0a c\u1ED1 \u0111\u1ECBnh",reset:"L\xE0m l\u1EA1i",columnDisplay:"C\u1ED9t hi\u1EC3n th\u1ECB",columnSetting:"C\u1EA5u h\xECnh",fullScreen:"Ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",exitFullScreen:"Tho\xE1t ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",reload:"L\xE0m m\u1EDBi",density:"M\u1EADt \u0111\u1ED9 hi\u1EC3n th\u1ECB",densityDefault:"M\u1EB7c \u0111\u1ECBnh",densityLarger:"M\u1EB7c \u0111\u1ECBnh",densityMiddle:"Trung b\xECnh",densitySmall:"Ch\u1EADt"},loginForm:{submitText:"\u0110\u0103ng nh\u1EADp"}},ar={moneySymbol:"\uFFE5",form:{lightFilter:{more:"\u66F4\u591A\u7B5B\u9009",clear:"\u6E05\u9664",confirm:"\u786E\u8BA4",itemUnit:"\u9879"}},tableForm:{search:"\u67E5\u8BE2",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u5F00",expand:"\u6536\u8D77",inputPlaceholder:"\u8BF7\u8F93\u5165",selectPlaceholder:"\u8BF7\u9009\u62E9"},alert:{clear:"\u53D6\u6D88\u9009\u62E9",selected:"\u5DF2\u9009\u62E9",item:"\u9879"},pagination:{total:{range:"\u7B2C",total:"\u6761/\u603B\u5171",item:"\u6761"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5728\u5217\u9996",rightPin:"\u56FA\u5B9A\u5728\u5217\u5C3E",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u4FA7",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u4FA7",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8BBE\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7D27\u51D1"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664"}},switch:{open:"\u6253\u5F00",close:"\u5173\u95ED"},loginForm:{submitText:"\u767B\u5F55"}},Sr={moneySymbol:"NT$",form:{lightFilter:{more:"\u66F4\u591A\u7BE9\u9078",clear:"\u6E05\u9664",confirm:"\u78BA\u8A8D",itemUnit:"\u9805"}},tableForm:{search:"\u67E5\u8A62",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u6536\u8D77",inputPlaceholder:"\u8ACB\u8F38\u5165",selectPlaceholder:"\u8ACB\u9078\u64C7"},alert:{clear:"\u53D6\u6D88\u9078\u64C7",selected:"\u5DF2\u9078\u64C7",item:"\u9805"},pagination:{total:{range:"\u7B2C",total:"\u689D/\u7E3D\u5171",item:"\u689D"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5230\u5DE6\u908A",rightPin:"\u56FA\u5B9A\u5230\u53F3\u908A",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u5074",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u5074",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8A2D\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8A8D",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7DCA\u6E4A"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664"}},switch:{open:"\u6253\u958B",close:"\u95DC\u9589"},loginForm:{submitText:"\u767B\u5165"}};function mr(Q,q,Ae){var Ze=q.replace(/\[(\d+)\]/g,".$1").split("."),Ee=Q,I=Ae,we=(0,h.Z)(Ze),br;try{for(we.s();!(br=we.n()).done;){var Je=br.value;if(I=Object(Ee)[Je],Ee=Object(Ee)[Je],I===void 0)return Ae}}catch(Or){we.e(Or)}finally{we.f()}return I}var de=function(q,Ae){return{getMessage:function(Ee,I){return mr(Ae,Ee,I)||I},locale:q}},fr=de("mn_MN",He),or=de("ar_EG",B),b=de("zh_CN",ar),T=de("en_US",p),ke=de("en_GB",he),ie=de("vi_VN",Xe),J=de("it_IT",M),X=de("ja_JP",E),ye=de("es_ES",r),ae=de("ca_ES",D),We=de("ru_RU",Be),Ve=de("sr_RS",Ge),Ue=de("ms_MY",pe),oe=de("zh_TW",Sr),Y=de("fr_FR",ue),xe=de("pt_BR",je),ve=de("ko_KR",Fe),Ie=de("id_ID",N),Oe=de("de_DE",_),er=de("fa_IR",Pe),C=de("tr_TR",nr),U=de("pl_PL",Qe),$=de("hr_",A),se={"mn-MN":fr,"ar-EG":or,"zh-CN":b,"en-US":T,"en-GB":ke,"vi-VN":ie,"it-IT":J,"ja-JP":X,"es-ES":ye,"ca-ES":ae,"ru-RU":We,"sr-RS":Ve,"ms-MY":Ue,"zh-TW":oe,"fr-FR":Y,"pt-BR":xe,"ko-KR":ve,"id-ID":Ie,"de-DE":Oe,"fa-IR":er,"tr-TR":C,"pl-PL":U,"hr-HR":$},Re=Object.keys(se),ce=S.createContext({intl:(0,R.Z)((0,R.Z)({},b),{},{locale:"default"}),valueTypeMap:{}}),me=ce.Consumer,j=ce.Provider,ee=function(q){if(!q)return"zh-CN";var Ae=q.toLocaleLowerCase();return Re.find(function(Ze){var Ee=Ze.toLocaleLowerCase();return Ee.includes(Ae)})},K=function(){var q=(0,L.kY)(),Ae=q.cache;return(0,S.useEffect)(function(){return function(){Ae.clear()}},[]),null},Le=function(q){var Ae=q.children,Ze=q.autoClearCache,Ee=Ze===void 0?!1:Ze,I=(0,S.useContext)(i.ZP.ConfigContext),we=I.locale,br=we===void 0?i.ZP:S.Fragment,Je=S.createElement(me,null,function(Or){var Ir,Ur=we==null?void 0:we.locale,Kr=ee(Ur),xr=Ur&&((Ir=Or.intl)===null||Ir===void 0?void 0:Ir.locale)==="default"?se[Kr]:Or.intl||se[Kr],Yr=we===void 0?{locale:g.Z}:{};return S.createElement(br,Yr,S.createElement(j,{value:(0,R.Z)((0,R.Z)({},Or),{},{intl:xr||b})},S.createElement(S.Fragment,null,Ee&&S.createElement(K,null),Ae)))});return Ee?S.createElement(L.J$,{value:{provider:function(){return new Map}}},Je):Je};function re(){var Q=(0,S.useContext)(i.ZP.ConfigContext),q=Q.locale,Ae=(0,S.useContext)(ce),Ze=Ae.intl;return Ze&&Ze.locale!=="default"?Ze:(q==null?void 0:q.locale)?se[ee(q.locale)]:b}var Ce=null,qe=ce},70724:function(Pr,ge,t){"use strict";var v=t(96156),i=t(84305),R=t(75901),h=t(54549),g=t(57254),S=t(57863),L=t(94184),B=t.n(L),D=t(67294),_=t(42327),he=t.n(_),p=function(Pe,ue){var A,N=Pe.label,M=Pe.onClear,E=Pe.value,Fe=Pe.size,He=Fe===void 0?"middle":Fe,pe=Pe.disabled,Qe=Pe.onLabelClick,je=Pe.ellipsis,Be=Pe.placeholder,Ge=Pe.className,nr=Pe.style,Xe=Pe.formatter,ar=Pe.bordered,Sr=Pe.allowClear,mr=Sr===void 0?!0:Sr,de=(0,D.useContext)(R.ZP.ConfigContext),fr=de.getPrefixCls,or=fr("pro-core-field-label"),b=(0,S.YB)(),T=(0,D.useRef)(null),ke=(0,D.useRef)(null);(0,D.useImperativeHandle)(ue,function(){return{labelRef:ke,clearRef:T}});var ie=function(ye){return Xe?Xe(ye):Array.isArray(ye)?ye.join(","):ye},J=function(ye,ae){if(ae!=null&&ae!==""&&(!Array.isArray(ae)||ae.length)){var We,Ve,Ue=ye?D.createElement("span",{onClick:Qe,className:"".concat(or,"-text")},ye,": "):"",oe=ie(ae);if(!je)return D.createElement("span",{style:{display:"inline-flex",alignItems:"center"}},Ue,ie(ae));var Y=function(){var Ie=Array.isArray(ae)&&ae.length>1,Oe=b.getMessage("form.lightFilter.itemUnit","\u9879");return typeof oe=="string"&&oe.length>32&&Ie?"...".concat(ae.length).concat(Oe):""},xe=Y();return D.createElement("span",{title:typeof oe=="string"?oe:void 0,style:{display:"inline-flex",alignItems:"center"}},Ue,D.createElement("span",{style:{paddingLeft:4}},typeof oe=="string"?oe==null||(We=oe.toString())===null||We===void 0||(Ve=We.substr)===null||Ve===void 0?void 0:Ve.call(We,0,32):oe),xe)}return ye||Be};return D.createElement("span",{className:B()(or,"".concat(or,"-").concat(He),(A={},(0,v.Z)(A,"".concat(or,"-active"),!!E||E===0),(0,v.Z)(A,"".concat(or,"-disabled"),pe),(0,v.Z)(A,"".concat(or,"-bordered"),ar),(0,v.Z)(A,"".concat(or,"-allow-clear"),mr),A),Ge),style:nr,ref:ke},J(N,E),(E||E===0)&&mr&&D.createElement(h.Z,{role:"button",title:"\u6E05\u9664",className:B()("".concat(or,"-icon"),"".concat(or,"-close")),onClick:function(ye){M&&!pe&&M(),ye.stopPropagation()},ref:T}),D.createElement(g.Z,{className:B()("".concat(or,"-icon"),"".concat(or,"-arrow"))}))};ge.Z=D.forwardRef(p)},66737:function(Pr,ge,t){"use strict";t.d(ge,{Z:function(){return ue}});var v=t(59250),i=t(13013),R=t(22122),h=t(84305),g=t(75901),S=t(67294),L=t(57663),B=t(71577),D=t(57863),_=t(36466),he=function(N){var M=(0,D.YB)(),E=N.onClear,Fe=N.onConfirm,He=N.disabled,pe=N.footerRender,Qe=(0,S.useContext)(g.ZP.ConfigContext),je=Qe.getPrefixCls,Be=je("pro-core-dropdown-footer"),Ge=[S.createElement(B.Z,{key:"clear",style:{visibility:E?"visible":"hidden"},type:"link",size:"small",disabled:He,onClick:function(ar){E&&E(ar),ar.stopPropagation()}},M.getMessage("form.lightFilter.clear","\u6E05\u9664")),S.createElement(B.Z,{key:"confirm","data-type":"confirm",type:"primary",size:"small",onClick:Fe,disabled:He},M.getMessage("form.lightFilter.confirm","\u786E\u8BA4"))];if(pe===!1||(pe==null?void 0:pe(Fe,E))===!1)return null;var nr=(pe==null?void 0:pe(Fe,E))||Ge;return S.createElement("div",{className:Be,onClick:function(ar){return ar.target.getAttribute("data-type")!=="confirm"&&ar.stopPropagation()}},nr)},p=he,r=t(69903),Pe=function(N){var M=N.children,E=N.label,Fe=N.footer,He=N.disabled,pe=N.onVisibleChange,Qe=N.visible,je=N.footerRender,Be=N.placement,Ge=(0,S.useContext)(g.ZP.ConfigContext),nr=Ge.getPrefixCls,Xe=nr("pro-core-field-dropdown");return S.createElement(i.Z,{disabled:He,placement:Be,trigger:["click"],visible:Qe,onVisibleChange:pe,overlay:S.createElement("div",{className:"".concat(Xe,"-overlay")},S.createElement("div",{className:"".concat(Xe,"-content")},M),Fe&&S.createElement(p,(0,R.Z)({disabled:He,footerRender:je},Fe)))},S.createElement("span",{className:"".concat(Xe,"-label")},E))},ue=Pe},60222:function(Pr,ge,t){"use strict";var v=t(67294),i=v.createContext({});ge.Z=i},78822:function(Pr,ge,t){"use strict";t.d(ge,{Cl:function(){return S}});var v=t(90484),i=t(30381),R=t.n(i),h=t(88306),g=t(53808),S={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-\\QQ",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function L(he){return Object.prototype.toString.call(he)==="[object Object]"}function B(he){if(L(he)===!1)return!1;var p=he.constructor;if(p===void 0)return!0;var r=p.prototype;return!(L(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)}var D=function(p,r,Pe){if(!r)return p;if(R().isMoment(p)){if(r==="number")return p.valueOf();if(r==="string")return p.format(S[Pe]||"YYYY-MM-DD HH:mm:ss");if(typeof r=="string"&&r!=="string")return p.format(r);if(typeof r=="function")return r(p,Pe)}return p},_=function he(p,r,Pe,ue,A){var N={};return typeof window=="undefined"||(0,v.Z)(p)!=="object"||(0,g.Z)(p)||p instanceof Blob||Array.isArray(p)?p:(Object.keys(p).forEach(function(M){var E=A?[A,M].flat(1):[M],Fe=(0,h.Z)(Pe,E)||"text",He="text",pe;typeof Fe=="string"?He=Fe:Fe&&(He=Fe.valueType,pe=Fe.dateFormat);var Qe=p[M];if(!((0,g.Z)(Qe)&&ue)){if(B(Qe)&&!Array.isArray(Qe)&&!R().isMoment(Qe)){N[M]=he(Qe,r,Pe,ue,[M]);return}if(Array.isArray(Qe)){N[M]=Qe.map(function(je,Be){return R().isMoment(je)?D(je,pe||r,He):he(je,r,Pe,ue,[M,"".concat(Be)])});return}N[M]=D(Qe,pe||r,He)}}),N)};ge.ZP=_},51617:function(Pr,ge,t){"use strict";var v=t(28481),i=t(30381),R=t.n(i),h=function(L,B){return typeof B=="function"?B(R()(L)):R()(L).format(B)},g=function(L,B){var D=Array.isArray(L)?L:[],_=(0,v.Z)(D,2),he=_[0],p=_[1],r,Pe;Array.isArray(B)?(r=B[0],Pe=B[1]):(r=B,Pe=B);var ue=he?h(he,r):"",A=p?h(p,Pe):"",N=ue&&A?"".concat(ue," ~ ").concat(A):"";return N};ge.Z=g},86402:function(Pr,ge,t){"use strict";var v=t(67294),i=function(h){var g=(0,v.useRef)(h);return g.current=h,g};ge.Z=i},91285:function(Pr,ge,t){"use strict";var v=t(67294),i=function(h){var g=(0,v.useRef)();return(0,v.useEffect)(function(){g.current=h}),g.current};ge.Z=i},1914:function(Pr,ge,t){"use strict";var v=t(11965),i=t(90484);function R(h,g,S,L){if(h===g)return!0;if(h&&g&&(0,i.Z)(h)==="object"&&(0,i.Z)(g)==="object"){if(h.constructor!==g.constructor)return!1;var B,D,_;if(Array.isArray(h)){if(B=h.length,B!=g.length)return!1;for(D=B;D--!=0;)if(!R(h[D],g[D],S,L))return!1;return!0}if(h instanceof Map&&g instanceof Map){if(h.size!==g.size)return!1;var he=(0,v.Z)(h.entries()),p;try{for(he.s();!(p=he.n()).done;)if(D=p.value,!g.has(D[0]))return!1}catch(M){he.e(M)}finally{he.f()}var r=(0,v.Z)(h.entries()),Pe;try{for(r.s();!(Pe=r.n()).done;)if(D=Pe.value,!R(D[1],g.get(D[0]),S,L))return!1}catch(M){r.e(M)}finally{r.f()}return!0}if(h instanceof Set&&g instanceof Set){if(h.size!==g.size)return!1;var ue=(0,v.Z)(h.entries()),A;try{for(ue.s();!(A=ue.n()).done;)if(D=A.value,!g.has(D[0]))return!1}catch(M){ue.e(M)}finally{ue.f()}return!0}if(ArrayBuffer.isView(h)&&ArrayBuffer.isView(g)){if(B=h.length,B!=g.length)return!1;for(D=B;D--!=0;)if(h[D]!==g[D])return!1;return!0}if(h.constructor===RegExp)return h.source===g.source&&h.flags===g.flags;if(h.valueOf!==Object.prototype.valueOf&&h.valueOf)return h.valueOf()===g.valueOf();if(h.toString!==Object.prototype.toString&&h.toString)return h.toString()===g.toString();if(_=Object.keys(h),B=_.length,B!==Object.keys(g).length)return!1;for(D=B;D--!=0;)if(!Object.prototype.hasOwnProperty.call(g,_[D]))return!1;for(D=B;D--!=0;){var N=_[D];if(!(S==null?void 0:S.includes(N))&&!(N==="_owner"&&h.$$typeof)&&!R(h[N],g[N],S,L))return L&&console.log(N),!1}return!0}return h!==h&&g!==g}ge.Z=R},53808:function(Pr,ge){"use strict";var t=function(i){return i==null};ge.Z=t},48531:function(Pr,ge,t){"use strict";t.d(ge,{T:function(){return R}});var v=t(28991),i=t(90484),R=function(){for(var g={},S=arguments.length,L=new Array(S),B=0;B0&&arguments[0]!==void 0?arguments[0]:21;if(!window.crypto)return(v+=1).toFixed(0);for(var S="",L=crypto.getRandomValues(new Uint8Array(g));g--;){var B=63&L[g];S+=B<36?B.toString(36):B<62?(B-26).toString(36).toUpperCase():B<63?"_":"-"}return S},R=function(){return typeof window=="undefined"?i():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():i()}},37004:function(Pr,ge){"use strict";var t=function(i){var R={};if(Object.keys(i||{}).forEach(function(h){i[h]!==void 0&&(R[h]=i[h])}),!(Object.keys(R).length<1))return R};ge.Z=t},96202:function(Pr,ge,t){"use strict";t.d(ge,{h:function(){return v}});function v(i){if(typeof i=="function"){for(var R=arguments.length,h=new Array(R>1?R-1:0),g=1;gL?Ut=1:Ut=Math.round(Xe*100/L)/100,u.a!==Ut)return{h:u.h,s:u.s,l:u.l,a:Ut,source:"rgb"}}else{var Vt;if(ge<0?Vt=0:ge>D?Vt=1:Vt=Math.round(ge*100/D)/100,C!==Vt)return{h:u.h,s:u.s,l:u.l,a:Vt,source:"rgb"}}return null},g={},P=function(t,u,o,C){if(typeof document=="undefined"&&!C)return null;var w=C?new C:document.createElement("canvas");w.width=o*2,w.height=o*2;var D=w.getContext("2d");return D?(D.fillStyle=t,D.fillRect(0,0,w.width,w.height),D.fillStyle=u,D.fillRect(0,0,o,o),D.translate(o,o),D.fillRect(0,0,o,o),w.toDataURL()):null},p=function(t,u,o,C){var w="".concat(t,"-").concat(u,"-").concat(o).concat(C?"-server":"");if(g[w])return g[w];var D=P(t,u,o,C);return g[w]=D,D};function O(r,t){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter(function(C){return Object.getOwnPropertyDescriptor(r,C).enumerable})),u.push.apply(u,o)}return u}function f(r){for(var t=1;tD)Xe=0;else{var Ut=-(ge*100/D)+100;Xe=360*Ut/100}if(o.h!==Xe)return{h:Xe,s:o.s,l:o.l,a:o.a,source:"hsl"}}else{var Vt;if(ye<0)Vt=0;else if(ye>w)Vt=359;else{var ln=ye*100/w;Vt=360*ln/100}if(o.h!==Vt)return{h:Vt,s:o.s,l:o.l,a:o.a,source:"hsl"}}return null};function A(r){return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(r)}function J(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function U(r,t){for(var u=0;uw&&(ye=w),ge<0?ge=0:ge>D&&(ge=D);var Xe=ye/w,Ut=1-ge/D;return{h:u.h,s:Xe,v:Ut,a:u.a,source:"hsv"}};function nt(r){return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(r)}function Bt(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(r,t){for(var u=0;u=128?"#000":"#fff"},Dt={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},he=function(t,u){var o=t.replace("\xB0","");return tinycolor("".concat(u," (").concat(o,")"))._ok};function d(r){return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(r)}function R(){return R=Object.assign||function(r){for(var t=1;t-1},ft=function(t){return Number(String(t).replace(/%/g,""))},dt=1,_e=function(r){ue(u,r);var t=le(u);function u(o){var C;return Y(this,u),C=t.call(this),C.handleBlur=function(){C.state.blurValue&&C.setState({value:C.state.blurValue,blurValue:null})},C.handleChange=function(w){C.setUpdatedValue(w.target.value,w)},C.handleKeyDown=function(w){var D=ft(w.target.value);if(!isNaN(D)&&Fe(w.keyCode)){var L=C.getArrowOffset(),oe=w.keyCode===pe?D+L:D-L;C.setUpdatedValue(oe,w)}},C.handleDrag=function(w){if(C.props.dragLabel){var D=Math.round(C.props.value+w.movementX);D>=0&&D<=C.props.dragMax&&C.props.onChange&&C.props.onChange(C.getValueObjectWithLabel(D),w)}},C.handleMouseDown=function(w){C.props.dragLabel&&(w.preventDefault(),C.handleDrag(w),window.addEventListener("mousemove",C.handleDrag),window.addEventListener("mouseup",C.handleMouseUp))},C.handleMouseUp=function(){C.unbindEventListeners()},C.unbindEventListeners=function(){window.removeEventListener("mousemove",C.handleDrag),window.removeEventListener("mouseup",C.handleMouseUp)},C.state={value:String(o.value).toUpperCase(),blurValue:String(o.value).toUpperCase()},C.inputId="rc-editable-input-".concat(dt++),C}return ve(u,[{key:"componentDidUpdate",value:function(C,w){this.props.value!==this.state.value&&(C.value!==this.props.value||w.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(C){return je({},this.props.label,C)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Ze}},{key:"setUpdatedValue",value:function(C,w){var D=this.props.label?this.getValueObjectWithLabel(C):C;this.props.onChange&&this.props.onChange(D,w),this.setState({value:C})}},{key:"render",value:function(){var C=this,w=(0,v.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return c.createElement("div",{style:w.wrap},c.createElement("input",{id:this.inputId,style:w.input,ref:function(L){return C.input=L},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?c.createElement("label",{htmlFor:this.inputId,style:w.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),u}(c.PureComponent||c.Component),vt=_e;function rt(r){return rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rt(r)}function ot(){return ot=Object.assign||function(r){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){Te(w,o);var C=Ke(w);function w(){var D;yt(this,w);for(var L=arguments.length,oe=new Array(L),ye=0;ye100&&(ge.a=100),ge.a/=100,u==null||u({h:C==null?void 0:C.h,s:C==null?void 0:C.s,l:C==null?void 0:C.l,a:ge.a,source:"rgb"},Xe))};return c.createElement("div",{style:L.fields,className:"flexbox-fix"},c.createElement("div",{style:L.double},c.createElement(vt,{style:{input:L.input,label:L.label},label:"hex",value:w==null?void 0:w.replace("#",""),onChange:oe})),c.createElement("div",{style:L.single},c.createElement(vt,{style:{input:L.input,label:L.label},label:"r",value:o==null?void 0:o.r,onChange:oe,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:L.single},c.createElement(vt,{style:{input:L.input,label:L.label},label:"g",value:o==null?void 0:o.g,onChange:oe,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:L.single},c.createElement(vt,{style:{input:L.input,label:L.label},label:"b",value:o==null?void 0:o.b,onChange:oe,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:L.alpha},c.createElement(vt,{style:{input:L.input,label:L.label},label:"a",value:Math.round(((o==null?void 0:o.a)||0)*100),onChange:oe,dragLabel:"true",dragMax:"100"})))},Gt=Qe;function At(r,t){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter(function(C){return Object.getOwnPropertyDescriptor(r,C).enumerable})),u.push.apply(u,o)}return u}function tn(r){for(var t=1;tR.offsetHeight&&R.scrollTo({top:i+d.offsetHeight-R.offsetHeight})}}function It(d,R,i){var y=new Set(d),x=R();return d.filter(function(E){var N=x[E],k=N?N.parent:null,j=N?N.children:null;return i===ut?!(j&&j.some(function(T){return T.key&&y.has(T.key)})):!(k&&!k.node.disabled&&y.has(k.key))})}function gt(d,R,i){for(var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,x=R,E=[],N=function(T){var W,G,q,me=d[T],ae=(W=x)===null||W===void 0?void 0:W.findIndex(function(fe){var Pe=fe[i.value];return y?String(Pe)===String(me):Pe===me}),_=ae!==-1?(G=x)===null||G===void 0?void 0:G[ae]:null;E.push({value:(q=_==null?void 0:_[i.value])!==null&&q!==void 0?q:me,index:ae,option:_}),x=_==null?void 0:_[i.children]},k=0;k0&&me.length>=G)){var je=[].concat((0,b.Z)(fe),[Pe]),Y=Pe[i.children];if((!Y||Y.length===0||E)&&k(d,je,{label:i.label})){var Ue;me.push((0,Q.Z)((0,Q.Z)({},Pe),{},(Ue={},(0,v.Z)(Ue,i.label,T(d,je,y,i)),(0,v.Z)(Ue,Nt,je),Ue)))}Y&&ae(Pe[i.children],je)}})}return ae(R,[]),q&&me.sort(function(_,fe){return q(_[Nt],fe[Nt],d,i)}),G>0?me.slice(0,G):me},[d,R,i,y,T,E,k,q,G])},U="__cascader_fix_label__";function B(d){var R=d.prefixCls,i=d.multiple,y=d.options,x=d.activeValue,E=d.prevValuePath,N=d.onToggleOpen,k=d.onSelect,j=d.onActive,T=d.checkedSet,W=d.halfCheckedSet,G=d.loadingKeys,q=d.isSelectable,me="".concat(R,"-menu"),ae="".concat(R,"-menu-item"),_=h.useContext(ie),fe=_.fieldNames,Pe=_.changeOnSelect,je=_.expandTrigger,Y=_.expandIcon,Ue=_.loadingIcon,ve=_.dropdownMenuColumnStyle,ue=je==="hover",Ee=h.useMemo(function(){return y.map(function(le){var Re,De=le.disabled,Ae=le[Nt],Ge=(Re=le[U])!==null&&Re!==void 0?Re:le[fe.label],Ze=le[fe.value],pe=Mt(le,fe),qe=Ae?Ae.map(function(_e){return _e[fe.value]}):[].concat((0,b.Z)(E),[Ze]),ke=Be(qe),Fe=G.includes(ke),ft=T.has(ke),dt=W.has(ke);return{disabled:De,label:Ge,value:Ze,isLeaf:pe,isLoading:Fe,checked:ft,halfChecked:dt,option:le,fullPath:qe,fullPathKey:ke}})},[y,T,fe,W,G,E]);return h.createElement("ul",{className:me,role:"menu"},Ee.map(function(le){var Re,De=le.disabled,Ae=le.label,Ge=le.value,Ze=le.isLeaf,pe=le.isLoading,qe=le.checked,ke=le.halfChecked,Fe=le.option,ft=le.fullPath,dt=le.fullPathKey,_e=function(){!De&&(!ue||!Ze)&&j(ft)},vt=function(){q(Fe)&&k(ft,Ze)},rt;return typeof Fe.title=="string"?rt=Fe.title:typeof Ae=="string"&&(rt=Ae),h.createElement("li",{key:dt,className:P()(ae,(Re={},(0,v.Z)(Re,"".concat(ae,"-expand"),!Ze),(0,v.Z)(Re,"".concat(ae,"-active"),x===Ge),(0,v.Z)(Re,"".concat(ae,"-disabled"),De),(0,v.Z)(Re,"".concat(ae,"-loading"),pe),Re)),style:ve,role:"menuitemcheckbox",title:rt,"aria-checked":qe,"data-path-key":dt,onClick:function(){_e(),(!i||Ze)&&vt()},onDoubleClick:function(){Pe&&N(!1)},onMouseEnter:function(){ue&&_e()},onMouseDown:function(yt){yt.preventDefault()}},i&&h.createElement(Kt,{prefixCls:"".concat(R,"-checkbox"),checked:qe,halfChecked:ke,disabled:De,onClick:function(yt){yt.stopPropagation(),vt()}}),h.createElement("div",{className:"".concat(ae,"-content")},Ae),!pe&&Y&&!Ze&&h.createElement("div",{className:"".concat(ae,"-expand-icon")},Y),pe&&Ue&&h.createElement("div",{className:"".concat(ae,"-loading-icon")},Ue))}))}var M=function(){var d=(0,K.lk)(),R=d.multiple,i=d.open,y=h.useContext(ie),x=y.values,E=h.useState([]),N=(0,p.Z)(E,2),k=N[0],j=N[1];return h.useEffect(function(){if(i&&!R){var T=x[0];j(T||[])}},[i]),[k,j]},$=e(15105),F=function(d,R,i,y,x,E){var N=(0,K.lk)(),k=N.direction,j=N.searchValue,T=N.toggleOpen,W=N.open,G=k==="rtl",q=h.useMemo(function(){for(var ve=-1,ue=R,Ee=[],le=[],Re=y.length,De=function(ke){var Fe=ue.findIndex(function(ft){return ft[i.value]===y[ke]});if(Fe===-1)return"break";ve=Fe,Ee.push(ve),le.push(y[ke]),ue=ue[ve][i.children]},Ae=0;Ae1){var ue=ae.slice(0,-1);Pe(ue)}else T(!1)},Ue=function(){var ue,Ee=((ue=fe[_])===null||ue===void 0?void 0:ue[i.children])||[],le=Ee.find(function(De){return!De.disabled});if(le){var Re=[].concat((0,b.Z)(ae),[le[i.value]]);Pe(Re)}};h.useImperativeHandle(d,function(){return{onKeyDown:function(ue){var Ee=ue.which;switch(Ee){case $.Z.UP:case $.Z.DOWN:{var le=0;Ee===$.Z.UP?le=-1:Ee===$.Z.DOWN&&(le=1),le!==0&&je(le);break}case $.Z.LEFT:{G?Ue():Y();break}case $.Z.RIGHT:{G?Y():Ue();break}case $.Z.BACKSPACE:{j||Y();break}case $.Z.ENTER:{if(ae.length){var Re=fe[_],De=(Re==null?void 0:Re[Nt])||[];De.length?E(De.map(function(Ae){return Ae[i.value]}),De[De.length-1]):E(ae,fe[_])}break}case $.Z.ESC:T(!1),W&&ue.stopPropagation()}},onKeyUp:function(){}}})},ne=h.forwardRef(function(d,R){var i,y,x,E,N=(0,K.lk)(),k=N.prefixCls,j=N.multiple,T=N.searchValue,W=N.toggleOpen,G=N.notFoundContent,q=N.direction,me=h.useRef(),ae=q==="rtl",_=h.useContext(ie),fe=_.options,Pe=_.values,je=_.halfValues,Y=_.fieldNames,Ue=_.changeOnSelect,ve=_.onSelect,ue=_.searchOptions,Ee=_.dropdownPrefixCls,le=_.loadData,Re=_.expandTrigger,De=Ee||k,Ae=h.useState([]),Ge=(0,p.Z)(Ae,2),Ze=Ge[0],pe=Ge[1],qe=function(Me){if(!(!le||T)){var Je=gt(Me,fe,Y),ee=Je.map(function(we){var st=we.option;return st}),te=ee[ee.length-1];if(te&&!Mt(te,Y)){var Oe=Be(Me);pe(function(we){return[].concat((0,b.Z)(we),[Oe])}),le(ee)}}};h.useEffect(function(){Ze.length&&Ze.forEach(function(Le){var Me=Ot(Le),Je=gt(Me,fe,Y,!0).map(function(te){var Oe=te.option;return Oe}),ee=Je[Je.length-1];(!ee||ee[Y.children]||Mt(ee,Y))&&pe(function(te){return te.filter(function(Oe){return Oe!==Le})})})},[fe,Ze,Y]);var ke=h.useMemo(function(){return new Set(Zt(Pe))},[Pe]),Fe=h.useMemo(function(){return new Set(Zt(je))},[je]),ft=M(),dt=(0,p.Z)(ft,2),_e=dt[0],vt=dt[1],rt=function(Me){vt(Me),qe(Me)},ot=function(Me){var Je=Me.disabled,ee=Mt(Me,Y);return!Je&&(ee||Ue||j)},yt=function(Me,Je){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ve(Me),!j&&(Je||Ue&&(Re==="hover"||ee))&&W(!1)},We=h.useMemo(function(){return T?ue:fe},[T,ue,fe]),Ve=h.useMemo(function(){for(var Le=[{options:We}],Me=We,Je=function(we){var st=_e[we],it=Me.find(function(Gt){return Gt[Y.value]===st}),Qe=it==null?void 0:it[Y.children];if(!(Qe==null?void 0:Qe.length))return"break";Me=Qe,Le.push({options:Qe})},ee=0;ee<_e.length;ee+=1){var te=Je(ee);if(te==="break")break}return Le},[We,_e,Y]),Te=function(Me,Je){ot(Je)&&yt(Me,Mt(Je,Y),!0)};F(R,We,Y,_e,rt,Te),h.useEffect(function(){for(var Le=0;Le<_e.length;Le+=1){var Me,Je=_e.slice(0,Le+1),ee=Be(Je),te=(Me=me.current)===null||Me===void 0?void 0:Me.querySelector('li[data-path-key="'.concat(ee.replace(/\\{0,2}"/g,'\\"'),'"]'));te&&_t(te)}},[_e]);var et=!((i=Ve[0])===null||i===void 0||(y=i.options)===null||y===void 0?void 0:y.length),Ke=[(x={},(0,v.Z)(x,Y.value,"__EMPTY__"),(0,v.Z)(x,U,G),(0,v.Z)(x,"disabled",!0),x)],bt=(0,Q.Z)((0,Q.Z)({},d),{},{multiple:!et&&j,onSelect:yt,onActive:rt,onToggleOpen:W,checkedSet:ke,halfCheckedSet:Fe,loadingKeys:Ze,isSelectable:ot}),mt=et?[{options:Ke}]:Ve,kt=mt.map(function(Le,Me){var Je=_e.slice(0,Me),ee=_e[Me];return h.createElement(B,(0,c.Z)({key:Me},bt,{prefixCls:De,options:Le.options,prevValuePath:Je,activeValue:ee}))});return h.createElement("div",{className:P()("".concat(De,"-menus"),(E={},(0,v.Z)(E,"".concat(De,"-menu-empty"),et),(0,v.Z)(E,"".concat(De,"-rtl"),ae),E)),ref:me},kt)}),re=ne,Ce=function(d,R,i,y,x){return h.useMemo(function(){var E=x||function(N){var k=y?N.slice(-1):N,j=" / ";return k.every(function(T){return["string","number"].includes((0,s.Z)(T))})?k.join(j):k.reduce(function(T,W,G){var q=h.isValidElement(W)?h.cloneElement(W,{key:G}):W;return G===0?[q]:[].concat((0,b.Z)(T),[j,q])},[])};return d.map(function(N){var k=gt(N,R,i),j=E(k.map(function(W){var G,q=W.option,me=W.value;return(G=q==null?void 0:q[i.label])!==null&&G!==void 0?G:me}),k.map(function(W){var G=W.option;return G})),T=Be(N);return{label:j,value:T,key:T,valueCells:N}})},[d,R,i,x,y])};function de(d){var R=h.useRef();R.current=d;var i=h.useCallback(function(){return R.current.apply(R,arguments)},[]);return i}var xe=e(1089),$e=function(d,R){var i=h.useRef({options:null,info:null}),y=h.useCallback(function(){return i.current.options!==d&&(i.current.options=d,i.current.info=(0,xe.I8)(d,{fieldNames:R,initWrapper:function(E){return(0,Q.Z)((0,Q.Z)({},E),{},{pathKeyEntities:{}})},processEntity:function(E,N){var k=E.nodes.map(function(j){return j[R.value]}).join(tt);N.pathKeyEntities[k]=E,E.key=k}})),i.current.info.pathKeyEntities},[R,d]);return y},ct=e(80334);function He(d){return h.useMemo(function(){if(!d)return[!1,{}];var R={matchInputWidth:!0,limit:50};return d&&(0,s.Z)(d)==="object"&&(R=(0,Q.Z)((0,Q.Z)({},R),d)),R.limit<=0&&delete R.limit,[!0,R]},[d])}var ze=function(d,R){return h.useCallback(function(i){var y=[],x=[];return i.forEach(function(E){var N=gt(E,d,R);N.every(function(k){return k.option})?x.push(E):y.push(E)}),[x,y]},[d,R])},nt=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function Bt(d){return Array.isArray(d)&&Array.isArray(d[0])}function Ht(d){return d?Bt(d)?d:(d.length===0?[]:[d]).map(function(R){return Array.isArray(R)?R:[R]}):[]}var l=h.forwardRef(function(d,R){var i=d.id,y=d.prefixCls,x=y===void 0?"rc-cascader":y,E=d.fieldNames,N=d.defaultValue,k=d.value,j=d.changeOnSelect,T=d.onChange,W=d.displayRender,G=d.checkable,q=d.searchValue,me=d.onSearch,ae=d.showSearch,_=d.expandTrigger,fe=d.options,Pe=d.dropdownPrefixCls,je=d.loadData,Y=d.popupVisible,Ue=d.open,ve=d.popupClassName,ue=d.dropdownClassName,Ee=d.dropdownMenuColumnStyle,le=d.popupPlacement,Re=d.placement,De=d.onDropdownVisibleChange,Ae=d.onPopupVisibleChange,Ge=d.expandIcon,Ze=Ge===void 0?">":Ge,pe=d.loadingIcon,qe=d.children,ke=d.dropdownMatchSelectWidth,Fe=ke===void 0?!1:ke,ft=d.showCheckedStrategy,dt=ft===void 0?at:ft,_e=(0,O.Z)(d,nt),vt=(0,f.ZP)(i),rt=!!G,ot=(0,H.Z)(N,{value:k,postState:Ht}),yt=(0,p.Z)(ot,2),We=yt[0],Ve=yt[1],Te=h.useMemo(function(){return Pt(E)},[JSON.stringify(E)]),et=h.useMemo(function(){return fe||[]},[fe]),Ke=$e(et,Te),bt=h.useCallback(function(w){var D=Ke();return w.map(function(L){var oe=D[L].nodes;return oe.map(function(ye){return ye[Te.value]})})},[Ke,Te]),mt=(0,H.Z)("",{value:q,postState:function(D){return D||""}}),kt=(0,p.Z)(mt,2),Le=kt[0],Me=kt[1],Je=function(D,L){Me(D),L.source!=="blur"&&me&&me(D)},ee=He(ae),te=(0,p.Z)(ee,2),Oe=te[0],we=te[1],st=J(Le,et,Te,Pe||x,we,j),it=ze(et,Te),Qe=h.useMemo(function(){var w=it(We),D=(0,p.Z)(w,2),L=D[0],oe=D[1];if(!rt||!We.length)return[L,[],oe];var ye=Zt(L),ge=Ke(),Xe=(0,z.S)(ye,!0,ge),Ut=Xe.checkedKeys,Vt=Xe.halfCheckedKeys;return[bt(Ut),bt(Vt),oe]},[rt,We,Ke,bt,it]),Gt=(0,p.Z)(Qe,3),At=Gt[0],tn=Gt[1],Ct=Gt[2],Tt=h.useMemo(function(){var w=Zt(At),D=It(w,Ke,dt);return[].concat((0,b.Z)(Ct),(0,b.Z)(bt(D)))},[At,Ke,bt,Ct,dt]),Qt=Ce(Tt,et,Te,rt,W),Lt=de(function(w){if(Ve(w),T){var D=Ht(w),L=D.map(function(ge){return gt(ge,et,Te).map(function(Xe){return Xe.option})}),oe=rt?D:D[0],ye=rt?L:L[0];T(oe,ye)}}),wt=de(function(w){if(Me(""),!rt)Lt(w);else{var D=Be(w),L=Zt(At),oe=Zt(tn),ye=L.includes(D),ge=Ct.some(function(un){return Be(un)===D}),Xe=At,Ut=Ct;if(ge&&!ye)Ut=Ct.filter(function(un){return Be(un)!==D});else{var Vt=ye?L.filter(function(un){return un!==D}):[].concat((0,b.Z)(L),[D]),ln=Ke(),on;if(ye){var qt=(0,z.S)(Vt,{checked:!1,halfCheckedKeys:oe},ln);on=qt.checkedKeys}else{var gn=(0,z.S)(Vt,!0,ln);on=gn.checkedKeys}var pn=It(on,Ke,dt);Xe=bt(pn)}Lt([].concat((0,b.Z)(Ut),(0,b.Z)(Xe)))}}),Yt=function(D,L){if(L.type==="clear"){Lt([]);return}var oe=L.values[0].valueCells;wt(oe)},an=Ue!==void 0?Ue:Y,lt=ue||ve,r=Re||le,t=function(D){De==null||De(D),Ae==null||Ae(D)},u=h.useMemo(function(){return{options:et,fieldNames:Te,values:At,halfValues:tn,changeOnSelect:j,onSelect:wt,checkable:G,searchOptions:st,dropdownPrefixCls:Pe,loadData:je,expandTrigger:_,expandIcon:Ze,loadingIcon:pe,dropdownMenuColumnStyle:Ee}},[et,Te,At,tn,j,wt,G,st,Pe,je,_,Ze,pe,Ee]),o=!(Le?st:et).length,C=Le&&we.matchInputWidth||o?{}:{minWidth:"auto"};return h.createElement(ie.Provider,{value:u},h.createElement(K.Ac,(0,c.Z)({},_e,{ref:R,id:vt,prefixCls:x,dropdownMatchSelectWidth:Fe,dropdownStyle:C,displayValues:Qt,onDisplayValuesChange:Yt,mode:rt?"multiple":void 0,searchValue:Le,onSearch:Je,showSearch:Oe,OptionList:re,emptyOptions:o,open:an,dropdownClassName:lt,placement:r,onDropdownVisibleChange:t,getRawInputElement:function(){return qe}})))});l.SHOW_PARENT=at,l.SHOW_CHILD=ut;var a=l,n=a,m=e(98423),S=e(8812),I=e(7085),X=e(67724),se=e(53124),ce=e(88258),Se=e(97647),Ie=e(98866),be=e(46163),Ye=e(33603),pt=e(65223),jt=e(9708),ht=function(d,R){var i={};for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&R.indexOf(y)<0&&(i[y]=d[y]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(d);xi){if(d>0)return(0,h.Z)({},he,x);if(d<0&&yi)return(0,h.Z)({},he,d<0?x:-x);return{}}function Be(he,d,R,i){var y=(0,z.g1)(),x=y.width,E=y.height,N=null;return he<=x&&d<=E?N={x:0,y:0}:(he>x||d>E)&&(N=(0,b.Z)((0,b.Z)({},ut("x",R,he,x)),ut("y",i,d,E))),N}var Zt=["visible","onVisibleChange","getContainer","current","countRender"],Ot=p.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),Pt=Ot.Provider,Mt=function(d){var R=d.previewPrefixCls,i=R===void 0?"rc-image-preview":R,y=d.children,x=d.icons,E=x===void 0?{}:x,N=d.preview,k=(0,v.Z)(N)==="object"?N:{},j=k.visible,T=j===void 0?void 0:j,W=k.onVisibleChange,G=W===void 0?void 0:W,q=k.getContainer,me=q===void 0?void 0:q,ae=k.current,_=ae===void 0?0:ae,fe=k.countRender,Pe=fe===void 0?void 0:fe,je=(0,P.Z)(k,Zt),Y=(0,p.useState)(new Map),Ue=(0,g.Z)(Y,2),ve=Ue[0],ue=Ue[1],Ee=(0,p.useState)(),le=(0,g.Z)(Ee,2),Re=le[0],De=le[1],Ae=(0,H.Z)(!!T,{value:T,onChange:G}),Ge=(0,g.Z)(Ae,2),Ze=Ge[0],pe=Ge[1],qe=(0,p.useState)(null),ke=(0,g.Z)(qe,2),Fe=ke[0],ft=ke[1],dt=T!==void 0,_e=Array.from(ve.keys()),vt=_e[_],rt=new Map(Array.from(ve).filter(function(We){var Ve=(0,g.Z)(We,2),Te=Ve[1].canPreview;return!!Te}).map(function(We){var Ve=(0,g.Z)(We,2),Te=Ve[0],et=Ve[1].url;return[Te,et]})),ot=function(Ve,Te){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,Ke=function(){ue(function(mt){var kt=new Map(mt),Le=kt.delete(Ve);return Le?kt:mt})};return ue(function(bt){return new Map(bt).set(Ve,{url:Te,canPreview:et})}),Ke},yt=function(Ve){Ve.stopPropagation(),pe(!1),ft(null)};return p.useEffect(function(){De(vt)},[vt]),p.useEffect(function(){!Ze&&dt&&De(vt)},[vt,dt,Ze]),p.createElement(Pt,{value:{isPreviewGroup:!0,previewUrls:rt,setPreviewUrls:ue,current:Re,setCurrent:De,setShowPreview:pe,setMousePosition:ft,registerImage:ot}},y,p.createElement(B,(0,c.Z)({"aria-hidden":!Ze,visible:Ze,prefixCls:i,onClose:yt,mousePosition:Fe,src:rt.get(Re),icons:E,getContainer:me,countRender:Pe},je)))},_t=Mt,It=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","countRender"],gt=p.useState,Kt=p.useEffect,Nt=p.useCallback,Jt=p.useRef,A=p.useContext,J={x:0,y:0},U=function(d){var R,i=d.prefixCls,y=d.src,x=d.alt,E=d.onClose,N=d.afterClose,k=d.visible,j=d.icons,T=j===void 0?{}:j,W=d.rootClassName,G=d.countRender,q=(0,P.Z)(d,It),me=T.rotateLeft,ae=T.rotateRight,_=T.zoomIn,fe=T.zoomOut,Pe=T.close,je=T.left,Y=T.right,Ue=gt(1),ve=(0,g.Z)(Ue,2),ue=ve[0],Ee=ve[1],le=gt(0),Re=(0,g.Z)(le,2),De=Re[0],Ae=Re[1],Ge=at(J),Ze=(0,g.Z)(Ge,2),pe=Ze[0],qe=Ze[1],ke=Jt(),Fe=Jt({originX:0,originY:0,deltaX:0,deltaY:0}),ft=gt(!1),dt=(0,g.Z)(ft,2),_e=dt[0],vt=dt[1],rt=A(Ot),ot=rt.previewUrls,yt=rt.current,We=rt.isPreviewGroup,Ve=rt.setCurrent,Te=ot.size,et=Array.from(ot.keys()),Ke=et.indexOf(yt),bt=We?ot.get(yt):y,mt=We&&Te>1,kt=gt({wheelDirection:0}),Le=(0,g.Z)(kt,2),Me=Le[0],Je=Le[1],ee=function(){Ee(1),Ae(0),qe(J)},te=function(){Ee(function(r){return r+1}),qe(J)},Oe=function(){ue>1&&Ee(function(r){return r-1}),qe(J)},we=function(){Ae(function(r){return r+90})},st=function(){Ae(function(r){return r-90})},it=function(r){r.preventDefault(),r.stopPropagation(),Ke>0&&Ve(et[Ke-1])},Qe=function(r){r.preventDefault(),r.stopPropagation(),Ke0&&Ve(et[Ke-1]):lt.keyCode===Ne.Z.RIGHT&&Ke0?Oe():lt<0&&te()},[Me]),Kt(function(){var lt,r,t=(0,Q.Z)(window,"mouseup",Tt,!1),u=(0,Q.Z)(window,"mousemove",Lt,!1),o=(0,Q.Z)(window,"wheel",wt,{passive:!1}),C=(0,Q.Z)(window,"keydown",Yt,!1);try{window.top!==window.self&&(lt=(0,Q.Z)(window.top,"mouseup",Tt,!1),r=(0,Q.Z)(window.top,"mousemove",Lt,!1))}catch(w){(0,ie.Kp)(!1,"[rc-image] ".concat(w))}return function(){t.remove(),u.remove(),o.remove(),C.remove(),lt&<.remove(),r&&r.remove()}},[k,_e,Yt]),p.createElement(K.Z,(0,c.Z)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:i,onClose:E,afterClose:ee,visible:k,wrapClassName:Gt,rootClassName:W},q),p.createElement("ul",{className:"".concat(i,"-operations")},mt&&p.createElement("li",{className:"".concat(i,"-operations-progress")},(R=G==null?void 0:G(Ke+1,Te))!==null&&R!==void 0?R:"".concat(Ke+1," / ").concat(Te)),Ct.map(function(lt){var r=lt.icon,t=lt.onClick,u=lt.type,o=lt.disabled;return p.createElement("li",{className:f()(At,(0,h.Z)({},"".concat(i,"-operations-operation-disabled"),!!o)),onClick:t,key:u},p.isValidElement(r)?p.cloneElement(r,{className:tn}):r)})),p.createElement("div",{className:"".concat(i,"-img-wrapper"),style:{transform:"translate3d(".concat(pe.x,"px, ").concat(pe.y,"px, 0)")}},p.createElement("img",{onMouseDown:Qt,onDoubleClick:an,ref:ke,className:"".concat(i,"-img"),src:bt,alt:x,style:{transform:"scale3d(".concat(ue,", ").concat(ue,", 1) rotate(").concat(De,"deg)")}})),mt&&p.createElement("div",{className:f()("".concat(i,"-switch-left"),(0,h.Z)({},"".concat(i,"-switch-left-disabled"),Ke===0)),onClick:it},je),mt&&p.createElement("div",{className:f()("".concat(i,"-switch-right"),(0,h.Z)({},"".concat(i,"-switch-right-disabled"),Ke===Te-1)),onClick:Qe},Y))},B=U,M=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap"],$=["src","visible","onVisibleChange","getContainer","mask","maskClassName","icons"],F=0,ne=function(d){var R=d.src,i=d.alt,y=d.onPreviewClose,x=d.prefixCls,E=x===void 0?"rc-image":x,N=d.previewPrefixCls,k=N===void 0?"".concat(E,"-preview"):N,j=d.placeholder,T=d.fallback,W=d.width,G=d.height,q=d.style,me=d.preview,ae=me===void 0?!0:me,_=d.className,fe=d.onClick,Pe=d.onError,je=d.wrapperClassName,Y=d.wrapperStyle,Ue=d.rootClassName,ve=d.crossOrigin,ue=d.decoding,Ee=d.loading,le=d.referrerPolicy,Re=d.sizes,De=d.srcSet,Ae=d.useMap,Ge=(0,P.Z)(d,M),Ze=j&&j!==!0,pe=(0,v.Z)(ae)==="object"?ae:{},qe=pe.src,ke=pe.visible,Fe=ke===void 0?void 0:ke,ft=pe.onVisibleChange,dt=ft===void 0?y:ft,_e=pe.getContainer,vt=_e===void 0?void 0:_e,rt=pe.mask,ot=pe.maskClassName,yt=pe.icons,We=(0,P.Z)(pe,$),Ve=qe!=null?qe:R,Te=Fe!==void 0,et=(0,H.Z)(!!Fe,{value:Fe,onChange:dt}),Ke=(0,g.Z)(et,2),bt=Ke[0],mt=Ke[1],kt=(0,p.useState)(Ze?"loading":"normal"),Le=(0,g.Z)(kt,2),Me=Le[0],Je=Le[1],ee=(0,p.useState)(null),te=(0,g.Z)(ee,2),Oe=te[0],we=te[1],st=Me==="error",it=p.useContext(Ot),Qe=it.isPreviewGroup,Gt=it.setCurrent,At=it.setShowPreview,tn=it.setMousePosition,Ct=it.registerImage,Tt=p.useState(function(){return F+=1,F}),Qt=(0,g.Z)(Tt,1),Lt=Qt[0],wt=ae&&!st,Yt=p.useRef(!1),an=function(){Je("normal")},lt=function(L){Pe&&Pe(L),Je("error")},r=function(L){if(!Te){var oe=(0,z.os)(L.target),ye=oe.left,ge=oe.top;Qe?(Gt(Lt),tn({x:ye,y:ge})):we({x:ye,y:ge})}Qe?At(!0):mt(!0),fe&&fe(L)},t=function(L){L.stopPropagation(),mt(!1),Te||we(null)},u=function(L){Yt.current=!1,Me==="loading"&&(L==null?void 0:L.complete)&&(L.naturalWidth||L.naturalHeight)&&(Yt.current=!0,an())};p.useEffect(function(){var D=Ct(Lt,Ve);return D},[]),p.useEffect(function(){Ct(Lt,Ve,wt)},[Ve,wt]),p.useEffect(function(){st&&Je("normal"),Ze&&!Yt.current&&Je("loading")},[R]);var o=f()(E,je,Ue,(0,h.Z)({},"".concat(E,"-error"),st)),C=st&&T?T:Ve,w={crossOrigin:ve,decoding:ue,loading:Ee,referrerPolicy:le,sizes:Re,srcSet:De,useMap:Ae,alt:i,className:f()("".concat(E,"-img"),(0,h.Z)({},"".concat(E,"-img-placeholder"),j===!0),_),style:(0,b.Z)({height:G},q)};return p.createElement(p.Fragment,null,p.createElement("div",(0,c.Z)({},Ge,{className:o,onClick:wt?r:fe,style:(0,b.Z)({width:W,height:G},Y)}),p.createElement("img",(0,c.Z)({},w,{ref:u},st&&T?{src:T}:{onLoad:an,onError:lt,src:R})),Me==="loading"&&p.createElement("div",{"aria-hidden":"true",className:"".concat(E,"-placeholder")},j),rt&&wt&&p.createElement("div",{className:f()("".concat(E,"-mask"),ot)},rt)),!Qe&&wt&&p.createElement(B,(0,c.Z)({"aria-hidden":!bt,visible:bt,prefixCls:k,onClose:t,mousePosition:Oe,src:C,alt:i,getContainer:vt,icons:yt,rootClassName:Ue},We)))};ne.PreviewGroup=_t,ne.displayName="Image";var re=ne,Ce=re,de=e(53124),xe=e(40378),$e=e(33603),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},He=ct,ze=e(27029),nt=function(d,R){return p.createElement(ze.Z,(0,b.Z)((0,b.Z)({},d),{},{ref:R,icon:He}))};nt.displayName="RotateLeftOutlined";var Bt=p.forwardRef(nt),Ht={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},l=Ht,a=function(d,R){return p.createElement(ze.Z,(0,b.Z)((0,b.Z)({},d),{},{ref:R,icon:l}))};a.displayName="RotateRightOutlined";var n=p.forwardRef(a),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},S=m,I=function(d,R){return p.createElement(ze.Z,(0,b.Z)((0,b.Z)({},d),{},{ref:R,icon:S}))};I.displayName="ZoomInOutlined";var X=p.forwardRef(I),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},ce=se,Se=function(d,R){return p.createElement(ze.Z,(0,b.Z)((0,b.Z)({},d),{},{ref:R,icon:ce}))};Se.displayName="ZoomOutOutlined";var Ie=p.forwardRef(Se),be=e(54549),Ye=e(67724),pt=e(8812),jt=function(he,d){var R={};for(var i in he)Object.prototype.hasOwnProperty.call(he,i)&&d.indexOf(i)<0&&(R[i]=he[i]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,i=Object.getOwnPropertySymbols(he);yNumber.MAX_SAFE_INTEGER)return String(Ne()?BigInt(a).toString():Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new a(Number.MAX_SAFE_INTEGER);if(I0&&arguments[0]!==void 0?arguments[0]:!0;return m?this.isInvalidate()?"":ut(this.number):this.origin}}]),a}(),Ot=function(){function a(n){if((0,K.Z)(this,a),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,!n&&n!==0||!String(n).trim()){this.empty=!0;return}if(this.origin=String(n),n==="-"){this.nan=!0;return}var m=n;if(tt(m)&&(m=Number(m)),m=typeof m=="string"?m:ut(m),Be(m)){var S=ie(m);this.negative=S.negative;var I=S.trimStr.split(".");this.integer=BigInt(I[0]);var X=I[1]||"0";this.decimal=BigInt(X),this.decimalLen=X.length}else this.nan=!0}return(0,Q.Z)(a,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(m){var S="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(m,"0"));return BigInt(S)}},{key:"negate",value:function(){var m=new a(this.toString());return m.negative=!m.negative,m}},{key:"add",value:function(m){if(this.isInvalidate())return new a(m);var S=new a(m);if(S.isInvalidate())return this;var I=Math.max(this.getDecimalStr().length,S.getDecimalStr().length),X=this.alignDecimal(I),se=S.alignDecimal(I),ce=(X+se).toString(),Se=ie(ce),Ie=Se.negativeStr,be=Se.trimStr,Ye="".concat(Ie).concat(be.padStart(I+1,"0"));return new a("".concat(Ye.slice(0,-I),".").concat(Ye.slice(-I)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(m){return this.toString()===(m==null?void 0:m.toString())}},{key:"lessEquals",value:function(m){return this.add(m.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return m?this.isInvalidate()?"":ie("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),a}();function Pt(a){return Ne()?new Ot(a):new Zt(a)}function Mt(a,n,m){if(a==="")return"";var S=ie(a),I=S.negativeStr,X=S.integerStr,se=S.decimalStr,ce="".concat(n).concat(se),Se="".concat(I).concat(X);if(m>=0){var Ie=Number(se[m]);if(Ie>=5){var be=Pt(a).add("".concat(I,"0.").concat("0".repeat(m)).concat(10-Ie));return Mt(be.toString(),n,m)}return m===0?Se:"".concat(Se).concat(n).concat(se.padEnd(m,"0").slice(0,m))}return ce===".0"?Se:"".concat(Se).concat(ce)}var _t=e(31131),It=200,gt=600;function Kt(a){var n=a.prefixCls,m=a.upNode,S=a.downNode,I=a.upDisabled,X=a.downDisabled,se=a.onStep,ce=f.useRef(),Se=f.useRef();Se.current=se;var Ie=function(St,zt){St.preventDefault(),Se.current(zt);function Ft(){Se.current(zt),ce.current=setTimeout(Ft,It)}ce.current=setTimeout(Ft,gt)},be=function(){clearTimeout(ce.current)};if(f.useEffect(function(){return be},[]),(0,_t.Z)())return null;var Ye="".concat(n,"-handler"),pt=p()(Ye,"".concat(Ye,"-up"),(0,v.Z)({},"".concat(Ye,"-up-disabled"),I)),jt=p()(Ye,"".concat(Ye,"-down"),(0,v.Z)({},"".concat(Ye,"-down-disabled"),X)),ht={unselectable:"on",role:"button",onMouseUp:be,onMouseLeave:be};return f.createElement("div",{className:"".concat(Ye,"-wrap")},f.createElement("span",(0,c.Z)({},ht,{onMouseDown:function(St){Ie(St,!0)},"aria-label":"Increase Value","aria-disabled":I,className:pt}),m||f.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-up-inner")})),f.createElement("span",(0,c.Z)({},ht,{onMouseDown:function(St){Ie(St,!1)},"aria-label":"Decrease Value","aria-disabled":X,className:jt}),S||f.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-down-inner")})))}var Nt=e(80334);function Jt(a,n){var m=(0,f.useRef)(null);function S(){try{var X=a.selectionStart,se=a.selectionEnd,ce=a.value,Se=ce.substring(0,X),Ie=ce.substring(se);m.current={start:X,end:se,value:ce,beforeTxt:Se,afterTxt:Ie}}catch(be){}}function I(){if(a&&m.current&&n)try{var X=a.value,se=m.current,ce=se.beforeTxt,Se=se.afterTxt,Ie=se.start,be=X.length;if(X.endsWith(Se))be=X.length-m.current.afterTxt.length;else if(X.startsWith(ce))be=ce.length;else{var Ye=ce[Ie-1],pt=X.indexOf(Ye,Ie-1);pt!==-1&&(be=pt+1)}a.setSelectionRange(be,be)}catch(jt){(0,Nt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(jt.message))}}return[S,I]}var A=e(98924),J=(0,A.Z)()?f.useLayoutEffect:f.useEffect;function U(a,n){var m=f.useRef(!1);J(function(){if(!m.current){m.current=!0;return}return a()},n)}var B=e(75164),M=function(){var a=(0,f.useRef)(0),n=function(){B.Z.cancel(a.current)};return(0,f.useEffect)(function(){return n},[]),function(m){n(),a.current=(0,B.Z)(function(){m()})}},$=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],F=function(n,m){return n||m.isEmpty()?m.toString():m.toNumber()},ne=function(n){var m=Pt(n);return m.isInvalidate()?null:m},re=f.forwardRef(function(a,n){var m,S=a.prefixCls,I=S===void 0?"rc-input-number":S,X=a.className,se=a.style,ce=a.min,Se=a.max,Ie=a.step,be=Ie===void 0?1:Ie,Ye=a.defaultValue,pt=a.value,jt=a.disabled,ht=a.readOnly,$t=a.upHandler,St=a.downHandler,zt=a.keyboard,Ft=a.controls,Dt=Ft===void 0?!0:Ft,he=a.stringMode,d=a.parser,R=a.formatter,i=a.precision,y=a.decimalSeparator,x=a.onChange,E=a.onInput,N=a.onPressEnter,k=a.onStep,j=(0,O.Z)(a,$),T="".concat(I,"-input"),W=f.useRef(null),G=f.useState(!1),q=(0,b.Z)(G,2),me=q[0],ae=q[1],_=f.useRef(!1),fe=f.useRef(!1),Pe=f.useState(function(){return Pt(pt!=null?pt:Ye)}),je=(0,b.Z)(Pe,2),Y=je[0],Ue=je[1];function ve(ee){pt===void 0&&Ue(ee)}var ue=f.useCallback(function(ee,te){if(!te)return i>=0?i:Math.max(at(ee),at(be))},[i,be]),Ee=f.useCallback(function(ee){var te=String(ee);if(d)return d(te);var Oe=te;return y&&(Oe=Oe.replace(y,".")),Oe.replace(/[^\w.-]+/g,"")},[d,y]),le=f.useRef(""),Re=f.useCallback(function(ee,te){if(R)return R(ee,{userTyping:te,input:String(le.current)});var Oe=typeof ee=="number"?ut(ee):ee;if(!te){var we=ue(Oe,te);if(Be(Oe)&&(y||we>=0)){var st=y||".";Oe=Mt(Oe,st,we)}}return Oe},[R,ue,y]),De=f.useState(function(){var ee=Ye!=null?Ye:pt;return Y.isInvalidate()&&["string","number"].includes((0,s.Z)(ee))?Number.isNaN(ee)?"":ee:Re(Y.toString(),!1)}),Ae=(0,b.Z)(De,2),Ge=Ae[0],Ze=Ae[1];le.current=Ge;function pe(ee,te){Ze(Re(ee.isInvalidate()?ee.toString(!1):ee.toString(!te),te))}var qe=f.useMemo(function(){return ne(Se)},[Se]),ke=f.useMemo(function(){return ne(ce)},[ce]),Fe=f.useMemo(function(){return!qe||!Y||Y.isInvalidate()?!1:qe.lessEquals(Y)},[qe,Y]),ft=f.useMemo(function(){return!ke||!Y||Y.isInvalidate()?!1:Y.lessEquals(ke)},[ke,Y]),dt=Jt(W.current,me),_e=(0,b.Z)(dt,2),vt=_e[0],rt=_e[1],ot=function(te){return qe&&!te.lessEquals(qe)?qe:ke&&!ke.lessEquals(te)?ke:null},yt=function(te){return!ot(te)},We=function(te,Oe){var we=te,st=yt(we)||we.isEmpty();if(!we.isEmpty()&&!Oe&&(we=ot(we)||we,st=!0),!ht&&!jt&&st){var it=we.toString(),Qe=ue(it,Oe);return Qe>=0&&(we=Pt(Mt(it,".",Qe))),we.equals(Y)||(ve(we),x==null||x(we.isEmpty()?null:F(he,we)),pt===void 0&&pe(we,Oe)),we}return Y},Ve=M(),Te=function ee(te){if(vt(),Ze(te),!fe.current){var Oe=Ee(te),we=Pt(Oe);we.isNaN()||We(we,!0)}E==null||E(te),Ve(function(){var st=te;d||(st=te.replace(/。/g,".")),st!==te&&ee(st)})},et=function(){fe.current=!0},Ke=function(){fe.current=!1,Te(W.current.value)},bt=function(te){Te(te.target.value)},mt=function(te){var Oe;if(!(te&&Fe||!te&&ft)){_.current=!1;var we=Pt(be);te||(we=we.negate());var st=(Y||Pt(0)).add(we.toString()),it=We(st,!1);k==null||k(F(he,it),{offset:be,type:te?"up":"down"}),(Oe=W.current)===null||Oe===void 0||Oe.focus()}},kt=function(te){var Oe=Pt(Ee(Ge)),we=Oe;Oe.isNaN()?we=Y:we=We(Oe,te),pt!==void 0?pe(Y,!1):we.isNaN()||pe(we,!1)},Le=function(te){var Oe=te.which;_.current=!0,Oe===z.Z.ENTER&&(fe.current||(_.current=!1),kt(!1),N==null||N(te)),zt!==!1&&!fe.current&&[z.Z.UP,z.Z.DOWN].includes(Oe)&&(mt(z.Z.UP===Oe),te.preventDefault())},Me=function(){_.current=!1},Je=function(){kt(!1),ae(!1),_.current=!1};return U(function(){Y.isInvalidate()||pe(Y,!1)},[i]),U(function(){var ee=Pt(pt);Ue(ee);var te=Pt(Ee(Ge));(!ee.equals(te)||!_.current||R)&&pe(ee,_.current)},[pt]),U(function(){R&&rt()},[Ge]),f.createElement("div",{className:p()(I,X,(m={},(0,v.Z)(m,"".concat(I,"-focused"),me),(0,v.Z)(m,"".concat(I,"-disabled"),jt),(0,v.Z)(m,"".concat(I,"-readonly"),ht),(0,v.Z)(m,"".concat(I,"-not-a-number"),Y.isNaN()),(0,v.Z)(m,"".concat(I,"-out-of-range"),!Y.isInvalidate()&&!yt(Y)),m)),style:se,onFocus:function(){ae(!0)},onBlur:Je,onKeyDown:Le,onKeyUp:Me,onCompositionStart:et,onCompositionEnd:Ke},Dt&&f.createElement(Kt,{prefixCls:I,upNode:$t,downNode:St,upDisabled:Fe,downDisabled:ft,onStep:mt}),f.createElement("div",{className:"".concat(T,"-wrap")},f.createElement("input",(0,c.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":ce,"aria-valuemax":Se,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:be},j,{ref:(0,H.sQ)(W,n),className:T,value:Ge,onChange:bt,disabled:jt,readOnly:ht}))))});re.displayName="InputNumber";var Ce=re,de=Ce,xe=e(53124),$e=e(98866),ct=e(97647),He=e(65223),ze=e(96159),nt=e(9708),Bt=function(a,n){var m={};for(var S in a)Object.prototype.hasOwnProperty.call(a,S)&&n.indexOf(S)<0&&(m[S]=a[S]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,S=Object.getOwnPropertySymbols(a);I=de&&ne$e?"true":"false","aria-posinset":$e+1,"aria-setsize":ct,tabIndex:re?-1:0},s.createElement("div",{className:"".concat(Ce,"-first")},ze),s.createElement("div",{className:"".concat(Ce,"-second")},ze)));return xe&&(nt=xe(nt,this.props)),nt}}]),U}(s.Component);function Ot(){}var Pt=function(A){(0,H.Z)(U,A);var J=(0,K.Z)(U);function U(B){var M;(0,f.Z)(this,U),M=J.call(this,B),M.stars=void 0,M.rate=void 0,M.onHover=function(F,ne){var re=M.props.onHoverChange,Ce=M.getStarValue(ne,F.pageX),de=M.state.cleanedValue;Ce!==de&&M.setState({hoverValue:Ce,cleanedValue:null}),re(Ce)},M.onMouseLeave=function(){var F=M.props.onHoverChange;M.setState({hoverValue:void 0,cleanedValue:null}),F(void 0)},M.onClick=function(F,ne){var re=M.props.allowClear,Ce=M.state.value,de=M.getStarValue(ne,F.pageX),xe=!1;re&&(xe=de===Ce),M.onMouseLeave(),M.changeValue(xe?0:de),M.setState({cleanedValue:xe?de:null})},M.onFocus=function(){var F=M.props.onFocus;M.setState({focused:!0}),F&&F()},M.onBlur=function(){var F=M.props.onBlur;M.setState({focused:!1}),F&&F()},M.onKeyDown=function(F){var ne=F.keyCode,re=M.props,Ce=re.count,de=re.allowHalf,xe=re.onKeyDown,$e=re.direction,ct=$e==="rtl",He=M.state.value;ne===tt.Z.RIGHT&&He0&&!ct||ne===tt.Z.RIGHT&&He>0&&ct?(de?He-=.5:He-=1,M.changeValue(He),F.preventDefault()):ne===tt.Z.LEFT&&Hect/2||!Ce&&$-$e1&&arguments[1]!==void 0?arguments[1]:"0",ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return q.map(function(_,fe){var Pe="".concat(me,"-").concat(fe),je=_[k.value],Y=x.includes(je),Ue=G(_[k.children]||[],Pe,Y),ve=s.createElement(Jt,_,Ue.map(function(Ee){return Ee.node}));if(y===je&&(j=ve),Y){var ue={pos:Pe,node:ve,children:Ue};return ae||T.push(ue),ue}return null}).filter(function(_){return _})}T||(T=[],G(E),T.sort(function(q,me){var ae=q.node.props.value,_=me.node.props.value,fe=x.indexOf(ae),Pe=x.indexOf(_);return fe-Pe}))}Object.defineProperty(i,"triggerNode",{get:function(){return(0,$.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),W(),j}}),Object.defineProperty(i,"allCheckedNodes",{get:function(){return(0,$.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),W(),N?T:T.map(function(q){var me=q.node;return me})}})}function de(i,y){var x=y.id,E=y.pId,N=y.rootPId,k={},j=[],T=i.map(function(W){var G=(0,h.Z)({},W),q=G[x];return k[q]=G,G.key=G.key||q,G});return T.forEach(function(W){var G=W[E],q=k[G];q&&(q.children=q.children||[],q.children.push(W)),(G===N||!q&&N===null)&&j.push(W)}),j}function xe(i,y,x){return s.useMemo(function(){return i?x?de(i,(0,h.Z)({id:"id",pId:"pId",rootPId:null},x!==!0?x:{})):i:ne(y)},[y,x,i])}var $e=function(i){var y=s.useRef({valueLabels:new Map});return s.useMemo(function(){var x=y.current.valueLabels,E=new Map,N=i.map(function(k){var j,T=k.value,W=(j=k.label)!==null&&j!==void 0?j:x.get(T);return E.set(T,W),(0,h.Z)((0,h.Z)({},k),{},{label:W})});return y.current.valueLabels=E,[N]},[i])};function ct(i){var y=s.useRef();y.current=i;var x=s.useCallback(function(){return y.current.apply(y,arguments)},[]);return x}var He=e(1089),ze=function(i,y){return s.useMemo(function(){var x=(0,He.I8)(i,{fieldNames:y,initWrapper:function(N){return(0,h.Z)((0,h.Z)({},N),{},{valueEntities:new Map})},processEntity:function(N,k){var j=N.node[y.value];if(!1)var T;k.valueEntities.set(j,N)}});return x},[i,y])},nt=function(i,y,x,E){return s.useMemo(function(){var N=i.map(function(W){var G=W.value;return G}),k=y.map(function(W){var G=W.value;return G}),j=N.filter(function(W){return!E[W]});if(x){var T=(0,f.S)(N,!0,E);N=T.checkedKeys,k=T.halfCheckedKeys}return[Array.from(new Set([].concat((0,b.Z)(j),(0,b.Z)(N)))),k]},[i,y,x,E])},Bt=function(i,y,x){var E=x.treeNodeFilterProp,N=x.filterTreeNode,k=x.fieldNames,j=k.children;return s.useMemo(function(){if(!y||N===!1)return i;var T;if(typeof N=="function")T=N;else{var W=y.toUpperCase();T=function(me,ae){var _=ae[E];return String(_).toUpperCase().includes(W)}}function G(q){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return q.map(function(ae){var _=ae[j],fe=me||T(y,re(ae)),Pe=G(_||[],fe);return fe||Pe.length?(0,h.Z)((0,h.Z)({},ae),{},(0,v.Z)({},j,Pe)):null}).filter(function(ae){return ae})}return G(i)},[i,y,j,E,N])};function Ht(i){var y=i.searchPlaceholder,x=i.treeCheckStrictly,E=i.treeCheckable,N=i.labelInValue,k=i.value,j=i.multiple;warning(!y,"`searchPlaceholder` has been removed."),x&&N===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(N||x)&&warning(toArray(k).every(function(T){return T&&_typeof(T)==="object"&&"value"in T}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),x||j||E?warning(!k||Array.isArray(k),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(k),"`value` should not be array when `TreeSelect` is single mode.")}var l=null,a=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function n(i){return!i||(0,p.Z)(i)!=="object"}var m=s.forwardRef(function(i,y){var x=i.id,E=i.prefixCls,N=E===void 0?"rc-tree-select":E,k=i.value,j=i.defaultValue,T=i.onChange,W=i.onSelect,G=i.onDeselect,q=i.searchValue,me=i.inputValue,ae=i.onSearch,_=i.autoClearSearchValue,fe=_===void 0?!0:_,Pe=i.filterTreeNode,je=i.treeNodeFilterProp,Y=je===void 0?"value":je,Ue=i.showCheckedStrategy,ve=Ue===void 0?U:Ue,ue=i.treeNodeLabelProp,Ee=i.multiple,le=i.treeCheckable,Re=i.treeCheckStrictly,De=i.labelInValue,Ae=i.fieldNames,Ge=i.treeDataSimpleMode,Ze=i.treeData,pe=i.children,qe=i.loadData,ke=i.treeLoadedKeys,Fe=i.onTreeLoad,ft=i.treeDefaultExpandAll,dt=i.treeExpandedKeys,_e=i.treeDefaultExpandedKeys,vt=i.onTreeExpand,rt=i.treeExpandAction,ot=i.virtual,yt=i.listHeight,We=yt===void 0?200:yt,Ve=i.listItemHeight,Te=Ve===void 0?20:Ve,et=i.onDropdownVisibleChange,Ke=i.dropdownMatchSelectWidth,bt=Ke===void 0?!0:Ke,mt=i.treeLine,kt=i.treeIcon,Le=i.showTreeIcon,Me=i.switcherIcon,Je=i.treeMotion,ee=(0,P.Z)(i,a),te=(0,z.ZP)(x),Oe=le&&!Re,we=le||Re,st=Re||De,it=we||Ee,Qe=s.useMemo(function(){return Zt(Ae)},[JSON.stringify(Ae)]),Gt=(0,H.Z)("",{value:q!==void 0?q:me,postState:function(xt){return xt||""}}),At=(0,g.Z)(Gt,2),tn=At[0],Ct=At[1],Tt=function(xt){Ct(xt),ae==null||ae(xt)},Qt=xe(Ze,pe,Ge),Lt=ze(Qt,Qe),wt=Lt.keyEntities,Yt=Lt.valueEntities,an=s.useCallback(function(Et){var xt=[],Rt=[];return Et.forEach(function(Xt){Yt.has(Xt)?Rt.push(Xt):xt.push(Xt)}),{missingRawValues:xt,existRawValues:Rt}},[Yt]),lt=Bt(Qt,tn,{fieldNames:Qe,treeNodeFilterProp:Y,filterTreeNode:Pe}),r=s.useCallback(function(Et){if(Et){if(ue)return Et[ue];for(var xt=Qe._title,Rt=0;Rt1&&arguments[1]!==void 0?arguments[1]:"span";return function(H){P(K,H);function K(){var Q,Ne,ie,tt;h(this,K);for(var at=arguments.length,ut=Array(at),Be=0;Be1&&arguments[1]!==void 0?arguments[1]:"span";return function(H){P(K,H);function K(){var Q,Ne,ie,tt;h(this,K);for(var at=arguments.length,ut=Array(at),Be=0;Be0&&arguments[0]!==void 0?arguments[0]:[],K=[];return(0,p.default)(H,function(Q){Array.isArray(Q)?z(Q).map(function(Ne){return K.push(Ne)}):(0,g.default)(Q)?(0,b.default)(Q,function(Ne,ie){Ne===!0&&K.push(ie),K.push(ie+"-"+Ne)}):(0,v.default)(Q)&&K.push(Q)}),K};V.default=f},79941:function(Z,V,e){"use strict";var c;c={value:!0},c=c=c=c=c=void 0;var v=e(14147),s=Q(v),b=e(18556),h=Q(b),g=e(24754),P=Q(g),p=e(91765),O=Q(p),f=e(36002),z=Q(f),H=e(57742),K=Q(H);function Q(ie){return ie&&ie.__esModule?ie:{default:ie}}c=O.default,c=O.default,c=z.default,c=K.default;var Ne=c=function(tt){for(var at=arguments.length,ut=Array(at>1?at-1:0),Be=1;Be1&&arguments[1]!==void 0?arguments[1]:!0;b[P]=p};return v===0&&h("first-child"),v===s-1&&h("last-child"),(v===0||v%2==0)&&h("even"),Math.abs(v%2)===1&&h("odd"),h("nth-child",v),b};V.default=e},18556:function(Z,V,e){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.mergeClasses=void 0;var c=e(2525),v=g(c),s=e(50361),b=g(s),h=Object.assign||function(p){for(var O=1;O1&&arguments[1]!==void 0?arguments[1]:[],z=O.default&&(0,b.default)(O.default)||{};return f.map(function(H){var K=O[H];return K&&(0,v.default)(K,function(Q,Ne){z[Ne]||(z[Ne]={}),z[Ne]=h({},z[Ne],K[Ne])}),H}),z};V.default=P},17621:function(Z,V,e){var c;(function(v){var s=/^\s+/,b=/\s+$/,h=0,g=v.round,P=v.min,p=v.max,O=v.random;function f(l,a){if(l=l||"",a=a||{},l instanceof f)return l;if(!(this instanceof f))return new f(l,a);var n=z(l);this._originalInput=l,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=g(100*this._a)/100,this._format=a.format||n.format,this._gradientType=a.gradientType,this._r<1&&(this._r=g(this._r)),this._g<1&&(this._g=g(this._g)),this._b<1&&(this._b=g(this._b)),this._ok=n.ok,this._tc_id=h++}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var l=this.toRgb();return(l.r*299+l.g*587+l.b*114)/1e3},getLuminance:function(){var l=this.toRgb(),a,n,m,S,I,X;return a=l.r/255,n=l.g/255,m=l.b/255,a<=.03928?S=a/12.92:S=v.pow((a+.055)/1.055,2.4),n<=.03928?I=n/12.92:I=v.pow((n+.055)/1.055,2.4),m<=.03928?X=m/12.92:X=v.pow((m+.055)/1.055,2.4),.2126*S+.7152*I+.0722*X},setAlpha:function(l){return this._a=$(l),this._roundA=g(100*this._a)/100,this},toHsv:function(){var l=Ne(this._r,this._g,this._b);return{h:l.h*360,s:l.s,v:l.v,a:this._a}},toHsvString:function(){var l=Ne(this._r,this._g,this._b),a=g(l.h*360),n=g(l.s*100),m=g(l.v*100);return this._a==1?"hsv("+a+", "+n+"%, "+m+"%)":"hsva("+a+", "+n+"%, "+m+"%, "+this._roundA+")"},toHsl:function(){var l=K(this._r,this._g,this._b);return{h:l.h*360,s:l.s,l:l.l,a:this._a}},toHslString:function(){var l=K(this._r,this._g,this._b),a=g(l.h*360),n=g(l.s*100),m=g(l.l*100);return this._a==1?"hsl("+a+", "+n+"%, "+m+"%)":"hsla("+a+", "+n+"%, "+m+"%, "+this._roundA+")"},toHex:function(l){return tt(this._r,this._g,this._b,l)},toHexString:function(l){return"#"+this.toHex(l)},toHex8:function(l){return at(this._r,this._g,this._b,this._a,l)},toHex8String:function(l){return"#"+this.toHex8(l)},toRgb:function(){return{r:g(this._r),g:g(this._g),b:g(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+g(this._r)+", "+g(this._g)+", "+g(this._b)+")":"rgba("+g(this._r)+", "+g(this._g)+", "+g(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:g(F(this._r,255)*100)+"%",g:g(F(this._g,255)*100)+"%",b:g(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+g(F(this._r,255)*100)+"%, "+g(F(this._g,255)*100)+"%, "+g(F(this._b,255)*100)+"%)":"rgba("+g(F(this._r,255)*100)+"%, "+g(F(this._g,255)*100)+"%, "+g(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:B[tt(this._r,this._g,this._b,!0)]||!1},toFilter:function(l){var a="#"+ut(this._r,this._g,this._b,this._a),n=a,m=this._gradientType?"GradientType = 1, ":"";if(l){var S=f(l);n="#"+ut(S._r,S._g,S._b,S._a)}return"progid:DXImageTransform.Microsoft.gradient("+m+"startColorstr="+a+",endColorstr="+n+")"},toString:function(l){var a=!!l;l=l||this._format;var n=!1,m=this._a<1&&this._a>=0,S=!a&&m&&(l==="hex"||l==="hex6"||l==="hex3"||l==="hex4"||l==="hex8"||l==="name");return S?l==="name"&&this._a===0?this.toName():this.toRgbString():(l==="rgb"&&(n=this.toRgbString()),l==="prgb"&&(n=this.toPercentageRgbString()),(l==="hex"||l==="hex6")&&(n=this.toHexString()),l==="hex3"&&(n=this.toHexString(!0)),l==="hex4"&&(n=this.toHex8String(!0)),l==="hex8"&&(n=this.toHex8String()),l==="name"&&(n=this.toName()),l==="hsl"&&(n=this.toHslString()),l==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function(l,a){var n=l.apply(null,[this].concat([].slice.call(a)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Pt,arguments)},brighten:function(){return this._applyModification(Mt,arguments)},darken:function(){return this._applyModification(_t,arguments)},desaturate:function(){return this._applyModification(Be,arguments)},saturate:function(){return this._applyModification(Zt,arguments)},greyscale:function(){return this._applyModification(Ot,arguments)},spin:function(){return this._applyModification(It,arguments)},_applyCombination:function(l,a){return l.apply(null,[this].concat([].slice.call(a)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(gt,arguments)},monochromatic:function(){return this._applyCombination(J,arguments)},splitcomplement:function(){return this._applyCombination(Jt,arguments)},triad:function(){return this._applyCombination(Kt,arguments)},tetrad:function(){return this._applyCombination(Nt,arguments)}},f.fromRatio=function(l,a){if(typeof l=="object"){var n={};for(var m in l)l.hasOwnProperty(m)&&(m==="a"?n[m]=l[m]:n[m]=$e(l[m]));l=n}return f(l,a)};function z(l){var a={r:0,g:0,b:0},n=1,m=null,S=null,I=null,X=!1,se=!1;return typeof l=="string"&&(l=Bt(l)),typeof l=="object"&&(nt(l.r)&&nt(l.g)&&nt(l.b)?(a=H(l.r,l.g,l.b),X=!0,se=String(l.r).substr(-1)==="%"?"prgb":"rgb"):nt(l.h)&&nt(l.s)&&nt(l.v)?(m=$e(l.s),S=$e(l.v),a=ie(l.h,m,S),X=!0,se="hsv"):nt(l.h)&&nt(l.s)&&nt(l.l)&&(m=$e(l.s),I=$e(l.l),a=Q(l.h,m,I),X=!0,se="hsl"),l.hasOwnProperty("a")&&(n=l.a)),n=$(n),{ok:X,format:l.format||se,r:P(255,p(a.r,0)),g:P(255,p(a.g,0)),b:P(255,p(a.b,0)),a:n}}function H(l,a,n){return{r:F(l,255)*255,g:F(a,255)*255,b:F(n,255)*255}}function K(l,a,n){l=F(l,255),a=F(a,255),n=F(n,255);var m=p(l,a,n),S=P(l,a,n),I,X,se=(m+S)/2;if(m==S)I=X=0;else{var ce=m-S;switch(X=se>.5?ce/(2-m-S):ce/(m+S),m){case l:I=(a-n)/ce+(a1&&(be-=1),be<1/6?Se+(Ie-Se)*6*be:be<1/2?Ie:be<2/3?Se+(Ie-Se)*(2/3-be)*6:Se}if(a===0)m=S=I=n;else{var se=n<.5?n*(1+a):n+a-n*a,ce=2*n-se;m=X(ce,se,l+1/3),S=X(ce,se,l),I=X(ce,se,l-1/3)}return{r:m*255,g:S*255,b:I*255}}function Ne(l,a,n){l=F(l,255),a=F(a,255),n=F(n,255);var m=p(l,a,n),S=P(l,a,n),I,X,se=m,ce=m-S;if(X=m===0?0:ce/m,m==S)I=0;else{switch(m){case l:I=(a-n)/ce+(a>1)+720)%360;--a;)m.h=(m.h+S)%360,I.push(f(m));return I}function J(l,a){a=a||6;for(var n=f(l).toHsv(),m=n.h,S=n.s,I=n.v,X=[],se=1/a;a--;)X.push(f({h:m,s:S,v:I})),I=(I+se)%1;return X}f.mix=function(l,a,n){n=n===0?0:n||50;var m=f(l).toRgb(),S=f(a).toRgb(),I=n/100,X={r:(S.r-m.r)*I+m.r,g:(S.g-m.g)*I+m.g,b:(S.b-m.b)*I+m.b,a:(S.a-m.a)*I+m.a};return f(X)},f.readability=function(l,a){var n=f(l),m=f(a);return(v.max(n.getLuminance(),m.getLuminance())+.05)/(v.min(n.getLuminance(),m.getLuminance())+.05)},f.isReadable=function(l,a,n){var m=f.readability(l,a),S,I;switch(I=!1,S=Ht(n),S.level+S.size){case"AAsmall":case"AAAlarge":I=m>=4.5;break;case"AAlarge":I=m>=3;break;case"AAAsmall":I=m>=7;break}return I},f.mostReadable=function(l,a,n){var m=null,S=0,I,X,se,ce;n=n||{},X=n.includeFallbackColors,se=n.level,ce=n.size;for(var Se=0;SeS&&(S=I,m=f(a[Se]));return f.isReadable(l,m,{level:se,size:ce})||!X?m:(n.includeFallbackColors=!1,f.mostReadable(l,["#fff","#000"],n))};var U=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=f.hexNames=M(U);function M(l){var a={};for(var n in l)l.hasOwnProperty(n)&&(a[l[n]]=n);return a}function $(l){return l=parseFloat(l),(isNaN(l)||l<0||l>1)&&(l=1),l}function F(l,a){Ce(l)&&(l="100%");var n=de(l);return l=P(a,p(0,parseFloat(l))),n&&(l=parseInt(l*a,10)/100),v.abs(l-a)<1e-6?1:l%a/parseFloat(a)}function ne(l){return P(1,p(0,l))}function re(l){return parseInt(l,16)}function Ce(l){return typeof l=="string"&&l.indexOf(".")!=-1&&parseFloat(l)===1}function de(l){return typeof l=="string"&&l.indexOf("%")!=-1}function xe(l){return l.length==1?"0"+l:""+l}function $e(l){return l<=1&&(l=l*100+"%"),l}function ct(l){return v.round(parseFloat(l)*255).toString(16)}function He(l){return re(l)/255}var ze=function(){var l="[-\\+]?\\d+%?",a="[-\\+]?\\d*\\.\\d+%?",n="(?:"+a+")|(?:"+l+")",m="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",S="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+m),rgba:new RegExp("rgba"+S),hsl:new RegExp("hsl"+m),hsla:new RegExp("hsla"+S),hsv:new RegExp("hsv"+m),hsva:new RegExp("hsva"+S),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 nt(l){return!!ze.CSS_UNIT.exec(l)}function Bt(l){l=l.replace(s,"").replace(b,"").toLowerCase();var a=!1;if(U[l])l=U[l],a=!0;else if(l=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=ze.rgb.exec(l))?{r:n[1],g:n[2],b:n[3]}:(n=ze.rgba.exec(l))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ze.hsl.exec(l))?{h:n[1],s:n[2],l:n[3]}:(n=ze.hsla.exec(l))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ze.hsv.exec(l))?{h:n[1],s:n[2],v:n[3]}:(n=ze.hsva.exec(l))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ze.hex8.exec(l))?{r:re(n[1]),g:re(n[2]),b:re(n[3]),a:He(n[4]),format:a?"name":"hex8"}:(n=ze.hex6.exec(l))?{r:re(n[1]),g:re(n[2]),b:re(n[3]),format:a?"name":"hex"}:(n=ze.hex4.exec(l))?{r:re(n[1]+""+n[1]),g:re(n[2]+""+n[2]),b:re(n[3]+""+n[3]),a:He(n[4]+""+n[4]),format:a?"name":"hex8"}:(n=ze.hex3.exec(l))?{r:re(n[1]+""+n[1]),g:re(n[2]+""+n[2]),b:re(n[3]+""+n[3]),format:a?"name":"hex"}:!1}function Ht(l){var a,n;return l=l||{level:"AA",size:"small"},a=(l.level||"AA").toUpperCase(),n=(l.size||"small").toLowerCase(),a!=="AA"&&a!=="AAA"&&(a="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:a,size:n}}Z.exports?Z.exports=f:(c=function(){return f}.call(V,e,V,Z),c!==void 0&&(Z.exports=c))})(Math)},30939:function(Z,V,e){"use strict";e.d(V,{P:function(){return b}});var c=e(67294);function v(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(f){return typeof f}:v=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},v(O)}var s=function(){var f=new WeakSet;return function(z,H){if(v(H)==="object"&&H!==null){if(f.has(H))return;f.add(H)}return H}},b=function(f){return JSON.stringify(f,s())},h=function(f,z){try{return b(f)===b(z)}catch(H){}return!1};function g(O){var f=useRef("");return h(O,f.current)||(f.current=JSON.stringify(O,s())),f.current}function P(O,f){useEffect(O,[g(f)])}var p=null}}]); diff --git a/5883.a4a421fe.chunk.css b/5883.a4a421fe.chunk.css new file mode 100644 index 00000000..36ba70ce --- /dev/null +++ b/5883.a4a421fe.chunk.css @@ -0,0 +1 @@ +.ant-form-item .ant-input-number+.ant-form-text{margin-left:8px}.ant-form-inline{display:flex;flex-wrap:wrap}.ant-form-inline .ant-form-item{flex:none;flex-wrap:nowrap;margin-right:16px;margin-bottom:0}.ant-form-inline .ant-form-item-with-help{margin-bottom:24px}.ant-form-inline .ant-form-item>.ant-form-item-control,.ant-form-inline .ant-form-item>.ant-form-item-label{display:inline-block;vertical-align:top}.ant-form-inline .ant-form-item>.ant-form-item-label{flex:none}.ant-form-inline .ant-form-item .ant-form-text{display:inline-block}.ant-form-inline .ant-form-item .ant-form-item-has-feedback{display:inline-block}.ant-form-horizontal .ant-form-item-label{flex-grow:0}.ant-form-horizontal .ant-form-item-control{flex:1 1;min-width:0}.ant-form-horizontal .ant-form-item-label[class$="-24"]+.ant-form-item-control,.ant-form-horizontal .ant-form-item-label[class*="-24 "]+.ant-form-item-control{min-width:unset}.ant-form-vertical .ant-form-item{flex-direction:column}.ant-form-vertical .ant-form-item-label>label{height:auto}.ant-col-24.ant-form-item-label,.ant-col-xl-24.ant-form-item-label,.ant-form-vertical .ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-24.ant-form-item-label>label,.ant-col-xl-24.ant-form-item-label>label,.ant-form-vertical .ant-form-item-label>label{margin:0}.ant-col-24.ant-form-item-label>label:after,.ant-col-xl-24.ant-form-item-label>label:after,.ant-form-vertical .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-24.ant-form-item-label,.ant-form-rtl.ant-col-xl-24.ant-form-item-label,.ant-form-rtl.ant-form-vertical .ant-form-item-label{text-align:right}@media (max-width:575px){.ant-form-item .ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-form-item .ant-form-item-label>label{margin:0}.ant-form-item .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-form-item .ant-form-item-label{text-align:right}.ant-form .ant-form-item{flex-wrap:wrap}.ant-form .ant-form-item .ant-form-item-control,.ant-form .ant-form-item .ant-form-item-label{flex:0 0 100%;max-width:100%}.ant-col-xs-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-xs-24.ant-form-item-label>label{margin:0}.ant-col-xs-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xs-24.ant-form-item-label{text-align:right}}@media (max-width:767px){.ant-col-sm-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-sm-24.ant-form-item-label>label{margin:0}.ant-col-sm-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-sm-24.ant-form-item-label{text-align:right}}@media (max-width:991px){.ant-col-md-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-md-24.ant-form-item-label>label{margin:0}.ant-col-md-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-md-24.ant-form-item-label{text-align:right}}@media (max-width:1199px){.ant-col-lg-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-lg-24.ant-form-item-label>label{margin:0}.ant-col-lg-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-lg-24.ant-form-item-label{text-align:right}}@media (max-width:1599px){.ant-col-xl-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-xl-24.ant-form-item-label>label{margin:0}.ant-col-xl-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xl-24.ant-form-item-label{text-align:right}}.ant-form-item-explain-error{color:#ff4d4f;color:var(--ant-error-color)}.ant-form-item-explain-warning{color:#faad14;color:var(--ant-warning-color)}.ant-form-item-has-feedback .ant-switch{margin:2px 0 4px}.ant-form-item-has-warning .ant-form-item-split{color:#faad14;color:var(--ant-warning-color)}.ant-form-item-has-error .ant-form-item-split{color:#ff4d4f;color:var(--ant-error-color)}.ant-form{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum"}.ant-form legend{display:block;width:100%;margin-bottom:20px;padding:0;color:rgba(0,0,0,.45);font-size:16px;line-height:inherit;border:0;border-bottom:1px solid #d9d9d9}.ant-form label{font-size:14px}.ant-form input[type=search]{box-sizing:border-box}.ant-form input[type=checkbox],.ant-form input[type=radio]{line-height:normal}.ant-form input[type=file]{display:block}.ant-form input[type=range]{display:block;width:100%}.ant-form select[multiple],.ant-form select[size]{height:auto}.ant-form input[type=checkbox]:focus,.ant-form input[type=file]:focus,.ant-form input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.ant-form output{display:block;padding-top:15px;color:rgba(0,0,0,.85);font-size:14px;line-height:1.5715}.ant-form .ant-form-text{display:inline-block;padding-right:8px}.ant-form-small .ant-form-item-label>label{height:24px}.ant-form-small .ant-form-item-control-input{min-height:24px}.ant-form-large .ant-form-item-label>label{height:40px}.ant-form-large .ant-form-item-control-input{min-height:40px}.ant-form-item{box-sizing:border-box;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";margin:0 0 24px;vertical-align:top;transition:margin-bottom .3s linear 17ms}.ant-form-item-with-help{margin-bottom:0;transition:none}.ant-form-item-hidden,.ant-form-item-hidden.ant-row{display:none}.ant-form-item-label{display:inline-block;flex-grow:0;overflow:hidden;white-space:nowrap;text-align:right;vertical-align:middle}.ant-form-item-label-left{text-align:left}.ant-form-item-label-wrap{overflow:unset;line-height:1.3215em;white-space:unset}.ant-form-item-label>label{position:relative;display:inline-flex;align-items:center;max-width:100%;height:32px;color:rgba(0,0,0,.85);font-size:14px}.ant-form-item-label>label>.anticon{font-size:14px;vertical-align:top}.ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{display:inline-block;margin-right:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:"*"}.ant-form-hide-required-mark .ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{display:none}.ant-form-item-label>label .ant-form-item-optional{display:inline-block;margin-left:4px;color:rgba(0,0,0,.45)}.ant-form-hide-required-mark .ant-form-item-label>label .ant-form-item-optional{display:none}.ant-form-item-label>label .ant-form-item-tooltip{color:rgba(0,0,0,.45);cursor:help;-webkit-writing-mode:horizontal-tb;-ms-writing-mode:lr-tb;writing-mode:horizontal-tb;-webkit-margin-start:4px;margin-inline-start:4px}.ant-form-item-label>label:after{content:":";position:relative;top:-.5px;margin:0 8px 0 2px}.ant-form-item-label>label.ant-form-item-no-colon:after{content:" "}.ant-form-item-control{display:flex;flex-direction:column;flex-grow:1}.ant-form-item-control:first-child:not([class^=ant-col-]):not([class*=" ant-col-"]){width:100%}.ant-form-item-control-input{position:relative;display:flex;align-items:center;min-height:32px}.ant-form-item-control-input-content{flex:auto;max-width:100%}.ant-form-item-explain,.ant-form-item-extra{clear:both;color:rgba(0,0,0,.45);font-size:14px;line-height:1.5715;transition:color .3s cubic-bezier(.215,.61,.355,1);padding-top:0}.ant-form-item-explain-connected{height:0;min-height:0;opacity:0}.ant-form-item-extra{min-height:24px}.ant-form-item-with-help .ant-form-item-explain{height:auto;min-height:24px;opacity:1}.ant-form-item-feedback-icon{font-size:14px;text-align:center;visibility:visible;animation:zoomIn .3s cubic-bezier(.12,.4,.29,1.46);pointer-events:none}.ant-form-item-feedback-icon-success{color:#52c41a;color:var(--ant-success-color)}.ant-form-item-feedback-icon-error{color:#ff4d4f;color:var(--ant-error-color)}.ant-form-item-feedback-icon-warning{color:#faad14;color:var(--ant-warning-color)}.ant-form-item-feedback-icon-validating{color:#1890ff;color:var(--ant-primary-color)}.ant-show-help{transition:height .3s linear,min-height .3s linear,margin-bottom .3s cubic-bezier(.645,.045,.355,1),opacity .3s cubic-bezier(.645,.045,.355,1)}.ant-show-help-leave{min-height:24px}.ant-show-help-leave-active{min-height:0}.ant-show-help-item{overflow:hidden;transition:height .3s cubic-bezier(.645,.045,.355,1),opacity .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1)!important}.ant-show-help-item-appear,.ant-show-help-item-enter{transform:translateY(-5px);opacity:0}.ant-show-help-item-appear-active,.ant-show-help-item-enter-active{transform:translateY(0);opacity:1}.ant-show-help-item-leave-active{transform:translateY(-5px)}@keyframes diffZoomIn1{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes diffZoomIn2{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes diffZoomIn3{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}.ant-form-rtl{direction:rtl}.ant-form-rtl .ant-form-item-label{text-align:left}.ant-form-rtl .ant-form-item-label>label.ant-form-item-required:before{margin-right:0;margin-left:4px}.ant-form-rtl .ant-form-item-label>label:after{margin:0 2px 0 8px}.ant-form-rtl .ant-form-item-label>label .ant-form-item-optional{margin-right:4px;margin-left:0}.ant-col-rtl .ant-form-item-control:first-child{width:100%}.ant-form-rtl .ant-form-item-has-feedback .ant-input{padding-right:11px;padding-left:24px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix{padding-right:11px;padding-left:18px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input{padding:0}.ant-form-rtl .ant-form-item-has-feedback .ant-input-number-affix-wrapper .ant-input-number{padding:0}.ant-form-rtl .ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix{right:auto;left:28px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-number{padding-left:18px}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-clear,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-clear,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-clear{right:auto;left:32px}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-selection-selected-value{padding-right:0;padding-left:42px}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-arrow{margin-right:0;margin-left:19px}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-clear{right:auto;left:32px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker{padding-right:11px;padding-left:29.2px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker-large{padding-right:11px;padding-left:29.2px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker-small{padding-right:7px;padding-left:25.2px}.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon{right:auto;left:0}.ant-form-rtl.ant-form-inline .ant-form-item{margin-right:0;margin-left:16px}.ant-input-number-affix-wrapper{display:inline-block;width:100%;min-width:0;color:rgba(0,0,0,.85);font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s;position:relative;display:inline-flex;width:90px;padding:0;-webkit-padding-start:11px;padding-inline-start:11px}.ant-input-number-affix-wrapper::-webkit-input-placeholder{color:#bfbfbf;-webkit-user-select:none;user-select:none}.ant-input-number-affix-wrapper:-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-input-number-affix-wrapper::-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-input-number-affix-wrapper::placeholder{color:#bfbfbf;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-input-number-affix-wrapper:-ms-input-placeholder{text-overflow:ellipsis}.ant-input-number-affix-wrapper:placeholder-shown{text-overflow:ellipsis}.ant-input-number-affix-wrapper:hover{border-color:#40a9ff;border-color:var(--ant-primary-5);border-right-width:1px}.ant-input-number-affix-wrapper-focused,.ant-input-number-affix-wrapper:focus{border-color:#40a9ff;border-color:var(--ant-primary-color-hover);box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px var(--ant-primary-color-outline);border-right-width:1px;outline:0}.ant-input-number-affix-wrapper-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-number-affix-wrapper-disabled:hover{border-color:#d9d9d9;border-right-width:1px}.ant-input-number-affix-wrapper[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-number-affix-wrapper[disabled]:hover{border-color:#d9d9d9;border-right-width:1px}.ant-input-number-affix-wrapper-borderless,.ant-input-number-affix-wrapper-borderless-disabled,.ant-input-number-affix-wrapper-borderless-focused,.ant-input-number-affix-wrapper-borderless:focus,.ant-input-number-affix-wrapper-borderless:hover,.ant-input-number-affix-wrapper-borderless[disabled]{background-color:transparent;border:none;box-shadow:none}textarea.ant-input-number-affix-wrapper{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-input-number-affix-wrapper-lg{padding:6.5px 11px;font-size:16px}.ant-input-number-affix-wrapper-sm{padding:0 7px}.ant-input-number-affix-wrapper:not(.ant-input-number-affix-wrapper-disabled):hover{border-color:#40a9ff;border-color:var(--ant-primary-5);border-right-width:1px;z-index:1}.ant-input-number-affix-wrapper-focused,.ant-input-number-affix-wrapper:focus{z-index:1}.ant-input-number-affix-wrapper-disabled .ant-input-number[disabled]{background:transparent}.ant-input-number-affix-wrapper>div.ant-input-number{width:100%;border:none;outline:none}.ant-input-number-affix-wrapper>div.ant-input-number.ant-input-number-focused{box-shadow:none!important}.ant-input-number-affix-wrapper input.ant-input-number-input{padding:0}.ant-input-number-affix-wrapper:before{width:0;visibility:hidden;content:"\a0"}.ant-input-number-affix-wrapper .ant-input-number-handler-wrap{z-index:2}.ant-input-number-prefix,.ant-input-number-suffix{display:flex;flex:none;align-items:center;pointer-events:none}.ant-input-number-prefix{-webkit-margin-end:4px;margin-inline-end:4px}.ant-input-number-suffix{position:absolute;top:0;right:0;z-index:1;height:100%;margin-right:11px;margin-left:4px}.ant-input-number-group-wrapper .ant-input-number-affix-wrapper{width:100%}.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number,.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover{background:#fff;border-color:#ff4d4f;border-color:var(--ant-error-color)}.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused,.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus{border-color:#ff7875;border-color:var(--ant-error-color-hover);box-shadow:0 0 0 2px rgba(255,77,79,.2);box-shadow:0 0 0 2px var(--ant-error-color-outline);border-right-width:1px;outline:0}.ant-input-number-status-error .ant-input-number-prefix{color:#ff4d4f;color:var(--ant-error-color)}.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number,.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover{background:#fff;border-color:#faad14;border-color:var(--ant-warning-color)}.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused,.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus{border-color:#ffc53d;border-color:var(--ant-warning-color-hover);box-shadow:0 0 0 2px rgba(250,173,20,.2);box-shadow:0 0 0 2px var(--ant-warning-color-outline);border-right-width:1px;outline:0}.ant-input-number-status-warning .ant-input-number-prefix{color:#faad14;color:var(--ant-warning-color)}.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper,.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:hover{background:#fff;border-color:#ff4d4f;border-color:var(--ant-error-color)}.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused,.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus{border-color:#ff7875;border-color:var(--ant-error-color-hover);box-shadow:0 0 0 2px rgba(255,77,79,.2);box-shadow:0 0 0 2px var(--ant-error-color-outline);border-right-width:1px;outline:0}.ant-input-number-affix-wrapper-status-error .ant-input-number-prefix{color:#ff4d4f;color:var(--ant-error-color)}.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper,.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:hover{background:#fff;border-color:#faad14;border-color:var(--ant-warning-color)}.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused,.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus{border-color:#ffc53d;border-color:var(--ant-warning-color-hover);box-shadow:0 0 0 2px rgba(250,173,20,.2);box-shadow:0 0 0 2px var(--ant-warning-color-outline);border-right-width:1px;outline:0}.ant-input-number-affix-wrapper-status-warning .ant-input-number-prefix{color:#faad14;color:var(--ant-warning-color)}.ant-input-number-group-wrapper-status-error .ant-input-number-group-addon{color:#ff4d4f;color:var(--ant-error-color);border-color:#ff4d4f;border-color:var(--ant-error-color)}.ant-input-number-group-wrapper-status-warning .ant-input-number-group-addon{color:#faad14;color:var(--ant-warning-color);border-color:#faad14;border-color:var(--ant-warning-color)}.ant-input-number{box-sizing:border-box;font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum","tnum";position:relative;width:100%;min-width:0;color:rgba(0,0,0,.85);font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;transition:all .3s;display:inline-block;width:90px;margin:0;padding:0;border:1px solid #d9d9d9;border-radius:2px}.ant-input-number::-webkit-input-placeholder{color:#bfbfbf;-webkit-user-select:none;user-select:none}.ant-input-number:-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-input-number::-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-input-number::placeholder{color:#bfbfbf;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-input-number:-ms-input-placeholder{text-overflow:ellipsis}.ant-input-number:placeholder-shown{text-overflow:ellipsis}.ant-input-number-focused,.ant-input-number:focus{border-color:#40a9ff;border-color:var(--ant-primary-color-hover);box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px var(--ant-primary-color-outline);border-right-width:1px;outline:0}.ant-input-number[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-number[disabled]:hover{border-color:#d9d9d9;border-right-width:1px}.ant-input-number-borderless,.ant-input-number-borderless-disabled,.ant-input-number-borderless-focused,.ant-input-number-borderless:focus,.ant-input-number-borderless:hover,.ant-input-number-borderless[disabled]{background-color:transparent;border:none;box-shadow:none}textarea.ant-input-number{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-input-number-lg{padding:6.5px 11px}.ant-input-number-sm{padding:0 7px}.ant-input-number-group{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;display:table;width:100%;border-collapse:separate;border-spacing:0}.ant-input-number-group[class*=col-]{float:none;padding-right:0;padding-left:0}.ant-input-number-group>[class*=col-]{padding-right:8px}.ant-input-number-group>[class*=col-]:last-child{padding-right:0}.ant-input-number-group-addon,.ant-input-number-group-wrap,.ant-input-number-group>.ant-input-number{display:table-cell}.ant-input-number-group-addon:not(:first-child):not(:last-child),.ant-input-number-group-wrap:not(:first-child):not(:last-child),.ant-input-number-group>.ant-input-number:not(:first-child):not(:last-child){border-radius:0}.ant-input-number-group-addon,.ant-input-number-group-wrap{width:1px;white-space:nowrap;vertical-align:middle}.ant-input-number-group-wrap>*{display:block!important}.ant-input-number-group .ant-input-number{float:left;width:100%;margin-bottom:0;text-align:inherit}.ant-input-number-group .ant-input-number:focus{z-index:1;border-right-width:1px}.ant-input-number-group .ant-input-number:hover{z-index:1;border-right-width:1px}.ant-input-search-with-button .ant-input-number-group .ant-input-number:hover{z-index:0}.ant-input-number-group-addon{position:relative;padding:0 11px;color:rgba(0,0,0,.85);font-weight:400;font-size:14px;text-align:center;background-color:#fafafa;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s}.ant-input-number-group-addon .ant-select{margin:-5px -11px}.ant-input-number-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{background-color:inherit;border:1px solid transparent;box-shadow:none}.ant-input-number-group-addon .ant-select-focused .ant-select-selector,.ant-input-number-group-addon .ant-select-open .ant-select-selector{color:#1890ff;color:var(--ant-primary-color)}.ant-input-number-group-addon .ant-cascader-picker{margin:-9px -12px;background-color:transparent}.ant-input-number-group-addon .ant-cascader-picker .ant-cascader-input{text-align:left;border:0;box-shadow:none}.ant-input-number-group-addon:first-child,.ant-input-number-group>.ant-input-number:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-number-group-addon:first-child .ant-select .ant-select-selector,.ant-input-number-group>.ant-input-number:first-child .ant-select .ant-select-selector{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-number-group>.ant-input-number-affix-wrapper:not(:first-child) .ant-input-number{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-number-group>.ant-input-number-affix-wrapper:not(:last-child) .ant-input-number{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-number-group-addon:first-child{border-right:0}.ant-input-number-group-addon:last-child{border-left:0}.ant-input-number-group-addon:last-child,.ant-input-number-group>.ant-input-number:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-number-group-addon:last-child .ant-select .ant-select-selector,.ant-input-number-group>.ant-input-number:last-child .ant-select .ant-select-selector{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-number-group-lg .ant-input-number,.ant-input-number-group-lg>.ant-input-number-group-addon{padding:6.5px 11px;font-size:16px}.ant-input-number-group-sm .ant-input-number,.ant-input-number-group-sm>.ant-input-number-group-addon{padding:0 7px}.ant-input-number-group-lg .ant-select-single .ant-select-selector{height:40px}.ant-input-number-group-sm .ant-select-single .ant-select-selector{height:24px}.ant-input-number-group .ant-input-number-affix-wrapper:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-search .ant-input-number-group .ant-input-number-affix-wrapper:not(:last-child){border-top-left-radius:2px;border-bottom-left-radius:2px}.ant-input-number-group .ant-input-number-affix-wrapper:not(:first-child),.ant-input-search .ant-input-number-group .ant-input-number-affix-wrapper:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-number-group.ant-input-number-group-compact{display:block}.ant-input-number-group.ant-input-number-group-compact:before{display:table;content:""}.ant-input-number-group.ant-input-number-group-compact:after{display:table;clear:both;content:""}.ant-input-number-group.ant-input-number-group-compact-addon:not(:first-child):not(:last-child),.ant-input-number-group.ant-input-number-group-compact-wrap:not(:first-child):not(:last-child),.ant-input-number-group.ant-input-number-group-compact>.ant-input-number:not(:first-child):not(:last-child){border-right-width:1px}.ant-input-number-group.ant-input-number-group-compact-addon:not(:first-child):not(:last-child):hover,.ant-input-number-group.ant-input-number-group-compact-wrap:not(:first-child):not(:last-child):hover,.ant-input-number-group.ant-input-number-group-compact>.ant-input-number:not(:first-child):not(:last-child):hover{z-index:1}.ant-input-number-group.ant-input-number-group-compact-addon:not(:first-child):not(:last-child):focus,.ant-input-number-group.ant-input-number-group-compact-wrap:not(:first-child):not(:last-child):focus,.ant-input-number-group.ant-input-number-group-compact>.ant-input-number:not(:first-child):not(:last-child):focus{z-index:1}.ant-input-number-group.ant-input-number-group-compact>*{display:inline-block;float:none;vertical-align:top;border-radius:0}.ant-input-number-group.ant-input-number-group-compact>.ant-input-number-affix-wrapper{display:inline-flex}.ant-input-number-group.ant-input-number-group-compact>.ant-picker-range{display:inline-flex}.ant-input-number-group.ant-input-number-group-compact>:not(:last-child){margin-right:-1px;border-right-width:1px}.ant-input-number-group.ant-input-number-group-compact .ant-input-number{float:none}.ant-input-number-group.ant-input-number-group-compact>.ant-cascader-picker .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-input-group-wrapper .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-select-auto-complete .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-select>.ant-select-selector{border-right-width:1px;border-radius:0}.ant-input-number-group.ant-input-number-group-compact>.ant-cascader-picker .ant-input:hover,.ant-input-number-group.ant-input-number-group-compact>.ant-input-group-wrapper .ant-input:hover,.ant-input-number-group.ant-input-number-group-compact>.ant-select-auto-complete .ant-input:hover,.ant-input-number-group.ant-input-number-group-compact>.ant-select>.ant-select-selector:hover{z-index:1}.ant-input-number-group.ant-input-number-group-compact>.ant-cascader-picker .ant-input:focus,.ant-input-number-group.ant-input-number-group-compact>.ant-input-group-wrapper .ant-input:focus,.ant-input-number-group.ant-input-number-group-compact>.ant-select-auto-complete .ant-input:focus,.ant-input-number-group.ant-input-number-group-compact>.ant-select>.ant-select-selector:focus{z-index:1}.ant-input-number-group.ant-input-number-group-compact>.ant-select-focused{z-index:1}.ant-input-number-group.ant-input-number-group-compact>.ant-select>.ant-select-arrow{z-index:1}.ant-input-number-group.ant-input-number-group-compact>.ant-cascader-picker:first-child .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-select-auto-complete:first-child .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-select:first-child>.ant-select-selector,.ant-input-number-group.ant-input-number-group-compact>:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.ant-input-number-group.ant-input-number-group-compact>.ant-cascader-picker-focused:last-child .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-cascader-picker:last-child .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-select:last-child>.ant-select-selector,.ant-input-number-group.ant-input-number-group-compact>:last-child{border-right-width:1px;border-top-right-radius:2px;border-bottom-right-radius:2px}.ant-input-number-group.ant-input-number-group-compact>.ant-select-auto-complete .ant-input{vertical-align:top}.ant-input-number-group.ant-input-number-group-compact .ant-input-group-wrapper+.ant-input-group-wrapper{margin-left:-1px}.ant-input-number-group.ant-input-number-group-compact .ant-input-group-wrapper+.ant-input-group-wrapper .ant-input-affix-wrapper{border-radius:0}.ant-input-number-group.ant-input-number-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search>.ant-input-group>.ant-input-group-addon>.ant-input-search-button{border-radius:0}.ant-input-number-group.ant-input-number-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search>.ant-input-group>.ant-input{border-radius:2px 0 0 2px}.ant-input-number-group>.ant-input-number-rtl:first-child{border-radius:0 2px 2px 0}.ant-input-number-group>.ant-input-number-rtl:last-child{border-radius:2px 0 0 2px}.ant-input-number-group-rtl .ant-input-number-group-addon:first-child{border-right:1px solid #d9d9d9;border-left:0;border-radius:0 2px 2px 0}.ant-input-number-group-rtl .ant-input-number-group-addon:last-child{border-right:0;border-left:1px solid #d9d9d9;border-radius:2px 0 0 2px}.ant-input-number-group-wrapper{display:inline-block;text-align:start;vertical-align:top}.ant-input-number-handler{position:relative;display:block;width:100%;height:50%;overflow:hidden;color:rgba(0,0,0,.45);font-weight:700;line-height:0;text-align:center;border-left:1px solid #d9d9d9;transition:all .1s linear}.ant-input-number-handler:active{background:#f4f4f4}.ant-input-number-handler:hover .ant-input-number-handler-down-inner,.ant-input-number-handler:hover .ant-input-number-handler-up-inner{color:#40a9ff;color:var(--ant-primary-5)}.ant-input-number-handler-down-inner,.ant-input-number-handler-up-inner{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;right:4px;width:12px;height:12px;color:rgba(0,0,0,.45);line-height:12px;transition:all .1s linear;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-input-number-handler-down-inner>*,.ant-input-number-handler-up-inner>*{line-height:1}.ant-input-number-handler-down-inner svg,.ant-input-number-handler-up-inner svg{display:inline-block}.ant-input-number-handler-down-inner:before,.ant-input-number-handler-up-inner:before{display:none}.ant-input-number-handler-down-inner .ant-input-number-handler-down-inner-icon,.ant-input-number-handler-down-inner .ant-input-number-handler-up-inner-icon,.ant-input-number-handler-up-inner .ant-input-number-handler-down-inner-icon,.ant-input-number-handler-up-inner .ant-input-number-handler-up-inner-icon{display:block}.ant-input-number:hover{border-color:#40a9ff;border-color:var(--ant-primary-5);border-right-width:1px}.ant-input-number:hover+.ant-form-item-children-icon{opacity:0;transition:opacity .24s linear .24s}.ant-input-number-focused{border-color:#40a9ff;border-color:var(--ant-primary-color-hover);box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px var(--ant-primary-color-outline);border-right-width:1px;outline:0}.ant-input-number-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-number-disabled:hover{border-color:#d9d9d9;border-right-width:1px}.ant-input-number-disabled .ant-input-number-input{cursor:not-allowed}.ant-input-number-disabled .ant-input-number-handler-wrap{display:none}.ant-input-number-readonly .ant-input-number-handler-wrap{display:none}.ant-input-number-input{width:100%;height:30px;padding:0 11px;text-align:left;background-color:transparent;border:0;border-radius:2px;outline:0;transition:all .3s linear;-webkit-appearance:textfield!important;-moz-appearance:textfield!important;appearance:textfield!important}.ant-input-number-input::-webkit-input-placeholder{color:#bfbfbf;-webkit-user-select:none;user-select:none}.ant-input-number-input:-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-input-number-input::-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-input-number-input::placeholder{color:#bfbfbf;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-input-number-input:-ms-input-placeholder{text-overflow:ellipsis}.ant-input-number-input:placeholder-shown{text-overflow:ellipsis}.ant-input-number-input[type=number]::-webkit-inner-spin-button,.ant-input-number-input[type=number]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;appearance:none}.ant-input-number-lg{padding:0;font-size:16px}.ant-input-number-lg input{height:38px}.ant-input-number-sm{padding:0}.ant-input-number-sm input{height:22px;padding:0 7px}.ant-input-number-handler-wrap{position:absolute;top:0;right:0;width:22px;height:100%;background:#fff;border-radius:0 2px 2px 0;opacity:0;transition:opacity .24s linear .1s}.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-down-inner,.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-up-inner{display:flex;align-items:center;justify-content:center;min-width:auto;margin-right:0;font-size:7px}.ant-input-number-borderless .ant-input-number-handler-wrap{border-left-width:0}.ant-input-number-handler-wrap:hover .ant-input-number-handler{height:40%}.ant-input-number-focused .ant-input-number-handler-wrap,.ant-input-number:hover .ant-input-number-handler-wrap{opacity:1}.ant-input-number-handler-up{border-top-right-radius:2px;cursor:pointer}.ant-input-number-handler-up-inner{top:50%;margin-top:-5px;text-align:center}.ant-input-number-handler-up:hover{height:60%!important}.ant-input-number-handler-down{top:0;border-top:1px solid #d9d9d9;border-bottom-right-radius:2px;cursor:pointer}.ant-input-number-handler-down-inner{top:50%;text-align:center;transform:translateY(-50%)}.ant-input-number-handler-down:hover{height:60%!important}.ant-input-number-borderless .ant-input-number-handler-down{border-top-width:0}.ant-input-number-handler-down-disabled,.ant-input-number-handler-up-disabled{cursor:not-allowed}.ant-input-number-handler-down-disabled:hover .ant-input-number-handler-down-inner,.ant-input-number-handler-up-disabled:hover .ant-input-number-handler-up-inner{color:rgba(0,0,0,.25)}.ant-input-number-borderless{box-shadow:none}.ant-input-number-out-of-range input{color:#ff4d4f;color:var(--ant-error-color)}.ant-input-number-rtl{direction:rtl}.ant-input-number-rtl .ant-input-number-handler{border-right:1px solid #d9d9d9;border-left:0}.ant-input-number-rtl .ant-input-number-handler-wrap{right:auto;left:0}.ant-input-number-rtl.ant-input-number-borderless .ant-input-number-handler-wrap{border-right-width:0}.ant-input-number-rtl .ant-input-number-handler-up{border-top-right-radius:0}.ant-input-number-rtl .ant-input-number-handler-down{border-bottom-right-radius:0}.ant-input-number-rtl .ant-input-number-input{direction:ltr;text-align:right}.ant-progress{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-block}.ant-progress-line{position:relative;width:100%;font-size:14px}.ant-progress-steps{display:inline-block}.ant-progress-steps-outer{display:flex;flex-direction:row;align-items:center}.ant-progress-steps-item{flex-shrink:0;min-width:2px;margin-right:2px;background:#f3f3f3;transition:all .3s}.ant-progress-steps-item-active{background:#1890ff;background:var(--ant-primary-color)}.ant-progress-small.ant-progress-line,.ant-progress-small.ant-progress-line .ant-progress-text .anticon{font-size:12px}.ant-progress-outer{display:inline-block;width:100%;margin-right:0;padding-right:0}.ant-progress-show-info .ant-progress-outer{margin-right:calc(-2em - 8px);padding-right:calc(2em + 8px)}.ant-progress-inner{position:relative;display:inline-block;width:100%;overflow:hidden;vertical-align:middle;background-color:rgba(0,0,0,.04);border-radius:100px}.ant-progress-circle-trail{stroke:rgba(0,0,0,.04)}.ant-progress-circle-path{animation:ant-progress-appear .3s}.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#1890ff;stroke:var(--ant-primary-color)}.ant-progress-bg,.ant-progress-success-bg{position:relative;background-color:#1890ff;background-color:var(--ant-primary-color);border-radius:100px;transition:all .4s cubic-bezier(.08,.82,.17,1) 0s}.ant-progress-success-bg{position:absolute;top:0;left:0;background-color:#52c41a;background-color:var(--ant-success-color)}.ant-progress-text{display:inline-block;width:2em;margin-left:8px;color:rgba(0,0,0,.85);font-size:1em;line-height:1;white-space:nowrap;text-align:left;vertical-align:middle;word-break:normal}.ant-progress-text .anticon{font-size:14px}.ant-progress-status-active .ant-progress-bg:before{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;border-radius:10px;opacity:0;animation:ant-progress-active 2.4s cubic-bezier(.23,1,.32,1) infinite;content:""}.ant-progress-status-exception .ant-progress-bg{background-color:#ff4d4f;background-color:var(--ant-error-color)}.ant-progress-status-exception .ant-progress-text{color:#ff4d4f;color:var(--ant-error-color)}.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#ff4d4f;stroke:var(--ant-error-color)}.ant-progress-status-success .ant-progress-bg{background-color:#52c41a;background-color:var(--ant-success-color)}.ant-progress-status-success .ant-progress-text{color:#52c41a;color:var(--ant-success-color)}.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#52c41a;stroke:var(--ant-success-color)}.ant-progress-circle .ant-progress-inner{position:relative;line-height:1;background-color:transparent}.ant-progress-circle .ant-progress-text{position:absolute;top:50%;left:50%;width:100%;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:1em;line-height:1;white-space:normal;text-align:center;transform:translate(-50%,-50%)}.ant-progress-circle .ant-progress-text .anticon{font-size:1.16666667em}.ant-progress-circle.ant-progress-status-exception .ant-progress-text{color:#ff4d4f;color:var(--ant-error-color)}.ant-progress-circle.ant-progress-status-success .ant-progress-text{color:#52c41a;color:var(--ant-success-color)}@keyframes ant-progress-active{0%{transform:translateX(-100%) scaleX(0);opacity:.1}20%{transform:translateX(-100%) scaleX(0);opacity:.5}to{transform:translateX(0) scaleX(1);opacity:0}}.ant-progress-rtl{direction:rtl}.ant-progress-rtl.ant-progress-show-info .ant-progress-outer{margin-right:0;margin-left:calc(-2em - 8px);padding-right:0;padding-left:calc(2em + 8px)}.ant-progress-rtl .ant-progress-success-bg{right:0;left:auto}.ant-progress-rtl.ant-progress-line .ant-progress-text,.ant-progress-rtl.ant-progress-steps .ant-progress-text{margin-right:8px;margin-left:0;text-align:right}.ant-image{position:relative;display:inline-block}.ant-image-img{width:100%;height:auto;vertical-align:middle}.ant-image-img-placeholder{background-color:#f5f5f5;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjUgMi41aC0xM0EuNS41IDAgMDAxIDN2MTBhLjUuNSAwIDAwLjUuNWgxM2EuNS41IDAgMDAuNS0uNVYzYS41LjUgMCAwMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwMTAgMiAxIDEgMCAwMTAtMnptOC4wMyA2LjgzYS4xMjcuMTI3IDAgMDEtLjA4MS4wM0gyLjc2OWEuMTI1LjEyNSAwIDAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAxLjE3Ny0uMDE2bC4wMTYuMDE2TDcuMDggMTAuMDlsMi40Ny0yLjkzYS4xMjYuMTI2IDAgMDEuMTc3LS4wMTZsLjAxNS4wMTYgMy41ODggNC4yNDRhLjEyNy4xMjcgMCAwMS0uMDIuMTc1eiIgZmlsbD0iIzhDOEM4QyIvPjwvc3ZnPg==");background-repeat:no-repeat;background-position:50%;background-size:30%}.ant-image-mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(0,0,0,.5);cursor:pointer;opacity:0;transition:opacity .3s}.ant-image-mask-info{padding:0 4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-image-mask-info .anticon{-webkit-margin-end:4px;margin-inline-end:4px}.ant-image-mask:hover{opacity:1}.ant-image-placeholder{position:absolute;top:0;right:0;bottom:0;left:0}.ant-image-preview{pointer-events:none;height:100%;text-align:center}.ant-image-preview.ant-zoom-appear,.ant-image-preview.ant-zoom-enter{transform:none;opacity:0;animation-duration:.3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-image-preview-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100%;background-color:rgba(0,0,0,.45)}.ant-image-preview-mask-hidden{display:none}.ant-image-preview-wrap{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch}.ant-image-preview-body{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.ant-image-preview-img{max-width:100%;max-height:100%;vertical-align:middle;transform:scaleX(1);cursor:-webkit-grab;cursor:grab;transition:transform .3s cubic-bezier(.215,.61,.355,1) 0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:auto}.ant-image-preview-img-wrapper{position:absolute;top:0;right:0;bottom:0;left:0;transition:transform .3s cubic-bezier(.215,.61,.355,1) 0s}.ant-image-preview-img-wrapper:before{display:inline-block;width:1px;height:50%;margin-right:-1px;content:""}.ant-image-preview-moving .ant-image-preview-img{cursor:-webkit-grabbing;cursor:grabbing}.ant-image-preview-moving .ant-image-preview-img-wrapper{transition-duration:0s}.ant-image-preview-wrap{z-index:1080}.ant-image-preview-operations{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum","tnum";position:absolute;top:0;right:0;z-index:1;display:flex;flex-direction:row-reverse;align-items:center;width:100%;color:hsla(0,0%,100%,.85);list-style:none;background:rgba(0,0,0,.1);pointer-events:auto}.ant-image-preview-operations-operation{margin-left:12px;padding:12px;cursor:pointer}.ant-image-preview-operations-operation-disabled{color:hsla(0,0%,100%,.25);pointer-events:none}.ant-image-preview-operations-operation:last-of-type{margin-left:0}.ant-image-preview-operations-progress{position:absolute;left:50%;transform:translateX(-50%)}.ant-image-preview-operations-icon{font-size:18px}.ant-image-preview-switch-left,.ant-image-preview-switch-right{position:absolute;top:50%;right:10px;z-index:1;display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-top:-22px;color:hsla(0,0%,100%,.85);background:rgba(0,0,0,.1);border-radius:50%;cursor:pointer;pointer-events:auto}.ant-image-preview-switch-left-disabled,.ant-image-preview-switch-right-disabled{color:hsla(0,0%,100%,.25);cursor:not-allowed}.ant-image-preview-switch-left-disabled>.anticon,.ant-image-preview-switch-right-disabled>.anticon{cursor:not-allowed}.ant-image-preview-switch-left>.anticon,.ant-image-preview-switch-right>.anticon{font-size:18px}.ant-image-preview-switch-left{left:10px}.ant-image-preview-switch-right{right:10px}.ant-rate{box-sizing:border-box;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum","tnum";display:inline-block;margin:0;padding:0;color:#fadb14;font-size:20px;line-height:unset;list-style:none;outline:none}.ant-rate-disabled .ant-rate-star{cursor:default}.ant-rate-disabled .ant-rate-star>div:hover{transform:scale(1)}.ant-rate-star{position:relative;display:inline-block;color:inherit;cursor:pointer}.ant-rate-star:not(:last-child){margin-right:8px}.ant-rate-star>div{transition:all .3s,outline 0s}.ant-rate-star>div:hover{transform:scale(1.1)}.ant-rate-star>div:focus{outline:0}.ant-rate-star>div:focus-visible{outline:1px dashed #fadb14;transform:scale(1.1)}.ant-rate-star-first,.ant-rate-star-second{color:rgba(0,0,0,.06);transition:all .3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-rate-star-first .anticon,.ant-rate-star-second .anticon{vertical-align:middle}.ant-rate-star-first{position:absolute;top:0;left:0;width:50%;height:100%;overflow:hidden;opacity:0}.ant-rate-star-half .ant-rate-star-first,.ant-rate-star-half .ant-rate-star-second{opacity:1}.ant-rate-star-full .ant-rate-star-second,.ant-rate-star-half .ant-rate-star-first{color:inherit}.ant-rate-text{display:inline-block;margin:0 8px;font-size:14px}.ant-rate-rtl{direction:rtl}.ant-rate-rtl .ant-rate-star:not(:last-child){margin-right:0;margin-left:8px}.ant-rate-rtl .ant-rate-star-first{right:0;left:auto}.ant-cascader-checkbox{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-cascader-checkbox-input:focus+.ant-cascader-checkbox-inner,.ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox-inner,.ant-cascader-checkbox:hover .ant-cascader-checkbox-inner{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-cascader-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);border-radius:2px;visibility:hidden;animation:antCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;content:""}.ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox:after,.ant-cascader-checkbox:hover:after{visibility:visible}.ant-cascader-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all .3s}.ant-cascader-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-cascader-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner{background-color:#1890ff;background-color:var(--ant-primary-color);border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-cascader-checkbox-disabled{cursor:not-allowed}.ant-cascader-checkbox-disabled.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner:after{border-color:rgba(0,0,0,.25);animation-name:none}.ant-cascader-checkbox-disabled .ant-cascader-checkbox-input{cursor:not-allowed;pointer-events:none}.ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner:after{border-color:#f5f5f5;border-collapse:separate;animation-name:none}.ant-cascader-checkbox-disabled+span{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-cascader-checkbox-disabled:hover:after,.ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox-disabled:after{visibility:hidden}.ant-cascader-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-cascader-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\a0"}.ant-cascader-checkbox-wrapper.ant-cascader-checkbox-wrapper-disabled{cursor:not-allowed}.ant-cascader-checkbox-wrapper+.ant-cascader-checkbox-wrapper{margin-left:8px}.ant-cascader-checkbox-wrapper.ant-cascader-checkbox-wrapper-in-form-item input[type=checkbox]{width:14px;height:14px}.ant-cascader-checkbox+span{padding-right:8px;padding-left:8px}.ant-cascader-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-block}.ant-cascader-checkbox-group-item{margin-right:8px}.ant-cascader-checkbox-group-item:last-child{margin-right:0}.ant-cascader-checkbox-group-item+.ant-cascader-checkbox-group-item{margin-left:0}.ant-cascader-checkbox-indeterminate .ant-cascader-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-cascader-checkbox-indeterminate .ant-cascader-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#1890ff;background-color:var(--ant-primary-color);border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-cascader-checkbox-indeterminate.ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner:after{background-color:rgba(0,0,0,.25);border-color:rgba(0,0,0,.25)}.ant-cascader{width:184px}.ant-cascader-checkbox{top:0;margin-right:8px}.ant-cascader-menus{display:flex;flex-wrap:nowrap;align-items:flex-start}.ant-cascader-menus.ant-cascader-menu-empty .ant-cascader-menu{width:100%;height:auto}.ant-cascader-menu{flex-grow:1;min-width:111px;height:180px;margin:-4px 0;padding:4px 0;overflow:auto;vertical-align:top;list-style:none;border-right:1px solid rgba(0,0,0,.06);-ms-overflow-style:-ms-autohiding-scrollbar}.ant-cascader-menu-item{display:flex;flex-wrap:nowrap;align-items:center;padding:5px 12px;overflow:hidden;line-height:22px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;transition:all .3s}.ant-cascader-menu-item:hover{background:#f5f5f5}.ant-cascader-menu-item-disabled{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-cascader-menu-item-disabled:hover{background:transparent}.ant-cascader-menu-empty .ant-cascader-menu-item{color:rgba(0,0,0,.25);cursor:default;pointer-events:none}.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled),.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover{font-weight:600;background-color:#e6f7ff;background-color:var(--ant-primary-1)}.ant-cascader-menu-item-content{flex:auto}.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,.ant-cascader-menu-item-loading-icon{margin-left:4px;color:rgba(0,0,0,.45);font-size:10px}.ant-cascader-menu-item-disabled.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,.ant-cascader-menu-item-disabled.ant-cascader-menu-item-loading-icon{color:rgba(0,0,0,.25)}.ant-cascader-menu-item-keyword{color:#ff4d4f}.ant-cascader-rtl .ant-cascader-menu-item-expand-icon,.ant-cascader-rtl .ant-cascader-menu-item-loading-icon{margin-right:4px;margin-left:0}.ant-cascader-rtl .ant-cascader-checkbox{top:0;margin-right:0;margin-left:8px}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}@keyframes ant-tree-node-fx-do-not-use{0%{opacity:0}to{opacity:1}}@keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-select-tree-checkbox{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-select-tree-checkbox-input:focus+.ant-select-tree-checkbox-inner,.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-inner,.ant-select-tree-checkbox:hover .ant-select-tree-checkbox-inner{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-select-tree-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);border-radius:2px;visibility:hidden;animation:antCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;content:""}.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox:after,.ant-select-tree-checkbox:hover:after{visibility:visible}.ant-select-tree-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all .3s}.ant-select-tree-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-select-tree-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner{background-color:#1890ff;background-color:var(--ant-primary-color);border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-select-tree-checkbox-disabled{cursor:not-allowed}.ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after{border-color:rgba(0,0,0,.25);animation-name:none}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-input{cursor:not-allowed;pointer-events:none}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after{border-color:#f5f5f5;border-collapse:separate;animation-name:none}.ant-select-tree-checkbox-disabled+span{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-select-tree-checkbox-disabled:hover:after,.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-disabled:after{visibility:hidden}.ant-select-tree-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-select-tree-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\a0"}.ant-select-tree-checkbox-wrapper.ant-select-tree-checkbox-wrapper-disabled{cursor:not-allowed}.ant-select-tree-checkbox-wrapper+.ant-select-tree-checkbox-wrapper{margin-left:8px}.ant-select-tree-checkbox-wrapper.ant-select-tree-checkbox-wrapper-in-form-item input[type=checkbox]{width:14px;height:14px}.ant-select-tree-checkbox+span{padding-right:8px;padding-left:8px}.ant-select-tree-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-block}.ant-select-tree-checkbox-group-item{margin-right:8px}.ant-select-tree-checkbox-group-item:last-child{margin-right:0}.ant-select-tree-checkbox-group-item+.ant-select-tree-checkbox-group-item{margin-left:0}.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#1890ff;background-color:var(--ant-primary-color);border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after{background-color:rgba(0,0,0,.25);border-color:rgba(0,0,0,.25)}.ant-tree-select-dropdown{padding:8px 4px}.ant-tree-select-dropdown-rtl{direction:rtl}.ant-tree-select-dropdown .ant-select-tree{border-radius:0}.ant-tree-select-dropdown .ant-select-tree-list-holder-inner{align-items:stretch}.ant-tree-select-dropdown .ant-select-tree-list-holder-inner .ant-select-tree-treenode .ant-select-tree-node-content-wrapper{flex:auto}.ant-select-tree{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";background:#fff;border-radius:2px;transition:background-color .3s}.ant-select-tree-focused:not(:hover):not(.ant-select-tree-active-focused){background:#e6f7ff;background:var(--ant-primary-1)}.ant-select-tree-list-holder-inner{align-items:flex-start}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner{align-items:stretch}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-node-content-wrapper{flex:auto}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-treenode.dragging{position:relative}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-treenode.dragging:after{position:absolute;top:0;right:0;bottom:4px;left:0;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);opacity:0;animation:ant-tree-node-fx-do-not-use .3s;animation-play-state:running;animation-fill-mode:forwards;content:"";pointer-events:none}.ant-select-tree .ant-select-tree-treenode{display:flex;align-items:flex-start;padding:0 0 4px;outline:none}.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper:hover{background:transparent}.ant-select-tree .ant-select-tree-treenode-active .ant-select-tree-node-content-wrapper{background:#f5f5f5}.ant-select-tree .ant-select-tree-treenode:not(.ant-select-tree .ant-select-tree-treenode-disabled).filter-node .ant-select-tree-title{color:inherit;font-weight:500}.ant-select-tree-indent{align-self:stretch;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-select-tree-indent-unit{display:inline-block;width:24px}.ant-select-tree-draggable-icon{width:24px;line-height:24px;text-align:center;opacity:.2;transition:opacity .3s}.ant-select-tree-treenode:hover .ant-select-tree-draggable-icon{opacity:.45}.ant-select-tree-switcher{position:relative;flex:none;align-self:stretch;width:24px;margin:0;line-height:24px;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-select-tree-switcher .ant-select-tree-switcher-icon,.ant-select-tree-switcher .ant-tree-switcher-icon{display:inline-block;font-size:10px;vertical-align:baseline}.ant-select-tree-switcher .ant-select-tree-switcher-icon svg,.ant-select-tree-switcher .ant-tree-switcher-icon svg{transition:transform .3s}.ant-select-tree-switcher-noop{cursor:default}.ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg{transform:rotate(-90deg)}.ant-select-tree-switcher-loading-icon{color:#1890ff;color:var(--ant-primary-color)}.ant-select-tree-switcher-leaf-line{position:relative;z-index:1;display:inline-block;width:100%;height:100%}.ant-select-tree-switcher-leaf-line:before{position:absolute;top:0;right:12px;bottom:-4px;margin-left:-1px;border-right:1px solid #d9d9d9;content:" "}.ant-select-tree-switcher-leaf-line:after{position:absolute;width:10px;height:14px;border-bottom:1px solid #d9d9d9;content:" "}.ant-select-tree-checkbox{top:auto;margin:4px 8px 0 0}.ant-select-tree .ant-select-tree-node-content-wrapper{position:relative;z-index:auto;min-height:24px;margin:0;padding:0 4px;color:inherit;line-height:24px;background:transparent;border-radius:2px;cursor:pointer;transition:all .3s,border 0s,line-height 0s,box-shadow 0s}.ant-select-tree .ant-select-tree-node-content-wrapper:hover{background-color:#f5f5f5}.ant-select-tree .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected{background-color:#bae7ff;background-color:var(--ant-primary-2)}.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle{display:inline-block;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:top}.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle:empty{display:none}.ant-select-tree-unselectable .ant-select-tree-node-content-wrapper:hover{background-color:transparent}.ant-select-tree-node-content-wrapper{line-height:24px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-select-tree-node-content-wrapper .ant-tree-drop-indicator{position:absolute;z-index:1;height:2px;background-color:#1890ff;background-color:var(--ant-primary-color);border-radius:1px;pointer-events:none}.ant-select-tree-node-content-wrapper .ant-tree-drop-indicator:after{position:absolute;top:-3px;left:-6px;width:8px;height:8px;background-color:transparent;border:2px solid #1890ff;border:2px solid var(--ant-primary-color);border-radius:50%;content:""}.ant-select-tree .ant-select-tree-treenode.drop-container>[draggable]{box-shadow:0 0 0 2px #1890ff;box-shadow:0 0 0 2px var(--ant-primary-color)}.ant-select-tree-show-line .ant-select-tree-indent-unit{position:relative;height:100%}.ant-select-tree-show-line .ant-select-tree-indent-unit:before{position:absolute;top:0;right:12px;bottom:-4px;border-right:1px solid #d9d9d9;content:""}.ant-select-tree-show-line .ant-select-tree-indent-unit-end:before{display:none}.ant-select-tree-show-line .ant-select-tree-switcher{background:#fff}.ant-select-tree-show-line .ant-select-tree-switcher-line-icon{vertical-align:-.15em}.ant-select-tree .ant-select-tree-treenode-leaf-last .ant-select-tree-switcher-leaf-line:before{top:auto!important;bottom:auto!important;height:14px!important}.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg{transform:rotate(90deg)}.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher-loading-icon{transform:scaleY(-1)} \ No newline at end of file diff --git a/609.591239b2.async.js b/609.591239b2.async.js new file mode 100644 index 00000000..51470363 --- /dev/null +++ b/609.591239b2.async.js @@ -0,0 +1,37 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[609],{16165:function(U,P,b){"use strict";var p=b(28991),d=b(96156),v=b(81253),h=b(67294),a=b(94184),o=b.n(a),n=b(63017),t=b(41755),e=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],r=h.forwardRef(function(i,u){var c=i.className,s=i.component,l=i.viewBox,f=i.spin,g=i.rotate,y=i.tabIndex,m=i.onClick,x=i.children,w=(0,v.Z)(i,e);(0,t.Kp)(Boolean(s||x),"Should have `component` prop or `children`."),(0,t.C3)();var M=h.useContext(n.Z),S=M.prefixCls,O=S===void 0?"anticon":S,A=o()(O,c),E=o()((0,d.Z)({},"".concat(O,"-spin"),!!f)),_=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,C=(0,p.Z)((0,p.Z)({},t.vD),{},{className:E,style:_,viewBox:l});l||delete C.viewBox;var k=function(){return s?h.createElement(s,(0,p.Z)({},C),x):x?((0,t.Kp)(Boolean(l)||h.Children.count(x)===1&&h.isValidElement(x)&&h.Children.only(x).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),h.createElement("svg",(0,p.Z)((0,p.Z)({},C),{},{viewBox:l}),x)):null},T=y;return T===void 0&&m&&(T=-1),h.createElement("span",(0,p.Z)((0,p.Z)({role:"img"},w),{},{ref:u,tabIndex:T,onClick:m,className:A}),k())});r.displayName="AntdIcon",P.Z=r},91321:function(U,P,b){"use strict";b.d(P,{Z:function(){return e}});var p=b(28991),d=b(81253),v=b(67294),h=b(16165),a=["type","children"],o=new Set;function n(r){return Boolean(typeof r=="string"&&r.length&&!o.has(r))}function t(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=r[i];if(n(u)){var c=document.createElement("script");c.setAttribute("src",u),c.setAttribute("data-namespace",u),r.length>i+1&&(c.onload=function(){t(r,i+1)},c.onerror=function(){t(r,i+1)}),o.add(u),document.body.appendChild(c)}}function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.scriptUrl,u=r.extraCommonProps,c=u===void 0?{}:u;i&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(i)?t(i.reverse()):t([i]));var s=v.forwardRef(function(l,f){var g=l.type,y=l.children,m=(0,d.Z)(l,a),x=null;return l.type&&(x=v.createElement("use",{xlinkHref:"#".concat(g)})),y&&(x=y),v.createElement(h.Z,(0,p.Z)((0,p.Z)((0,p.Z)({},c),m),{},{ref:f}),x)});return s.displayName="Iconfont",s}},66213:function(U,P,b){"use strict";b.d(P,{Z:function(){return v}});var p=b(77608);function d(h,a){for(;!Object.prototype.hasOwnProperty.call(h,a)&&(h=(0,p.Z)(h),h!==null););return h}function v(){return typeof Reflect!="undefined"&&Reflect.get?v=Reflect.get.bind():v=function(a,o,n){var t=d(a,o);if(!!t){var e=Object.getOwnPropertyDescriptor(t,o);return e.get?e.get.call(arguments.length<3?a:n):e.value}},v.apply(this,arguments)}},20532:function(U){(function(P,b){U.exports=b()})(window,function(){return function(P){var b={};function p(d){if(b[d])return b[d].exports;var v=b[d]={i:d,l:!1,exports:{}};return P[d].call(v.exports,v,v.exports,p),v.l=!0,v.exports}return p.m=P,p.c=b,p.d=function(d,v,h){p.o(d,v)||Object.defineProperty(d,v,{enumerable:!0,get:h})},p.r=function(d){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},p.t=function(d,v){if(1&v&&(d=p(d)),8&v||4&v&&typeof d=="object"&&d&&d.__esModule)return d;var h=Object.create(null);if(p.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:d}),2&v&&typeof d!="string")for(var a in d)p.d(h,a,function(o){return d[o]}.bind(null,a));return h},p.n=function(d){var v=d&&d.__esModule?function(){return d.default}:function(){return d};return p.d(v,"a",v),v},p.o=function(d,v){return Object.prototype.hasOwnProperty.call(d,v)},p.p="",p(p.s=820)}([,function(P,b,p){"use strict";var d=function(z,lt,rt){z.prototype=lt.prototype=rt,rt.constructor=z};function v(Z,z){var lt=Object.create(Z.prototype);for(var rt in z)lt[rt]=z[rt];return lt}function h(){}var a="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",n="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",t=/^#([0-9a-f]{3})$/,e=/^#([0-9a-f]{6})$/,r=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),i=new RegExp("^rgb\\("+[n,n,n]+"\\)$"),u=new RegExp("^rgba\\("+[a,a,a,o]+"\\)$"),c=new RegExp("^rgba\\("+[n,n,n,o]+"\\)$"),s=new RegExp("^hsl\\("+[o,n,n]+"\\)$"),l=new RegExp("^hsla\\("+[o,n,n,o]+"\\)$"),f={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function g(Z){var z;return Z=(Z+"").trim().toLowerCase(),(z=t.exec(Z))?new M((z=parseInt(z[1],16))>>8&15|z>>4&240,z>>4&15|240&z,(15&z)<<4|15&z,1):(z=e.exec(Z))?y(parseInt(z[1],16)):(z=r.exec(Z))?new M(z[1],z[2],z[3],1):(z=i.exec(Z))?new M(255*z[1]/100,255*z[2]/100,255*z[3]/100,1):(z=u.exec(Z))?m(z[1],z[2],z[3],z[4]):(z=c.exec(Z))?m(255*z[1]/100,255*z[2]/100,255*z[3]/100,z[4]):(z=s.exec(Z))?O(z[1],z[2]/100,z[3]/100,1):(z=l.exec(Z))?O(z[1],z[2]/100,z[3]/100,z[4]):f.hasOwnProperty(Z)?y(f[Z]):Z==="transparent"?new M(NaN,NaN,NaN,0):null}function y(Z){return new M(Z>>16&255,Z>>8&255,255&Z,1)}function m(Z,z,lt,rt){return rt<=0&&(Z=z=lt=NaN),new M(Z,z,lt,rt)}function x(Z){return Z instanceof h||(Z=g(Z)),Z?new M((Z=Z.rgb()).r,Z.g,Z.b,Z.opacity):new M}function w(Z,z,lt,rt){return arguments.length===1?x(Z):new M(Z,z,lt,rt==null?1:rt)}function M(Z,z,lt,rt){this.r=+Z,this.g=+z,this.b=+lt,this.opacity=+rt}function S(Z){return((Z=Math.max(0,Math.min(255,Math.round(Z)||0)))<16?"0":"")+Z.toString(16)}function O(Z,z,lt,rt){return rt<=0?Z=z=lt=NaN:lt<=0||lt>=1?Z=z=NaN:z<=0&&(Z=NaN),new E(Z,z,lt,rt)}function A(Z,z,lt,rt){return arguments.length===1?function(gt){if(gt instanceof E)return new E(gt.h,gt.s,gt.l,gt.opacity);if(gt instanceof h||(gt=g(gt)),!gt)return new E;if(gt instanceof E)return gt;var mt=(gt=gt.rgb()).r/255,St=gt.g/255,Mt=gt.b/255,Ot=Math.min(mt,St,Mt),yt=Math.max(mt,St,Mt),wt=NaN,Et=yt-Ot,Pt=(yt+Ot)/2;return Et?(wt=mt===yt?(St-Mt)/Et+6*(St0&&Pt<1?0:wt,new E(wt,Et,Pt,gt.opacity)}(Z):new E(Z,z,lt,rt==null?1:rt)}function E(Z,z,lt,rt){this.h=+Z,this.s=+z,this.l=+lt,this.opacity=+rt}function _(Z,z,lt){return 255*(Z<60?z+(lt-z)*Z/60:Z<180?lt:Z<240?z+(lt-z)*(240-Z)/60:z)}d(h,g,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),d(M,w,v(h,{brighter:function(z){return z=z==null?1/.7:Math.pow(1/.7,z),new M(this.r*z,this.g*z,this.b*z,this.opacity)},darker:function(z){return z=z==null?.7:Math.pow(.7,z),new M(this.r*z,this.g*z,this.b*z,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+S(this.r)+S(this.g)+S(this.b)},toString:function(){var z=this.opacity;return((z=isNaN(z)?1:Math.max(0,Math.min(1,z)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(z===1?")":", "+z+")")}})),d(E,A,v(h,{brighter:function(z){return z=z==null?1/.7:Math.pow(1/.7,z),new E(this.h,this.s,this.l*z,this.opacity)},darker:function(z){return z=z==null?.7:Math.pow(.7,z),new E(this.h,this.s,this.l*z,this.opacity)},rgb:function(){var z=this.h%360+360*(this.h<0),lt=isNaN(z)||isNaN(this.s)?0:this.s,rt=this.l,gt=rt+(rt<.5?rt:1-rt)*lt,mt=2*rt-gt;return new M(_(z>=240?z-240:z+120,mt,gt),_(z,mt,gt),_(z<120?z+240:z-120,mt,gt),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var C=Math.PI/180,k=180/Math.PI,T=.96422,I=1,D=.82521,R=4/29,j=6/29,B=3*j*j,X=j*j*j;function et(Z){if(Z instanceof J)return new J(Z.l,Z.a,Z.b,Z.opacity);if(Z instanceof N){if(isNaN(Z.h))return new J(Z.l,0,0,Z.opacity);var z=Z.h*C;return new J(Z.l,Math.cos(z)*Z.c,Math.sin(z)*Z.c,Z.opacity)}Z instanceof M||(Z=x(Z));var lt,rt,gt=q(Z.r),mt=q(Z.g),St=q(Z.b),Mt=nt((.2225045*gt+.7168786*mt+.0606169*St)/I);return gt===mt&&mt===St?lt=rt=Mt:(lt=nt((.4360747*gt+.3850649*mt+.1430804*St)/T),rt=nt((.0139322*gt+.0971045*mt+.7141733*St)/D)),new J(116*Mt-16,500*(lt-Mt),200*(Mt-rt),Z.opacity)}function K(Z,z){return new J(Z,0,0,z==null?1:z)}function tt(Z,z,lt,rt){return arguments.length===1?et(Z):new J(Z,z,lt,rt==null?1:rt)}function J(Z,z,lt,rt){this.l=+Z,this.a=+z,this.b=+lt,this.opacity=+rt}function nt(Z){return Z>X?Math.pow(Z,1/3):Z/B+R}function at(Z){return Z>j?Z*Z*Z:B*(Z-R)}function W(Z){return 255*(Z<=.0031308?12.92*Z:1.055*Math.pow(Z,1/2.4)-.055)}function q(Z){return(Z/=255)<=.04045?Z/12.92:Math.pow((Z+.055)/1.055,2.4)}function Q(Z){if(Z instanceof N)return new N(Z.h,Z.c,Z.l,Z.opacity);if(Z instanceof J||(Z=et(Z)),Z.a===0&&Z.b===0)return new N(NaN,0,Z.l,Z.opacity);var z=Math.atan2(Z.b,Z.a)*k;return new N(z<0?z+360:z,Math.sqrt(Z.a*Z.a+Z.b*Z.b),Z.l,Z.opacity)}function it(Z,z,lt,rt){return arguments.length===1?Q(Z):new N(lt,z,Z,rt==null?1:rt)}function Y(Z,z,lt,rt){return arguments.length===1?Q(Z):new N(Z,z,lt,rt==null?1:rt)}function N(Z,z,lt,rt){this.h=+Z,this.c=+z,this.l=+lt,this.opacity=+rt}d(J,tt,v(h,{brighter:function(z){return new J(this.l+18*(z==null?1:z),this.a,this.b,this.opacity)},darker:function(z){return new J(this.l-18*(z==null?1:z),this.a,this.b,this.opacity)},rgb:function(){var z=(this.l+16)/116,lt=isNaN(this.a)?z:z+this.a/500,rt=isNaN(this.b)?z:z-this.b/200;return new M(W(3.1338561*(lt=T*at(lt))-1.6168667*(z=I*at(z))-.4906146*(rt=D*at(rt))),W(-.9787684*lt+1.9161415*z+.033454*rt),W(.0719453*lt-.2289914*z+1.4052427*rt),this.opacity)}})),d(N,Y,v(h,{brighter:function(z){return new N(this.h,this.c,this.l+18*(z==null?1:z),this.opacity)},darker:function(z){return new N(this.h,this.c,this.l-18*(z==null?1:z),this.opacity)},rgb:function(){return et(this).rgb()}}));var L=-.14861,G=1.78277,H=-.29227,F=-.90649,$=1.97294,st=$*F,ot=$*G,ct=G*H-F*L;function ht(Z,z,lt,rt){return arguments.length===1?function(gt){if(gt instanceof pt)return new pt(gt.h,gt.s,gt.l,gt.opacity);gt instanceof M||(gt=x(gt));var mt=gt.r/255,St=gt.g/255,Mt=gt.b/255,Ot=(ct*Mt+st*mt-ot*St)/(ct+st-ot),yt=Mt-Ot,wt=($*(St-Ot)-H*yt)/F,Et=Math.sqrt(wt*wt+yt*yt)/($*Ot*(1-Ot)),Pt=Et?Math.atan2(wt,yt)*k-120:NaN;return new pt(Pt<0?Pt+360:Pt,Et,Ot,gt.opacity)}(Z):new pt(Z,z,lt,rt==null?1:rt)}function pt(Z,z,lt,rt){this.h=+Z,this.s=+z,this.l=+lt,this.opacity=+rt}d(pt,ht,v(h,{brighter:function(z){return z=z==null?1/.7:Math.pow(1/.7,z),new pt(this.h,this.s,this.l*z,this.opacity)},darker:function(z){return z=z==null?.7:Math.pow(.7,z),new pt(this.h,this.s,this.l*z,this.opacity)},rgb:function(){var z=isNaN(this.h)?0:(this.h+120)*C,lt=+this.l,rt=isNaN(this.s)?0:this.s*lt*(1-lt),gt=Math.cos(z),mt=Math.sin(z);return new M(255*(lt+rt*(L*gt+G*mt)),255*(lt+rt*(H*gt+F*mt)),255*(lt+rt*($*gt)),this.opacity)}})),p.d(b,"a",function(){return g}),p.d(b,"h",function(){return w}),p.d(b,"e",function(){return A}),p.d(b,"f",function(){return tt}),p.d(b,"d",function(){return Y}),p.d(b,"g",function(){return it}),p.d(b,"c",function(){return K}),p.d(b,"b",function(){return ht})},,,,,,,,,,,,,,,function(P,b){P.exports=function(p){var d=typeof p;return p!=null&&(d=="object"||d=="function")}},function(P,b,p){"use strict";p.r(b);var d,v,h=0,a=0,o=0,n=1e3,t=0,e=0,r=0,i=typeof performance=="object"&&performance.now?performance:Date,u=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(S){setTimeout(S,17)};function c(){return e||(u(s),e=i.now()+r)}function s(){e=0}function l(){this._call=this._time=this._next=null}function f(S,O,A){var E=new l;return E.restart(S,O,A),E}function g(){c(),++h;for(var S,O=d;O;)(S=e-O._time)>=0&&O._call.call(null,S),O=O._next;--h}function y(){e=(t=i.now())+r,h=a=0;try{g()}finally{h=0,function(){for(var S,O,A=d,E=1/0;A;)A._call?(E>A._time&&(E=A._time),S=A,A=A._next):(O=A._next,A._next=null,A=S?S._next=O:d=O);v=S,x(E)}(),e=0}}function m(){var S=i.now(),O=S-t;O>n&&(r-=O,t=S)}function x(S){h||(a&&(a=clearTimeout(a)),S-e>24?(S<1/0&&(a=setTimeout(y,S-i.now()-r)),o&&(o=clearInterval(o))):(o||(t=i.now(),o=setInterval(m,n)),h=1,u(y)))}l.prototype=f.prototype={constructor:l,restart:function(O,A,E){if(typeof O!="function")throw new TypeError("callback is not a function");E=(E==null?c():+E)+(A==null?0:+A),this._next||v===this||(v?v._next=this:d=this,v=this),this._call=O,this._time=E,x()},stop:function(){this._call&&(this._call=null,this._time=1/0,x())}};var w=function(O,A,E){var _=new l;return A=A==null?0:+A,_.restart(function(C){_.stop(),O(C+A)},A,E),_},M=function(O,A,E){var _=new l,C=A;return A==null?(_.restart(O,A,E),_):(A=+A,E=E==null?c():+E,_.restart(function k(T){T+=C,_.restart(k,C+=A,E),O(T)},A,E),_)};p.d(b,"now",function(){return c}),p.d(b,"timer",function(){return f}),p.d(b,"timerFlush",function(){return g}),p.d(b,"timeout",function(){return w}),p.d(b,"interval",function(){return M})},,function(P,b,p){var d=p(644),v={};d.merge(v,d,{mixin:function(a,o){var n=a.CFG?"CFG":"ATTRS";if(a&&o){a._mixins=o,a[n]=a[n]||{};var t={};v.each(o,function(e){v.augment(a,e);var r=e[n];r&&v.merge(t,r)}),a[n]=v.merge(t,a[n])}}}),P.exports=v},function(P,b,p){var d=p(117),v=typeof self=="object"&&self&&self.Object===Object&&self,h=d||v||Function("return this")();P.exports=h},,,function(P,b){P.exports=function(p){return p!=null&&typeof p=="object"}},,,function(P,b,p){var d={},v=p(682),h=p(748),a=p(257),o=p(727),n=p(726),t=p(725);a.mix(d,a,n,t,o,h,v),P.exports=d},,,,,,,,function(P,b,p){var d=p(38),v=p(250),h=p(249),a="[object Null]",o="[object Undefined]",n=d?d.toStringTag:void 0;P.exports=function(t){return t==null?t===void 0?o:a:n&&n in Object(t)?v(t):h(t)}},,,,function(P,b,p){var d=p(20).Symbol;P.exports=d},function(P,b,p){var d=p(34),v=p(23),h="[object Symbol]";P.exports=function(a){return typeof a=="symbol"||v(a)&&d(a)==h}},,,,,function(P,b,p){"use strict";function d(W){return+W}function v(W){return W*W}function h(W){return W*(2-W)}function a(W){return((W*=2)<=1?W*W:--W*(2-W)+1)/2}function o(W){return W*W*W}function n(W){return--W*W*W+1}function t(W){return((W*=2)<=1?W*W*W:(W-=2)*W*W+2)/2}p.r(b);var e=function W(q){function Q(it){return Math.pow(it,q)}return q=+q,Q.exponent=W,Q}(3),r=function W(q){function Q(it){return 1-Math.pow(1-it,q)}return q=+q,Q.exponent=W,Q}(3),i=function W(q){function Q(it){return((it*=2)<=1?Math.pow(it,q):2-Math.pow(2-it,q))/2}return q=+q,Q.exponent=W,Q}(3),u=Math.PI,c=u/2;function s(W){return 1-Math.cos(W*c)}function l(W){return Math.sin(W*c)}function f(W){return(1-Math.cos(u*W))/2}function g(W){return Math.pow(2,10*W-10)}function y(W){return 1-Math.pow(2,-10*W)}function m(W){return((W*=2)<=1?Math.pow(2,10*W-10):2-Math.pow(2,10-10*W))/2}function x(W){return 1-Math.sqrt(1-W*W)}function w(W){return Math.sqrt(1- --W*W)}function M(W){return((W*=2)<=1?1-Math.sqrt(1-W*W):Math.sqrt(1-(W-=2)*W)+1)/2}var S=4/11,O=6/11,A=8/11,E=.75,_=9/11,C=10/11,k=.9375,T=21/22,I=63/64,D=1/S/S;function R(W){return 1-j(1-W)}function j(W){return(W=+W)0){var c=r.strokeOpacity;d.isNil(c)||c===1||(e.globalAlpha=c),e.stroke()}this.afterPath(e)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(e,r){var i=[e,r,1];if(this.invert(i),this.isHitBox()){var u=this.getBBox();if(u&&!a.box(u.minX,u.maxX,u.minY,u.maxY,i[0],i[1]))return!1}var c=this._attrs.clip;return c?(c.invert(i,this.get("canvas")),!!c.isPointInPath(i[0],i[1])&&this.isPointInPath(i[0],i[1])):this.isPointInPath(i[0],i[1])},calculateBox:function(){return null},getHitLineWidth:function(){var e=this._attrs,r=e.lineAppendWidth||0;return(e.lineWidth||0)+r},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var e=this._cfg.box;return e||((e=this.calculateBox())&&(e.x=e.minX,e.y=e.minY,e.width=e.maxX-e.minX,e.height=e.maxY-e.minY),this._cfg.box=e),e},clone:function(){var e=null,r=this._attrs,i={};return d.each(r,function(u,c){n[c]&&d.isArray(r[c])?i[c]=function(s){for(var l=[],f=0;f=1?(H=1,G-1):Math.floor(H*G),$=L[F],st=L[F+1],ot=F>0?L[F-1]:2*$-st,ct=F180||G<-180?G-360*Math.round(G/360):G):o(isNaN(N)?L:N)}function e(N){return(N=+N)==1?r:function(L,G){return G-L?function(H,F,$){return H=Math.pow(H,$),F=Math.pow(F,$)-H,$=1/$,function(st){return Math.pow(H+st*F,$)}}(L,G,N):o(isNaN(L)?G:L)}}function r(N,L){var G=L-N;return G?n(N,G):o(isNaN(N)?L:N)}var i=function N(L){var G=e(L);function H(F,$){var st=G((F=Object(d.h)(F)).r,($=Object(d.h)($)).r),ot=G(F.g,$.g),ct=G(F.b,$.b),ht=r(F.opacity,$.opacity);return function(pt){return F.r=st(pt),F.g=ot(pt),F.b=ct(pt),F.opacity=ht(pt),F+""}}return H.gamma=N,H}(1);function u(N){return function(L){var G,H,F=L.length,$=new Array(F),st=new Array(F),ot=new Array(F);for(G=0;Gst&&($=G.slice(st,$),ct[ot]?ct[ot]+=$:ct[++ot]=$),(H=H[0])===(F=F[0])?ct[ot]?ct[ot]+=F:ct[++ot]=F:(ct[++ot]=null,ht.push({i:ot,x:g(H,F)})),st=x.lastIndex;return st180?pt+=360:pt-ht>180&&(ht+=360),z.push({i:Z.push(F(Z)+"rotate(",null,H)-2,x:g(ht,pt)})):pt&&Z.push(F(Z)+"rotate("+pt+H)}($.rotate,st.rotate,ot,ct),function(ht,pt,Z,z){ht!==pt?z.push({i:Z.push(F(Z)+"skewX(",null,H)-2,x:g(ht,pt)}):pt&&Z.push(F(Z)+"skewX("+pt+H)}($.skewX,st.skewX,ot,ct),function(ht,pt,Z,z,lt,rt){if(ht!==Z||pt!==z){var gt=lt.push(F(lt)+"scale(",null,",",null,")");rt.push({i:gt-4,x:g(ht,Z)},{i:gt-2,x:g(pt,z)})}else Z===1&&z===1||lt.push(F(lt)+"scale("+Z+","+z+")")}($.scaleX,$.scaleY,st.scaleX,st.scaleY,ot,ct),$=st=null,function(ht){for(var pt,Z=-1,z=ct.length;++Z1?0:y<-1?Math.PI:Math.acos(y)},b.str=function(s){return"vec3("+s[0]+", "+s[1]+", "+s[2]+")"},b.exactEquals=function(s,l){return s[0]===l[0]&&s[1]===l[1]&&s[2]===l[2]},b.equals=function(s,l){var f=s[0],g=s[1],y=s[2],m=l[0],x=l[1],w=l[2];return Math.abs(f-m)<=d.EPSILON*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(g-x)<=d.EPSILON*Math.max(1,Math.abs(g),Math.abs(x))&&Math.abs(y-w)<=d.EPSILON*Math.max(1,Math.abs(y),Math.abs(w))};var d=function(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var f in s)Object.prototype.hasOwnProperty.call(s,f)&&(l[f]=s[f]);return l.default=s,l}(p(59));function v(){var s=new d.ARRAY_TYPE(3);return d.ARRAY_TYPE!=Float32Array&&(s[0]=0,s[1]=0,s[2]=0),s}function h(s){var l=s[0],f=s[1],g=s[2];return Math.sqrt(l*l+f*f+g*g)}function a(s,l,f){var g=new d.ARRAY_TYPE(3);return g[0]=s,g[1]=l,g[2]=f,g}function o(s,l,f){return s[0]=l[0]-f[0],s[1]=l[1]-f[1],s[2]=l[2]-f[2],s}function n(s,l,f){return s[0]=l[0]*f[0],s[1]=l[1]*f[1],s[2]=l[2]*f[2],s}function t(s,l,f){return s[0]=l[0]/f[0],s[1]=l[1]/f[1],s[2]=l[2]/f[2],s}function e(s,l){var f=l[0]-s[0],g=l[1]-s[1],y=l[2]-s[2];return Math.sqrt(f*f+g*g+y*y)}function r(s,l){var f=l[0]-s[0],g=l[1]-s[1],y=l[2]-s[2];return f*f+g*g+y*y}function i(s){var l=s[0],f=s[1],g=s[2];return l*l+f*f+g*g}function u(s,l){var f=l[0],g=l[1],y=l[2],m=f*f+g*g+y*y;return m>0&&(m=1/Math.sqrt(m),s[0]=l[0]*m,s[1]=l[1]*m,s[2]=l[2]*m),s}function c(s,l){return s[0]*l[0]+s[1]*l[1]+s[2]*l[2]}b.sub=o,b.mul=n,b.div=t,b.dist=e,b.sqrDist=r,b.len=h,b.sqrLen=i,b.forEach=function(){var s=v();return function(l,f,g,y,m,x){var w=void 0,M=void 0;for(f||(f=3),g||(g=0),M=y?Math.min(y*f+g,l.length):l.length,w=g;w0&&(l=1/Math.sqrt(l),i[0]=u[0]*l,i[1]=u[1]*l),i},b.dot=function(i,u){return i[0]*u[0]+i[1]*u[1]},b.cross=function(i,u,c){var s=u[0]*c[1]-u[1]*c[0];return i[0]=i[1]=0,i[2]=s,i},b.lerp=function(i,u,c,s){var l=u[0],f=u[1];return i[0]=l+s*(c[0]-l),i[1]=f+s*(c[1]-f),i},b.random=function(i,u){u=u||1;var c=2*d.RANDOM()*Math.PI;return i[0]=Math.cos(c)*u,i[1]=Math.sin(c)*u,i},b.transformMat2=function(i,u,c){var s=u[0],l=u[1];return i[0]=c[0]*s+c[2]*l,i[1]=c[1]*s+c[3]*l,i},b.transformMat2d=function(i,u,c){var s=u[0],l=u[1];return i[0]=c[0]*s+c[2]*l+c[4],i[1]=c[1]*s+c[3]*l+c[5],i},b.transformMat3=function(i,u,c){var s=u[0],l=u[1];return i[0]=c[0]*s+c[3]*l+c[6],i[1]=c[1]*s+c[4]*l+c[7],i},b.transformMat4=function(i,u,c){var s=u[0],l=u[1];return i[0]=c[0]*s+c[4]*l+c[12],i[1]=c[1]*s+c[5]*l+c[13],i},b.rotate=function(i,u,c,s){var l=u[0]-c[0],f=u[1]-c[1],g=Math.sin(s),y=Math.cos(s);return i[0]=l*y-f*g+c[0],i[1]=l*g+f*y+c[1],i},b.angle=function(i,u){var c=i[0],s=i[1],l=u[0],f=u[1],g=c*c+s*s;g>0&&(g=1/Math.sqrt(g));var y=l*l+f*f;y>0&&(y=1/Math.sqrt(y));var m=(c*l+s*f)*g*y;return m>1?0:m<-1?Math.PI:Math.acos(m)},b.str=function(i){return"vec2("+i[0]+", "+i[1]+")"},b.exactEquals=function(i,u){return i[0]===u[0]&&i[1]===u[1]},b.equals=function(i,u){var c=i[0],s=i[1],l=u[0],f=u[1];return Math.abs(c-l)<=d.EPSILON*Math.max(1,Math.abs(c),Math.abs(l))&&Math.abs(s-f)<=d.EPSILON*Math.max(1,Math.abs(s),Math.abs(f))};var d=function(i){if(i&&i.__esModule)return i;var u={};if(i!=null)for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(u[c]=i[c]);return u.default=i,u}(p(59));function v(){var i=new d.ARRAY_TYPE(2);return d.ARRAY_TYPE!=Float32Array&&(i[0]=0,i[1]=0),i}function h(i,u,c){return i[0]=u[0]-c[0],i[1]=u[1]-c[1],i}function a(i,u,c){return i[0]=u[0]*c[0],i[1]=u[1]*c[1],i}function o(i,u,c){return i[0]=u[0]/c[0],i[1]=u[1]/c[1],i}function n(i,u){var c=u[0]-i[0],s=u[1]-i[1];return Math.sqrt(c*c+s*s)}function t(i,u){var c=u[0]-i[0],s=u[1]-i[1];return c*c+s*s}function e(i){var u=i[0],c=i[1];return Math.sqrt(u*u+c*c)}function r(i){var u=i[0],c=i[1];return u*u+c*c}b.len=e,b.sub=h,b.mul=a,b.div=o,b.dist=n,b.sqrDist=t,b.sqrLen=r,b.forEach=function(){var i=v();return function(u,c,s,l,f,g){var y=void 0,m=void 0;for(c||(c=2),s||(s=0),m=l?Math.min(l*c+s,u.length):u.length,y=s;y0?1:-1};var a=function(n){for(var t=1;t1){var e=n[0].charAt(0);n.splice(1,0,n[0].substr(1)),n[0]=e}d.each(n,function(r,i){isNaN(r)||(n[i]=+r)}),o[t]=n}),o):void 0}}},function(P,b,p){var d=p(237);P.exports=function(v){return d(v)?"":v.toString()}},function(P,b,p){var d=p(115);P.exports=function(v){return d(v,"String")}},function(P,b,p){var d=p(619),v=p(115);P.exports=function(h){if(!d(h)||!v(h,"Object"))return!1;if(Object.getPrototypeOf(h)===null)return!0;for(var a=h;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(h)===a}},function(P,b,p){var d=function(v){function h(a){var o;return(o=v.call(this)||this).options=a,o}return function(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,a.__proto__=o}(h,v),h.prototype.execute=function(){var a=this,o=this.options;this.roots.forEach(function(n){a.layout(n,o).eachNode(function(t){t.data.x=t.x+t.data.width/2+t.hgap,t.data.y=t.y+t.data.height/2+t.vgap})})},h}(p(622));P.exports=d},function(P,b,p){(function(d,v){P.exports=v()})(typeof self!="undefined"&&self,function(){return function(d){var v={};function h(a){if(v[a])return v[a].exports;var o=v[a]={i:a,l:!1,exports:{}};return d[a].call(o.exports,o,o.exports,h),o.l=!0,o.exports}return h.m=d,h.c=v,h.d=function(a,o,n){h.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:n})},h.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return h.d(o,"a",o),o},h.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},h.p="",h(h.s=5)}([function(d,v,h){var a=h(7);d.exports={assign:a}},function(d,v,h){var a=h(3),o=function(){function n(t,e){e===void 0&&(e={}),this.options=e,this.rootNode=a(t,e)}return n.prototype.execute=function(){throw new Error("please override this method")},n}();d.exports=o},function(d,v,h){var a=h(4),o=["LR","RL","TB","BT","H","V"],n=["LR","RL","H"],t=o[0];d.exports=function(e,r,i){var u=r.direction||t;if(r.isHorizontal=function(g){return n.indexOf(g)>-1}(u),u&&o.indexOf(u)===-1)throw new TypeError("Invalid direction: "+u);if(u===o[0])i(e,r);else if(u===o[1])i(e,r),e.right2left();else if(u===o[2])i(e,r);else if(u===o[3])i(e,r),e.bottom2top();else if(u===o[4]||u===o[5]){var c=a(e,r),s=c.left,l=c.right;i(s,r),i(l,r),r.isHorizontal?s.right2left():s.bottom2top(),l.translate(s.x-l.x,s.y-l.y),e.x=s.x,e.y=l.y;var f=e.getBoundingBox();r.isHorizontal?f.top<0&&e.translate(0,-f.top):f.left<0&&e.translate(-f.left,0)}return e.translate(-(e.x+e.width/2+e.hgap),-(e.y+e.height/2+e.vgap)),e}},function(d,v,h){var a=h(0),o={getId:function(e){return e.id||e.name},getHGap:function(e){return e.hgap||18},getVGap:function(e){return e.vgap||18},getChildren:function(e){return e.children},getHeight:function(e){return e.height||36},getWidth:function(e){var r=e.name||" ";return e.width||18*r.split("").length}};function n(t,e){var r=this;if(r.vgap=r.hgap=0,t instanceof n)return t;r.data=t;var i=e.getHGap(t),u=e.getVGap(t);return r.width=e.getWidth(t),r.height=e.getHeight(t),r.id=e.getId(t),r.x=r.y=0,r.depth=0,r.children||(r.children=[]),r.addGap(i,u),r}a.assign(n.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(e,r){this.hgap+=e,this.vgap+=r,this.width+=2*e,this.height+=2*r},eachNode:function(e){for(var r,i=[this];r=i.pop();)e(r),i=i.concat(r.children)},DFTraverse:function(e){this.eachNode(e)},BFTraverse:function(e){for(var r,i=[this];r=i.shift();)e(r),i=i.concat(r.children)},getBoundingBox:function(){var e={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(r){e.left=Math.min(e.left,r.x),e.top=Math.min(e.top,r.y),e.width=Math.max(e.width,r.x+r.width),e.height=Math.max(e.height,r.y+r.height)}),e},translate:function(e,r){e===void 0&&(e=0),r===void 0&&(r=0),this.eachNode(function(i){i.x+=e,i.y+=r})},right2left:function(){var e=this.getBoundingBox();this.eachNode(function(r){r.x=r.x-2*(r.x-e.left)-r.width}),this.translate(e.width,0)},bottom2top:function(){var e=this.getBoundingBox();this.eachNode(function(r){r.y=r.y-2*(r.y-e.top)-r.height}),this.translate(0,e.height)}}),d.exports=function(t,e,r){e===void 0&&(e={});var i,u=new n(t,e=a.assign({},o,e)),c=[u];if(!r&&!t.collapsed){for(;i=c.pop();)if(!i.data.collapsed){var s=e.getChildren(i.data),l=s?s.length:0;if(i.children=new Array(l),s&&l)for(var f=0;fm.low&&(m=m.nxt);var O=w+x.prelim+x.w-(S+M.prelim);O>0&&(S+=O,i(g,y,m.index,O));var A=s(x),E=s(M);A<=E&&(x=c(x))!==null&&(w+=x.mod),A>=E&&(M=u(M))!==null&&(S+=M.mod)}!x&&M?function(_,C,k,T){var I=_.c[0].el;I.tl=k;var D=T-k.mod-_.c[0].msel;I.mod+=D,I.prelim-=D,_.c[0].el=_.c[C].el,_.c[0].msel=_.c[C].msel}(g,y,M,S):x&&!M&&function(_,C,k,T){var I=_.c[C].er;I.tr=k;var D=T-k.mod-_.c[C].mser;I.mod+=D,I.prelim-=D,_.c[C].er=_.c[C-1].er,_.c[C].mser=_.c[C-1].mser}(g,y,x,w)}function i(g,y,m,x){g.c[y].mod+=x,g.c[y].msel+=x,g.c[y].mser+=x,function(w,M,S,O){if(S!==M-1){var A=M-S;w.c[S+1].shift+=O/A,w.c[M].shift-=O/A,w.c[M].change-=O-O/A}}(g,y,m,x)}function u(g){return g.cs===0?g.tl:g.c[0]}function c(g){return g.cs===0?g.tr:g.c[g.cs-1]}function s(g){return g.y+g.h}function l(g,y,m){for(;m!==null&&g>=m.low;)m=m.nxt;return{low:g,index:y,nxt:m}}(function g(y,m,x){x===void 0&&(x=0),m?(y.x=x,x+=y.width):(y.y=x,x+=y.height),y.children.forEach(function(w){g(w,m,x)})})(o,t);var f=h.fromNode(o,t);return function g(y){if(y.cs!==0){g(y.c[0]);for(var m=l(s(y.c[0].el),0,null),x=1;xr&&(r=c.depth);var s=c.children,l=s.length,f=new function(g,y){g===void 0&&(g=0),y===void 0&&(y=[]);var m=this;m.x=m.y=0,m.leftChild=m.rightChild=null,m.height=0,m.children=y}(c.height,[]);return s.forEach(function(g,y){var m=u(g);f.children.push(m),y===0&&(f.leftChild=m),y===l-1&&(f.rightChild=m)}),f.originNode=c,f.isLeaf=c.isLeaf(),f}(n);return function u(c){if(c.isLeaf||c.children.length===0)c.drawingDepth=r;else{var s=c.children.map(function(f){return u(f)}),l=Math.min.apply(null,s);c.drawingDepth=l-1}return c.drawingDepth}(i),function u(c){c.x=c.drawingDepth*t.rankSep,c.isLeaf?(c.y=0,e&&(c.y=e.y+e.height+t.nodeSep,c.originNode.parent!==e.originNode.parent&&(c.y+=t.subTreeSep)),e=c):(c.children.forEach(function(s){u(s)}),c.y=(c.leftChild.y+c.rightChild.y)/2)}(i),function u(c,s,l){l?(s.x=c.x,s.y=c.y):(s.x=c.y,s.y=c.x),c.children.forEach(function(f,g){u(f,s.children[g],l)})}(i,n,t.isHorizontal),n}},function(d,v,h){var a=h(1),o=h(12),n=h(4),t=h(0),e=["LR","RL","H"],r=e[0],i=function(c){function s(){return c.apply(this,arguments)||this}return function(l,f){l.prototype=Object.create(f.prototype),l.prototype.constructor=l,l.__proto__=f}(s,c),s.prototype.execute=function(){var l=this.options,f=this.rootNode;l.isHorizontal=!0;var g=l.indent,y=l.direction||r;if(y&&e.indexOf(y)===-1)throw new TypeError("Invalid direction: "+y);if(y===e[0])o(f,g);else if(y===e[1])o(f,g),f.right2left();else if(y===e[2]){var m=n(f,l),x=m.left,w=m.right;o(x,g),x.right2left(),o(w,g);var M=x.getBoundingBox();w.translate(M.width,0),f.x=w.x-f.width/2}return f},s}(a),u={};d.exports=function(c,s){return s=t.assign({},u,s),new i(c,s).execute()}},function(d,v){d.exports=function(h,a){a===void 0&&(a=20);var o=null;h.eachNode(function(n){(function(t,e,r){t.x+=r*t.depth,t.y=e?e.y+e.height:0})(n,o,a),o=n})}},function(d,v,h){var a=h(1),o=h(14),n=h(2),t=h(0),e=function(i){function u(){return i.apply(this,arguments)||this}return function(c,s){c.prototype=Object.create(s.prototype),c.prototype.constructor=c,c.__proto__=s}(u,i),u.prototype.execute=function(){return n(this.rootNode,this.options,o)},u}(a),r={};d.exports=function(i,u){return u=t.assign({},r,u),new e(i,u).execute()}},function(d,v,h){var a=h(0),o={getSubTreeSep:function(){return 0}};d.exports=function(n,t){t===void 0&&(t={}),t=a.assign({},o,t),n.parent={x:0,width:0,height:0,y:0},n.BFTraverse(function(e){e.x=e.parent.x+e.parent.width}),n.parent=null,function e(r,i){var u=0;return r.children.length?r.children.forEach(function(c){u+=e(c,i)}):u=r.height,r._subTreeSep=i.getSubTreeSep(r.data),r.totalHeight=Math.max(r.height,u)+2*r._subTreeSep,r.totalHeight}(n,t),n.startY=0,n.y=n.totalHeight/2-n.height/2,n.eachNode(function(e){var r=e.children,i=r.length;if(i){var u=r[0];if(u.startY=e.startY+e._subTreeSep,i===1)u.y=e.y+e.height/2-u.height/2;else{u.y=u.startY+u.totalHeight/2-u.height/2;for(var c=1;cr.height)r.y=c.y+l/2-r.height/2;else if(i.length!==1||r.height>f){var g=r.y+(r.height-l)/2-c.y;i.forEach(function(y){y.translate(0,g)})}else r.y=(c.y+c.height/2+s.y+s.height/2)/2-r.height/2}}(n)}}])})},function(P,b,p){var d=p(26),v=function(){var h=a.prototype;function a(o){var n=this.getDefaultCfg();d.mix(this,n,o),this._init()}return h.getDefaultCfg=function(){return{}},h._init=function(){},h.destroy=function(){},a}();P.exports=v},function(P,b,p){var d=p(19),v=p(613),h=p(612),a=p(640),o=p(639),n=d.vec3,t=d.mat3,e=["m","l","c","a","q","h","v","t","s","z"];function r(f,g,y){return{x:y.x+f,y:y.y+g}}function i(f,g){return{x:g.x+(g.x-f.x),y:g.y+(g.y-f.y)}}function u(f){return Math.sqrt(f[0]*f[0]+f[1]*f[1])}function c(f,g){return(f[0]*g[0]+f[1]*g[1])/(u(f)*u(g))}function s(f,g){return(f[0]*g[1]=0,A=O?m.toUpperCase():m,E=g,_=y.endPoint,C=E[1],k=E[2];switch(A){default:break;case"M":S=O?r(C,k,_):{x:C,y:k},this.command="M",this.params=[_,S],this.subStart=S,this.endPoint=S;break;case"L":S=O?r(C,k,_):{x:C,y:k},this.command="L",this.params=[_,S],this.subStart=y.subStart,this.endPoint=S,this.endTangent=function(){return[S.x-_.x,S.y-_.y]},this.startTangent=function(){return[_.x-S.x,_.y-S.y]};break;case"H":S=O?r(C,0,_):{x:C,y:_.y},this.command="L",this.params=[_,S],this.subStart=y.subStart,this.endPoint=S,this.endTangent=function(){return[S.x-_.x,S.y-_.y]},this.startTangent=function(){return[_.x-S.x,_.y-S.y]};break;case"V":S=O?r(0,C,_):{x:_.x,y:C},this.command="L",this.params=[_,S],this.subStart=y.subStart,this.endPoint=S,this.endTangent=function(){return[S.x-_.x,S.y-_.y]},this.startTangent=function(){return[_.x-S.x,_.y-S.y]};break;case"Q":O?(x=r(C,k,_),w=r(E[3],E[4],_)):(x={x:C,y:k},w={x:E[3],y:E[4]}),this.command="Q",this.params=[_,x,w],this.subStart=y.subStart,this.endPoint=w,this.endTangent=function(){return[w.x-x.x,w.y-x.y]},this.startTangent=function(){return[_.x-x.x,_.y-x.y]};break;case"T":w=O?r(C,k,_):{x:C,y:k},y.command==="Q"?(x=i(y.params[1],_),this.command="Q",this.params=[_,x,w],this.subStart=y.subStart,this.endPoint=w,this.endTangent=function(){return[w.x-x.x,w.y-x.y]},this.startTangent=function(){return[_.x-x.x,_.y-x.y]}):(this.command="TL",this.params=[_,w],this.subStart=y.subStart,this.endPoint=w,this.endTangent=function(){return[w.x-_.x,w.y-_.y]},this.startTangent=function(){return[_.x-w.x,_.y-w.y]});break;case"C":O?(x=r(C,k,_),w=r(E[3],E[4],_),M=r(E[5],E[6],_)):(x={x:C,y:k},w={x:E[3],y:E[4]},M={x:E[5],y:E[6]}),this.command="C",this.params=[_,x,w,M],this.subStart=y.subStart,this.endPoint=M,this.endTangent=function(){return[M.x-w.x,M.y-w.y]},this.startTangent=function(){return[_.x-x.x,_.y-x.y]};break;case"S":O?(w=r(C,k,_),M=r(E[3],E[4],_)):(w={x:C,y:k},M={x:E[3],y:E[4]}),y.command==="C"?(x=i(y.params[2],_),this.command="C",this.params=[_,x,w,M],this.subStart=y.subStart,this.endPoint=M,this.endTangent=function(){return[M.x-w.x,M.y-w.y]},this.startTangent=function(){return[_.x-x.x,_.y-x.y]}):(this.command="SQ",this.params=[_,w,M],this.subStart=y.subStart,this.endPoint=M,this.endTangent=function(){return[M.x-w.x,M.y-w.y]},this.startTangent=function(){return[_.x-w.x,_.y-w.y]});break;case"A":var T=C,I=k,D=E[3],R=E[4],j=E[5];S=O?r(E[6],E[7],_):{x:E[6],y:E[7]},this.command="A";var B=function(J,nt,at,W,q,Q,it){var Y=d.mod(d.toRadian(it),2*Math.PI),N=J.x,L=J.y,G=nt.x,H=nt.y,F=Math.cos(Y)*(N-G)/2+Math.sin(Y)*(L-H)/2,$=-1*Math.sin(Y)*(N-G)/2+Math.cos(Y)*(L-H)/2,st=F*F/(q*q)+$*$/(Q*Q);st>1&&(q*=Math.sqrt(st),Q*=Math.sqrt(st));var ot=q*q*($*$)+Q*Q*(F*F),ct=Math.sqrt((q*q*(Q*Q)-ot)/ot);at===W&&(ct*=-1),isNaN(ct)&&(ct=0);var ht=ct*q*$/Q,pt=ct*-Q*F/q,Z=(N+G)/2+Math.cos(Y)*ht-Math.sin(Y)*pt,z=(L+H)/2+Math.sin(Y)*ht+Math.cos(Y)*pt,lt=s([1,0],[(F-ht)/q,($-pt)/Q]),rt=[(F-ht)/q,($-pt)/Q],gt=[(-1*F-ht)/q,(-1*$-pt)/Q],mt=s(rt,gt);return c(rt,gt)<=-1&&(mt=Math.PI),c(rt,gt)>=1&&(mt=0),W===0&&mt>0&&(mt-=2*Math.PI),W===1&&mt<0&&(mt+=2*Math.PI),[J,Z,z,q,Q,lt,mt,Y,W]}(_,S,R,j,T,I,D);this.params=B;var X=y.subStart;this.subStart=X,this.endPoint=S;var et=B[5]%(2*Math.PI);d.isNumberEqual(et,2*Math.PI)&&(et=0);var K=B[6]%(2*Math.PI);d.isNumberEqual(K,2*Math.PI)&&(K=0);var tt=.001;this.startTangent=function(){j===0&&(tt*=-1);var J=B[3]*Math.cos(et-tt)+B[1],nt=B[4]*Math.sin(et-tt)+B[2];return[J-X.x,nt-X.y]},this.endTangent=function(){var J=B[6];J-2*Math.PI<1e-4&&(J=0);var nt=B[3]*Math.cos(et+J+tt)+B[1],at=B[4]*Math.sin(et+J-tt)+B[2];return[_.x-nt,_.y-at]};break;case"Z":this.command="Z",this.params=[_,y.subStart],this.subStart=y.subStart,this.endPoint=y.subStart}},isInside:function(g,y,m){var x=this.command,w=this.params,M=this.box;if(M&&!v.box(M.minX,M.maxX,M.minY,M.maxY,g,y))return!1;switch(x){default:break;case"M":return!1;case"TL":case"L":case"Z":return v.line(w[0].x,w[0].y,w[1].x,w[1].y,m,g,y);case"SQ":case"Q":return v.quadraticline(w[0].x,w[0].y,w[1].x,w[1].y,w[2].x,w[2].y,m,g,y);case"C":return v.cubicline(w[0].x,w[0].y,w[1].x,w[1].y,w[2].x,w[2].y,w[3].x,w[3].y,m,g,y);case"A":var S=w,O=S[1],A=S[2],E=S[3],_=S[4],C=S[5],k=S[6],T=S[7],I=S[8],D=E>_?E:_,R=E>_?1:E/_,j=E>_?_/E:1;S=[g,y,1];var B=[1,0,0,0,1,0,0,0,1];return t.translate(B,B,[-O,-A]),t.rotate(B,B,-T),t.scale(B,B,[1/R,1/j]),n.transformMat3(S,S,B),v.arcline(0,0,D,C,C+k,1-I,m,S[0],S[1])}return!1},draw:function(g){var y,m,x,w=this.command,M=this.params;switch(w){default:break;case"M":g.moveTo(M[1].x,M[1].y);break;case"TL":case"L":g.lineTo(M[1].x,M[1].y);break;case"SQ":case"Q":y=M[1],m=M[2],g.quadraticCurveTo(y.x,y.y,m.x,m.y);break;case"C":y=M[1],m=M[2],x=M[3],g.bezierCurveTo(y.x,y.y,m.x,m.y,x.x,x.y);break;case"A":var S=M,O=S[1],A=S[2],E=S[3],_=S[4],C=S[5],k=S[6],T=S[7],I=S[8],D=E>_?E:_,R=E>_?1:E/_,j=E>_?_/E:1;g.translate(O,A),g.rotate(T),g.scale(R,j),g.arc(0,0,D,C,C+k,1-I),g.scale(1/R,1/j),g.rotate(-T),g.translate(-O,-A);break;case"Z":g.closePath()}},getBBox:function(g){var y,m,x,w,M=g/2,S=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(S[0].x,S[1].x)-M,maxX:Math.max(S[0].x,S[1].x)+M,minY:Math.min(S[0].y,S[1].y)-M,maxY:Math.max(S[0].y,S[1].y)+M};break;case"SQ":case"Q":for(x=0,w=(m=a.extrema(S[0].x,S[1].x,S[2].x)).length;xet&&(et=J)}var nt=o.yExtrema(I,_,C),at=1/0,W=-1/0,q=[R,j];for(x=2*-Math.PI;x<=2*Math.PI;x+=Math.PI){var Q=nt+x;D===1?RW&&(W=it)}this.box={minX:X-M,maxX:et+M,minY:at-M,maxY:W+M}}}}),P.exports=l},function(P,b,p){var d=p(593),v=p(600),h=Math.PI,a=Math.sin,o=Math.cos,n=Math.atan2,t=10,e=h/3;function r(u,c,s,l,f,g,y){var m,x,w,M,S,O,A;if(!c.fill){var E=c.arrowLength||t,_=c.arrowAngle?c.arrowAngle*h/180:e;A=n(l-g,s-f),S=Math.abs(c.lineWidth*o(A))/2,O=Math.abs(c.lineWidth*a(A))/2,y&&(S=-S,O=-O),m=f+E*o(A+_/2),x=g+E*a(A+_/2),w=f+E*o(A-_/2),M=g+E*a(A-_/2),u.beginPath(),u.moveTo(m-S,x-O),u.lineTo(f-S,g-O),u.lineTo(w-S,M-O),u.moveTo(f-S,g-O),u.lineTo(f+S,g+O),u.moveTo(f,g),u.stroke()}}function i(u,c,s,l,f,g,y){var m=y?c.startArrow:c.endArrow,x=m.d,w=0,M=f-s,S=g-l,O=Math.atan(M/S);S===0&&M<0?w=Math.PI:M>0&&S>0?w=Math.PI/2-O:M<0&&S<0?w=-Math.PI/2-O:M>=0&&S<0?w=-O-Math.PI/2:M<=0&&S>0&&(w=Math.PI/2-O);var A=function(_){var C,k=[],T=d.parsePath(_.path);if(!Array.isArray(T)||T.length===0||T[0][0]!=="M"&&T[0][0]!=="m")return!1;for(var I=T.length,D=0;De&&(i=2*Math.PI-n+t,u=n-e):(i=n-t,u=e-n),i>u?e:t}function a(n,t,e,r){var i=0;return e-t>=2*Math.PI&&(i=2*Math.PI),t=d.mod(t,2*Math.PI),e=d.mod(e,2*Math.PI)+i,n=d.mod(n,2*Math.PI),r?t>=e?n>e&&ne?n:h(n,t,e):t<=e?tt||nS.x&&(m=S.x),xS.y&&(w=S.y),M-1}},function(P,b){function p(d,v){for(var h in v)v.hasOwnProperty(h)&&h!=="constructor"&&v[h]!==void 0&&(d[h]=v[h])}P.exports=function(d,v,h,a){return v&&p(d,v),h&&p(d,h),a&&p(d,a),d}},,function(P,b,p){var d=p(26),v=function(){function h(o){d.mix(this,{id:"",type:null,model:{},group:null,animate:!1,modelCache:{},isItem:!0,visible:!0},o),this._init()}var a=h.prototype;return a._init=function(){this._initGroup(),this.draw()},a._mapping=function(){var o=this.mapper,n=this.model;o.mapping(n)},a._initGroup=function(){var o=this.group,n=this.model,t=this.type;o.isItemContainer=!0,o.id=n.id,o.itemType=t,o.model=n,o.item=this},a._calculateBBox=function(){var o=this.keyShape,n=this.group,t=d.getBBox(o,n);return t.width=t.maxX-t.minX,t.height=t.maxY-t.minY,t.centerX=(t.minX+t.maxX)/2,t.centerY=(t.minY+t.maxY)/2,t},a.getLabel=function(){return this.group.findByClass("label")[0]},a.getGraph=function(){return this.graph},a._setShapeObj=function(){var o=this.graph,n=this.type,t=this.getModel();this.shapeObj=o.getShapeObj(n,t)},a._afterDraw=function(){var o=this.graph;this._setGId(),this._cacheModel(),o.emit("afteritemdraw",{item:this})},a._cacheModel=function(){this.modelCache=d.mix({},this.model)},a._setGId=function(){var o=this.group,n=this.id,t=this.type;o.gid=n,o.deepEach(function(e,r,i){var u=r.gid;if(e.id=n,e.eventPreFix=t,e.gid=u+"-"+i,e.isShape){var c=e.get("type");e.gid+="-"+c}})},a._beforeDraw=function(){var o=this.graph,n=this.group;o.emit("beforeitemdraw",{item:this}),n.resetMatrix(),this.updateCollapsedParent()},a._shouldDraw=function(){return!0},a._getDiff=function(){var o=[],n=this.model,t=this.modelCache;return d.each(n,function(e,r){d.isEqual(e,t[r])||o.push(r)}),o.length!==0&&o},a._drawInner=function(){var o=this.animate;this.group.clear(!o),this._mapping(),this._setShapeObj();var n=this.shapeObj,t=n.draw(this);t&&(t.isKeyShape=!0,this.keyShape=t),n.afterDraw&&n.afterDraw(this)},a.deepEach=function(o,n){d.traverseTree(this,o,n||function(t){return t.getChildren()})},a.getShapeObj=function(){return this.shapeObj},a.updateCollapsedParent=function(){var o=this.dataMap;this.collapsedParent=function n(t,e){var r=e[t.parent];if(!r)return!1;if(r){var i=n(r,e);if(i)return i}return r.collapsed?r:void 0}(this.model,o)},a.isVisible=function(){return this.visible},a.hide=function(){var o=this.group,n=this.graph;n.emit("beforeitemhide",{item:this}),o.hide(),this.visible=!1,n.emit("afteritemhide",{item:this})},a.show=function(){var o=this.group,n=this.graph;n.emit("beforeitemshow",{item:this}),o.show(),this.visible=!0,n.emit("afteritemshow",{item:this})},a.draw=function(){this._beforeDraw(),this._shouldDraw()&&this._drawInner(),this._afterDraw()},a.forceUpdate=function(){this._beforeDraw(),this._drawInner(),this._afterDraw()},a.getCenter=function(){var o=this.getBBox();return{x:o.centerX,y:o.centerY}},a.getBBox=function(){return this.bbox||this._calculateBBox()},a.layoutUpdate=function(){this.isVisible()&&this.draw()},a.update=function(){this.draw()},a.getModel=function(){return this.model},a.getKeyShape=function(){return this.keyShape},a.getGraphicGroup=function(){return this.group},a.getHierarchy=function(){return this.graph.getHierarchy(this)},a.getParent=function(){var o=this.model;return this.itemMap[o.parent]},a.getAllParents=function(){for(var o=this.model,n=this.itemMap,t=[],e=o.parent;e&&n[e];){var r=n[e],i=r.getModel();t.push(r),e=i.parent}return t},a.getAllChildren=function(){var o=[];return this.deepEach(function(n){o.push(n)}),o},a.getChildren=function(){var o=this.id;return this.graph.getItems().filter(function(n){return n.model.parent===o})},a.toFront=function(){this.group.toFront()},a.toBack=function(){this.group.toBack()},a.destroy=function(){if(!this.destroyed){var o=this.animate,n=this.graph;n.emit("beforeitemdestroy",{item:this}),this.group.remove(!o),this.destroyed=!0,n.emit("afteritemdestroy",{item:this})}},h}();P.exports=v},function(P,b){P.exports="2.2.6"},function(P,b,p){var d=p(644),v=` +\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,h=new RegExp("([a-z])["+v+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+v+"]*,?["+v+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+v+"]*,?["+v+"]*","ig"),o=function(I){if(!I)return null;if(typeof I==typeof[])return I;var D={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},R=[];return String(I).replace(h,function(j,B,X){var et=[],K=B.toLowerCase();if(X.replace(a,function(tt,J){J&&et.push(+J)}),K==="m"&&et.length>2&&(R.push([B].concat(et.splice(0,2))),K="l",B=B==="m"?"l":"L"),K==="o"&&et.length===1&&R.push([B,et[0]]),K==="r")R.push([B].concat(et));else for(;et.length>=D[K]&&(R.push([B].concat(et.splice(0,D[K]))),D[K]););}),R},n=function(I,D){for(var R=[],j=0,B=I.length;B-2*!D>j;j+=2){var X=[{x:+I[j-2],y:+I[j-1]},{x:+I[j],y:+I[j+1]},{x:+I[j+2],y:+I[j+3]},{x:+I[j+4],y:+I[j+5]}];D?j?B-4===j?X[3]={x:+I[0],y:+I[1]}:B-2===j&&(X[2]={x:+I[0],y:+I[1]},X[3]={x:+I[2],y:+I[3]}):X[0]={x:+I[B-2],y:+I[B-1]}:B-4===j?X[3]=X[2]:j||(X[0]={x:+I[j],y:+I[j+1]}),R.push(["C",(-X[0].x+6*X[1].x+X[2].x)/6,(-X[0].y+6*X[1].y+X[2].y)/6,(X[1].x+6*X[2].x-X[3].x)/6,(X[1].y+6*X[2].y-X[3].y)/6,X[2].x,X[2].y])}return R},t=function(I,D,R,j,B){var X=[];if(B===null&&j===null&&(j=R),I=+I,D=+D,R=+R,j=+j,B!==null){var et=Math.PI/180,K=I+R*Math.cos(-j*et),tt=I+R*Math.cos(-B*et);X=[["M",K,D+R*Math.sin(-j*et)],["A",R,R,0,+(B-j>180),0,tt,D+R*Math.sin(-B*et)]]}else X=[["M",I,D],["m",0,-j],["a",R,j,0,1,1,0,2*j],["a",R,j,0,1,1,0,-2*j],["z"]];return X},e=function(I){if(!(I=o(I))||!I.length)return[["M",0,0]];var D,R,j=[],B=0,X=0,et=0,K=0,tt=0;I[0][0]==="M"&&(et=B=+I[0][1],K=X=+I[0][2],tt++,j[0]=["M",B,X]);for(var J,nt,at=I.length===3&&I[0][0]==="M"&&I[1][0].toUpperCase()==="R"&&I[2][0].toUpperCase()==="Z",W=tt,q=I.length;W1&&(Z*=Xt=Math.sqrt(Xt),z*=Xt);var Ht=Z*Z,Ut=z*z,Wt=(rt===gt?-1:1)*Math.sqrt(Math.abs((Ht*Ut-Ht*It*It-Ut*kt*kt)/(Ht*It*It+Ut*kt*kt)));Et=Wt*Z*It/z+(ht+mt)/2,Pt=Wt*-z*kt/Z+(pt+St)/2,yt=Math.asin(((pt-Pt)/z).toFixed(9)),wt=Math.asin(((St-Pt)/z).toFixed(9)),yt=htwt&&(yt-=2*Math.PI),!gt&&wt>yt&&(wt-=2*Math.PI)}var Zt=wt-yt;if(Math.abs(Zt)>At){var re=wt,ie=mt,oe=St;wt=yt+At*(gt&&wt>yt?1:-1),Tt=ct(mt=Et+Z*Math.cos(wt),St=Pt+z*Math.sin(wt),Z,z,lt,0,gt,ie,oe,[wt,re,Et,Pt])}Zt=wt-yt;var zt=Math.cos(yt),Gt=Math.sin(yt),ae=Math.cos(wt),se=Math.sin(wt),Vt=Math.tan(Zt/4),Kt=4/3*Z*Vt,$t=4/3*z*Vt,Qt=[ht,pt],Lt=[ht+Kt*Gt,pt-$t*zt],Jt=[mt+Kt*se,St-$t*ae],qt=[mt,St];if(Lt[0]=2*Qt[0]-Lt[0],Lt[1]=2*Qt[1]-Lt[1],Mt)return[Lt,Jt,qt].concat(Tt);for(var te=[],Bt=0,ue=(Tt=[Lt,Jt,qt].concat(Tt).join().split(",")).length;Bt7){H[F].shift();for(var $=H[F];$.length;)K[F]="A",B&&(tt[F]="A"),H.splice(F++,0,["C"].concat($.splice(0,6)));H.splice(F,1),R=Math.max(j.length,B&&B.length||0)}},q=function(H,F,$,st,ot){H&&F&&H[ot][0]==="M"&&F[ot][0]!=="M"&&(F.splice(ot,0,["M",st.x,st.y]),$.bx=0,$.by=0,$.x=H[ot][1],$.y=H[ot][2],R=Math.max(j.length,B&&B.length||0))};R=Math.max(j.length,B&&B.length||0);for(var Q=0;Q1?1:tt<0?0:tt)/2,nt=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],at=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],W=0,q=0;q<12;q++){var Q=J*nt[q]+J,it=l(Q,I,R,B,et),Y=l(Q,D,j,X,K),N=it*it+Y*Y;W+=at[q]*Math.sqrt(N)}return J*W},g=function(I,D,R,j,B,X,et,K){if(!(Math.max(I,R)Math.max(B,et)||Math.max(D,j)Math.max(X,K))){var tt=(I-R)*(X-K)-(D-j)*(B-et);if(tt){var J=((I*j-D*R)*(B-et)-(I-R)*(B*K-X*et))/tt,nt=((I*j-D*R)*(X-K)-(D-j)*(B*K-X*et))/tt,at=+J.toFixed(2),W=+nt.toFixed(2);if(!(at<+Math.min(I,R).toFixed(2)||at>+Math.max(I,R).toFixed(2)||at<+Math.min(B,et).toFixed(2)||at>+Math.max(B,et).toFixed(2)||W<+Math.min(D,j).toFixed(2)||W>+Math.max(D,j).toFixed(2)||W<+Math.min(X,K).toFixed(2)||W>+Math.max(X,K).toFixed(2)))return{x:J,y:nt}}}},y=function(I,D,R){return D>=I.x&&D<=I.x+I.width&&R>=I.y&&R<=I.y+I.height},m=function(I,D,R,j,B){if(B)return[["M",+I+ +B,D],["l",R-2*B,0],["a",B,B,0,0,1,B,B],["l",0,j-2*B],["a",B,B,0,0,1,-B,B],["l",2*B-R,0],["a",B,B,0,0,1,-B,-B],["l",0,2*B-j],["a",B,B,0,0,1,B,-B],["z"]];var X=[["M",I,D],["l",R,0],["l",0,j],["l",-R,0],["z"]];return X.parsePathArray=s,X},x=function(I,D,R,j){return I===null&&(I=D=R=j=0),D===null&&(D=I.y,R=I.width,j=I.height,I=I.x),{x:I,y:D,width:R,w:R,height:j,h:j,x2:I+R,y2:D+j,cx:I+R/2,cy:D+j/2,r1:Math.min(R,j)/2,r2:Math.max(R,j)/2,r0:Math.sqrt(R*R+j*j)/2,path:m(I,D,R,j),vb:[I,D,R,j].join(" ")}},w=function(I,D,R,j,B,X,et,K){d.isArray(I)||(I=[I,D,R,j,B,X,et,K]);var tt=function(J,nt,at,W,q,Q,it,Y){for(var N,L,G,H,F=[],$=[[],[]],st=0;st<2;++st)if(st===0?(L=6*J-12*at+6*q,N=-3*J+9*at-9*q+3*it,G=3*at-3*J):(L=6*nt-12*W+6*Q,N=-3*nt+9*W-9*Q+3*Y,G=3*W-3*nt),Math.abs(N)<1e-12){if(Math.abs(L)<1e-12)continue;(H=-G/L)>0&&H<1&&F.push(H)}else{var ot=L*L-4*G*N,ct=Math.sqrt(ot);if(!(ot<0)){var ht=(-L+ct)/(2*N);ht>0&&ht<1&&F.push(ht);var pt=(-L-ct)/(2*N);pt>0&&pt<1&&F.push(pt)}}for(var Z,z=F.length,lt=z;z--;)Z=1-(H=F[z]),$[0][z]=Z*Z*Z*J+3*Z*Z*H*at+3*Z*H*H*q+H*H*H*it,$[1][z]=Z*Z*Z*nt+3*Z*Z*H*W+3*Z*H*H*Q+H*H*H*Y;return $[0][lt]=J,$[1][lt]=nt,$[0][lt+1]=it,$[1][lt+1]=Y,$[0].length=$[1].length=lt+2,{min:{x:Math.min.apply(0,$[0]),y:Math.min.apply(0,$[1])},max:{x:Math.max.apply(0,$[0]),y:Math.max.apply(0,$[1])}}}.apply(null,I);return x(tt.min.x,tt.min.y,tt.max.x-tt.min.x,tt.max.y-tt.min.y)},M=function(I,D,R,j,B,X,et,K,tt){var J=1-tt,nt=Math.pow(J,3),at=Math.pow(J,2),W=tt*tt,q=W*tt,Q=I+2*tt*(R-I)+W*(B-2*R+I),it=D+2*tt*(j-D)+W*(X-2*j+D),Y=R+2*tt*(B-R)+W*(et-2*B+R),N=j+2*tt*(X-j)+W*(K-2*X+j);return{x:nt*I+3*at*tt*R+3*J*tt*tt*B+q*et,y:nt*D+3*at*tt*j+3*J*tt*tt*X+q*K,m:{x:Q,y:it},n:{x:Y,y:N},start:{x:J*I+tt*R,y:J*D+tt*j},end:{x:J*B+tt*et,y:J*X+tt*K},alpha:90-180*Math.atan2(Q-Y,it-N)/Math.PI}},S=function(I,D,R){if(!function(ot,ct){return ot=x(ot),ct=x(ct),y(ct,ot.x,ot.y)||y(ct,ot.x2,ot.y)||y(ct,ot.x,ot.y2)||y(ct,ot.x2,ot.y2)||y(ot,ct.x,ct.y)||y(ot,ct.x2,ct.y)||y(ot,ct.x,ct.y2)||y(ot,ct.x2,ct.y2)||(ot.xct.x||ct.xot.x)&&(ot.yct.y||ct.yot.y)}(w(I),w(D)))return R?0:[];for(var j=~~(f.apply(0,I)/8),B=~~(f.apply(0,D)/8),X=[],et=[],K={},tt=R?0:[],J=0;J=0&&$<=1&&st>=0&&st<=1&&(R?tt++:tt.push({x:F.x,y:F.y,t1:$,t2:st}))}}return tt};function O(T,I){var D=[],R=[];return T.length&&function j(B,X){if(B.length===1)D.push(B[0]),R.push(B[0]);else{for(var et=[],K=0;K=3&&(it.length===3&&Y.push("Q"),Y=Y.concat(it[1])),it.length===2&&Y.push("L"),Y=Y.concat(it[it.length-1])})}(I,D,R));else{var B=[].concat(I);B[0]==="M"&&(B[0]="L");for(var X=0;X<=R-1;X++)j.push(B)}return j},E=function(I,D){if(I.length!==D.length)return!1;var R=!0;return d.each(I,function(j,B){if(j!==D[B])return R=!1,!1}),R};function _(T,I,D){var R=null,j=D;return I=0;at--)et=X[at].index,X[at].type==="add"?I.splice(et,0,[].concat(I[et])):I.splice(et,1)}var W=B-(j=I.length);if(j0)){I[j]=D[j];break}R=C(R,I[j-1],1)}I[j]=["Q"].concat(R.reduce(function(B,X){return B.concat(X)},[]));break;case"T":I[j]=["T"].concat(R[0]);break;case"C":if(R.length<3){if(!(j>0)){I[j]=D[j];break}R=C(R,I[j-1],2)}I[j]=["C"].concat(R.reduce(function(B,X){return B.concat(X)},[]));break;case"S":if(R.length<2){if(!(j>0)){I[j]=D[j];break}R=C(R,I[j-1],1)}I[j]=["S"].concat(R.reduce(function(B,X){return B.concat(X)},[]));break;default:I[j]=D[j]}return I},intersection:function(I,D){return function(R,j,B){var X,et,K,tt,J,nt,at,W,q,Q;R=u(R),j=u(j);for(var it=B?0:[],Y=0,N=R.length;Y=0&&w<_?(y=O,_=w):(S=[h(n,e,i,c,A),h(t,r,u,s,A)],M=v.squaredDistance(C,S),A<=1&&M<_?(y=A,_=M):E*=.5);return g&&(g.x=h(n,e,i,c,y),g.y=h(t,r,u,s,y)),Math.sqrt(_)}function o(n,t,e,r,i){return n*(n*(-3*t+9*e-9*r+3*i)+6*t-12*e+6*r)-3*t+3*e}P.exports={at:h,derivativeAt:function(t,e,r,i,u){var c=1-u;return 3*(((e-t)*c+2*(r-e)*u)*c+(i-r)*u*u)},projectPoint:function(t,e,r,i,u,c,s,l,f,g){var y={};return a(t,e,r,i,u,c,s,l,f,g,y),y},pointDistance:a,extrema:function(t,e,r,i){var u,c,s,l=3*t-9*e+9*r-3*i,f=6*e-12*r+6*i,g=3*r-3*i,y=[];if(d.isNumberEqual(l,0))d.isNumberEqual(f,0)||(u=-g/f)>=0&&u<=1&&y.push(u);else{var m=f*f-4*l*g;d.isNumberEqual(m,0)?y.push(-f/(2*l)):m>0&&(c=(-f-(s=Math.sqrt(m)))/(2*l),(u=(-f+s)/(2*l))>=0&&u<=1&&y.push(u),c>=0&&c<=1&&y.push(c))}return y},len:function(t,e,r,i,u,c,s,l,f){d.isNil(f)&&(f=1);for(var g=(f=f>1?1:f<0?0:f)/2,y=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],m=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],x=0,w=0;w<12;w++){var M=g*y[w]+g,S=o(M,t,r,u,s),O=o(M,e,i,c,l),A=S*S+O*O;x+=m[w]*Math.sqrt(A)}return g*x}}},function(P,b,p){var d=p(603),v=p(640),h=p(612),a=p(602);P.exports={line:function(n,t,e,r,i,u,c){var s=d.box(n,t,e,r,i);if(!this.box(s.minX,s.maxX,s.minY,s.maxY,u,c))return!1;var l=d.pointDistance(n,t,e,r,u,c);return!isNaN(l)&&l<=i/2},polyline:function(n,t,e,r){var i=n.length-1;if(i<1)return!1;for(var u=0;uv?v:p}},function(P,b){var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d};P.exports=function(d){return(d===void 0?"undefined":p(d))==="object"&&d!==null}},function(P,b,p){var d=p(46),v=p(118);P.exports=function(h,a){if(!v(h))return h;var o=[];return d(h,function(n,t){a(n,t)&&o.push(n)}),o}},function(P,b){var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d};P.exports=function(d){var v=d===void 0?"undefined":p(d);return d!==null&&v==="object"||v==="function"}},function(P,b){var p=function(){function d(){}return d.prototype.execute=function(){throw new Error("please override this method")},d}();P.exports=p},function(P,b,p){P.exports={CompactBoxTree:p(688),Dendrogram:p(687),IndentedTree:p(686),Mindmap:p(685),Base:p(622)}},function(P,b,p){var d=p(26),v=function(h){function a(n){var t={type:"node",isNode:!0,zIndex:3,edges:[],linkable:!0};return d.mix(t,n),h.call(this,t)||this}(function(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t})(a,h);var o=a.prototype;return o.updatePosition=function(){var n=this.group,t=this.model;n.setMatrix([1,0,0,0,1,0,t.x?t.x:0,t.y?t.y:0,1]),this.bbox=this._calculateBBox()},o._shouldDraw=function(){var n=this._getDiff(),t=h.prototype._shouldDraw.call(this);return n&&!(n.length===2&&n.indexOf("x")!==-1&&n.indexOf("y")!==-1)&&!(n.length===1&&(n[0]==="x"||n[0]==="y"))&&t},o._afterDraw=function(){this.updatePosition(),h.prototype._afterDraw.call(this)},o.layoutUpdate=function(){this._beforeDraw(),this._afterDraw()},o.getEdges=function(){var n=this;return this.graph.getEdges().filter(function(t){var e=t.getModel();return e.source===n.id||e.target===n.id})},o.getInEdges=function(){var n=this;return this.getEdges().filter(function(t){return t.target===n})},o.getOutEdges=function(){var n=this;return this.getEdges().filter(function(t){return t.source===n})},o.getLinkPoints=function(n){var t=this.getAnchorPoints();if(d.isNumber(n)&&t[n])return[t[n]];var e=n.x,r=n.y,i=this.getBBox(),u=i.centerX,c=i.centerY,s=e-u,l=r-c,f=this.shapeObj,g=f.anchor||{},y=this.defaultIntersectBox,m=[];if(d.isEmpty(t)){switch(f.intersectBox||g.intersectBox||g.type||y){case"rect":m=[d.getIntersectPointRect(i,n)];break;case"path":if(this.keyShape&&this.keyShape.get("type")==="path"){var x=d.parsePathArray(["M",e,r,"L",u,c]);m=[d.intersection(x,this.keyShape.get("path"))]}break;default:m=[d.getIntersectPointCircle(e,r,i.centerX,i.centerY,Math.max(i.width,i.height)/2)]}d.isEmpty(m[0])&&(m=[{x:u,y:c}])}else m=t.map(function(w){var M=w.x-u,S=w.y-c,O=d.getArcOfVectors({x:s,y:l},{x:M,y:S});return d.mix({},w,{arc:O})}).sort(function(w,M){return w.arc-M.arc});return m},o.getAnchorPoints=function(n){var t,e=this.shapeObj,r=this.getBBox(),i=[],u=e.anchor||{};return t=d.isArray(u)?u:d.isFunction(u)?u(this):d.isFunction(u.points)?u.points(this):u.points,d.each(t,function(c,s){var l=d.mix({x:r.minX+c[0]*r.width,y:r.minY+c[1]*r.height},c[2],{index:s});i.push(l)}),this._anchorPoints=i,d.isNumber(n)?this._anchorPoints[n]:this._anchorPoints},a}(p(608));P.exports=v},function(P,b,p){function d(x,w,M){return w in x?Object.defineProperty(x,w,{value:M,enumerable:!0,configurable:!0,writable:!0}):x[w]=M,x}p(715),p(714),p(713);var v=p(712),h=p(710),a=p(683),o=p(26),n=p(706),t=p(248),e=p(704),r=p(702),i=p(700),u=p(699),c=p(697),s=p(696),l=p(695),f=p(692),g=p(691),y=[s,r,i,e,l,f,p(690),g,u,c],m=function(x){(function(S,O){S.prototype=Object.create(O.prototype),S.prototype.constructor=S,S.__proto__=O})(M,x);var w=M.prototype;function M(S){var O,A={};return y.forEach(function(E){o.mix(A,o.clone(E.CFG),S)}),(O=x.call(this,A)||this)._pluginInit(),O.emit("beforeinit"),O._init(),O.emit("afterinit"),O}return w.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,plugins:[],fontFamily:'"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\u5FAE\u8F6F\u96C5\u9ED1", SimSun, "sans-serif"',nodeDefaultShape:void 0,edgeDefaultShape:void 0,groupDefaultShape:void 0,defaultIntersectBox:"circle",renderer:"canvas",_type:"graph",_controllers:{},_timers:{},_dataMap:{},_itemMap:{},_freezMap:{},_data:{},_delayRunObj:{}}},w._init=function(){var S=this;this._initData(),this._initContainer(),this._initCanvas(),y.forEach(function(O){O.INIT&&S[O.INIT]()}),this.initEvent()},w.initEvent=function(){},w._executeLayout=function(S,O,A,E){o.isFunction(S)?S(O,A,this):o.isObject(S)&&(S.nodes=O,S.edges=A,S.groups=E,S.graph=this,S.execute())},w._pluginInit=function(){var S=this;this.get("plugins").forEach(function(O){S._initPlugin(O)})},w._initPlugin=function(S){S.graph=this,S.init&&S.init()},w._getTimer=function(S){return this.get("_timers")[S]},w._setTimer=function(S,O){this.get("_timers")[S]=O},w._getController=function(S){return this.get("_controllers")[S]},w._initContainer=function(){var S=this.get("container");S||(S=this.get("id")),S=o.initDOMContainer(S,"graph");var O=o.createDOM('
',{position:"relative"});S.appendChild(O),this.set("_containerDOM",S),this.set("_graphContainer",O)},w._initCanvas=function(){var S=this.get("_graphContainer"),O=this.get("width"),A=this.get("height"),E=this.get("fontFamily"),_=this.get("renderer"),C={width:O,height:A,fontFamily:E,renderer:_,eventEnable:!1,containerDOM:S};_==="svg"&&(C.pixelRatio=1);var k=new t.Canvas(C),T=k.get("el");T.style.top=0,T.style.left=0,T.style.overflow="hidden",this.set("_canvas",k);var I=this.getMouseEventWrapper();I.style.outline="none",I.style["user-select"]="none",I.setAttribute("tabindex",20);var D=k.addGroup(),R=D.addGroup();this.set("_itemGroup",R),this.set("_rootGroup",D)},w._initData=function(){this.set("_dataMap",{}),this.set("_itemMap",{_nodes:[],_edges:[],_groups:[],_guides:[]}),this.set("_data",{})},w._refresh=function(){},w.getKeyboardEventWrapper=function(){var S=this.get("keyboardEventWrapper");return S||this.getMouseEventWrapper()},w.getMouseEventWrapper=function(){return this.get("_canvas").get("el")},w.addPlugin=function(S){var O=this.get("plugins");this._initPlugin(S),O.push(S)},w.getGraphContainer=function(){return this.get("_graphContainer")},w._sortGroup=function(S){var O=this.get("_dataMap"),A={};S.forEach(function(E){var _=E.id,C=E.parent;for(A[_]=1;C&&O[C];)A[_]++,C=O[C].parent}),S.sort(function(E,_){return A[_.id]-A[E.id]})},w._addItems=function(S,O){var A=this;this._addDatas(S,O),S==="group"&&this._sortGroup(O);var E=o.upperFirst(S),_=h[E],C=this.get("_itemMap"),k=this.get("_itemGroup"),T=this.get("_dataMap"),I=this.get("animate"),D=this.get("defaultIntersectBox");if(!_)throw new Error("please set valid item type!");O.forEach(function(R){var j=new _({id:R.id,type:S,model:R,group:k.addGroup(),graph:A,mapper:A._getController(S+"Mapper"),itemMap:C,animate:I,dataMap:T,defaultIntersectBox:D});C[R.id]=j,C["_"+S+"s"].push(j)})},w._removeItems=function(S){var O=this.get("_dataMap"),A=this.get("_itemMap");S.forEach(function(E){delete O[E.id],delete A[E.id],o.Array.remove(A["_"+E.type+"s"],E),E.destroy()})},w._updateItems=function(S,O){S.forEach(function(A,E){var _=O[E];_&&o.mix(A.getModel(),_),A.update()})},w._getShowEdge=function(S){var O=S.getSource(),A=S.getTarget();return(O.linkable&&O.isVisible()||!O.linkable)&&(A.linkable&&A.isVisible()||!A.linkable)&&S},w._addDatas=function(S,O){var A=this.get("_dataMap");O.forEach(function(E){if(o.isNil(E.id)&&(E.id=o.guid()),A[E.id])throw new Error("id:"+E.id+" has already been set, please set new one");A[E.id]=E})},w._drawInner=function(){var S=this.get("_data"),O=this.get("_itemGroup"),A=this.get("_dataMap"),E=this.get("_itemMap");S.nodes&&this._addItems("node",S.nodes),S.groups&&this._addItems("group",S.groups),S.edges&&this._addItems("edge",S.edges),S.guides&&this._addItems("guide",S.guides),O.sortBy(function(_){var C=_.id,k=E[C],T=A[C];return T&&!o.isNil(T.index)?T.index:!k||k.destroyed||o.isNil(k.zIndex)?void 0:k.zIndex})},w._clearInner=function(){this.getItems().forEach(function(S){S&&S.destroy()})},w.preventAnimate=function(S){return this.set("_forcePreventAnimate",!0),S(),this.set("_forcePreventAnimate",!1),this},w.getShapeObj=function(S,O){if(!o.isObject(S)){var A=o.upperFirst(S),E=a[A],_=this.get(S+"DefaultShape");return E.getShape(O.shape,_)}return S.getShapeObj()},w.getSource=function(){return this.get("_sourceData")},w.parseSource=function(S){return S},w.getCanvas=function(){return this.get("_canvas")},w.getRootGroup=function(){return this.get("_rootGroup")},w.getItemGroup=function(){return this.get("_itemGroup")},w.source=function(S){return this.emit("beforesource"),this.set("_data",S),this.set("_sourceData",S),this.emit("aftersource"),this},w.render=function(){return this.emit("beforerender"),this.emit("beforedrawinner"),this._drawInner(),this.emit("afterdrawinner"),this.emit("afterrender"),this},w.reRender=function(){var S=this.get("_sourceData");return this.read(S),this},w.setCapture=function(S){this.get("_rootGroup").set("capture",S)},w.destroy=function(){this.emit("beforedestroy");var S=this.get("_canvas"),O=this.get("_graphContainer"),A=this.get("_controllers"),E=this.get("_timers"),_=this.get("_windowForceResizeEvent"),C=this.get("plugins");return o.each(E,function(k){clearTimeout(k)}),o.each(A,function(k){k.destroy()}),C.forEach(function(k){k.destroy&&k.destroy()}),S&&S.destroy(),O.destroy(),window.removeEventListener("resize",_),this.emit("afterdestroy"),x.prototype.destroy.call(this),this},w.save=function(){var S={nodes:[],edges:[],groups:[],guides:[]};return this.get("_itemGroup").get("children").forEach(function(O,A){var E=O.model;if(E){var _=O.itemType,C=o.clone(E);C.index=A,S[_+"s"].push(C)}}),S.nodes.length===0&&delete S.nodes,S.edges.length===0&&delete S.edges,S.groups.length===0&&delete S.groups,S.guides.length===0&&delete S.guides,S},w.add=function(S,O){var A=[],E={action:"add",model:O,affectedItemIds:A};this.emit("beforechange",E);var _=this.get("_itemMap");this._addItems(S,[O]);var C=_[O.id];return C.getAllParents().forEach(function(k){k.update()}),E.item=C,A.push(O.id),this.emit("afterchange",E),C},w.remove=function(S){if((S=this.getItem(S))&&!S.destroyed){var O=[],A=[],E={action:"remove",item:S,affectedItemIds:A};if(S.isNode){var _=S.getEdges();O=O.concat(_)}if(S.isGroup){var C=S.getEdges(),k=S.getAllChildren(),T=S.getCrossEdges(),I=S.getInnerEdges();O=O.concat(C,k,T,I),O=o.uniq(O)}O.push(S);var D=S.getAllParents();return D.forEach(function(R){A.push(R.id)}),O.forEach(function(R){A.push(R.id)}),this.emit("beforechange",E),this._removeItems(O),D.forEach(function(R){R.update()}),this.emit("afterchange",E),this}},w.simpleUpdate=function(S,O){return this._updateItems([S],[O]),this.draw(),this},w.update=function(S,O){var A=this.get("_itemMap");if((S=this.getItem(S))&&!S.destroyed&&O){var E=this.get("animate"),_=[],C=[],k=[],T=S.getModel(),I=o.mix({},T),D={action:"update",item:S,originModel:I,updateModel:O,affectedItemIds:k},R=A[I.parent];if(_.push(S),C.push(O),k.push(S.id),R&&R!==parent&&o.isGroup(R)&&S.getAllParents().forEach(function(B){_.push(B),C.push(null),k.push(B.id)}),O.parent){var j=A[O.parent];if(!j)throw new Error("there is no "+O.parent+" exist, please add a new one!");_.push(j),C.push(null),k.push(j.id),j.getAllParents().forEach(function(B){_.push(B),C.push(null),k.push(B.id)})}return(S.isNode||S.isGroup)&&S.getEdges().forEach(function(B){_.push(B),C.push(null),k.push(B.id)}),S.isGroup&&!o.isNil(O.collapsed)&&(E&&S.deepEach(function(B){k.push(B.id)}),S.getCrossEdges().forEach(function(B){_.push(B),C.push(null),k.push(B.id)})),this.emit("beforechange",D),this._updateItems(_,C),this.emit("afterchange",D),this}},w.read=function(S){var O=this;if(!S)throw new Error("please read valid data!");var A={action:"changeData",data:S};return this.emit("beforechange",A),this.preventAnimate(function(){O.clear(),O.source(S),O.render()}),this.emit("afterchange",A),this},w.clear=function(){return this.emit("beforeclear"),this._clearInner(),this._initData(),this.emit("afterclear"),this},w.hide=function(S){var O=[],A=[],E={item:S=this.getItem(S),affectedItemIds:A};return O.push(S),S.isNode&&S.getEdges().forEach(function(_){O.push(_)}),S.isGroup&&(S.getEdges().forEach(function(_){O.push(_)}),S.deepEach(function(_){O.push(_)})),(O=o.uniq(O)).forEach(function(_){A.push(_.id)}),this.emit("beforehide",E),O.forEach(function(_){_.hide()}),this.emit("afterhide",E),this},w.show=function(S){var O=this,A=[],E=[],_={item:S=this.getItem(S),affectedItemIds:E};if(S.visible=!0,S.isEdge){var C=this._getShowEdge(S);C&&A.push(C)}else A.push(S);return S.isNode&&S.getEdges().forEach(function(k){(k=O._getShowEdge(k))&&A.push(k)}),S.isGroup&&(S.getEdges().forEach(function(k){(k=O._getShowEdge(k))&&A.push(k)}),S.deepEach(function(k){A.push(k)})),(A=o.uniq(A)).forEach(function(k){E.push(k.id)}),this.emit("beforeshow",_),A.forEach(function(k){k.show()}),this.emit("aftershow",_),this},w.getWidth=function(){return this.get("width")},w.getHeight=function(){return this.get("height")},w.changeSize=function(S,O){if(!(Math.abs(S)>=1/0||Math.abs(O)>=1/0)){var A=this.get("_canvas");return S===this.get("width")&&O===this.get("height")||(this.emit("beforechangesize"),A.changeSize(S,O),this.set("width",S),this.set("height",O),this.emit("afterchangesize"),this.draw()),this}console.warn("size parameter more than the maximum")},w.toFront=function(S){S=this.getItem(S);var O=this.get("_itemGroup"),A=S.getGraphicGroup();o.toFront(A,O),this.draw()},w.toBack=function(S){S=this.getItem(S);var O=this.get("_itemGroup"),A=S.getGraphicGroup();o.toBack(A,O),this.draw()},w.css=function(S){var O=this.getGraphContainer();o.modifyCSS(O,S)},w.saveImage=function(S){var O=this.getBBox(),A=this.getFitViewPadding();return new n(function(E){for(var _=1;_1?t*n+this._getSpaceingY()*(n-1):t},isHitBox:function(){return!1},calculateBox:function(){var o=this._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),o.textArr||this._setAttrText();var t=o.x,e=o.y,r=this.measureText();if(!r)return{minX:t,minY:e,maxX:t,maxY:e};var i=this._getTextHeight(),u=o.textAlign,c=o.textBaseline,s=this.getHitLineWidth(),l={x:t,y:e-i};u&&(u==="end"||u==="right"?l.x-=r:u==="center"&&(l.x-=r/2)),c&&(c==="top"?l.y+=i:c==="middle"&&(l.y+=i/2)),this.set("startPoint",l);var f=s/2;return{minX:l.x-f,minY:l.y-f,maxX:l.x+r+f,maxY:l.y+i+f}},_getSpaceingY:function(){var o=this._attrs,n=o.lineHeight,t=1*o.fontSize;return n?n-t:.14*t},drawInner:function(o){var n=this._attrs,t=this._cfg;t.attrs&&!t.hasUpdate||(this._assembleFont(),this._setAttrText()),o.font=n.font;var e=n.text;if(e){var r=n.textArr,i=n.x,u=n.y;if(o.beginPath(),this.hasStroke()){var c=n.strokeOpacity;d.isNil(c)||c===1||(o.globalAlpha=c),r?this._drawTextArr(o,!1):o.strokeText(e,i,u),o.globalAlpha=1}if(this.hasFill()){var s=n.fillOpacity;d.isNil(s)||s===1||(o.globalAlpha=s),r?this._drawTextArr(o,!0):o.fillText(e,i,u)}t.hasUpdate=!1}},_drawTextArr:function(o,n){var t,e=this._attrs.textArr,r=this._attrs.textBaseline,i=1*this._attrs.fontSize,u=this._getSpaceingY(),c=this._attrs.x,s=this._attrs.y,l=this.getBBox(),f=l.maxY-l.minY;d.each(e,function(g,y){t=s+y*(u+i)-f+i,r==="middle"&&(t+=f-i-(f-i)/2),r==="top"&&(t+=f-i),n?o.fillText(g,c,t):o.strokeText(g,c,t)})},measureText:function(){var o,n=this._attrs,t=n.text,e=n.font,r=n.textArr,i=0;if(!d.isNil(t)){var u=document.createElement("canvas").getContext("2d");return u.save(),u.font=e,r?d.each(r,function(c){o=u.measureText(c).width,ic&&(c=g),ys&&(s=y)});var l=e/2;return{minX:i-l,minY:u-l,maxX:c+l,maxY:s+l}},_setTcache:function(){var t,e,r=this._attrs.points,i=0,u=0,c=[];r&&r.length!==0&&(d.each(r,function(s,l){r[l+1]&&(i+=a.len(s[0],s[1],r[l+1][0],r[l+1][1]))}),i<=0||(d.each(r,function(s,l){r[l+1]&&((t=[])[0]=u/i,e=a.len(s[0],s[1],r[l+1][0],r[l+1][1]),u+=e,t[1]=u/i,c.push(t))}),this.tCache=c))},createPath:function(t){var e,r,i=this._attrs.points;if(!(i.length<2)){for((t=t||this.get("context")).beginPath(),t.moveTo(i[0][0],i[0][1]),r=1,e=i.length-1;r=c[0]&&t<=c[1]&&(e=(t-c[0])/(c[1]-c[0]),r=s)}),{x:a.at(i[r][0],i[r+1][0],e),y:a.at(i[r][1],i[r+1][1],e)}}}),P.exports=o},function(P,b,p){var d=p(19),v=p(58),h=function a(o){a.superclass.constructor.call(this,o)};h.ATTRS={points:null,lineWidth:1},d.extend(h,v),d.augment(h,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var o=this._attrs.points,n=this.getHitLineWidth();if(!o||o.length===0)return null;var t=1/0,e=1/0,r=-1/0,i=-1/0;d.each(o,function(c){var s=c[0],l=c[1];sr&&(r=s),li&&(i=l)});var u=n/2;return{minX:t-u,minY:e-u,maxX:r+u,maxY:i+u}},createPath:function(o){var n=this._attrs.points;n.length<2||((o=o||this.get("context")).beginPath(),d.each(n,function(t,e){e===0?o.moveTo(t[0],t[1]):o.lineTo(t[0],t[1])}),o.closePath())}}),P.exports=h},function(P,b,p){var d=p(19),v=p(58),h=p(600),a=p(593),o=p(601),n=p(610),t=p(612),e=function r(i){r.superclass.constructor.call(this,i)};e.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},d.extend(e,v),d.augment(e,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(i){if(d.isNil(i))return this.setSilent("segments",null),void this.setSilent("box",void 0);var u,c=a.parsePath(i),s=[];if(d.isArray(c)&&c.length!==0&&(c[0][0]==="M"||c[0][0]==="m")){for(var l=c.length,f=0;fs&&(s=y.maxX),y.minYf&&(f=y.maxY))}),c===1/0||l===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:c,minY:l,maxX:s,maxY:f}},_setTcache:function(){var i,u,c,s,l=0,f=0,g=[],y=this._cfg.curve;y&&(d.each(y,function(m,x){c=y[x+1],s=m.length,c&&(l+=t.len(m[s-2],m[s-1],c[1],c[2],c[3],c[4],c[5],c[6]))}),d.each(y,function(m,x){c=y[x+1],s=m.length,c&&((i=[])[0]=f/l,u=t.len(m[s-2],m[s-1],c[1],c[2],c[3],c[4],c[5],c[6]),f+=u,i[1]=f/l,g.push(i))}),this._cfg.tCache=g)},_calculateCurve:function(){var i=this._attrs.path;this._cfg.curve=n.pathTocurve(i)},getStartTangent:function(){var i,u,c,s,l=this.get("segments");if(l.length>1)if(i=l[0].endPoint,u=l[1].endPoint,c=l[1].startTangent,s=[],d.isFunction(c)){var f=c();s.push([i.x-f[0],i.y-f[1]]),s.push([i.x,i.y])}else s.push([u.x,u.y]),s.push([i.x,i.y]);return s},getEndTangent:function(){var i,u,c,s,l=this.get("segments"),f=l.length;if(f>1)if(i=l[f-2].endPoint,u=l[f-1].endPoint,c=l[f-1].endTangent,s=[],d.isFunction(c)){var g=c();s.push([u.x-g[0],u.y-g[1]]),s.push([u.x,u.y])}else s.push([i.x,i.y]),s.push([u.x,u.y]);return s},getPoint:function(i){var u,c,s=this._cfg.tCache;s||(this._calculateCurve(),this._setTcache(),s=this._cfg.tCache);var l=this._cfg.curve;if(!s)return l?{x:l[0][1],y:l[0][2]}:null;d.each(s,function(m,x){i>=m[0]&&i<=m[1]&&(u=(i-m[0])/(m[1]-m[0]),c=x)});var f=l[c];if(d.isNil(f)||d.isNil(c))return null;var g=f.length,y=l[c+1];return{x:t.at(f[g-2],y[1],y[3],y[5],1-u),y:t.at(f[g-1],y[2],y[4],y[6],1-u)}},createPath:function(i){var u=this.get("segments");if(d.isArray(u)){(i=i||this.get("context")).beginPath();for(var c=u.length,s=0;si?r:i,c=r>i?1:r/i,s=r>i?i/r:1,l=[1,0,0,0,1,0,0,0,1];d.mat3.scale(l,l,[c,s]),d.mat3.translate(l,l,[t,e]),o.beginPath(),o.save(),o.transform(l[0],l[1],l[3],l[4],l[6],l[7]),o.arc(0,0,u,0,2*Math.PI),o.restore(),o.closePath()}}),P.exports=h},function(P,b,p){var d=p(19),v=p(58),h=function a(o){a.superclass.constructor.call(this,o)};d.extend(h,v),d.augment(h,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var o=this._attrs,n=o.x,t=o.y,e=o.width,r=o.height,i=this.getHitLineWidth()/2;return{minX:n-i,minY:t-i,maxX:n+e+i,maxY:t+r+i}}}),P.exports=h},function(P,b,p){var d=p(19),v=p(58),h=function a(o){a.superclass.constructor.call(this,o)};h.ATTRS={x:0,y:0,r:0,lineWidth:1},d.extend(h,v),d.augment(h,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var o=this._attrs,n=o.x,t=o.y,e=o.r,r=this.getHitLineWidth()/2+e;return{minX:n-r,minY:t-r,maxX:n+r,maxY:t+r}},createPath:function(o){var n=this._attrs,t=n.x,e=n.y,r=n.r;o.beginPath(),o.arc(t,e,r,0,2*Math.PI,!1),o.closePath()}}),P.exports=h},function(P,b,p){var d=p(19),v=p(58),h=p(602),a=p(601);function o(e,r,i){return e+r*Math.cos(i)}function n(e,r,i){return e+r*Math.sin(i)}var t=function e(r){e.superclass.constructor.call(this,r)};t.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},d.extend(t,v),d.augment(t,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var r=this._attrs,i=r.x,u=r.y,c=r.r,s=r.startAngle,l=r.endAngle,f=r.clockwise,g=this.getHitLineWidth()/2,y=h.box(i,u,c,s,l,f);return y.minX-=g,y.minY-=g,y.maxX+=g,y.maxY+=g,y},getStartTangent:function(){var r=this._attrs,i=r.x,u=r.y,c=r.startAngle,s=r.r,l=r.clockwise,f=Math.PI/180;l&&(f*=-1);var g=[],y=o(i,s,c+f),m=n(u,s,c+f),x=o(i,s,c),w=n(u,s,c);return g.push([y,m]),g.push([x,w]),g},getEndTangent:function(){var r=this._attrs,i=r.x,u=r.y,c=r.endAngle,s=r.r,l=r.clockwise,f=Math.PI/180,g=[];l&&(f*=-1);var y=o(i,s,c+f),m=n(u,s,c+f),x=o(i,s,c),w=n(u,s,c);return g.push([x,w]),g.push([y,m]),g},createPath:function(r){var i=this._attrs,u=i.x,c=i.y,s=i.r,l=i.startAngle,f=i.endAngle,g=i.clockwise;(r=r||self.get("context")).beginPath(),r.arc(u,c,s,l,f,g)},afterPath:function(r){var i=this._attrs;if(r=r||this.get("context"),i.startArrow){var u=this.getStartTangent();a.addStartArrow(r,i,u[0][0],u[0][1],u[1][0],u[1][1])}if(i.endArrow){var c=this.getEndTangent();a.addEndArrow(r,i,c[0][0],c[0][1],c[1][0],c[1][1])}}}),P.exports=t},function(P,b){P.exports={xAt:function(d,v,h,a,o){return v*Math.cos(d)*Math.cos(o)-h*Math.sin(d)*Math.sin(o)+a},yAt:function(d,v,h,a,o){return v*Math.sin(d)*Math.cos(o)+h*Math.cos(d)*Math.sin(o)+a},xExtrema:function(d,v,h){return Math.atan(-h/v*Math.tan(d))},yExtrema:function(d,v,h){return Math.atan(h/(v*Math.tan(d)))}}},function(P,b,p){var d=p(19),v=d.vec2;function h(o,n,t,e){var r=1-e;return r*(r*o+2*e*n)+e*e*t}function a(o,n,t,e,r,i,u,c,s){var l,f,g,y,m,x,w,M=.005,S=1/0,O=[u,c];for(m=0;m<1;m+=.05)g=[h(o,t,r,m),h(n,e,i,m)],(f=v.squaredDistance(O,g))=0&&f=0?[i]:[]}}},function(P,b,p){var d=p(19),v=p(746),h=p(745),a=p(744),o=p(116),n=function(e){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},d.assign(this._cfg,this.getDefaultCfg(),e),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};n.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},d.augment(n,v,h,o,a,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(e,r){return e==="zIndex"&&this._beforeSetZIndex&&this._beforeSetZIndex(r),e==="loading"&&this._beforeSetLoading&&this._beforeSetLoading(r),this._cfg[e]=r,this},setSilent:function(e,r){this._cfg[e]=r},get:function(e){return this._cfg[e]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(e,r){var i=this._cfg,u=i.parent,c=i.el;return u&&d.remove(u.get("children"),this),c&&(r?u&&u._cfg.tobeRemoved.push(c):c.parentNode.removeChild(c)),(e||e===void 0)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var e=this._cfg,r=e.parent;if(r){var i=r._cfg.children,u=e.el,c=i.indexOf(this);i.splice(c,1),i.push(this),u&&(u.parentNode.removeChild(u),e.el=null)}},toBack:function(){var e=this._cfg,r=e.parent;if(r){var i=r._cfg.children,u=e.el,c=i.indexOf(this);if(i.splice(c,1),i.unshift(this),u){var s=u.parentNode;s.removeChild(u),s.insertBefore(u,s.firstChild)}}},_beforeSetZIndex:function(e){var r=this._cfg.parent;this._cfg.zIndex=e,d.isNil(r)||r.sort();var i=this._cfg.el;if(i){var u=r._cfg.children,c=u.indexOf(this),s=i.parentNode;s.removeChild(i),c===u.length-1?s.appendChild(i):s.insertBefore(i,s.childNodes[c])}return e},_setAttrs:function(e){return this.attr(e),e},setZIndex:function(e){return this._cfg.zIndex=e,this._beforeSetZIndex(e)},clone:function(){return d.clone(this)},getBBox:function(){}}),P.exports=n},function(P,b,p){var d=p(19),v=p(641),h=p(743),a={},o="_INDEX";function n(e,r,i){for(var u,c=e.length-1;c>=0;c--){var s=e[c];if(s._cfg.visible&&s._cfg.capture&&(s.isGroup?u=s.getShape(r,i):s.isHit(r,i)&&(u=s)),u)break}return u}var t=function e(r){e.superclass.constructor.call(this,r),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};d.extend(t,v),d.augment(t,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return function r(i){if(!i._cfg&&i!==t){var u=i.superclass.constructor;u&&!u._cfg&&r(u),i._cfg={},d.merge(i._cfg,u._cfg),d.merge(i._cfg,i.CFG)}}(this.constructor),d.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(r,i){var u=this.get("canvas");i=i||{};var c=a[r];if(c||(c=d.upperFirst(r),a[r]=c),i.attrs&&u){var s=i.attrs;if(r==="text"){var l=u.get("fontFamily");l&&(s.fontFamily=s.fontFamily?s.fontFamily:l)}}i.canvas=u,i.type=r;var f=new h[c](i);return this.add(f),f},addGroup:function(r,i){var u,c=this.get("canvas");if(i=d.merge({},i),d.isFunction(r))i?(i.canvas=c,i.parent=this,u=new r(i)):u=new r({canvas:c,parent:this}),this.add(u);else if(d.isObject(r))r.canvas=c,u=new t(r),this.add(u);else{if(r!==void 0)return!1;u=new t,this.add(u)}return u},renderBack:function(r,i){var u=this.get("backShape"),c=this.getBBox();return d.merge(i,{x:c.minX-r[3],y:c.minY-r[0],width:c.width+r[1]+r[3],height:c.height+r[0]+r[2]}),u?u.attr(i):u=this.addShape("rect",{zIndex:-1,attrs:i}),this.set("backShape",u),this.sort(),u},removeChild:function(r,i){if(arguments.length>=2)this.contain(r)&&r.remove(i);else{if(arguments.length===1){if(!d.isBoolean(r))return this.contain(r)&&r.remove(!0),this;i=r}arguments.length===0&&(i=!0),t.superclass.remove.call(this,i)}return this},add:function(r){var i=this,u=i.get("children");if(d.isArray(r))d.each(r,function(l){var f=l.get("parent");f&&f.removeChild(l,!1),i._setCfgProperty(l)}),i._cfg.children=u.concat(r);else{var c=r,s=c.get("parent");s&&s.removeChild(c,!1),i._setCfgProperty(c),u.push(c)}return i},_setCfgProperty:function(r){var i=this._cfg;r.set("parent",this),r.set("canvas",i.canvas),i.timeline&&r.set("timeline",i.timeline)},contain:function(r){return this.get("children").indexOf(r)>-1},getChildByIndex:function(r){return this.get("children")[r]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var r=this.get("children").length-1;return this.getChildByIndex(r)},getBBox:function(){var r=1/0,i=-1/0,u=1/0,c=-1/0,s=this.get("children");s.length>0?d.each(s,function(f){if(f.get("visible")){if(f.isGroup&&f.get("children").length===0)return;var g=f.getBBox();if(!g)return!0;var y=[g.minX,g.minY,1],m=[g.minX,g.maxY,1],x=[g.maxX,g.minY,1],w=[g.maxX,g.maxY,1];f.apply(y),f.apply(m),f.apply(x),f.apply(w);var M=Math.min(y[0],m[0],x[0],w[0]),S=Math.max(y[0],m[0],x[0],w[0]),O=Math.min(y[1],m[1],x[1],w[1]),A=Math.max(y[1],m[1],x[1],w[1]);Mi&&(i=S),Oc&&(c=A)}}):(r=0,i=0,u=0,c=0);var l={minX:r,minY:u,maxX:i,maxY:c};return l.x=l.minX,l.y=l.minY,l.width=l.maxX-l.minX,l.height=l.maxY-l.minY,l},getCount:function(){return this.get("children").length},sort:function(){var r=this.get("children");return d.each(r,function(i,u){return i[o]=u,i}),r.sort(function(i){return function(u,c){var s=i(u,c);return s===0?u[o]-c[o]:s}}(function(i,u){return i.get("zIndex")-u.get("zIndex")})),this},findById:function(r){return this.find(function(i){return i.get("id")===r})},find:function(r){if(d.isString(r))return this.findById(r);var i=this.get("children"),u=null;return d.each(i,function(c){if(r(c)?u=c:c.find&&(u=c.find(r)),u)return!1}),u},findAll:function(r){var i=this.get("children"),u=[],c=[];return d.each(i,function(s){r(s)&&u.push(s),s.findAllBy&&(c=s.findAllBy(r),u=u.concat(c))}),u},findBy:function(r){var i=this.get("children"),u=null;return d.each(i,function(c){if(r(c)?u=c:c.findBy&&(u=c.findBy(r)),u)return!1}),u},findAllBy:function(r){var i=this.get("children"),u=[],c=[];return d.each(i,function(s){r(s)&&u.push(s),s.findAllBy&&(c=s.findAllBy(r),u=u.concat(c))}),u},getShape:function(r,i){var u,c=this._attrs.clip,s=this._cfg.children;if(c){var l=[r,i,1];c.invert(l,this.get("canvas")),c.isPointInPath(l[0],l[1])&&(u=n(s,r,i))}else u=n(s,r,i);return u},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var r=this._cfg.children,i=0;i=0;u--)i[u].remove(!0,r);return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),t.superclass.destroy.call(this))},clone:function(){var r=this._cfg.children,i=new t;return d.each(r,function(u){i.add(u.clone())}),i}}),P.exports=t},function(P,b,p){var d=p(19),v=function(a,o,n,t){this.type=a,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=t,this.timeStamp=new Date().getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=o};d.augment(v,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return d.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),P.exports=v},function(P,b,p){P.exports={isFunction:p(84),isObject:p(621),isBoolean:p(653),isNil:p(237),isString:p(595),isArray:p(45),isNumber:p(236),isEmpty:p(647),uniqueId:p(646),clone:p(616),deepMix:p(615),assign:p(606),merge:p(615),upperFirst:p(655),each:p(46),isEqual:p(614),toArray:p(604),extend:p(650),augment:p(651),remove:p(676),isNumberEqual:p(673),toRadian:p(669),toDegree:p(671),mod:p(672),clamp:p(618),createDom:p(681),modifyCSS:p(680),requestAnimationFrame:p(679),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:p(617),vec2:p(668),vec3:p(667),transform:p(666)}},function(P,b,p){var d=p(16),v=p(253),h=p(251),a="Expected a function",o=Math.max,n=Math.min;P.exports=function(t,e,r){var i,u,c,s,l,f,g=0,y=!1,m=!1,x=!0;if(typeof t!="function")throw new TypeError(a);function w(E){var _=i,C=u;return i=u=void 0,g=E,s=t.apply(C,_)}function M(E){var _=E-f;return f===void 0||_>=e||_<0||m&&E-g>=c}function S(){var E=v();if(M(E))return O(E);l=setTimeout(S,function(_){var C=e-(_-f);return m?n(C,c-(_-g)):C}(E))}function O(E){return l=void 0,x&&i?w(E):(i=u=void 0,s)}function A(){var E=v(),_=M(E);if(i=arguments,u=this,f=E,_){if(l===void 0)return function(C){return g=C,l=setTimeout(S,e),y?w(C):s}(f);if(m)return l=setTimeout(S,e),w(f)}return l===void 0&&(l=setTimeout(S,e)),s}return e=h(e)||0,d(r)&&(y=!!r.leading,c=(m="maxWait"in r)?o(h(r.maxWait)||0,e):c,x="trailing"in r?!!r.trailing:x),A.cancel=function(){l!==void 0&&clearTimeout(l),g=0,i=f=u=l=void 0},A.flush=function(){return l===void 0?s:O(v())},A}},function(P,b){var p=function(){var d={};return function(v){return d[v=v||"g"]?d[v]+=1:d[v]=1,v+d[v]}}();P.exports=p},function(P,b,p){var d=p(237),v=p(118),h=p(654),a=p(652),o=Object.prototype.hasOwnProperty;P.exports=function(n){if(d(n))return!0;if(v(n))return!n.length;var t=h(n);if(t==="Map"||t==="Set")return!n.size;if(a(n))return!Object.keys(n).length;for(var e in n)if(o.call(n,e))return!1;return!0}},function(P,b,p){var d=p(46),v=p(45),h=Object.prototype.hasOwnProperty;P.exports=function(a,o){if(!o||!v(a))return a;var n={},t=null;return d(a,function(e){t=o(e),h.call(n,t)?n[t].push(e):n[t]=[e]}),n}},function(P,b,p){var d=p(84),v=p(45),h=p(648);P.exports=function(a,o){if(!o)return{0:a};if(!d(o)){var n=v(o)?o:o.replace(/\s+/g,"").split("*");o=function(e){for(var r="_",i=0,u=n.length;ih;h+=2){var o=[{x:+p[h-2],y:+p[h-1]},{x:+p[h],y:+p[h+1]},{x:+p[h+2],y:+p[h+3]},{x:+p[h+4],y:+p[h+5]}];d?h?a-4===h?o[3]={x:+p[0],y:+p[1]}:a-2===h&&(o[2]={x:+p[0],y:+p[1]},o[3]={x:+p[2],y:+p[3]}):o[0]={x:+p[a-2],y:+p[a-1]}:a-4===h?o[3]=o[2]:h||(o[0]={x:+p[h],y:+p[h+1]}),v.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return v}},function(P,b){var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},d=` +\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,v=new RegExp("([a-z])["+d+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+d+"]*,?["+d+"]*)+)","ig"),h=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+d+"]*,?["+d+"]*","ig");P.exports=function(a){if(!a)return null;if((a===void 0?"undefined":p(a))===p([]))return a;var o={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(a).replace(v,function(t,e,r){var i=[],u=e.toLowerCase();if(r.replace(h,function(c,s){s&&i.push(+s)}),u==="m"&&i.length>2&&(n.push([e].concat(i.splice(0,2))),u="l",e=e==="m"?"l":"L"),u==="o"&&i.length===1&&n.push([e,i[0]]),u==="r")n.push([e].concat(i));else for(;i.length>=o[u]&&(n.push([e].concat(i.splice(0,o[u]))),o[u]););}),n}},function(P,b,p){var d=p(659),v=p(658);function h(a,o,n,t,e){var r=[];if(e===null&&t===null&&(t=n),a=+a,o=+o,n=+n,t=+t,e!==null){var i=Math.PI/180,u=a+n*Math.cos(-t*i),c=a+n*Math.cos(-e*i);r=[["M",u,o+n*Math.sin(-t*i)],["A",n,n,0,+(e-t>180),0,c,o+n*Math.sin(-e*i)]]}else r=[["M",a,o],["m",0,-t],["a",n,t,0,1,1,0,2*t],["a",n,t,0,1,1,0,-2*t],["z"]];return r}P.exports=function(a){if(!(a=d(a))||!a.length)return[["M",0,0]];var o=[],n=0,t=0,e=0,r=0,i=0,u=void 0,c=void 0;a[0][0]==="M"&&(e=n=+a[0][1],r=t=+a[0][2],i++,o[0]=["M",n,t]);for(var s,l,f=a.length===3&&a[0][0]==="M"&&a[1][0].toUpperCase()==="R"&&a[2][0].toUpperCase()==="Z",g=i,y=a.length;g1&&(R*=F=Math.sqrt(F),j*=F);var $=R*R,st=j*j,ot=(X===et?-1:1)*Math.sqrt(Math.abs(($*st-$*H*H-st*G*G)/($*H*H+st*G*G)));Y=ot*R*H/j+(I+K)/2,N=ot*-j*G/R+(D+tt)/2,Q=Math.asin(((D-N)/j).toFixed(9)),it=Math.asin(((tt-N)/j).toFixed(9)),Q=Iit&&(Q-=2*Math.PI),!et&&it>Q&&(it-=2*Math.PI)}var ct=it-Q;if(Math.abs(ct)>nt){var ht=it,pt=K,Z=tt;it=Q+nt*(et&&it>Q?1:-1),W=T(K=Y+R*Math.cos(it),tt=N+j*Math.sin(it),R,j,B,0,et,pt,Z,[it,ht,Y,N])}ct=it-Q;var z=Math.cos(Q),lt=Math.sin(Q),rt=Math.cos(it),gt=Math.sin(it),mt=Math.tan(ct/4),St=4/3*R*mt,Mt=4/3*j*mt,Ot=[I,D],yt=[I+St*lt,D-Mt*z],wt=[K+St*gt,tt-Mt*rt],Et=[K,tt];if(yt[0]=2*Ot[0]-yt[0],yt[1]=2*Ot[1]-yt[1],J)return[yt,wt,Et].concat(W);for(var Pt=[],At=0,Rt=(W=[yt,wt,Et].concat(W).join().split(",")).length;At7){A[E].shift();for(var _=A[E];_.length;)i[E]="A",t&&(u[E]="A"),A.splice(E++,0,["C"].concat(_.splice(0,6)));A.splice(E,1),l=Math.max(n.length,t&&t.length||0)}},y=function(A,E,_,C,k){A&&E&&A[k][0]==="M"&&E[k][0]!=="M"&&(E.splice(k,0,["M",C.x,C.y]),_.bx=0,_.by=0,_.x=A[k][1],_.y=A[k][2],l=Math.max(n.length,t&&t.length||0))};l=Math.max(n.length,t&&t.length||0);for(var m=0;m=0;return o?t?2*Math.PI-n:n:t?n:2*Math.PI-n},d.vertical=function(h,a,o){return o?(h[0]=a[1],h[1]=-1*a[0]):(h[0]=-1*a[1],h[1]=a[0]),h},P.exports=d},function(P,b){var p=Math.PI/180;P.exports=function(d){return p*d}},function(P,b){P.exports=parseInt},function(P,b){var p=180/Math.PI;P.exports=function(d){return p*d}},function(P,b){P.exports=function(p,d){return(p%d+d)%d}},function(P,b){P.exports=function(p,d){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e-5;return Math.abs(p-d)-1;)d.call(a,e,1);return a}},function(P,b,p){var d=p(46),v=p(84),h=Object.keys?function(a){return Object.keys(a)}:function(a){var o=[];return d(a,function(n,t){v(a)&&t==="prototype"||o.push(t)}),o};P.exports=h},function(P,b,p){var d=p(677),v=p(237);P.exports=function(h,a){var o=d(a),n=o.length;if(v(h))return!n;for(var t=0;t]*>/,h={tr:document.createElement("tbody"),tbody:p,thead:p,tfoot:p,td:d,th:d,"*":document.createElement("div")};P.exports=function(a){var o=v.test(a)&&RegExp.$1;o in h||(o="*");var n=h[o];a=a.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+a;var t=n.childNodes[0];return n.removeChild(t),t}},function(P,b,p){var d=p(257),v={isBetween:function(a,o,n){return a>=o&&a<=n},getLineIntersect:function(a,o,n,t){var e=n.x-a.x,r=n.y-a.y,i=o.x-a.x,u=o.y-a.y,c=t.x-n.x,s=t.y-n.y,l=i*s-u*c,f=null;if(l*l>.001*(i*i+u*u)*(c*c+s*s)){var g=(e*s-r*c)/l,y=(e*u-r*i)/l;v.isBetween(g,0,1)&&v.isBetween(y,0,1)&&(f={x:a.x+g*i,y:a.y+g*u})}return f},getIntersectPointRect:function(a,o){var n=a.minX,t=a.minY,e=a.maxX-a.minX,r=a.maxY-a.minY,i=[],u={x:n+e/2,y:t+r/2};i.push({x:n,y:t}),i.push({x:n+e,y:t}),i.push({x:n+e,y:t+r}),i.push({x:n,y:t+r}),i.push({x:n,y:t});for(var c=null,s=1;sg&&(g=t);for(e=0;e0?(n=n.filter(function(t){var e=o[t.id];return!!e&&e.getShapeObj().bboxCalculation!==!1}),d.getChildrenBBox(n)):{minX:0,minY:0,maxX:this.get("width"),maxY:this.get("height")}},getFitViewPadding:function(){return d.toAllPadding(this.get("fitViewPadding"))},setFitView:function(a){if(!a)return this;if(a==="autoZoom")return this.autoZoom(),this;var o=this.getFitViewPadding(),n=this.get("width"),t=this.get("height"),e=this.getBBox(),r=e.maxX-e.minX,i=e.maxY-e.minY,u={x:0,y:0,width:n,height:t},c=d.getNineBoxPosition(a,u,r,i,o),s=[1,0,0,0,1,0,0,0,1];d.mat3.translate(s,s,[-e.minX+c.x,-e.minY+c.y]),this.updateMatrix(s)},_getZoomRatio:function(a){var o=this.get("maxZoom"),n=this.get("minZoom");return ao&&(a=o),a},autoZoom:function(a){var o=this;a||(a=this.getFitViewPadding());var n=this.get("width"),t=this.get("height"),e=this.getBBox(),r=d.getAutoZoomMatrix({minX:0,minY:0,maxX:n,maxY:t},e,a,function(i){return o._getZoomRatio(i)});this.updateMatrix(r)},getZoom:function(){return this.getMatrix()[0]},updateMatrix:function(a){var o=this.getMatrix(),n={updateMatrix:a,originMatrix:o},t=o[0]!==a[0];return this.emit("beforeviewportchange",n),t&&this.emit("beforezoom",n),this.setMatrix(a),t&&this.emit("afterzoom",n),this.emit("afterviewportchange",n),this.draw(),this},zoom:function(a,o){if(!d.isNumber(a)){o=this._getZoomRatio(o);var n=this.get("_rootGroup"),t=d.clone(n.getMatrix()),e=t[6]+t[0]*a.x-o*a.x,r=t[7]+t[0]*a.y-o*a.y;return t[6]=0,t[7]=0,t[0]=o,t[4]=o,d.mat3.translate(t,t,[e,r]),this.updateMatrix(t),this}var i=this.get("width"),u=this.get("height");this.zoomByDom({x:i/2,y:u/2},a)},zoomByDom:function(a,o){var n=this.getPoint(a);return this.zoom(n,o),this},translate:function(a,o){var n=this.get("_rootGroup").getMatrix();return d.mat3.translate(n,n,[a,o]),this.updateMatrix(n),this},translateByDom:function(a,o){var n=this.get("_rootGroup").getMatrix()[0];return this.translate(a/n,o/n),this},getMatrix:function(){return this.get("_rootGroup").getMatrix()},setMatrix:function(a){this.get("_rootGroup").setMatrix(a)},getPoint:function(a){return this.getPointByDom(a)},getPointByDom:function(a){var o=this.get("_rootGroup").getMatrix();return d.invertMatrix(a,o)},getPointByCanvas:function(a){var o=this.get("_canvas").get("pixelRatio");return this.getPoint({x:a.x/o,y:a.y/o})},getPointByClient:function(a){var o=this.get("_canvas").getPointByClient(a.x,a.y);return this.getPointByCanvas(o)},getDomPoint:function(a){var o=this.get("_rootGroup").getMatrix();return d.applyMatrix(a,o)},getCanvasPoint:function(a){var o=this.get("_canvas").get("pixelRatio"),n=this.getDomPoint(a);return{x:n.x*o,y:n.y*o}},getClientPoint:function(a){var o=this.getCanvasPoint(a),n=this.get("_canvas").getClientByPoint(o.x,o.y);return{x:n.clientX,y:n.clientY}},focus:function(a){if(d.isString(a)&&(a=this.find(a)),a){var o=a.getCenter();this.focusPoint(o)}return this},focusPoint:function(a){var o=this.get("_rootGroup").getMatrix(),n=this.get("width"),t=this.get("height"),e=-o[6]+n/2-o[0]*a.x,r=-o[7]+t/2-o[0]*a.y;return this.translate(e,r),this},focusPointByDom:function(a){var o=this.getPoint(a);return this.focusPoint(o),this}},P.exports=v},function(P,b){var p={INIT:"_initDraw",AUGMENT:{_initDraw:function(){var v=this,h=this.get("_controllers").animate;["clear","show","hide","change","updatenodeposition"].forEach(function(a){h&&v.on("before"+a,function(o){var n=v.get("_forcePreventAnimate"),t=o?o.affectedItemIds:void 0;n!==!0&&h&&h.cacheGraph("startCache",t)}),v.on("after"+a,function(o){var n=o?o.affectedItemIds:void 0,t=v.get("_forcePreventAnimate");if(o&&o.action==="changeData"){var e=v.get("fitView");e&&v.setFitView(e)}t!==!0&&h?(h.cacheGraph("endCache",n),h.run()):v.draw()})})},draw:function(){this.get("_canvas").draw()},animateDraw:function(){this.get("_controllers").animate.run()}}};P.exports=p},function(P,b,p){var d=p(247);function v(n,t){var e=n.getGraphicGroup(),r=n.getBBox(),i=(r.minX+r.maxX)/2,u=(r.minY+r.maxY)/2,c=e.getMatrix()[0];e.transform([["t",-i,-u],["s",.01/c,.01/c],["t",i,u]]),e.animate({transform:[["t",-i,-u],["s",100*c,100*c],["t",i,u]]},d.enterDuration,d.enterEasing,t)}function h(n,t){var e=n.getGraphicGroup(),r=n.getBBox(),i=(r.minX+r.maxX)/2,u=(r.minY+r.maxY)/2,c=e.getMatrix()[0];e.animate({transform:[["t",-i,-u],["s",.01/c,.01/c],["t",i,u]]},d.leaveDuration,d.leaveEasing,t)}function a(n,t){n.deepEach(function(e){if(e.isShape){var r=e.attr("fillOpacity"),i=e.attr("strokeOpacity");e.attr({fillOpacity:0,strokeOpacity:0}),e.animate({fillOpacity:r,strokeOpacity:i},d.enterDuration,d.enterEasing,t)}})}function o(n,t){n.deepEach(function(e){var r=e.attr("fillOpacity"),i=e.attr("strokeOpacity");e.isShape&&e.animate({fillOpacity:0,strokeOpacity:0},d.leaveDuration,d.leaveEasing,function(){e.attr({fillOpacity:r,strokeOpacity:i}),t()})})}P.exports={enterScaleIn:function(t){var e=t.item;t.element.isItemContainer&&e.getKeyShape()&&v(e)},showScaleIn:function(t){var e=t.item;t.element.isItemContainer&&e.getKeyShape()&&v(e)},leaveScaleOut:function(t){var e=t.item,r=t.element,i=t.done;r.isItemContainer&&h(e,function(){i()})},hideScaleOut:function(t){var e=t.item,r=t.element,i=t.done;r.isItemContainer&&h(e,function(){i()})},enterFadeIn:function(t){var e=t.element,r=t.item;e.isItemContainer&&r.getKeyShape()&&a(e)},showFadeIn:function(t){var e=t.element,r=t.item;e.isItemContainer&&r.getKeyShape()&&a(e)},leaveFadeOut:function(t){var e=t.element,r=t.item,i=t.done;e.isItemContainer&&r.getKeyShape()&&o(e,i)},hideFadeOut:function(t){var e=t.element,r=t.item,i=t.done;e.isItemContainer&&r.getKeyShape()&&o(e,i)}}},function(P,b,p){function d(e,r,i){return r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}var v=p(599),h=p(693),a=p(26),o=p(247),n=["matrix","fillStyle","strokeStyle","endArrow","startArrow"],t=function(e){function r(){return e.apply(this,arguments)||this}(function(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,u.__proto__=c})(r,e);var i=r.prototype;return i.getDefaultCfg=function(){return{show:"scaleIn",hide:"scaleOut",enter:"scaleIn",leave:"scaleOut",update:function(c){var s=c.element,l=c.endKeyFrame.props;s.animate(function(f){for(var g=1;g0&&t==="changeData"&&!a.destroyed&&a.filter()})},addFilter:function(a){return this.get("filters").push(a),a},removeFilter:function(a){var o=this.get("filters");this.set("filters",d.filter(o,a))},filter:function(){this.emit("beforefilter");var a=this.get("filters"),o=this.getItems(),n=this._getFilterItems();a.forEach(function(t){n=n.filter(t)}),o.forEach(function(t){n.indexOf(t)===-1?t.hide():t.show()}),this.draw(),this.emit("afterfilter")},_getFilterItems:function(){return this.getItems().filter(function(a){return a.getShapeObj().filter!==!1})}},P.exports=v},function(P,b,p){var d=p(26),v=p(626),h={CFG:{modes:{default:[]},mode:"default",_eventCache:{}},INIT:"_initModes"};h.AUGMENT={_initModes:function(){var o=this.get("mode");this.changeMode(o)},changeMode:function(o){var n=this.get("modes");d.isEmpty(n)||d.isEmpty(n[o])||(v.resetMode(n[o],this),this.set("mode",o))},addBehaviour:function(o,n){var t=this.get("modes");n=n||this.get("mode"),d.isEmpty(t[n])&&(t[n]=[]);var e=t[n],r=[].concat(o);return d.each(r,function(i){e.indexOf(i)===-1&&e.push(i)}),v.resetMode(t[n],this),this},removeBehaviour:function(o){var n=this.get("modes"),t=this.get("mode"),e=n[t];if(!d.isEmpty(e)){var r=[].concat(o);return e=e.filter(function(i){return r.indexOf(i)===-1}),n[t]=e,v.resetMode(e,this),this}},behaviourOn:function(o,n){var t=this._eventCache;t[o]||(t[o]=[]),t[o].push(n),this.on(o,n)},_off:function(){var o=this,n=this._eventCache;d.each(n,function(t,e){d.each(t,function(r){o.off(e,r)})}),this._eventCache={}}},P.exports=h},function(P,b,p){var d=p(599),v=p(26),h={MOUSEMOVE:"mousemove",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",CLICK:"click",DBLCLICK:"dblclick",DRAGSTART:"dragstart",DRAG:"drag",DRAGENTER:"dragenter",DRAGLEAVE:"dragleave",DRAGEND:"dragend",DROP:"drop",CONTEXTMENU:"contextmenu",WHEEL:"wheel",KEYDOWN:"keydown",KEYUP:"keyup",KEYPRESS:"keypress",MOUSEWHEEL:"mousewheel"},a=[h.DBLCLICK,h.MOUSEDOWN,h.MOUSEUP,h.MOUSEENTER,h.MOUSELEAVE,h.MOUSEMOVE,h.CONTEXTMENU,h.WHEEL,h.MOUSEWHEEL],o=[h.KEYDOWN,h.KEYUP,h.KEYPRESS],n=function(t){function e(i){var u;return(u=t.call(this,i)||this)._domEvents=[],u._initEventStates(),u._registerEvents(),u}(function(i,u){i.prototype=Object.create(u.prototype),i.prototype.constructor=i,i.__proto__=u})(e,t);var r=e.prototype;return r._initEventStates=function(){this._pressing=!1,this._dragging=!1,this._currentEventObj={},this._dragEventObj={}},r._registerEvents=function(){this._registerMouseEvents(),this._registerKeyboardEvents()},r._registerKeyboardEvents=function(){var i=this.graph,u=i.getKeyboardEventWrapper(),c=this._domEvents,s=i.get("keyboardEnable");v.each(o,function(l){c.push(v.addEventListener(u,l,function(f){var g=!0;v.isFunction(s)&&(g=s()),g&&i.emit(l,{domEvent:f})}))})},r._registerMouseEvents=function(){var i=this,u=this,c=this.graph.getMouseEventWrapper(),s=this._domEvents;v.each(a,function(l){s.push(v.addEventListener(c,l,function(f){if(f.type!==h.MOUSEENTER||!f.fromElement||f.fromElement.parentNode&&!function(m,x){for(var w=m.parentNode;w;){if(w.tagName===x)return!0;w=w.parentNode}return!1}(f.fromElement,"foreignObject")){var g=i._currentEventObj;i._oldEventObj=g,i._processEventObj(f);var y=i._currentEventObj;u._simulateEvents(f,g,y),[h.MOUSELEAVE,h.MOUSEENTER].indexOf(f.type)!==-1&&u._triggerEvent("canvas:"+f.type),u._triggerEvent(f.type),f.type===h.MOUSELEAVE&&(i._dragging&&u._triggerEvent(h.DRAGLEAVE,v.mix({},y,{item:null,shape:null,currentItem:i._dragEventObj.item,currentShape:i._dragEventObj.shape})),u._initEventStates())}}))})},r.destroy=function(){var i=this._domEvents;v.each(i,function(u){u&&u.remove()}),this._domEvents=null},r._triggerEvent=function(i,u){if(u||(u=i==="mouseleave"?this._oldEventObj:this._currentEventObj),i==="mousedown"&&(u.button=this._button),u._type=i,this.emitGraphEvent(i,u),["canvas:"+h.MOUSELEAVE,"canvas:"+h.MOUSEENTER].indexOf(i)===-1){var c=u.shape&&u.shape.eventPreFix;if([h.DRAGSTART,h.DRAG,h.DRAGEND].indexOf(i)!==-1&&(c=u.currentShape&&u.currentShape.eventPreFix),c){var s=c+":"+i;u._type=s,v.isBoolean(u._isItemChange)?u._isItemChange&&this.emitGraphEvent(s,u):this.emitGraphEvent(s,u)}}},r.emitGraphEvent=function(i,u){this.graph.emit(i,u)},r._getDistanceToPress=function(i){return Math.pow(i.clientX-this._pressX,2)+Math.pow(i.clientY-this._pressY,2)},r._simulateEvents=function(i,u,c){u===void 0&&(u={}),c===void 0&&(c={});var s=this._dragEventObj.item,l=this._dragEventObj.shape;switch(i.type){case h.MOUSEDOWN:this._pressing=!0,this._button=i.button,this._pressX=i.clientX,this._pressY=i.clientY;break;case h.MOUSEMOVE:if(this._dragging){if(this._triggerEvent(h.DRAG,v.mix({},c,{button:this._button,currentItem:s,currentShape:l})),u.shape!==c.shape){var f=this._isItemChange(u,c);u.shape&&this._triggerEvent(h.DRAGLEAVE,v.mix({},c,{button:this._button,item:u.item,shape:u.shape,toItem:c.item,toShape:c.shape,currentItem:s,currentShape:l,_isItemChange:f})),c.shape&&this._triggerEvent(h.DRAGENTER,v.mix({},c,{button:this._button,currentItem:s,currentShape:l,fromItem:u.item,fromShape:u.shape,_isItemChange:f}))}}else this._pressing&&this._getDistanceToPress(i)>9&&(this._dragging=!0,this._dragEventObj=u,s=this._dragEventObj.item,l=this._dragEventObj.shape,this._triggerEvent(h.DRAGSTART,v.mix({},u,{button:this._button,currentItem:s,currentShape:l})));if(u.shape!==c.shape){var g=this._isItemChange(u,c);u.shape&&this._triggerEvent(h.MOUSELEAVE,v.mix({},c,{item:u.item,shape:u.shape,toItem:c.item,toShape:c.shape,_isItemChange:g})),c.shape&&this._triggerEvent(h.MOUSEENTER,v.mix({},c,{fromtItem:u.item,fromShape:u.shape,_isItemChange:g}))}break;case h.MOUSEUP:!this._dragging&&this._pressing?this._triggerEvent(h.CLICK,v.mix({},c,{button:this._button})):(this._triggerEvent(h.DROP,v.mix({},c,{button:this._button,currentItem:s,currentShape:l})),this._triggerEvent(h.DRAGEND,v.mix({},c,{button:this._button,currentItem:s,currentShape:l}))),this._pressing=!1,this._dragging=!1,this._dragEventObj={};break;default:return}},r._isItemChange=function(i,u){var c=i.shape,s=u.shape,l=c&&s&&(c.get("isItemChange")||s.get("isItemChange"));return l?l(s,c):v.isObject(i.item)&&v.isObject(u.item)?i.item.id!==u.item.id:i.item!==u.item},r._processEventObj=function(i){var u=this.graph.get("_canvas"),c=this._getEventObj(i,u);this._currentEventObj=c},r._parsePoint=function(i,u){return this.graph.getPointByCanvas({x:i,y:u})},r._getEventObj=function(i,u){var c=this.graph,s=i.clientX,l=i.clientY,f=u.getPointByClient(s,l),g=this._parsePoint(f.x,f.y),y=u.getShape(f.x,f.y,i),m=c.getItemByShape(y),x=u.get("pixelRatio");return{item:m,shape:y,x:g.x,y:g.y,domX:f.x/x,domY:f.y/x,domEvent:i}},e}(d);P.exports=n},function(P,b,p){var d={},v=p(698);d.INIT="_initEvents",d.CFG={keyboardEnable:!0},d.AUGMENT={_initEvents:function(){this.get("_controllers").events=new v({graph:this})}},P.exports=d},function(P,b,p){var d=p(26),v={};v.AUGMENT={find:function(a){return this.get("_itemMap")[a]},getNodes:function(){return this.get("_itemMap")._nodes},getEdges:function(){return this.get("_itemMap")._edges},getGroups:function(){return this.get("_itemMap")._groups},getGuides:function(){return this.get("_itemMap")._guides},getItems:function(){var a=this.get("_itemMap"),o=[];return d.each(a,function(n){n.type&&o.push(n)}),o},getItemByShape:function(a){return a?this.getItem(a.id):null},getItem:function(a){var o=this.get("_itemMap");return d.isObject(a)?a.destroyed&&(a=o[a.id]):a=o[a],a}},P.exports=v},function(P,b,p){var d=p(599),v=p(26),h=["color","shape","size","label","style"],a=function(o){function n(){return o.apply(this,arguments)||this}(function(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r})(n,o);var t=n.prototype;return t._init=function(){var e=this,r={};v.each(h,function(i){r[i]={},e[i]=function(u){return r[i].input=u,e}}),this.channels=r},t.addChannels=function(e){var r=this.channels;v.each(e,function(i,u){r[u]={input:i}})},t.mapping=function(e){var r=this.channels;v.each(r,function(i,u){v.isFunction(i.input)?e[u]=i.input(e):i.input&&(e[u]=i.input)})},n}(d);P.exports=a},function(P,b,p){var d=p(701),v={INIT:"_initMapper"};v.AUGMENT={_initMapper:function(){var a=this.get("_controllers");a.nodeMapper=new d({graph:this}),a.edgeMapper=new d({graph:this}),a.groupMapper=new d({graph:this}),a.guideMapper=new d({graph:this})},node:function(a){var o=this._getController("nodeMapper");return a&&o.addChannels(a),o},edge:function(a){var o=this._getController("edgeMapper");return a&&o.addChannels(a),o},group:function(a){var o=this._getController("groupMapper");return a&&o.addChannels(a),this._getController("groupMapper")},guide:function(a){var o=this._getController("guideMapper");return a&&o.addChannels(a),this._getController("guideMapper")}},P.exports=v},function(P,b,p){var d=function(v){function h(){return v.apply(this,arguments)||this}(function(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n})(h,v);var a=h.prototype;return a.getDefaultCfg=function(){return{graph:null,auto:!0,processor:null}},a._init=function(){var o=this,n=this.graph;n.on("afteritemdraw",function(t){var e=t.item,r=e.getKeyShape(),i=e.getModel();if(e.isEdge)i.lineWidth=r.attr("lineWidth");else if(e.isNode||e.isGroup){var u=e.getBBox();i.width=u.width,i.height=u.height}}),n.on("afterchange",function(t){var e=t.action;o.auto==="once"?e==="changeData"&&(n.destroyed||n.preventAnimate(function(){o.layout()})):o.auto&&!n.destroyed&&n.preventAnimate(function(){o.layout()})})},a.changeLayout=function(o){this.processor=o,this.layout()},a.layout=function(){var o=this.graph,n=this.getLayoutProcessor();o.emit("beforelayout");var t=o.getNodes().filter(function(i){return i.isVisible()}).map(function(i){return i.getModel()}),e=o.getEdges().filter(function(i){return i.isVisible()}).map(function(i){return i.getModel()}),r=o.getGroups().filter(function(i){return i.isVisible()}).map(function(i){return i.getModel()});o._executeLayout(n,t,e,r),o.updateNodePosition(),o.emit("afterlayout")},a.getLayoutProcessor=function(){return this.processor?this.processor:this.processer},h}(p(599));P.exports=d},function(P,b,p){var d=p(26),v=p(703),h={CFG:{layout:void 0},INIT:"_initLayout"};h.AUGMENT={_initLayout:function(){var o=this.get("_controllers"),n=this._getLayoutCfg();n&&(o.layout=new v(d.mix({graph:this},n)))},_getLayoutCfg:function(){var o=this.get("layout");return d.isPlainObject(o)?o:d.isFunction(o)||d.isObject(o)?{processor:o}:null},layout:function(){return this._getController("layout").layout(),this},updateNodePosition:function(o){var n=this.getGuides(),t=[],e=[];return this.emit("beforeupdatenodeposition"),o?(o.forEach(function(r){r.getEdges().forEach(function(u){e.push(u)});var i=r.getParent();i&&t.push(i)}),e=d.uniq(e),t=d.uniq(t)):(o=this.getNodes(),t=this.getGroups(),e=this.getEdges()),o.forEach(function(r){r.layoutUpdate()}),t.forEach(function(r){r.layoutUpdate()}),e.forEach(function(r){r.layoutUpdate()}),n.forEach(function(r){r.layoutUpdate()}),this.emit("afterupdatenodeposition"),this},changeLayout:function(o){return this._getController("layout").changeLayout(o),this},getLayout:function(){return this._getController("layout").getLayoutProcessor()}},P.exports=h},function(P,b,p){(function(d){"use strict";var v=function(){return{escape:function(g){return g.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:s,mimeType:function(g){var y=s(g).toLowerCase();return function(){var m="application/font-woff";return{woff:m,woff2:m,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}()[y]||""},dataAsUrl:function(g,y){return"data:"+y+";base64,"+g},isDataUrl:function(g){return g.search(/^(data:)/)!==-1},canvasToBlob:function(g){return g.toBlob?new Promise(function(y){g.toBlob(y)}):function(y){return new Promise(function(m){for(var x=window.atob(y.toDataURL().split(",")[1]),w=x.length,M=new Uint8Array(w),S=0;S'+x+""}).then(function(x){return''+x+""}).then(function(x){return"data:image/svg+xml;charset=utf-8,"+x})}(f,l.width||v.width(s),l.height||v.height(s))})}function r(s,l){return e(s,l).then(v.makeImage).then(v.delay(100)).then(function(f){var g=function(y){var m=document.createElement("canvas");if(m.width=l.width||v.width(y),m.height=l.height||v.height(y),l.bgcolor){var x=m.getContext("2d");x.fillStyle=l.bgcolor,x.fillRect(0,0,m.width,m.height)}return m}(s);return g.getContext("2d").drawImage(f,0,0),g})}function i(s,l,f){if(!f&&l&&!l(s))return Promise.resolve();return Promise.resolve(s).then(g).then(function(x){return y(s,x,l)}).then(function(x){return m(s,x)});function g(x){return x instanceof HTMLCanvasElement?v.makeImage(x.toDataURL()):x.cloneNode(!1)}function y(x,w,M){var S=x.childNodes;return S.length===0?Promise.resolve(w):function(A,E,_){var C=Promise.resolve();return E.forEach(function(k){C=C.then(function(){return i(k,_)}).then(function(T){T&&A.appendChild(T)})}),C}(w,v.asArray(S),M).then(function(){return w});function O(A,E,_){var C=Promise.resolve();return E.forEach(function(k){C=C.then(function(){return i(k,_)}).then(function(T){T&&A.appendChild(T)})}),C}}function m(x,w){return w instanceof Element?Promise.resolve().then(function(){(function(E,_){E.cssText?_.cssText=E.cssText:function(C,k){v.asArray(C).forEach(function(T){k.setProperty(T,C.getPropertyValue(T),C.getPropertyPriority(T))})}(E,_)})(window.getComputedStyle(x),w.style)}).then(function(){[":before",":after"].forEach(function(E){(function(_){var C=window.getComputedStyle(x,_),k=C.getPropertyValue("content");if(!(k===""||k==="none")){var T=v.uid();w.className=w.className+" "+T;var I=document.createElement("style");I.appendChild(function(D,R,j){var B="."+D+":"+R,X=j.cssText?function(et){var K=et.getPropertyValue("content");return et.cssText+" content: "+K+";"}(j):function(et){return v.asArray(et).map(function(K){return K+": "+et.getPropertyValue(K)+(et.getPropertyPriority(K)?" !important":"")}).join("; ")+";"}(j);return document.createTextNode(B+"{"+X+"}")}(T,_,C)),w.appendChild(I)}})(E)})}).then(function(){x instanceof HTMLTextAreaElement&&(w.innerHTML=x.value),x instanceof HTMLInputElement&&w.setAttribute("value",x.value)}).then(function(){w instanceof SVGElement&&(w.setAttribute("xmlns","http://www.w3.org/2000/svg"),w instanceof SVGRectElement&&["width","height"].forEach(function(E){var _=w.getAttribute(E);_&&w.style.setProperty(E,_)}))}).then(function(){return w}):w;function M(){function E(_,C){_.cssText?C.cssText=_.cssText:k(_,C);function k(T,I){v.asArray(T).forEach(function(D){I.setProperty(D,T.getPropertyValue(D),T.getPropertyPriority(D))})}}E(window.getComputedStyle(x),w.style)}function S(){function E(_){var C=window.getComputedStyle(x,_),k=C.getPropertyValue("content");if(k===""||k==="none")return;var T=v.uid();w.className=w.className+" "+T;var I=document.createElement("style");function D(R,j,B){var X="."+R+":"+j,et=B.cssText?K(B):tt(B);return document.createTextNode(X+"{"+et+"}");function K(J){var nt=J.getPropertyValue("content");return J.cssText+" content: "+nt+";"}function tt(J){return v.asArray(J).map(nt).join("; ")+";";function nt(at){return at+": "+J.getPropertyValue(at)+(J.getPropertyPriority(at)?" !important":"")}}}I.appendChild(D(T,_,C)),w.appendChild(I)}[":before",":after"].forEach(function(_){E(_)})}function O(){x instanceof HTMLTextAreaElement&&(w.innerHTML=x.value),x instanceof HTMLInputElement&&w.setAttribute("value",x.value)}function A(){w instanceof SVGElement&&(w.setAttribute("xmlns","http://www.w3.org/2000/svg"),w instanceof SVGRectElement&&["width","height"].forEach(function(E){var _=w.getAttribute(E);!_||w.style.setProperty(E,_)}))}}}function u(s){return a.resolveAll().then(function(l){var f=document.createElement("style");return s.appendChild(f),f.appendChild(document.createTextNode(l)),s})}function c(s){return o.inlineAll(s).then(function(){return s})}P.exports=t})()},function(P,b,p){function d(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var v=p(26),h=p(248),a=p(705),o=function(){function n(e){this.options=function(r){for(var i=1;i");u=new h.Canvas({containerDOM:c,width:r,height:i})}return u.drawCount||(u.drawCount=0),u},t.drawInner=function(e,r){var i=this.options.graph,u=i.getCanvas(),c=i.get("renderer"),s=e.drawCount;if(c==="svg"){var l=[];u.deepEach(function(f){f.get("type")==="dom"&&l.push(f)}),l.length>0?l.forEach(function(f){var g=f.get("el");if(g){f.domImageOnload=!1;var y=f.attr("width"),m=f.attr("height");a.toPng(g,{width:y,height:m}).then(function(x){var w=new Image;w.src=x,w.onload=function(){if(s===e.drawCount-1){f.domImage=w,f.domImageOnload=!0;for(var M=0;M0&&S>0?E=Math.PI/2-_:M<0&&S<0?E=-Math.PI/2-_:M>=0&&S<0?E=-_-Math.PI/2:M<=0&&S>0&&(E=Math.PI/2-_),w.rotate(E),w.translate(x.x,x.y),e==="end"?(y[y.length-1]=A[1]+x.y,y[y.length-2]=A[0]+x.x):(m[m.length-1]=A[1]+x.y,m[m.length-2]=A[0]+x.x),f.attr("path",g),this[e+"Arrow"]=w}},n._getControlPoints=function(){var t=this.model.controlPoints;return v.isArray(t)?t:[]},n._shouldDraw=function(){return a.prototype._shouldDraw.call(this)&&this.linkedItemVisible()},n._getPoint=function(t){if(t.isItem){var e=t.getBBox();return{x:e.centerX,y:e.centerY}}return{x:t.x,y:t.y}},n.linkedItemVisible=function(){var t=this.source,e=this.target;return v.isPlainObject(t)||v.isPlainObject(e)||t.isVisible()||e.isVisible()||t.collapsedParent!==e.collapsedParent},n.getSource=function(){var t=this.source,e=t.collapsedParent,r=this.itemMap;return e?r[e.id]:t},n.getTarget=function(){var t=this.target,e=t.collapsedParent,r=this.itemMap;return e?r[e.id]:t},n.getPoints=function(){var t=this.getSource(),e=this.getTarget(),r=this.model,i=this._getControlPoints(),u=this._getPoint(t),c=this._getPoint(e),s=[u].concat(i).concat([c]),l=s.length;if(t.isItem){var f=v.isNumber(this.model.sourceAnchor)&&t.id===r.source?this.model.sourceAnchor:s[1],g=t.getLinkPoints(f);s[0]=g[0]}if(e.isItem){var y=v.isNumber(this.model.targetAnchor)&&e.id===r.target?this.model.targetAnchor:s[l-2],m=e.getLinkPoints(y);s[l-1]=m[0]}return s},n.destroy=function(){var t=this.itemMap,e=this.model,r=t[e.source],i=t[e.target];r&&r.isItem&&v.Array.remove(r.edges,this),i&&i.isItem&&v.Array.remove(i.edges,this),a.prototype.destroy.call(this)},o}(p(608));P.exports=h},function(P,b,p){P.exports={Node:p(624),Edge:p(709),Group:p(708),Guide:p(707)}},function(P,b,p){var d;/*! + * EventEmitter v5.2.5 - git.io/ee + * Unlicense - http://unlicense.org/ + * Oliver Caldwell - http://oli.me.uk/ + * @preserve + */(function(v){"use strict";function h(){}var a=h.prototype,o=v.EventEmitter;function n(e,r){for(var i=e.length;i--;)if(e[i].listener===r)return i;return-1}function t(e){return function(){return this[e].apply(this,arguments)}}a.getListeners=function(e){var r,i,u=this._getEvents();if(e instanceof RegExp)for(i in r={},u)u.hasOwnProperty(i)&&e.test(i)&&(r[i]=u[i]);else r=u[e]||(u[e]=[]);return r},a.flattenListeners=function(e){var r,i=[];for(r=0;r=0;t--)n[t].remove(o);return this._cfg.children=[],this}}),v.mixin(d.Group,[h]),P.exports=h},function(P,b,p){p(258).registerGuide("common",{draw:function(){console.warn("do not have this guide, please register one")}})},function(P,b,p){P.exports={common:p(716)}},function(P,b,p){function d(o,n,t){return n in o?Object.defineProperty(o,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[n]=t,o}var v=p(258),h=p(26),a=p(247);v.registerGroup("common",{draw:function(n){return n.getModel().collapsed?this.drawCollapsed(n):this.drawExpanded(n)},defaultWidth:184,defaultHeight:40,getLabel:function(n){return n.getModel().label},drawLabel:function(n,t,e){var r=this.getLabel(n);if(r){var i=n.getGraphicGroup(),u=[8,8];t+=u[0],e+=u[1];var c=n.getModel(),s=c.labelOffsetX,l=c.labelOffsetY,f=c.labelRotate;t=s?s+t:t,e=l?l+e:e;var g=h.mix(!0,{},a.labelStyle,{x:t,y:e,textAlign:"left",textBaseline:"top"});h.isObject(r)?h.mix(g,r):g.text=r;var y=i.addShape("text",{class:"label",attrs:g});if(f){var m=y.getBBox(),x=(m.maxX+m.minX)/2,w=(m.maxY+m.minY)/2;y.transform([["t",-x,-w],["r",f,f],["t",x,w]])}}},drawKeyShape:function(n,t){var e=t.x,r=t.y,i=t.width,u=t.height,c=n.getModel(),s=n.getGraphicGroup(),l=h.mix({},a.groupStyle,c.style),f=h.getRectPath(e,r,i,u,l.radius);return n.lastChildrenBox=t,s.addShape("path",{attrs:h.mix({},l,{path:f})})},getChildrenBBox:function(n){var t=function(i){for(var u=1;u0){var r=n.getChildrenBBox();t.x=r.minX-a.groupBackgroundPadding[3],t.y=r.minY-a.groupBackgroundPadding[0],t.width=r.maxX-r.minX+a.groupBackgroundPadding[3]+a.groupBackgroundPadding[1],t.height=r.maxY-r.minY+a.groupBackgroundPadding[0]+a.groupBackgroundPadding[2]}else t.width=this.defaultWidth,t.height=this.defaultHeight;return h.isNil(t.x)&&!h.isNil(e.x)&&(t.x=e.x),h.isNil(t.y)&&!h.isNil(e.y)&&(t.y=e.y),t},drawExpanded:function(n){var t=this.getChildrenBBox(n),e=this.drawKeyShape(n,t);return this.drawLabel(n,t.x,t.y),e},drawCollapsed:function(n){var t=this.getChildrenBBox(n);t.width=this.defaultWidth,t.height=this.defaultHeight;var e=this.drawKeyShape(n,t);return this.drawLabel(n,t.x,t.y),e},anchor:{intersectBox:"rect"}})},function(P,b,p){P.exports={common:p(718)}},function(P,b,p){function d(t){for(var e=1;e3?r:3)/3,u=4*r/3,c=4*r;return[["M",-i,u],["L",0,0],["L",-i,-u],["A",c,c,0,0,1,-i,u],["Z"]]},shorten:function(e){var r=e.getKeyShape().attr("lineWidth");return 3.1*(r>3?r:3)},style:function(e){var r=e.getKeyShape().attr();return{fillOpacity:r.strokeOpacity,fill:r.stroke}}};h.registerEdge("common",{draw:function(e){var r=this.drawKeyShape(e);return this.drawLabel(e,r),r},drawKeyShape:function(e){var r=e.getGraphicGroup(),i=this.getStyle(e),u=this.getPath(e);return r.addShape("path",{attrs:a.mix({},i,{path:u})})},getStyle:function(e){var r=e.getModel();return a.mix(!0,{},{stroke:r.color||"#A3B1BF",strokeOpacity:.92,lineAppendWidth:4,lineWidth:r.size||1},r.style)},getPath:function(e){var r=e.getPoints();return a.pointsToPolygon(r)},getLabel:function(e){return e.getModel().label},getDefaultLabelRectStyle:function(){return{fill:"white"}},getDefaultLabelRectPadding:function(){return a.toAllPadding([4,8])},drawLabel:function(e,r){var i=this.getLabel(e),u=e.getGraphicGroup(),c=e.getModel(),s=c.labelOffsetX,l=c.labelOffsetY,f=c.labelRotate;if(i){var g=r.getPoint(.5);if(!g)return;g.x=s?g.x+s:g.x,g.y=l?g.y+l:g.y;var y=a.mix(!0,{},o.labelStyle,g);a.isObject(i)?a.mix(y,i):y.text=i,i=u.addShape("text",{class:"label",attrs:y});var m=this.getDefaultLabelRectPadding(e),x=this.getDefaultLabelRectStyle(e),w=i.getBBox(),M=c.labelRectStyle?a.mix({},x,c.labelRectStyle):x,S=u.addShape("rect",{attrs:a.mix({},M,{x:w.minX-m[3],y:w.minY-m[0],width:w.maxX-w.minX+m[1]+m[3],height:w.maxY-w.minY+m[0]+m[2]})});if(f){var O=(w.maxX+w.minX)/2,A=(w.maxY+w.minY)/2;i.transform([["t",-O,-A],["r",f,f],["t",O,A]]),S.transform([["t",-O,-A],["r",f,f],["t",O,A]])}a.toFront(i)}},startArrow:d({},n,{tangent:function(e){return e.getKeyShape().getStartTangent()},ratio:function(){return 0}}),endArrow:d({},n,{tangent:function(e){return e.getKeyShape().getEndTangent()},ratio:function(){return 1}})})},function(P,b,p){P.exports={common:p(720)}},function(P,b,p){var d=p(258),v=p(26);d.registerNode("html",{getHtml:function(a){return a.getModel().html},cssSize:!0,draw:function(a){var o=v.createDOM('
'),n=a.getGraphicGroup(),t=a.getGraph();if(t.get("renderer")!=="svg")throw new Error("please use svg renderer draw html element !");var e=t.getGraphContainer(),r=this.getSize(a),i=this.getStyle(a),u=this.cssSize,c=this.getHtml(a);c=v.createDOM(c),o.css({position:"absolute",padding:"0px",margin:"0px"}),o.appendChild(c),e.appendChild(o),u&&(r[0]=o.width(),r[1]=o.height());var s=-r[0]/2,l=-r[1]/2,f=r[0],g=r[1],y=n.addShape("rect",{attrs:v.mix({},i,{x:s,y:l,width:f,height:g})});return n.addShape("dom",{attrs:v.mix({x:s,y:l,width:f,height:g,html:o})}),y}})},function(P,b,p){var d=p(258),v=p(26),h=p(247);d.registerNode("common",{draw:function(o){var n=o.getGraphicGroup(),t=this.drawLabel(o),e=this.drawKeyShape(o);return t&&v.toFront(t,n),e},getSize:function(o){var n=o.getModel().size;return v.isArray(n)?n:v.isNumber(n)?[n,n]:[h.defaultNodeSize,h.defaultNodeSize]},getStyle:function(o){var n=o.getModel();return v.mix(!0,{lineWidth:1,fill:n.color||"#40a9ff",stroke:n.color||"#096dd9",fillOpacity:.92},n.style)},getLabel:function(o){return o.getModel().label},drawKeyShape:function(o){var n=o.getGraphicGroup(),t=this.getStyle(o),e=this.getPath(o);return n.addShape("path",{attrs:v.mix({},t,{path:e})})},drawLabel:function(o){var n=o.getGraphicGroup(),t=this.getLabel(o),e=o.getModel(),r=e.labelOffsetX,i=e.labelOffsetY,u=e.labelRotate;if(!v.isNil(t)){var c=v.mix(!0,{},h.labelStyle,{x:r||0,y:i||0});v.isObject(t)?v.mix(c,t):c.text=t;var s=n.addShape("text",{class:"label",attrs:c});return u&&s.rotate(u),s}},getPath:function(o){var n=this.getSize(o);return v.getEllipsePath(0,0,n[0]/2,n[1]/2)}})},function(P,b,p){P.exports={common:p(723),html:p(722)}},function(P,b,p){var d=p(682),v=p(257),h={getAutoZoomMatrix:function(o,n,t,e){var r=[1,0,0,0,1,0,0,0,1],i=o.maxX-o.minX,u=o.maxY-o.minY,c=(n.maxX+n.minX)/2,s=(n.maxY+n.minY)/2,l=i-t[1]-t[3],f=u-t[0]-t[2],g=n.maxX-n.minX,y=n.maxY-n.minY,m=Math.min(f/y,l/g);return e&&(m=e(m)),d.mat3.translate(r,r,[-c,-s]),d.mat3.scale(r,r,[m,m]),d.mat3.translate(r,r,[i/2,u/2]),r},getNineBoxPosition:function(o,n,t,e,r){var i={};switch(o){case"tl":i.y=n.x+r[0],i.x=n.y+r[3];break;case"lc":i.y=(n.height-e)/2,i.x=r[3];break;case"bl":i.y=n.height-e-r[2],i.x=r[3];break;case"cc":i.y=(n.height-e)/2,i.x=(n.width-t)/2;break;case"tc":i.y=r[0],i.x=(n.width-t)/2;break;case"tr":i.y=r[0],i.x=n.width-t-r[1];break;case"rc":i.y=(n.height-e)/2,i.x=n.width-t-r[1];break;case"br":i.y=n.height-e-r[2],i.x=n.width-t-r[1];break;case"bc":i.y=n.height-e-r[2],i.x=(n.width-t)/2;break;default:i.y=n.x+r[0],i.x=n.y+r[3]}return i.x+=n.x,i.y+=n.y,i},getTotalBBox:function(o){var n=1/0,t=-1/0,e=1/0,r=-1/0;return o.forEach(function(i){i.minXt&&(t=i.maxX),i.minYr&&(r=i.maxY)}),{minX:n,minY:e,maxX:t,maxY:r,width:t-n,height:r-e}},getChildrenBBox:function(o){var n=1/0,t=-1/0,e=1/0,r=-1/0;v.each(o,function(u){var c=u.isGroup?h.getChildrenBBox(u.get("children")):u.getBBox();if(!c)return!0;var s=[c.minX,c.minY,1],l=[c.minX,c.maxY,1],f=[c.maxX,c.minY,1],g=[c.maxX,c.maxY,1];u.apply(s),u.apply(l),u.apply(f),u.apply(g);var y=Math.min(s[0],l[0],f[0],g[0]),m=Math.max(s[0],l[0],f[0],g[0]),x=Math.min(s[1],l[1],f[1],g[1]),w=Math.max(s[1],l[1],f[1],g[1]);yt&&(t=m),xr&&(r=w)});var i={minX:n,minY:e,maxX:t,maxY:r};return i.x=i.minX,i.y=i.minY,i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i.centerX=(i.minX+i.maxX)/2,i.centerY=(i.minY+i.maxY)/2,i},getBBox:function(o,n){var t,e=o.getBBox(),r={x:e.minX,y:e.minY},i={x:e.maxX,y:e.maxY};if(n.isGroup){for(t=o;t!==n;){var u=t.getMatrix();r=d.applyMatrix(r,u),i=d.applyMatrix(i,u),t=t.getParent()}var c=t.getMatrix();r=d.applyMatrix(r,c),i=d.applyMatrix(i,c)}else r=d.applyMatrix(r,n),i=d.applyMatrix(i,n);return{minX:r.x,minY:r.y,maxX:i.x,maxY:i.y}},toBack:function(o){o.toBack()},toFront:function(o){o.toFront()}};P.exports=h},function(P,b,p){var d=p(257);P.exports={isNode:function(h){return h&&d.isObject(h)&&h.type==="node"},isEdge:function(h){return h&&d.isObject(h)&&h.type==="edge"},isGroup:function(h){return h&&d.isObject(h)&&h.type==="group"}}},function(P,b,p){var d=p(257),v={};d.mix(v,{addEventListener:function(a,o,n){return a.attachEvent?(a.attachEvent("on"+o,n),{remove:function(){a.detachEvent("on"+o,n)}}):a.addEventListener?(a.addEventListener(o,n,!1),{remove:function(){a.removeEventListener(o,n,!1)}}):void 0},createDOM:function(a,o){var n;return(n=d.isString(a)?d.createDom(a):a).bbox=n.getBoundingClientRect(),n.hide=function(){return n.style.visibility="hidden",n},n.show=function(){return n.style.visibility="visible",n},n.css=function(t){return d.modifyCSS(n,t),n},n.width=function(){return d.getWidth(n)},n.height=function(){return d.getHeight(n)},n.destroy=function(){n.parentNode&&n.parentNode.removeChild(n)},n.on=function(t,e){n.addEventListener(t,e)},n.off=function(t,e){n.removeEventListener(t,e)},n.css(o),n},initDOMContainer:function(a,o){if(!a)throw new Error("please set the container for the "+o+" !");return d.isString(a)&&(a=document.getElementById(a)),a}}),P.exports=v},function(P,b){var p={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};P.exports=function(d,v,h){var a=h.target||h.srcElement;if(!p[a.tagName]){for(var o=a.parentNode;o&&!p[o.tagName];)o=o.parentNode;a=o}return this._cfg.el===a?this:this.find(function(n){return n._cfg&&n._cfg.el===a})}},function(P,b,p){var d=p(19),v=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,h=function(){function a(o){var n=document.createElementNS("http://www.w3.org/2000/svg","pattern");n.setAttribute("patternUnits","userSpaceOnUse");var t=document.createElementNS("http://www.w3.org/2000/svg","image");n.appendChild(t);var e=d.uniqueId("pattern_");n.id=e,this.el=n,this.id=e,this.cfg=o;var r=v.exec(o)[2];t.setAttribute("href",r);var i=new Image;function u(){console.log(i.width,i.height),n.setAttribute("width",i.width),n.setAttribute("height",i.height)}return r.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=r,i.complete?u():(i.onload=u,i.src=i.src),this}return a.prototype.match=function(o,n){return this.cfg===n},a}();P.exports=h},function(P,b,p){var d=p(19),v=function(){function h(o){this.type="clip";var n=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=n,this.id=d.uniqueId("clip_"),n.id=this.id;var t=o._cfg.el;return n.appendChild(t.cloneNode(!0)),this.cfg=o,this}var a=h.prototype;return a.match=function(){return!1},a.remove=function(){var o=this.el;o.parentNode.removeChild(o)},h}();P.exports=v},function(P,b,p){var d=p(19),v=function(){function h(o,n){var t=document.createElementNS("http://www.w3.org/2000/svg","marker"),e=d.uniqueId("marker_");t.setAttribute("id",e);var r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("stroke","none"),r.setAttribute("fill",o.stroke||"#000"),t.appendChild(r),t.setAttribute("overflow","visible"),t.setAttribute("orient","auto-start-reverse"),this.el=t,this.child=r,this.id=e,this.cfg=o[n==="marker-start"?"startArrow":"endArrow"],this.stroke=o.stroke||"#000",this.cfg===!0?this._setDefaultPath(n,r):this._setMarker(o.lineWidth,r),this}var a=h.prototype;return a.match=function(){return!1},a._setDefaultPath=function(o,n){var t=this.el;n.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),t.setAttribute("refX",3),t.setAttribute("refY",3)},a._setMarker=function(o,n){var t=this.el,e=this.cfg.path,r=this.cfg.d;d.isArray(e)&&(e=e.map(function(i){return i.join(" ")}).join("")),n.setAttribute("d",e),t.appendChild(n),r&&t.setAttribute("refX",r/o)},a.update=function(o){var n=this.child;n.attr?n.attr("fill",o):n.setAttribute("fill",o)},h}();P.exports=v},function(P,b,p){var d=p(19),v={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},h={x:"-40%",y:"-40%",width:"200%",height:"200%"},a=function(){function o(t){this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return d.each(h,function(r,i){e.setAttribute(i,r)}),this.el=e,this.id=d.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}var n=o.prototype;return n.match=function(t,e){if(this.type!==t)return!1;var r=!0,i=this.cfg;return d.each(Object.keys(i),function(u){if(i[u]!==e[u])return r=!1,!1}),r},n.update=function(t,e){var r=this.cfg;return r[v[t]]=e,this._parseShadow(r,this.el),this},n._parseShadow=function(t,e){var r=``;e.innerHTML=r},o}();P.exports=a},function(P,b,p){var d=p(19),v=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,h=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function o(t){var e=t.match(a);if(!e)return"";var r="";return e.sort(function(i,u){return i=i.split(":"),u=u.split(":"),Number(i[0])-Number(u[0])}),d.each(e,function(i){i=i.split(":"),r+=''}),r}var n=function(){function t(e){var r=null,i=d.uniqueId("gradient_");return e.toLowerCase()[0]==="l"?function(u,c){var s,l,f=v.exec(u),g=d.mod(d.toRadian(parseFloat(f[1])),2*Math.PI),y=f[2];g>=0&&g<.5*Math.PI?(s={x:0,y:0},l={x:1,y:1}):.5*Math.PI<=g&&g');return c.appendChild(l),this.type="svg",this.canvas=l,this.context=new a(l),this.toDraw=!1,this}var u=i.prototype;return u.draw=function(c){var s=this;s.animateHandler?s.toDraw=!0:function l(){s.animateHandler=d.requestAnimationFrame(function(){s.animateHandler=void 0,s.toDraw&&l()});try{s._drawChildren(c)}catch(f){console.warn("error in draw canvas, detail as:"),console.warn(f),s.toDraw=!1}s.toDraw=!1}()},u.drawSync=function(c){this._drawChildren(c)},u._drawGroup=function(c,s){var l=c._cfg;l.removed||l.destroyed||(l.tobeRemoved&&(d.each(l.tobeRemoved,function(f){f.parentNode&&f.parentNode.removeChild(f)}),l.tobeRemoved=[]),this._drawShape(c,s),l.children&&l.children.length>0&&this._drawChildren(c))},u._drawChildren=function(c){var s,l=c._cfg.children;if(l)for(var f=0;fm?1:0,O=Math.abs(x-m)>Math.PI?1:0,A=l.rs,E=l.re,_=s(m,l.rs,g),C=s(x,l.rs,g);l.rs>0?(y.push("M "+M.x+","+M.y),y.push("L "+C.x+","+C.y),y.push("A "+A+","+A+",0,"+O+","+(S===1?0:1)+","+_.x+","+_.y),y.push("L "+w.x+" "+w.y)):(y.push("M "+g.x+","+g.y),y.push("L "+w.x+","+w.y)),y.push("A "+E+","+E+",0,"+O+","+S+","+M.x+","+M.y),l.rs>0?y.push("L "+C.x+","+C.y):y.push("Z"),f.el.setAttribute("d",y.join(" "))},u._updateText=function(c){var s=c._attrs,l=c._cfg.attrs,f=c._cfg.el;for(var g in this._setFont(c),s)if(s[g]!==l[g]){if(g==="text"){this._setText(c,""+s[g]);continue}if(g==="fillStyle"||g==="strokeStyle"){this._setColor(c,g,s[g]);continue}if(g==="matrix"){this._setTransform(c);continue}n[g]&&f.setAttribute(n[g],s[g])}c._cfg.attrs=Object.assign({},c._attrs),c._cfg.hasUpdate=!1},u._setFont=function(c){var s=c.get("el"),l=c._attrs,f=l.fontSize;s.setAttribute("alignment-baseline",t[l.textBaseline]||"baseline"),s.setAttribute("text-anchor",e[l.textAlign]||"left"),f&&+f<12&&(l.matrix=[1,0,0,0,1,0,0,0,1],c.transform([["t",-l.x,-l.y],["s",+f/12,+f/12],["t",l.x,l.y]]))},u._setText=function(c,s){var l=c._cfg.el,f=c._attrs.textBaseline||"bottom";if(s)if(~s.indexOf(` +`)){var g=c._attrs.x,y=s.split(` +`),m=y.length-1,x="";d.each(y,function(w,M){M===0?f==="alphabetic"?x+=''+w+"":f==="top"?x+=''+w+"":f==="middle"?x+=''+w+"":f==="bottom"?x+=''+w+"":f==="hanging"&&(x+=''+w+""):x+=''+w+""}),l.innerHTML=x}else l.innerHTML=s;else l.innerHTML=""},u._setClip=function(c,s){var l=c._cfg.el;if(s)if(l.hasAttribute("clip-path"))s._cfg.hasUpdate&&this._updateShape(s);else{this._createDom(s),this._updateShape(s);var f=this.context.addClip(s);l.setAttribute("clip-path","url(#"+f+")")}else l.removeAttribute("clip-path")},u._setColor=function(c,s,l){var f=c._cfg.el,g=this.context;if(l)if(l=l.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(l)){var y=g.find("gradient",l);y||(y=g.addGradient(l)),f.setAttribute(n[s],"url(#"+y+")")}else if(/^[p,P]{1}[\s]*\(/.test(l)){var m=g.find("pattern",l);m||(m=g.addPattern(l)),f.setAttribute(n[s],"url(#"+m+")")}else f.setAttribute(n[s],l);else f.setAttribute(n[s],"none")},u._setShadow=function(c){var s=c._cfg.el,l=c._attrs,f={dx:l.shadowOffsetX,dy:l.shadowOffsetY,blur:l.shadowBlur,color:l.shadowColor};if(f.dx||f.dy||f.blur||f.color){var g=this.context.find("filter",f);g||(g=this.context.addShadow(f,this)),s.setAttribute("filter","url(#"+g+")")}else s.removeAttribute("filter")},i}();P.exports=r},function(P,b,p){P.exports={painter:p(735),getShape:p(728)}},function(P,b,p){var d=p(19),v=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,h=/[^\s\,]+/gi,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,n=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,t=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function e(r,i){var u=r.match(t);d.each(u,function(c){c=c.split(":"),i.addColorStop(c[0],c[1])})}P.exports={parsePath:function(i){return i=i||[],d.isArray(i)?i:d.isString(i)?(i=i.match(v),d.each(i,function(u,c){if((u=u.match(h))[0].length>1){var s=u[0].charAt(0);u.splice(1,0,u[0].substr(1)),u[0]=s}d.each(u,function(l,f){isNaN(l)||(u[f]=+l)}),i[c]=u}),i):void 0},parseStyle:function(i,u,c){if(d.isString(i)){if(i[1]==="("||i[2]==="("){if(i[0]==="l")return function(s,l,f){var g,y,m=a.exec(s),x=d.mod(d.toRadian(parseFloat(m[1])),2*Math.PI),w=m[2],M=l.getBBox();x>=0&&x<.5*Math.PI?(g={x:M.minX,y:M.minY},y={x:M.maxX,y:M.maxY}):.5*Math.PI<=x&&x');return t.appendChild(r),this.type="canvas",this.canvas=r,this.context=r.getContext("2d"),this.toDraw=!1,this}var n=o.prototype;return n.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},n.draw=function(t){var e=this;e.animateHandler?e.toDraw=!0:function r(){e.animateHandler=d.requestAnimationFrame(function(){e.animateHandler=void 0,e.toDraw&&r()}),e.beforeDraw();try{e._drawGroup(t)}catch(i){console.warn("error in draw canvas, detail as:"),console.warn(i),e.toDraw=!1}e.toDraw=!1}()},n.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},n._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=t._cfg.children,r=null;this.setContext(t);for(var i=0;i-1){var u=r[i];i==="fillStyle"&&(u=v.parseStyle(u,t,e)),i==="strokeStyle"&&(u=v.parseStyle(u,t,e)),i==="lineDash"&&e.setLineDash?d.isArray(u)?e.setLineDash(u):d.isString(u)&&e.setLineDash(u.split(" ")):e[i]=u}}},o}();P.exports=a},function(P,b,p){P.exports={painter:p(738)}},function(P,b,p){P.exports={canvas:p(739),svg:p(736)}},function(P,b,p){var d=p(19),v=p(610),h=p(17),a=p(44),o=p(238),n=o.interpolate,t=o.interpolateArray,e=function(u){this._animators=[],this._current=0,this._timer=null,this.canvas=u};function r(i,u,c){var s,l=u.startTime;if(cC.length?(_=v.parsePathString(M[E]),C=v.parsePathString(S[E]),C=v.fillPathByDiff(C,_),C=v.formatPath(C,_),m.fromAttrs.path=C,m.toAttrs.path=_):m.pathFormatted||(_=v.parsePathString(M[E]),C=v.parsePathString(S[E]),C=v.formatPath(C,_),m.fromAttrs.path=C,m.toAttrs.path=_,m.pathFormatted=!0),w[E]=[];for(var k=0;k<_.length;k++){for(var T=_[k],I=C[k],D=[],R=0;R0){for(var y=l._animators.length-1;y>=0;y--)if((u=l._animators[y]).get("destroyed"))f.removeAnimator(y);else{if(!u.get("pause").isPaused)for(var m=(c=u.get("animators")).length-1;m>=0;m--)s=c[m],r(u,s,g)&&(c.splice(m,1),s.callback&&s.callback());c.length===0&&f.removeAnimator(y)}l.canvas.draw()}})},addAnimator:function(u){this._animators.push(u)},removeAnimator:function(u){this._animators.splice(u,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach(function(u){u.stopAnimate()}),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),P.exports=e},function(P,b,p){var d=p(19),v=p(613),h={arc:p(602),ellipse:p(639),line:p(603)},a=d.createDom('').getContext("2d");function o(t,e,r){return r.createPath(a),a.isPointInPath(t,e)}var n={arc:function(e,r){var i=this._attrs,u=i.x,c=i.y,s=i.r,l=i.startAngle,f=i.endAngle,g=i.clockwise,y=this.getHitLineWidth();return!!this.hasStroke()&&v.arcline(u,c,s,l,f,g,y,e,r)},circle:function(e,r){var i=this._attrs,u=i.x,c=i.y,s=i.r,l=this.getHitLineWidth(),f=this.hasFill(),g=this.hasStroke();return f&&g?v.circle(u,c,s,e,r)||v.arcline(u,c,s,0,2*Math.PI,!1,l,e,r):f?v.circle(u,c,s,e,r):!!g&&v.arcline(u,c,s,0,2*Math.PI,!1,l,e,r)},dom:function(e,r){if(!this._cfg.el)return!1;var i=this._cfg.el.getBBox();return v.box(i.x,i.x+i.width,i.y,i.y+i.height,e,r)},ellipse:function(e,r){var i=this._attrs,u=this.hasFill(),c=this.hasStroke(),s=i.x,l=i.y,f=i.rx,g=i.ry,y=this.getHitLineWidth(),m=f>g?f:g,x=f>g?1:f/g,w=f>g?g/f:1,M=[e,r,1],S=[1,0,0,0,1,0,0,0,1];d.mat3.scale(S,S,[x,w]),d.mat3.translate(S,S,[s,l]);var O=d.mat3.invert([],S);return d.vec3.transformMat3(M,M,O),u&&c?v.circle(0,0,m,M[0],M[1])||v.arcline(0,0,m,0,2*Math.PI,!1,y,M[0],M[1]):u?v.circle(0,0,m,M[0],M[1]):!!c&&v.arcline(0,0,m,0,2*Math.PI,!1,y,M[0],M[1])},fan:function(e,r){var i=this,u=i.hasFill(),c=i.hasStroke(),s=i._attrs,l=s.x,f=s.y,g=s.rs,y=s.re,m=s.startAngle,x=s.endAngle,w=s.clockwise,M=[e-l,r-f],S=d.vec2.angleTo([1,0],M);function O(){var E=h.arc.nearAngle(S,m,x,w);if(d.isNumberEqual(S,E)){var _=d.vec2.squaredLength(M);if(g*g<=_&&_<=y*y)return!0}return!1}function A(){var E=i.getHitLineWidth(),_={x:Math.cos(m)*g+l,y:Math.sin(m)*g+f},C={x:Math.cos(m)*y+l,y:Math.sin(m)*y+f},k={x:Math.cos(x)*g+l,y:Math.sin(x)*g+f},T={x:Math.cos(x)*y+l,y:Math.sin(x)*y+f};return!!(v.line(_.x,_.y,C.x,C.y,E,e,r)||v.line(k.x,k.y,T.x,T.y,E,e,r)||v.arcline(l,f,g,m,x,w,E,e,r)||v.arcline(l,f,y,m,x,w,E,e,r))}return u&&c?O()||A():u?O():!!c&&A()},image:function(e,r){var i=this._attrs;if(this.get("toDraw")||!i.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===i.img||this._setAttrImg();var u=i.x,c=i.y,s=i.width,l=i.height;return v.rect(u,c,s,l,e,r)},line:function(e,r){var i=this._attrs,u=i.x1,c=i.y1,s=i.x2,l=i.y2,f=this.getHitLineWidth();return!!this.hasStroke()&&v.line(u,c,s,l,f,e,r)},path:function(e,r){var i=this,u=i.get("segments"),c=i.hasFill(),s=i.hasStroke();function l(){if(!d.isEmpty(u)){for(var f=i.getHitLineWidth(),g=0,y=u.length;g=3&&g.push(l[0]),v.polyline(g,f,e,r)}return u&&c?o(e,r,i)||s():u?o(e,r,i):!!c&&s()},polyline:function(e,r){var i=this._attrs;if(this.hasStroke()){var u=i.points;if(u.length<2)return!1;var c=i.lineWidth;return v.polyline(u,c,e,r)}return!1},rect:function(e,r){var i=this,u=i.hasFill(),c=i.hasStroke();function s(){var l=i._attrs,f=l.x,g=l.y,y=l.width,m=l.height,x=l.radius,w=i.getHitLineWidth();if(x===0){var M=w/2;return v.line(f-M,g,f+y+M,g,w,e,r)||v.line(f+y,g-M,f+y,g+m+M,w,e,r)||v.line(f+y+M,g+m,f-M,g+m,w,e,r)||v.line(f,g+m+M,f,g-M,w,e,r)}return v.line(f+x,g,f+y-x,g,w,e,r)||v.line(f+y,g+x,f+y,g+m-x,w,e,r)||v.line(f+y-x,g+m,f+x,g+m,w,e,r)||v.line(f,g+m-x,f,g+x,w,e,r)||v.arcline(f+y-x,g+x,x,1.5*Math.PI,2*Math.PI,!1,w,e,r)||v.arcline(f+y-x,g+m-x,x,0,.5*Math.PI,!1,w,e,r)||v.arcline(f+x,g+m-x,x,.5*Math.PI,Math.PI,!1,w,e,r)||v.arcline(f+x,g+x,x,Math.PI,1.5*Math.PI,!1,w,e,r)}return u&&c?o(e,r,i)||s():u?o(e,r,i):!!c&&s()},text:function(e,r){var i=this.getBBox();if(this.hasFill()||this.hasStroke())return v.box(i.minX,i.maxX,i.minY,i.maxY,e,r)}};P.exports={isPointInPath:function(e,r){var i=n[this.type];return!!i&&i.call(this,e,r)}}},function(P,b,p){var d=p(58);d.Arc=p(638),d.Circle=p(637),d.Dom=p(636),d.Ellipse=p(635),d.Fan=p(634),d.Image=p(633),d.Line=p(632),d.Marker=p(611),d.Path=p(631),d.Polygon=p(630),d.Polyline=p(629),d.Rect=p(628),d.Text=p(627),P.exports=d},function(P,b,p){var d=p(19),v={delay:"delay",rotate:"rotate"},h={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};P.exports={animate:function(o,n,t,e,r){r===void 0&&(r=0),this.set("animating",!0);var i=this.get("timeline");i||(i=this.get("canvas").get("timeline"),this.setSilent("timeline",i));var u=this.get("animators")||[];i._timer||i.initTimer(),d.isNumber(e)&&(r=e,e=null),d.isFunction(t)?(e=t,t="easeLinear"):t=t||"easeLinear";var c=function(l,f){var g={matrix:null,attrs:{}},y=f._attrs;for(var m in l)if(m==="transform")g.matrix=d.transform(f.getMatrix(),l[m]);else if(m==="rotate")g.matrix=d.transform(f.getMatrix(),[["r",l[m]]]);else if(m==="matrix")g.matrix=l[m];else{if(h[m]&&/^[r,R,L,l]{1}[\s]*\(/.test(l[m]))continue;v[m]||y[m]===l[m]||(g.attrs[m]=l[m])}return g}(o,this),s={fromAttrs:function(l,f){var g={},y=f._attrs;for(var m in l.attrs)g[m]=y[m];return g}(c,this),toAttrs:c.attrs,fromMatrix:d.clone(this.getMatrix()),toMatrix:c.matrix,duration:n,easing:t,callback:e,delay:r,startTime:i.getTime(),id:d.uniqueId()};u.length>0?u=function(l,f){var g=f.delay,y=Object.prototype.hasOwnProperty;return d.each(f.toAttrs,function(m,x){d.each(l,function(w){g2*Math.PI&&(n=n/180*Math.PI),this.transform([["t",-t,-e],["r",n],["t",t,e]])},move:function(n,t){var e=this.get("x")||0,r=this.get("y")||0;return this.translate(n-e,t-r),this.set("x",n),this.set("y",t),this},transform:function(n){var t=this,e=this._attrs.matrix;return d.each(n,function(r){switch(r[0]){case"t":t.translate(r[1],r[2]);break;case"s":t.scale(r[1],r[2]);break;case"r":t.rotate(r[1]);break;case"m":t.attr("matrix",d.mat3.multiply([],e,r[1])),t.clearTotalMatrix()}}),t},setTransform:function(n){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(n)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(n){return this.attr("matrix",n),this.clearTotalMatrix(),this},apply:function(n,t){var e;return e=t?this._getMatrixByRoot(t):this.attr("matrix"),d.vec3.transformMat3(n,n,e),this},_getMatrixByRoot:function(n){n=n||this;for(var t=this,e=[];t!==n;)e.unshift(t),t=t.get("parent");e.unshift(t);var r=[1,0,0,0,1,0,0,0,1];return d.each(e,function(i){d.mat3.multiply(r,i.attr("matrix"),r)}),r},getTotalMatrix:function(){var n=this._cfg.totalMatrix;if(!n){n=[1,0,0,0,1,0,0,0,1];var t=this._cfg.parent;t&&a(n,t.getTotalMatrix()),a(n,this.attr("matrix")),this._cfg.totalMatrix=n}return n},clearTotalMatrix:function(){},invert:function(n){var t=this.getTotalMatrix();if(h(t))n[0]/=t[0],n[1]/=t[4];else{var e=d.mat3.invert([],t);e&&d.vec3.transformMat3(n,n,e)}return this},resetTransform:function(n){var t=this.attr("matrix");v(t)||n.transform(t[0],t[1],t[3],t[4],t[6],t[7])}}},function(P,b,p){var d=p(19);P.exports={canFill:!1,canStroke:!1,initAttrs:function(h){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(d.assign(this.getDefaultAttrs(),h)),this},getDefaultAttrs:function(){return{}},attr:function(h,a){if(arguments.length===0)return this._attrs;if(d.isObject(h)){for(var o in h)this._setAttr(o,h[o]);return this.clearBBox(),this._cfg.hasUpdate=!0,this}return arguments.length===2?(this._setAttr(h,a),this.clearBBox(),this._cfg.hasUpdate=!0,this):this._attrs[h]},_setAttr:function(h,a){var o=this._attrs;o[h]=a,h!=="fill"&&h!=="stroke"?h!=="opacity"?h==="clip"&&a?this._setClip(a):h==="path"&&this._afterSetAttrPath?this._afterSetAttrPath(a):h!=="transform"?h==="rotate"&&this.rotateAtStart(a):this.transform(a):o.globalAlpha=a:o[h+"Style"]=a},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(h){h._cfg.renderer=this._cfg.renderer,h._cfg.canvas=this._cfg.canvas,h._cfg.parent=this._cfg.parent,h.hasFill=function(){return!0}}}},function(P,b,p){var d=p(19),v=p(643),h=p(642),a=p(741),o=p(740),n=function t(e){t.superclass.constructor.call(this,e)};n.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas"},d.extend(n,h),d.augment(n,{init:function(){n.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(e,r){if(e){if(!d.isEmpty(e._getEvents()))return e;var i=e.get("parent");if(i&&!r.propagationStopped)return this.getEmitter(i,r)}},_getEventObj:function(e,r,i,u){var c=new v(e,r,!0,!0);return c.x=i.x,c.y=i.y,c.clientX=r.clientX,c.clientY=r.clientY,c.currentTarget=u,c.target=u,c},_triggerEvent:function(e,r){var i,u=this.getPointByClient(r.clientX,r.clientY),c=this.getShape(u.x,u.y,r),s=this.get("el");if(e==="mousemove"){var l=this.get("preShape");if(l&&l!==c){var f=this._getEventObj("mouseleave",r,u,l);(i=this.getEmitter(l,r))&&i.emit("mouseleave",f),s.style.cursor="default"}if(c){var g=this._getEventObj("mousemove",r,u,c);if((i=this.getEmitter(c,r))&&i.emit("mousemove",g),l!==c){var y=this._getEventObj("mouseenter",r,u,c);i&&i.emit("mouseenter",y,r)}}else{var m=this._getEventObj("mousemove",r,u,this);this.emit("mousemove",m)}this.set("preShape",c)}else{var x=this._getEventObj(e,r,u,c||this);(i=this.getEmitter(c,r))&&i!==this&&i.emit(e,x),this.emit(e,x)}c&&!c.get("destroyed")&&(s.style.cursor=c.attr("cursor")||"default")},_registEvents:function(){var e=this,r=e.get("el");d.each(["mouseout","mouseover","mousemove","mousedown","mouseleave","mouseup","click","dblclick"],function(i){r.addEventListener(i,function(u){e._triggerEvent(i,u)},!1)}),r.addEventListener("touchstart",function(i){d.isEmpty(i.touches)||e._triggerEvent("touchstart",i.touches[0])},!1),r.addEventListener("touchmove",function(i){d.isEmpty(i.touches)||e._triggerEvent("touchmove",i.touches[0])},!1),r.addEventListener("touchend",function(i){d.isEmpty(i.changedTouches)||e._triggerEvent("touchend",i.changedTouches[0])},!1)},_scale:function(){if(this._cfg.renderType!=="svg"){var e=this.get("pixelRatio");this.scale(e,e)}},_setGlobalParam:function(){var e=this.get("renderer")||"canvas";e==="svg"?this.set("pixelRatio",1):this.get("pixelRatio")||this.set("pixelRatio",d.getRatio()),this._cfg.renderType=e;var r=o[e];this._cfg.renderer=r,this._cfg.canvas=this;var i=new a(this);this._cfg.timeline=i},_setContainer:function(){var e=this.get("containerId"),r=this.get("containerDOM");r||(r=document.getElementById(e),this.set("containerDOM",r)),d.modifyCSS(r,{position:"relative"})},_initPainter:function(){var e=this.get("containerDOM"),r=new this._cfg.renderer.painter(e);this._cfg.painter=r,this._cfg.canvasDOM=this._cfg.el=r.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var e=this.get("canvasDOM"),r=this.get("widthCanvas"),i=this.get("heightCanvas"),u=this.get("widthStyle"),c=this.get("heightStyle");e.style.width=u,e.style.height=c,e.setAttribute("width",r),e.setAttribute("height",i)},getWidth:function(){var e=this.get("pixelRatio");return this.get("width")*e},getHeight:function(){var e=this.get("pixelRatio");return this.get("height")*e},changeSize:function(e,r){var i=this.get("pixelRatio"),u=e*i,c=r*i;this.set("widthCanvas",u),this.set("heightCanvas",c),this.set("widthStyle",e+"px"),this.set("heightStyle",r+"px"),this.set("width",e),this.set("height",r),this._resize()},getPointByClient:function(e,r){var i=this.get("el"),u=this.get("pixelRatio")||1,c=i.getBoundingClientRect();return{x:(e-c.left)*u,y:(r-c.top)*u}},getClientByPoint:function(e,r){var i=this.get("el").getBoundingClientRect(),u=this.get("pixelRatio")||1;return{clientX:e/u+i.left,clientY:r/u+i.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(e,r,i){return arguments.length===3&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,e,r,i):n.superclass.getShape.call(this,e,r)},getRenderer:function(){return this._cfg.renderType},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var e=this._cfg,r=e.containerDOM,i=e.canvasDOM;i&&r&&r.removeChild(i),e.timeline.stop(),n.superclass.destroy.call(this)}}),P.exports=n},function(P,b,p){var d=p(248),v={};p(257).mix(v,d.PathUtil,{getRectPath:d.PathUtil.rectPath,pointsToPolygon:function(a){for(var o=[["M",a[0].x,a[0].y]],n=1;nd?(h&&(clearTimeout(h),h=null),t=u,n=p.apply(a,o),h||(a=o=null)):h||v.trailing===!1||(h=setTimeout(e,c)),n};return r.cancel=function(){clearTimeout(h),t=0,h=a=o=null},r}},function(P,b,p){var d=p(46),v=p(596),h=Object.prototype.hasOwnProperty;P.exports=function(a,o){if(a===null||!v(a))return{};var n={};return d(o,function(t){h.call(a,t)&&(n[t]=a[t])}),n}},function(P,b,p){var d=p(46),v=p(118);P.exports=function(h,a){if(!v(h))return h;var o=[];return d(h,function(n,t){o.push(a(n,t))}),o}},function(P,b,p){var d=p(84),v=p(614);P.exports=function(h,a,o){return d(o)?!!o(h,a):v(h,a)}},function(P,b,p){var d=p(118);P.exports=function(v,h){if(!d(v))return-1;var a=Array.prototype.indexOf;if(a)return a.call(v,h);for(var o=-1,n=0;n0)){v[o]=h[o];break}a=d(a,v[o-1],1)}v[o]=["Q"].concat(a.reduce(function(n,t){return n.concat(t)},[]));break;case"T":v[o]=["T"].concat(a[0]);break;case"C":if(a.length<3){if(!(o>0)){v[o]=h[o];break}a=d(a,v[o-1],2)}v[o]=["C"].concat(a.reduce(function(n,t){return n.concat(t)},[]));break;case"S":if(a.length<2){if(!(o>0)){v[o]=h[o];break}a=d(a,v[o-1],1)}v[o]=["S"].concat(a.reduce(function(n,t){return n.concat(t)},[]));break;default:v[o]=h[o]}return v}},function(P,b,p){var d=p(46);P.exports=function(v,h){if(v.length!==h.length)return!1;var a=!0;return d(v,function(o,n){if(o!==h[n])return a=!1,!1}),a}},function(P,b,p){var d=p(770);function v(h,a,o){var n=null,t=o;return a=0;l--)r=e[l].index,e[l].type==="add"?h.splice(r,0,[].concat(h[r])):h.splice(r,1)}if((n=h.length)=3&&(y.length===3&&m.push("Q"),m=m.concat(y[1])),y.length===2&&m.push("L"),m=m.concat(y[y.length-1])})}(v,h,a));else{var n=[].concat(v);n[0]==="M"&&(n[0]="L");for(var t=0;t<=a-1;t++)o.push(n)}return o}P.exports=function(v,h){if(v.length===1)return v;var a=v.length-1,o=h.length-1,n=a/o,t=[];if(v.length===1&&v[0][0]==="M"){for(var e=0;e1?1:M<0?0:M)/2,O=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],A=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],E=0,_=0;_<12;_++){var C=S*O[_]+S,k=a(C,s,f,y,x),T=a(C,l,g,m,w),I=k*k+T*T;E+=A[_]*Math.sqrt(I)}return S*E},n=function(s,l,f,g,y,m,x,w){if(!(Math.max(s,f)Math.max(y,x)||Math.max(l,g)Math.max(m,w))){var M=(s-f)*(m-w)-(l-g)*(y-x);if(M){var S=((s*g-l*f)*(y-x)-(s-f)*(y*w-m*x))/M,O=((s*g-l*f)*(m-w)-(l-g)*(y*w-m*x))/M,A=+S.toFixed(2),E=+O.toFixed(2);if(!(A<+Math.min(s,f).toFixed(2)||A>+Math.max(s,f).toFixed(2)||A<+Math.min(y,x).toFixed(2)||A>+Math.max(y,x).toFixed(2)||E<+Math.min(l,g).toFixed(2)||E>+Math.max(l,g).toFixed(2)||E<+Math.min(m,w).toFixed(2)||E>+Math.max(m,w).toFixed(2)))return{x:S,y:O}}}},t=function(s,l,f){return l>=s.x&&l<=s.x+s.width&&f>=s.y&&f<=s.y+s.height},e=function(s,l,f,g){return s===null&&(s=l=f=g=0),l===null&&(l=s.y,f=s.width,g=s.height,s=s.x),{x:s,y:l,width:f,w:f,height:g,h:g,x2:s+f,y2:l+g,cx:s+f/2,cy:l+g/2,r1:Math.min(f,g)/2,r2:Math.max(f,g)/2,r0:Math.sqrt(f*f+g*g)/2,path:v(s,l,f,g),vb:[s,l,f,g].join(" ")}},r=function(s,l,f,g,y,m,x,w){d(s)||(s=[s,l,f,g,y,m,x,w]);var M=function(S,O,A,E,_,C,k,T){for(var I=[],D=[[],[]],R=void 0,j=void 0,B=void 0,X=void 0,et=0;et<2;++et)if(et===0?(j=6*S-12*A+6*_,R=-3*S+9*A-9*_+3*k,B=3*A-3*S):(j=6*O-12*E+6*C,R=-3*O+9*E-9*C+3*T,B=3*E-3*O),Math.abs(R)<1e-12){if(Math.abs(j)<1e-12)continue;(X=-B/j)>0&&X<1&&I.push(X)}else{var K=j*j-4*B*R,tt=Math.sqrt(K);if(!(K<0)){var J=(-j+tt)/(2*R);J>0&&J<1&&I.push(J);var nt=(-j-tt)/(2*R);nt>0&&nt<1&&I.push(nt)}}for(var at=I.length,W=at,q=void 0;at--;)q=1-(X=I[at]),D[0][at]=q*q*q*S+3*q*q*X*A+3*q*X*X*_+X*X*X*k,D[1][at]=q*q*q*O+3*q*q*X*E+3*q*X*X*C+X*X*X*T;return D[0][W]=S,D[1][W]=O,D[0][W+1]=k,D[1][W+1]=T,D[0].length=D[1].length=W+2,{min:{x:Math.min.apply(0,D[0]),y:Math.min.apply(0,D[1])},max:{x:Math.max.apply(0,D[0]),y:Math.max.apply(0,D[1])}}}.apply(null,s);return e(M.min.x,M.min.y,M.max.x-M.min.x,M.max.y-M.min.y)},i=function(s,l,f,g,y,m,x,w,M){var S=1-M,O=Math.pow(S,3),A=Math.pow(S,2),E=M*M,_=E*M,C=s+2*M*(f-s)+E*(y-2*f+s),k=l+2*M*(g-l)+E*(m-2*g+l),T=f+2*M*(y-f)+E*(x-2*y+f),I=g+2*M*(m-g)+E*(w-2*m+g);return{x:O*s+3*A*M*f+3*S*M*M*y+_*x,y:O*l+3*A*M*g+3*S*M*M*m+_*w,m:{x:C,y:k},n:{x:T,y:I},start:{x:S*s+M*f,y:S*l+M*g},end:{x:S*y+M*x,y:S*m+M*w},alpha:90-180*Math.atan2(C-T,k-I)/Math.PI}},u=function(s,l,f){if(!function(K,tt){return K=e(K),tt=e(tt),t(tt,K.x,K.y)||t(tt,K.x2,K.y)||t(tt,K.x,K.y2)||t(tt,K.x2,K.y2)||t(K,tt.x,tt.y)||t(K,tt.x2,tt.y)||t(K,tt.x,tt.y2)||t(K,tt.x2,tt.y2)||(K.xtt.x||tt.xK.x)&&(K.ytt.y||tt.yK.y)}(r(s),r(l)))return f?0:[];for(var g=~~(o.apply(0,s)/8),y=~~(o.apply(0,l)/8),m=[],x=[],w={},M=f?0:[],S=0;S=0&&X<=1&&et>=0&&et<=1&&(f?M++:M.push({x:B.x,y:B.y,t1:X,t2:et}))}}return M};P.exports=function(c,s){return function(l,f,g){l=h(l),f=h(f);for(var y=void 0,m=void 0,x=void 0,w=void 0,M=void 0,S=void 0,O=void 0,A=void 0,E=void 0,_=void 0,C=g?0:[],k=0,T=l.length;kt&&(n=r,t=e)}),n}}},function(P,b,p){var d=p(236);P.exports=function(v){return d(v)&&v>0}},function(P,b,p){var d=p(236);P.exports=function(v){return d(v)&&v%2!=0}},function(P,b,p){var d=p(236);P.exports=function(v){return d(v)&&v<0}},function(P,b,p){var d=p(236),v=Number.isInteger?Number.isInteger:function(h){return d(h)&&h%1==0};P.exports=v},function(P,b,p){var d=p(236);P.exports=function(v){return d(v)&&v%2==0}},function(P,b,p){var d=p(236);P.exports=function(v){return d(v)&&v%1!=0}},function(P,b){P.exports=function(p,d){var v=d.toString(),h=v.indexOf(".");if(h===-1)return Math.round(p);var a=v.substr(h+1).length;return a>20&&(a=20),parseFloat(p.toFixed(a))}},function(P,b,p){var d=p(673);P.exports={clamp:p(618),fixedBase:p(788),isDecimal:p(787),isEven:p(786),isInteger:p(785),isNegative:p(784),isNumberEqual:d,isOdd:p(783),isPositive:p(782),maxBy:p(781),minBy:p(780),mod:p(672),snapEqual:d,toDegree:p(671),toInt:p(670),toInteger:p(670),toRadian:p(669)}},function(P,b,p){var d=p(45);P.exports=function(v){var h=0,a=0,o=0,n=0;return d(v)?v.length===1?h=a=o=n=v[0]:v.length===2?(h=o=v[0],a=n=v[1]):v.length===3?(h=v[0],a=n=v[1],o=v[2]):(h=v[0],a=v[1],o=v[2],n=v[3]):h=a=o=n=v,{r1:h,r2:a,r3:o,r4:n}}},function(P,b,p){var d=p(45),v=p(595),h=p(46),a=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;P.exports=function(n){return d(n=n||[])?n:v(n)?(n=n.match(a),h(n,function(t,e){if((t=t.match(o))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}h(t,function(i,u){isNaN(i)||(t[u]=+i)}),n[e]=t}),n):void 0}},function(P,b){var p={};P.exports=function(d){var v=p[d];if(!v){for(var h=d.toString(16),a=h.length;a<6;a++)h="0"+h;v="#"+h,p[d]=v}return v}},function(P,b,p){var d=p(792);P.exports={number2color:d,numberToColor:d,parsePath:p(791),parseRadius:p(790)}},function(P,b){P.exports=function(p,d){if(p["_wrap_"+d])return p["_wrap_"+d];var v=function(a){p[d](a)};return p["_wrap_"+d]=v,v}},function(P,b){P.exports=function(p,d){return p["_wrap_"+d]}},function(P,b,p){P.exports={getWrapBehavior:p(795),wrapBehavior:p(794)}},function(P,b,p){var d=p(237),v=p(45),h=p(46);P.exports=function(a,o){for(var n=[],t={},e=0;ei[c])return 1;if(r[c]1&&arguments[1]!==void 0?arguments[1]:[];if(d(h))for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:[];return d(h,function(o){return!v(a,o)})}},function(P,b,p){P.exports={contains:p(605),difference:p(808),find:p(807),firstValue:p(806),flatten:p(805),flattenDeep:p(804),getRange:p(803),merge:p(802),pull:p(676),pullAt:p(675),reduce:p(801),remove:p(800),sortBy:p(799),union:p(798),uniq:p(674),valuesOfKey:p(797)}},function(P,b){P.exports=function(p,d){var v=this.getStyle(p,"width",d);return v==="auto"&&(v=p.offsetWidth),parseFloat(v)}},function(P,b,p){var d=p(237);P.exports=function(v,h,a){try{return window.getComputedStyle?window.getComputedStyle(v,null)[h]:v.currentStyle[h]}catch(o){return d(a)?null:a}}},function(P,b){P.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(P,b){P.exports=function(p,d){var v=this.getWidth(p,d),h=parseFloat(this.getStyle(p,"borderLeftWidth"))||0,a=parseFloat(this.getStyle(p,"paddingLeft"))||0,o=parseFloat(this.getStyle(p,"paddingRight"))||0;return v+h+(parseFloat(this.getStyle(p,"borderRightWidth"))||0)+a+o}},function(P,b){P.exports=function(p,d){var v=this.getHeight(p,d),h=parseFloat(this.getStyle(p,"borderTopWidth"))||0,a=parseFloat(this.getStyle(p,"paddingTop"))||0,o=parseFloat(this.getStyle(p,"paddingBottom"))||0;return v+h+(parseFloat(this.getStyle(p,"borderBottomWidth"))||0)+a+o}},function(P,b){P.exports=function(p,d){var v=this.getStyle(p,"height",d);return v==="auto"&&(v=p.offsetHeight),parseFloat(v)}},function(P,b){P.exports=function(p,d){if(p&&p.getBoundingClientRect){var v=p.getBoundingClientRect(),h=document.documentElement.clientTop,a=document.documentElement.clientLeft;return{top:v.top-h,bottom:v.bottom-h,left:v.left-a,right:v.right-a}}return d||null}},function(P,b){P.exports=function(p,d,v){if(p){if(p.addEventListener)return p.addEventListener(d,v,!1),{remove:function(){p.removeEventListener(d,v,!1)}};if(p.attachEvent)return p.attachEvent("on"+d,v),{remove:function(){p.detachEvent("on"+d,v)}}}}},function(P,b,p){P.exports={addEventListener:p(817),createDom:p(681),getBoundingClientRect:p(816),getHeight:p(815),getOuterHeight:p(814),getOuterWidth:p(813),getRatio:p(812),getStyle:p(811),getWidth:p(810),modifyCSS:p(680),requestAnimationFrame:p(679)}},function(P,b,p){var d=p(46),v=p(606),h=p(818),a=p(809),o=p(796),n=p(793),t=p(789),e=p(779),r=p(778),i=p(774),u=p(768),c=p(763),s={DOMUtil:h,DomUtil:h,MatrixUtil:e,PathUtil:i,arrayUtil:a,domUtil:h,eventUtil:o,formatUtil:n,mathUtil:t,matrixUtil:e,objectUtil:r,stringUtil:u,pathUtil:i,typeUtil:c,augment:p(651),clone:p(616),debounce:p(756),deepMix:p(615),each:d,extend:p(650),filter:p(620),group:p(755),groupBy:p(648),groupToMap:p(649),indexOf:p(754),isEmpty:p(647),isEqual:p(614),isEqualWith:p(753),map:p(752),mix:v,pick:p(751),throttle:p(750),toArray:p(604),toString:p(594),uniqueId:p(646)};d([h,a,o,n,t,e,r,i,u,c],function(l){v(s,l)}),P.exports=s},function(P,b,p){var d=p(683),v=p(626),h=p(247),a=p(609),o=p(248),n={Graph:p(625),Tree:p(689),Util:p(26),Layouts:p(623),G:o,Plugins:{},Components:{},Global:h,Shape:d,registerNode:d.registerNode,registerEdge:d.registerEdge,registerGroup:d.registerGroup,registerGuide:d.registerGuide,registerBehaviour:v.registerBehaviour,version:a,track:function(e){h.track=e}};p(684),P.exports=n}])})},26857:function(U,P,b){(function(p,d){U.exports=d(b(20532))})(window,function(p){return function(d){var v={};function h(a){if(v[a])return v[a].exports;var o=v[a]={i:a,l:!1,exports:{}};return d[a].call(o.exports,o,o.exports,h),o.l=!0,o.exports}return h.m=d,h.c=v,h.d=function(a,o,n){h.o(a,o)||Object.defineProperty(a,o,{enumerable:!0,get:n})},h.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},h.t=function(a,o){if(1&o&&(a=h(a)),8&o||4&o&&typeof a=="object"&&a&&a.__esModule)return a;var n=Object.create(null);if(h.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:a}),2&o&&typeof a!="string")for(var t in a)h.d(n,t,function(e){return a[e]}.bind(null,t));return n},h.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return h.d(o,"a",o),o},h.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},h.p="",h(h.s=267)}({266:function(v,h,a){function o(u){for(var c=1;c',g),M=e.createDOM('
',y),S=e.createDOM('
',m),O=e.createDOM('
',x);s.appendChild(w),w.appendChild(O),w.appendChild(S),w.appendChild(M),this.minimapContainer=w,this.background=M,this.viewPort=S,this.controlLayer=O},c.renderViewPort=function(s){if(s||(s=this.getGraph()),s.getItems().length!==0){var l=this.viewportWindow,f=this.viewportCanvas,g=this.viewportBack,y=this.miniMapMatrix,m=s.getWidth(),x=s.getHeight(),w=this.width,M=this.height,S=s.getMatrix();if(y){var O=e.invertMatrix({x:0,y:0},S),A=e.invertMatrix({x:m,y:x},S),E=e.applyMatrix(O,y),_=e.applyMatrix(A,y),C=_.x-E.x,k=_.y-E.y;g.attr({path:[["M",0,0],["L",w,0],["L",w,M],["L",0,M],["L",0,0],["M",E.x,E.y],["L",E.x,_.y],["L",_.x,_.y],["L",_.x,E.y],["L",E.x,E.y]]}),l.attr({x:E.x,y:E.y,width:C,height:k}),f.draw()}}},c.destroy=function(){this.minimapContainer.destroy()},u}();v.exports=i},267:function(v,h,a){function o(r,i,u){return i in r?Object.defineProperty(r,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[i]=u,r}var n=a(3),t=a(266),e=function(){function r(u){this.options=u}var i=r.prototype;return i.init=function(){var u=this.graph,c=new t(function(s){for(var l=1;lT&&(E=T,w=_,M=k,S=C)}}return{verticalPoint:M,index:w,vertical:S}}function l(m,x,w){var M,S,O,A=function(k){if(!k)return{x:void 0,y:void 0};var T=k.getBBox();return{x:T.centerX,y:T.centerY}}(x),E=m.getLinkPoints(A)[0];if(w){var _=t(m.getBBox())[w];M=m.getBBox(),S=_,O={x:x.getBBox().centerX,y:x.getBBox().centerY},((M.centerX-S.x)*(M.centerX-O.x)>0||(M.centerY-S.y)*(M.centerY-O.y)>0)&&(E=_)}E=e(E,m.getBBox());var C=x.getLinkPoints(E.point)[0];return{sourcePoint:E,targetPoint:C=e(C,x.getBBox())}}function f(m,x,w){return u(x,w)?m.minX>x[w].x?1:m.maxXx[w].y?1:m.maxYk-100&&c.mat3.translate(A,A,[0,k-100-T[1]]),T[0]>C-100&&c.mat3.translate(A,A,[C-100-T[0],0]),!0}},{key:"setSignal",value:function(A,E){this.get("_signals")[A]=E}},{key:"getSignal",value:function(A){return this.get("_signals")[A]}},{key:"setController",value:function(A,E){this.get("_controllers")[A]=E}},{key:"getController",value:function(A){return this.get("_controllers")[A]}},{key:"destroy",value:function(){var A=this.get("_graph"),E=this.get("_controllers");c.each(E,function(_){_.destroy()}),A.destroy()}}])&&t(M.prototype,S),O&&t(M,O),w}();c.each(y,function(x){c.mix(m.prototype,x.AUGMENT)}),d.exports=m},function(d,v,h){function a(e,r,i){return r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}var o=h(6),n=h(14),t=o.createDOM("").getContext("2d");d.exports=function(e){for(var r=1;r2&&arguments[2]!==void 0?arguments[2]:320;t.font=r;var u=t.measureText(e).width;if(u>i){u=0;for(var c=1;c=i&&(e=e.substring(0,c)+` +`+e.substring(c,e.length),c+=1,u=0)}return e}})},function(d,v){d.exports={orbitGap:10,nodeDefaultShape:"flow-node",edgeDefaultShape:"flow-smooth",groupDefaultShape:"flow-group",nodeActivedOutterStyle:{lineWidth:0},groupSelectedOutterStyle:{stroke:"#E0F0FF",lineWidth:2},nodeSelectedOutterStyle:{stroke:"#E0F0FF",lineWidth:2},edgeActivedStyle:{stroke:"#1890FF",strokeOpacity:.92},nodeActivedStyle:{fill:"#F3F9FF",stroke:"#1890FF"},groupActivedStyle:{stroke:"#1890FF"},edgeSelectedStyle:{lineWidth:2,strokeOpacity:.92,stroke:"#A3B1BF"},nodeSelectedStyle:{fill:"#F3F9FF",stroke:"#1890FF"},groupSelectedStyle:{stroke:"#1890FF",fillOpacity:.92},nodeStyle:{stroke:"#CED4D9",fill:"#FFFFFF",shadowOffsetX:0,shadowOffsetY:4,shadowBlur:10,shadowColor:"rgba(13, 26, 38, 0.08)",lineWidth:1,radius:4,fillOpacity:.92},edgeStyle:{stroke:"#A3B1BF",strokeOpacity:.92,lineWidth:1,lineAppendWidth:8,endArrow:!0},groupBackgroundPadding:[40,10,10,10],groupLabelOffsetX:10,groupLabelOffsetY:10,edgeLabelStyle:{fill:"#666",textAlign:"center",textBaseline:"middle"},edgeLabelRectPadding:4,edgeLabelRectStyle:{fill:"white"},nodeLabelStyle:{fill:"#666",textAlign:"center",textBaseline:"middle"},groupStyle:{stroke:"#CED4D9",radius:4},groupLabelStyle:{fill:"#666",textAlign:"left",textBaseline:"top"},multiSelectRectStyle:{fill:"#1890FF",fillOpacity:.08,stroke:"#1890FF",opacity:.1},dragNodeHoverToGroupStyle:{stroke:"#1890FF",lineWidth:2},dragNodeLeaveFromGroupStyle:{stroke:"#BAE7FF",lineWidth:2},anchorPointStyle:{radius:3.5,fill:"#fff",stroke:"#1890FF",lineAppendWidth:12},anchorHotsoptStyle:{radius:12,fill:"#1890FF",fillOpacity:.25},anchorHotsoptActivedStyle:{radius:14},anchorPointHoverStyle:{radius:4,fill:"#1890FF",fillOpacity:1,stroke:"#1890FF"},nodeControlPointStyle:{radius:4,fill:"#fff",shadowBlur:4,shadowColor:"#666"},edgeControlPointStyle:{radius:6,symbol:"square",lineAppendWidth:6,fillOpacity:0,strokeOpacity:0},nodeSelectedBoxStyle:{stroke:"#C2C2C2"},cursor:{panningCanvas:"-webkit-grabbing",beforePanCanvas:"-webkit-grab",hoverNode:"move",hoverEffectiveAnchor:"crosshair",hoverEdge:"default",hoverGroup:"move",hoverUnEffectiveAnchor:"default",hoverEdgeControllPoint:"crosshair",multiSelect:"crosshair"},zIndex:{anchorPoint:3,anchorHotsopt:2,selectedBox:1,controlPoint:4},polylineEdgeStyle:{offset:10,borderRadius:5},addToGroupDelayTime:400,outFromGroupDelayTime:400}},function(d,v,h){function a(u){for(var c=1;c=0&&l.item(f)!==this;);return f>-1}).call(u,c)},delegateEvent:function(u,c,s,l){return i.addEventListener(u,c,function(f){for(var g=f.target||f.srcElement;g!==u;)i.matches(g,s)&&l.call(g,Array.prototype.slice.call(arguments)),g=g.parentNode})},Palettes:e});d.exports=i},function(d,v){d.exports=p},function(d,v,h){function a(y){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(y)}function o(y){for(var m=1;m0?_.hierarchy<=2?8:2:0},getHGap:function(_){return _.hierarchy===1?8:_.hierarchy===2?24:18},getVGap:function(_){return _.hierarchy===1||_.hierarchy===2?24:2},getSide:function(_){return _.data.side?_.data.side:"right"}}),mode:"default",defaultIntersectBox:"rect",nodeDefaultShape:"mind-base",edgeDefaultShape:"mind-edge",minZoom:.2,maxZoom:2},align:{item:!1},rootShape:"mind-root",firstSubShape:"mind-first-sub",secondSubShape:"mind-second-sub",subShape:"mind-base",nodeDefaultShape:"mind-base",graphConstructor:c.Tree,defaultSide:"right"},E={};return l.each(f,function(_){l.mix(E,_.CFG)}),l.mix(!0,A,E,S),(O=e(this,i(m).call(this,A))).isMind=!0,O}var x,w,M;return function(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),O&&u(S,O)}(m,s),x=m,(w=[{key:"_init",value:function(){var S=this;r(i(m.prototype),"_init",this).call(this),l.each(f,function(D){D.INIT&&S[D.INIT]()});var O=this.getGraph(),A=this.get("defaultData"),E=O.get("mode"),_=O.getRootGroup().addGroup();if(this.set("hotAreaGroup",_),O.edge().shape(function(D){if(O.find(D.target).getModel().isPlaceholder)return"mind-placeholder-edge"}),A&&this.read(A),E==="default"){if(A){var C=this.getRoot(),k=O.find(C.id);this.setSelected(k,!0)}}else if(E==="readOnly"){var T=this.get("shortcut");T.append=!1,T.appendChild=!1,T.selectAll=!1,T.delete=!1}if(A){var I=this.getRoot();this.focus(I.id)}}},{key:"bindEvent",value:function(){var S=this;r(i(m.prototype),"bindEvent",this).call(this);var O=this.get("_graph");O.on("keydown",function(A){A.domEvent.preventDefault()}),O.on("beforechange",function(A){A.action==="add"?S._beforeAdd(A):A.action==="changeData"&&S._beforeChangeData(A)}),O.on("aftersource",function(){S._setHierarchy()}),O.on("afterchange",function(){S._setHotArea()}),O.on("afteritemdraw",function(A){var E=A.item,_=E.getModel();if(E.isEdge){var C=E.getGraphicGroup();l.toBack(C,C.getParent()),C.setSilent("capture",!1)}_.parent||(E.isRoot=!0,E.deleteable=!1,E.collapseExpand=!1,E.appendable=!1,E.dragable=!1)}),this.on("beforedelete",function(A){var E=A.items[0],_=S._getBrothers(E),C=S._getNth(E);_[C-1]?S.setSelected(_[C-1].id,!0):_[C+1]?S.setSelected(_[C+1].id,!0):S.setSelected(E.getParent(),!0)}),this.on("afteritemselected",function(A){S._tryAdjustViewport(A.item)})}},{key:"getRoot",value:function(){return this.getGraph().getSource().roots[0]}},{key:"_setHierarchy",value:function(S){var O=this.getGraph(),A=this.get("firstSubShape"),E=this.get("secondSubShape"),_=this.get("defaultSide");if(S){var C=O.find(S.parent);if(C){var k=C.getModel();S.hierarchy=k.hierarchy+1,S.shape!=="mind-placeholder"&&(S.hierarchy===2&&(S.shape=A,S.side||(S.side=_)),S.hierarchy===3&&(S.shape=E))}}else(S=this.getRoot()).hierarchy=1;l.traverseTree(S,function(T,I){T.hierarchy=I.hierarchy+1,T.side||(T.side=_),I.side&&(T.side=I.side),T.hierarchy===2?T.shape=A:T.hierarchy===3&&(T.shape=E)},function(T){return T.children})}},{key:"getFirstChildrenBySide",value:function(S){var O=this.getRoot(),A=[];return O.children.forEach(function(E){E.side===S&&A.push(E)}),A}},{key:"_getNth",value:function(S){return this.getGraph().getNth(S)}},{key:"_getBrothers",value:function(S){return S.getParent().getModel().children}},{key:"_getMoveChildModel",value:function(S){if(S&&S.length>0){var O=S.length;return S[parseInt(O/2)]}}},{key:"_getVerticalMoveItem",value:function(S,O,A){for(var E,_=this.getGraph().getNodes(),C=S.getBBox(),k=[C.minX,C.maxX],T=[],I=0;I0&&(T.sort(function(X,et){return X.long-et.long}),E=T[0].node),E}},{key:"_arrowTopItem",value:function(S){var O=this._getBrothers(S),A=this._getNth(S);return O[A-1]?O[A-1]:this._getVerticalMoveItem(S,function(E,_,C){return E.centerY<_.centerY&&C<=E.maxX&&C>=E.minX},function(E,_){return _.centerY-E.centerY})}},{key:"_arrowBottomItem",value:function(S){var O=this._getBrothers(S),A=this._getNth(S);return O[A+1]?O[A+1]:this._getVerticalMoveItem(S,function(E,_,C){return E.centerY>_.centerY&&C<=E.maxX&&C>=E.minX},function(E,_){return E.centerY-_.centerY})}},{key:"_arrowLeftItem",value:function(S){var O=l.getMindNodeSide(S);if(S.isRoot){var A=this.getFirstChildrenBySide("left");return this._getMoveChildModel(A)}if(O==="left"){var E=S.getModel().children;return this._getMoveChildModel(E)}return S.getParent()}},{key:"_arrowRightItem",value:function(S){var O=l.getMindNodeSide(S);if(S.isRoot){var A=this.getFirstChildrenBySide("right");return this._getMoveChildModel(A)}if(O==="right"){var E=S.getModel().children;return this._getMoveChildModel(E)}return S.getParent()}},{key:"_moveItemSelection",value:function(S){var O=this.getGraph(),A=this.getSelected()[0];if(A){var E,_=S.domEvent,C=l.getKeyboradKey(_);C!=="ArrowUp"||A.isRoot?C!=="ArrowDown"||A.isRoot?C==="ArrowLeft"?E=this._arrowLeftItem(A):C==="ArrowRight"&&(E=this._arrowRightItem(A)):E=this._arrowBottomItem(A):E=this._arrowTopItem(A),E&&(E=O.find(E.id)).isVisible()&&(this.clearSelected(),this.setSelected(E,!0))}}},{key:"showLabelEditor",value:function(S){var O=S.domEvent,A=this.getSelected()[0],E=l.getKeyboradKey(O);if(A&&E.length===1&&!O.metaKey&&!O.ctrlKey){var _=this.get("labelTextArea");A&&(this.beginEditLabel(A),_.innerHTML=E,l.setEndOfContenteditable(_))}}},{key:"_tryAdjustViewport",value:function(S){var O=this.get("_graph"),A=S.getBBox(),E={x:A.minX,y:A.minY},_={x:A.maxX,y:A.maxY},C=O.getDomPoint(E),k=O.getDomPoint(_),T=O.getWidth(),I=O.getHeight();C.x<0&&O.translate(16-C.x,0),C.y<0&&O.translate(0,16-C.y),k.x>T&&O.translate(T-k.x-16,0),k.y>I&&O.translate(0,I-k.y-16)}},{key:"_beforeChangeData",value:function(S){var O=S.data.roots[0],A=this.get("rootShape");O.shape=A,this._setHierarchy(O)}},{key:"_beforeAdd",value:function(S){var O=this.get("_graph"),A=S.model,E=O.find(A.parent);E.getModel().collapsed&&O.update(E,{collapsed:!1}),this._setHierarchy(A)}},{key:"_drawHotAreaShape",value:function(){var S=this.get("_graph"),O=this.get("hotAreaGroup"),A=this.get("hotAreas");O.clear(),A.forEach(function(E){O.addShape("rect",{attrs:{x:E.minX,y:E.minY,width:E.maxX-E.minX,height:E.maxY-E.minY,fill:E.color,fillOpacity:.4},capture:!1})}),S.draw()}},{key:"_setHotArea",value:function(){var S=[],O=this.get("_graph"),A=this.getRoot(),E="placeholder",_=this.get("showHotArea"),C=O.find(A.id).getBBox();S.push({minX:C.minX-90,minY:C.minY-60,maxX:(C.minX+C.maxX)/2,maxY:C.maxY+60,parent:A,current:A,id:A.id+"left"+E,nth:A.children.length,side:"left",color:"orange"}),S.push({minX:(C.minX+C.maxX)/2,minY:C.minY-60,maxX:C.maxX+90,maxY:C.maxY+60,parent:A,current:A,id:A.id+"right"+E,nth:A.children.length,side:"right",color:"pink"}),l.traverseTree(A,function(k,T,I){var D=O.find(k.id);if(!k.isPlaceholder&&D&&D.isVisible()){var R=function(nt,at,W){var q=W.children,Q=nt;if(!W.parent)for(;q[Q]&&q[Q].side!==at.side;)Q++;for(;q[Q]&&q[Q].isPlaceholder;)Q++;if(q[Q]&&q[Q].side===at.side)return q[Q]}(I+1,k,T),j=function(nt,at,W){var q=W.children,Q=nt;if(!W.parent)for(;q[Q]&&q[Q].side!==at.side;)Q--;for(;q[Q]&&q[Q].isPlaceholder;)Q--;if(q[Q]&&q[Q].side===at.side)return q[Q]}(I-1,k,T),B=O.find(k.id).getBBox(),X=T.children,et=k.hierarchy===2&&k.side==="right",K=k.hierarchy===2&&k.side==="left";if(j||S.push({minX:et?B.minX-90:B.minX,minY:function(){var nt=j?B.minY:B.minY-16;return X[I-1]&&X[I-1].isPlaceholder&&X[I-1].side===k.side&&(nt=O.find(X[I-1].id).getBBox().minY),nt}(),maxX:K?B.maxX+90:B.maxX,maxY:(B.minY+B.maxY)/2,parent:T,id:(j?j.id:void 0)+k.id+T.id+E,side:k.side,color:"yellow",nth:I}),R){var tt=O.find(R.id).getBBox();S.push({minX:k.side==="left"?Math.max(B.minX,tt.minX):et?B.minX-90:B.minX,minY:(B.minY+B.maxY)/2,maxX:k.side==="right"?Math.min(B.maxX,tt.maxX):K?B.maxX+90:B.maxX,maxY:(tt.minY+tt.maxY)/2,parent:T,id:k.id+(R?R.id:void 0)+T.id+E,side:k.side,color:"blue",nth:I+1})}else S.push({minX:et?B.minX-90:B.minX,minY:(B.minY+B.maxY)/2,maxX:K?B.maxX+90:B.maxX,maxY:function(){var nt=B.maxY+16;return X[I+1]&&X[I+1].isPlaceholder&&X[I+1].side===k.side&&(nt=O.find(X[I+1].id).getBBox().maxY),nt}(),parent:T,id:k.id+void 0+T.id+E,color:"red",nth:I+1,addOrder:"push",side:k.side});if(!k.children||k.children.length===0||k.children.length===1&&k.children[0].isPlaceholder){var J;J=k.x>T.x?{minX:B.maxX,minY:B.minY-0,maxX:B.maxX+100,maxY:B.maxY+0}:{minX:B.minX-100,minY:B.minY-0,maxX:B.minX,maxY:B.maxY+0},S.push(o({},J,{parent:k,id:NaN+k.id+E,nth:0,color:"green",side:k.side,addOrder:"push"}))}}},function(k){return k.children}),this.set("hotAreas",S),_&&this._drawHotAreaShape()}},{key:"hideHotArea",value:function(){var S=this.get("_graph");this.get("hotAreaGroup").clear(),S.draw(),this.set("showHotArea",!1)}},{key:"showHotArea",value:function(){this._drawHotAreaShape(),this.set("showHotArea",!0)}},{key:"getHotArea",value:function(S){var O;return this.get("hotAreas").forEach(function(A){if(S.x>A.minX&&S.xA.minY&&S.y
',{visibility:"hidden",width:x+"px",height:w+"px",position:"absolute"});return O.setAttribute("draggable","true"),c.addEventListener(O,"dragstart",function(){var A=O.hoverNode,E={shape:"bpmn-base",source:A.id,anchorIndex:O.getAttribute("anchorIndex")},_=A.getBBox(),C=M.getDelegation([{isEdge:!0}]);M.setSignal("dragEdge",!0),M.beginAdd("edge",E),M.set("addEdgeConfig",{addModel:E,delegation:C,startPoint:{x:_.centerX,y:_.centerY},sourceItem:A}),M.hideArrowController()}),S.push(O),O}},{key:"showArrowController",value:function(x){this.get("arrowController").controllers.forEach(function(w){w.show(),w.hoverNode=x})}},{key:"hideArrowController",value:function(){this.get("arrowController").controllers.forEach(function(x){x.hide()})}},{key:"_initArrowController",value:function(){var x=this.getGraph().getGraphContainer(),w=this.get("arrowController"),M=w.thickness,S=w.long,O=this._createArrowController(M,S),A=this._createArrowController(M,S),E=this._createArrowController(S,M),_=this._createArrowController(S,M);x.appendChild(O),x.appendChild(A),x.appendChild(E),x.appendChild(_),w.topArrow=O,w.bottomArrow=A,w.leftArrow=E,w.rightArrow=_}},{key:"bindEvent",value:function(){var x=this;t(e(f.prototype),"bindEvent",this).call(this);var w=this.getGraph();w.on("beforepanitem",function(){x.hideArrowController()}),w.on("afterviewportchange",function(){x.hideArrowController()})}}])&&o(g.prototype,y),m&&o(g,m),f}();u.setRegister(s,"bpmn","diagram"),d.exports=s},function(d,v,h){function a(x){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(x)}function o(x,w){for(var M=0;M0}function r(f){var g=f.getCurrentPage();this.snapShot=g.save(),this.selectedItems=g.getSelected().map(function(y){return y.id}),this.method&&(n.isString(this.method)?g[this.method]():this.method(f))}function i(f){var g=f.getCurrentPage();g.read(this.snapShot),g.setSelected(this.selectedItems,!0)}function u(f){return f.getCurrentPage().getMode()!==this.toMode}function c(f){var g=f.getCurrentPage();this.fromMode=g.getMode(),g.changeMode(this.toMode)}function s(f){f.getCurrentPage().changeMode(this.fromMode)}function l(f){var g={},y=[];return f.forEach(function(m){var x=m.model,w=n.mix(!0,{},a({},x,{id:n.guid()}));g[x.id]=w.id,y.push(a({},m,{model:w}))}),y.forEach(function(m){var x=m.model;if(x.parent){var w=g[x.parent];w?x.parent=w:delete x.parent}}),y.sort(function(m,x){return m.index-x.index}),y}t.list=[],t.registerCommand=function(f,g,y){if(t[f])n.mix(t[f],g);else{var m=a({enable:function(){return!0},init:function(){},execute:r,back:i,shortcutCodes:void 0,executeTimes:1,name:f,queue:!0},g);y&&t[y]&&(m=n.mix({},t[y],g)),t[f]=m,t.list.push(m)}},t.execute=function(f,g,y){var m=n.mix(!0,{},t[f],y),x=g.get("_command");return m.enable(g)&&(m.init(),m.queue&&(x.queue.splice(x.current,x.queue.length-x.current,m),x.current+=1),g.emit("beforecommandexecute",{command:m}),m.execute(g),g.emit("aftercommandexecute",{command:m}),g.setCommandDOMenable()),m},t.enable=function(f,g){return t[f].enable(g)},t.registerCommand("common",{back:i}),t.registerCommand("copyAdjacent",{enable:function(){return this.copyNode&&this.copyNode.isNode&&this.x&&this.y},execute:function(f){var g=this.copyNode,y=f.getCurrentPage(),m=y.getGraph(),x=g.getModel(),w=n.clone(x);w.id=n.guid(),w.x=this.x,w.y=this.y;var M=m.add("node",w),S=m.add("edge",{source:x.id,target:w.id});this.executeTimes===1&&(this.addIds=[M.id,S.id],this.page=y)},back:function(){var f=this.page.getGraph();this.addIds.forEach(function(g){f.remove(g)})}}),t.registerCommand("add",{enable:function(){return this.type&&this.addModel},execute:function(f){var g=f.getCurrentPage(),y=g.getGraph().add(this.type,this.addModel);this.executeTimes===1&&(this.addId=y.id,this.page=g)},back:function(){this.page.getGraph().remove(this.addId)}}),t.registerCommand("update",{enable:function(){return this.itemId&&this.updateModel},execute:function(f){var g=f.getCurrentPage(),y=g.getGraph(),m=y.find(this.itemId);this.executeTimes===1&&(this.originModel=n.getContrast(m.getModel(),this.updateModel),this.page=g),y.update(m,this.updateModel)},back:function(){var f=this.page.getGraph(),g=f.find(this.itemId);f.update(g,this.originModel)}}),t.registerCommand("redo",{queue:!1,enable:function(f){var g=f.get("_command"),y=g.queue;return g.current0},execute:function(f){var g=f.get("_command"),y=g.queue[g.current-1];y.executeTimes++,y.back(f),g.current-=1},shortcutCodes:[["metaKey","z"],["ctrlKey","z"]]}),t.registerCommand("copy",{queue:!1,enable:e,method:function(f){var g=f.getCurrentPage().getSelected(),y=f.get("_command"),m=g.map(function(w){return w.getGraphicGroup()}),x=n.getChildrenBBox(m);y.clipboard=[],g.forEach(function(w){n.traverseTree(w,function(M){var S=M.getModel(),O=M.getGraphicGroup();y.clipboard.push({type:M.type,index:n.getIndex(O),model:S})},function(M){return M.getChildren&&M.getChildren()},!0)}),f.set("copyCenterBox",a({},x))}}),t.registerCommand("pasteHere",{enable:function(f){return f.get("_command").clipboard.length>0},method:function(f){var g=f.getCurrentPage(),y=f.get("_command"),m=this.pasteData?this.pasteData:l(y.clipboard),x=this.copyCenterBox?this.copyCenterBox:f.get("copyCenterBox"),w=this.contextmenuPoint?this.contextmenuPoint:f.get("contextmenuPoint");g.clearSelected(),this.copyCenterBox=n.clone(x),this.pasteData=n.clone(m),this.contextmenuPoint=n.clone(w),m.forEach(function(M){var S=M.model;S.x&&(S.x+=w.x-x.minX),S.y&&(S.y+=w.y-x.minY),g.add(M.type,S)})},back:i}),t.registerCommand("paste",{enable:function(f){return f.get("_command").clipboard.length>0},method:function(f){var g=f.getCurrentPage(),y=f.get("_command"),m=this.pasteData?this.pasteData:l(y.clipboard);g.clearSelected(),this.pasteData=n.clone(m),m.forEach(function(x){var w=x.model;w.x&&(w.x+=10),w.y&&(w.y+=10),g.add(x.type,w)})},back:i}),t.registerCommand("addGroup",{init:function(){this.addGroupId=n.guid()},enable:function(f){return f.getCurrentPage().getSelected().length>1},method:function(f){f.getCurrentPage().addGroup({id:this.addGroupId})},back:i}),t.registerCommand("unGroup",{enable:function(f){var g=f.getCurrentPage().getSelected();return g.length===1&&g[0].isGroup},method:"unGroup",back:i}),t.registerCommand("delete",{getDeleteItems:function(f){var g=f.getCurrentPage(),y=g.getGraph(),m=this.itemIds?this.itemIds.map(function(x){return y.find(x)}):g.getSelected();return m=m.filter(function(x){return x.deleteable!==!1})},enable:function(f){return this.getDeleteItems(f).length>0},method:function(f){var g=f.getCurrentPage(),y=this.getDeleteItems(f),m=g.getGraph();g.emit("beforedelete",{items:y}),n.each(y,function(x){m.remove(x)}),g.emit("afterdelete",{items:y}),this.itemIds=y.map(function(x){return x.getModel().id})},back:i,shortcutCodes:["Delete","Backspace"]}),t.registerCommand("selectAll",{method:function(f){var g=f.getCurrentPage();g.getGraph().getItems().forEach(function(y){g.setSelected(y,!0)})},back:i,shortcutCodes:[["metaKey","a"]]}),t.registerCommand("toBack",{enable:e,method:"toBack",back:i}),t.registerCommand("toFront",{enable:e,method:"toFront",back:i}),t.registerCommand("clear",{enable:function(f){return f.getCurrentPage().getItems().length>0},method:"clear",back:i}),t.registerCommand("multiSelect",{enable:u,toMode:"multiSelect",execute:c,back:s}),t.registerCommand("move",{enable:u,toMode:"move",execute:c,back:s}),d.exports=t},function(d,v,h){d.exports=h(2)},function(d,v,h){"use strict";h.r(v),h.d(v,"mouseEnterEdge",function(){return o}),h.d(v,"mouseLeaveEdge",function(){return n}),h.d(v,"startMove",function(){return t}),h.d(v,"endMove",function(){return e}),h.d(v,"mouseMoveEdge",function(){return r}),h.d(v,"mergeLine",function(){return i});var a=h(0);function o(u){var c=u.graph,s=u.bpmn,l=u.ev,f=u.backUpCursor,g=l.item,y=g.model.controlPoints,m=Object(a.e)({x:l.x,y:l.y},y),x=m.index,w=m.vertical;x!=null&&(f&&(g._cursor=s.getGraph().getMouseEventWrapper().style.cursor),c.update(g,{hold:{index:x,vertical:w}}),w?s.css({cursor:"col-resize"}):s.css({cursor:"row-resize"}))}function n(u){var c=u.graph,s=u.bpmn,l=u.item;l._cursor&&s.css({cursor:l._cursor}),delete l._cursor,c.update(l,{hold:void 0})}function t(u,c){var s=c.item;u.update(s,{lastMouse:{x:c.x,y:c.y}})}function e(u){var c=u.graph,s=u.item;c.update(s,{lastMouse:void 0,moveDelta:void 0})}function r(u,c,s){var l;l=c.model&&c.model.hold&&c.model.hold.vertical?{x:s.x-c.model.lastMouse.x,y:0}:{x:0,y:s.y-c.model.lastMouse.y},u.update(c,{edgeMoved:l,modifiedByMouse:!0})}function i(u,c,s){var l,f=u.model,g=c||f.hold.index,y=f.controlPoints;s===null&&(s=f.hold.vertical);var m=[];return g>=2&&(s?Math.abs(y[g-2].x-y[g].x)<=3&&(l=[{x:y[g-2].x,y:y[g-2].y},{x:y[g-2].x,y:y[g+1].y}],m.push(g-1,g),f.hold.index=g-2,f.controlPoints[g+1].x=y[g-2].x):Math.abs(y[g-2].y-y[g].y)<=3&&(l=[{x:y[g-2].x,y:y[g-2].y},{x:y[g+1].x,y:y[g-2].y}],m.push(g-1,g),f.hold.index=g-2,f.controlPoints[g+1].y=y[g-2].y)),g<=y.length-4&&(s?Math.abs(y[g].x-y[g+2].x)<=3&&(l?(l[1]={x:y[g-2].x,y:y[g+3].y},f.controlPoints[g+3].x=y[g-2].x):(l=[{x:y[g+3].x,y:y[g].y},{x:y[g+3].x,y:y[g+3].y}],f.controlPoints[g].x=y[g+3].x),m.push(g+1,g+2)):Math.abs(y[g].y-y[g+2].y)<=3&&(l?(l[1]={x:y[g+3].x,y:y[g-2].y},f.controlPoints[g+3].y=y[g-2].y):(l=[{x:y[g].x,y:y[g+3].y},{x:y[g+3].x,y:y[g+3].y}],f.controlPoints[g].y=y[g+3].y),m.push(g+1,g+2))),m&&m.length&&y.splice(m[0],m.length),l}},function(d,v,h){function a(s){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}function o(s,l){return!l||a(l)!=="object"&&typeof l!="function"?function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(s):l}function n(s){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)})(s)}function t(s,l){for(var f=0;f2&&arguments[2]!==void 0&&arguments[2];return n.getEdges().filter(function(r){var i=r.getModel();return i.target===t.id||e&&i.source===t.id})},object2array:function(n){var t=[];return o.each(n,function(e){t.push(e)}),t}})},function(d,v,h){function a(c){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(c)}function o(c,s){for(var l=0;lsatellite"},bindEvent:function(){return[]}}}},{key:"_renderDOM",value:function(){var y=i.createDOM(this.render(this.diagram));return this.dom=y,y.isSatellite=!0,y}},{key:"getDOM",value:function(){return this.dom||this._renderDOM()}},{key:"init",value:function(){var y=this.getDOM(),m=this.diagram.getGraph().getGraphContainer();y&&(y.css({position:"absolute",visibility:"hidden"}),m.appendChild(y),y&&this.bindEvent(y,this.diagram))}},{key:"enable",value:function(){return!0}},{key:"show",value:function(){this.getDOM().show()}},{key:"hide",value:function(){this.getDOM().hide()}},{key:"isVisible",value:function(){return this.getDOM().style.visibility!=="hidden"}},{key:"destroy",value:function(){var y=this.events;y&&y.forEach(function(m){m.remove()})}}])&&o(l.prototype,f),g&&o(l,g),s}();d.exports=u},function(d,v,h){d.exports=h(2)},function(d,v,h){var a=h(26),o=h(6),n=h(15);h(7),a.Editor=a,a.Util=o,a.Diagram=h(16),a.Page=h(1),a.Flow=h(95),a.Koni=h(102),a.Mind=h(107),a.Toolbar=h(121),a.Contextmenu=h(122),a.Command=h(15),a.BPMN=h(123),a.registerBehaviour=a.Page.registerBehaviour,a.registerNode=a.Page.registerNode,a.registerEdge=a.Page.registerEdge,a.registerGroup=a.Page.registerGroup,a.registerGuide=a.Page.registerGuide,a.registerCommand=n.registerCommand,d.exports=a},function(d,v,h){function a(s){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}function o(s,l){for(var f=0;f0;w-=1){var M=x.toHsv(),S=(0,n.default)({h:l(M,w,!0),s:f(M,w,!0),v:g(M,w,!0)}).toHexString();m.push(S)}m.push(x.toHexString());for(var O=1;O<=s;O+=1){var A=x.toHsv(),E=(0,n.default)({h:l(A,O),s:f(A,O),v:g(A,O)}).toHexString();m.push(E)}return m};var a,o=h(31),n=(a=o)&&a.__esModule?a:{default:a},t=2,e=16,r=5,i=5,u=15,c=5,s=4;function l(y,m,x){var w=void 0;return(w=Math.round(y.h)>=60&&Math.round(y.h)<=240?x?Math.round(y.h)-t*m:Math.round(y.h)+t*m:x?Math.round(y.h)+t*m:Math.round(y.h)-t*m)<0?w+=360:w>=360&&(w-=360),w}function f(y,m,x){if(y.h===0&&y.s===0)return y.s;var w=void 0;return(w=x?Math.round(100*y.s)-e*m:m===s?Math.round(100*y.s)+e:Math.round(100*y.s)+r*m)>100&&(w=100),x&&m===c&&w>10&&(w=10),w<6&&(w=6),w}function g(y,m,x){return x?Math.round(100*y.v)+i*m:Math.round(100*y.v)-u*m}},function(d,v,h){var a;(function(o){var n=/^\s+/,t=/\s+$/,e=0,r=o.round,i=o.min,u=o.max,c=o.random;function s(Y,N){if(N=N||{},(Y=Y||"")instanceof s)return Y;if(!(this instanceof s))return new s(Y,N);var L=function(G){var H={r:0,g:0,b:0},F=1,$=null,st=null,ot=null,ct=!1,ht=!1;typeof G=="string"&&(G=function(lt){lt=lt.replace(n,"").replace(t,"").toLowerCase();var rt,gt=!1;if(D[lt])lt=D[lt],gt=!0;else if(lt=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(rt=Q.rgb.exec(lt))?{r:rt[1],g:rt[2],b:rt[3]}:(rt=Q.rgba.exec(lt))?{r:rt[1],g:rt[2],b:rt[3],a:rt[4]}:(rt=Q.hsl.exec(lt))?{h:rt[1],s:rt[2],l:rt[3]}:(rt=Q.hsla.exec(lt))?{h:rt[1],s:rt[2],l:rt[3],a:rt[4]}:(rt=Q.hsv.exec(lt))?{h:rt[1],s:rt[2],v:rt[3]}:(rt=Q.hsva.exec(lt))?{h:rt[1],s:rt[2],v:rt[3],a:rt[4]}:(rt=Q.hex8.exec(lt))?{r:et(rt[1]),g:et(rt[2]),b:et(rt[3]),a:nt(rt[4]),format:gt?"name":"hex8"}:(rt=Q.hex6.exec(lt))?{r:et(rt[1]),g:et(rt[2]),b:et(rt[3]),format:gt?"name":"hex"}:(rt=Q.hex4.exec(lt))?{r:et(rt[1]+""+rt[1]),g:et(rt[2]+""+rt[2]),b:et(rt[3]+""+rt[3]),a:nt(rt[4]+""+rt[4]),format:gt?"name":"hex8"}:(rt=Q.hex3.exec(lt))?{r:et(rt[1]+""+rt[1]),g:et(rt[2]+""+rt[2]),b:et(rt[3]+""+rt[3]),format:gt?"name":"hex"}:!1}(G)),typeof G=="object"&&(it(G.r)&&it(G.g)&&it(G.b)?(pt=G.r,Z=G.g,z=G.b,H={r:255*B(pt,255),g:255*B(Z,255),b:255*B(z,255)},ct=!0,ht=String(G.r).substr(-1)==="%"?"prgb":"rgb"):it(G.h)&&it(G.s)&&it(G.v)?($=tt(G.s),st=tt(G.v),H=function(lt,rt,gt){lt=6*B(lt,360),rt=B(rt,100),gt=B(gt,100);var mt=o.floor(lt),St=lt-mt,Mt=gt*(1-rt),Ot=gt*(1-St*rt),yt=gt*(1-(1-St)*rt),wt=mt%6;return{r:255*[gt,Ot,Mt,Mt,yt,gt][wt],g:255*[yt,gt,gt,Ot,Mt,Mt][wt],b:255*[Mt,Mt,yt,gt,gt,Ot][wt]}}(G.h,$,st),ct=!0,ht="hsv"):it(G.h)&&it(G.s)&&it(G.l)&&($=tt(G.s),ot=tt(G.l),H=function(lt,rt,gt){var mt,St,Mt;function Ot(Et,Pt,At){return At<0&&(At+=1),At>1&&(At-=1),At<1/6?Et+6*(Pt-Et)*At:At<.5?Pt:At<2/3?Et+(Pt-Et)*(2/3-At)*6:Et}if(lt=B(lt,360),rt=B(rt,100),gt=B(gt,100),rt===0)mt=St=Mt=gt;else{var yt=gt<.5?gt*(1+rt):gt+rt-gt*rt,wt=2*gt-yt;mt=Ot(wt,yt,lt+1/3),St=Ot(wt,yt,lt),Mt=Ot(wt,yt,lt-1/3)}return{r:255*mt,g:255*St,b:255*Mt}}(G.h,$,ot),ct=!0,ht="hsl"),G.hasOwnProperty("a")&&(F=G.a));var pt,Z,z;return F=j(F),{ok:ct,format:G.format||ht,r:i(255,u(H.r,0)),g:i(255,u(H.g,0)),b:i(255,u(H.b,0)),a:F}}(Y);this._originalInput=Y,this._r=L.r,this._g=L.g,this._b=L.b,this._a=L.a,this._roundA=r(100*this._a)/100,this._format=N.format||L.format,this._gradientType=N.gradientType,this._r<1&&(this._r=r(this._r)),this._g<1&&(this._g=r(this._g)),this._b<1&&(this._b=r(this._b)),this._ok=L.ok,this._tc_id=e++}function l(Y,N,L){Y=B(Y,255),N=B(N,255),L=B(L,255);var G,H,F=u(Y,N,L),$=i(Y,N,L),st=(F+$)/2;if(F==$)G=H=0;else{var ot=F-$;switch(H=st>.5?ot/(2-F-$):ot/(F+$),F){case Y:G=(N-L)/ot+(N>1)+720)%360;--N;)G.h=(G.h+H)%360,F.push(s(G));return F}function I(Y,N){N=N||6;for(var L=s(Y).toHsv(),G=L.h,H=L.s,F=L.v,$=[],st=1/N;N--;)$.push(s({h:G,s:H,v:F})),F=(F+st)%1;return $}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(299*Y.r+587*Y.g+114*Y.b)/1e3},getLuminance:function(){var Y,N,L,G=this.toRgb();return Y=G.r/255,N=G.g/255,L=G.b/255,.2126*(Y<=.03928?Y/12.92:o.pow((Y+.055)/1.055,2.4))+.7152*(N<=.03928?N/12.92:o.pow((N+.055)/1.055,2.4))+.0722*(L<=.03928?L/12.92:o.pow((L+.055)/1.055,2.4))},setAlpha:function(Y){return this._a=j(Y),this._roundA=r(100*this._a)/100,this},toHsv:function(){var Y=f(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=f(this._r,this._g,this._b),N=r(360*Y.h),L=r(100*Y.s),G=r(100*Y.v);return this._a==1?"hsv("+N+", "+L+"%, "+G+"%)":"hsva("+N+", "+L+"%, "+G+"%, "+this._roundA+")"},toHsl:function(){var Y=l(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=l(this._r,this._g,this._b),N=r(360*Y.h),L=r(100*Y.s),G=r(100*Y.l);return this._a==1?"hsl("+N+", "+L+"%, "+G+"%)":"hsla("+N+", "+L+"%, "+G+"%, "+this._roundA+")"},toHex:function(Y){return g(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return function(N,L,G,H,F){var $=[K(r(N).toString(16)),K(r(L).toString(16)),K(r(G).toString(16)),K(J(H))];return F&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)&&$[3].charAt(0)==$[3].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0)+$[3].charAt(0):$.join("")}(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:r(this._r),g:r(this._g),b:r(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+r(this._r)+", "+r(this._g)+", "+r(this._b)+")":"rgba("+r(this._r)+", "+r(this._g)+", "+r(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:r(100*B(this._r,255))+"%",g:r(100*B(this._g,255))+"%",b:r(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+r(100*B(this._r,255))+"%, "+r(100*B(this._g,255))+"%, "+r(100*B(this._b,255))+"%)":"rgba("+r(100*B(this._r,255))+"%, "+r(100*B(this._g,255))+"%, "+r(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(R[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(Y){var N="#"+y(this._r,this._g,this._b,this._a),L=N,G=this._gradientType?"GradientType = 1, ":"";if(Y){var H=s(Y);L="#"+y(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+G+"startColorstr="+N+",endColorstr="+L+")"},toString:function(Y){var N=!!Y;Y=Y||this._format;var L=!1,G=this._a<1&&this._a>=0;return N||!G||Y!=="hex"&&Y!=="hex6"&&Y!=="hex3"&&Y!=="hex4"&&Y!=="hex8"&&Y!=="name"?(Y==="rgb"&&(L=this.toRgbString()),Y==="prgb"&&(L=this.toPercentageRgbString()),Y!=="hex"&&Y!=="hex6"||(L=this.toHexString()),Y==="hex3"&&(L=this.toHexString(!0)),Y==="hex4"&&(L=this.toHex8String(!0)),Y==="hex8"&&(L=this.toHex8String()),Y==="name"&&(L=this.toName()),Y==="hsl"&&(L=this.toHslString()),Y==="hsv"&&(L=this.toHsvString()),L||this.toHexString()):Y==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return s(this.toString())},_applyModification:function(Y,N){var L=Y.apply(null,[this].concat([].slice.call(N)));return this._r=L._r,this._g=L._g,this._b=L._b,this.setAlpha(L._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(w,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(Y,N){return Y.apply(null,[this].concat([].slice.call(N)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},s.fromRatio=function(Y,N){if(typeof Y=="object"){var L={};for(var G in Y)Y.hasOwnProperty(G)&&(L[G]=G==="a"?Y[G]:tt(Y[G]));Y=L}return s(Y,N)},s.equals=function(Y,N){return!(!Y||!N)&&s(Y).toRgbString()==s(N).toRgbString()},s.random=function(){return s.fromRatio({r:c(),g:c(),b:c()})},s.mix=function(Y,N,L){L=L===0?0:L||50;var G=s(Y).toRgb(),H=s(N).toRgb(),F=L/100;return s({r:(H.r-G.r)*F+G.r,g:(H.g-G.g)*F+G.g,b:(H.b-G.b)*F+G.b,a:(H.a-G.a)*F+G.a})},s.readability=function(Y,N){var L=s(Y),G=s(N);return(o.max(L.getLuminance(),G.getLuminance())+.05)/(o.min(L.getLuminance(),G.getLuminance())+.05)},s.isReadable=function(Y,N,L){var G,H,F=s.readability(Y,N);switch(H=!1,(G=function($){var st,ot;return st=(($=$||{level:"AA",size:"small"}).level||"AA").toUpperCase(),ot=($.size||"small").toLowerCase(),st!=="AA"&&st!=="AAA"&&(st="AA"),ot!=="small"&&ot!=="large"&&(ot="small"),{level:st,size:ot}}(L)).level+G.size){case"AAsmall":case"AAAlarge":H=F>=4.5;break;case"AAlarge":H=F>=3;break;case"AAAsmall":H=F>=7}return H},s.mostReadable=function(Y,N,L){var G,H,F,$,st=null,ot=0;H=(L=L||{}).includeFallbackColors,F=L.level,$=L.size;for(var ct=0;ctot&&(ot=G,st=s(N[ct]));return s.isReadable(Y,st,{level:F,size:$})||!H?st:(L.includeFallbackColors=!1,s.mostReadable(Y,["#fff","#000"],L))};var D=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},R=s.hexNames=function(Y){var N={};for(var L in Y)Y.hasOwnProperty(L)&&(N[Y[L]]=L);return N}(D);function j(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function B(Y,N){(function(G){return typeof G=="string"&&G.indexOf(".")!=-1&&parseFloat(G)===1})(Y)&&(Y="100%");var L=function(G){return typeof G=="string"&&G.indexOf("%")!=-1}(Y);return Y=i(N,u(0,parseFloat(Y))),L&&(Y=parseInt(Y*N,10)/100),o.abs(Y-N)<1e-6?1:Y%N/parseFloat(N)}function X(Y){return i(1,u(0,Y))}function et(Y){return parseInt(Y,16)}function K(Y){return Y.length==1?"0"+Y:""+Y}function tt(Y){return Y<=1&&(Y=100*Y+"%"),Y}function J(Y){return o.round(255*parseFloat(Y)).toString(16)}function nt(Y){return et(Y)/255}var at,W,q,Q=(W="[\\s|\\(]+("+(at="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+at+")[,|\\s]+("+at+")\\s*\\)?",q="[\\s|\\(]+("+at+")[,|\\s]+("+at+")[,|\\s]+("+at+")[,|\\s]+("+at+")\\s*\\)?",{CSS_UNIT:new RegExp(at),rgb:new RegExp("rgb"+W),rgba:new RegExp("rgba"+q),hsl:new RegExp("hsl"+W),hsla:new RegExp("hsla"+q),hsv:new RegExp("hsv"+W),hsva:new RegExp("hsva"+q),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 it(Y){return!!Q.CSS_UNIT.exec(Y)}d.exports?d.exports=s:(a=function(){return s}.call(v,h,v,d))===void 0||(d.exports=a)})(Math)},function(d,v,h){var a=h(18);function o(t){var e=t.getCurrentPage();this.matrixCache=e.getMatrix().slice(0),this._zoom(t),e.updateStatus()}function n(t){t.getCurrentPage().updateMatrix(this.matrixCache)}a.registerCommand("zoomTo",{_zoom:function(t){t.getCurrentPage().zoom(Number(this.zoom))},queue:!1,execute:o,back:n}),a.registerCommand("zoomIn",{enable:function(t){var e=t.getCurrentPage(),r=e.getMaxZoom(),i=e.getMinZoom(),u=e.getZoom();return u=u&&(c=u),e.zoom(c)},queue:!1,execute:o,back:n,shortcutCodes:[["metaKey","="],["ctrlKey","="]]}),a.registerCommand("zoomOut",{enable:function(t){var e=t.getCurrentPage(),r=e.getMaxZoom(),i=e.getMinZoom(),u=e.getZoom();return u>i||u===r},_zoom:function(t){var e=t.getCurrentPage(),r=e.getZoom(),i=e.getMinZoom(),u=r-t.get("_command").zoomDelta;u<=i&&(u=i),e.zoom(u)},queue:!1,execute:o,back:n,shortcutCodes:[["metaKey","-"],["ctrlKey","-"]]}),a.registerCommand("autoZoom",{enable:function(){return!0},_zoom:function(t){t.getCurrentPage().autoZoom()},queue:!1,execute:o,back:n}),a.registerCommand("resetZoom",{enable:function(){return!0},_zoom:function(t){t.getCurrentPage().resetZoom()},queue:!1,execute:o,back:n,shortcutCodes:[["metaKey","0"],["ctrlKey","0"]]})},function(d,v,h){var a=h(18);a.registerCommand("collapseExpand",{getItem:function(o){var n=o.getCurrentPage(),t=n.getGraph();return this.itemId?t.find(this.itemId):n.getSelected()[0]},enable:function(o){var n=this.getItem(o);return n&&n.collapseExpand!==!1&&n.getChildren().length>0},execute:function(o){var n=o.getCurrentPage(),t=n.getGraph(),e=this.getItem(o);e.getModel().collapsed?(t.update(e,{collapsed:!1}),e.getInnerEdges&&e.getInnerEdges().forEach(function(r){r.update()}),this.toCollapsed=!1):(t.update(e,{collapsed:!0}),this.toCollapsed=!0),n.clearSelected(),n.setSelected(e,!0),this.executeTimes===1&&(this.itemId=e.id)},back:function(o){var n=o.getCurrentPage(),t=n.getGraph(),e=this.getItem(o);this.toCollapsed?t.update(e,{collapsed:!1}):t.update(e,{collapsed:!0}),n.clearSelected(),n.setSelected(e,!0)},shortcutCodes:[["metaKey","/"],["ctrlKey","/"]]}),a.registerCommand("collapse",{enable:function(o){var n=this.getItem(o);return n&&n.collapseExpand!==!1&&n.getChildren().length>0&&!n.getModel().collapsed}},"collapseExpand"),a.registerCommand("expand",{enable:function(o){var n=this.getItem(o);return n&&n.collapseExpand!==!1&&n.getChildren().length>0&&n.getModel().collapsed}},"collapseExpand")},function(d,v,h){function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=h(4),n={INIT:"_initGraph"};n.AUGMENT={_initGraph:function(){var t=this.get("graph"),e=new(this.get("graphConstructor"))(function(r){for(var i=1;i
',{position:"absolute",visibility:"hidden","z-index":"2",padding:"0px 2px 0px 0px",resize:"none",width:"auto",height:"auto",outline:"none",border:"1px solid #1890FF","transform-origin":"left top","max-width":"320px",background:"white","box-sizing":"content-box"});t.getGraphContainer().appendChild(e),e.on("blur",function(r){r.stopPropagation(),!t.destroyed&&n.endEditLabel()}),e.on("keydown",function(r){r.stopPropagation();var i=a.getKeyboradKey(r);(r.metaKey&&i==="s"||r.ctrlKey&&i==="s")&&r.preventDefault(),i!=="Enter"&&i!=="Escape"||n.endEditLabel()}),this.set("labelTextArea",e),t.on("beforeviewportchange",function(){e.focusItem&&n.setLabelEditorBeginPosition(e.focusItem)})}},_getLabelTextAreaBox:function(n,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0,0];t&&n.attr("text",t);var r=this.getGraph().getRootGroup(),i=a.getBBox(n,r);return{minX:i.minX-e[1],minY:i.minY-e[0],maxX:i.maxX+e[1],maxY:i.maxY+e[0]}},setLabelEditorBeginPosition:function(n){var t=this.get("labelTextArea"),e=n.getLabel();if(e){var r=this._getLabelTextAreaBox(e),i=e.attr("lineHeight"),u=e.attr("fontSize"),c={x:r.minX,y:r.minY-i/4+u/4-1,width:r.maxX-r.minX,height:r.maxY-r.minY};t.css({top:c.y+"px",left:c.x+"px"}),t.labelPoint=c}else{var s=this.getGraph().getRootGroup(),l=n.getKeyShape(),f=a.getBBox(l,s),g={x:f.minY+(f.maxY-f.minY-t.height())/2,y:(f.minX+f.maxX)/2};t.css({top:g.x+"px",left:g.y+"px"}),t.labelPoint=g}},beginEditLabel:function(n){var t=this.get("labelTextArea"),e=this.getGraph();if(a.isString(n)&&(n=e.find(n)),n&&!n.destroyed&&t){this.setSignal("preventWheelPan",!0);var r=n.getModel(),i=n.getLabel(),u=e.getZoom();if(t.focusItem=n,i){var c=i.attr("lineHeight"),s=this._getLabelTextAreaBox(i),l=(s.maxX-s.minX)/u,f=(s.maxY-s.minY+c/4)/u;t.innerHTML=r.label,t.innerHTML=r.label,t.css({"min-width":l+"px","min-height":f+"px",visibility:"visible","font-family":i.attr("fontFamily"),"line-height":c+"px","font-size":i.attr("fontSize")+"px",transform:"scale("+u+")"})}else t.innerHTML="",t.css({"min-width":"auto","min-height":"auto"});this.setLabelEditorBeginPosition(n),t.css({visibility:"visible"}),t.focus(),document.execCommand("selectAll",!1,null)}},endEditLabel:function(){var n=this.get("labelTextArea");if(this.setSignal("preventWheelPan",!1),n){var t=n.focusItem;if(t){var e=t.getModel(),r=this.editor;e.label!==n.textContent&&r.executeCommand("update",{action:"updateLabel",itemId:t.id,updateModel:{label:n.textContent}}),n.hide(),n.focusItem=void 0,this.focusGraphWrapper()}}}},d.exports=o},function(d,v){var h={AUGMENT:{updateStatus:function(){var a,o=this.getSelected();o.length===0?a="canvas-selected":o.length===1?o[0].isNode?a="node-selected":o[0].isEdge?a="edge-selected":o[0].isGroup&&(a="group-selected"):a="multi-selected",this.emit("statuschange",{status:a})}}};d.exports=h},function(d,v,h){h(45),h(46),h(47),h(48),h(49),h(50),h(51),h(52),h(53),h(54),h(55),h(56),h(57),h(58),h(59),h(60),h(61),h(62)},function(d,v,h){var a=h(3),o=h(4);a.registerBehaviour("panBlank",o.getPanCanvasBehaviour(!0))},function(d,v,h){h(3).registerBehaviour("hoverButton",function(a){a.getGraph().behaviourOn("mouseenter",function(o){a.getSignal("panningItem")||o.shape&&o.shape.isButton&&a.css({cursor:"pointer"})})})},function(d,v,h){var a=h(3),o=h(4);a.registerBehaviour("panCanvas",o.getPanCanvasBehaviour())},function(d,v,h){var a=h(3),o=h(14),n=h(4);a.registerBehaviour("wheelChangeViewport",function(t){var e,r=t.getGraph();r.behaviourOn("wheel",function(i){i.domEvent.preventDefault()}),r.behaviourOn("wheel",n.throttle(function(i){if(!t.getSignal("preventWheelPan")){var u=i.domEvent,c=t.getSignal("wheelZoom");if(e||t.setCapture(!1),c){var s=u.wheelDelta;if(Math.abs(s)>10){var l=r.getMatrix()[0];s>0?r.zoom({x:i.x,y:i.y},1.05*l):r.zoom({x:i.x,y:i.y},l*(1/1.05))}}else{var f=[],g=r.getMatrix();n.mat3.translate(f,g,[u.wheelDeltaX*o.wheelPanRatio,u.wheelDeltaY*o.wheelPanRatio]),t.translateLimt(f)&&r.updateMatrix(f)}e&&clearTimeout(e),e=setTimeout(function(){t.setCapture(!0),e=void 0},50)}},16))})},function(d,v,h){h(3).registerBehaviour("processPanItem",function(a){var o=a.getGraph();o.behaviourOn("mousemove",function(n){var t=a.get("panItemDelegation");if(t){var e=a.get("panItemStartPoint"),r=a.get("panItemStartBox"),i=n.x-e.x,u=n.y-e.y,c=a.align({x:r.minX+i,y:r.minY+u},{width:r.width,height:r.height});t.attr({x:c.x,y:c.y}),o.emit("itempanning",n),o.draw()}})})},function(d,v,h){h(3).registerBehaviour("startPanItem",function(a){var o=a.getGraph(),n=o.getRootGroup();o.behaviourOn("dragstart",function(t){if(t.button!==2&&t.item&&(t.item.isNode||t.item.isGroup)){var e,r=t.item;if((e=(e=r.isSelected?a.getSelected():[r]).filter(function(c){return c.isNode||c.isGroup}))[0]&&e[0].dragable!==!1){o.emit("beforepanitem",{items:e}),o.emit("beforeshowdelegation",{items:e});var i=a.getDelegation(e,n),u=i.getBBox();a.setSignal("panningItem",!0),a.set("panItems",e),a.set("panItemDelegation",i),a.set("panItemStartBox",u),a.set("panItemStartPoint",{x:t.x,y:t.y}),o.draw()}}})})},function(d,v,h){h(3).registerBehaviour("endPanItem",function(a){var o=a.getGraph();o.behaviourOn("panitemend",function(){var n=a.get("panItemDelegation");n&&(n.remove(),o.draw()),a.setSignal("panningItem",!1),a.set("panItemDelegation",void 0),a.set("panItemStartPoint",void 0),a.set("panItemStartBox",void 0),a.set("panItems",void 0)}),o.behaviourOn("canvas:mouseleave",function(){a.get("panItems")&&(a.clearAlignLine(),o.emit("panitemend"))})})},function(d,v,h){h(3).registerBehaviour("dblclickItemEditLabel",function(a){a.getGraph().behaviourOn("node:dblclick",function(o){o.shape&&!o.shape.isButton&&a.beginEditLabel(o.item)})})},function(d,v,h){h(3).registerBehaviour("clickCanvasSelected",function(a){var o=a.getGraph();o.behaviourOn("click",function(n){n.shape||(a.clearSelected(),a.clearActived(),a.updateStatus())}),o.behaviourOn("contextmenu",function(n){n.shape||(a.clearSelected(),a.clearActived(),a.updateStatus())})})},function(d,v,h){h(3).registerBehaviour("clickCollapsedButton",function(a){var o=a.getGraph();o.behaviourOn("click",function(n){var t=n.item,e=n.shape;if(t&&e&&e.isCollapsedButton){var r=a.editor;r?r.executeCommand("collapseExpand",{itemId:t.id}):o.update(t,{collapsed:!0})}})})},function(d,v,h){h(3).registerBehaviour("clickEdgeSelected",function(a){a.getGraph().behaviourOn("edge:click",function(o){a.get("multiSelectable")&&a.getSignal("shiftKeyDown")===!0||(a.clearActived(),a.clearSelected()),a.setSelected(o.item.id,!0)})})},function(d,v,h){h(3).registerBehaviour("clickExpandedButton",function(a){var o=a.getGraph();o.behaviourOn("click",function(n){var t=n.item,e=n.shape;if(t&&e&&e.isExpandedButton){var r=a.editor;r?r.executeCommand("collapseExpand",{itemId:t.id}):o.update(t,{collapsed:!1})}})})},function(d,v,h){h(3).registerBehaviour("clickGroupSelected",function(a){a.getGraph().behaviourOn("group:click",function(o){a.get("multiSelectable")&&a.getSignal("shiftKeyDown")===!0||(a.clearActived(),a.clearSelected()),a.setSelected(o.item.id,!0)})})},function(d,v,h){h(3).registerBehaviour("clickNodeSelected",function(a){a.getGraph().behaviourOn("node:click",function(o){a.get("multiSelectable")&&a.getSignal("shiftKeyDown")===!0||(a.clearActived(),a.clearSelected()),a.setSelected(o.item.id,!0)})})},function(d,v,h){h(3).registerBehaviour("hoverNodeActived",function(a){var o,n=a.getGraph();n.behaviourOn("node:mouseenter",function(t){t.item.getShapeObj().panAble!==!1&&a.css({cursor:"move"}),a.getSignal("panningItem")||a.getSignal("dragEdge")||t.item&&t.item.isSelected||(o=t.item,a.setActived(o,!0))}),n.behaviourOn("node:mouseleave",function(t){var e=t.toShape;o&&(e&&e.isAnchor&&e.getItem()===o||a.getSignal("dragEdge")||(o.isSelected||a.setActived(o,!1),o=void 0))})})},function(d,v,h){h(3).registerBehaviour("hoverGroupActived",function(a){var o=a.getGraph();o.behaviourOn("mouseenter",function(n){a.getSignal("panningItem")||n.item&&n.item.isSelected||a.getSignal("dragEdge")||n.shape&&n.shape.isGroupKeyShape&&(a.css({cursor:"move"}),a.setActived(n.item,!0))}),o.behaviourOn("group:mouseleave",function(n){n.item.isActived&&!n.item.isSelected&&a.setActived(n.item,!1)})})},function(d,v,h){h(3).registerBehaviour("hoverEdgeActived",function(a){var o=a.getGraph();o.behaviourOn("edge:mouseenter",function(n){a.getSignal("panningItem")||n.item&&n.item.isSelected||a.getSignal("dragEdge")||a.setActived(n.item,!0)}),o.behaviourOn("edge:mouseleave",function(n){a.setActived(n.item,!1)})})},function(d,v,h){h(3).registerBehaviour("keydownCmdWheelZoom",function(a){var o=a.getGraph();o.behaviourOn("keydown",function(n){n.domEvent.keyCode===91&&a.setSignal("wheelZoom",!0)}),o.behaviourOn("keyup",function(n){n.domEvent.keyCode===91&&a.setSignal("wheelZoom",!1)})})},function(d,v,h){var a=h(22);d.exports={dragingEdgeEndPoint:function(o){var n=o.endPointType,t=o.edgeModel,e=o.graph,r=o.delegation,i=o.startPoint,u=o.ev,c=o.source,s=o.target,l=u.item,f=n==="source"?[u,i]:[i,u];l&&(n==="source"?s=l:c=l);var g=e.getShapeObj("edge",t).getPathByPoints({points:f,source:c,target:s});r.attr("path",g),e.draw()},panGroup:function(o,n,t,e){var r=o.getModel();a.traverseTree(o,function(i){if(i.type==="node"){var u=i.getModel();e.update(i,{x:u.x+n,y:u.y+t})}o.getCrossEdges&&o.getCrossEdges().forEach(function(c){c.update()})},function(i){return i.type==="group"?i.getChildren():[]}),e.update(o,{x:r.x+n,y:r.y+t})},dropUpdateEdge:function(o){var n=o.ev,t=o.endPointType,e=o.model,r=o.diagram,i=r.get("noEndEdge"),u=r.get("linkAnchor"),c=r.get("linkNode"),s=n.item,l=n.shape,f=n.x,g=n.y;if(r.getGraph().emit("beforedropedge"),l){if(u&&l.isAnchor&&l.hasHotspot){var y=l,m=y.getItem();return t==="target"?(e.target=m.id,e.targetAnchor=y.getIndex(),!0):(e.source=m.id,e.sourceAnchor=y.getIndex(),!0)}if(c&&s&&s.isNode)return t==="target"?(e.target=s.id,!0):(e.source=s.id,!0)}else if(i)return t==="target"?(e.target={x:f,y:g},!0):(e.source={x:f,y:g},!0);return!1}}},function(d,v){d.exports={rectRectCrossAlgorithm:function(h,a){var o=Math.max(h.minX,a.minX),n=Math.max(h.minY,a.minY),t=Math.min(h.maxX,a.maxX),e=Math.min(h.maxY,a.maxY);return o>t||n>e},euclideanDistance:{pointPoint:function(h,a){var o=Math.pow(h.x-a.x,2)+Math.pow(h.y-a.y,2);return Math.sqrt(o)}}}},function(d,v,h){var a={},o=h(2);a.AUGMENT={changeAddEdgeModel:function(n){this.set("addEdgeModel",n)},cancelAdd:function(){this.set("addType",void 0),this.set("addModel",void 0),this.changeMode("default")},beginAdd:function(n,t){this.set("addType",n),this.set("addModel",t),this.changeMode("add")},endAdd:function(){this.set("addType",void 0),this.set("addModel",void 0),this.changeMode("default")},delete:function(){var n=this.getSelected(),t=this.get("_graph");o.each(n,function(e){t.remove(e)})},toBack:function(){var n=this.getSelected(),t=this.get("_graph");n.sort(function(e,r){var i=e.getGraphicGroup(),u=r.getGraphicGroup();return o.getIndex(u)-o.getIndex(i)}),n.forEach(function(e){t.toBack(e)})},toFront:function(){var n=this.getSelected(),t=this.get("_graph");n.sort(function(e,r){var i=e.getGraphicGroup(),u=r.getGraphicGroup();return o.getIndex(i)-o.getIndex(u)}),n.forEach(function(e){t.toFront(e)})},addGroup:function(n){var t,e=this.get("_graph"),r=this.getSelected(),i=!0;if(r.length!==0){n||(n={label:"\u65B0\u5EFA\u5206\u7EC4"}),o.setId(n),e.add("group",n),e.toFront(n.id);var u=e.find(n.id);if(r.forEach(function(s){var l=s.getParent();l&&(t?t!==l&&(i=!1):t=l)}),i){t&&(n.parent=t.getModel().id),r.forEach(function(s){e.update(s,{parent:n.id})});var c=u.getInnerEdges();u.deepEach(function(s){e.toFront(s)}),c.forEach(function(s){e.toFront(s)})}else console.warn("add group elements must have the same parent")}},unGroup:function(){var n=this.get("_graph"),t=this.getSelected(),e=t[0];t.length===1&&o.isGroup(e)&&(e.getChildren().forEach(function(r){n.update(r,{parent:void 0}),r.collapsedParent||r.show(),r.isGroup&&r.deepEach(function(i){i.collapsedParent||i.show()})}),n.remove(e))},newGroup:function(n){this.addGroup(n)}},d.exports=a},function(d,v,h){function a(e,r,i){return r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}var o=h(67),n=h(2),t={CFG:{anchor:{}},INIT:"_initAnchor"};t.AUGMENT={_initAnchor:function(){var e=this.get("anchor"),r=this.get("_graph");if(e){var i=new o(function(u){for(var c=1;c + `},bindEvent:function(m,x){var w=this,M=x.getGraph(),S=M.getRootGroup();return m.setAttribute("draggable","true"),[u.addEventListener(m,"dragstart",function(){var O=w.item,A=function(C){for(var k=1;ks.minX&&m.minY>s.minY&&m.maxXl.width/2+o.orbitGap/g&&(t.hideOrbit(),e=void 0),e&&t.layoutOrbit(e,{x:c,y:s})}})})},function(d,v,h){var a=h(11);h(96),d.exports=a},function(d,v,h){h(97),h(98),h(99),h(100),h(101)},function(d,v,h){var a=h(11);a.registerNode("flow-base",{}),a.registerNode("flow-html",{},["html"]),a.registerNode("flow-rect",{},"flow-base"),a.registerNode("flow-capsule",{},"capsule"),a.registerNode("flow-circle",{},"circle"),a.registerNode("flow-rhombus",{},"rhombus")},function(d,v,h){h(11).registerEdge("flow-base",{})},function(d,v,h){var a=h(19),o=h(11);function n(u,c,s,l){var f=l?l/2:30,g=l;if(u<=c&&c<=s||u>=c&&c>=s){var y=(s-c)/2,m=Math.abs(y);if(y===0)return u===c?0:(c-u)/Math.abs(c-u)*f;if(m>g){var x=y/m*g;return Math.abs(x)g&&(w=g),wu?w:-w}function t(u,c,s,l){var f,g,y=u.bbox,m=function(w,M){var S=Math.abs(w.x-M.centerX),O=Math.abs(w.y-M.centerY);return S/M.width>O/M.height}(c,y);f=g=0;var x=Math.min(y.height,y.width);return l&&l.bbox&&(x=Math.min(x,l.bbox.height,l.bbox.width)),m?f=n(y.centerX,c.x,s.x,x):g=n(y.centerY,c.y,s.y,x),{x:c.x+f,y:c.y+g}}var e=.1;function r(u,c){var s=u.x,l=u.y,f=c.x,g=c.y;return{x:s+(f-s)*e,y:l+(g-l)*e}}function i(u,c,s){var l=u[0],f=u[u.length-1],g=["M",l.x,l.y],y=function(w,M,S,O){return[S&&S.bbox?t(S,w,M,O):r(w,M),O&&O.bbox?t(O,M,w,S):r(M,w)]}(l,f,c,s),m=["C"],x=[g];return a.each(y,function(w){m.push(w.x,w.y)}),m.push(f.x,f.y),x.push(m),x}o.registerEdge("flow-smooth",{getPathByPoints:function(u){return i(u.points,u.source,u.target)}},"flow-edge")},function(d,v,h){function a(C){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(C)}function o(C,k){return function(T){if(Array.isArray(T))return T}(C)||function(T,I){var D=[],R=!0,j=!1,B=void 0;try{for(var X,et=T[Symbol.iterator]();!(R=(X=et.next()).done)&&(D.push(X.value),!I||D.length!==I);R=!0);}catch(K){j=!0,B=K}finally{try{R||et.return==null||et.return()}finally{if(j)throw B}}return D}(C,k)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var n=h(19),t=h(11),e=16,r=5;function i(C,k){var T=Math.min(C.minX,k.minX),I=Math.min(C.minY,k.minY),D=Math.max(C.maxX,k.maxX),R=Math.max(C.maxY,k.maxY);return{centerX:(T+D)/2,centerY:(I+R)/2,minX:T,minY:I,maxX:D,maxY:R,height:R-I,width:D-T}}function u(C,k){return 2*Math.abs(C.centerX-k.centerX)R/I.height}(k,C)?{x:k.x>C.centerX?C.maxX:C.minX,y:k.y}:{x:k.x,y:k.y>C.centerY?C.maxY:C.minY}}function f(C){var k=C.minX,T=C.minY,I=C.maxX,D=C.maxY;return[{x:k,y:T},{x:I,y:T},{x:I,y:D},{x:k,y:D}]}function g(C,k){var T=C.x,I=C.y;return Tk.maxX||Ik.maxY}function y(C,k,T,I){var D=k.x-C.x,R=k.y-C.y,j=I.x-T.x,B=I.y-T.y,X=(-R*(C.x-T.x)+D*(C.y-T.y))/(-j*R+D*B),et=(j*(C.y-T.y)-B*(C.x-T.x))/(-j*R+D*B);return X>=0&&X<=1&&et>=0&&et<=1}function m(C,k,T){if(T.width===T.height===0)return!1;var I=o(f(T),4),D=I[0],R=I[1],j=I[2],B=I[3];return y(C,k,D,R)||y(C,k,D,B)||y(C,k,R,j)||y(C,k,j,B)}function x(C){return C=M(C)}function w(C,k){return[C,{x:C.x,y:k.y},k]}function M(C){var k=[],T={};return C.forEach(function(I){var D=I.id="".concat(I.x,"-").concat(I.y);T[D]=I}),n.each(T,function(I){k.push(I)}),k}function S(C,k){return Math.abs(C.x-k.x)+Math.abs(C.y-k.y)}function O(C,k,T,I,D){return S(C,k)+S(C,T)+function(R,j){var B=0;return j.forEach(function(X){X&&(R.x===X.x&&(B+=-2),R.y===X.y&&(B+=-2))}),B}(C,[k,T,I,D])}function A(C,k,T,I,D,R,j){var B=[],X=[k],et={},K={},tt={};K[k.id]=0,tt[k.id]=O(k,T,k);var J={};C.forEach(function(W){J[W.id]=W});for(var nt=function(){var W,q,Q,it=void 0,Y=1/0;if(X.forEach(function(L){tt[L.id]4&&arguments[4]!==void 0?arguments[4]:0;G.unshift(H[$]),F[$]&&F[$]!==$&&st<=100&&L(G,H,F,F[$],st+1)}(N,J,et,T.id),{v:N}}q=it,(Q=(W=X).indexOf(q))>-1&&W.splice(Q,1),B.push(it),function(L,G,H,F){var $=[];return L.forEach(function(st){st!==G&&(st.x!==G.x&&st.y!==G.y||m(st,G,H)||m(st,G,F)||$.push(st))}),M($)}(C,it,I,D).forEach(function(L){if(B.indexOf(L)===-1){X.indexOf(L)===-1&&X.push(L);var G=tt[it.id]+S(it,L);K[L.id]&&G>=K[L.id]||(et[L.id]=it.id,K[L.id]=G,tt[L.id]=K[L.id]+O(L,T,k,R,j))}})};X.length;){var at=nt();if(a(at)==="object")return at.v}return console.error("cannot find path: ",C,k,T),[k,T]}function E(C,k,T,I,D){var R=T&&T.bbox?T.bbox:c(C),j=I&&I.bbox?I.bbox:c(k);if(u(R,j))return x(w(C,k));var B=s(R,D),X=s(j,D);if(u(B,X))return x(w(C,k));var et=l(B,C),K=l(X,k),tt=function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],it=[],Y=[];Q.forEach(function(F){it.push(F.x),Y.push(F.y)});var N=Math.min.apply(Math,it),L=Math.max.apply(Math,it),G=Math.min.apply(Math,Y),H=Math.max.apply(Math,Y);return{centerX:(N+L)/2,centerY:(G+H)/2,maxX:L,maxY:H,minX:N,minY:G,height:H-G,width:L-N}}([et,K]),J=(i(B,X),i(B,tt)),nt=i(X,tt),at=[];at=(at=at.concat(f(J))).concat(f(nt));var W={x:(C.x+k.x)/2,y:(C.y+k.y)/2};[tt,J,nt].forEach(function(Q){at=at.concat(function(it,Y){return function(N,L){return LN.maxX?[]:[{x:L,y:N.minY},{x:L,y:N.maxY}]}(it,Y.x).concat(function(N,L){return LN.maxY?[]:[{x:N.minX,y:L},{x:N.maxX,y:L}]}(it,Y.y))}(Q,W).filter(function(it){return g(it,B)&&g(it,X)}))}),[{x:et.x,y:K.y},{x:K.x,y:et.y}].forEach(function(Q){g(Q,B)&&g(Q,X)&&at.push(Q)}),at.unshift(et),at.push(K);var q=A(at=M(at),et,K,R,j,C,k);return q.unshift(C),q.push(k),x(q)}function _(C,k){var T=[],I=C[0];return T.push("M".concat(I.x," ").concat(I.y)),C.forEach(function(D,R){var j=C[R+1],B=C[R+2];if(j&&B)if(function(tt,J,nt){return!(tt.x===J.x===nt.x||tt.y===J.y===nt.y)}(D,j,B)){var X=o(function(tt,J,nt,at){var W=S(tt,J),q=S(nt,J);return W0&&c.collapsed&&this.drawExpandedButton(u)},debugDrawLayoutPoint:function(u){var c=u.getModel();u.getGraphicGroup().addShape("circle",{attrs:{x:c.x,y:c.y,r:5,fill:"red"}})},drawExpandedButton:function(u){var c=u.getKeyShape().getBBox(),s=u.getGraphicGroup().addGroup(),l=s.addShape("path",{attrs:a({path:t.getRectPath(0,0,16,7,3)},r)}),f=l.getBBox(),g=t.getMindNodeSide(u),y=this.getButtonPositon(c,f,g),m={fill:"white",r:1};s.addShape("circle",{attrs:a({},m,{x:4,y:3.5}),capture:!1}),s.addShape("circle",{attrs:a({},m,{x:8,y:3.5}),capture:!1}),s.addShape("circle",{attrs:a({},m,{x:12,y:3.5}),capture:!1}),l.attr("lineAppendWidth",20),s.translate(y.x,y.y),l.isExpandedButton=!0,l.isButton=!0},drawCollapsedButton:function(u){var c=u.getKeyShape().getBBox(),s=u.getGraphicGroup().addShape("path",{attrs:a({path:t.getCollapsedButtonPath()},i)}),l=s.getBBox(),f=t.getMindNodeSide(u),g=this.getButtonPositon(c,l,f);s.translate(g.x,g.y),s.isCollapsedButton=!0,s.isButton=!0},getButtonPositon:function(u,c,s){return s==="right"?{x:u.maxX+2,y:u.maxY-(c.maxY-c.minY)/2}:{x:u.minX-(c.maxX-c.minX)-2,y:u.maxY-(c.maxY-c.minY)/2}},getLabel:function(u){return u.getModel().label},getPadding:function(){return[4,8,4,8]},getSize:function(u){var c=u.getModel(),s=u.getGraphicGroup(),l=c.size;if(c.size){if(t.isArray(l))return l;if(t.isNumber(l))return[l,l]}var f=s.findByClass("label")[0],g=this.getPadding(u),y=f.getBBox();return[y.width+g[1]+g[3],y.height+g[0]+g[2]]},getPath:function(u){var c=this.getSize(u),s=this.getStyle(u);return t.getRectPath(-c[0]/2,-c[1]/2+this.dy,c[0],c[1],s.radius)},drawLabel:function(u){var c=u.getGraphicGroup(),s=this.getLabel(u),l=this.getLabelStyle(u);s||(s=" ");var f=t.mix(!0,{},e,l,{x:0,y:0});t.isObject(s)?t.mix(f,s):f.text=s;var g=c.addShape("text",{class:"label",attrs:f});return this.adjustLabelText(g),this.adjustLabelPosition(u,g),g},adjustLabelText:function(u){var c=u.attr("text"),s=u.getBBox();if(s.maxX-s.minX>400){var l=u.attr("font");c=t.getLabelTextByTextLineWidth(c,l),u.attr("text",c)}},adjustLabelPosition:function(u,c){var s=this.getSize(u),l=this.getPadding(),f=s[0],g=c.getBBox();c.attr({x:-f/2+l[3],y:-g.height/2+this.dy})},getLabelStyle:function(){return{fill:"rgba(38,38,38,0.85)",lineHeight:18,fontSize:12}},getStyle:function(){return{fill:"#ccc",fillOpacity:0,radius:4,lineWidth:2}},getActivedStyle:function(){return{stroke:"#44C0FF",lineWidth:2}},getSelectedStyle:function(){return{stroke:"#1AA7EE",lineWidth:2}},anchor:[[0,1],[1,1]]})},function(d,v,h){h(8).registerNode("mind-first-sub",{dy:0,getPadding:function(){return[6,12,8,12]},getLabelStyle:function(){return{fill:"rgba(38,38,38,0.85)",fontWeight:500,fontSize:14,lineHeight:20}}})},function(d,v,h){h(8).registerNode("mind-second-sub",{dy:0,getPadding:function(){return[8,4,8,4]},getLabelStyle:function(){return{fill:"rgba(38,38,38,0.85)",fontSize:12,lineHeight:20}}})},function(d,v,h){var a=h(8),o=h(10);a.registerNode("mind-root",{adjustLabelPosition:function(n,t){var e=t.getBBox();t.attr({x:-e.width/2,y:-e.height/2-1})},getPath:function(n){var t=this.getSize(n),e=this.getStyle(n);return o.getRectPath(-t[0]/2,-t[1]/2,t[0],t[1],e.radius)},getButtonPositon:function(n,t,e){return e==="right"?{x:n.maxX+2,y:(n.maxY+n.minY)/2-(t.maxY-t.minY)/2}:{x:n.minX-(t.maxX-t.minX)-2,y:(n.maxY+n.minY)/2-(t.maxY-t.minY)/2}},getPadding:function(){return o.toAllPadding([12,24])},getStyle:function(){return{fill:"#587EF7",stroke:"#587EF7",fillOpacity:1,radius:4}},getLabelStyle:function(){return{fontSize:20,fill:"white",lineHeight:28}},drawExpandedButton:function(){},drawCollapsedButton:function(){},panAble:!1,anchor:[[.45,.5],[.55,.5]]},"mind-first-sub")},function(d,v,h){var a=h(8),o=h(10);a.registerNode("mind-placeholder",{afterDraw:function(n){n.getKeyShape().isPlaceholder=!0},getPath:function(n){var t,e=n.getModel().parentModel,r=this.getStyle(n),i=0;return e.hierarchy<=2?t=28:(t=20,i=4),o.getRectPath(-27.5,-t/2+i,55,t,r.radius)},getStyle:function(){return{fill:"#91D5FF",radius:4,lineWidth:3}},drawExpandedButton:function(){},drawCollapsedButton:function(){},anchor:function(){return[[0,1],[1,1]]}})},function(d,v,h){h(8).registerEdge("mind-edge",{getEdetal:function(a){return a.children&&a.children.length>0&&!a.collapsed?a.hierarchy===2?24:18:0},getPath:function(a){var o=a.getPoints(),n=a.getSource(),t=a.getTarget(),e=n.getBBox(),r=t.getBBox(),i=t.getModel(),u=14,c=4;if(i.hierarchy===2&&(u=66,c=30),o[0].y===o[1].y){var s=i.hierarchy===3?24:18,l=this.getEdetal(i);return e.centerX=3){var f=i.hierarchy===3?24:18,g=this.getEdetal(i);if(e.centerX2?"left":"right",nth:s?i.getNth(s):void 0})}a.registerCommand("append",{enable:function(t){var e=t.getCurrentPage(),r=e.getSelected();return e.isMind&&r.length===1},getItem:function(t){var e=t.getCurrentPage(),r=e.getGraph();return this.selectedItemId?r.find(this.selectedItemId):e.getSelected()[0]},execute:function(t){var e,r=t.getCurrentPage(),i=r.getGraph(),u=r.getRoot(),c=this.getItem(t),s=c.getModel(),l=s.hierarchy,f=c.getParent();if(c.isRoot)e=n(r,c,this.addItemId);else{var g=i.getNth(c);e=i.add("node",{id:this.addItemId,parent:f.id,side:l===2&&u.children.length===3?"left":s.side,label:"\u65B0\u5EFA\u8282\u70B9",nth:s.side==="left"&&l===2?g:g+1})}r.clearSelected(),r.clearActived(),r.setSelected(e,!0),this.executeTimes===1&&(this.selectedItemId=c.id,this.addItemId=e.id,r.beginEditLabel(e))},back:function(t){var e=t.getCurrentPage();e.getGraph().remove(this.addItemId),e.clearSelected(),e.clearActived(),e.setSelected(this.selectedItemId,!0)},shortcutCodes:["Enter"]}),a.registerCommand("appendChild",{enable:function(t){var e=t.getCurrentPage(),r=e.getSelected();return e.isMind&&r.length>0},getItem:function(t){var e=t.getCurrentPage(),r=e.getGraph();return this.selectedItemId?r.find(this.selectedItemId):e.getSelected()[0]},execute:function(t){var e,r=t.getCurrentPage(),i=r.getGraph(),u=this.getItem(t);e=u.isRoot?n(r,u,this.addItemId):i.add("node",{id:this.addItemId,parent:u.id,label:"\u65B0\u5EFA\u8282\u70B9"}),r.clearSelected(),r.clearActived(),r.setSelected(e,!0),this.executeTimes===1&&(this.selectedItemId=u.id,this.addItemId=e.id,r.beginEditLabel(e))},back:function(t){var e=t.getCurrentPage();e.getGraph().remove(this.addItemId),e.clearSelected(),e.clearActived(),e.setSelected(this.selectedItemId,!0)},shortcutCodes:["Tab"]}),a.registerCommand("moveMindNode",{enable:function(t){var e=t.getCurrentPage(),r=e.get("panItems");return e.isMind&&r&&r.length>0},execute:function(t){var e=t.getCurrentPage(),r=e.getGraph(),i=this.newParentId,u=this.newNth,c=this.newSide,s=o.clone(this.model);delete s.shape,delete s.side,r.remove(s.id),o.mix(s,{parent:i,nth:u,side:c});var l=r.add("node",s);e.clearSelected(),e.setSelected(l,!0)},back:function(t){var e=t.getCurrentPage(),r=e.getGraph(),i=this.originParentId,u=this.originNth,c=this.originSide,s=o.clone(this.model);delete s.shape,delete s.side,r.remove(s.id),o.mix(s,{parent:i,nth:u,side:c});var l=r.add("node",s);e.clearSelected(),e.setSelected(l,!0)}})},function(d,v,h){function a(c){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(c)}function o(c,s){for(var l=0;ly||c>m)&&(a.hideArrowController(),o=void 0)}})})},function(d,v,h){h(128),h(12).registerNode("bpmn-base",{anchor:null})},function(d,v,h){"use strict";h.r(v);var a=h(12),o=h.n(a),n=h(0);function t(r){var i=r.bbox,u=r.shape,c=u===void 0?"ROUNDED_RECT":u,s=r.point,l=r.vertical;l=!!l;var f={true:"x",false:"y"},g={true:"minX",false:"minY"},y={true:"maxX",false:"maxY"};switch(c){case"ROUNDED_RECT":if(s[f[l]]>=i[g[l]]+4&&s[f[l]]<=i[y[l]]-4)return{added:void 0,joint:{x:l?s.x:s.x>i.centerX?i.maxX:i.minX,y:l?s.y>i.centerY?i.maxY:i.minY:s.y}};if(s[f[l]]>=i[g[l]]&&s[f[l]]i.centerX?i.maxX-4+Math.sqrt(16-Math.pow(i.minY+4-s.y,2)):i.minX+4-Math.sqrt(16-Math.pow(i.minY+4-s.y,2)),y:l?s.y>i.centerY?i.maxY-4+Math.sqrt(16-Math.pow(i.minX+4-s.x,2)):i.minY+4-Math.sqrt(16-Math.pow(i.minX+4-s.x,2)):s.y}};if(s[f[l]]>=i[y[l]]-4&&s[f[l]]<=i[y[l]])return{added:void 0,joint:{x:l?s.x:s.x>i.centerX?i.maxX-4+Math.sqrt(16-Math.pow(s.y-i.maxY+4,2)):i.minX+4-Math.sqrt(16-Math.pow(s.y-i.maxY+4,2)),y:l?s.y>i.centerY?i.maxY-4+Math.sqrt(16-Math.pow(s.x-i.maxX+4,2)):i.minY+4-Math.sqrt(16-Math.pow(s.x-i.maxX+4,2)):s.y}};break;case"CIRCLE":if(s[f[l]]>=i[g[l]]&&s[f[l]]<=i[y[l]])return{added:void 0,joint:{x:l?s.x:s.x>i.centerX?i.centerX+Math.sqrt(16-Math.pow(i.centerY-s.y)):i.centerX-Math.sqrt(16-Math.pow(i.centerY-s.y)),y:l?s.y>i.centerY?i.centerY+Math.sqrt(16-Math.pow(i.centerX-s.x)):i.centerY-Math.sqrt(16-Math.pow(i.centerX-s.x)):s.y}};break;case"RHOMEBUS":if(s[f[l]]>=i[g[l]]&&s[f[l]]<=i[y[l]])return{added:void 0,joint:{x:l?s.x:s.x>i.centerX?s.yi.centerY?s.x=i[g[l]]&&s[f[l]]<=i[y[l]])return{added:void 0,joint:{x:l?s.x:s.x>i.centerX?i.maxX:i.minX,y:l?s.y>i.centerY?i.maxY:i.minY:s.y}}}return l?s.x=150&&(u.helpLine=void 0,u.helpLineTime=void 0),u.helpLine&&i.addShape("path",{attrs:{path:[["M",u.helpLine[0].x,u.helpLine[0].y],["L",u.helpLine[1].x,u.helpLine[1].y]],lineAppendWidth:8,lineWidth:1,strokeOpacity:.92,stroke:"rgba(255,139,48)"}}),g}})}])})},87626:function(U,P,b){"use strict";b.d(P,{Tr:function(){return Qt},oP:function(){return ve},mY:function(){return Ut},xV:function(){return Lt},JF:function(){return me},ff:function(){return Vt},G8:function(){return de},Zw:function(){return mt},Cc:function(){return Kt},_7:function(){return ge},ck:function(){return Bt},qZ:function(){return le},qU:function(){return wt},CH:function(){return Ot},N5:function(){return oe},eA:function(){return $t},Ko:function(){return pe},Fn:function(){return se},Kk:function(){return fe},o8:function(){return qt},ZP:function(){return Pe},Yn:function(){return ye}});var p=b(21261),d=b(6610),v=b(5991),h=b(46070),a=b(77608),o=b(10379),n=b(42328),t=b.n(n),e=b(7654),r="J_FlowContainer",i="J_MindContainer",u="J_KoniContainer",c="J_ToolbarContainer",s="J_MinimapContainer",l="J_ContextMenuContainer",f="Flow",g="Mind",y="Koni",m="beforeAddPage",x="afterAddPage",w="canvas-selected",M="node-selected",S="edge-selected",O="group-selected",A="multi-selected",E={click:"Click",contextmenu:"ContextMenu",dblclick:"DoubleClick",drag:"Drag",dragend:"DragEnd",dragenter:"DragEnter",dragleave:"DragLeave",dragstart:"DragStart",drop:"Drop",mousedown:"MouseDown",mouseenter:"MouseEnter",mouseleave:"MouseLeave",mousemove:"MouseMove",mouseup:"MouseUp"},_={afterchange:"onAfterChange",afterchangesize:"onAfterChangeSize",afterviewportchange:"onAfterViewportChange",beforechange:"onBeforeChange",beforechangesize:"onBeforeChangeSize",beforeviewportchange:"onBeforeViewportChange",keydown:"onKeyDown",keyup:"onKeyUp",mousewheel:"onMouseWheel"},C={afteritemactived:"onAfterItemActived",afteriteminactivated:"onAfterItemInactivated",afteritemselected:"onAfterItemSelected",afteritemunactived:"onAfterItemInactivated",afteritemunselected:"onAfterItemUnselected",beforeitemactived:"onBeforeItemActived",beforeiteminactivated:"onBeforeItemInactivated",beforeitemselected:"onBeforeItemSelected",beforeitemunactived:"onBeforeItemInactivated",beforeitemunselected:"onBeforeItemUnselected",keyUpEditLabel:"onKeyUpEditLabel"},k={aftercommandexecute:"onAfterCommandExecute",beforecommandexecute:"onBeforeCommandExecute"},T=Object.keys(E),I=Object.keys(_),D=Object.keys(C),R=Object.keys(k),j=b(58241),B=b(96156);function X(xt){for(var ut=1;ut1?arguments[1]:void 0)}},13765:function(U,P,b){var p=b(67485),d=b(41430),v=b(90411),h=function(a){return function(o,n,t){var e=p(o),r=v(e),i=d(t,r),u;if(a&&n!=n){for(;r>i;)if(u=e[i++],u!=u)return!0}else for(;r>i;i++)if((a||i in e)&&e[i]===n)return a||i||0;return!a&&-1}};U.exports={includes:h(!0),indexOf:h(!1)}},85291:function(U,P,b){var p=b(57945),d=b(90838),v=b(54593),h=b(18080),a=b(90411),o=b(54874),n=d([].push),t=function(e){var r=e==1,i=e==2,u=e==3,c=e==4,s=e==6,l=e==7,f=e==5||s;return function(g,y,m,x){for(var w=h(g),M=v(w),S=p(y,m),O=a(M),A=0,E=x||o,_=r?E(g,O):i||l?E(g,0):void 0,C,k;O>A;A++)if((f||A in M)&&(C=M[A],k=S(C,A,w),e))if(r)_[A]=k;else if(k)switch(e){case 3:return!0;case 5:return C;case 6:return A;case 2:n(_,C)}else switch(e){case 4:return!1;case 7:n(_,C)}return s?-1:u||c?c:_}};U.exports={forEach:t(0),map:t(1),filter:t(2),some:t(3),every:t(4),find:t(5),findIndex:t(6),filterReject:t(7)}},67207:function(U,P,b){var p=b(10978),d=b(23476),v=b(68497),h=d("species");U.exports=function(a){return v>=51||!p(function(){var o=[],n=o.constructor={};return n[h]=function(){return{foo:1}},o[a](Boolean).foo!==1})}},10455:function(U,P,b){"use strict";var p=b(10978);U.exports=function(d,v){var h=[][d];return!!h&&p(function(){h.call(null,v||function(){return 1},1)})}},35109:function(U,P,b){var p=b(90838);U.exports=p([].slice)},11990:function(U,P,b){var p=b(51405),d=b(71478),v=b(63188),h=b(23476),a=h("species"),o=Array;U.exports=function(n){var t;return p(n)&&(t=n.constructor,d(t)&&(t===o||p(t.prototype))?t=void 0:v(t)&&(t=t[a],t===null&&(t=void 0))),t===void 0?o:t}},54874:function(U,P,b){var p=b(11990);U.exports=function(d,v){return new(p(d))(v===0?0:v)}},78298:function(U,P,b){var p=b(90838),d=p({}.toString),v=p("".slice);U.exports=function(h){return v(d(h),8,-1)}},19582:function(U,P,b){var p=b(60054),d=b(61395),v=b(78298),h=b(23476),a=h("toStringTag"),o=Object,n=v(function(){return arguments}())=="Arguments",t=function(e,r){try{return e[r]}catch(i){}};U.exports=p?v:function(e){var r,i,u;return e===void 0?"Undefined":e===null?"Null":typeof(i=t(r=o(e),a))=="string"?i:n?v(r):(u=v(r))=="Object"&&d(r.callee)?"Arguments":u}},91650:function(U,P,b){var p=b(30266),d=b(1615),v=b(65133),h=b(71328);U.exports=function(a,o,n){for(var t=d(o),e=h.f,r=v.f,i=0;ib)throw P("Maximum allowed index exceeded");return p}},88739:function(U){U.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},25517:function(U,P,b){var p=b(54076),d=p("span").classList,v=d&&d.constructor&&d.constructor.prototype;U.exports=v===Object.prototype?void 0:v},62679:function(U,P,b){var p=b(40367);U.exports=p("navigator","userAgent")||""},68497:function(U,P,b){var p=b(24700),d=b(62679),v=p.process,h=p.Deno,a=v&&v.versions||h&&h.version,o=a&&a.v8,n,t;o&&(n=o.split("."),t=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!t&&d&&(n=d.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=d.match(/Chrome\/(\d+)/),n&&(t=+n[1]))),U.exports=t},72414:function(U){U.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},26725:function(U,P,b){var p=b(24700),d=b(65133).f,v=b(61782),h=b(6737),a=b(57496),o=b(91650),n=b(93415);U.exports=function(t,e){var r=t.target,i=t.global,u=t.stat,c,s,l,f,g,y;if(i?s=p:u?s=p[r]||a(r,{}):s=(p[r]||{}).prototype,s)for(l in e){if(g=e[l],t.dontCallGetSet?(y=d(s,l),f=y&&y.value):f=s[l],c=n(i?l:r+(u?".":"#")+l,t.forced),!c&&f!==void 0){if(typeof g==typeof f)continue;o(g,f)}(t.sham||f&&f.sham)&&v(g,"sham",!0),h(s,l,g,t)}}},10978:function(U){U.exports=function(P){try{return!!P()}catch(b){return!0}}},42713:function(U,P,b){var p=b(92094),d=Function.prototype,v=d.apply,h=d.call;U.exports=typeof Reflect=="object"&&Reflect.apply||(p?h.bind(v):function(){return h.apply(v,arguments)})},57945:function(U,P,b){var p=b(90838),d=b(84185),v=b(92094),h=p(p.bind);U.exports=function(a,o){return d(a),o===void 0?a:v?h(a,o):function(){return a.apply(o,arguments)}}},92094:function(U,P,b){var p=b(10978);U.exports=!p(function(){var d=function(){}.bind();return typeof d!="function"||d.hasOwnProperty("prototype")})},85483:function(U,P,b){var p=b(92094),d=Function.prototype.call;U.exports=p?d.bind(d):function(){return d.apply(d,arguments)}},24320:function(U,P,b){var p=b(40632),d=b(30266),v=Function.prototype,h=p&&Object.getOwnPropertyDescriptor,a=d(v,"name"),o=a&&function(){}.name==="something",n=a&&(!p||p&&h(v,"name").configurable);U.exports={EXISTS:a,PROPER:o,CONFIGURABLE:n}},90838:function(U,P,b){var p=b(92094),d=Function.prototype,v=d.bind,h=d.call,a=p&&v.bind(h,h);U.exports=p?function(o){return o&&a(o)}:function(o){return o&&function(){return h.apply(o,arguments)}}},40367:function(U,P,b){var p=b(24700),d=b(61395),v=function(h){return d(h)?h:void 0};U.exports=function(h,a){return arguments.length<2?v(p[h]):p[h]&&p[h][a]}},26242:function(U,P,b){var p=b(84185);U.exports=function(d,v){var h=d[v];return h==null?void 0:p(h)}},24700:function(U,P,b){var p=function(d){return d&&d.Math==Math&&d};U.exports=p(typeof globalThis=="object"&&globalThis)||p(typeof window=="object"&&window)||p(typeof self=="object"&&self)||p(typeof b.g=="object"&&b.g)||function(){return this}()||Function("return this")()},30266:function(U,P,b){var p=b(90838),d=b(18080),v=p({}.hasOwnProperty);U.exports=Object.hasOwn||function(a,o){return v(d(a),o)}},4428:function(U){U.exports={}},79234:function(U,P,b){var p=b(40632),d=b(10978),v=b(54076);U.exports=!p&&!d(function(){return Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a!=7})},54593:function(U,P,b){var p=b(90838),d=b(10978),v=b(78298),h=Object,a=p("".split);U.exports=d(function(){return!h("z").propertyIsEnumerable(0)})?function(o){return v(o)=="String"?a(o,""):h(o)}:h},11192:function(U,P,b){var p=b(90838),d=b(61395),v=b(57004),h=p(Function.toString);d(v.inspectSource)||(v.inspectSource=function(a){return h(a)}),U.exports=v.inspectSource},87943:function(U,P,b){var p=b(46733),d=b(24700),v=b(90838),h=b(63188),a=b(61782),o=b(30266),n=b(57004),t=b(1512),e=b(4428),r="Object already initialized",i=d.TypeError,u=d.WeakMap,c,s,l,f=function(S){return l(S)?s(S):c(S,{})},g=function(S){return function(O){var A;if(!h(O)||(A=s(O)).type!==S)throw i("Incompatible receiver, "+S+" required");return A}};if(p||n.state){var y=n.state||(n.state=new u),m=v(y.get),x=v(y.has),w=v(y.set);c=function(S,O){if(x(y,S))throw new i(r);return O.facade=S,w(y,S,O),O},s=function(S){return m(y,S)||{}},l=function(S){return x(y,S)}}else{var M=t("state");e[M]=!0,c=function(S,O){if(o(S,M))throw new i(r);return O.facade=S,a(S,M,O),O},s=function(S){return o(S,M)?S[M]:{}},l=function(S){return o(S,M)}}U.exports={set:c,get:s,has:l,enforce:f,getterFor:g}},51405:function(U,P,b){var p=b(78298);U.exports=Array.isArray||function(v){return p(v)=="Array"}},61395:function(U){U.exports=function(P){return typeof P=="function"}},71478:function(U,P,b){var p=b(90838),d=b(10978),v=b(61395),h=b(19582),a=b(40367),o=b(11192),n=function(){},t=[],e=a("Reflect","construct"),r=/^\s*(?:class|function)\b/,i=p(r.exec),u=!r.exec(n),c=function(f){if(!v(f))return!1;try{return e(n,t,f),!0}catch(g){return!1}},s=function(f){if(!v(f))return!1;switch(h(f)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!i(r,o(f))}catch(g){return!0}};s.sham=!0,U.exports=!e||d(function(){var l;return c(c.call)||!c(Object)||!c(function(){l=!0})||l})?s:c},93415:function(U,P,b){var p=b(10978),d=b(61395),v=/#|\.prototype\./,h=function(e,r){var i=o[a(e)];return i==t?!0:i==n?!1:d(r)?p(r):!!r},a=h.normalize=function(e){return String(e).replace(v,".").toLowerCase()},o=h.data={},n=h.NATIVE="N",t=h.POLYFILL="P";U.exports=h},63188:function(U,P,b){var p=b(61395);U.exports=function(d){return typeof d=="object"?d!==null:p(d)}},44193:function(U){U.exports=!1},1952:function(U,P,b){var p=b(40367),d=b(61395),v=b(36993),h=b(1076),a=Object;U.exports=h?function(o){return typeof o=="symbol"}:function(o){var n=p("Symbol");return d(n)&&v(n.prototype,a(o))}},90411:function(U,P,b){var p=b(86979);U.exports=function(d){return p(d.length)}},69541:function(U,P,b){var p=b(10978),d=b(61395),v=b(30266),h=b(40632),a=b(24320).CONFIGURABLE,o=b(11192),n=b(87943),t=n.enforce,e=n.get,r=Object.defineProperty,i=h&&!p(function(){return r(function(){},"length",{value:8}).length!==8}),u=String(String).split("String"),c=U.exports=function(s,l,f){String(l).slice(0,7)==="Symbol("&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),f&&f.getter&&(l="get "+l),f&&f.setter&&(l="set "+l),(!v(s,"name")||a&&s.name!==l)&&(h?r(s,"name",{value:l,configurable:!0}):s.name=l),i&&f&&v(f,"arity")&&s.length!==f.arity&&r(s,"length",{value:f.arity});try{f&&v(f,"constructor")&&f.constructor?h&&r(s,"prototype",{writable:!1}):s.prototype&&(s.prototype=void 0)}catch(y){}var g=t(s);return v(g,"source")||(g.source=u.join(typeof l=="string"?l:"")),s};Function.prototype.toString=c(function(){return d(this)&&e(this).source||o(this)},"toString")},47423:function(U){var P=Math.ceil,b=Math.floor;U.exports=Math.trunc||function(d){var v=+d;return(v>0?b:P)(v)}},49982:function(U,P,b){var p=b(68497),d=b(10978);U.exports=!!Object.getOwnPropertySymbols&&!d(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&p&&p<41})},46733:function(U,P,b){var p=b(24700),d=b(61395),v=b(11192),h=p.WeakMap;U.exports=d(h)&&/native code/.test(v(h))},71328:function(U,P,b){var p=b(40632),d=b(79234),v=b(64992),h=b(86444),a=b(59691),o=TypeError,n=Object.defineProperty,t=Object.getOwnPropertyDescriptor,e="enumerable",r="configurable",i="writable";P.f=p?v?function(c,s,l){if(h(c),s=a(s),h(l),typeof c=="function"&&s==="prototype"&&"value"in l&&i in l&&!l[i]){var f=t(c,s);f&&f[i]&&(c[s]=l.value,l={configurable:r in l?l[r]:f[r],enumerable:e in l?l[e]:f[e],writable:!1})}return n(c,s,l)}:n:function(c,s,l){if(h(c),s=a(s),h(l),d)try{return n(c,s,l)}catch(f){}if("get"in l||"set"in l)throw o("Accessors not supported");return"value"in l&&(c[s]=l.value),c}},65133:function(U,P,b){var p=b(40632),d=b(85483),v=b(47051),h=b(32590),a=b(67485),o=b(59691),n=b(30266),t=b(79234),e=Object.getOwnPropertyDescriptor;P.f=p?e:function(i,u){if(i=a(i),u=o(u),t)try{return e(i,u)}catch(c){}if(n(i,u))return h(!d(v.f,i,u),i[u])}},42385:function(U,P,b){var p=b(87073),d=b(72414),v=d.concat("length","prototype");P.f=Object.getOwnPropertyNames||function(a){return p(a,v)}},2443:function(U,P){P.f=Object.getOwnPropertySymbols},36993:function(U,P,b){var p=b(90838);U.exports=p({}.isPrototypeOf)},87073:function(U,P,b){var p=b(90838),d=b(30266),v=b(67485),h=b(13765).indexOf,a=b(4428),o=p([].push);U.exports=function(n,t){var e=v(n),r=0,i=[],u;for(u in e)!d(a,u)&&d(e,u)&&o(i,u);for(;t.length>r;)d(e,u=t[r++])&&(~h(i,u)||o(i,u));return i}},16740:function(U,P,b){var p=b(87073),d=b(72414);U.exports=Object.keys||function(h){return p(h,d)}},47051:function(U,P){"use strict";var b={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,d=p&&!b.call({1:2},1);P.f=d?function(h){var a=p(this,h);return!!a&&a.enumerable}:b},22319:function(U,P,b){var p=b(85483),d=b(61395),v=b(63188),h=TypeError;U.exports=function(a,o){var n,t;if(o==="string"&&d(n=a.toString)&&!v(t=p(n,a))||d(n=a.valueOf)&&!v(t=p(n,a))||o!=="string"&&d(n=a.toString)&&!v(t=p(n,a)))return t;throw h("Can't convert object to primitive value")}},1615:function(U,P,b){var p=b(40367),d=b(90838),v=b(42385),h=b(2443),a=b(86444),o=d([].concat);U.exports=p("Reflect","ownKeys")||function(t){var e=v.f(a(t)),r=h.f;return r?o(e,r(t)):e}},94920:function(U){var P=TypeError;U.exports=function(b){if(b==null)throw P("Can't call method on "+b);return b}},68387:function(U,P,b){var p=b(24700),d=b(42713),v=b(61395),h=b(62679),a=b(35109),o=b(25465),n=/MSIE .\./.test(h),t=p.Function,e=function(r){return n?function(i,u){var c=o(arguments.length,1)>2,s=v(i)?i:t(i),l=c?a(arguments,2):void 0;return r(c?function(){d(s,this,l)}:s,u)}:r};U.exports={setTimeout:e(p.setTimeout),setInterval:e(p.setInterval)}},1512:function(U,P,b){var p=b(22959),d=b(57641),v=p("keys");U.exports=function(h){return v[h]||(v[h]=d(h))}},57004:function(U,P,b){var p=b(24700),d=b(57496),v="__core-js_shared__",h=p[v]||d(v,{});U.exports=h},22959:function(U,P,b){var p=b(44193),d=b(57004);(U.exports=function(v,h){return d[v]||(d[v]=h!==void 0?h:{})})("versions",[]).push({version:"3.23.3",mode:p?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"})},41430:function(U,P,b){var p=b(80584),d=Math.max,v=Math.min;U.exports=function(h,a){var o=p(h);return o<0?d(o+a,0):v(o,a)}},67485:function(U,P,b){var p=b(54593),d=b(94920);U.exports=function(v){return p(d(v))}},80584:function(U,P,b){var p=b(47423);U.exports=function(d){var v=+d;return v!==v||v===0?0:p(v)}},86979:function(U,P,b){var p=b(80584),d=Math.min;U.exports=function(v){return v>0?d(p(v),9007199254740991):0}},18080:function(U,P,b){var p=b(94920),d=Object;U.exports=function(v){return d(p(v))}},96035:function(U,P,b){var p=b(85483),d=b(63188),v=b(1952),h=b(26242),a=b(22319),o=b(23476),n=TypeError,t=o("toPrimitive");U.exports=function(e,r){if(!d(e)||v(e))return e;var i=h(e,t),u;if(i){if(r===void 0&&(r="default"),u=p(i,e,r),!d(u)||v(u))return u;throw n("Can't convert object to primitive value")}return r===void 0&&(r="number"),a(e,r)}},59691:function(U,P,b){var p=b(96035),d=b(1952);U.exports=function(v){var h=p(v,"string");return d(h)?h:h+""}},60054:function(U,P,b){var p=b(23476),d=p("toStringTag"),v={};v[d]="z",U.exports=String(v)==="[object z]"},89112:function(U){var P=String;U.exports=function(b){try{return P(b)}catch(p){return"Object"}}},57641:function(U,P,b){var p=b(90838),d=0,v=Math.random(),h=p(1 .toString);U.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+h(++d+v,36)}},1076:function(U,P,b){var p=b(49982);U.exports=p&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},64992:function(U,P,b){var p=b(40632),d=b(10978);U.exports=p&&d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},25465:function(U){var P=TypeError;U.exports=function(b,p){if(b=51||!d(function(){var y=[];return y[c]=!1,y.concat()[0]!==y}),l=r("concat"),f=function(y){if(!h(y))return!1;var m=y[c];return m!==void 0?!!m:v(y)},g=!s||!l;p({target:"Array",proto:!0,arity:1,forced:g},{concat:function(m){var x=a(this),w=e(x,0),M=0,S,O,A,E,_;for(S=-1,A=arguments.length;S1?arguments[1]:void 0)}})},16869:function(U,P,b){var p=b(40632),d=b(24320).EXISTS,v=b(90838),h=b(71328).f,a=Function.prototype,o=v(a.toString),n=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,t=v(n.exec),e="name";p&&!d&&h(a,e,{configurable:!0,get:function(){try{return t(n,o(this))[1]}catch(r){return""}}})},7654:function(U,P,b){var p=b(26725),d=b(18080),v=b(16740),h=b(10978),a=h(function(){v(1)});p({target:"Object",stat:!0,forced:a},{keys:function(n){return v(d(n))}})},73257:function(U,P,b){var p=b(24700),d=b(88739),v=b(25517),h=b(51759),a=b(61782),o=function(t){if(t&&t.forEach!==h)try{a(t,"forEach",h)}catch(e){t.forEach=h}};for(var n in d)d[n]&&o(p[n]&&p[n].prototype);o(v)},81557:function(U,P,b){var p=b(26725),d=b(24700),v=b(68387).setInterval;p({global:!0,bind:!0,forced:d.setInterval!==v},{setInterval:v})},72455:function(U,P,b){var p=b(26725),d=b(24700),v=b(68387).setTimeout;p({global:!0,bind:!0,forced:d.setTimeout!==v},{setTimeout:v})},58241:function(U,P,b){b(81557),b(72455)},44286:function(U){function P(b){return b.split("")}U.exports=P},21078:function(U,P,b){var p=b(62488),d=b(37285);function v(h,a,o,n,t){var e=-1,r=h.length;for(o||(o=d),t||(t=[]);++e0&&o(i)?a>1?v(i,a-1,o,n,t):p(t,i):n||(t[t.length]=i)}return t}U.exports=v},97786:function(U,P,b){var p=b(71811),d=b(40327);function v(h,a){a=p(a,h);for(var o=0,n=a.length;h!=null&&oh?0:h+p),d=d>h?h:d,d<0&&(d+=h),h=p>d?0:d-p>>>0,p>>>=0;for(var a=Array(h);++v=o?v:p(v,h,a)}U.exports=d},98805:function(U,P,b){var p=b(40180),d=b(62689),v=b(83140),h=b(79833);function a(o){return function(n){n=h(n);var t=d(n)?v(n):void 0,e=t?t[0]:n.charAt(0),r=t?p(t,1).join(""):n.slice(1);return e[o]()+r}}U.exports=a},99021:function(U,P,b){var p=b(85564),d=b(45357),v=b(30061);function h(a){return v(d(a,void 0,p),a+"")}U.exports=h},222:function(U,P,b){var p=b(71811),d=b(35694),v=b(1469),h=b(65776),a=b(41780),o=b(40327);function n(t,e,r){e=p(e,t);for(var i=-1,u=e.length,c=!1;++i.ant-typography,.ant-card-head-title>.ant-typography-edit-content{left:0;margin-top:0;margin-bottom:0}.ant-card-head .ant-tabs-top{clear:both;margin-bottom:-17px;color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.ant-card-head .ant-tabs-top-bar{border-bottom:1px solid rgba(0,0,0,.06)}.ant-card-extra{margin-left:auto;padding:16px 0;color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.ant-card-rtl .ant-card-extra{margin-right:auto;margin-left:0}.ant-card-body{padding:24px}.ant-card-body:before{display:table;content:""}.ant-card-body:after{display:table;clear:both;content:""}.ant-card-contain-grid .ant-card-body{display:flex;flex-wrap:wrap}.ant-card-contain-grid:not(.ant-card-loading) .ant-card-body{margin:-1px 0 0 -1px;padding:0}.ant-card-grid{width:33.33%;padding:24px;border:0;border-radius:0;box-shadow:1px 0 0 0 rgba(0,0,0,.06),0 1px 0 0 rgba(0,0,0,.06),1px 1px 0 0 rgba(0,0,0,.06),inset 1px 0 0 0 rgba(0,0,0,.06),inset 0 1px 0 0 rgba(0,0,0,.06);transition:all .3s}.ant-card-grid-hoverable:hover{position:relative;z-index:1;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-card-contain-tabs>.ant-card-head .ant-card-head-title{min-height:32px;padding-bottom:0}.ant-card-contain-tabs>.ant-card-head .ant-card-extra{padding-bottom:0}.ant-card-bordered .ant-card-cover{margin-top:-1px;margin-right:-1px;margin-left:-1px}.ant-card-cover>*{display:block;width:100%}.ant-card-cover img{border-radius:2px 2px 0 0}.ant-card-actions{display:flex;margin:0;padding:0;list-style:none;background:#fff;border-top:1px solid rgba(0,0,0,.06)}.ant-card-actions:before{display:table;content:""}.ant-card-actions:after{display:table;clear:both;content:""}.ant-card-actions>li{margin:12px 0;color:rgba(0,0,0,.45);text-align:center}.ant-card-actions>li>span{position:relative;display:block;min-width:32px;font-size:14px;line-height:1.5715;cursor:pointer}.ant-card-actions>li>span:hover{color:#1890ff;color:var(--ant-primary-color);transition:color .3s}.ant-card-actions>li>span>.anticon,.ant-card-actions>li>span a:not(.ant-btn){display:inline-block;width:100%;color:rgba(0,0,0,.45);line-height:22px;transition:color .3s}.ant-card-actions>li>span>.anticon:hover,.ant-card-actions>li>span a:not(.ant-btn):hover{color:#1890ff;color:var(--ant-primary-color)}.ant-card-actions>li>span>.anticon{font-size:16px;line-height:22px}.ant-card-actions>li:not(:last-child){border-right:1px solid rgba(0,0,0,.06)}.ant-card-rtl .ant-card-actions>li:not(:last-child){border-right:none;border-left:1px solid rgba(0,0,0,.06)}.ant-card-type-inner .ant-card-head{padding:0 24px;background:#fafafa}.ant-card-type-inner .ant-card-head-title{padding:12px 0;font-size:14px}.ant-card-type-inner .ant-card-body{padding:16px 24px}.ant-card-type-inner .ant-card-extra{padding:13.5px 0}.ant-card-meta{display:flex;margin:-4px 0}.ant-card-meta:before{display:table;content:""}.ant-card-meta:after{display:table;clear:both;content:""}.ant-card-meta-avatar{padding-right:16px}.ant-card-rtl .ant-card-meta-avatar{padding-right:0;padding-left:16px}.ant-card-meta-detail{overflow:hidden}.ant-card-meta-detail>div:not(:last-child){margin-bottom:8px}.ant-card-meta-title{overflow:hidden;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;white-space:nowrap;text-overflow:ellipsis}.ant-card-meta-description{color:rgba(0,0,0,.45)}.ant-card-loading{overflow:hidden}.ant-card-loading .ant-card-body{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-card-small>.ant-card-head{min-height:36px;padding:0 12px;font-size:14px}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-head-title{padding:8px 0}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-extra{padding:8px 0;font-size:14px}.ant-card-small>.ant-card-body{padding:12px}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-form-item .ant-input-number+.ant-form-text{margin-left:8px}.ant-form-inline{display:flex;flex-wrap:wrap}.ant-form-inline .ant-form-item{flex:none;flex-wrap:nowrap;margin-right:16px;margin-bottom:0}.ant-form-inline .ant-form-item-with-help{margin-bottom:24px}.ant-form-inline .ant-form-item>.ant-form-item-control,.ant-form-inline .ant-form-item>.ant-form-item-label{display:inline-block;vertical-align:top}.ant-form-inline .ant-form-item>.ant-form-item-label{flex:none}.ant-form-inline .ant-form-item .ant-form-text{display:inline-block}.ant-form-inline .ant-form-item .ant-form-item-has-feedback{display:inline-block}.ant-form-horizontal .ant-form-item-label{flex-grow:0}.ant-form-horizontal .ant-form-item-control{flex:1 1;min-width:0}.ant-form-horizontal .ant-form-item-label[class$="-24"]+.ant-form-item-control,.ant-form-horizontal .ant-form-item-label[class*="-24 "]+.ant-form-item-control{min-width:unset}.ant-form-vertical .ant-form-item{flex-direction:column}.ant-form-vertical .ant-form-item-label>label{height:auto}.ant-col-24.ant-form-item-label,.ant-col-xl-24.ant-form-item-label,.ant-form-vertical .ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-24.ant-form-item-label>label,.ant-col-xl-24.ant-form-item-label>label,.ant-form-vertical .ant-form-item-label>label{margin:0}.ant-col-24.ant-form-item-label>label:after,.ant-col-xl-24.ant-form-item-label>label:after,.ant-form-vertical .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-24.ant-form-item-label,.ant-form-rtl.ant-col-xl-24.ant-form-item-label,.ant-form-rtl.ant-form-vertical .ant-form-item-label{text-align:right}@media (max-width:575px){.ant-form-item .ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-form-item .ant-form-item-label>label{margin:0}.ant-form-item .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-form-item .ant-form-item-label{text-align:right}.ant-form .ant-form-item{flex-wrap:wrap}.ant-form .ant-form-item .ant-form-item-control,.ant-form .ant-form-item .ant-form-item-label{flex:0 0 100%;max-width:100%}.ant-col-xs-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-xs-24.ant-form-item-label>label{margin:0}.ant-col-xs-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xs-24.ant-form-item-label{text-align:right}}@media (max-width:767px){.ant-col-sm-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-sm-24.ant-form-item-label>label{margin:0}.ant-col-sm-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-sm-24.ant-form-item-label{text-align:right}}@media (max-width:991px){.ant-col-md-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-md-24.ant-form-item-label>label{margin:0}.ant-col-md-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-md-24.ant-form-item-label{text-align:right}}@media (max-width:1199px){.ant-col-lg-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-lg-24.ant-form-item-label>label{margin:0}.ant-col-lg-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-lg-24.ant-form-item-label{text-align:right}}@media (max-width:1599px){.ant-col-xl-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-xl-24.ant-form-item-label>label{margin:0}.ant-col-xl-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xl-24.ant-form-item-label{text-align:right}}.ant-form-item-explain-error{color:#ff4d4f;color:var(--ant-error-color)}.ant-form-item-explain-warning{color:#faad14;color:var(--ant-warning-color)}.ant-form-item-has-feedback .ant-switch{margin:2px 0 4px}.ant-form-item-has-warning .ant-form-item-split{color:#faad14;color:var(--ant-warning-color)}.ant-form-item-has-error .ant-form-item-split{color:#ff4d4f;color:var(--ant-error-color)}.ant-form{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum"}.ant-form legend{display:block;width:100%;margin-bottom:20px;padding:0;color:rgba(0,0,0,.45);font-size:16px;line-height:inherit;border:0;border-bottom:1px solid #d9d9d9}.ant-form label{font-size:14px}.ant-form input[type=search]{box-sizing:border-box}.ant-form input[type=checkbox],.ant-form input[type=radio]{line-height:normal}.ant-form input[type=file]{display:block}.ant-form input[type=range]{display:block;width:100%}.ant-form select[multiple],.ant-form select[size]{height:auto}.ant-form input[type=checkbox]:focus,.ant-form input[type=file]:focus,.ant-form input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.ant-form output{display:block;padding-top:15px;color:rgba(0,0,0,.85);font-size:14px;line-height:1.5715}.ant-form .ant-form-text{display:inline-block;padding-right:8px}.ant-form-small .ant-form-item-label>label{height:24px}.ant-form-small .ant-form-item-control-input{min-height:24px}.ant-form-large .ant-form-item-label>label{height:40px}.ant-form-large .ant-form-item-control-input{min-height:40px}.ant-form-item{box-sizing:border-box;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";margin:0 0 24px;vertical-align:top;transition:margin-bottom .3s linear 17ms}.ant-form-item-with-help{margin-bottom:0;transition:none}.ant-form-item-hidden,.ant-form-item-hidden.ant-row{display:none}.ant-form-item-label{display:inline-block;flex-grow:0;overflow:hidden;white-space:nowrap;text-align:right;vertical-align:middle}.ant-form-item-label-left{text-align:left}.ant-form-item-label-wrap{overflow:unset;line-height:1.3215em;white-space:unset}.ant-form-item-label>label{position:relative;display:inline-flex;align-items:center;max-width:100%;height:32px;color:rgba(0,0,0,.85);font-size:14px}.ant-form-item-label>label>.anticon{font-size:14px;vertical-align:top}.ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{display:inline-block;margin-right:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:"*"}.ant-form-hide-required-mark .ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{display:none}.ant-form-item-label>label .ant-form-item-optional{display:inline-block;margin-left:4px;color:rgba(0,0,0,.45)}.ant-form-hide-required-mark .ant-form-item-label>label .ant-form-item-optional{display:none}.ant-form-item-label>label .ant-form-item-tooltip{color:rgba(0,0,0,.45);cursor:help;-webkit-writing-mode:horizontal-tb;-ms-writing-mode:lr-tb;writing-mode:horizontal-tb;-webkit-margin-start:4px;margin-inline-start:4px}.ant-form-item-label>label:after{content:":";position:relative;top:-.5px;margin:0 8px 0 2px}.ant-form-item-label>label.ant-form-item-no-colon:after{content:" "}.ant-form-item-control{display:flex;flex-direction:column;flex-grow:1}.ant-form-item-control:first-child:not([class^=ant-col-]):not([class*=" ant-col-"]){width:100%}.ant-form-item-control-input{position:relative;display:flex;align-items:center;min-height:32px}.ant-form-item-control-input-content{flex:auto;max-width:100%}.ant-form-item-explain,.ant-form-item-extra{clear:both;color:rgba(0,0,0,.45);font-size:14px;line-height:1.5715;transition:color .3s cubic-bezier(.215,.61,.355,1);padding-top:0}.ant-form-item-explain-connected{height:0;min-height:0;opacity:0}.ant-form-item-extra{min-height:24px}.ant-form-item-with-help .ant-form-item-explain{height:auto;min-height:24px;opacity:1}.ant-form-item-feedback-icon{font-size:14px;text-align:center;visibility:visible;animation:zoomIn .3s cubic-bezier(.12,.4,.29,1.46);pointer-events:none}.ant-form-item-feedback-icon-success{color:#52c41a;color:var(--ant-success-color)}.ant-form-item-feedback-icon-error{color:#ff4d4f;color:var(--ant-error-color)}.ant-form-item-feedback-icon-warning{color:#faad14;color:var(--ant-warning-color)}.ant-form-item-feedback-icon-validating{color:#1890ff;color:var(--ant-primary-color)}.ant-show-help{transition:height .3s linear,min-height .3s linear,margin-bottom .3s cubic-bezier(.645,.045,.355,1),opacity .3s cubic-bezier(.645,.045,.355,1)}.ant-show-help-leave{min-height:24px}.ant-show-help-leave-active{min-height:0}.ant-show-help-item{overflow:hidden;transition:height .3s cubic-bezier(.645,.045,.355,1),opacity .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1)!important}.ant-show-help-item-appear,.ant-show-help-item-enter{transform:translateY(-5px);opacity:0}.ant-show-help-item-appear-active,.ant-show-help-item-enter-active{transform:translateY(0);opacity:1}.ant-show-help-item-leave-active{transform:translateY(-5px)}@keyframes diffZoomIn1{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes diffZoomIn2{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes diffZoomIn3{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}.ant-form-rtl{direction:rtl}.ant-form-rtl .ant-form-item-label{text-align:left}.ant-form-rtl .ant-form-item-label>label.ant-form-item-required:before{margin-right:0;margin-left:4px}.ant-form-rtl .ant-form-item-label>label:after{margin:0 2px 0 8px}.ant-form-rtl .ant-form-item-label>label .ant-form-item-optional{margin-right:4px;margin-left:0}.ant-col-rtl .ant-form-item-control:first-child{width:100%}.ant-form-rtl .ant-form-item-has-feedback .ant-input{padding-right:11px;padding-left:24px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix{padding-right:11px;padding-left:18px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input{padding:0}.ant-form-rtl .ant-form-item-has-feedback .ant-input-number-affix-wrapper .ant-input-number{padding:0}.ant-form-rtl .ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix{right:auto;left:28px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-number{padding-left:18px}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-clear,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-clear,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-clear{right:auto;left:32px}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-selection-selected-value{padding-right:0;padding-left:42px}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-arrow{margin-right:0;margin-left:19px}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-clear{right:auto;left:32px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker{padding-right:11px;padding-left:29.2px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker-large{padding-right:11px;padding-left:29.2px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker-small{padding-right:7px;padding-left:25.2px}.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon{right:auto;left:0}.ant-form-rtl.ant-form-inline .ant-form-item{margin-right:0;margin-left:16px} \ No newline at end of file diff --git a/6743.a7bbf788.async.js b/6743.a7bbf788.async.js new file mode 100644 index 00000000..bc50075a --- /dev/null +++ b/6743.a7bbf788.async.js @@ -0,0 +1,2 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6743],{63375:function(ye,re,o){"use strict";o.d(re,{ZP:function(){return ar}});var ee=o(85061),A=o(55507),V=o(92137),ae=o(84305),H=o(75901),ie=o(98858),Q=o(4914),J=o(81253),oe=o(9715),X=o(86835),de=o(49111),$=o(19650),O=o(22122),E=o(28991),C=o(54549),se=o(79508),ue=o(8212),ce=o(952),me=o(97519),a=o(67294),he=o(58024),te=o(91894),Pe=o(71748),L=o(33860),pe=o(38069),be=o(48736),Se=o(27049),Re=function(e){var r=e.padding;return a.createElement("div",{style:{padding:r||"0 24px"}},a.createElement(Se.Z,{style:{margin:0}}))},Ve={xs:2,sm:2,md:4,lg:4,xl:6,xxl:6},Ge=function(e){var r=e.size,n=e.active,l=(0,pe.ZP)(),d=r===void 0?Ve[l]||6:r,i=function(s){return s===0?0:d>2?42:16};return a.createElement(te.Z,{bordered:!1,style:{marginBottom:16}},a.createElement("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"}},new Array(d).fill(null).map(function(u,s){return a.createElement("div",{key:s,style:{borderLeft:d>2&&s===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingLeft:i(s),flex:1,marginRight:s===0?16:0}},a.createElement(L.Z,{active:n,paragraph:!1,title:{width:100,style:{marginTop:0}}}),a.createElement(L.Z.Button,{active:n,style:{height:48}}))})))},He=function(e){var r=e.active;return a.createElement(a.Fragment,null,a.createElement(te.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24}},a.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"}},a.createElement("div",{style:{maxWidth:"100%",flex:1}},a.createElement(L.Z,{active:r,title:{width:100,style:{marginTop:0}},paragraph:{rows:1,style:{margin:0}}})),a.createElement(L.Z.Button,{active:r,size:"small",style:{width:165,marginTop:12}}))),a.createElement(Re,null))},Ye=function(e){var r=e.size,n=e.active,l=n===void 0?!0:n,d=e.actionButton;return a.createElement(te.Z,{bordered:!1,bodyStyle:{padding:0}},new Array(r).fill(null).map(function(i,u){return a.createElement(He,{key:u,active:!!l})}),d!==!1&&a.createElement(te.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},a.createElement(L.Z.Button,{style:{width:102},active:l,size:"small"})))},Ze=function(e){var r=e.active;return a.createElement("div",{style:{marginBottom:16}},a.createElement(L.Z,{paragraph:!1,title:{width:185}}),a.createElement(L.Z.Button,{active:r,size:"small"}))},Qe=function(e){var r=e.active;return a.createElement(te.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBottom:8}},a.createElement($.Z,{style:{width:"100%",justifyContent:"space-between"}},a.createElement(L.Z.Button,{active:r,style:{width:200},size:"small"}),a.createElement($.Z,null,a.createElement(L.Z.Button,{active:r,size:"small",style:{width:120}}),a.createElement(L.Z.Button,{active:r,size:"small",style:{width:80}}))))},Je=function(e){var r=e.active,n=r===void 0?!0:r,l=e.statistic,d=e.actionButton,i=e.toolbar,u=e.pageHeader,s=e.list,v=s===void 0?5:s;return a.createElement("div",{style:{width:"100%"}},u!==!1&&a.createElement(Ze,{active:n}),l!==!1&&a.createElement(Ge,{size:l,active:n}),(i!==!1||v!==!1)&&a.createElement(te.Z,{bordered:!1,bodyStyle:{padding:0}},i!==!1&&a.createElement(Qe,{active:n}),v!==!1&&a.createElement(Ye,{size:v,active:n,actionButton:d})))},Xe=Je,Be={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},qe=function(e){var r=e.active;return a.createElement("div",{style:{marginTop:32}},a.createElement(L.Z.Button,{active:r,size:"small",style:{width:100,marginBottom:16}}),a.createElement("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"}},a.createElement("div",{style:{flex:1,marginRight:24,maxWidth:300}},a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{marginTop:0}}}),a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}}),a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}})),a.createElement("div",{style:{flex:1,alignItems:"center",justifyContent:"center"}},a.createElement("div",{style:{maxWidth:300,margin:"auto"}},a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{marginTop:0}}}),a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}})))))},et=function(e){var r=e.size,n=e.active,l=(0,pe.ZP)(),d=r===void 0?Be[l]||3:r;return a.createElement("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"}},new Array(d).fill(null).map(function(i,u){return a.createElement("div",{key:u,style:{flex:1,paddingLeft:u===0?0:24,paddingRight:u===d-1?0:24}},a.createElement(L.Z,{active:n,paragraph:!1,title:{style:{marginTop:0}}}),a.createElement(L.Z,{active:n,paragraph:!1,title:{style:{marginTop:8}}}),a.createElement(L.Z,{active:n,paragraph:!1,title:{style:{marginTop:8}}}))}))},we=function(e){var r=e.active,n=e.header,l=n===void 0?!1:n,d=(0,pe.ZP)(),i=Be[d]||3;return a.createElement(a.Fragment,null,a.createElement("div",{style:{display:"flex",background:l?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"}},new Array(i).fill(null).map(function(u,s){return a.createElement("div",{key:s,style:{flex:1,paddingLeft:l&&s===0?0:20,paddingRight:32}},a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:24,width:l?"75px":"100%"}}}))}),a.createElement("div",{style:{flex:3,paddingLeft:32}},a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:24,width:l?"75px":"100%"}}}))),a.createElement(Re,{padding:"0px 0px"}))},tt=function(e){var r=e.active,n=e.size,l=n===void 0?4:n;return a.createElement(te.Z,{bordered:!1},a.createElement(L.Z.Button,{active:r,size:"small",style:{width:100,marginBottom:16}}),a.createElement(we,{header:!0,active:r}),new Array(l).fill(null).map(function(d,i){return a.createElement(we,{key:i,active:r})}),a.createElement("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:16}},a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})))},at=function(e){var r=e.active;return a.createElement(te.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0}},a.createElement(L.Z.Button,{active:r,size:"small",style:{width:100,marginBottom:16}}),a.createElement(et,{active:r}),a.createElement(qe,{active:r}))},rt=function(e){var r=e.active,n=r===void 0?!0:r,l=e.pageHeader,d=e.list;return a.createElement("div",{style:{width:"100%"}},l!==!1&&a.createElement(Ze,{active:n}),a.createElement(at,{active:n}),d!==!1&&a.createElement(Re,null),d!==!1&&a.createElement(tt,{active:n,size:d}))},nt=rt,lt=function(e){var r=e.active,n=r===void 0?!0:r,l=e.pageHeader;return a.createElement("div",{style:{width:"100%"}},l!==!1&&a.createElement(Ze,{active:n}),a.createElement(te.Z,null,a.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128}},a.createElement(L.Z.Avatar,{size:64,style:{marginBottom:32}}),a.createElement(L.Z.Button,{active:n,style:{width:214,marginBottom:8}}),a.createElement(L.Z.Button,{active:n,style:{width:328},size:"small"}),a.createElement($.Z,{style:{marginTop:24}},a.createElement(L.Z.Button,{active:n,style:{width:116}}),a.createElement(L.Z.Button,{active:n,style:{width:116}})))))},it=lt,ot=["type"],dt=function(e){var r=e.type,n=r===void 0?"list":r,l=(0,J.Z)(e,ot);return n==="result"?a.createElement(it,l):n==="descriptions"?a.createElement(nt,l):a.createElement(Xe,l)},st=dt;function ut(t){if(typeof t=="function"){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n1&&(S=(0,Ca.Z)(e),w=S.slice(1),N=(0,Le.Z)(b,w),(0,Ke.Z)(b,w,N)),Y=g?(0,Ke.Z)({},p,b,!0):b,W.next=13,r==null?void 0:r(e,Za({},l,Y),l,i);case 13:return ne=W.sent,P(!1),W.abrupt("return",ne);case 18:return W.prev=18,W.t0=W.catch(2),console.log(W.t0),P(!1),W.abrupt("return",null);case 23:case"end":return W.stop()}},f,null,[[2,18]])}));return function(f){return x.apply(this,arguments)}}()},F?a.createElement(Me.Z,{style:{marginRight:8}}):null,d||"\u4FDD\u5B58")}var Ka=function(e){var r=e.recordKey,n=e.onDelete,l=e.row,d=e.children,i=e.deletePopconfirmMessage,u=e.cancelEditable,s=We(function(){return!1}),v=(0,ve.Z)(s,2),D=v[0],M=v[1],F=function(){var P=(0,V.Z)((0,A.Z)().mark(function x(){var f;return(0,A.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,M(!0),c.next=4,n==null?void 0:n(r,l);case 4:return f=c.sent,M(!1),setTimeout(function(){u(r)},0),c.abrupt("return",f);case 10:return c.prev=10,c.t0=c.catch(0),console.log(c.t0),M(!1),c.abrupt("return",null);case 15:case"end":return c.stop()}},x,null,[[0,10]])}));return function(){return P.apply(this,arguments)}}();return d!==!1?a.createElement(xa.Z,{key:"delete",title:i,onConfirm:F},a.createElement("a",null,D?a.createElement(Me.Z,{style:{marginRight:8}}):null,d||"\u5220\u9664")):null},Ba=function(e){var r=e.recordKey,n=e.tableName,l=e.newLineConfig,d=e.form,i=e.editorType,u=e.onCancel,s=e.cancelEditable,v=e.row,D=e.cancelText,M=(0,a.useContext)(ze);return a.createElement("a",{key:"cancel",onClick:function(){var F=(0,V.Z)((0,A.Z)().mark(function P(x){var f,Z,c,g,p,b;return(0,A.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return x.stopPropagation(),x.preventDefault(),Z=i==="Map",c=[n,r].flat(1).filter(Boolean),g=((f=M.getFieldFormatValue)===null||f===void 0?void 0:f.call(M,c))||d.getFieldValue(c),p=Z?(0,Ke.Z)({},c,g):g,w.next=8,u==null?void 0:u(r,p,v,l);case 8:return b=w.sent,s(r),d.setFieldsValue((0,Oe.Z)({},r,Z?(0,Le.Z)(v,c):v)),w.abrupt("return",b);case 12:case"end":return w.stop()}},P)}));return function(P){return F.apply(this,arguments)}}()},D||"\u53D6\u6D88")};function Ue(t,e){var r=e.recordKey,n=e.newLineConfig,l=e.saveText,d=e.deleteText;return[a.createElement(La,(0,O.Z)({key:"save"},e,{row:t}),l),(n==null?void 0:n.options.recordKey)!==r?a.createElement(Ka,(0,O.Z)({key:"delete"},e,{row:t}),d):null,a.createElement(Ba,(0,O.Z)({key:"cancel"},e,{row:t}))]}function gr(t){var e=useState(void 0),r=_slicedToArray(e,2),n=r[0],l=r[1],d=useRef(new Map),i=useRef(void 0);useDeepCompareEffectDebounce(function(){var R=new Map,m=function h(T){T==null||T.forEach(function(K,z){var _;R.set(z.toString(),le(t.getRowKey(K,-1))),R.set((_=le(t.getRowKey(K,-1)))===null||_===void 0?void 0:_.toString(),z.toString()),t.childrenColumnName&&K[t.childrenColumnName]&&h(K[t.childrenColumnName])})};m(t.dataSource),d.current=R},[t.dataSource]),i.current=n;var u=t.type||"single",s=useLazyKVMap(t.dataSource,"children",t.getRowKey),v=_slicedToArray(s,1),D=v[0],M=useMergedState([],{value:t.editableKeys,onChange:t.onChange?function(R){var m;t==null||(m=t.onChange)===null||m===void 0||m.call(t,R.filter(function(h){return h!==void 0}),R.map(function(h){return D(h)}).filter(function(h){return h!==void 0}))}:void 0}),F=_slicedToArray(M,2),P=F[0],x=F[1],f=useMemo(function(){var R=u==="single"?P==null?void 0:P.slice(0,1):P;return new Set(R)},[(P||[]).join(","),u]),Z=usePrevious(P),c=useRefFunction(function(R){var m,h,T,K,z=(m=t.getRowKey(R,R.index))===null||m===void 0||(h=m.toString)===null||h===void 0?void 0:h.call(m),_=(T=t.getRowKey(R,-1))===null||T===void 0||(K=T.toString)===null||K===void 0?void 0:K.call(T),G=P.map(function(B){return B==null?void 0:B.toString()}),j=(Z==null?void 0:Z.map(function(B){return B==null?void 0:B.toString()}))||[],q=t.tableName&&!!(j==null?void 0:j.includes(_))||!!(j==null?void 0:j.includes(z));return{recordKey:_,isEditable:t.tableName&&(G==null?void 0:G.includes(_))||(G==null?void 0:G.includes(z)),preIsEditable:q}}),g=useRefFunction(function(R){return f.size>0&&u==="single"&&t.onlyOneLineEditorAlertMessage!==!1?(_message.warn(t.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(f.add(R),x(Array.from(f)),!0)}),p=useRefFunction(function(R,m){var h=le(R).toString(),T=d.current.get(h);if(!f.has(h)&&T&&(m!=null?m:!0)&&t.tableName){p(T,!1);return}return n&&n.options.recordKey===R&&l(void 0),f.delete(h),f.delete(le(R)),x(Array.from(f)),!0}),b=useDebounceFn(_asyncToGenerator(_regeneratorRuntime().mark(function R(){var m,h,T,K,z=arguments;return _regeneratorRuntime().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:for(h=z.length,T=new Array(h),K=0;K0&&u==="single"&&t.onlyOneLineEditorAlertMessage!==!1)return _message.warn(t.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var h=t.getRowKey(R,-1);if(!h)throw noteOnce(!!h,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key + https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(f.add(h),x(Array.from(f)),(m==null?void 0:m.newRecordType)==="dataSource"||t.tableName){var T,K={data:t.dataSource,getRowKey:t.getRowKey,row:_objectSpread(_objectSpread({},R),{},{map_row_parentKey:(m==null?void 0:m.parentKey)?(T=le(m==null?void 0:m.parentKey))===null||T===void 0?void 0:T.toString():void 0}),key:h,childrenColumnName:t.childrenColumnName||"children"};t.setDataSource(Ce(K,(m==null?void 0:m.position)==="top"?"top":"update"))}else l({defaultValue:R,options:_objectSpread(_objectSpread({},m),{},{recordKey:h})});return!0}),N=useIntl(),Y=(t==null?void 0:t.saveText)||N.getMessage("editableTable.action.save","\u4FDD\u5B58"),ne=(t==null?void 0:t.deleteText)||N.getMessage("editableTable.action.delete","\u5220\u9664"),y=(t==null?void 0:t.cancelText)||N.getMessage("editableTable.action.cancel","\u53D6\u6D88"),W=useRefFunction(function(){var R=_asyncToGenerator(_regeneratorRuntime().mark(function m(h,T,K,z){var _,G,j,q,B,fe,_e;return _regeneratorRuntime().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return q=z||i.current||{},B=q.options,ge.next=3,t==null||(_=t.onSave)===null||_===void 0?void 0:_.call(t,h,T,K,z);case 3:if(fe=ge.sent,p(h),!(!(B==null?void 0:B.parentKey)&&(B==null?void 0:B.recordKey)===h)){ge.next=8;break}return(B==null?void 0:B.position)==="top"?t.setDataSource([T].concat(_toConsumableArray(t.dataSource))):t.setDataSource([].concat(_toConsumableArray(t.dataSource),[T])),ge.abrupt("return",fe);case 8:return _e={data:t.dataSource,getRowKey:t.getRowKey,row:B?_objectSpread(_objectSpread({},T),{},{map_row_parentKey:(G=le((j=B==null?void 0:B.parentKey)!==null&&j!==void 0?j:""))===null||G===void 0?void 0:G.toString()}):T,key:h,childrenColumnName:t.childrenColumnName||"children"},t.setDataSource(Ce(_e,(B==null?void 0:B.position)==="top"?"top":"update")),ge.abrupt("return",fe);case 11:case"end":return ge.stop()}},m)}));return function(m,h,T,K){return R.apply(this,arguments)}}()),I=useRefFunction(function(){var R=_asyncToGenerator(_regeneratorRuntime().mark(function m(h,T){var K,z,_;return _regeneratorRuntime().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return z={data:t.dataSource,getRowKey:t.getRowKey,row:T,key:h,childrenColumnName:t.childrenColumnName||"children"},j.next=3,t==null||(K=t.onDelete)===null||K===void 0?void 0:K.call(t,h,T);case 3:return _=j.sent,t.setDataSource(Ce(z,"delete")),j.abrupt("return",_);case 6:case"end":return j.stop()}},m)}));return function(m,h){return R.apply(this,arguments)}}()),k=useRefFunction(function(){var R=_asyncToGenerator(_regeneratorRuntime().mark(function m(h,T,K,z){var _,G;return _regeneratorRuntime().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,t==null||(_=t.onCancel)===null||_===void 0?void 0:_.call(t,h,T,K,z);case 2:return G=q.sent,q.abrupt("return",G);case 4:case"end":return q.stop()}},m)}));return function(m,h,T,K){return R.apply(this,arguments)}}()),Ee=function(m,h){var T=t.getRowKey(m,m.index),K={saveText:Y,cancelText:y,deleteText:ne,addEditRecord:w,recordKey:T,cancelEditable:p,index:m.index,tableName:t.tableName,newLineConfig:n,onCancel:k,onDelete:I,onSave:W,form:h,editableKeys:P,setEditableRowKeys:x,deletePopconfirmMessage:t.deletePopconfirmMessage||"\u5220\u9664\u6B64\u884C\uFF1F"},z=Ue(m,K);return t.actionRender?t.actionRender(m,K,{save:z[0],delete:z[1],cancel:z[2]}):z};return{editableKeys:P,setEditableRowKeys:x,isEditable:c,actionRender:Ee,startEditable:g,cancelEditable:p,addEditRecord:w,newLineRecord:n,preEditableKeys:Z,onValuesChange:S}}var pr=null;function wa(t){var e=t.data,r=t.row;return(0,E.Z)((0,E.Z)({},e),r)}function Aa(t){var e=t.type||"single",r=(0,xe.Z)([],{value:t.editableKeys,onChange:t.onChange?function(c){var g;t==null||(g=t.onChange)===null||g===void 0||g.call(t,c,t.dataSource)}:void 0}),n=(0,ve.Z)(r,2),l=n[0],d=n[1],i=(0,a.useMemo)(function(){var c=e==="single"?l==null?void 0:l.slice(0,1):l;return new Set(c)},[(l||[]).join(","),e]),u=(0,a.useCallback)(function(c){return!!(l==null?void 0:l.includes(le(c)))},[(l||[]).join(",")]),s=function(g){return i.size>0&&e==="single"?(Ct.ZP.warn(t.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(i.add(le(g)),d(Array.from(i)),!0)},v=function(g){return i.delete(le(g)),d(Array.from(i)),!0},D=function(){var c=(0,V.Z)((0,A.Z)().mark(function g(p,b,S,w){var N,Y;return(0,A.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,t==null||(N=t.onCancel)===null||N===void 0?void 0:N.call(t,p,b,S,w);case 2:if(Y=y.sent,Y!==!1){y.next=5;break}return y.abrupt("return",!1);case 5:return y.abrupt("return",!0);case 6:case"end":return y.stop()}},g)}));return function(p,b,S,w){return c.apply(this,arguments)}}(),M=function(){var c=(0,V.Z)((0,A.Z)().mark(function g(p,b,S){var w,N,Y;return(0,A.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,t==null||(w=t.onSave)===null||w===void 0?void 0:w.call(t,p,b,S);case 2:if(N=y.sent,N!==!1){y.next=5;break}return y.abrupt("return",!1);case 5:return v(p),Y={data:t.dataSource,row:b,key:p,childrenColumnName:t.childrenColumnName||"children"},t.setDataSource(wa(Y)),y.abrupt("return",!0);case 9:case"end":return y.stop()}},g)}));return function(p,b,S){return c.apply(this,arguments)}}(),F=Ta(),P=F.getMessage("editableTable.action.save","\u4FDD\u5B58"),x=F.getMessage("editableTable.action.delete","\u5220\u9664"),f=F.getMessage("editableTable.action.cancel","\u53D6\u6D88"),Z=(0,a.useCallback)(function(c,g,p){var b=(0,E.Z)({recordKey:c,cancelEditable:v,onCancel:D,onSave:M,editableKeys:l,setEditableRowKeys:d,form:g,saveText:P,cancelText:f,deleteText:x,deletePopconfirmMessage:"\u5220\u9664\u6B64\u884C\uFF1F",editorType:"Map"},p),S=Ue(t.dataSource,b);return t.actionRender?t.actionRender(t.dataSource,b,{save:S[0],delete:S[1],cancel:S[2]}):S},[l&&l.join(","),t.dataSource]);return{editableKeys:l,setEditableRowKeys:d,isEditable:u,actionRender:Z,startEditable:s,cancelEditable:v}}var Oa=Aa,yr=o(57106),ka=o(99683),ja=o(6610),za=o(5991),Na=o(10379),Wa=o(60446),Ua=function(t){(0,Na.Z)(r,t);var e=(0,Wa.Z)(r);function r(){var n;(0,ja.Z)(this,r);for(var l=arguments.length,d=new Array(l),i=0;idiv:not(.ant-pro-form-light-filter) .pro-field{max-width:100%}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-xs{width:104px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-s{width:216px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-sm{width:216px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-m{width:328px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-md{width:328px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-l{width:440px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-lg{width:440px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-xl{width:552px}.ant-pro-form-group-title{margin-bottom:16px;font-weight:700}.ant-pro-form-group-container{flex-wrap:wrap;max-width:100%}.ant-pro-form-group-container>div.ant-space-item{max-width:100%}.ant-pro-form-group-twoLine{display:block;width:100%}.ant-pro-form-group-twoLine .ant-pro-form-group-title{width:100%;margin:8px 0}.ant-pro-form-group-twoLine .ant-pro-form-group-container{padding-left:16px}.ant-pro-form-group-twoLine .ant-form-item,.ant-pro-form-group-twoLine .ant-space-item{width:100%}.ant-pro-form-group-twoLine .ant-form-item-control{display:flex;align-items:center;justify-content:flex-end}.ant-pro-form-group-twoLine .ant-form-item-control-input{align-items:center;justify-content:flex-end}.ant-pro-form-group-twoLine .ant-form-item-control-input-content{flex:none}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-popconfirm{z-index:1060}.ant-pro-card{position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:100%;margin:0;padding:0;background-color:#fff;border-radius:2px}.ant-pro-card-col{width:100%}.ant-pro-card-border{border:1px solid rgba(0,0,0,.06)}.ant-pro-card-hoverable{cursor:pointer;transition:box-shadow .3s,border-color .3s}.ant-pro-card-hoverable:hover{border-color:transparent;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-pro-card-hoverable.ant-pro-card-checked:hover{border-color:var(--ant-primary-color)}.ant-pro-card-checked{background-color:var(--ant-primary-1);border-color:var(--ant-primary-color)}.ant-pro-card-checked:after{position:absolute;top:2px;right:2px;width:0;height:0;border:6px solid var(--ant-primary-color);border-bottom:6px solid transparent;border-left:6px solid transparent;border-top-right-radius:2px;content:""}.ant-pro-card:focus{background-color:var(--ant-primary-1);border-color:var(--ant-primary-color)}.ant-pro-card-size-small .ant-pro-card-header{padding:8px 12px 0}.ant-pro-card-size-small .ant-pro-card-header-border{padding-bottom:8px}.ant-pro-card-size-small .ant-pro-card-title{font-size:14px}.ant-pro-card-size-small .ant-pro-card-body{padding:12px}.ant-pro-card-ghost{background-color:transparent}.ant-pro-card-ghost>.ant-pro-card-header{padding-right:0;padding-bottom:16px;padding-left:0}.ant-pro-card-ghost>.ant-pro-card-body{padding:0;background-color:transparent}.ant-pro-card-split>.ant-pro-card-body{padding:0}.ant-pro-card-split-vertical{border-right:1px solid rgba(0,0,0,.06)}.ant-pro-card-split-horizontal{border-bottom:1px solid rgba(0,0,0,.06)}.ant-pro-card-contain-card>.ant-pro-card-body{display:flex}.ant-pro-card-body-direction-column{flex-direction:column}.ant-pro-card-body-wrap{flex-wrap:wrap}.ant-pro-card-collapse>.ant-pro-card-header{padding-bottom:16px;border-bottom:0}.ant-pro-card-collapse>.ant-pro-card-body{display:none}.ant-pro-card-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px 0}.ant-pro-card-header-border{padding-bottom:16px;border-bottom:1px solid rgba(0,0,0,.06)}.ant-pro-card-header-collapsible{cursor:pointer}.ant-pro-card-title{color:rgba(0,0,0,.85);font-weight:500;font-size:16px}.ant-pro-card-extra{color:rgba(0,0,0,.85)}.ant-pro-card-type-inner .ant-pro-card-header{background-color:#fafafa}.ant-pro-card-collapsible-icon{margin-right:8px;color:rgba(0,0,0,.75)}.ant-pro-card-collapsible-icon :hover{color:var(--ant-primary-color-hover)}.ant-pro-card-collapsible-icon svg{transition:transform .2s}.ant-pro-card-body{display:block;box-sizing:border-box;height:100%;padding:24px}.ant-pro-card-body-center{display:flex;align-items:center;justify-content:center}.ant-pro-card-col-0{display:none}.ant-pro-card-col-24{flex-shrink:0;width:100%}.ant-pro-card-col-23{flex-shrink:0;width:95.83333333%}.ant-pro-card-col-22{flex-shrink:0;width:91.66666667%}.ant-pro-card-col-21{flex-shrink:0;width:87.5%}.ant-pro-card-col-20{flex-shrink:0;width:83.33333333%}.ant-pro-card-col-19{flex-shrink:0;width:79.16666667%}.ant-pro-card-col-18{flex-shrink:0;width:75%}.ant-pro-card-col-17{flex-shrink:0;width:70.83333333%}.ant-pro-card-col-16{flex-shrink:0;width:66.66666667%}.ant-pro-card-col-15{flex-shrink:0;width:62.5%}.ant-pro-card-col-14{flex-shrink:0;width:58.33333333%}.ant-pro-card-col-13{flex-shrink:0;width:54.16666667%}.ant-pro-card-col-12{flex-shrink:0;width:50%}.ant-pro-card-col-11{flex-shrink:0;width:45.83333333%}.ant-pro-card-col-10{flex-shrink:0;width:41.66666667%}.ant-pro-card-col-9{flex-shrink:0;width:37.5%}.ant-pro-card-col-8{flex-shrink:0;width:33.33333333%}.ant-pro-card-col-7{flex-shrink:0;width:29.16666667%}.ant-pro-card-col-6{flex-shrink:0;width:25%}.ant-pro-card-col-5{flex-shrink:0;width:20.83333333%}.ant-pro-card-col-4{flex-shrink:0;width:16.66666667%}.ant-pro-card-col-3{flex-shrink:0;width:12.5%}.ant-pro-card-col-2{flex-shrink:0;width:8.33333333%}.ant-pro-card-col-1{flex-shrink:0;width:4.16666667%}.ant-pro-card-loading{overflow:hidden}.ant-pro-card-loading .ant-pro-card-body{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-pro-card-loading-content{width:100%}.ant-pro-card-loading-content p{margin:0}.ant-pro-card-loading-block{height:14px;margin:4px 0;background:linear-gradient(90deg,rgba(207,216,220,.2),rgba(207,216,220,.4),rgba(207,216,220,.2));background-size:600% 600%;border-radius:2px;animation:card-loading 1.4s ease infinite}@keyframes card-loading{0%,to{background-position:0 50%}50%{background-position:100% 50%}}.ant-pro-core-label-tip{display:inline-flex;align-items:center;max-width:100%}.ant-pro-core-label-tip-icon{display:block;margin-left:4px;cursor:pointer}.ant-pro-core-label-tip-icon:hover{color:var(--ant-primary-color-hover)}.ant-pro-core-label-tip-title{display:inline-flex;flex:1 1}.ant-pro-core-label-tip-subtitle{margin-left:8px;color:rgba(0,0,0,.45);font-weight:400;font-size:14px;white-space:nowrap}.ant-pro-core-label-tip-title-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.ant-pro-card-actions{margin:0;padding:0;list-style:none;background:#fff;border-top:1px solid rgba(0,0,0,.06)}.ant-pro-card-actions:before{display:table;content:""}.ant-pro-card-actions:after{display:table;clear:both;content:""}.ant-pro-card-actions .ant-space{grid-gap:0!important;gap:0!important;width:100%}.ant-pro-card-actions .ant-space-item,.ant-pro-card-actions>li{flex:1 1;float:left;margin:12px 0;color:rgba(0,0,0,.45);text-align:center}.ant-pro-card-actions .ant-space-item>a,.ant-pro-card-actions>li>a{color:rgba(0,0,0,.45);transition:color .3s}.ant-pro-card-actions .ant-space-item>a:hover,.ant-pro-card-actions>li>a:hover{color:var(--ant-primary-color-hover)}.ant-pro-card-actions .ant-space-item>span,.ant-pro-card-actions>li>span{position:relative;display:block;min-width:32px;font-size:14px;line-height:1.5715;cursor:pointer}.ant-pro-card-actions .ant-space-item>span:hover,.ant-pro-card-actions>li>span:hover{color:var(--ant-primary-color-hover);transition:color .3s}.ant-pro-card-actions .ant-space-item>span>.anticon,.ant-pro-card-actions .ant-space-item>span a:not(.ant-btn),.ant-pro-card-actions>li>span>.anticon,.ant-pro-card-actions>li>span a:not(.ant-btn){display:inline-block;width:100%;color:rgba(0,0,0,.45);line-height:22px;transition:color .3s}.ant-pro-card-actions .ant-space-item>span>.anticon:hover,.ant-pro-card-actions .ant-space-item>span a:not(.ant-btn):hover,.ant-pro-card-actions>li>span>.anticon:hover,.ant-pro-card-actions>li>span a:not(.ant-btn):hover{color:var(--ant-primary-color-hover)}.ant-pro-card-actions .ant-space-item>span>.anticon,.ant-pro-card-actions>li>span>.anticon{font-size:16px;line-height:22px}.ant-pro-card-actions .ant-space-item:not(:last-child),.ant-pro-card-actions>li:not(:last-child){border-right:1px solid rgba(0,0,0,.06)}.ant-pro-card-divider{flex:none;width:1px;margin:24px 8px;background-color:rgba(0,0,0,.06)}.ant-pro-card-divider-horizontal{width:auto;height:1px;margin:8px 24px}.ant-pro-card-size-small .ant-pro-card-divider{margin:12px 8px}.ant-pro-card-size-small .ant-pro-card-divider-horizontal{margin:8px 12px}.ant-pro-card-tabs .ant-tabs-top>.ant-tabs-nav{margin-bottom:0}.ant-pro-card-tabs .ant-tabs-top>.ant-tabs-nav .ant-tabs-nav-list{margin-top:8px;padding-left:16px}.ant-pro-card-tabs .ant-tabs-bottom>.ant-tabs-nav{margin-top:0}.ant-pro-card-tabs .ant-tabs-bottom>.ant-tabs-nav .ant-tabs-nav-list{padding-left:16px}.ant-pro-card-tabs .ant-tabs-left .ant-tabs-content-holder .ant-tabs-content .ant-tabs-tabpane{padding-left:0}.ant-pro-card-tabs .ant-tabs-left>.ant-tabs-nav{margin-right:0}.ant-pro-card-tabs .ant-tabs-left>.ant-tabs-nav .ant-tabs-nav-list{padding-top:16px}.ant-pro-card-tabs .ant-tabs-right .ant-tabs-content-holder .ant-tabs-content .ant-tabs-tabpane{padding-right:0}.ant-pro-card-tabs .ant-tabs-right>.ant-tabs-nav .ant-tabs-nav-list{padding-top:16px}.ant-pro-inline-error-form-item-multiple{padding:6px 8px 12px}.ant-pro-inline-error-form-item-progress-success .ant-progress-bg{background-color:var(--ant-success-color)}.ant-pro-inline-error-form-item-progress-error .ant-progress-bg{background-color:var(--ant-error-color)}.ant-pro-inline-error-form-item-progress-warning .ant-progress-bg{background-color:var(--ant-warning-color)}.ant-pro-inline-error-form-item-rule{margin:0;padding:0;list-style:none}.ant-pro-inline-error-form-item-rule-content{display:flex;align-items:center}.ant-pro-inline-error-form-item-rule-content-icon-default{display:flex;align-items:center;justify-content:center;width:14px;height:22px}.ant-pro-inline-error-form-item-rule-content-icon-default-circle{width:6px;height:6px;background-color:rgba(0,0,0,.45);border-radius:4px}.ant-pro-inline-error-form-item-rule-content-icon-loading{color:var(--ant-primary-color)}.ant-pro-inline-error-form-item-rule-content-icon-error{color:var(--ant-error-color)}.ant-pro-inline-error-form-item-rule-content-icon-success{color:var(--ant-success-color)}.ant-pro-inline-error-form-item-rule-content-text{color:rgba(0,0,0,.85)}.ant-pro-table-dropdown{width:auto}.ant-pro-select-item-option-content-light{color:var(--ant-primary-color)}.ant-pro-select-item-option-content{flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-pro-table .ant-pro-table-search{margin-bottom:16px;padding:24px 24px 0;background:#fff}.ant-pro-table .ant-pro-table-search-ghost{background:transparent}.ant-pro-table .ant-pro-table-search:before{display:table;content:""}.ant-pro-table .ant-pro-table-search:after{display:table;clear:both;content:""}.ant-pro-table .ant-pro-table-search.ant-pro-table-form{margin:0;padding:0 16px;overflow:unset}.ant-pro-table .ant-pro-table-search-light{margin-bottom:0;padding:16px 0}.ant-pro-table .ant-pro-table-search-form-option .ant-form-item{margin:0}.ant-pro-table .ant-pro-table-search-form-option .ant-form-item-label{opacity:0}.ant-pro-table .ant-pro-table-search-form-option .ant-form-item-control-input{justify-content:flex-start}@media (max-width:575px){.ant-pro-table .ant-pro-table-search{height:auto!important;padding-bottom:24px}.ant-pro-table .ant-pro-table-search .ant-form-item-label{min-width:80px;text-align:left}}.ant-pro-form-light-filter{line-height:30px}.ant-pro-form-light-filter:before{display:block;height:0;visibility:hidden;content:"."}.ant-pro-form-light-filter-small{line-height:1.5715}.ant-pro-form-light-filter-container{display:flex;flex-wrap:wrap;margin-top:-8px;margin-right:-4px}.ant-pro-form-light-filter-item{margin-top:8px;white-space:nowrap}.ant-pro-form-light-filter-item:not(:last-child){margin-right:8px}.ant-pro-form-light-filter-formlabel{margin-bottom:2px}.ant-pro-form-light-filter-line{min-width:198px}.ant-pro-form-light-filter-line .ant-form-item{flex-direction:column;margin-bottom:0}.ant-pro-form-light-filter-line:not(:first-child){margin-top:16px;margin-bottom:8px}.ant-pro-form-light-filter .ant-form-item{margin-bottom:0}.ant-pro-form-light-filter-collapse-icon{width:32px;height:32px;line-height:35px;border-radius:50%}.ant-pro-form-light-filter-effective .ant-pro-form-light-filter-collapse-icon{background-color:rgba(0,0,0,.04)}.ant-pro-steps-form-container{width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:520px;max-width:100%;margin:auto}.ant-pro-steps-form-steps-container{max-width:1160px;margin:auto}.ant-pro-steps-form-steps-container .ant-steps-vertical{height:100%}.ant-pro-steps-form-step{display:none;margin-top:32px}.ant-pro-steps-form-step-active{display:block}.ant-pro-steps-form-step>form{max-width:100%}.pro-table-tooltip-text span{color:#fff}.ant-pro-table{z-index:1}.ant-pro-table:not(:root):-webkit-full-screen{min-height:100vh;overflow:auto;background:#fff}.ant-pro-table:not(:root):-ms-fullscreen{min-height:100vh;overflow:auto;background:#fff}.ant-pro-table:not(:root):fullscreen{min-height:100vh;overflow:auto;background:#fff}.ant-pro-table-extra{margin-bottom:16px}.ant-pro-table-polling .ant-pro-table-list-toolbar-setting-item .anticon.anticon-reload{transform:rotate(0deg);animation:turn 1s linear infinite}.ant-pro-table td.ant-table-cell>a{font-size:14px}.ant-pro-table .ant-table .ant-table-tbody .ant-table-wrapper:only-child .ant-table{margin:0}.ant-pro-table .ant-table.ant-table-middle .ant-pro-table{margin:-12px -8px}@keyframes turn{0%{transform:rotate(0deg)}25%{transform:rotate(90deg)}50%{transform:rotate(180deg)}75%{transform:rotate(270deg)}to{transform:rotate(1turn)}}.ant-pro-table-toolbar{display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 24px}.ant-pro-table-toolbar-option{display:flex;align-items:center;justify-content:flex-end}.ant-pro-table-toolbar-title{flex:1 1;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;line-height:24px;opacity:.85}@media (max-width:480px){.ant-pro-table .ant-table{width:100%;overflow-x:auto}.ant-pro-table .ant-table-tbody>tr>td,.ant-pro-table .ant-table-tbody>tr>th,.ant-pro-table .ant-table-thead>tr>td,.ant-pro-table .ant-table-thead>tr>th{white-space:pre}.ant-pro-table .ant-table-tbody>tr>td>span,.ant-pro-table .ant-table-tbody>tr>th>span,.ant-pro-table .ant-table-thead>tr>td>span,.ant-pro-table .ant-table-thead>tr>th>span{display:block}}@media (max-width:575px){.ant-pro-table-toolbar{flex-direction:column;align-items:flex-start;justify-content:flex-start;height:auto;margin-bottom:16px;margin-left:16px;padding:16px 8px 8px;line-height:normal}.ant-pro-table-toolbar-title{margin-bottom:16px}.ant-pro-table-toolbar-option{display:flex;justify-content:space-between;width:100%}.ant-pro-table-toolbar-default-option{display:flex;flex:1 1;align-items:center;justify-content:flex-end}}.ant-pro-table-column-setting{width:auto}.ant-pro-table-column-setting-title{display:flex;align-items:center;justify-content:space-between;height:32px}.ant-pro-table-column-setting-overlay .ant-popover-inner-content{width:200px;padding:0 0 8px}.ant-pro-table-column-setting-overlay .ant-tree-node-content-wrapper:hover{background-color:transparent}.ant-pro-table-column-setting-overlay .ant-tree-draggable-icon{cursor:-webkit-grab;cursor:grab}.ant-pro-table-column-setting-overlay .ant-tree-treenode{align-items:center}.ant-pro-table-column-setting-overlay .ant-tree-treenode:hover{background-color:var(--ant-primary-1)}.ant-pro-table-column-setting-overlay .ant-tree-treenode:hover .ant-pro-table-column-setting-list-item-option{display:block}.ant-pro-table-column-setting-overlay .ant-tree-treenode .ant-tree-checkbox{top:0;margin:0 4px 0 0}.ant-pro-table-column-setting-list{display:flex;flex-direction:column;width:100%;padding-top:8px}.ant-pro-table-column-setting-list.ant-pro-table-column-setting-list-group{padding-top:0}.ant-pro-table-column-setting-list-title{margin-top:6px;margin-bottom:6px;padding-left:24px;color:rgba(0,0,0,.45);font-size:12px}.ant-pro-table-column-setting-list-item{display:flex;align-items:center}.ant-pro-table-column-setting-list-item-title{flex:1 1}.ant-pro-table-column-setting-list-item-option{display:none;float:right;cursor:pointer}.ant-pro-table-column-setting-list-item-option>span>span.anticon{color:var(--ant-primary-color)}.ant-pro-table-column-setting-list-item-option>span+span{margin-left:8px}.ant-pro-table-list-toolbar{overflow-x:auto;line-height:1}.ant-pro-table-list-toolbar-container{display:flex;justify-content:space-between;padding:16px 0}.ant-pro-table-list-toolbar-container-mobile{flex-direction:column}.ant-pro-table-list-toolbar-title{display:flex;align-items:center;justify-content:flex-start;color:rgba(0,0,0,.85);font-weight:500;font-size:16px}.ant-pro-table-list-toolbar-search:not(:last-child){display:flex;align-items:center;justify-content:flex-start}.ant-pro-table-list-toolbar-setting-item{margin:0 4px;color:rgba(0,0,0,.75);font-size:16px;cursor:pointer}.ant-pro-table-list-toolbar-setting-item>span{display:block;width:100%;height:100%}.ant-pro-table-list-toolbar-setting-item:hover{color:var(--ant-primary-color-hover)}.ant-pro-table-list-toolbar-left{display:flex;align-items:center;justify-content:flex-start}.ant-pro-table-list-toolbar-right{display:flex;justify-content:flex-end}.ant-pro-table-list-toolbar-extra-line{margin-bottom:16px}.ant-pro-table-list-toolbar-filter{display:flex;align-items:center}.ant-pro-table-list-toolbar-filter:not(:last-child){margin-right:16px}.ant-pro-table-list-toolbar-filter div.ant-pro-table-search{margin:0;padding:0}.ant-pro-table-list-toolbar-inline-menu-item{display:inline-block;margin-right:24px;cursor:pointer;opacity:.75}.ant-pro-table-list-toolbar-inline-menu-item-active{font-weight:700;opacity:1}.ant-pro-table-list-toolbar-dropdownmenu-label{font-weight:700;font-size:16px;text-align:center;cursor:pointer}.ant-pro-table-list-toolbar .ant-tabs-top>.ant-tabs-nav{margin-bottom:0}.ant-pro-table-list-toolbar .ant-tabs-top>.ant-tabs-nav:before{border-bottom:0}.ant-pro-table-list-toolbar .ant-tabs-top>.ant-tabs-nav .ant-tabs-nav-list{margin-top:0}.ant-pro-table-list-toolbar .ant-tabs-top>.ant-tabs-nav .ant-tabs-nav-list .ant-tabs-tab{padding-top:0}@media (max-width:575px){.ant-pro-table-list-toolbar-container{display:flex;flex-wrap:wrap}.ant-pro-table-list-toolbar-left{margin-bottom:16px}}.ant-pro-table-alert{margin-bottom:16px}.ant-pro-table-alert .ant-alert.ant-alert-no-icon{padding:12px 24px}.ant-pro-table-alert-info{display:flex;align-items:center;transition:all .3s}.ant-pro-table-alert-info-content{flex:1 1}.ant-pro-table-alert-info-option{min-width:48px;padding-left:16px} \ No newline at end of file diff --git a/6861.a6982563.async.js b/6861.a6982563.async.js new file mode 100644 index 00000000..35245f63 --- /dev/null +++ b/6861.a6982563.async.js @@ -0,0 +1,4 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6861],{61768:function(mt,Le,d){"use strict";var U=d(22122),te=d(28991),me=d(85061),O=d(81253),ne=d(47673),re=d(4107),ze=d(49111),oe=d(19650),ce=d(31194),Ke=d(50344),J=d(67294),ee=d(71436),Re=d(2514),c=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue"],de=["children","space","valuePropName"],r={space:oe.Z,group:re.Z.Group};function Xe($){var ae=arguments.length<=1?void 0:arguments[1];return ae&&ae.target&&$ in ae.target?ae.target[$]:ae}var Ie=function(ae){var Ce=ae.children,ye=ae.value,ue=ye===void 0?[]:ye,we=ae.valuePropName,ke=ae.onChange,be=ae.fieldProps,$e=ae.space,Zt=ae.type,tt=Zt===void 0?"space":Zt,ve=ae.transform,nt=ae.convertValue,Vt=(0,O.Z)(ae,c),ut=(0,ce.J)(function(Ze,at){var De,he=(0,me.Z)(ue);he[at]=Xe(we||"value",Ze),ke==null||ke(he),be==null||(De=be.onChange)===null||De===void 0||De.call(be,he)}),St=-1,jt=(0,Ke.Z)(Ce).map(function(Ze){if(J.isValidElement(Ze)){var at,De,he;St+=1;var Ee=St,We=(Ze==null||(at=Ze.type)===null||at===void 0?void 0:at.displayName)==="ProFormComponent"||(Ze==null||(De=Ze.props)===null||De===void 0?void 0:De.readonly),Wt=We?(0,te.Z)((0,te.Z)({key:Ee,ignoreFormItem:!0},Ze.props||{}),{},{fieldProps:(0,te.Z)((0,te.Z)({},Ze==null||(he=Ze.props)===null||he===void 0?void 0:he.fieldProps),{},{onChange:function(){ut(arguments.length<=0?void 0:arguments[0],Ee)}}),value:ue==null?void 0:ue[Ee],onChange:void 0}):(0,te.Z)((0,te.Z)({key:Ee},Ze.props||{}),{},{value:ue==null?void 0:ue[Ee],onChange:function(Ft){var Tt,Rt;ut(Ft,Ee),(Tt=(Rt=Ze.props).onChange)===null||Tt===void 0||Tt.call(Rt,Ft)}});return J.cloneElement(Ze,Wt)}return Ze}),Ue=r[tt],Ut=(0,Re.zx)(Vt),Ae=Ut.RowWrapper,xt=(0,J.useMemo)(function(){return(0,te.Z)({},tt==="group"?{compact:!0}:{})},[tt]),At=(0,J.useCallback)(function(Ze){var at=Ze.children;return J.createElement(Ue,(0,U.Z)({},xt,$e,{align:"start"}),at)},[Ue,$e,xt]);return J.createElement(Ae,{Wrapper:At},jt)},Y=J.forwardRef(function($,ae){var Ce=$.children,ye=$.space,ue=$.valuePropName,we=(0,O.Z)($,de);return(0,J.useImperativeHandle)(ae,function(){return{}}),J.createElement(Ie,(0,U.Z)({space:ye,valuePropName:ue},we.fieldProps,{onChange:void 0},we),Ce)}),le=(0,ee.G)(Y);Le.Z=le},14487:function(mt,Le,d){"use strict";d.d(Le,{Z:function(){return Oo}});var U=d(55507),te=d(92137),me=d(90484),O=d(28481),ne=d(84305),re=d(75901),ze=d(20228),oe=d(11382),ce=d(66456),Ke=d(34424),J=d(22122),ee=d(96156),Re=d(85061),c=d(28991),de=d(81253),r=d(67294),Xe=d(18106),Ie=d(51752),Y=d(6999),le=d(25378);function $(){return(0,le.Z)()}var ae={useBreakpoint:$},Ce=d(8812),ye=d(22385),ue=d(61580),we=d(68628),ke=d(94184),be=d.n(ke),$e=d(5522),Zt=function(e){var a=e.label,n=e.tooltip,l=e.ellipsis,o=e.subTitle,i=(0,r.useContext)(re.ZP.ConfigContext),u=i.getPrefixCls;if(!n&&!o)return r.createElement(r.Fragment,null,a);var s=u("pro-core-label-tip"),v=typeof n=="string"||r.isValidElement(n)?{title:n}:n,C=(v==null?void 0:v.icon)||r.createElement(we.Z,null);return r.createElement("div",{className:s,onMouseDown:function(S){return S.stopPropagation()},onMouseLeave:function(S){return S.stopPropagation()},onMouseMove:function(S){return S.stopPropagation()}},r.createElement("div",{className:be()("".concat(s,"-title"),(0,ee.Z)({},"".concat(s,"-title-ellipsis"),l))},a),o&&r.createElement("div",{className:"".concat(s,"-subtitle")},o),n&&r.createElement(ue.Z,v,r.createElement("span",{className:"".concat(s,"-icon")},C)))},tt=r.memo(Zt),ve=d(97435),nt=d(76632),Vt=d(48636),ut=function(e){var a=e.actions,n=e.prefixCls;return Array.isArray(a)&&(a==null?void 0:a.length)?r.createElement("ul",{className:"".concat(n,"-actions")},a.map(function(l,o){return r.createElement("li",{style:{width:"".concat(100/a.length,"%")},key:"action-".concat(o)},r.createElement("span",null,l))})):a?r.createElement("ul",{className:"".concat(n,"-actions")},a):null},St=ut,jt=d(13062),Ue=d(71230),Ut=d(89032),Ae=d(15746),xt=d(83432),At=function(e){var a=e.style,n=e.prefix;return r.createElement("div",{className:"".concat(n,"-loading-content"),style:a},r.createElement(Ue.Z,{gutter:8},r.createElement(Ae.Z,{span:22},r.createElement("div",{className:"".concat(n,"-loading-block")}))),r.createElement(Ue.Z,{gutter:8},r.createElement(Ae.Z,{span:8},r.createElement("div",{className:"".concat(n,"-loading-block")})),r.createElement(Ae.Z,{span:15},r.createElement("div",{className:"".concat(n,"-loading-block")}))),r.createElement(Ue.Z,{gutter:8},r.createElement(Ae.Z,{span:6},r.createElement("div",{className:"".concat(n,"-loading-block")})),r.createElement(Ae.Z,{span:18},r.createElement("div",{className:"".concat(n,"-loading-block")}))),r.createElement(Ue.Z,{gutter:8},r.createElement(Ae.Z,{span:13},r.createElement("div",{className:"".concat(n,"-loading-block")})),r.createElement(Ae.Z,{span:9},r.createElement("div",{className:"".concat(n,"-loading-block")}))),r.createElement(Ue.Z,{gutter:8},r.createElement(Ae.Z,{span:4},r.createElement("div",{className:"".concat(n,"-loading-block")})),r.createElement(Ae.Z,{span:3},r.createElement("div",{className:"".concat(n,"-loading-block")})),r.createElement(Ae.Z,{span:16},r.createElement("div",{className:"".concat(n,"-loading-block")}))))},Ze=At,at=d(86919),De=["className","style","bodyStyle","headStyle","title","subTitle","extra","tip","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],he=ae.useBreakpoint,Ee=r.forwardRef(function(t,e){var a,n,l,o=t.className,i=t.style,u=t.bodyStyle,s=u===void 0?{}:u,v=t.headStyle,C=v===void 0?{}:v,g=t.title,S=t.subTitle,f=t.extra,h=t.tip,E=t.wrap,b=E===void 0?!1:E,P=t.layout,K=t.loading,T=t.gutter,D=T===void 0?0:T,k=t.tooltip,F=t.split,I=t.headerBordered,B=I===void 0?!1:I,M=t.bordered,x=M===void 0?!1:M,m=t.children,R=t.size,w=t.actions,p=t.ghost,y=p===void 0?!1:p,Z=t.hoverable,L=Z===void 0?!1:Z,N=t.direction,A=t.collapsed,j=t.collapsible,z=j===void 0?!1:j,W=t.collapsibleIconRender,G=t.defaultCollapsed,H=G===void 0?!1:G,V=t.onCollapse,q=t.checked,fe=t.onChecked,Se=t.tabs,ie=t.type,pe=(0,de.Z)(t,De),Fe=(0,r.useContext)(re.ZP.ConfigContext),Me=Fe.getPrefixCls,Be=he(),dt=(0,nt.Z)(H,{value:A,onChange:V}),ct=(0,O.Z)(dt,2),je=ct[0],Et=ct[1],Je=["xxl","xl","lg","md","sm","xs"],Lt=function(se){var Ne=[0,0],Ye=Array.isArray(se)?se:[se,0];return Ye.forEach(function(rt,vt){if((0,me.Z)(rt)==="object")for(var qe=0;qe=0&&qe<=24),Ye));return r.createElement("div",{style:(0,c.Z)((0,c.Z)((0,c.Z)({},it),ot(Pt>0,{paddingRight:Pt/2,paddingLeft:Pt/2})),ot(pt>0,{paddingTop:pt/2,paddingBottom:pt/2})),key:"pro-card-col-".concat((He==null?void 0:He.key)||se),className:An},r.cloneElement(He))}return He}),nn=be()("".concat(Q),o,(a={},(0,ee.Z)(a,"".concat(Q,"-border"),x),(0,ee.Z)(a,"".concat(Q,"-contain-card"),$t),(0,ee.Z)(a,"".concat(Q,"-loading"),K),(0,ee.Z)(a,"".concat(Q,"-split"),F==="vertical"||F==="horizontal"),(0,ee.Z)(a,"".concat(Q,"-ghost"),y),(0,ee.Z)(a,"".concat(Q,"-hoverable"),L),(0,ee.Z)(a,"".concat(Q,"-size-").concat(R),R),(0,ee.Z)(a,"".concat(Q,"-type-").concat(ie),ie),(0,ee.Z)(a,"".concat(Q,"-collapse"),je),(0,ee.Z)(a,"".concat(Q,"-checked"),q),a)),rn=be()("".concat(Q,"-body"),(n={},(0,ee.Z)(n,"".concat(Q,"-body-center"),P==="center"),(0,ee.Z)(n,"".concat(Q,"-body-direction-column"),F==="horizontal"||N==="column"),(0,ee.Z)(n,"".concat(Q,"-body-wrap"),b&&$t),n)),bn=(0,c.Z)((0,c.Z)((0,c.Z)({},ot(Pt>0,{marginRight:-Pt/2,marginLeft:-Pt/2})),ot(pt>0,{marginTop:-pt/2,marginBottom:-pt/2})),s),Sn=r.isValidElement(K)?K:r.createElement(Ze,{prefix:Q,style:s.padding===0||s.padding==="0px"?{padding:24}:void 0}),Te=z&&A===void 0&&(W?W({collapsed:je}):r.createElement(Ce.Z,{rotate:je?void 0:90,className:"".concat(Q,"-collapsible-icon")}));return r.createElement("div",(0,J.Z)({className:nn,style:i,ref:e,onClick:function(se){var Ne;fe==null||fe(se),pe==null||(Ne=pe.onClick)===null||Ne===void 0||Ne.call(pe,se)}},(0,ve.Z)(pe,["prefixCls","colSpan"])),(g||f||Te)&&r.createElement("div",{className:be()("".concat(Q,"-header"),(l={},(0,ee.Z)(l,"".concat(Q,"-header-border"),B||ie==="inner"),(0,ee.Z)(l,"".concat(Q,"-header-collapsible"),Te),l)),style:C,onClick:function(){Te&&Et(!je)}},r.createElement("div",{className:"".concat(Q,"-title")},Te,r.createElement(tt,{label:g,tooltip:k||h,subTitle:S})),f&&r.createElement("div",{className:"".concat(Q,"-extra")},f)),Se?r.createElement("div",{className:"".concat(Q,"-tabs")},r.createElement(Ie.Z,(0,J.Z)({onChange:Se.onChange},Se),K?Sn:m)):r.createElement("div",{className:rn,style:bn},K?Sn:pn),r.createElement(St,{actions:w,prefixCls:Q}))}),We=Ee,Wt=d(71529),Ot=function(e){var a=(0,r.useContext)(re.ZP.ConfigContext),n=a.getPrefixCls,l=n("pro-card-divider"),o=e.className,i=e.style,u=i===void 0?{}:i,s=e.type,v=be()(l,o,(0,ee.Z)({},"".concat(l,"-").concat(s),s));return r.createElement("div",{className:v,style:u})},Ft=Ot,Tt=d(54783),Rt=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"],Yt=function(e){var a=e.key,n=e.tab,l=e.tabKey,o=e.disabled,i=e.destroyInactiveTabPane,u=e.children,s=e.className,v=e.style,C=e.cardProps,g=(0,de.Z)(e,Rt),S=(0,r.useContext)(re.ZP.ConfigContext),f=S.getPrefixCls,h=f("pro-card-tabpane"),E=be()(h,s);return r.createElement(Ie.Z.TabPane,(0,J.Z)({key:a,tabKey:l,tab:n,className:E,style:v,disabled:o,destroyInactiveTabPane:i},g),r.createElement(We,C,u))},Gt=Yt,Mt=function(e){return r.createElement(We,(0,J.Z)({bodyStyle:{padding:0}},e))},Bt=We;Bt.isProCard=!0,Bt.Divider=Ft,Bt.TabPane=Gt,Bt.Group=Mt;var Qt=Bt,Cn=Qt,En=d(952),_e=d(80392),Bn=d(34792),Xt=d(48086),zn=d(62350),kn=d(75443),$n=d(99809),st=d(7085),Ve=d(84164),Oe=d(88306),Qe=d(8880),Ge=d(80334),xe=d(70460);function lt(t,e){var a=(0,xe.J)(t),n=(0,r.useRef)(),l=(0,r.useCallback)(function(){n.current&&(clearTimeout(n.current),n.current=null)},[]),o=(0,r.useCallback)((0,te.Z)((0,U.Z)().mark(function i(){var u,s,v,C=arguments;return(0,U.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:for(u=C.length,s=new Array(u),v=0;v1&&(k=(0,$n.Z)(e),F=k.slice(1),I=(0,Oe.Z)(D,F),(0,Qe.Z)(D,F,I)),B=K?(0,Qe.Z)({},T,D,!0):D,m.next=13,a==null?void 0:a(e,pr({},l,B),l,i);case 13:return M=m.sent,f(!1),m.abrupt("return",M);case 18:return m.prev=18,m.t0=m.catch(2),console.log(m.t0),f(!1),m.abrupt("return",null);case 23:case"end":return m.stop()}},E,null,[[2,18]])}));return function(E){return h.apply(this,arguments)}}()},S?r.createElement(st.Z,{style:{marginRight:8}}):null,o||"\u4FDD\u5B58")}var Pr=function(e){var a=e.recordKey,n=e.onDelete,l=e.row,o=e.children,i=e.deletePopconfirmMessage,u=e.cancelEditable,s=gt(function(){return!1}),v=(0,O.Z)(s,2),C=v[0],g=v[1],S=function(){var f=(0,te.Z)((0,U.Z)().mark(function h(){var E;return(0,U.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.prev=0,g(!0),P.next=4,n==null?void 0:n(a,l);case 4:return E=P.sent,g(!1),setTimeout(function(){u(a)},0),P.abrupt("return",E);case 10:return P.prev=10,P.t0=P.catch(0),console.log(P.t0),g(!1),P.abrupt("return",null);case 15:case"end":return P.stop()}},h,null,[[0,10]])}));return function(){return f.apply(this,arguments)}}();return o!==!1?r.createElement(kn.Z,{key:"delete",title:i,onConfirm:S},r.createElement("a",null,C?r.createElement(st.Z,{style:{marginRight:8}}):null,o||"\u5220\u9664")):null},Zr=function(e){var a=e.recordKey,n=e.tableName,l=e.newLineConfig,o=e.form,i=e.editorType,u=e.onCancel,s=e.cancelEditable,v=e.row,C=e.cancelText,g=(0,r.useContext)(Ct);return r.createElement("a",{key:"cancel",onClick:function(){var S=(0,te.Z)((0,U.Z)().mark(function f(h){var E,b,P,K,T,D;return(0,U.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return h.stopPropagation(),h.preventDefault(),b=i==="Map",P=[n,a].flat(1).filter(Boolean),K=((E=g.getFieldFormatValue)===null||E===void 0?void 0:E.call(g,P))||o.getFieldValue(P),T=b?(0,Qe.Z)({},P,K):K,F.next=8,u==null?void 0:u(a,T,v,l);case 8:return D=F.sent,s(a),o.setFieldsValue((0,ee.Z)({},a,b?(0,Oe.Z)(v,P):v)),F.abrupt("return",D);case 12:case"end":return F.stop()}},f)}));return function(f){return S.apply(this,arguments)}}()},C||"\u53D6\u6D88")};function xr(t,e){var a=e.recordKey,n=e.newLineConfig,l=e.saveText,o=e.deleteText;return[r.createElement(Er,(0,J.Z)({key:"save"},e,{row:t}),l),(n==null?void 0:n.options.recordKey)!==a?r.createElement(Pr,(0,J.Z)({key:"delete"},e,{row:t}),o):null,r.createElement(Zr,(0,J.Z)({key:"cancel"},e,{row:t}))]}function Fr(t){var e=(0,r.useState)(void 0),a=(0,O.Z)(e,2),n=a[0],l=a[1],o=(0,r.useRef)(new Map),i=(0,r.useRef)(void 0);ln(function(){var y=new Map,Z=function L(N){N==null||N.forEach(function(A,j){var z;y.set(j.toString(),ht(t.getRowKey(A,-1))),y.set((z=ht(t.getRowKey(A,-1)))===null||z===void 0?void 0:z.toString(),j.toString()),t.childrenColumnName&&A[t.childrenColumnName]&&L(A[t.childrenColumnName])})};Z(t.dataSource),o.current=y},[t.dataSource]),i.current=n;var u=t.type||"single",s=(0,Ve.Z)(t.dataSource,"children",t.getRowKey),v=(0,O.Z)(s,1),C=v[0],g=(0,nt.Z)([],{value:t.editableKeys,onChange:t.onChange?function(y){var Z;t==null||(Z=t.onChange)===null||Z===void 0||Z.call(t,y.filter(function(L){return L!==void 0}),y.map(function(L){return C(L)}).filter(function(L){return L!==void 0}))}:void 0}),S=(0,O.Z)(g,2),f=S[0],h=S[1],E=(0,r.useMemo)(function(){var y=u==="single"?f==null?void 0:f.slice(0,1):f;return new Set(y)},[(f||[]).join(","),u]),b=(0,on.Z)(f),P=(0,xe.J)(function(y){var Z,L,N,A,j=(Z=t.getRowKey(y,y.index))===null||Z===void 0||(L=Z.toString)===null||L===void 0?void 0:L.call(Z),z=(N=t.getRowKey(y,-1))===null||N===void 0||(A=N.toString)===null||A===void 0?void 0:A.call(N),W=f.map(function(V){return V==null?void 0:V.toString()}),G=(b==null?void 0:b.map(function(V){return V==null?void 0:V.toString()}))||[],H=t.tableName&&!!(G==null?void 0:G.includes(z))||!!(G==null?void 0:G.includes(j));return{recordKey:z,isEditable:t.tableName&&(W==null?void 0:W.includes(z))||(W==null?void 0:W.includes(j)),preIsEditable:H}}),K=(0,xe.J)(function(y){return E.size>0&&u==="single"&&t.onlyOneLineEditorAlertMessage!==!1?(Xt.ZP.warn(t.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(E.add(y),h(Array.from(E)),!0)}),T=(0,xe.J)(function(y,Z){var L=ht(y).toString(),N=o.current.get(L);if(!E.has(L)&&N&&(Z!=null?Z:!0)&&t.tableName){T(N,!1);return}return n&&n.options.recordKey===y&&l(void 0),E.delete(L),E.delete(ht(y)),h(Array.from(E)),!0}),D=wt((0,te.Z)((0,U.Z)().mark(function y(){var Z,L,N,A,j=arguments;return(0,U.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:for(L=j.length,N=new Array(L),A=0;A0&&u==="single"&&t.onlyOneLineEditorAlertMessage!==!1)return Xt.ZP.warn(t.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var L=t.getRowKey(y,-1);if(!L)throw(0,Ge.ET)(!!L,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key + https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(E.add(L),h(Array.from(E)),(Z==null?void 0:Z.newRecordType)==="dataSource"||t.tableName){var N,A={data:t.dataSource,getRowKey:t.getRowKey,row:(0,c.Z)((0,c.Z)({},y),{},{map_row_parentKey:(Z==null?void 0:Z.parentKey)?(N=ht(Z==null?void 0:Z.parentKey))===null||N===void 0?void 0:N.toString():void 0}),key:L,childrenColumnName:t.childrenColumnName||"children"};t.setDataSource(qt(A,(Z==null?void 0:Z.position)==="top"?"top":"update"))}else l({defaultValue:y,options:(0,c.Z)((0,c.Z)({},Z),{},{recordKey:L})});return!0}),I=(0,_e.YB)(),B=(t==null?void 0:t.saveText)||I.getMessage("editableTable.action.save","\u4FDD\u5B58"),M=(t==null?void 0:t.deleteText)||I.getMessage("editableTable.action.delete","\u5220\u9664"),x=(t==null?void 0:t.cancelText)||I.getMessage("editableTable.action.cancel","\u53D6\u6D88"),m=(0,xe.J)(function(){var y=(0,te.Z)((0,U.Z)().mark(function Z(L,N,A,j){var z,W,G,H,V,q,fe;return(0,U.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return H=j||i.current||{},V=H.options,ie.next=3,t==null||(z=t.onSave)===null||z===void 0?void 0:z.call(t,L,N,A,j);case 3:if(q=ie.sent,T(L),!(!(V==null?void 0:V.parentKey)&&(V==null?void 0:V.recordKey)===L)){ie.next=8;break}return(V==null?void 0:V.position)==="top"?t.setDataSource([N].concat((0,Re.Z)(t.dataSource))):t.setDataSource([].concat((0,Re.Z)(t.dataSource),[N])),ie.abrupt("return",q);case 8:return fe={data:t.dataSource,getRowKey:t.getRowKey,row:V?(0,c.Z)((0,c.Z)({},N),{},{map_row_parentKey:(W=ht((G=V==null?void 0:V.parentKey)!==null&&G!==void 0?G:""))===null||W===void 0?void 0:W.toString()}):N,key:L,childrenColumnName:t.childrenColumnName||"children"},t.setDataSource(qt(fe,(V==null?void 0:V.position)==="top"?"top":"update")),ie.abrupt("return",q);case 11:case"end":return ie.stop()}},Z)}));return function(Z,L,N,A){return y.apply(this,arguments)}}()),R=(0,xe.J)(function(){var y=(0,te.Z)((0,U.Z)().mark(function Z(L,N){var A,j,z;return(0,U.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return j={data:t.dataSource,getRowKey:t.getRowKey,row:N,key:L,childrenColumnName:t.childrenColumnName||"children"},G.next=3,t==null||(A=t.onDelete)===null||A===void 0?void 0:A.call(t,L,N);case 3:return z=G.sent,t.setDataSource(qt(j,"delete")),G.abrupt("return",z);case 6:case"end":return G.stop()}},Z)}));return function(Z,L){return y.apply(this,arguments)}}()),w=(0,xe.J)(function(){var y=(0,te.Z)((0,U.Z)().mark(function Z(L,N,A,j){var z,W;return(0,U.Z)().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,t==null||(z=t.onCancel)===null||z===void 0?void 0:z.call(t,L,N,A,j);case 2:return W=H.sent,H.abrupt("return",W);case 4:case"end":return H.stop()}},Z)}));return function(Z,L,N,A){return y.apply(this,arguments)}}()),p=function(Z,L){var N=t.getRowKey(Z,Z.index),A={saveText:B,cancelText:x,deleteText:M,addEditRecord:F,recordKey:N,cancelEditable:T,index:Z.index,tableName:t.tableName,newLineConfig:n,onCancel:w,onDelete:R,onSave:m,form:L,editableKeys:f,setEditableRowKeys:h,deletePopconfirmMessage:t.deletePopconfirmMessage||"\u5220\u9664\u6B64\u884C\uFF1F"},j=xr(Z,A);return t.actionRender?t.actionRender(Z,A,{save:j[0],delete:j[1],cancel:j[2]}):j};return{editableKeys:f,setEditableRowKeys:h,isEditable:P,actionRender:p,startEditable:K,cancelEditable:T,addEditRecord:F,newLineRecord:n,preEditableKeys:b,onValuesChange:k}}var Tr=Fr,Rr=function(e){var a={};if(Object.keys(e||{}).forEach(function(n){e[n]!==void 0&&(a[n]=e[n])}),!(Object.keys(a).length<1))return a},kt=Rr,Vo=d(57106),Mr=d(99683),un=d(6610),sn=d(5991),dn=d(10379),cn=d(60446),wr=function(t){(0,dn.Z)(a,t);var e=(0,cn.Z)(a);function a(){var n;(0,un.Z)(this,a);for(var l=arguments.length,o=new Array(l),i=0;ih-1)&&!!w&&K>=24;T+=1;var W=r.isValidElement(R)&&(R.key||"".concat((L=R.props)===null||L===void 0?void 0:L.name))||w;return r.isValidElement(R)&&z?e.preserve?{itemDom:r.cloneElement(R,{hidden:!0,key:W||w}),hidden:!0,colSpan:A}:{itemDom:null,colSpan:A,hidden:!0}:{itemDom:R,colSpan:A,hidden:!1}}),B=I.map(function(R,w){var p,y,Z=R.itemDom,L=R.colSpan,N=Z==null||(p=Z.props)===null||p===void 0?void 0:p.hidden;if(N)return Z;var A=r.isValidElement(Z)&&(Z.key||"".concat((y=Z.props)===null||y===void 0?void 0:y.name))||w;24-F%2417&&p(A.width)}},r.createElement(xn.I,(0,J.Z)({isKeyPressSubmit:!0,preserve:D},B,{className:be()(x,B.className),onReset:f,style:P,layout:y.layout,fieldProps:{style:{width:"100%"}},formItemProps:L,groupProps:{titleStyle:{display:"inline-block",marginRight:16}},contentRender:function(A,j,z){return r.createElement(ba,{spanSize:y,collapsed:e,form:z,collapseRender:S,defaultCollapsed:l,onCollapse:h,optionRender:g,submitter:j,items:A,split:K,resetText:t.resetText,searchText:t.searchText,searchGutter:s,preserve:D,ignoreRules:k,showLength:Z,showHiddenNum:I})}})))}var Yn=d(65554),Ea=["steps","columns","forceUpdate","grid"],Pa=function(e){var a=e.steps,n=e.columns,l=e.forceUpdate,o=e.grid,i=(0,de.Z)(e,Ea),u=(0,jn.Z)(i),s=(0,r.useCallback)(function(C){var g,S;(g=(S=u.current).onCurrentChange)===null||g===void 0||g.call(S,C),l([])},[l,u]),v=(0,r.useMemo)(function(){return a==null?void 0:a.map(function(C,g){return r.createElement(_n,(0,J.Z)({grid:o},C,{key:g,layoutType:"StepForm",columns:n[g]}))})},[n,o,a]);return r.createElement(Yn.L,(0,J.Z)({},i,{onCurrentChange:s}),v)},Za=Pa,xa=function(e){var a=e.children;return r.createElement(r.Fragment,null,a)},Fa=xa,Qn=d(97462),Ta=function(e,a){var n=a.genItems;if(e.valueType==="dependency"){var l,o=(l=e.getFieldProps)===null||l===void 0?void 0:l.call(e);return(0,Ge.ET)(Array.isArray(o==null?void 0:o.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),(0,Ge.ET)(typeof e.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray(o==null?void 0:o.name)?r.createElement(Qn.Z,(0,J.Z)({},o,{key:e.key}),function(i){return!e.columns||typeof e.columns!="function"?null:n(e.columns(i))}):null}return!0},Ra=function(e){if(e.valueType==="divider"){var a;return r.createElement(Hn.Z,(0,J.Z)({},(a=e.getFieldProps)===null||a===void 0?void 0:a.call(e),{key:e.key}))}return!0},gn=d(97519),Ma=function(e,a){var n=a.action,l=a.formRef,o=a.type,i=a.originItem,u=(0,c.Z)((0,c.Z)({},(0,ve.Z)(e,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:e.dataIndex,width:e.width,render:(e==null?void 0:e.render)?function(g,S,f){var h,E,b;return e==null||(h=e.render)===null||h===void 0?void 0:h.call(e,g,S,f,n==null?void 0:n.current,(0,c.Z)((0,c.Z)({type:o},e),{},{formItemProps:(E=e.getFormItemProps)===null||E===void 0?void 0:E.call(e),fieldProps:(b=e.getFieldProps)===null||b===void 0?void 0:b.call(e)}))}:void 0}),s=function(){return r.createElement(gn.Z,(0,J.Z)({},u,{ignoreFormItem:!0}))},v=(e==null?void 0:e.renderFormItem)?function(g,S){var f,h,E,b=(0,Un.Z)((0,c.Z)((0,c.Z)({},S),{},{onChange:void 0}));return e==null||(f=e.renderFormItem)===null||f===void 0?void 0:f.call(e,(0,c.Z)((0,c.Z)({type:o},e),{},{formItemProps:(h=e.getFormItemProps)===null||h===void 0?void 0:h.call(e),fieldProps:(E=e.getFieldProps)===null||E===void 0?void 0:E.call(e),originProps:i}),(0,c.Z)((0,c.Z)({},b),{},{defaultRender:s,type:o}),l.current)}:void 0;if(e==null?void 0:e.renderFormItem){var C=v==null?void 0:v(null,{});if(!C||e.ignoreFormItem)return C}return r.createElement(gn.Z,(0,J.Z)({},u,{key:"".concat(e.key,"-").concat(e.index),renderFormItem:v}))},wa=d(59962),Na=function(e,a){var n=a.genItems;if(e.valueType==="formList"&&e.dataIndex){var l;return!e.columns||!Array.isArray(e.columns)?null:r.createElement(wa.u,(0,J.Z)({key:e.key,name:e.dataIndex,label:e.label,initialValue:e.initialValue,colProps:e.colProps,rowProps:e.rowProps},(l=e.getFieldProps)===null||l===void 0?void 0:l.call(e)),n(e.columns))}return!0},Ia=d(61768),Da=function(e,a){var n=a.genItems;if(e.valueType==="formSet"&&e.dataIndex){var l,o;return!e.columns||!Array.isArray(e.columns)?null:r.createElement(Ia.Z,(0,J.Z)({},(l=e.getFormItemProps)===null||l===void 0?void 0:l.call(e),{key:e.key,initialValue:e.initialValue,name:e.dataIndex,label:e.label,colProps:e.colProps,rowProps:e.rowProps},(o=e.getFieldProps)===null||o===void 0?void 0:o.call(e)),n(e.columns))}return!0},La=Gn.A.Group,Ka=function(e,a){var n=a.genItems;if(e.valueType==="group"){var l;return!e.columns||!Array.isArray(e.columns)?null:r.createElement(La,(0,J.Z)({key:e.key,label:e.label,colProps:e.colProps,rowProps:e.rowProps},(l=e.getFieldProps)===null||l===void 0?void 0:l.call(e)),n(e.columns))}return!0},Aa=function(e){return e.valueType&&typeof e.valueType=="string"&&["index","indexBorder","option"].includes(e==null?void 0:e.valueType)?null:!0},Xn=[Aa,Ka,Na,Da,Ra,Ta],Oa=function(e,a){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:{},o=(0,r.useRef)(),i=(0,r.useRef)(null),u=(0,r.useRef)(),s=(0,r.useRef)(),v=(0,r.useRef)(),C=(0,r.useState)(""),g=(0,O.Z)(C,2),S=g[0],f=g[1],h=(0,r.useRef)([]),E=(0,nt.Z)(function(){return l.size||l.defaultSize||"middle"},{value:l.size,onChange:l.onSizeChange}),b=(0,O.Z)(E,2),P=b[0],K=b[1],T=(0,r.useMemo)(function(){var x,m={};return(x=l.columns)===null||x===void 0||x.forEach(function(R,w){var p=R.key,y=R.dataIndex,Z=R.fixed,L=R.disable,N=Ht(p!=null?p:y,w);N&&(m[N]={show:!0,fixed:Z,disable:L})}),m},[l.columns]),D=(0,nt.Z)(function(){var x,m,R=l.columnsState||{},w=R.persistenceType,p=R.persistenceKey;if(p&&w&&typeof window!="undefined"){var y=window[w];try{var Z=y==null?void 0:y.getItem(p);if(Z)return JSON.parse(Z)}catch(L){console.warn(L)}}return l.columnsStateMap||((x=l.columnsState)===null||x===void 0?void 0:x.value)||((m=l.columnsState)===null||m===void 0?void 0:m.defaultValue)||T},{value:((t=l.columnsState)===null||t===void 0?void 0:t.value)||l.columnsStateMap,onChange:((e=l.columnsState)===null||e===void 0?void 0:e.onChange)||l.onColumnsStateChange}),k=(0,O.Z)(D,2),F=k[0],I=k[1];(0,Ge.ET)(!l.columnsStateMap,"columnsStateMap\u5DF2\u7ECF\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 columnsState.value \u66FF\u6362"),(0,Ge.ET)(!l.columnsStateMap,"columnsStateMap has been discarded, please use columnSstate.value replacement");var B=(0,r.useCallback)(function(){var x=l.columnsState||{},m=x.persistenceType,R=x.persistenceKey;if(!(!R||!m||typeof window=="undefined")){var w=window[m];try{w==null||w.removeItem(R)}catch(p){console.error(p)}}},[l.columnsState]);(0,r.useEffect)(function(){var x,m;if(!(!((x=l.columnsState)===null||x===void 0?void 0:x.persistenceKey)||!((m=l.columnsState)===null||m===void 0?void 0:m.persistenceType))&&typeof window!="undefined"){var R=l.columnsState,w=R.persistenceType,p=R.persistenceKey,y=window[w];try{y==null||y.setItem(p,JSON.stringify(F))}catch(Z){console.error(Z)}}},[(a=l.columnsState)===null||a===void 0?void 0:a.persistenceKey,F,(n=l.columnsState)===null||n===void 0?void 0:n.persistenceType]);var M={action:o.current,setAction:function(m){o.current=m},sortKeyColumns:h.current,setSortKeyColumns:function(m){h.current=m},propsRef:s,columnsMap:F,keyWords:S,setKeyWords:function(m){return f(m)},setTableSize:K,tableSize:P,prefixName:u.current,setPrefixName:function(m){u.current=m},setEditorTableForm:function(m){v.current=m},editableForm:v.current,setColumnsMap:I,columns:l.columns,rootDomRef:i,clearPersistenceStorage:B};return Object.defineProperty(M,"prefixName",{get:function(){return u.current}}),Object.defineProperty(M,"sortKeyColumns",{get:function(){return h.current}}),Object.defineProperty(M,"action",{get:function(){return o.current}}),Object.defineProperty(M,"editableForm",{get:function(){return v.current}}),M}var el=(0,_a.f)(qa),Dt=el,qo=d(20136),tr=d(55241),ei=d(63185),tl=d(9676),ti=d(32157),nl=d(82363),rl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},al=rl,nr=function(e,a){return r.createElement(It.Z,(0,c.Z)((0,c.Z)({},e),{},{ref:a,icon:al}))};nr.displayName="VerticalAlignTopOutlined";var ll=r.forwardRef(nr),ol={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z"}}]},name:"vertical-align-middle",theme:"outlined"},il=ol,rr=function(e,a){return r.createElement(It.Z,(0,c.Z)((0,c.Z)({},e),{},{ref:a,icon:il}))};rr.displayName="VerticalAlignMiddleOutlined";var ul=r.forwardRef(rr),sl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},dl=sl,ar=function(e,a){return r.createElement(It.Z,(0,c.Z)((0,c.Z)({},e),{},{ref:a,icon:dl}))};ar.displayName="VerticalAlignBottomOutlined";var cl=r.forwardRef(ar),Jt=d(29111),ni=d(16089),vl=["key","dataIndex","children"],Nn=function(e){var a=e.title,n=e.show,l=e.children,o=e.columnKey,i=e.fixed,u=Dt.useContainer(),s=u.columnsMap,v=u.setColumnsMap;return n?r.createElement(ue.Z,{title:a},r.createElement("span",{onClick:function(g){g.stopPropagation(),g.preventDefault();var S=s[o]||{},f=typeof S.disable=="boolean"&&S.disable;if(!f){var h=(0,c.Z)((0,c.Z)({},s),{},(0,ee.Z)({},o,(0,c.Z)((0,c.Z)({},S),{},{fixed:i})));v(h)}}},l)):null},fl=function(e){var a=e.columnKey,n=e.isLeaf,l=e.title,o=e.className,i=e.fixed,u=(0,_e.YB)(),s=r.createElement("span",{className:"".concat(o,"-list-item-option")},r.createElement(Nn,{columnKey:a,fixed:"left",title:u.getMessage("tableToolBar.leftPin","\u56FA\u5B9A\u5728\u5217\u9996"),show:i!=="left"},r.createElement(ll,null)),r.createElement(Nn,{columnKey:a,fixed:void 0,title:u.getMessage("tableToolBar.noPin","\u4E0D\u56FA\u5B9A"),show:!!i},r.createElement(ul,null)),r.createElement(Nn,{columnKey:a,fixed:"right",title:u.getMessage("tableToolBar.rightPin","\u56FA\u5B9A\u5728\u5217\u5C3E"),show:i!=="right"},r.createElement(cl,null)));return r.createElement("span",{className:"".concat(o,"-list-item"),key:a},r.createElement("div",{className:"".concat(o,"-list-item-title")},l),n?null:s)},In=function(e){var a,n,l=e.list,o=e.draggable,i=e.checkable,u=e.className,s=e.showTitle,v=s===void 0?!0:s,C=e.title,g=Dt.useContainer(),S=g.columnsMap,f=g.setColumnsMap,h=g.sortKeyColumns,E=g.setSortKeyColumns,b=l&&l.length>0,P=(0,r.useMemo)(function(){if(!b)return{};var k=[],F=function I(B,M){return B.map(function(x){var m,R=x.key,w=x.dataIndex,p=x.children,y=(0,de.Z)(x,vl),Z=Ht(R,y.index),L=S[Z||"null"]||{show:!0};L.show!==!1&&(M==null?void 0:M.show)!==!1&&!p&&k.push(Z);var N=(0,c.Z)((0,c.Z)({key:Z},(0,ve.Z)(y,["className"])),{},{selectable:!1,disabled:L.disable===!0,disableCheckbox:typeof L.disable=="boolean"?L.disable:(m=L.disable)===null||m===void 0?void 0:m.checkbox,isLeaf:M?!0:void 0});return p&&(N.children=I(p,L)),N})};return{list:F(l),keys:k}},[S,l,b]),K=(0,xe.J)(function(k,F,I){var B=(0,c.Z)({},S),M=(0,Re.Z)(h),x=M.findIndex(function(p){return p===k}),m=M.findIndex(function(p){return p===F}),R=I>m;if(!(x<0)){var w=M[x];M.splice(x,1),I===0?M.unshift(w):M.splice(R?m:m+1,0,w),M.forEach(function(p,y){B[p]=(0,c.Z)((0,c.Z)({},B[p]||{}),{},{order:y})}),f(B),E(M)}}),T=(0,xe.J)(function(k){var F=k.node.key,I=(0,c.Z)({},S[F]);I.show=k.checked,f((0,c.Z)((0,c.Z)({},S),{},(0,ee.Z)({},F,I)))});if(!b)return null;var D=r.createElement(nl.Z,{itemHeight:24,draggable:o&&!!((a=P.list)===null||a===void 0?void 0:a.length)&&((n=P.list)===null||n===void 0?void 0:n.length)>1,checkable:i,onDrop:function(F){var I=F.node.key,B=F.dragNode.key,M=F.dropPosition,x=F.dropToGap,m=M===-1||!x?M+1:M;K(B,I,m)},blockNode:!0,onCheck:function(F,I){return T(I)},checkedKeys:P.keys,showLine:!1,titleRender:function(F){var I=(0,c.Z)((0,c.Z)({},F),{},{children:void 0});return r.createElement(fl,(0,J.Z)({className:u},I,{title:(0,Jt.h)(I.title,I),columnKey:I.key}))},height:280,treeData:P.list});return r.createElement(r.Fragment,null,v&&r.createElement("span",{className:"".concat(u,"-list-title")},C),D)},ml=function(e){var a=e.localColumns,n=e.className,l=e.draggable,o=e.checkable,i=[],u=[],s=[],v=(0,_e.YB)();a.forEach(function(S){if(!S.hideInSetting){var f=S.fixed;if(f==="left"){u.push(S);return}if(f==="right"){i.push(S);return}s.push(S)}});var C=i&&i.length>0,g=u&&u.length>0;return r.createElement("div",{className:be()("".concat(n,"-list"),(0,ee.Z)({},"".concat(n,"-list-group"),C||g))},r.createElement(In,{title:v.getMessage("tableToolBar.leftFixedTitle","\u56FA\u5B9A\u5728\u5DE6\u4FA7"),list:u,draggable:l,checkable:o,className:n}),r.createElement(In,{list:s,draggable:l,checkable:o,title:v.getMessage("tableToolBar.noFixedTitle","\u4E0D\u56FA\u5B9A"),showTitle:g||C,className:n}),r.createElement(In,{title:v.getMessage("tableToolBar.rightFixedTitle","\u56FA\u5B9A\u5728\u53F3\u4FA7"),list:i,draggable:l,checkable:o,className:n}))};function gl(t){var e,a,n=(0,r.useRef)({}),l=Dt.useContainer(),o=t.columns,i=t.checkedReset,u=i===void 0?!0:i,s=l.columnsMap,v=l.setColumnsMap,C=l.clearPersistenceStorage;(0,r.useEffect)(function(){var D,k;if((D=l.propsRef.current)===null||D===void 0||(k=D.columnsState)===null||k===void 0?void 0:k.value){var F,I;n.current=JSON.parse(JSON.stringify(((F=l.propsRef.current)===null||F===void 0||(I=F.columnsState)===null||I===void 0?void 0:I.value)||{}))}},[]);var g=(0,xe.J)(function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,k={},F=function I(B){B.forEach(function(M){var x=M.key,m=M.fixed,R=M.index,w=M.children,p=Ht(x,R);p&&(k[p]={show:D,fixed:m}),w&&I(w)})};F(o),v(k)}),S=(0,xe.J)(function(D){D.target.checked?g():g(!1)}),f=(0,xe.J)(function(){C==null||C(),v(n.current)}),h=Object.values(s).filter(function(D){return!D||D.show===!1}),E=h.length>0&&h.length!==o.length,b=(0,_e.YB)(),P=(0,r.useContext)(re.ZP.ConfigContext),K=P.getPrefixCls,T=K("pro-table-column-setting");return r.createElement(tr.Z,{arrowPointAtCenter:!0,title:r.createElement("div",{className:"".concat(T,"-title")},r.createElement(tl.Z,{indeterminate:E,checked:h.length===0&&h.length!==o.length,onChange:function(k){return S(k)}},b.getMessage("tableToolBar.columnDisplay","\u5217\u5C55\u793A")),u?r.createElement("a",{onClick:f,className:"".concat(T,"-action-rest-button")},b.getMessage("tableToolBar.reset","\u91CD\u7F6E")):null,(t==null?void 0:t.extra)?r.createElement(yt.Z,{size:12,align:"center"},t.extra):null),overlayClassName:"".concat(T,"-overlay"),trigger:"click",placement:"bottomRight",content:r.createElement(ml,{checkable:(e=t.checkable)!==null&&e!==void 0?e:!0,draggable:(a=t.draggable)!==null&&a!==void 0?a:!0,className:T,localColumns:o})},t.children||r.createElement(ue.Z,{title:b.getMessage("tableToolBar.columnSetting","\u5217\u8BBE\u7F6E")},r.createElement(er.Z,null)))}var hl=gl,ri=d(47673),yl=d(4107),pl=d(38069),ai=d(59250),lr=d(13013),li=d(30887),or=d(28682),oi=d(36003),bl=["label","key"],Sl=function(e){var a=e.items,n=a===void 0?[]:a,l=e.type,o=l===void 0?"inline":l,i=e.prefixCls,u=e.activeKey,s=(0,nt.Z)(u,{value:u,onChange:e.onChange}),v=(0,O.Z)(s,2),C=v[0],g=v[1];if(n.length<1)return null;var S=n.find(function(f){return f.key===C})||n[0];return o==="inline"?r.createElement("div",{className:be()("".concat(i,"-menu"),"".concat(i,"-inline-menu"))},n.map(function(f,h){return r.createElement("div",{key:f.key||h,onClick:function(){g(f.key)},className:be()("".concat(i,"-inline-menu-item"),S.key===f.key?"".concat(i,"-inline-menu-item-active"):void 0)},f.label)})):o==="tab"?r.createElement(Ie.Z,{activeKey:S.key,onTabClick:function(h){return g(h)}},n.map(function(f,h){var E=f.label,b=f.key,P=(0,de.Z)(f,bl);return r.createElement(Ie.Z.TabPane,(0,J.Z)({tab:E,key:b||h},P))})):r.createElement("div",{className:be()("".concat(i,"-menu"),"".concat(i,"-dropdownmenu"))},r.createElement(lr.Z,{trigger:["click"],overlay:r.createElement(or.Z,{selectedKeys:[S.key],onClick:function(h){g(h.key)},items:n.map(function(f,h){return{key:f.key||h,disabled:f.disabled,label:f.label}})})},r.createElement(yt.Z,{className:"".concat(i,"-dropdownmenu-label")},S.label,r.createElement(Rn.Z,null))))},Cl=Sl;function El(t){if(r.isValidElement(t))return t;if(t){var e=t,a=e.icon,n=e.tooltip,l=e.onClick,o=e.key;return a&&n?r.createElement(ue.Z,{title:n},r.createElement("span",{key:o,onClick:function(){l&&l(o)}},a)):a}return null}var Pl=function(e){var a=e.prefixCls,n=e.tabs,l=n===void 0?{}:n,o=e.multipleLine,i=e.filtersNode;return o?r.createElement("div",{className:"".concat(a,"-extra-line")},l.items&&l.items.length?r.createElement(Ie.Z,{activeKey:l.activeKey,onChange:l.onChange,tabBarExtraContent:i},l.items.map(function(u,s){return r.createElement(Ie.Z.TabPane,(0,J.Z)({key:u.key||s},u))})):i):null},Zl=function(e){var a=e.prefixCls,n=e.title,l=e.subTitle,o=e.tooltip,i=e.className,u=e.style,s=e.search,v=e.onSearch,C=e.multipleLine,g=C===void 0?!1:C,S=e.filter,f=e.actions,h=f===void 0?[]:f,E=e.settings,b=E===void 0?[]:E,P=e.tabs,K=P===void 0?{}:P,T=e.menu,D=(0,_e.YB)(),k=(0,pl.ZP)(),F=k==="sm"||k==="xs",I=D.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),B=(0,r.useMemo)(function(){return s?r.isValidElement(s)?s:r.createElement(yl.Z.Search,(0,J.Z)({style:{width:200},placeholder:I},s,{onSearch:function(){for(var z,W=arguments.length,G=new Array(W),H=0;HSe||fe!==void 0&&b&&b.length<=Se&&V.run(!1)},[M==null?void 0:M.current]),(0,r.useEffect)(function(){!N||V.run(!1)},[M==null?void 0:M.pageSize]),Zn(function(){return V.run(!1),u||(S.current=!1),function(){V.cancel()}},[].concat((0,Re.Z)(W),[u])),{dataSource:b,setDataSource:P,loading:D,reload:function(){var q=(0,te.Z)((0,U.Z)().mark(function Se(){return(0,U.Z)().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,V.run(!1);case 2:case"end":return pe.stop()}},Se)}));function fe(){return q.apply(this,arguments)}return fe}(),pageInfo:M,pollingLoading:p,reset:function(){var q=(0,te.Z)((0,U.Z)().mark(function Se(){var ie,pe,Fe,Me,Be,dt,ct,je;return(0,U.Z)().wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:ie=n||{},pe=ie.pageInfo,Fe=pe||{},Me=Fe.defaultCurrent,Be=Me===void 0?1:Me,dt=Fe.defaultPageSize,ct=dt===void 0?20:dt,je={current:Be,total:0,pageSize:ct},m(je);case 4:case"end":return Je.stop()}},Se)}));function fe(){return q.apply(this,arguments)}return fe}(),setPageInfo:function(){var q=(0,te.Z)((0,U.Z)().mark(function Se(ie){return(0,U.Z)().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:m((0,c.Z)((0,c.Z)({},M),ie));case 1:case"end":return Fe.stop()}},Se)}));function fe(Se){return q.apply(this,arguments)}return fe}()}},Ql=Yl,Xl=function(e){return function(a,n){var l,o,i=a.fixed,u=a.index,s=n.fixed,v=n.index;if(i==="left"&&s!=="left"||s==="right"&&i!=="right")return-2;if(s==="left"&&i!=="left"||i==="right"&&s!=="right")return 2;var C=a.key||"".concat(u),g=n.key||"".concat(v);if(((l=e[C])===null||l===void 0?void 0:l.order)||((o=e[g])===null||o===void 0?void 0:o.order)){var S,f;return(((S=e[C])===null||S===void 0?void 0:S.order)||0)-(((f=e[g])===null||f===void 0?void 0:f.order)||0)}return(a.index||0)-(n.index||0)}},si=d(29405),di=d(71578),_l=null,ql=null,hn=function(e){return no(e)==="map"?e:new Map(Object.entries(e||{}))},eo=function t(e,a){if(Array.isArray(e))return React.createElement(_Space,{split:",",size:2},e.map(function(s){return t(s,a)}));var n=hn(a);if(!n.has(e)&&!n.has("".concat(e)))return(e==null?void 0:e.label)||e;var l=n.get(e)||n.get("".concat(e));if(!l)return(e==null?void 0:e.label)||e;var o=l.status,i=l.color,u=TableStatus[o||"Init"];return u?React.createElement(u,null,l.text):i?React.createElement(ProFieldBadgeColor,{color:i},l.text):l.text||l},to=function(e){for(var a=e.label,n=e.words,l=useContext(_ConfigProvider.ConfigContext),o=l.getPrefixCls,i=o("pro-select-item-option-content-light"),u=o("pro-select-item-option-content"),s=new RegExp(n.map(function(h){return h.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}).join("|"),"gi"),v=a,C=[];v.length;){var g=s.exec(v);if(!g){C.push(v);break}var S=g.index,f=g[0].length+S;C.push(v.slice(0,S),React.createElement("span",{className:i},v.slice(S,f))),v=v.slice(f)}return React.createElement.apply(React,["div",{className:u}].concat(C))};function no(t){var e=Object.prototype.toString.call(t).match(/^\[object (.*)\]$/)[1].toLowerCase();return e==="string"&&(0,me.Z)(t)==="object"?"object":t===null?"null":t===void 0?"undefined":e}function Ln(t,e){var a,n;if(!e||(t==null||(a=t.label)===null||a===void 0?void 0:a.toString().toLowerCase().includes(e.toLowerCase()))||(t==null||(n=t.value)===null||n===void 0?void 0:n.toString().toLowerCase().includes(e.toLowerCase())))return!0;if(t.optionType==="optGroup"&&(t.children||t.options)){var l=[].concat(_toConsumableArray(t.children||[]),[t.options||[]]).find(function(o){return Ln(o,e)});if(l)return!0}return!1}var cr=function(e){var a=[],n=hn(e);return n.forEach(function(l,o){var i=n.get(o)||n.get("".concat(o));if(!!i){if((0,me.Z)(i)==="object"&&(i==null?void 0:i.text)){a.push({text:i==null?void 0:i.text,value:o,label:i==null?void 0:i.text,disabled:i.disabled});return}a.push({text:i,value:o})}}),a},ro=function(e){var a,n,l,o,i,u=e.cacheForSwr,s=useState(e.defaultKeyWords),v=_slicedToArray(s,2),C=v[0],g=v[1],S=useState(function(){return e.proFieldKey?e.proFieldKey.toString():e.request?nanoid():"no-fetch"}),f=_slicedToArray(S,1),h=f[0],E=useRef(h),b=useCallback(function(m){return cr(hn(m)).map(function(R){var w=R.value,p=R.text,y=_objectWithoutProperties(R,_l);return _objectSpread({label:p,value:w,key:w},y)})},[]),P=useMountMergeState(function(){return e.valueEnum?b(e.valueEnum):[]},{value:(a=e.fieldProps)===null||a===void 0?void 0:a.options}),K=_slicedToArray(P,2),T=K[0],D=K[1];useDeepCompareEffect(function(){var m;!e.valueEnum||((m=e.fieldProps)===null||m===void 0?void 0:m.options)||D(b(e.valueEnum))},[e.valueEnum]);var k=useDebounceValue([E.current,e.params,C],(n=(l=e.debounceTime)!==null&&l!==void 0?l:e==null||(o=e.fieldProps)===null||o===void 0?void 0:o.debounceTime)!==null&&n!==void 0?n:0,[e.params,C]),F=useSWR(function(){return e.request?k:null},function(m,R,w){return e.request(_objectSpread(_objectSpread({},R),{},{keyWords:w}),e)},{revalidateIfStale:!u,revalidateOnReconnect:u,shouldRetryOnError:!1,revalidateOnFocus:!1}),I=F.data,B=F.mutate,M=F.isValidating,x=useMemo(function(){var m,R,w=T==null?void 0:T.map(function(p){if(typeof p=="string")return{label:p,value:p};if((p==null?void 0:p.optionType)==="optGroup"&&(p.children||p.options)){var y=[].concat(_toConsumableArray(p.children||[]),_toConsumableArray(p.options||[])).filter(function(Z){return Ln(Z,C)});return _objectSpread(_objectSpread({},p),{},{children:y,options:y})}return p});return((m=e.fieldProps)===null||m===void 0?void 0:m.filterOption)===!0||((R=e.fieldProps)===null||R===void 0?void 0:R.filterOption)===void 0?w==null?void 0:w.filter(function(p){return p?C?Ln(p,C):!0:!1}):w},[T,C,(i=e.fieldProps)===null||i===void 0?void 0:i.filterOption]);return[M,e.request?I:x,function(m){g(m)},function(){g(void 0),B([],!1)}]},ci=function(e,a){var n=e.mode,l=e.valueEnum,o=e.render,i=e.renderFormItem,u=e.request,s=e.fieldProps,v=e.plain,C=e.children,g=e.light,S=e.proFieldKey,f=e.params,h=e.label,E=e.bordered,b=e.id,P=e.lightLabel,K=e.labelTrigger,T=_objectWithoutProperties(e,ql),D=useRef(),k=useIntl(),F=useRef(""),I=s.fieldNames;useEffect(function(){F.current=s==null?void 0:s.searchValue},[s==null?void 0:s.searchValue]);var B=ro(e),M=_slicedToArray(B,4),x=M[0],m=M[1],R=M[2],w=M[3],p=useContext(_ConfigProvider.SizeContext);useImperativeHandle(a,function(){return _objectSpread(_objectSpread({},D.current||{}),{},{fetchData:function(){return R()}})});var y=useMemo(function(){if(n==="read"){var A=I||{},j=A.label,z=j===void 0?"label":j,W=A.value,G=W===void 0?"value":W,H=A.options,V=H===void 0?"options":H,q=new Map,fe=function Se(ie){if(!(ie==null?void 0:ie.length))return q;for(var pe=ie.length,Fe=0;Feie.length?(ie.push(V),ie):(ie.splice((i==null?void 0:i.current)*(i==null?void 0:i.pageSize)-1,0,V),ie)}return[].concat((0,Re.Z)(n.dataSource),[V])},p=function(){return(0,c.Z)((0,c.Z)({},M),{},{size:s,rowSelection:u===!1?void 0:u,className:a,style:C,columns:m.map(function(W){return W.isExtraColumns?W.extraColumn:W}),loading:n.loading,dataSource:I.newLineRecord?w(n.dataSource):n.dataSource,pagination:i,onChange:function(G,H,V,q){var fe;if((fe=M.onChange)===null||fe===void 0||fe.call(M,G,H,V,q),R||K(kt(H)),Array.isArray(V)){var Se=V.reduce(function(Me,Be){return(0,c.Z)((0,c.Z)({},Me),{},(0,ee.Z)({},"".concat(Be.field),Be.order))},{});P(kt(Se))}else{var ie,pe=(ie=V.column)===null||ie===void 0?void 0:ie.sorter,Fe=(pe==null?void 0:pe.toString())===pe;P(kt((0,ee.Z)({},"".concat(Fe?pe:V.field),V.order))||{})}}})},y=r.createElement(Ke.Z,(0,J.Z)({},p(),{rowKey:e})),Z=t.tableViewRender?t.tableViewRender((0,c.Z)((0,c.Z)({},p()),{},{rowSelection:u!==!1?u:void 0}),y):y;(0,r.useMemo)(function(){t.name&&t.editable&&x.setEditorTableForm(t.editable.form)},[x,t.editable,t.name]);var L=(0,r.useMemo)(function(){if(t.editable&&!t.name){var z,W;return r.createElement(r.Fragment,null,g,E,r.createElement(En.ZP,(0,J.Z)({onInit:function(H,V){x.setEditorTableForm(V)},formRef:function(H){x.setEditorTableForm(H)}},(z=t.editable)===null||z===void 0?void 0:z.formProps,{component:!1,form:(W=t.editable)===null||W===void 0?void 0:W.form,onValuesChange:I.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:t.dateFormatter,contentRender:function(H){if(x.editableForm)return H;if(t.loading!==!1){var V=t.loading===!0?{}:t.loading;return r.createElement("div",{style:{paddingTop:100,textAlign:"center"}},r.createElement(oe.Z,(0,J.Z)({size:"large"},V)))}}}),Z))}return r.createElement(r.Fragment,null,g,E,x.editableForm||!t.editable?Z:null)},[E,t.loading,!!t.editable,Z,g]),N=h===!1||!!t.name?L:r.createElement(Cn,(0,J.Z)({ghost:t.ghost,bordered:Vn("table",F),bodyStyle:g?{paddingTop:0}:{padding:0}},h),L),A=function(){return t.tableRender?t.tableRender(t,N,{toolbar:g||void 0,alert:E||void 0,table:Z||void 0}):N},j=r.createElement("div",{className:be()(k,(0,ee.Z)({},"".concat(k,"-polling"),n.pollingLoading)),style:f,ref:x.rootDomRef},D?null:S,o!=="form"&&t.tableExtraRender&&r.createElement("div",{className:"".concat(k,"-extra")},t.tableExtraRender(t,n.dataSource||[])),o!=="form"&&A());return!T||!(T==null?void 0:T.fullScreen)?j:r.createElement(re.ZP,{getPopupContainer:function(){return x.rootDomRef.current||document.body}},j)}var Ko={},Ao=function(e){var a,n,l=e.cardBordered,o=e.request,i=e.className,u=e.params,s=u===void 0?Ko:u,v=e.defaultData,C=e.headerTitle,g=e.postData,S=e.ghost,f=e.pagination,h=e.actionRef,E=e.columns,b=E===void 0?[]:E,P=e.toolBarRender,K=e.onLoad,T=e.onRequestError,D=e.style,k=e.cardProps,F=e.tableStyle,I=e.tableClassName,B=e.columnsStateMap,M=e.onColumnsStateChange,x=e.options,m=e.search,R=e.name,w=e.onLoadingChange,p=e.rowSelection,y=p===void 0?!1:p,Z=e.beforeSearchSubmit,L=e.tableAlertRender,N=e.defaultClassName,A=e.formRef,j=e.type,z=j===void 0?"table":j,W=e.columnEmptyText,G=W===void 0?"-":W,H=e.toolbar,V=e.rowKey,q=e.manualRequest,fe=e.polling,Se=e.tooltip,ie=(0,de.Z)(e,Do),pe=be()(N,i),Fe=(0,r.useRef)(),Me=(0,r.useRef)(),Be=A||Me;(0,r.useImperativeHandle)(h,function(){return Fe.current});var dt=gt(y?y==null?void 0:y.defaultSelectedRowKeys:void 0,{value:y?y.selectedRowKeys:void 0}),ct=(0,O.Z)(dt,2),je=ct[0],Et=ct[1],Je=(0,r.useRef)([]),Lt=(0,r.useCallback)(function(X,_){Et(X),(!y||!(y==null?void 0:y.selectedRowKeys))&&(Je.current=_)},[Et]),ot=gt(function(){if(!(q||m!==!1))return{}}),en=(0,O.Z)(ot,2),Q=en[0],Kt=en[1],yn=gt({}),Pt=(0,O.Z)(yn,2),pt=Pt[0],$t=Pt[1],tn=gt({}),pn=(0,O.Z)(tn,2),nn=pn[0],rn=pn[1];(0,r.useEffect)(function(){var X=$r(b),_=X.sort,ge=X.filter;$t(ge),rn(_)},[]);var bn=(0,_e.YB)(),Sn=(0,me.Z)(f)==="object"?f:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},Te=Dt.useContainer(),He=(0,r.useMemo)(function(){if(!!o)return function(){var X=(0,te.Z)((0,U.Z)().mark(function _(ge){var Pe,et;return(0,U.Z)().wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return Pe=(0,c.Z)((0,c.Z)((0,c.Z)({},ge||{}),Q),s),delete Pe._timestamp,ft.next=4,o(Pe,nn,pt);case 4:return et=ft.sent,ft.abrupt("return",et);case 6:case"end":return ft.stop()}},_)}));return function(_){return X.apply(this,arguments)}}()},[Q,s,pt,nn,o]),se=Ql(He,v,{pageInfo:f===!1?!1:Sn,loading:e.loading,dataSource:e.dataSource,onDataSourceChange:e.onDataSourceChange,onLoad:K,onLoadingChange:w,onRequestError:T,postData:g,revalidateOnFocus:(a=e.revalidateOnFocus)!==null&&a!==void 0?a:!1,manual:Q===void 0,polling:fe,effects:[(0,vn.P)(s),(0,vn.P)(Q),(0,vn.P)(pt),(0,vn.P)(nn)],debounceTime:e.debounceTime,onPageInfoChange:function(_){var ge,Pe;z==="list"||!f||!He||(f==null||(ge=f.onChange)===null||ge===void 0||ge.call(f,_.current,_.pageSize),f==null||(Pe=f.onShowSizeChange)===null||Pe===void 0||Pe.call(f,_.current,_.pageSize))}});(0,r.useEffect)(function(){var X;if(!(e.manualRequest||!e.request||e.revalidateOnFocus===!1||((X=e.form)===null||X===void 0?void 0:X.ignoreRules))){var _=function(){document.visibilityState==="visible"&&se.reload()};return document.addEventListener("visibilitychange",_),function(){return document.removeEventListener("visibilitychange",_)}}},[]);var Ne=r.useRef(new Map),Ye=r.useMemo(function(){return typeof V=="function"?V:function(X,_){var ge;return _===-1?X==null?void 0:X[V]:e.name?_==null?void 0:_.toString():(ge=X==null?void 0:X[V])!==null&&ge!==void 0?ge:_==null?void 0:_.toString()}},[e.name,V]);(0,r.useMemo)(function(){var X;if((X=se.dataSource)===null||X===void 0?void 0:X.length){var _=new Map,ge=se.dataSource.map(function(Pe){var et=Ye(Pe,-1);return _.set(et,Pe),et});return Ne.current=_,ge}return[]},[se.dataSource,Ye]),(0,r.useEffect)(function(){Je.current=je==null?void 0:je.map(function(X){var _;return(_=Ne.current)===null||_===void 0?void 0:_.get(X)})},[je]);var rt=(0,r.useMemo)(function(){var X=f===!1?!1:(0,c.Z)({},f),_=(0,c.Z)((0,c.Z)({},se.pageInfo),{},{setPageInfo:function(Pe){var et=Pe.pageSize,bt=Pe.current,ft=se.pageInfo;if(et===ft.pageSize||ft.current===1){se.setPageInfo({pageSize:et,current:bt});return}o&&se.setDataSource([]),se.setPageInfo({pageSize:et,current:z==="list"?bt:1})}});return o&&X&&(delete X.onChange,delete X.onShowSizeChange),Ar(X,_,bn)},[f,se,bn]);Zn(function(){var X;e.request&&s&&se.dataSource&&(se==null||(X=se.pageInfo)===null||X===void 0?void 0:X.current)!==1&&se.setPageInfo({current:1})},[s]),Te.setPrefixName(e.name);var vt=(0,r.useCallback)(function(){y&&y.onChange&&y.onChange([],[],{type:"all"}),Lt([],[])},[y,Lt]);Te.setAction(Fe.current),Te.propsRef.current=e;var qe=Tr((0,c.Z)((0,c.Z)({},e.editable),{},{tableName:e.name,getRowKey:Ye,childrenColumnName:(n=e.expandable)===null||n===void 0?void 0:n.childrenColumnName,dataSource:se.dataSource||[],setDataSource:function(_){var ge,Pe;(ge=e.editable)===null||ge===void 0||(Pe=ge.onValuesChange)===null||Pe===void 0||Pe.call(ge,void 0,_),se.setDataSource(_)}}));Or(Fe,se,{fullScreen:function(){var _;if(!(!((_=Te.rootDomRef)===null||_===void 0?void 0:_.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var ge;(ge=Te.rootDomRef)===null||ge===void 0||ge.current.requestFullscreen()}},onCleanSelected:function(){vt()},resetAll:function(){var _;vt(),$t({}),rn({}),Te.setKeyWords(void 0),se.setPageInfo({current:1}),Be==null||(_=Be.current)===null||_===void 0||_.resetFields(),Kt({})},editableUtils:qe}),h&&(h.current=Fe.current);var it=(0,r.useMemo)(function(){var X;return gr({columns:b,counter:Te,columnEmptyText:G,type:z,editableUtils:qe,rowKey:V,childrenColumnName:(X=e.expandable)===null||X===void 0?void 0:X.childrenColumnName}).sort(Xl(Te.columnsMap))},[b,Te==null?void 0:Te.sortKeyColumns,Te==null?void 0:Te.columnsMap,G,z,qe.editableKeys&&qe.editableKeys.join(",")]);ln(function(){if(it&&it.length>0){var X=it.map(function(_){return Ht(_.key,_.index)});Te.setSortKeyColumns(X)}},[it],["render","renderFormItem"],100),Zn(function(){var X=se.pageInfo,_=f||{},ge=_.current,Pe=ge===void 0?X==null?void 0:X.current:ge,et=_.pageSize,bt=et===void 0?X==null?void 0:X.pageSize:et;f&&(Pe||bt)&&(bt!==(X==null?void 0:X.pageSize)||Pe!==(X==null?void 0:X.current))&&se.setPageInfo({pageSize:bt||X.pageSize,current:Pe||X.current})},[f&&f.pageSize,f&&f.current]);var An=(0,c.Z)((0,c.Z)({selectedRowKeys:je},y),{},{onChange:function(_,ge,Pe){y&&y.onChange&&y.onChange(_,ge,Pe),Lt(_,ge)}}),On=m!==!1&&(m==null?void 0:m.filterType)==="light",Bo=function(_){if(x&&x.search){var ge,Pe,et=x.search===!0?{}:x.search,bt=et.name,ft=bt===void 0?"keyword":bt,$o=(ge=x.search)===null||ge===void 0||(Pe=ge.onSearch)===null||Pe===void 0?void 0:Pe.call(ge,Te.keyWords);if($o!==!1){Kt((0,c.Z)((0,c.Z)({},_),{},(0,ee.Z)({},ft,Te.keyWords)));return}}Kt(_)},yr=m===!1&&z!=="form"?null:r.createElement(Ja,{pagination:rt,beforeSearchSubmit:Z,action:Fe,columns:b,onFormSearchSubmit:function(_){Bo(_)},ghost:S,onReset:e.onReset,onSubmit:e.onSubmit,loading:!!se.loading,manualRequest:q,search:m,form:e.form,formRef:Be,type:e.type||"table",cardBordered:e.cardBordered,dateFormatter:e.dateFormatter}),zo=P===!1?null:r.createElement(Gl,{headerTitle:C,hideToolbar:x===!1&&!C&&!P&&!H&&!On,selectedRows:Je.current,selectedRowKeys:je,tableColumn:it,tooltip:Se,toolbar:H,onFormSearchSubmit:function(_){Kt((0,c.Z)((0,c.Z)({},Q),_))},searchNode:On?yr:null,options:x,actionRef:Fe,toolBarRender:P}),ko=y!==!1?r.createElement(Kr,{selectedRowKeys:je,selectedRows:Je.current,onCleanSelected:vt,alertOptionRender:ie.tableAlertOptionRender,alertInfoRender:L,alwaysShowAlert:y==null?void 0:y.alwaysShowAlert}):null;return r.createElement(Lo,(0,J.Z)({},e,{name:R,size:Te.tableSize,onSizeChange:Te.setTableSize,pagination:rt,searchNode:yr,rowSelection:y!==!1?An:void 0,className:pe,tableColumn:it,isLightFilter:On,action:se,alertDom:ko,toolbarDom:zo,onSortChange:rn,onFilterChange:$t,editableUtils:qe,getRowKey:Ye}))},hr=function(e){var a=(0,r.useContext)(re.ZP.ConfigContext),n=a.getPrefixCls,l=e.ErrorBoundary===!1?r.Fragment:e.ErrorBoundary||Nr;return r.createElement(Dt.Provider,{initialState:e},r.createElement(_e.oK,null,r.createElement(l,null,r.createElement(Ao,(0,J.Z)({defaultClassName:n("pro-table")},e)))))};hr.Summary=Ke.Z.Summary;var Oo=hr},80392:function(mt,Le,d){"use strict";d.d(Le,{oK:function(){return Xt},YB:function(){return zn}});var U=d(84305),te=d(75901),me=d(28991),O=d(11965),ne=d(84378),re=d(67294),ze=d(29405),oe={moneySymbol:"$",form:{lightFilter:{more:"\u0627\u0644\u0645\u0632\u064A\u062F",clear:"\u0646\u0638\u0641",confirm:"\u062A\u0623\u0643\u064A\u062F",itemUnit:"\u0639\u0646\u0627\u0635\u0631"}},tableForm:{search:"\u0627\u0628\u062D\u062B",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",submit:"\u0627\u0631\u0633\u0627\u0644",collapsed:"\u0645\u064F\u0642\u0644\u0635",expand:"\u0645\u064F\u0648\u0633\u0639",inputPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062F\u062E\u0627\u0644",selectPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062E\u062A\u064A\u0627\u0631"},alert:{clear:"\u0646\u0638\u0641",selected:"\u0645\u062D\u062F\u062F",item:"\u0639\u0646\u0635\u0631"},pagination:{total:{range:" ",total:"\u0645\u0646",item:"\u0639\u0646\u0627\u0635\u0631"}},tableToolBar:{leftPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noPin:"\u0627\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u062B\u0628\u064A\u062A",leftFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noFixedTitle:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0644\u0635\u0627\u0642",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",columnDisplay:"\u0627\u0644\u0623\u0639\u0645\u062F\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629",columnSetting:"\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",fullScreen:"\u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",exitFullScreen:"\u0627\u0644\u062E\u0631\u0648\u062C \u0645\u0646 \u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",reload:"\u062A\u062D\u062F\u064A\u062B",density:"\u0627\u0644\u0643\u062B\u0627\u0641\u0629",densityDefault:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",densityLarger:"\u0623\u0643\u0628\u0631",densityMiddle:"\u0648\u0633\u0637",densitySmall:"\u0645\u062F\u0645\u062C"},stepsForm:{next:"\u0627\u0644\u062A\u0627\u0644\u064A",prev:"\u0627\u0644\u0633\u0627\u0628\u0642"},loginForm:{submitText:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644"}},ce={moneySymbol:"\u20AC",tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col\xB7lapsar",inputPlaceholder:"Introdu\xEFu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitj\xE0",densitySmall:"Compacte"},stepsForm:{next:"Seg\xFCent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"}},Ke={moneySymbol:"\u20AC",form:{lightFilter:{more:"Mehr",clear:"Zur\xFCcksetzen",confirm:"Best\xE4tigen",itemUnit:"Eintr\xE4ge"}},tableForm:{search:"Suchen",reset:"Zur\xFCcksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte ausw\xE4hlen"},alert:{clear:"Zur\xFCcksetzen",selected:"Ausgew\xE4hlt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Eintr\xE4gen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zur\xFCcksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Gr\xF6\xDFer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Anmelden"}},J={moneySymbol:"\xA3",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},ee={moneySymbol:"$",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},Re={moneySymbol:"\u20AC",form:{lightFilter:{more:"M\xE1s",clear:"Limpiar",confirm:"Confirmar",itemsUnits:"Objetos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"art\xEDculos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3n",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar"}},switch:{open:"abrir",close:"cerrar"}},c={moneySymbol:"\u062A\u0648\u0645\u0627\u0646",form:{lightFilter:{more:"\u0628\u06CC\u0634\u062A\u0631",clear:"\u067E\u0627\u06A9 \u06A9\u0631\u062F\u0646",confirm:"\u062A\u0627\u06CC\u06CC\u062F",itemUnit:"\u0645\u0648\u0631\u062F"}},tableForm:{search:"\u062C\u0633\u062A\u062C\u0648",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",submit:"\u062A\u0627\u06CC\u06CC\u062F",collapsed:"\u0646\u0645\u0627\u06CC\u0634 \u0628\u06CC\u0634\u062A\u0631",expand:"\u0646\u0645\u0627\u06CC\u0634 \u06A9\u0645\u062A\u0631",inputPlaceholder:"\u067E\u06CC\u062F\u0627 \u06A9\u0646\u06CC\u062F",selectPlaceholder:"\u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F"},alert:{clear:"\u067E\u0627\u06A9 \u0633\u0627\u0632\u06CC",selected:"\u0627\u0646\u062A\u062E\u0627\u0628",item:"\u0645\u0648\u0631\u062F"},pagination:{total:{range:" ",total:"\u0627\u0632",item:"\u0645\u0648\u0631\u062F"}},tableToolBar:{leftPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0686\u067E",rightPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0631\u0627\u0633\u062A",noPin:"\u0633\u0646\u062C\u0627\u0642 \u0646\u0634\u062F\u0647",leftFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0686\u067E",rightFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0631\u0627\u0633\u062A",noFixedTitle:"\u0634\u0646\u0627\u0648\u0631",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",columnDisplay:"\u0646\u0645\u0627\u06CC\u0634 \u0647\u0645\u0647",columnSetting:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A",fullScreen:"\u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",exitFullScreen:"\u062E\u0631\u0648\u062C \u0627\u0632 \u062D\u0627\u0644\u062A \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",reload:"\u062A\u0627\u0632\u0647 \u0633\u0627\u0632\u06CC",density:"\u062A\u0631\u0627\u06A9\u0645",densityDefault:"\u067E\u06CC\u0634 \u0641\u0631\u0636",densityLarger:"\u0628\u0632\u0631\u06AF",densityMiddle:"\u0645\u062A\u0648\u0633\u0637",densitySmall:"\u06A9\u0648\u0686\u06A9"},stepsForm:{next:"\u0628\u0639\u062F\u06CC",prev:"\u0642\u0628\u0644\u06CC",submit:"\u0627\u062A\u0645\u0627\u0645"},loginForm:{submitText:"\u0648\u0631\u0648\u062F"},editableTable:{action:{save:"\u0630\u062E\u06CC\u0631\u0647",cancel:"\u0644\u063A\u0648",delete:"\u062D\u0630\u0641"}}},de={moneySymbol:"\u20AC",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"R\xE9initialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"R\xE9duire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"S\xE9lectionner une valeur"},alert:{clear:"R\xE9initialiser",selected:"S\xE9lectionn\xE9",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"\xE9l\xE9ments"}},tableToolBar:{leftPin:"\xC9pingler \xE0 gauche",rightPin:"\xC9pingler \xE0 gauche",noPin:"Sans \xE9pingle",leftFixedTitle:"Fixer \xE0 gauche",rightFixedTitle:"Fixer \xE0 droite",noFixedTitle:"Non fix\xE9",reset:"R\xE9initialiser",columnDisplay:"Affichage colonne",columnSetting:"R\xE9glages",fullScreen:"Plein \xE9cran",exitFullScreen:"Quitter Plein \xE9cran",reload:"Rafraichir",density:"Densit\xE9",densityDefault:"Par d\xE9faut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Pr\xE9c\xE9dente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer"}}},r={moneySymbol:"kn",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretra\u017Ei",reset:"Poni\u0161ti",submit:"Potvrdi",collapsed:"Ra\u0161iri",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"O\u010Disti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prika\u010Di lijevo",rightPin:"Prika\u010Di desno",noPin:"Bez prika\u010Denja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Iza\u0111i iz punog zaslona",reload:"Ponovno u\u010Ditaj",density:"Veli\u010Dina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljede\u0107i",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obri\u0161i"}},switch:{open:"otvori",close:"zatvori"}},Xe={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"}},Ie={moneySymbol:"\u20AC",tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalit\xE0 schermo intero",exitFullScreen:"Esci da modalit\xE0 schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},loginForm:{submitText:"Accedi"}},Y={moneySymbol:"\xA5",tableForm:{search:"\u691C\u7D22",reset:"\u30EA\u30BB\u30C3\u30C8",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u53CE\u7D0D",inputPlaceholder:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",selectPlaceholder:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},alert:{clear:"\u30AF\u30EA\u30A2",selected:"\u9078\u629E\u3057\u305F",item:"\u9805\u76EE"},pagination:{total:{range:"\u8A18\u4E8B",total:"/\u5408\u8A08",item:" "}},tableToolBar:{leftPin:"\u5DE6\u306B\u56FA\u5B9A",rightPin:"\u53F3\u306B\u56FA\u5B9A",noPin:"\u30AD\u30E3\u30F3\u30BB\u30EB",leftFixedTitle:"\u5DE6\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",rightFixedTitle:"\u53F3\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",noFixedTitle:"\u56FA\u5B9A\u3055\u308C\u3066\u306A\u3044\u9805\u76EE",reset:"\u30EA\u30BB\u30C3\u30C8",columnDisplay:"\u8868\u793A\u5217",columnSetting:"\u5217\u8868\u793A\u8A2D\u5B9A",fullScreen:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",exitFullScreen:"\u7D42\u4E86",reload:"\u66F4\u65B0",density:"\u884C\u9AD8",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D",densitySmall:"\u5C0F"},stepsForm:{next:"\u6B21\u306E\u30B9\u30C6\u30C3\u30D7",pre:"\u524D\u3078",submit:"\u9001\u4FE1"},loginForm:{submitText:"\u30ED\u30B0\u30A4\u30F3"}},le={moneySymbol:"\u20A9",form:{lightFilter:{more:"\uB354\uBCF4\uAE30",clear:"\uCDE8\uC18C",confirm:"\uD655\uC778",itemUnit:"\uAC74\uC218"}},tableForm:{search:"\uC870\uD68C",reset:"\uCD08\uAE30\uD654",submit:"\uC81C\uCD9C",collapsed:"\uD655\uC7A5",expand:"\uB2EB\uAE30",inputPlaceholder:"\uC785\uB825\uD574 \uC8FC\uC138\uC694",selectPlaceholder:"\uC120\uD0DD\uD574 \uC8FC\uC138\uC694"},alert:{clear:"\uCDE8\uC18C",selected:"\uC120\uD0DD",item:"\uAC74"},pagination:{total:{range:" ",total:"/ \uCD1D",item:"\uAC74"}},tableToolBar:{leftPin:"\uC67C\uCABD\uC73C\uB85C \uD540",rightPin:"\uC624\uB978\uCABD\uC73C\uB85C \uD540",noPin:"\uD540 \uC81C\uAC70",leftFixedTitle:"\uC67C\uCABD\uC73C\uB85C \uACE0\uC815",rightFixedTitle:"\uC624\uB978\uCABD\uC73C\uB85C \uACE0\uC815",noFixedTitle:"\uBE44\uACE0\uC815",reset:"\uCD08\uAE30\uD654",columnDisplay:"\uCEEC\uB7FC \uD45C\uC2DC",columnSetting:"\uC124\uC815",fullScreen:"\uC804\uCCB4 \uD654\uBA74",exitFullScreen:"\uC804\uCCB4 \uD654\uBA74 \uCDE8\uC18C",reload:"\uB2E4\uC2DC \uC77D\uAE30",density:"\uC5EC\uBC31",densityDefault:"\uAE30\uBCF8",densityLarger:"\uB9CE\uC740 \uC5EC\uBC31",densityMiddle:"\uC911\uAC04 \uC5EC\uBC31",densitySmall:"\uC881\uC740 \uC5EC\uBC31"},stepsForm:{next:"\uB2E4\uC74C",prev:"\uC774\uC804",submit:"\uC885\uB8CC"},loginForm:{submitText:"\uB85C\uADF8\uC778"},editableTable:{action:{save:"\uC800\uC7A5",cancel:"\uCDE8\uC18C",delete:"\uC0AD\uC81C"}}},$={moneySymbol:"\u20AE",form:{lightFilter:{more:"\u0418\u043B\u04AF\u04AF",clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",confirm:"\u0411\u0430\u0442\u0430\u043B\u0433\u0430\u0430\u0436\u0443\u0443\u043B\u0430\u0445",itemUnit:"\u041D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableForm:{search:"\u0425\u0430\u0439\u0445",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",submit:"\u0418\u043B\u0433\u044D\u044D\u0445",collapsed:"\u04E8\u0440\u0433\u04E9\u0442\u0433\u04E9\u0445",expand:"\u0425\u0443\u0440\u0430\u0430\u0445",inputPlaceholder:"\u0423\u0442\u0433\u0430 \u043E\u0440\u0443\u0443\u043B\u043D\u0430 \u0443\u0443",selectPlaceholder:"\u0423\u0442\u0433\u0430 \u0441\u043E\u043D\u0433\u043E\u043D\u043E \u0443\u0443"},alert:{clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",selected:"\u0421\u043E\u043D\u0433\u043E\u0433\u0434\u0441\u043E\u043D",item:"\u041D\u044D\u0433\u0436"},pagination:{total:{range:" ",total:"of",item:"\u043D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableToolBar:{leftPin:"\u0417\u04AF\u04AF\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",rightPin:"\u0411\u0430\u0440\u0443\u0443\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",noPin:"\u0411\u044D\u0445\u043B\u044D\u0445\u0433\u04AF\u0439",leftFixedTitle:"\u0417\u04AF\u04AF\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",rightFixedTitle:"\u0411\u0430\u0440\u0443\u0443\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",noFixedTitle:"\u0417\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445\u0433\u04AF\u0439",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",columnDisplay:"\u0411\u0430\u0433\u0430\u043D\u0430\u0430\u0440 \u0445\u0430\u0440\u0443\u0443\u043B\u0430\u0445",columnSetting:"\u0422\u043E\u0445\u0438\u0445\u0440\u0433\u043E\u043E",fullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446\u044D\u044D\u0440",exitFullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446 \u0446\u0443\u0446\u043B\u0430\u0445",reload:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",density:"\u0425\u044D\u043C\u0436\u044D\u044D",densityDefault:"\u0425\u044D\u0432\u0438\u0439\u043D",densityLarger:"\u0422\u043E\u043C",densityMiddle:"\u0414\u0443\u043D\u0434",densitySmall:"\u0416\u0438\u0436\u0438\u0433"},stepsForm:{next:"\u0414\u0430\u0440\u0430\u0430\u0445",prev:"\u04E8\u043C\u043D\u04E9\u0445",submit:"\u0414\u0443\u0443\u0441\u0433\u0430\u0445"},loginForm:{submitText:"\u041D\u044D\u0432\u0442\u0440\u044D\u0445"},editableTable:{action:{save:"\u0425\u0430\u0434\u0433\u0430\u043B\u0430\u0445",cancel:"\u0426\u0443\u0446\u043B\u0430\u0445",delete:"\u0423\u0441\u0442\u0433\u0430\u0445"}},switch:{open:"\u041D\u044D\u044D\u0445",close:"\u0425\u0430\u0430\u0445"}},ae={moneySymbol:"RM",tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},loginForm:{submitText:"Log Masuk"}},Ce={moneySymbol:"z\u0142",form:{lightFilter:{more:"Wi\u0119cej",clear:"Wyczy\u015B\u0107",confirm:"Potwierd\u017A",itemUnit:"Ilo\u015B\u0107"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierd\u017A",collapsed:"Poka\u017C wiecej",expand:"Poka\u017C mniej",inputPlaceholder:"Prosz\u0119 poda\u0107",selectPlaceholder:"Prosz\u0119 wybra\u0107"},alert:{clear:"Wyczy\u015B\u0107",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpis\xF3w"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypi\u0119te do lewej",rightFixedTitle:"Przypi\u0119te do prawej",noFixedTitle:"Nieprzypi\u0119te",reset:"Reset",columnDisplay:"Wy\u015Bwietlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pe\u0142en ekran",exitFullScreen:"Zamknij pe\u0142en ekran",reload:"Od\u015Bwie\u017C",density:"Odst\u0119p",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Zaloguj si\u0119"}},ye={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"items"}},tableToolBar:{leftPin:"Fixar \xE0 esquerda",rightPin:"Fixar \xE0 direita",noPin:"Desfixado",leftFixedTitle:"Fixado \xE0 esquerda",rightFixedTitle:"Fixado \xE0 direita",noFixedTitle:"N\xE3o fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configura\xE7\xF5es",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padr\xE3o",densityLarger:"Largo",densityMiddle:"M\xE9dio",densitySmall:"Compacto"},stepsForm:{next:"Pr\xF3ximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar"}}},ue={moneySymbol:"\u20BD",form:{lightFilter:{more:"\u0415\u0449\u0435",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",confirm:"\u041E\u041A",itemUnit:"\u041F\u043E\u0437\u0438\u0446\u0438\u0438"}},tableForm:{search:"\u041D\u0430\u0439\u0442\u0438",reset:"\u0421\u0431\u0440\u043E\u0441",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",collapsed:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"},alert:{clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",selected:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},pagination:{total:{range:" ",total:"\u0438\u0437",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043B\u0435\u0432\u0430",rightPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043F\u0440\u0430\u0432\u0430",noPin:"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C",leftFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043B\u0435\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043F\u0440\u0430\u0432\u0430",noFixedTitle:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E",reset:"\u0421\u0431\u0440\u043E\u0441",columnDisplay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u043E\u043B\u0431\u0446\u0430",columnSetting:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",fullScreen:"\u041F\u043E\u043B\u043D\u044B\u0439 \u044D\u043A\u0440\u0430\u043D",exitFullScreen:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",reload:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",density:"\u0420\u0430\u0437\u043C\u0435\u0440",densityDefault:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",densityLarger:"\u0411\u043E\u043B\u044C\u0448\u043E\u0439",densityMiddle:"\u0421\u0440\u0435\u0434\u043D\u0438\u0439",densitySmall:"\u0421\u0436\u0430\u0442\u044B\u0439"},stepsForm:{next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C"},loginForm:{submitText:"\u0412\u0445\u043E\u0434"},editableTable:{action:{save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"}}},we={moneySymbol:"RSD",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Prona\u0111i",reset:"Resetuj",submit:"Po\u0161alji",collapsed:"Pro\u0161iri",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"O\u010Disti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zaka\u010Di levo",rightPin:"Zaka\u010Di desno",noPin:"Nije zaka\u010Deno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Pode\u0161avanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osve\u017Ei",density:"Veli\u010Dina",densityDefault:"Podrazumevana",densityLarger:"Ve\u0107a",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sa\u010Duvaj",cancel:"Poni\u0161ti",delete:"Obri\u0161i"}}},ke={moneySymbol:"\u20BA",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"\xD6\u011Feler"}},tableForm:{search:"Filtrele",reset:"S\u0131f\u0131rla",submit:"G\xF6nder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer girin",selectPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer se\xE7in"},alert:{clear:"Temizle",selected:"Se\xE7ili",item:"\xD6\u011Fe"},pagination:{total:{range:" ",total:"Toplam",item:"\xD6\u011Fe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sa\u011Fa sabitle",noPin:"Sabitlemeyi kald\u0131r",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sa\u011Fa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"S\u0131f\u0131rla",columnDisplay:"Kolon G\xF6r\xFCn\xFCm\xFC",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan \xC7\u0131k",reload:"Yenile",density:"Kal\u0131nl\u0131k",densityDefault:"Varsay\u0131lan",densityLarger:"B\xFCy\xFCk",densityMiddle:"Orta",densitySmall:"K\xFC\xE7\xFCk"},stepsForm:{next:"S\u0131radaki",prev:"\xD6nceki",submit:"G\xF6nder"},loginForm:{submitText:"Giri\u015F Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazge\xE7",delete:"Sil"}}},be={moneySymbol:"\u20AB",tableForm:{search:"T\xECm ki\u1EBFm",reset:"L\xE0m l\u1EA1i",submit:"G\u1EEDi \u0111i",collapsed:"M\u1EDF r\u1ED9ng",expand:"Thu g\u1ECDn",inputPlaceholder:"nh\u1EADp d\u1EEF li\u1EC7u",selectPlaceholder:"Vui l\xF2ng ch\u1ECDn"},alert:{clear:"X\xF3a",selected:"\u0111\xE3 ch\u1ECDn",item:"m\u1EE5c"},pagination:{total:{range:" ",total:"tr\xEAn",item:"m\u1EB7t h\xE0ng"}},tableToolBar:{leftPin:"Ghim tr\xE1i",rightPin:"Ghim ph\u1EA3i",noPin:"B\u1ECF ghim",leftFixedTitle:"C\u1ED1 \u0111\u1ECBnh tr\xE1i",rightFixedTitle:"C\u1ED1 \u0111\u1ECBnh ph\u1EA3i",noFixedTitle:"Ch\u01B0a c\u1ED1 \u0111\u1ECBnh",reset:"L\xE0m l\u1EA1i",columnDisplay:"C\u1ED9t hi\u1EC3n th\u1ECB",columnSetting:"C\u1EA5u h\xECnh",fullScreen:"Ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",exitFullScreen:"Tho\xE1t ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",reload:"L\xE0m m\u1EDBi",density:"M\u1EADt \u0111\u1ED9 hi\u1EC3n th\u1ECB",densityDefault:"M\u1EB7c \u0111\u1ECBnh",densityLarger:"M\u1EB7c \u0111\u1ECBnh",densityMiddle:"Trung b\xECnh",densitySmall:"Ch\u1EADt"},loginForm:{submitText:"\u0110\u0103ng nh\u1EADp"}},$e={moneySymbol:"\uFFE5",form:{lightFilter:{more:"\u66F4\u591A\u7B5B\u9009",clear:"\u6E05\u9664",confirm:"\u786E\u8BA4",itemUnit:"\u9879"}},tableForm:{search:"\u67E5\u8BE2",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u5F00",expand:"\u6536\u8D77",inputPlaceholder:"\u8BF7\u8F93\u5165",selectPlaceholder:"\u8BF7\u9009\u62E9"},alert:{clear:"\u53D6\u6D88\u9009\u62E9",selected:"\u5DF2\u9009\u62E9",item:"\u9879"},pagination:{total:{range:"\u7B2C",total:"\u6761/\u603B\u5171",item:"\u6761"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5728\u5217\u9996",rightPin:"\u56FA\u5B9A\u5728\u5217\u5C3E",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u4FA7",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u4FA7",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8BBE\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7D27\u51D1"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664"}},switch:{open:"\u6253\u5F00",close:"\u5173\u95ED"},loginForm:{submitText:"\u767B\u5F55"}},Zt={moneySymbol:"NT$",form:{lightFilter:{more:"\u66F4\u591A\u7BE9\u9078",clear:"\u6E05\u9664",confirm:"\u78BA\u8A8D",itemUnit:"\u9805"}},tableForm:{search:"\u67E5\u8A62",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u6536\u8D77",inputPlaceholder:"\u8ACB\u8F38\u5165",selectPlaceholder:"\u8ACB\u9078\u64C7"},alert:{clear:"\u53D6\u6D88\u9078\u64C7",selected:"\u5DF2\u9078\u64C7",item:"\u9805"},pagination:{total:{range:"\u7B2C",total:"\u689D/\u7E3D\u5171",item:"\u689D"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5230\u5DE6\u908A",rightPin:"\u56FA\u5B9A\u5230\u53F3\u908A",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u5074",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u5074",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8A2D\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8A8D",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7DCA\u6E4A"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664"}},switch:{open:"\u6253\u958B",close:"\u95DC\u9589"},loginForm:{submitText:"\u767B\u5165"}};function tt(st,Ve,Oe){var Qe=Ve.replace(/\[(\d+)\]/g,".$1").split("."),Ge=st,xe=Oe,lt=(0,O.Z)(Qe),wt;try{for(lt.s();!(wt=lt.n()).done;){var zt=wt.value;if(xe=Object(Ge)[zt],Ge=Object(Ge)[zt],xe===void 0)return Oe}}catch(Ct){lt.e(Ct)}finally{lt.f()}return xe}var ve=function(Ve,Oe){return{getMessage:function(Ge,xe){return tt(Oe,Ge,xe)||xe},locale:Ve}},nt=ve("mn_MN",$),Vt=ve("ar_EG",oe),ut=ve("zh_CN",$e),St=ve("en_US",ee),jt=ve("en_GB",J),Ue=ve("vi_VN",be),Ut=ve("it_IT",Ie),Ae=ve("ja_JP",Y),xt=ve("es_ES",Re),At=ve("ca_ES",ce),Ze=ve("ru_RU",ue),at=ve("sr_RS",we),De=ve("ms_MY",ae),he=ve("zh_TW",Zt),Ee=ve("fr_FR",de),We=ve("pt_BR",ye),Wt=ve("ko_KR",le),Ot=ve("id_ID",Xe),Ft=ve("de_DE",Ke),Tt=ve("fa_IR",c),Rt=ve("tr_TR",ke),Yt=ve("pl_PL",Ce),Gt=ve("hr_",r),Mt={"mn-MN":nt,"ar-EG":Vt,"zh-CN":ut,"en-US":St,"en-GB":jt,"vi-VN":Ue,"it-IT":Ut,"ja-JP":Ae,"es-ES":xt,"ca-ES":At,"ru-RU":Ze,"sr-RS":at,"ms-MY":De,"zh-TW":he,"fr-FR":Ee,"pt-BR":We,"ko-KR":Wt,"id-ID":Ot,"de-DE":Ft,"fa-IR":Tt,"tr-TR":Rt,"pl-PL":Yt,"hr-HR":Gt},Bt=Object.keys(Mt),Qt=re.createContext({intl:(0,me.Z)((0,me.Z)({},ut),{},{locale:"default"}),valueTypeMap:{}}),Cn=Qt.Consumer,En=Qt.Provider,_e=function(Ve){if(!Ve)return"zh-CN";var Oe=Ve.toLocaleLowerCase();return Bt.find(function(Qe){var Ge=Qe.toLocaleLowerCase();return Ge.includes(Oe)})},Bn=function(){var Ve=(0,ze.kY)(),Oe=Ve.cache;return(0,re.useEffect)(function(){return function(){Oe.clear()}},[]),null},Xt=function(Ve){var Oe=Ve.children,Qe=Ve.autoClearCache,Ge=Qe===void 0?!1:Qe,xe=(0,re.useContext)(te.ZP.ConfigContext),lt=xe.locale,wt=lt===void 0?te.ZP:re.Fragment,zt=re.createElement(Cn,null,function(Ct){var Nt,an=lt==null?void 0:lt.locale,_t=_e(an),Pn=an&&((Nt=Ct.intl)===null||Nt===void 0?void 0:Nt.locale)==="default"?Mt[_t]:Ct.intl||Mt[_t],ln=lt===void 0?{locale:ne.Z}:{};return re.createElement(wt,ln,re.createElement(En,{value:(0,me.Z)((0,me.Z)({},Ct),{},{intl:Pn||ut})},re.createElement(re.Fragment,null,Ge&&re.createElement(Bn,null),Oe)))});return Ge?re.createElement(ze.J$,{value:{provider:function(){return new Map}}},zt):zt};function zn(){var st=(0,re.useContext)(te.ZP.ConfigContext),Ve=st.locale,Oe=(0,re.useContext)(Qt),Qe=Oe.intl;return Qe&&Qe.locale!=="default"?Qe:(Ve==null?void 0:Ve.locale)?Mt[_e(Ve.locale)]:ut}var kn=null,$n=null},19912:function(mt,Le,d){"use strict";var U=d(67294),te=function(O){var ne=(0,U.useRef)();return(0,U.useEffect)(function(){ne.current=O}),ne.current};Le.Z=te},70460:function(mt,Le,d){"use strict";d.d(Le,{J:function(){return te}});var U=d(67294),te=function(O){var ne=(0,U.useRef)(null);return ne.current=O,(0,U.useCallback)(function(){for(var re,ze=arguments.length,oe=new Array(ze),ce=0;ce1?me-1:0),ne=1;ne");return oe}return{Provider:re,useContainer:ze}}function me(O){return O.useContainer()}},38069:function(mt,Le,d){"use strict";d.d(Le,{ZP:function(){return Ie}});var U=d(67294);function te(Y,le){return ze(Y)||re(Y,le)||O(Y,le)||me()}function me(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(Y,le){if(!!Y){if(typeof Y=="string")return ne(Y,le);var $=Object.prototype.toString.call(Y).slice(8,-1);if($==="Object"&&Y.constructor&&($=Y.constructor.name),$==="Map"||$==="Set")return Array.from(Y);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return ne(Y,le)}}function ne(Y,le){(le==null||le>Y.length)&&(le=Y.length);for(var $=0,ae=new Array(le);$Y.length)&&(le=Y.length);for(var $=0,ae=new Array(le);$0&&arguments[0]!==void 0?arguments[0]:21;if(!window.crypto)return(jr+=1).toFixed(0);for(var a="",n=crypto.getRandomValues(new Uint8Array(e));e--;){var l=63&n[e];a+=l<36?l.toString(36):l<62?(l-26).toString(36).toUpperCase():l<63?"_":"-"}return a},Yr=function(){return typeof window=="undefined"?Vr():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():Vr()},Ze=t(56725),Hr=t(60249),ir=function(e,a,n){return(0,Hr.Z)(e,a,n)};function Ur(g,e){var a=(0,r.useRef)();return ir(g,a.current,e)||(a.current=g),a.current}function Er(g,e,a){(0,r.useEffect)(g,Ur(e||[],a))}function Fr(g,e,a,n){var l=useDebounceFn(_asyncToGenerator(_regeneratorRuntime().mark(function s(){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:g();case 1:case"end":return u.stop()}},s)})),n||16);useEffect(function(){l.run()},Ur(e||[],a))}var xr=Er,lr=function(e){var a=(0,r.useRef)(e);return a.current=e,a},Nr=lr;function ke(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,a=arguments.length>2?arguments[2]:void 0,n=(0,r.useState)(g),l=(0,M.Z)(n,2),s=l[0],v=l[1],u=Nr(g);return(0,r.useEffect)(function(){var i=setTimeout(function(){v(u.current)},e);return function(){return clearTimeout(i)}},a?[e].concat((0,vr.Z)(a)):void 0),s}var Q=t(29405),Ee=t(54029),he=t(79166),mr=t(59189),pe={Success:function(e){var a=e.children;return r.createElement(he.Z,{status:"success",text:a})},Error:function(e){var a=e.children;return r.createElement(he.Z,{status:"error",text:a})},Default:function(e){var a=e.children;return r.createElement(he.Z,{status:"default",text:a})},Processing:function(e){var a=e.children;return r.createElement(he.Z,{status:"processing",text:a})},Warning:function(e){var a=e.children;return r.createElement(he.Z,{status:"warning",text:a})},success:function(e){var a=e.children;return r.createElement(he.Z,{status:"success",text:a})},error:function(e){var a=e.children;return r.createElement(he.Z,{status:"error",text:a})},default:function(e){var a=e.children;return r.createElement(he.Z,{status:"default",text:a})},processing:function(e){var a=e.children;return r.createElement(he.Z,{status:"processing",text:a})},warning:function(e){var a=e.children;return r.createElement(he.Z,{status:"warning",text:a})}},He=function(e){var a=e.color,n=e.children;return r.createElement(he.Z,{color:a,text:n})},Pe=pe,fr=t(81539),P=t(43358),E=t(34041),j=t(47673),X=t(4107),qe=t(76570),ce=t(76422),fe=t(26435),Ge=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger"],or=function(e,a){return(0,N.Z)(a)!=="object"?e[a]||a:e[a==null?void 0:a.value]||a.label},Je=function(e,a){var n=e.label,l=e.prefixCls,s=e.onChange,v=e.value,u=e.mode,i=e.children,m=e.defaultValue,h=e.size,C=e.showSearch,y=e.disabled,b=e.style,T=e.className,x=e.bordered,I=e.options,z=e.onSearch,w=e.allowClear,L=e.labelInValue,U=e.fieldNames,k=e.lightLabel,B=e.labelTrigger,A=(0,R.Z)(e,Ge),de=e.placeholder,se=de===void 0?n:de,Ae=U||{},K=Ae.label,H=K===void 0?"label":K,$=Ae.value,G=$===void 0?"value":$,cr=(0,r.useContext)(me.ZP.ConfigContext),Mr=cr.getPrefixCls,Or=Mr("pro-field-select-light-select"),Tr=(0,r.useState)(!1),Lr=(0,M.Z)(Tr,2),hr=Lr[0],Be=Lr[1],Br=(0,r.useState)(""),Qe=(0,M.Z)(Br,2),Xe=Qe[0],kr=Qe[1],Kr=(0,r.useMemo)(function(){var $r={};return I==null||I.forEach(function(pr){var ze=pr[H],Ye=pr[G];$r[Ye]=ze||Ye}),$r},[H,I,G]),pt=Array.isArray(v)?v.map(function($r){return or(Kr,$r)}):or(Kr,v);return r.createElement("div",{className:De()(Or,(0,ae.Z)({},"".concat(Or,"-searchable"),C),T),style:b,onClick:function(pr){var ze,Ye,We;if(!y){var Ar=k==null||(ze=k.current)===null||ze===void 0||(Ye=ze.labelRef)===null||Ye===void 0||(We=Ye.current)===null||We===void 0?void 0:We.contains(pr.target);Be(Ar?!hr:!0)}}},r.createElement(E.Z,(0,c.Z)({},A,{allowClear:w,value:v,mode:u,labelInValue:L,size:h,disabled:y,onChange:function(pr,ze){s==null||s(pr,ze),u!=="multiple"&&setTimeout(function(){Be(!1)},0)},bordered:x,showSearch:C,onSearch:z,style:b,dropdownRender:function(pr){return r.createElement("div",{ref:a},C&&r.createElement("div",{style:{margin:"4px 8px"}},r.createElement(X.Z,{value:Xe,allowClear:w,onChange:function(Ye){kr(Ye.target.value.toLowerCase()),z==null||z(Ye.target.value)},onKeyDown:function(Ye){Ye.stopPropagation()},style:{width:"100%"},prefix:r.createElement(qe.Z,null)})),pr)},open:hr,onDropdownVisibleChange:function(pr){pr||setTimeout(function(){kr("")},0),B||Be(pr)},prefixCls:l,options:Xe?I==null?void 0:I.filter(function($r){var pr,ze,Ye,We,Ar;return((pr=String($r[H]))===null||pr===void 0||(ze=pr.toLowerCase())===null||ze===void 0?void 0:ze.includes(Xe))||((Ye=$r[G])===null||Ye===void 0||(We=Ye.toString())===null||We===void 0||(Ar=We.toLowerCase())===null||Ar===void 0?void 0:Ar.includes(Xe))}):I})),r.createElement(ce.Z,{ellipsis:!0,size:h,label:n,placeholder:se,disabled:y,expanded:hr,bordered:x,allowClear:w,value:pt||(v==null?void 0:v.label)||v,onClear:function(){s==null||s(void 0,void 0)},ref:k}))},_e=r.forwardRef(Je),rr=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames"],ie=E.Z.Option,Re=E.Z.OptGroup,gr=function(e,a){var n=e.optionItemRender,l=e.mode,s=e.onSearch,v=e.onFocus,u=e.onChange,i=e.autoClearSearchValue,m=e.searchOnFocus,h=m===void 0?!1:m,C=e.resetAfterSelect,y=C===void 0?!1:C,b=e.optionFilterProp,T=b===void 0?"label":b,x=e.optionLabelProp,I=x===void 0?"label":x,z=e.className,w=e.disabled,L=e.options,U=e.fetchData,k=e.resetData,B=e.prefixCls,A=e.onClear,de=e.searchValue,se=e.showSearch,Ae=e.fieldNames,K=(0,R.Z)(e,rr),H=Ae||{},$=H.label,G=$===void 0?"label":$,cr=H.value,Mr=cr===void 0?"value":cr,Or=H.options,Tr=Or===void 0?"options":Or,Lr=(0,r.useState)(de),hr=(0,M.Z)(Lr,2),Be=hr[0],Br=hr[1],Qe=(0,r.useRef)();(0,r.useImperativeHandle)(a,function(){return Qe.current}),(0,r.useEffect)(function(){if(K.autoFocus){var ze;Qe==null||(ze=Qe.current)===null||ze===void 0||ze.focus()}},[K.autoFocus]),(0,r.useEffect)(function(){Br(de)},[de]);var Xe=(0,r.useContext)(me.ZP.ConfigContext),kr=Xe.getPrefixCls,Kr=kr("pro-filed-search-select",B),pt=De()(Kr,z,(0,ae.Z)({},"".concat(Kr,"-disabled"),w)),$r=function(Ye,We){return Array.isArray(Ye)&&Ye.length>0?Ye.map(function(Ar,at){var et=We==null?void 0:We[at],dt=(et==null?void 0:et["data-item"])||{};return(0,o.Z)((0,o.Z)({},dt),Ar)}):[]},pr=function ze(Ye){return Ye.map(function(We){var Ar,at=We.disabled,et=We.className,dt=We.optionType,vt=We[G],Nt=We[Mr],Vn=(Ar=We[Tr])!==null&&Ar!==void 0?Ar:[];return dt==="optGroup"?r.createElement(Re,{key:Nt,label:vt},ze(Vn)):r.createElement(ie,(0,c.Z)({},We,{value:Nt,key:Nt||(vt==null?void 0:vt.toString()),disabled:at,"data-item":We,className:"".concat(Kr,"-option ").concat(et||""),label:vt}),(n==null?void 0:n(We))||vt)})};return r.createElement(E.Z,(0,c.Z)({ref:Qe,className:pt,allowClear:!0,autoClearSearchValue:i,disabled:w,mode:l,showSearch:se,searchValue:Be,optionFilterProp:T,optionLabelProp:I,onClear:function(){A==null||A(),U(""),se&&Br("")}},K,{onSearch:se?function(ze){U(ze),s==null||s(ze),Br(ze)}:void 0,onChange:function(Ye,We){se&&i&&(U(""),s==null||s(""),Br(""));for(var Ar=arguments.length,at=new Array(Ar>2?Ar-2:0),et=2;etG?U([G,$]):$===void 0&&G===void 0&&U(void 0)}},de=function(H,$){var G=(0,vr.Z)(L||[]);G[H]=$===null?void 0:$,U(G)},se=(i==null?void 0:i.placeholder)||v,Ae=r.createElement(X.Z.Group,{compact:!0,onBlur:A},r.createElement(_r.Z,(0,c.Z)({},i,{placeholder:Array.isArray(se)?se[0]:se,id:I!=null?I:"".concat(I,"-0"),style:{width:"calc((100% - ".concat(y,"px) / 2)")},value:L==null?void 0:L[0],defaultValue:T==null?void 0:T[0],onChange:function(H){return de(0,H)}})),r.createElement(X.Z,{style:{width:y,textAlign:"center",borderLeft:0,borderRight:0,pointerEvents:"none",backgroundColor:"#FFF"},placeholder:h,disabled:!0}),r.createElement(_r.Z,(0,c.Z)({},i,{placeholder:Array.isArray(se)?se[1]:se,id:I!=null?I:"".concat(I,"-1"),style:{width:"calc((100% - ".concat(y,"px) / 2)"),borderLeft:0},value:L==null?void 0:L[1],defaultValue:T==null?void 0:T[1],onChange:function(H){return de(1,H)}})));return u?u(n,(0,o.Z)({mode:l},i),Ae):Ae}return null},rt=r.forwardRef(Sr),Qr=t(22385),Pt=t(61580),st=function(e){var a=e.text,n=e.mode,l=e.render,s=e.renderFormItem,v=e.format,u=e.fieldProps,i=(0,d.YB)();if(n==="read"){var m=r.createElement(Pt.Z,{title:ur()(a).format((u==null?void 0:u.format)||v||"YYYY-MM-DD HH:mm:ss")},ur()(a).fromNow());return l?l(a,(0,o.Z)({mode:n},u),r.createElement(r.Fragment,null,m)):r.createElement(r.Fragment,null,m)}if(n==="edit"||n==="update"){var h=i.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),C=tt(u.value),y=r.createElement(xe.Z,(0,c.Z)({placeholder:h,showTime:!0},u,{value:C}));return s?s(a,(0,o.Z)({mode:n},u),y):y}return null},Ft=st,bt=t(12968),yt=t(62462),ut=r.forwardRef(function(g,e){var a=g.text,n=g.mode,l=g.render,s=g.renderFormItem,v=g.fieldProps,u=g.placeholder,i=g.width;if(n==="read"){var m=r.createElement(yt.Z,(0,c.Z)({ref:e,width:i||32,src:a},v));return l?l(a,(0,o.Z)({mode:n},v),m):m}if(n==="edit"||n==="update"){var h=r.createElement(X.Z,(0,c.Z)({ref:e,placeholder:u},v));return s?s(a,(0,o.Z)({mode:n},v),h):h}return null}),Ct=ut,Bt=t(76592),Rt=function(e,a){var n,l=e.border,s=l===void 0?!1:l,v=e.children,u=(0,r.useContext)(me.ZP.ConfigContext),i=u.getPrefixCls,m=i("pro-field-index-column");return r.createElement("div",{ref:a,className:De()(m,(n={},(0,ae.Z)(n,"".concat(m,"-border"),s),(0,ae.Z)(n,"top-three",v>3),n))},v)},St=r.forwardRef(Rt),Et=t(97435),It=["content","numberFormatOptions","numberPopoverRender"],Ot=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],Mt=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),Se={style:"currency",currency:"USD"},Ce={style:"currency",currency:"RUB"},Le={style:"currency",currency:"RSD"},je={style:"currency",currency:"MYR"},yr={style:"currency",currency:"BRL"},Xr={default:Mt,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":Se,"ru-RU":Ce,"ms-MY":je,"sr-RS":Le,"pt-BR":yr},Rr=function(e,a,n,l){var s=a;return typeof s=="string"&&(s=Number(s)),!s&&s!==0?"":new Intl.NumberFormat(e||"zh-Hans-CN",(0,o.Z)((0,o.Z)({},Xr[e||"zh-Hans-CN"]||Xr["zh-Hans-CN"]),{},{maximumFractionDigits:n},l)).format(s)},Ir=2,Tt=r.forwardRef(function(g,e){var a=g.content,n=g.numberFormatOptions,l=g.numberPopoverRender,s=(0,R.Z)(g,It),v=(0,Zr.Z)(function(){return s.defaultValue},{value:s.value,onChange:s.onChange}),u=(0,M.Z)(v,2),i=u[0],m=u[1],h=a==null?void 0:a((0,o.Z)((0,o.Z)({},s),{},{value:i})),C={visible:h?s.visible:!1};return r.createElement(Oe.Z,(0,c.Z)({placement:"topLeft"},C,{trigger:["focus","click"],content:h,getPopupContainer:function(b){return(b==null?void 0:b.parentElement)||document.body}}),r.createElement(_r.Z,(0,c.Z)({ref:e},s,{value:i,onChange:m})))}),xt=function(e,a){var n,l,s=e.text,v=e.mode,u=e.render,i=e.renderFormItem,m=e.fieldProps,h=e.proFieldKey,C=e.plain,y=e.valueEnum,b=e.placeholder,T=e.locale,x=T===void 0?(n=m.customSymbol)!==null&&n!==void 0?n:"zh-Hans-CN":T,I=e.customSymbol,z=I===void 0?m.customSymbol:I,w=e.numberFormatOptions,L=w===void 0?m==null?void 0:m.numberFormatOptions:w,U=e.numberPopoverRender,k=U===void 0?(m==null?void 0:m.numberPopoverRender)||!1:U,B=(0,R.Z)(e,Ot),A=(l=m==null?void 0:m.precision)!==null&&l!==void 0?l:Ir,de=(0,d.YB)();x&&d.Go[x]&&(de=d.Go[x]);var se=(0,r.useMemo)(function(){if(z)return z;var H=de.getMessage("moneySymbol","\uFFE5");if(!(B.moneySymbol===!1||m.moneySymbol===!1))return H},[z,m.moneySymbol,de,B.moneySymbol]);if(v==="read"){var Ae=r.createElement("span",{ref:a},Rr(se?x:!1,s,A,L!=null?L:m.numberFormatOptions));return u?u(s,(0,o.Z)({mode:v},m),Ae):Ae}if(v==="edit"||v==="update"){var K=r.createElement(Tt,(0,c.Z)({content:function($){var G,cr;if(k!==!1&&!!$.value){var Mr=new RegExp("/B(?=(d{".concat(3+(A-Ir),"})+(?!d))/g")),Or=Rr(se?x:!1,(G=$.value)===null||G===void 0||(cr=G.toString())===null||cr===void 0?void 0:cr.replace(Mr,","),A,(0,o.Z)((0,o.Z)({},L),{},{notation:"compact"}));return typeof k=="function"?k==null?void 0:k($,Or):Or}},ref:a,precision:A,formatter:function($){if($&&se){var G=new RegExp("/B(?=(d{".concat(3+(A-Ir),"})+(?!d))/g"));return"".concat(se," ").concat($).replace(G,",")}return $==null?void 0:$.toString()},parser:function($){return se&&$?$.replace(new RegExp("\\".concat(se,"\\s?|(,*)"),"g"),""):$},placeholder:b},(0,Et.Z)(m,["numberFormatOptions","precision","numberPopoverRender","customSymbol"])));return i?i(s,(0,o.Z)({mode:v},m),K):K}return null},Wt=r.forwardRef(xt),wt=function(e){return e.map(function(a,n){return r.isValidElement(a)?r.cloneElement(a,(0,o.Z)({key:n},a==null?void 0:a.props)):r.createElement(r.Fragment,{key:n},a)})},Yt=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.fieldProps,u=(0,r.useContext)(me.ZP.ConfigContext),i=u.getPrefixCls,m=i("pro-field-option");if((0,r.useImperativeHandle)(a,function(){return{}}),s){var h=s(n,(0,o.Z)({mode:l},v),r.createElement(r.Fragment,null));return!h||(h==null?void 0:h.length)<1||!Array.isArray(h)?null:r.createElement(Cr.Z,{size:16,className:m},wt(h))}return!n||!Array.isArray(n)?r.isValidElement(n)?n:null:r.createElement(Cr.Z,{size:16,className:m},wt(n))},Ht=r.forwardRef(Yt),Gt=t(95357),Jt=t(88633),Qt=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],Xt=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.renderFormItem,u=e.fieldProps,i=e.proFieldKey,m=(0,R.Z)(e,Qt),h=(0,d.YB)(),C=(0,Zr.Z)(function(){return m.visible||!1},{value:m.visible,onChange:m.onVisible}),y=(0,M.Z)(C,2),b=y[0],T=y[1];if(l==="read"){var x=r.createElement(r.Fragment,null,"-");return n&&(x=r.createElement(Cr.Z,null,r.createElement("span",{ref:a},b?n:"\uFF0A \uFF0A \uFF0A \uFF0A \uFF0A"),r.createElement("a",{onClick:function(){return T(!b)}},b?r.createElement(Gt.Z,null):r.createElement(Jt.Z,null)))),s?s(n,(0,o.Z)({mode:l},u),x):x}if(l==="edit"||l==="update"){var I=r.createElement(X.Z.Password,(0,c.Z)({placeholder:h.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ref:a},u));return v?v(n,(0,o.Z)({mode:l},u),I):I}return null},kt=r.forwardRef(Xt),qt=t(49323),Dt=t.n(qt);function _t(g){return g===0?null:g>0?"+":"-"}function en(g){return g===0?"#595959":g>0?"#ff4d4f":"#52c41a"}function rn(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return e>=0?g.toFixed(e):g}var tn=function(e,a){var n=e.text,l=e.prefix,s=e.precision,v=e.suffix,u=v===void 0?"%":v,i=e.mode,m=e.showColor,h=m===void 0?!1:m,C=e.render,y=e.renderFormItem,b=e.fieldProps,T=e.placeholder,x=e.showSymbol,I=(0,r.useMemo)(function(){return typeof n=="string"&&n.includes("%")?Dt()(n.replace("%","")):Dt()(n)},[n]),z=(0,r.useMemo)(function(){return typeof x=="function"?x==null?void 0:x(n):x},[x,n]);if(i==="read"){var w=h?{color:en(I)}:{},L=r.createElement("span",{style:w,ref:a},l&&r.createElement("span",null,l),z&&r.createElement(r.Fragment,null,_t(I)," "),rn(Math.abs(I),s),u&&u);return C?C(n,(0,o.Z)((0,o.Z)({mode:i},b),{},{prefix:l,precision:s,showSymbol:z,suffix:u}),L):L}if(i==="edit"||i==="update"){var U=r.createElement(_r.Z,(0,c.Z)({ref:a,formatter:function(B){return B&&l?"".concat(l," ").concat(B).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):B},parser:function(B){return B?B.replace(/.*\s|,/g,""):""},placeholder:T},b));return y?y(n,(0,o.Z)({mode:i},b),U):U}return null},zt=r.forwardRef(tn),jn=t(34669),nn=t(54458);function an(g){return g===100?"success":g<0?"exception":g<100?"active":"normal"}var ln=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.plain,u=e.renderFormItem,i=e.fieldProps,m=e.placeholder,h=(0,r.useMemo)(function(){return typeof n=="string"&&n.includes("%")?Dt()(n.replace("%","")):Dt()(n)},[n]);if(l==="read"){var C=r.createElement(nn.Z,(0,c.Z)({ref:a,size:"small",style:{minWidth:100,maxWidth:320},percent:h,steps:v?10:void 0,status:an(h)},i));return s?s(h,(0,o.Z)({mode:l},i),C):C}if(l==="edit"||l==="update"){var y=r.createElement(_r.Z,(0,c.Z)({ref:a,placeholder:m},i));return u?u(n,(0,o.Z)({mode:l},i),y):y}return null},$t=r.forwardRef(ln),Yn=t(88983),Lt=t(47933),Hn=t(25702),on=["radioType","renderFormItem","mode","render"],un=function(e,a){var n=e.radioType,l=e.renderFormItem,s=e.mode,v=e.render,u=(0,R.Z)(e,on),i=(0,r.useContext)(me.ZP.ConfigContext),m=i.getPrefixCls,h=m("pro-field-radio"),C=ne(u),y=(0,M.Z)(C,3),b=y[0],T=y[1],x=y[2],I=(0,r.useRef)();if((0,r.useImperativeHandle)(a,function(){return(0,o.Z)((0,o.Z)({},I.current||{}),{},{fetchData:function(){return x()}})}),b)return r.createElement(ar.Z,{size:"small"});if(s==="read"){var z=(T==null?void 0:T.length)?T==null?void 0:T.reduce(function(B,A){var de;return(0,o.Z)((0,o.Z)({},B),{},(0,ae.Z)({},(de=A.value)!==null&&de!==void 0?de:"",A.label))},{}):void 0,w=r.createElement(r.Fragment,null,le(u.text,Ie(u.valueEnum||z)));return v?v(u.text,(0,o.Z)({mode:s},u.fieldProps),w)||null:w}if(s==="edit"){var L,U=n==="button"?Lt.ZP.Button:Lt.ZP,k=r.createElement(Lt.ZP.Group,(0,c.Z)({ref:I},u.fieldProps,{className:De()((L=u.fieldProps)===null||L===void 0?void 0:L.className,"".concat(h,"-").concat(u.fieldProps.layout||"horizontal")),options:void 0}),T==null?void 0:T.map(function(B){return r.createElement(U,(0,c.Z)({key:B.value},B),B.label)}));return l?l(u.text,(0,o.Z)({mode:s},u.fieldProps),k)||null:k}return null},Ut=r.forwardRef(un),dn=function(e,a){var n=e.text,l=e.mode,s=e.format,v=e.render,u=e.renderFormItem,i=e.plain,m=e.showTime,h=e.fieldProps,C=(0,d.YB)(),y=Array.isArray(n)?n:[],b=(0,M.Z)(y,2),T=b[0],x=b[1],I=(0,r.useCallback)(function(B){if(typeof(h==null?void 0:h.format)=="function"){var A;return h==null||(A=h.format)===null||A===void 0?void 0:A.call(h,B)}return(h==null?void 0:h.format)||s||"YYYY-MM-DD"},[h,s]),z=T?ur()(T).format(I(ur()(T))):"",w=x?ur()(x).format(I(ur()(x))):"";if(l==="read"){var L=r.createElement("div",{ref:a},r.createElement("div",null,z||"-"),r.createElement("div",null,w||"-"));return v?v(n,(0,o.Z)({mode:l},h),r.createElement("span",null,L)):L}if(l==="edit"||l==="update"){var U=tt(h.value),k=r.createElement(xe.Z.RangePicker,(0,c.Z)({ref:a,format:s,showTime:m,placeholder:[C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],bordered:i===void 0?!0:!i},h,{value:U}));return u?u(n,(0,o.Z)({mode:l},h),k):k}return null},Kt=r.forwardRef(dn),Gn=t(96433),Vt=t(2864),sn=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.renderFormItem,u=e.fieldProps;if(l==="read"){var i=r.createElement(Vt.Z,(0,c.Z)({allowHalf:!0,disabled:!0,ref:a},u,{value:n}));return s?s(n,(0,o.Z)({mode:l},u),r.createElement(r.Fragment,null,i)):i}if(l==="edit"||l==="update"){var m=r.createElement(Vt.Z,(0,c.Z)({allowHalf:!0,ref:a},u));return v?v(n,(0,o.Z)({mode:l},u),m):m}return null},cn=r.forwardRef(sn);function vn(g){var e="",a=Math.floor(g/(3600*24)),n=Math.floor(g/3600),l=Math.floor(g/60%60),s=Math.floor(g%60);return e="".concat(s,"\u79D2"),l>0&&(e="".concat(l,"\u5206\u949F").concat(e)),n>0&&(e="".concat(n,"\u5C0F\u65F6").concat(e)),a>0&&(e="".concat(a,"\u5929").concat(e)),e}var mn=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.renderFormItem,u=e.fieldProps,i=e.placeholder;if(l==="read"){var m=vn(Number(n)),h=r.createElement("span",{ref:a},m);return s?s(n,(0,o.Z)({mode:l},u),h):h}if(l==="edit"||l==="update"){var C=r.createElement(_r.Z,(0,c.Z)({ref:a,min:0,style:{width:"100%"},placeholder:i},u));return v?v(n,(0,o.Z)({mode:l},u),C):C}return null},fn=r.forwardRef(mn),Jn=t(77576),gn=t(12028),hn=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.renderFormItem,u=e.fieldProps,i=(0,d.YB)(),m=(0,r.useMemo)(function(){var y,b;return n==null||"".concat(n).length<1?"-":n?(y=u==null?void 0:u.checkedChildren)!==null&&y!==void 0?y:i.getMessage("switch.open","\u6253\u5F00"):(b=u==null?void 0:u.unCheckedChildren)!==null&&b!==void 0?b:i.getMessage("switch.close","\u5173\u95ED")},[u==null?void 0:u.checkedChildren,u==null?void 0:u.unCheckedChildren,n]);if(l==="read")return s?s(n,(0,o.Z)({mode:l},u),r.createElement(r.Fragment,null,m)):m!=null?m:"-";if(l==="edit"||l==="update"){var h,C=r.createElement(gn.Z,(0,c.Z)({ref:a},(0,Et.Z)(u,["value"]),{checked:(h=u==null?void 0:u.checked)!==null&&h!==void 0?h:u==null?void 0:u.value}));return v?v(n,(0,o.Z)({mode:l},u),C):C}return null},pn=r.forwardRef(hn),Pn=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.renderFormItem,u=e.fieldProps,i=e.emptyText,m=i===void 0?"-":i,h=u||{},C=h.autoFocus,y=h.prefix,b=y===void 0?"":y,T=h.suffix,x=T===void 0?"":T,I=(0,d.YB)(),z=(0,r.useRef)();if((0,r.useImperativeHandle)(a,function(){return z.current}),(0,r.useEffect)(function(){if(C){var B;(B=z.current)===null||B===void 0||B.focus()}},[C]),l==="read"){var w=r.createElement(r.Fragment,null,b,n!=null?n:m,x);if(s){var L;return(L=s(n,(0,o.Z)({mode:l},u),w))!==null&&L!==void 0?L:m}return w}if(l==="edit"||l==="update"){var U=I.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),k=r.createElement(X.Z,(0,c.Z)({ref:z,placeholder:U,allowClear:!0},u));return v?v(n,(0,o.Z)({mode:l},u),k):k}return null},Fn=r.forwardRef(Pn),yn=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.renderFormItem,u=e.fieldProps,i=(0,d.YB)();if(l==="read"){var m=r.createElement("span",{ref:a},n!=null?n:"-");return s?s(n,(0,o.Z)({mode:l},u),m):m}if(l==="edit"||l==="update"){var h=r.createElement(X.Z.TextArea,(0,c.Z)({ref:a,rows:3,onKeyPress:function(y){y.key==="Enter"&&y.stopPropagation()},placeholder:i.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")},u));return v?v(n,(0,o.Z)({mode:l},u),h):h}return null},Cn=r.forwardRef(yn),Qn=t(39002),jt=t(68351),En=function(e,a){var n=e.text,l=e.mode,s=e.light,v=e.label,u=e.format,i=e.render,m=e.renderFormItem,h=e.plain,C=e.fieldProps,y=e.lightLabel,b=e.labelTrigger,T=(0,r.useState)(!1),x=(0,M.Z)(T,2),I=x[0],z=x[1],w=(0,r.useContext)(me.ZP.SizeContext),L=(0,r.useContext)(me.ZP.ConfigContext),U=L.getPrefixCls,k=U("pro-field-date-picker"),B=(C==null?void 0:C.format)||u||"HH:mm:ss",A=ur().isMoment(n)||typeof n=="number";if(l==="read"){var de=r.createElement("span",{ref:a},n?ur()(n,A?void 0:B).format(B):"-");return i?i(n,(0,o.Z)({mode:l},C),r.createElement("span",null,de)):de}if(l==="edit"||l==="update"){var se,Ae=C.disabled,K=C.onChange,H=C.placeholder,$=C.allowClear,G=C.value,cr=tt(G,B);if(s){var Mr=cr&&cr.format(B)||"";se=r.createElement("div",{className:"".concat(k,"-light"),onClick:function(Tr){var Lr,hr,Be,Br=y==null||(Lr=y.current)===null||Lr===void 0||(hr=Lr.labelRef)===null||hr===void 0||(Be=hr.current)===null||Be===void 0?void 0:Be.contains(Tr.target);z(Br?!I:!0)}},r.createElement(jt.Z,(0,c.Z)({value:cr,format:u,ref:a},C,{onChange:function(Tr){K==null||K(Tr),setTimeout(function(){z(!1)},0)},onOpenChange:function(Tr){b||z(Tr)},open:I})),r.createElement(ce.Z,{label:v,disabled:Ae,placeholder:H,size:w,value:Mr,allowClear:$,onClear:function(){return K==null?void 0:K(null)},expanded:I,ref:y}))}else se=r.createElement(xe.Z.TimePicker,(0,c.Z)({ref:a,format:u,bordered:h===void 0?!0:!h},C,{value:cr}));return m?m(n,(0,o.Z)({mode:l},C),se):se}return null},xn=function(e){var a=e.text,n=e.mode,l=e.format,s=e.render,v=e.renderFormItem,u=e.plain,i=e.fieldProps,m=(i==null?void 0:i.format)||l||"HH:mm:ss",h=Array.isArray(a)?a:[],C=(0,M.Z)(h,2),y=C[0],b=C[1],T=ur().isMoment(y)||typeof y=="number",x=ur().isMoment(b)||typeof b=="number",I=y?ur()(y,T?void 0:m).format(m):"",z=b?ur()(b,x?void 0:m).format(m):"";if(n==="read"){var w=r.createElement("div",null,r.createElement("div",null,I||"-"),r.createElement("div",null,z||"-"));return s?s(a,(0,o.Z)({mode:n},i),r.createElement("span",null,w)):w}if(n==="edit"||n==="update"){var L=i.value,U=tt(L,m),k=r.createElement(jt.Z.RangePicker,(0,c.Z)({format:l,bordered:u===void 0?!0:!u},i,{value:U}));return v?v(a,(0,o.Z)({mode:n},i),k):k}return null},Zn=r.forwardRef(En),Xn=t(62999),bn=t(54680),Sn=["radioType","renderFormItem","mode","light","render"],Mn=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","searchValue"],Tn=function(e,a){var n=e.radioType,l=e.renderFormItem,s=e.mode,v=e.light,u=e.render,i=(0,R.Z)(e,Sn),m=(0,r.useContext)(me.ZP.ConfigContext),h=m.getPrefixCls,C=h("pro-field-tree-select"),y=h("pro-core-field-label"),b=(0,r.useRef)(null),T=i.fieldProps||{},x=T.onSearch,I=T.onClear,z=T.onChange,w=T.onBlur,L=T.showSearch,U=T.autoClearSearchValue,k=T.treeData,B=T.searchValue,A=(0,R.Z)(T,Mn),de=ne((0,o.Z)((0,o.Z)({},i),{},{defaultKeyWords:B})),se=(0,M.Z)(de,3),Ae=se[0],K=se[1],H=se[2],$=(0,Zr.Z)("",{onChange:x,value:B}),G=(0,M.Z)($,2),cr=G[0],Mr=G[1];(0,r.useImperativeHandle)(a,function(){return(0,o.Z)((0,o.Z)({},b.current||{}),{},{fetchData:function(){return H()}})});var Or=(0,r.useMemo)(function(){if(s==="read"){var Qe=(A==null?void 0:A.fieldNames)||{},Xe=Qe.value,kr=Xe===void 0?"value":Xe,Kr=Qe.label,pt=Kr===void 0?"label":Kr,$r=Qe.children,pr=$r===void 0?"children":$r,ze=new Map,Ye=function We(Ar){if(!(Ar==null?void 0:Ar.length))return ze;for(var at=Ar.length,et=0;et0&&arguments[0]!==void 0?arguments[0]:{},De=Ne.children,nr=Ne.Wrapper,ar=(0,J.Z)(Ne,V);return M?Z.createElement(N.Z,(0,d.Z)({gutter:8},te,ar),De):nr?Z.createElement(nr,null,De):De},ColWrapper:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},De=Ne.children,nr=Ne.Wrapper,ar=(0,J.Z)(Ne,p),vr=(0,Z.useMemo)(function(){var Dr=(0,f.Z)((0,f.Z)({},me),ar);return typeof Dr.span=="undefined"&&typeof Dr.xs=="undefined"&&(Dr.xs=24),Dr},[ar]);return M?Z.createElement(R.Z,vr,De):nr?Z.createElement(nr,null,De):De}}},oe=function(ae){var M=(0,Z.useMemo)(function(){return(0,c.Z)(ae)==="object"?ae:{grid:ae}},[ae]),te=(0,Z.useContext)(ve.Z),me=te.grid;return(0,Z.useMemo)(function(){return r({grid:!!(me||M.grid),rowProps:M==null?void 0:M.rowProps,colProps:M==null?void 0:M.colProps,Wrapper:M==null?void 0:M.Wrapper})},[M==null?void 0:M.Wrapper,M==null?void 0:M.colProps,M.grid,M==null?void 0:M.rowProps,me])}},95073:function(Pr,q,t){"use strict";t.d(q,{U:function(){return Y}});var c=t(22122),o=t(84305),R=t(75901),f=t(28991),S=t(81253),N=t(54787),d=t(67294),J=t(9715),Z=t(86835),ve=t(20228),V=t(11382),p=t(96156),r=t(55507),oe=t(92137),O=t(28481),ae=t(22270),M=t(85061),te=t(90484),me=t(88306),$e=t(8880),Ne=t(74763),De=t(92210);function nr(F){return(0,te.Z)(F)!=="object"?!1:F===null?!0:!(d.isValidElement(F)||F.constructor===RegExp||F instanceof Map||F instanceof Set||F instanceof HTMLElement||F instanceof Blob||F instanceof File||Array.isArray(F))}var ar=function(D,ye){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,_=Object.keys(ye).reduce(function(er,ee){var re=ye[ee];return(0,Ne.Z)(re)||(er[ee]=re),er},{});if(Object.keys(_).length<1||typeof window=="undefined"||(0,te.Z)(D)!=="object"||(0,Ne.Z)(D)||D instanceof Blob)return D;var Me=Array.isArray(D)?[]:{},Ke=function er(ee,re){var tr=Array.isArray(ee),W=tr?[]:{};return ee==null||ee===void 0?W:(Object.keys(ee).forEach(function(Fe){var Te=re?[re,Fe].flat(1):[Fe].flat(1),ue=ee[Fe],we=(0,me.Z)(_,Te),sr=function(){var Oe=typeof we=="function"?we==null?void 0:we(ue,Fe,ee):Fe;if(Array.isArray(Oe)){W=(0,$e.Z)(W,Oe,ue);return}(0,te.Z)(Oe)==="object"&&!Array.isArray(Me)?Me=(0,f.Z)((0,f.Z)({},Me),Oe):(0,te.Z)(Oe)==="object"&&Array.isArray(Me)?W=(0,f.Z)((0,f.Z)({},W),Oe):Oe&&(W=(0,$e.Z)(W,[Oe],ue))};if(we&&typeof we=="function"&&sr(),typeof window!="undefined"){if(nr(ue)){var Wr=er(ue,Te);if(Object.keys(Wr).length<1)return;W=(0,$e.Z)(W,[Fe],Wr);return}sr()}}),ne?W:ee)};return Me=Array.isArray(D)&&Array.isArray(Me)?(0,M.Z)(Ke(D)):(0,De.T)({},Ke(D),Me),Me},vr=ar,Dr=t(23312),Cr=t(56725),jr=t(26369),Vr=t(60249),Yr=t(41036),Ze=t(29405),Hr=0;function ir(F){var D=(0,d.useState)(function(){return F.proFieldKey?F.proFieldKey.toString():(Hr+=1,Hr.toString())}),ye=(0,O.Z)(D,1),ne=ye[0],_=(0,d.useRef)(ne),Me=function(){var re=(0,oe.Z)((0,r.Z)().mark(function tr(){var W,Fe;return(0,r.Z)().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,(W=F.request)===null||W===void 0?void 0:W.call(F,F.params,F);case 2:return Fe=ue.sent,ue.abrupt("return",Fe);case 4:case"end":return ue.stop()}},tr)}));return function(){return re.apply(this,arguments)}}();(0,d.useEffect)(function(){return function(){Hr+=1}},[]);var Ke=(0,Ze.ZP)([_.current,F.params],Me,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),er=Ke.data,ee=Ke.error;return[er||ee]}var Ur=ir,Er=t(45095),Fr=t(80334),xr=t(49111),lr=t(19650),Nr=t(57663),ke=t(71577),Q=t(97435),Ee=function(D){var ye=(0,N.YB)();if(D.render===!1)return null;var ne=D.form,_=D.onSubmit,Me=D.render,Ke=D.onReset,er=D.searchConfig,ee=er===void 0?{}:er,re=D.submitButtonProps,tr=D.resetButtonProps,W=tr===void 0?{}:tr,Fe=function(){ne.submit(),_==null||_()},Te=function(){ne.resetFields(),Ke==null||Ke()},ue=ee.submitText,we=ue===void 0?ye.getMessage("tableForm.submit","\u63D0\u4EA4"):ue,sr=ee.resetText,Wr=sr===void 0?ye.getMessage("tableForm.reset","\u91CD\u7F6E"):sr,wr=[];W!==!1&&wr.push(d.createElement(ke.Z,(0,c.Z)({},(0,Q.Z)(W,["preventDefault"]),{key:"rest",onClick:function(Zr){var br;(W==null?void 0:W.preventDefault)||Te(),W==null||(br=W.onClick)===null||br===void 0||br.call(W,Zr)}}),Wr)),re!==!1&&wr.push(d.createElement(ke.Z,(0,c.Z)({type:"primary"},(0,Q.Z)(re||{},["preventDefault"]),{key:"submit",onClick:function(Zr){var br;(re==null?void 0:re.preventDefault)||Fe(),re==null||(br=re.onClick)===null||br===void 0||br.call(re,Zr)}}),we));var Oe=Me?Me((0,f.Z)((0,f.Z)({},D),{},{submit:Fe,reset:Te}),wr):wr;return Oe?Array.isArray(Oe)?(Oe==null?void 0:Oe.length)<1?null:(Oe==null?void 0:Oe.length)===1?Oe[0]:d.createElement(lr.Z,{wrap:!0},Oe):Oe:null},he=Ee,mr=t(49263),pe=t(5309),He=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","extraUrlParams","syncToUrl","syncToInitialValues","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],Pe=["request","params","initialValues","formKey"],fr=function(D,ye,ne){return D===!0?ye:(0,ae.h)(D,ye,ne)},P=function(D){return!D||Array.isArray(D)?D:[D]};function E(F){var D=F.children,ye=F.contentRender,ne=F.submitter,_=F.fieldProps,Me=F.formItemProps,Ke=F.groupProps,er=F.dateFormatter,ee=er===void 0?"string":er,re=F.formRef,tr=F.onInit,W=F.form,Fe=F.formComponentType,Te=F.extraUrlParams,ue=Te===void 0?{}:Te,we=F.syncToUrl,sr=F.syncToInitialValues,Wr=sr===void 0?!0:sr,wr=F.onReset,Oe=F.omitNil,Ve=Oe===void 0?!0:Oe,Zr=F.isKeyPressSubmit,br=F.autoFocusFirstInput,nt=br===void 0?!0:br,zr=F.grid,lt=F.rowProps,mt=F.colProps,Gr=(0,S.Z)(F,He),xe=(0,d.useContext)(R.ZP.SizeContext),qr=Z.Z.useForm(W),ur=(0,O.Z)(qr,1),Jr=ur[0],ot=(0,Er.l)({},{disabled:!we}),tt=(0,O.Z)(ot,2),ft=tt[0],it=tt[1],dr=(0,d.useRef)(Jr||{}),Zt=(0,pe.z)({grid:zr,rowProps:lt,colProps:mt}),_r=Zt.RowWrapper,gt=(0,d.useRef)({}),ht=(0,d.useRef)({}),Sr=(0,d.useCallback)(function(Se,Ce,Le){return vr((0,Dr.ZP)(Se,ee,gt.current,Ce,Le),ht.current,Ce)},[ee]),rt=(0,d.useMemo)(function(){return{getFieldsFormatValue:function(Ce){var Le;return Sr((Le=dr.current)===null||Le===void 0?void 0:Le.getFieldsValue(Ce),Ve)},getFieldFormatValue:function(){var Ce,Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],je=P(Le);if(!je)throw new Error("nameList is require");var yr=(Ce=dr.current)===null||Ce===void 0?void 0:Ce.getFieldValue(je),Xr=je?(0,$e.Z)({},je,yr):yr;return(0,me.Z)(Sr(Xr,Ve,je),je)},getFieldFormatValueObject:function(Ce){var Le,je=P(Ce),yr=(Le=dr.current)===null||Le===void 0?void 0:Le.getFieldValue(je),Xr=je?(0,$e.Z)({},je,yr):yr;return Sr(Xr,Ve,je)},validateFieldsReturnFormatValue:function(){var Se=(0,oe.Z)((0,r.Z)().mark(function Le(je){var yr,Xr;return(0,r.Z)().wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:if(!(!Array.isArray(je)&&je)){Ir.next=2;break}throw new Error("nameList must be array");case 2:return Ir.next=4,(yr=dr.current)===null||yr===void 0?void 0:yr.validateFields(je);case 4:return Xr=Ir.sent,Ir.abrupt("return",Sr(Xr,Ve));case 6:case"end":return Ir.stop()}},Le)}));function Ce(Le){return Se.apply(this,arguments)}return Ce}(),formRef:dr}},[Ve,Sr]),Qr=(0,d.useMemo)(function(){var Se=(0,f.Z)({},dr.current);return Object.keys(dr.current||{}).forEach(function(Ce){Object.defineProperty(Se,Ce,{get:function(){return dr.current[Ce]}})}),Object.keys(rt).forEach(function(Ce){Object.defineProperty(Se,Ce,{get:function(){return rt[Ce]}})}),Se},[]),Pt=(0,Cr.Z)(!1),st=(0,O.Z)(Pt,2),Ft=st[0],bt=st[1],yt=(0,d.useMemo)(function(){return d.Children.toArray(D).map(function(Se,Ce){return Ce===0&&d.isValidElement(Se)&&nt?d.cloneElement(Se,(0,f.Z)((0,f.Z)({},Se.props),{},{autoFocus:nt})):Se})},[nt,D]),ut=(0,d.useMemo)(function(){return typeof ne=="boolean"||!ne?{}:ne},[ne]);(0,d.useImperativeHandle)(re,function(){return Qr});var Ct=(0,d.useMemo)(function(){if(ne!==!1)return d.createElement(he,(0,c.Z)({key:"submitter"},ut,{onReset:function(){var Ce,Le,je=Sr((Ce=dr.current)===null||Ce===void 0?void 0:Ce.getFieldsValue(),Ve);if(ut==null||(Le=ut.onReset)===null||Le===void 0||Le.call(ut,je),wr==null||wr(je),we){var yr,Xr=Object.keys(Sr((yr=dr.current)===null||yr===void 0?void 0:yr.getFieldsValue(),!1)).reduce(function(Rr,Ir){return(0,f.Z)((0,f.Z)({},Rr),{},(0,p.Z)({},Ir,je[Ir]||void 0))},ue);it(fr(we,Xr,"set"))}},form:Qr,submitButtonProps:(0,f.Z)({loading:Ft},ut.submitButtonProps)}))},[ne,ut,Qr,Ft,Sr,Ve,wr,we,ue,it]),Bt=(0,d.useMemo)(function(){var Se=zr?d.createElement(_r,null,yt):yt;return ye?ye(Se,Ct,dr.current):Se},[zr,_r,yt,ye,Ct]),Rt=(0,d.useMemo)(function(){if(typeof window!="undefined"&&Fe&&["DrawerForm"].includes(Fe))return function(Se){return Se.parentNode||document.body}},[Fe]);(0,d.useEffect)(function(){var Se,Ce=Sr((Se=dr.current)===null||Se===void 0?void 0:Se.getFieldsValue(!0),Ve);tr==null||tr(Ce,Qr)},[]);var St=(0,d.useState)(function(){return we?fr(we,ft,"get"):{}}),Et=(0,O.Z)(St,2),It=Et[0],Ot=Et[1];(0,d.useEffect)(function(){Wr||Ot({})},[Wr]);var Mt=(0,jr.Z)(F.initialValues);return(0,d.useEffect)(function(){if(!(we||!F.initialValues||!Mt||Gr.request)){var Se=(0,Vr.Z)(F.initialValues,Mt);(0,Fr.ET)(Se,"initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ? : null "),(0,Fr.ET)(Se,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[F.initialValues]),(0,d.useEffect)(function(){!we||it((0,f.Z)((0,f.Z)({},ft),ue))},[ue,we]),d.createElement(mr.Z.Provider,{value:{grid:zr,formRef:dr,fieldProps:_,formItemProps:Me,groupProps:Ke,formComponentType:Fe,getPopupContainer:Rt,setFieldValueType:function(Ce,Le){var je=Le.valueType,yr=je===void 0?"text":je,Xr=Le.dateFormat,Rr=Le.transform;!Array.isArray(Ce)||(ht.current=(0,$e.Z)(ht.current,Ce,Rr),gt.current=(0,$e.Z)(gt.current,Ce,{valueType:yr,dateFormat:Xr}))}}},d.createElement(Yr.Z.Provider,{value:rt},d.createElement(R.ZP.SizeContext.Provider,{value:Gr.size||xe},d.createElement(Z.Z,(0,c.Z)({onKeyPress:function(Ce){if(!!Zr&&Ce.key==="Enter"){var Le;(Le=dr.current)===null||Le===void 0||Le.submit()}},form:Jr},Gr,{initialValues:(0,f.Z)((0,f.Z)({},It),Gr.initialValues),onValuesChange:function(Ce,Le){var je;Gr==null||(je=Gr.onValuesChange)===null||je===void 0||je.call(Gr,Sr(Ce,Ve),Sr(Le,Ve))},onFinish:(0,oe.Z)((0,r.Z)().mark(function Se(){var Ce,Le,je,yr;return(0,r.Z)().wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:if(Gr.onFinish){Rr.next=2;break}return Rr.abrupt("return");case 2:if(!Ft){Rr.next=4;break}return Rr.abrupt("return");case 4:return bt(!0),Rr.prev=5,Le=Sr((Ce=dr.current)===null||Ce===void 0?void 0:Ce.getFieldsValue(),Ve),Rr.next=9,Gr.onFinish(Le);case 9:we&&(yr=Object.keys(Sr((je=dr.current)===null||je===void 0?void 0:je.getFieldsValue(),!1)).reduce(function(Ir,Tt){var xt;return(0,f.Z)((0,f.Z)({},Ir),{},(0,p.Z)({},Tt,(xt=Le[Tt])!==null&&xt!==void 0?xt:void 0))},ue),Object.keys(ft).forEach(function(Ir){yr[Ir]!==!1&&yr[Ir]!==0&&!yr[Ir]&&(yr[Ir]=void 0)}),it(fr(we,yr,"set"))),bt(!1),Rr.next=16;break;case 13:Rr.prev=13,Rr.t0=Rr.catch(5),bt(!1);case 16:case"end":return Rr.stop()}},Se,null,[[5,13]])}))}),Gr.component!==!1&&d.createElement("input",{type:"text",style:{display:"none"}}),d.createElement(Z.Z.Item,{noStyle:!0,shouldUpdate:!0},function(Se){return re&&(re.current=(0,f.Z)((0,f.Z)({},Se),rt)),dr.current=Se,null}),Bt))))}var j=0;function X(F){var D=F.request,ye=F.params,ne=F.initialValues,_=F.formKey,Me=_===void 0?j:_,Ke=(0,S.Z)(F,Pe);(0,d.useEffect)(function(){j+=0},[]);var er=Ur({request:D,params:ye,proFieldKey:Me}),ee=(0,O.Z)(er,1),re=ee[0];return!re&&F.request?d.createElement("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"}},d.createElement(V.Z,null)):d.createElement(N.oK,null,d.createElement(E,(0,c.Z)({autoComplete:"off"},Ke,{initialValues:(0,f.Z)((0,f.Z)({},ne),re)})))}var qe=t(8812),ce=t(22385),fe=t(61580),Ge=t(68628),or=t(94184),Je=t.n(or),_e=t(47369),rr=function(D){var ye=D.label,ne=D.tooltip,_=D.ellipsis,Me=D.subTitle,Ke=(0,d.useContext)(R.ZP.ConfigContext),er=Ke.getPrefixCls;if(!ne&&!Me)return d.createElement(d.Fragment,null,ye);var ee=er("pro-core-label-tip"),re=typeof ne=="string"||d.isValidElement(ne)?{title:ne}:ne,tr=(re==null?void 0:re.icon)||d.createElement(Ge.Z,null);return d.createElement("div",{className:ee,onMouseDown:function(Fe){return Fe.stopPropagation()},onMouseLeave:function(Fe){return Fe.stopPropagation()},onMouseMove:function(Fe){return Fe.stopPropagation()}},d.createElement("div",{className:Je()("".concat(ee,"-title"),(0,p.Z)({},"".concat(ee,"-title-ellipsis"),_))},ye),Me&&d.createElement("div",{className:"".concat(ee,"-subtitle")},Me),ne&&d.createElement(fe.Z,re,d.createElement("span",{className:"".concat(ee,"-icon")},tr)))},ie=d.memo(rr),Re=t(61951),gr=d.forwardRef(function(F,D){var ye=d.useContext(mr.Z),ne=ye.groupProps,_=(0,f.Z)((0,f.Z)({},ne),F),Me=_.children,Ke=_.collapsible,er=_.defaultCollapsed,ee=_.style,re=_.labelLayout,tr=_.title,W=tr===void 0?F.label:tr,Fe=_.tooltip,Te=_.align,ue=Te===void 0?"start":Te,we=_.direction,sr=_.size,Wr=sr===void 0?32:sr,wr=_.titleStyle,Oe=_.titleRender,Ve=_.spaceProps,Zr=_.extra,br=_.autoFocus,nt=(0,Cr.Z)(function(){return er||!1},{value:F.collapsed,onChange:F.onCollapse}),zr=(0,O.Z)(nt,2),lt=zr[0],mt=zr[1],Gr=(0,d.useContext)(R.ZP.ConfigContext),xe=Gr.getPrefixCls,qr=(0,pe.z)(F),ur=qr.ColWrapper,Jr=qr.RowWrapper,ot=xe("pro-form-group"),tt=Ke&&d.createElement(qe.Z,{style:{marginRight:8},rotate:lt?void 0:90}),ft=d.createElement(ie,{label:tt?d.createElement("div",null,tt,W):W,tooltip:Fe}),it=(0,d.useCallback)(function(Sr){var rt=Sr.children;return d.createElement(lr.Z,(0,c.Z)({},Ve,{className:Je()("".concat(ot,"-container"),Ve==null?void 0:Ve.className),size:Wr,align:ue,direction:we,style:(0,f.Z)({rowGap:0},Ve==null?void 0:Ve.style)}),rt)},[ue,ot,we,Wr,Ve]),dr=Oe?Oe(ft,F):ft,Zt=(0,d.useMemo)(function(){var Sr=[],rt=d.Children.toArray(Me).map(function(Qr,Pt){var st;return d.isValidElement(Qr)&&(Qr==null||(st=Qr.props)===null||st===void 0?void 0:st.hidden)?(Sr.push(Qr),null):Pt===0&&d.isValidElement(Qr)&&br?d.cloneElement(Qr,(0,f.Z)((0,f.Z)({},Qr.props),{},{autoFocus:br})):Qr});return[d.createElement(Jr,{key:"children",Wrapper:it},rt),Sr.length>0?d.createElement("div",{style:{display:"none"}},Sr):null]},[Me,Jr,it,br]),_r=(0,O.Z)(Zt,2),gt=_r[0],ht=_r[1];return d.createElement(ur,null,d.createElement("div",{className:Je()(ot,(0,p.Z)({},"".concat(ot,"-twoLine"),re==="twoLine")),style:ee,ref:D},ht,(W||Fe||Zr)&&d.createElement("div",{className:"".concat(ot,"-title"),style:wr,onClick:function(){mt(!lt)}},Zr?d.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"}},dr,d.createElement("span",{onClick:function(rt){return rt.stopPropagation()}},Zr)):dr),Ke&<?null:gt))});gr.displayName="ProForm-Group";var Ue=gr,ge=t(61104);function be(F){return d.createElement(X,(0,c.Z)({layout:"vertical",submitter:{render:function(ye,ne){return ne.reverse()}},contentRender:function(ye,ne){return d.createElement(d.Fragment,null,ye,ne)}},F))}be.Group=Ue,be.useForm=Z.Z.useForm,be.Item=ge.Z;var Ie=t(54217),le=["logo","message","contentStyle","title","subTitle","actions","children"];function Y(F){var D=F.logo,ye=F.message,ne=F.contentStyle,_=F.title,Me=F.subTitle,Ke=F.actions,er=F.children,ee=(0,S.Z)(F,le),re=(0,N.YB)(),tr=ee.submitter===!1?!1:(0,f.Z)((0,f.Z)({searchConfig:{submitText:re.getMessage("loginForm.submitText","\u767B\u5F55")},submitButtonProps:{size:"large",style:{width:"100%"}}},ee.submitter),{},{render:function(sr,Wr){var wr,Oe,Ve=Wr.pop();if((ee==null||(wr=ee.submitter)===null||wr===void 0?void 0:wr.render)===void 0)return Ve;if(typeof(ee==null||(Oe=ee.submitter)===null||Oe===void 0?void 0:Oe.render)=="function"){var Zr,br;return ee==null||(Zr=ee.submitter)===null||Zr===void 0||(br=Zr.render)===null||br===void 0?void 0:br.call(Zr,sr,Wr)}return Ve}}),W=(0,d.useContext)(R.ZP.ConfigContext),Fe=W.getPrefixCls("pro-form-login"),Te=function(sr){return"".concat(Fe,"-").concat(sr)},ue=(0,d.useMemo)(function(){return D?typeof D=="string"?d.createElement("img",{src:D}):D:null},[D]);return d.createElement("div",{className:Te("container")},d.createElement("div",{className:Te("top")},_||ue?d.createElement("div",{className:Te("header")},ue?d.createElement("span",{className:Te("logo")},ue):null,_?d.createElement("span",{className:Te("title")},_):null):null,Me?d.createElement("div",{className:Te("desc")},Me):null),d.createElement("div",{className:Te("main"),style:(0,f.Z)({width:328},ne)},d.createElement(be,(0,c.Z)({isKeyPressSubmit:!0},ee,{submitter:tr}),ye,er),Ke?d.createElement("div",{className:Te("other")},Ke):null))}},54787:function(Pr,q,t){"use strict";t.d(q,{oK:function(){return ie},ZP:function(){return Ue},Go:function(){return ce},YB:function(){return Re}});var c=t(84305),o=t(75901),R=t(28991),f=t(11965),S=t(84378),N=t(67294),d=t(29405),J={moneySymbol:"$",form:{lightFilter:{more:"\u0627\u0644\u0645\u0632\u064A\u062F",clear:"\u0646\u0638\u0641",confirm:"\u062A\u0623\u0643\u064A\u062F",itemUnit:"\u0639\u0646\u0627\u0635\u0631"}},tableForm:{search:"\u0627\u0628\u062D\u062B",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",submit:"\u0627\u0631\u0633\u0627\u0644",collapsed:"\u0645\u064F\u0642\u0644\u0635",expand:"\u0645\u064F\u0648\u0633\u0639",inputPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062F\u062E\u0627\u0644",selectPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062E\u062A\u064A\u0627\u0631"},alert:{clear:"\u0646\u0638\u0641",selected:"\u0645\u062D\u062F\u062F",item:"\u0639\u0646\u0635\u0631"},pagination:{total:{range:" ",total:"\u0645\u0646",item:"\u0639\u0646\u0627\u0635\u0631"}},tableToolBar:{leftPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noPin:"\u0627\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u062B\u0628\u064A\u062A",leftFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noFixedTitle:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0644\u0635\u0627\u0642",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",columnDisplay:"\u0627\u0644\u0623\u0639\u0645\u062F\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629",columnSetting:"\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",fullScreen:"\u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",exitFullScreen:"\u0627\u0644\u062E\u0631\u0648\u062C \u0645\u0646 \u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",reload:"\u062A\u062D\u062F\u064A\u062B",density:"\u0627\u0644\u0643\u062B\u0627\u0641\u0629",densityDefault:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",densityLarger:"\u0623\u0643\u0628\u0631",densityMiddle:"\u0648\u0633\u0637",densitySmall:"\u0645\u062F\u0645\u062C"},stepsForm:{next:"\u0627\u0644\u062A\u0627\u0644\u064A",prev:"\u0627\u0644\u0633\u0627\u0628\u0642"},loginForm:{submitText:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644"}},Z={moneySymbol:"\u20AC",tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col\xB7lapsar",inputPlaceholder:"Introdu\xEFu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitj\xE0",densitySmall:"Compacte"},stepsForm:{next:"Seg\xFCent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"}},ve={moneySymbol:"\u20AC",form:{lightFilter:{more:"Mehr",clear:"Zur\xFCcksetzen",confirm:"Best\xE4tigen",itemUnit:"Eintr\xE4ge"}},tableForm:{search:"Suchen",reset:"Zur\xFCcksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte ausw\xE4hlen"},alert:{clear:"Zur\xFCcksetzen",selected:"Ausgew\xE4hlt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Eintr\xE4gen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zur\xFCcksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Gr\xF6\xDFer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Anmelden"}},V={moneySymbol:"\xA3",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},p={moneySymbol:"$",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},r={moneySymbol:"\u20AC",form:{lightFilter:{more:"M\xE1s",clear:"Limpiar",confirm:"Confirmar",itemsUnits:"Objetos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"art\xEDculos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3n",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar"}},switch:{open:"abrir",close:"cerrar"}},oe={moneySymbol:"\u062A\u0648\u0645\u0627\u0646",form:{lightFilter:{more:"\u0628\u06CC\u0634\u062A\u0631",clear:"\u067E\u0627\u06A9 \u06A9\u0631\u062F\u0646",confirm:"\u062A\u0627\u06CC\u06CC\u062F",itemUnit:"\u0645\u0648\u0631\u062F"}},tableForm:{search:"\u062C\u0633\u062A\u062C\u0648",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",submit:"\u062A\u0627\u06CC\u06CC\u062F",collapsed:"\u0646\u0645\u0627\u06CC\u0634 \u0628\u06CC\u0634\u062A\u0631",expand:"\u0646\u0645\u0627\u06CC\u0634 \u06A9\u0645\u062A\u0631",inputPlaceholder:"\u067E\u06CC\u062F\u0627 \u06A9\u0646\u06CC\u062F",selectPlaceholder:"\u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F"},alert:{clear:"\u067E\u0627\u06A9 \u0633\u0627\u0632\u06CC",selected:"\u0627\u0646\u062A\u062E\u0627\u0628",item:"\u0645\u0648\u0631\u062F"},pagination:{total:{range:" ",total:"\u0627\u0632",item:"\u0645\u0648\u0631\u062F"}},tableToolBar:{leftPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0686\u067E",rightPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0631\u0627\u0633\u062A",noPin:"\u0633\u0646\u062C\u0627\u0642 \u0646\u0634\u062F\u0647",leftFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0686\u067E",rightFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0631\u0627\u0633\u062A",noFixedTitle:"\u0634\u0646\u0627\u0648\u0631",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",columnDisplay:"\u0646\u0645\u0627\u06CC\u0634 \u0647\u0645\u0647",columnSetting:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A",fullScreen:"\u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",exitFullScreen:"\u062E\u0631\u0648\u062C \u0627\u0632 \u062D\u0627\u0644\u062A \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",reload:"\u062A\u0627\u0632\u0647 \u0633\u0627\u0632\u06CC",density:"\u062A\u0631\u0627\u06A9\u0645",densityDefault:"\u067E\u06CC\u0634 \u0641\u0631\u0636",densityLarger:"\u0628\u0632\u0631\u06AF",densityMiddle:"\u0645\u062A\u0648\u0633\u0637",densitySmall:"\u06A9\u0648\u0686\u06A9"},stepsForm:{next:"\u0628\u0639\u062F\u06CC",prev:"\u0642\u0628\u0644\u06CC",submit:"\u0627\u062A\u0645\u0627\u0645"},loginForm:{submitText:"\u0648\u0631\u0648\u062F"},editableTable:{action:{save:"\u0630\u062E\u06CC\u0631\u0647",cancel:"\u0644\u063A\u0648",delete:"\u062D\u0630\u0641"}}},O={moneySymbol:"\u20AC",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"R\xE9initialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"R\xE9duire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"S\xE9lectionner une valeur"},alert:{clear:"R\xE9initialiser",selected:"S\xE9lectionn\xE9",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"\xE9l\xE9ments"}},tableToolBar:{leftPin:"\xC9pingler \xE0 gauche",rightPin:"\xC9pingler \xE0 gauche",noPin:"Sans \xE9pingle",leftFixedTitle:"Fixer \xE0 gauche",rightFixedTitle:"Fixer \xE0 droite",noFixedTitle:"Non fix\xE9",reset:"R\xE9initialiser",columnDisplay:"Affichage colonne",columnSetting:"R\xE9glages",fullScreen:"Plein \xE9cran",exitFullScreen:"Quitter Plein \xE9cran",reload:"Rafraichir",density:"Densit\xE9",densityDefault:"Par d\xE9faut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Pr\xE9c\xE9dente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer"}}},ae={moneySymbol:"kn",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretra\u017Ei",reset:"Poni\u0161ti",submit:"Potvrdi",collapsed:"Ra\u0161iri",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"O\u010Disti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prika\u010Di lijevo",rightPin:"Prika\u010Di desno",noPin:"Bez prika\u010Denja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Iza\u0111i iz punog zaslona",reload:"Ponovno u\u010Ditaj",density:"Veli\u010Dina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljede\u0107i",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obri\u0161i"}},switch:{open:"otvori",close:"zatvori"}},M={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"}},te={moneySymbol:"\u20AC",tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalit\xE0 schermo intero",exitFullScreen:"Esci da modalit\xE0 schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},loginForm:{submitText:"Accedi"}},me={moneySymbol:"\xA5",tableForm:{search:"\u691C\u7D22",reset:"\u30EA\u30BB\u30C3\u30C8",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u53CE\u7D0D",inputPlaceholder:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",selectPlaceholder:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},alert:{clear:"\u30AF\u30EA\u30A2",selected:"\u9078\u629E\u3057\u305F",item:"\u9805\u76EE"},pagination:{total:{range:"\u8A18\u4E8B",total:"/\u5408\u8A08",item:" "}},tableToolBar:{leftPin:"\u5DE6\u306B\u56FA\u5B9A",rightPin:"\u53F3\u306B\u56FA\u5B9A",noPin:"\u30AD\u30E3\u30F3\u30BB\u30EB",leftFixedTitle:"\u5DE6\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",rightFixedTitle:"\u53F3\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",noFixedTitle:"\u56FA\u5B9A\u3055\u308C\u3066\u306A\u3044\u9805\u76EE",reset:"\u30EA\u30BB\u30C3\u30C8",columnDisplay:"\u8868\u793A\u5217",columnSetting:"\u5217\u8868\u793A\u8A2D\u5B9A",fullScreen:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",exitFullScreen:"\u7D42\u4E86",reload:"\u66F4\u65B0",density:"\u884C\u9AD8",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D",densitySmall:"\u5C0F"},stepsForm:{next:"\u6B21\u306E\u30B9\u30C6\u30C3\u30D7",pre:"\u524D\u3078",submit:"\u9001\u4FE1"},loginForm:{submitText:"\u30ED\u30B0\u30A4\u30F3"}},$e={moneySymbol:"\u20A9",form:{lightFilter:{more:"\uB354\uBCF4\uAE30",clear:"\uCDE8\uC18C",confirm:"\uD655\uC778",itemUnit:"\uAC74\uC218"}},tableForm:{search:"\uC870\uD68C",reset:"\uCD08\uAE30\uD654",submit:"\uC81C\uCD9C",collapsed:"\uD655\uC7A5",expand:"\uB2EB\uAE30",inputPlaceholder:"\uC785\uB825\uD574 \uC8FC\uC138\uC694",selectPlaceholder:"\uC120\uD0DD\uD574 \uC8FC\uC138\uC694"},alert:{clear:"\uCDE8\uC18C",selected:"\uC120\uD0DD",item:"\uAC74"},pagination:{total:{range:" ",total:"/ \uCD1D",item:"\uAC74"}},tableToolBar:{leftPin:"\uC67C\uCABD\uC73C\uB85C \uD540",rightPin:"\uC624\uB978\uCABD\uC73C\uB85C \uD540",noPin:"\uD540 \uC81C\uAC70",leftFixedTitle:"\uC67C\uCABD\uC73C\uB85C \uACE0\uC815",rightFixedTitle:"\uC624\uB978\uCABD\uC73C\uB85C \uACE0\uC815",noFixedTitle:"\uBE44\uACE0\uC815",reset:"\uCD08\uAE30\uD654",columnDisplay:"\uCEEC\uB7FC \uD45C\uC2DC",columnSetting:"\uC124\uC815",fullScreen:"\uC804\uCCB4 \uD654\uBA74",exitFullScreen:"\uC804\uCCB4 \uD654\uBA74 \uCDE8\uC18C",reload:"\uB2E4\uC2DC \uC77D\uAE30",density:"\uC5EC\uBC31",densityDefault:"\uAE30\uBCF8",densityLarger:"\uB9CE\uC740 \uC5EC\uBC31",densityMiddle:"\uC911\uAC04 \uC5EC\uBC31",densitySmall:"\uC881\uC740 \uC5EC\uBC31"},stepsForm:{next:"\uB2E4\uC74C",prev:"\uC774\uC804",submit:"\uC885\uB8CC"},loginForm:{submitText:"\uB85C\uADF8\uC778"},editableTable:{action:{save:"\uC800\uC7A5",cancel:"\uCDE8\uC18C",delete:"\uC0AD\uC81C"}}},Ne={moneySymbol:"RM",tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},loginForm:{submitText:"Log Masuk"}},De={moneySymbol:"z\u0142",form:{lightFilter:{more:"Wi\u0119cej",clear:"Wyczy\u015B\u0107",confirm:"Potwierd\u017A",itemUnit:"Ilo\u015B\u0107"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierd\u017A",collapsed:"Poka\u017C wiecej",expand:"Poka\u017C mniej",inputPlaceholder:"Prosz\u0119 poda\u0107",selectPlaceholder:"Prosz\u0119 wybra\u0107"},alert:{clear:"Wyczy\u015B\u0107",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpis\xF3w"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypi\u0119te do lewej",rightFixedTitle:"Przypi\u0119te do prawej",noFixedTitle:"Nieprzypi\u0119te",reset:"Reset",columnDisplay:"Wy\u015Bwietlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pe\u0142en ekran",exitFullScreen:"Zamknij pe\u0142en ekran",reload:"Od\u015Bwie\u017C",density:"Odst\u0119p",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Zaloguj si\u0119"}},nr={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"items"}},tableToolBar:{leftPin:"Fixar \xE0 esquerda",rightPin:"Fixar \xE0 direita",noPin:"Desfixado",leftFixedTitle:"Fixado \xE0 esquerda",rightFixedTitle:"Fixado \xE0 direita",noFixedTitle:"N\xE3o fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configura\xE7\xF5es",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padr\xE3o",densityLarger:"Largo",densityMiddle:"M\xE9dio",densitySmall:"Compacto"},stepsForm:{next:"Pr\xF3ximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar"}}},ar={moneySymbol:"\u20BD",form:{lightFilter:{more:"\u0415\u0449\u0435",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",confirm:"\u041E\u041A",itemUnit:"\u041F\u043E\u0437\u0438\u0446\u0438\u0438"}},tableForm:{search:"\u041D\u0430\u0439\u0442\u0438",reset:"\u0421\u0431\u0440\u043E\u0441",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",collapsed:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"},alert:{clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",selected:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},pagination:{total:{range:" ",total:"\u0438\u0437",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043B\u0435\u0432\u0430",rightPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043F\u0440\u0430\u0432\u0430",noPin:"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C",leftFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043B\u0435\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043F\u0440\u0430\u0432\u0430",noFixedTitle:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E",reset:"\u0421\u0431\u0440\u043E\u0441",columnDisplay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u043E\u043B\u0431\u0446\u0430",columnSetting:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",fullScreen:"\u041F\u043E\u043B\u043D\u044B\u0439 \u044D\u043A\u0440\u0430\u043D",exitFullScreen:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",reload:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",density:"\u0420\u0430\u0437\u043C\u0435\u0440",densityDefault:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",densityLarger:"\u0411\u043E\u043B\u044C\u0448\u043E\u0439",densityMiddle:"\u0421\u0440\u0435\u0434\u043D\u0438\u0439",densitySmall:"\u0421\u0436\u0430\u0442\u044B\u0439"},stepsForm:{next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C"},loginForm:{submitText:"\u0412\u0445\u043E\u0434"},editableTable:{action:{save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"}}},vr={moneySymbol:"RSD",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Prona\u0111i",reset:"Resetuj",submit:"Po\u0161alji",collapsed:"Pro\u0161iri",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"O\u010Disti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zaka\u010Di levo",rightPin:"Zaka\u010Di desno",noPin:"Nije zaka\u010Deno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Pode\u0161avanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osve\u017Ei",density:"Veli\u010Dina",densityDefault:"Podrazumevana",densityLarger:"Ve\u0107a",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sa\u010Duvaj",cancel:"Poni\u0161ti",delete:"Obri\u0161i"}}},Dr={moneySymbol:"\u20BA",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"\xD6\u011Feler"}},tableForm:{search:"Filtrele",reset:"S\u0131f\u0131rla",submit:"G\xF6nder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer girin",selectPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer se\xE7in"},alert:{clear:"Temizle",selected:"Se\xE7ili",item:"\xD6\u011Fe"},pagination:{total:{range:" ",total:"Toplam",item:"\xD6\u011Fe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sa\u011Fa sabitle",noPin:"Sabitlemeyi kald\u0131r",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sa\u011Fa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"S\u0131f\u0131rla",columnDisplay:"Kolon G\xF6r\xFCn\xFCm\xFC",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan \xC7\u0131k",reload:"Yenile",density:"Kal\u0131nl\u0131k",densityDefault:"Varsay\u0131lan",densityLarger:"B\xFCy\xFCk",densityMiddle:"Orta",densitySmall:"K\xFC\xE7\xFCk"},stepsForm:{next:"S\u0131radaki",prev:"\xD6nceki",submit:"G\xF6nder"},loginForm:{submitText:"Giri\u015F Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazge\xE7",delete:"Sil"}}},Cr={moneySymbol:"\u20AB",tableForm:{search:"T\xECm ki\u1EBFm",reset:"L\xE0m l\u1EA1i",submit:"G\u1EEDi \u0111i",collapsed:"M\u1EDF r\u1ED9ng",expand:"Thu g\u1ECDn",inputPlaceholder:"nh\u1EADp d\u1EEF li\u1EC7u",selectPlaceholder:"Vui l\xF2ng ch\u1ECDn"},alert:{clear:"X\xF3a",selected:"\u0111\xE3 ch\u1ECDn",item:"m\u1EE5c"},pagination:{total:{range:" ",total:"tr\xEAn",item:"m\u1EB7t h\xE0ng"}},tableToolBar:{leftPin:"Ghim tr\xE1i",rightPin:"Ghim ph\u1EA3i",noPin:"B\u1ECF ghim",leftFixedTitle:"C\u1ED1 \u0111\u1ECBnh tr\xE1i",rightFixedTitle:"C\u1ED1 \u0111\u1ECBnh ph\u1EA3i",noFixedTitle:"Ch\u01B0a c\u1ED1 \u0111\u1ECBnh",reset:"L\xE0m l\u1EA1i",columnDisplay:"C\u1ED9t hi\u1EC3n th\u1ECB",columnSetting:"C\u1EA5u h\xECnh",fullScreen:"Ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",exitFullScreen:"Tho\xE1t ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",reload:"L\xE0m m\u1EDBi",density:"M\u1EADt \u0111\u1ED9 hi\u1EC3n th\u1ECB",densityDefault:"M\u1EB7c \u0111\u1ECBnh",densityLarger:"M\u1EB7c \u0111\u1ECBnh",densityMiddle:"Trung b\xECnh",densitySmall:"Ch\u1EADt"},loginForm:{submitText:"\u0110\u0103ng nh\u1EADp"}},jr={moneySymbol:"\uFFE5",form:{lightFilter:{more:"\u66F4\u591A\u7B5B\u9009",clear:"\u6E05\u9664",confirm:"\u786E\u8BA4",itemUnit:"\u9879"}},tableForm:{search:"\u67E5\u8BE2",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u5F00",expand:"\u6536\u8D77",inputPlaceholder:"\u8BF7\u8F93\u5165",selectPlaceholder:"\u8BF7\u9009\u62E9"},alert:{clear:"\u53D6\u6D88\u9009\u62E9",selected:"\u5DF2\u9009\u62E9",item:"\u9879"},pagination:{total:{range:"\u7B2C",total:"\u6761/\u603B\u5171",item:"\u6761"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5728\u5217\u9996",rightPin:"\u56FA\u5B9A\u5728\u5217\u5C3E",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u4FA7",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u4FA7",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8BBE\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7D27\u51D1"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664"}},switch:{open:"\u6253\u5F00",close:"\u5173\u95ED"},loginForm:{submitText:"\u767B\u5F55"}},Vr={moneySymbol:"NT$",form:{lightFilter:{more:"\u66F4\u591A\u7BE9\u9078",clear:"\u6E05\u9664",confirm:"\u78BA\u8A8D",itemUnit:"\u9805"}},tableForm:{search:"\u67E5\u8A62",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u6536\u8D77",inputPlaceholder:"\u8ACB\u8F38\u5165",selectPlaceholder:"\u8ACB\u9078\u64C7"},alert:{clear:"\u53D6\u6D88\u9078\u64C7",selected:"\u5DF2\u9078\u64C7",item:"\u9805"},pagination:{total:{range:"\u7B2C",total:"\u689D/\u7E3D\u5171",item:"\u689D"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5230\u5DE6\u908A",rightPin:"\u56FA\u5B9A\u5230\u53F3\u908A",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u5074",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u5074",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8A2D\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8A8D",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7DCA\u6E4A"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664"}},switch:{open:"\u6253\u958B",close:"\u95DC\u9589"},loginForm:{submitText:"\u767B\u5165"}};function Yr(ge,be,Ie){var le=be.replace(/\[(\d+)\]/g,".$1").split("."),Y=ge,F=Ie,D=(0,f.Z)(le),ye;try{for(D.s();!(ye=D.n()).done;){var ne=ye.value;if(F=Object(Y)[ne],Y=Object(Y)[ne],F===void 0)return Ie}}catch(_){D.e(_)}finally{D.f()}return F}var Ze=function(be,Ie){return{getMessage:function(Y,F){return Yr(Ie,Y,F)||F},locale:be}},Hr=Ze("ar_EG",J),ir=Ze("zh_CN",jr),Ur=Ze("en_US",p),Er=Ze("en_GB",V),Fr=Ze("vi_VN",Cr),xr=Ze("it_IT",te),lr=Ze("ja_JP",me),Nr=Ze("es_ES",r),ke=Ze("ca_ES",Z),Q=Ze("ru_RU",ar),Ee=Ze("sr_RS",vr),he=Ze("ms_MY",Ne),mr=Ze("zh_TW",Vr),pe=Ze("fr_FR",O),He=Ze("pt_BR",nr),Pe=Ze("ko_KR",$e),fr=Ze("id_ID",M),P=Ze("de_DE",ve),E=Ze("fa_IR",oe),j=Ze("tr_TR",Dr),X=Ze("pl_PL",De),qe=Ze("hr_",ae),ce={"ar-EG":Hr,"zh-CN":ir,"en-US":Ur,"en-GB":Er,"vi-VN":Fr,"it-IT":xr,"ja-JP":lr,"es-ES":Nr,"ca-ES":ke,"ru-RU":Q,"sr-RS":Ee,"ms-MY":he,"zh-TW":mr,"fr-FR":pe,"pt-BR":He,"ko-KR":Pe,"id-ID":fr,"de-DE":P,"fa-IR":E,"tr-TR":j,"pl-PL":X,"hr-HR":qe},fe=Object.keys(ce),Ge=N.createContext({intl:(0,R.Z)((0,R.Z)({},ir),{},{locale:"default"}),valueTypeMap:{}}),or=Ge.Consumer,Je=Ge.Provider,_e=function(be){if(!be)return"zh-CN";var Ie=be.toLocaleLowerCase();return fe.find(function(le){var Y=le.toLocaleLowerCase();return Y.includes(Ie)})},rr=function(){var be=(0,d.kY)(),Ie=be.cache;return(0,N.useEffect)(function(){return function(){Ie.clear()}},[]),null},ie=function(be){var Ie=be.children,le=be.autoClearCache,Y=le===void 0?!1:le,F=(0,N.useContext)(o.ZP.ConfigContext),D=F.locale,ye=D===void 0?o.ZP:N.Fragment,ne=N.createElement(or,null,function(_){var Me,Ke=D==null?void 0:D.locale,er=_e(Ke),ee=Ke&&((Me=_.intl)===null||Me===void 0?void 0:Me.locale)==="default"?ce[er]:_.intl||ce[er],re=D===void 0?{locale:S.Z}:{};return N.createElement(ye,re,N.createElement(Je,{value:(0,R.Z)((0,R.Z)({},_),{},{intl:ee||ir})},N.createElement(N.Fragment,null,Y&&N.createElement(rr,null),Ie)))});return Y?N.createElement(d.J$,{value:{provider:function(){return new Map}}},ne):ne};function Re(){var ge=(0,N.useContext)(o.ZP.ConfigContext),be=ge.locale,Ie=(0,N.useContext)(Ge),le=Ie.intl;return le&&le.locale!=="default"?le:(be==null?void 0:be.locale)?ce[_e(be.locale)]:ir}var gr=null,Ue=Ge},76422:function(Pr,q,t){"use strict";var c=t(96156),o=t(84305),R=t(75901),f=t(54549),S=t(57254),N=t(54787),d=t(94184),J=t.n(d),Z=t(67294),ve=t(83931),V=t.n(ve),p=function(oe,O){var ae,M=oe.label,te=oe.onClear,me=oe.value,$e=oe.size,Ne=$e===void 0?"middle":$e,De=oe.disabled,nr=oe.ellipsis,ar=oe.placeholder,vr=oe.className,Dr=oe.style,Cr=oe.formatter,jr=oe.bordered,Vr=oe.allowClear,Yr=Vr===void 0?!0:Vr,Ze=(0,Z.useContext)(R.ZP.ConfigContext),Hr=Ze.getPrefixCls,ir=Hr("pro-core-field-label"),Ur=(0,N.YB)(),Er=(0,Z.useRef)(null),Fr=(0,Z.useRef)(null);(0,Z.useImperativeHandle)(O,function(){return{labelRef:Fr,clearRef:Er}});var xr=function(ke){return Cr?Cr(ke):Array.isArray(ke)?ke.join(","):String(ke)},lr=function(ke,Q){if(Q!=null&&Q!==""&&(!Array.isArray(Q)||Q.length)){var Ee,he,mr=ke?Z.createElement(Z.Fragment,null,ke,": "):"",pe=xr(Q);if(!nr)return Z.createElement("span",null,mr,xr(Q));var He=function(){var P=Array.isArray(Q)&&Q.length>1,E=Ur.getMessage("form.lightFilter.itemUnit","\u9879");return pe.length>32&&P?"...".concat(Q.length).concat(E):""},Pe=He();return Z.createElement("span",{title:pe},mr,pe==null||(Ee=pe.toString())===null||Ee===void 0||(he=Ee.substr)===null||he===void 0?void 0:he.call(Ee,0,32),Pe)}return ke||ar};return Z.createElement("span",{className:J()(ir,"".concat(ir,"-").concat(Ne),(ae={},(0,c.Z)(ae,"".concat(ir,"-active"),!!me||me===0),(0,c.Z)(ae,"".concat(ir,"-disabled"),De),(0,c.Z)(ae,"".concat(ir,"-bordered"),jr),(0,c.Z)(ae,"".concat(ir,"-allow-clear"),Yr),ae),vr),style:Dr,ref:Fr},lr(M,me),(me||me===0)&&Yr&&Z.createElement(f.Z,{role:"button",title:"\u6E05\u9664",className:J()("".concat(ir,"-icon"),"".concat(ir,"-close")),onClick:function(ke){te&&!De&&te(),ke.stopPropagation()},ref:Er}),Z.createElement(S.Z,{className:J()("".concat(ir,"-icon"),"".concat(ir,"-arrow"))}))};q.Z=Z.forwardRef(p)},41036:function(Pr,q,t){"use strict";var c=t(67294),o=c.createContext({});q.Z=o},23312:function(Pr,q,t){"use strict";t.d(q,{Cl:function(){return N}});var c=t(90484),o=t(30381),R=t.n(o),f=t(88306),S=t(74763),N={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-\\QQ",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function d(V){return Object.prototype.toString.call(V)==="[object Object]"}function J(V){if(d(V)===!1)return!1;var p=V.constructor;if(p===void 0)return!0;var r=p.prototype;return!(d(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)}var Z=function(p,r,oe){if(!r)return p;if(R().isMoment(p)){if(r==="number")return p.valueOf();if(r==="string")return p.format(N[oe]||"YYYY-MM-DD HH:mm:ss");if(typeof r=="string"&&r!=="string")return p.format(r);if(typeof r=="function")return r(p,oe)}return p},ve=function V(p,r,oe,O,ae){var M={};return typeof window=="undefined"||(0,c.Z)(p)!=="object"||(0,S.Z)(p)||p instanceof Blob||Array.isArray(p)?p:(Object.keys(p).forEach(function(te){var me=ae?[ae,te].flat(1):[te],$e=(0,f.Z)(oe,me)||"text",Ne="text",De;typeof $e=="string"?Ne=$e:$e&&(Ne=$e.valueType,De=$e.dateFormat);var nr=p[te];if(!((0,S.Z)(nr)&&O)){if(J(nr)&&!Array.isArray(nr)&&!R().isMoment(nr)){M[te]=V(nr,r,oe,O,[te]);return}if(Array.isArray(nr)){M[te]=nr.map(function(ar,vr){return R().isMoment(ar)?Z(ar,De||r,Ne):V(ar,r,oe,O,[te,"".concat(vr)])});return}M[te]=Z(nr,De||r,Ne)}}),M)};q.ZP=ve},26369:function(Pr,q,t){"use strict";var c=t(67294),o=function(f){var S=(0,c.useRef)();return(0,c.useEffect)(function(){S.current=f}),S.current};q.Z=o},60249:function(Pr,q,t){"use strict";var c=t(11965),o=t(90484);function R(f,S,N,d){if(f===S)return!0;if(f&&S&&(0,o.Z)(f)==="object"&&(0,o.Z)(S)==="object"){if(f.constructor!==S.constructor)return!1;var J,Z,ve;if(Array.isArray(f)){if(J=f.length,J!=S.length)return!1;for(Z=J;Z--!=0;)if(!R(f[Z],S[Z],N,d))return!1;return!0}if(f instanceof Map&&S instanceof Map){if(f.size!==S.size)return!1;var V=(0,c.Z)(f.entries()),p;try{for(V.s();!(p=V.n()).done;)if(Z=p.value,!S.has(Z[0]))return!1}catch(te){V.e(te)}finally{V.f()}var r=(0,c.Z)(f.entries()),oe;try{for(r.s();!(oe=r.n()).done;)if(Z=oe.value,!R(Z[1],S.get(Z[0]),N,d))return!1}catch(te){r.e(te)}finally{r.f()}return!0}if(f instanceof Set&&S instanceof Set){if(f.size!==S.size)return!1;var O=(0,c.Z)(f.entries()),ae;try{for(O.s();!(ae=O.n()).done;)if(Z=ae.value,!S.has(Z[0]))return!1}catch(te){O.e(te)}finally{O.f()}return!0}if(ArrayBuffer.isView(f)&&ArrayBuffer.isView(S)){if(J=f.length,J!=S.length)return!1;for(Z=J;Z--!=0;)if(f[Z]!==S[Z])return!1;return!0}if(f.constructor===RegExp)return f.source===S.source&&f.flags===S.flags;if(f.valueOf!==Object.prototype.valueOf&&f.valueOf)return f.valueOf()===S.valueOf();if(f.toString!==Object.prototype.toString&&f.toString)return f.toString()===S.toString();if(ve=Object.keys(f),J=ve.length,J!==Object.keys(S).length)return!1;for(Z=J;Z--!=0;)if(!Object.prototype.hasOwnProperty.call(S,ve[Z]))return!1;for(Z=J;Z--!=0;){var M=ve[Z];if(!(N==null?void 0:N.includes(M))&&!(M==="_owner"&&f.$$typeof)&&!R(f[M],S[M],N,d))return d&&console.log(M),!1}return!0}return f!==f&&S!==S}q.Z=R},74763:function(Pr,q){"use strict";var t=function(o){return o==null};q.Z=t},51812:function(Pr,q){"use strict";var t=function(o){var R={};if(Object.keys(o||{}).forEach(function(f){o[f]!==void 0&&(R[f]=o[f])}),!(Object.keys(R).length<1))return R};q.Z=t},22270:function(Pr,q,t){"use strict";t.d(q,{h:function(){return c}});function c(o){if(typeof o=="function"){for(var R=arguments.length,f=new Array(R>1?R-1:0),S=1;Ss)&&(r=(0,se.Tm)(c,{span:s})),r}function re(c,n){var s=(0,Q.Z)(c).filter(function(t){return t}),r=[],a=[],e=n;return s.forEach(function(t,o){var C,x=(C=t.props)===null||C===void 0?void 0:C.span,m=x||1;if(o===s.length-1){a.push(_(t,x,e)),r.push(a);return}m=y.length?{done:!0}:{done:!1,value:y[U++]}},e:function(N){throw N},f:w}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T=!0,g=!1,J;return{s:function(){l=l.call(y)},n:function(){var N=l.next();return T=N.done,N},e:function(N){g=!0,J=N},f:function(){try{!T&&l.return!=null&&l.return()}finally{if(g)throw J}}}}},29405:function(Je,ce,B){"use strict";B.d(ce,{J$:function(){return lr},ZP:function(){return vr},kY:function(){return Le}});var d=B(67294);/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */function ae(e,i,r,a){function n(t){return t instanceof r?t:new r(function(f){f(t)})}return new(r||(r=Promise))(function(t,f){function c(s){try{u(a.next(s))}catch(h){f(h)}}function m(s){try{u(a.throw(s))}catch(h){f(h)}}function u(s){s.done?t(s.value):n(s.value).then(c,m)}u((a=a.apply(e,i||[])).next())})}function y(e,i){var r={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},a,n,t,f;return f={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function c(u){return function(s){return m([u,s])}}function m(u){if(a)throw new TypeError("Generator is already executing.");for(;r;)try{if(a=1,n&&(t=u[0]&2?n.return:u[0]?n.throw||((t=n.return)&&t.call(n),0):n.next)&&!(t=t.call(n,u[1])).done)return t;switch(n=0,t&&(u=[u[0]&2,t.value]),u[0]){case 0:case 1:t=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(t=r.trys,!(t=t.length>0&&t[t.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!t||u[1]>t[0]&&u[1]t||setTimeout(a,c,n)},Me=xe(new Map),Fe=Me[0],ir=Me[1],Ue=g({onLoadingSlow:R,onSuccess:R,onError:R,onErrorRetry:ar,onDiscarded:R,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Oe?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Oe?5e3:3e3,compare:function(e,i){return Z(e)==Z(i)},isPaused:function(){return!1},cache:Fe,mutate:ir,fallback:{}},er),Ne=function(e,i){var r=g(e,i);if(i){var a=e.use,n=e.fallback,t=i.use,f=i.fallback;a&&t&&(r.use=a.concat(t)),n&&f&&(r.fallback=g(n,f))}return r},Ee=(0,d.createContext)({}),ur=function(e){var i=e.value,r=Ne((0,d.useContext)(Ee),i),a=i&&i.provider,n=(0,d.useState)(function(){return a?xe(a(r.cache||Fe),i):l})[0];return n&&(r.cache=n[0],r.mutate=n[1]),G(function(){return n?n[2]:l},[]),(0,d.createElement)(Ee.Provider,g(e,{value:r}))},or=function(e,i){var r=(0,d.useState)({})[1],a=(0,d.useRef)(e),n=(0,d.useRef)({data:!1,error:!1,isValidating:!1}),t=(0,d.useCallback)(function(f){var c=!1,m=a.current;for(var u in f){var s=u;m[s]!==f[s]&&(m[s]=f[s],n.current[s]&&(c=!0))}c&&!i.current&&r({})},[]);return G(function(){a.current=e}),[a,n.current,t]},fr=function(e){return T(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}]},Le=function(){return g(Ue,(0,d.useContext)(Ee))},sr=function(e){return function(){for(var r=[],a=0;a0;)s=h[v](s);return s(f,c||u.fetcher,u)}},Pe=function(e,i,r){var a=i[e]||(i[e]=[]);return a.push(r),function(){var n=a.indexOf(r);n>=0&&(a[n]=a[a.length-1],a.pop())}},pe={dedupe:!0},cr=function(e,i,r){var a=r.cache,n=r.compare,t=r.fallbackData,f=r.suspense,c=r.revalidateOnMount,m=r.refreshInterval,u=r.refreshWhenHidden,s=r.refreshWhenOffline,h=k.get(a),v=h[0],x=h[1],oe=h[2],_=h[3],b=be(e),o=b[0],Q=b[1],H=b[2],M=(0,d.useRef)(!1),A=(0,d.useRef)(!1),K=(0,d.useRef)(o),L=(0,d.useRef)(i),j=(0,d.useRef)(r),E=function(){return j.current},ye=function(){return E().isVisible()&&E().isOnline()},fe=function(O){return a.set(H,g(a.get(H),O))},ke=a.get(o),dr=w(t)?r.fallback[o]:t,F=w(ke)?dr:ke,He=a.get(H)||{},X=He.error,Ke=!M.current,je=function(){return Ke&&!w(c)?c:E().isPaused()?!1:f?w(F)?!1:r.revalidateIfStale:w(F)||r.revalidateIfStale},hr=function(){return!o||!i?!1:He.isValidating?!0:Ke&&je()},Re=hr(),ge=or({data:F,error:X,isValidating:Re},A),$=ge[0],_e=ge[1],se=ge[2],q=(0,d.useCallback)(function(O){return ae(void 0,void 0,void 0,function(){var S,C,D,ee,re,V,p,P,W,Se,te,z,Ce;return y(this,function(ne){switch(ne.label){case 0:if(S=L.current,!o||!S||A.current||E().isPaused())return[2,!1];ee=!0,re=O||{},V=!_[o]||!re.dedupe,p=function(){return!A.current&&o===K.current&&M.current},P=function(){var qe=_[o];qe&&qe[1]===D&&delete _[o]},W={isValidating:!1},Se=function(){fe({isValidating:!1}),p()&&se(W)},fe({isValidating:!0}),se({isValidating:!0}),ne.label=1;case 1:return ne.trys.push([1,3,,4]),V&&(Y(a,o,$.current.data,$.current.error,!0),r.loadingTimeout&&!a.get(o)&&setTimeout(function(){ee&&p()&&E().onLoadingSlow(o,r)},r.loadingTimeout),_[o]=[S.apply(void 0,Q),we()]),Ce=_[o],C=Ce[0],D=Ce[1],[4,C];case 2:return C=ne.sent(),V&&setTimeout(P,r.dedupingInterval),!_[o]||_[o][1]!==D?(V&&p()&&E().onDiscarded(o),[2,!1]):(fe({error:l}),W.error=l,te=oe[o],!w(te)&&(D<=te[0]||D<=te[1]||te[1]===0)?(Se(),V&&p()&&E().onDiscarded(o),[2,!1]):(n($.current.data,C)?W.data=$.current.data:W.data=C,n(a.get(o),C)||a.set(o,C),V&&p()&&E().onSuccess(C,o,r),[3,4]));case 3:return z=ne.sent(),P(),E().isPaused()||(fe({error:z}),W.error=z,V&&p()&&(E().onError(z,o,r),(typeof r.shouldRetryOnError=="boolean"&&r.shouldRetryOnError||T(r.shouldRetryOnError)&&r.shouldRetryOnError(z))&&ye()&&E().onErrorRetry(z,o,r,q,{retryCount:(re.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return ee=!1,Se(),p()&&V&&Y(a,o,W.data,W.error,!1),[2,!0]}})})},[o]),mr=(0,d.useCallback)(Ve.bind(l,a,function(){return K.current}),[]);if(G(function(){L.current=i,j.current=r}),G(function(){if(!!o){var O=o!==K.current,S=q.bind(l,pe),C=function(p,P,W){se(g({error:P,isValidating:W},n($.current.data,p)?l:{data:p}))},D=0,ee=function(p){if(p==De){var P=Date.now();E().revalidateOnFocus&&P>D&&ye()&&(D=P+E().focusThrottleInterval,S())}else if(p==Ie)E().revalidateOnReconnect&&ye()&&S();else if(p==Ae)return q()},re=Pe(o,x,C),V=Pe(o,v,ee);return A.current=!1,K.current=o,M.current=!0,O&&se({data:F,error:X,isValidating:Re}),je()&&(w(F)||ue?S():tr(S)),function(){A.current=!0,re(),V()}}},[o,q]),G(function(){var O;function S(){var D=T(m)?m(F):m;D&&O!==-1&&(O=setTimeout(C,D))}function C(){!$.current.error&&(u||E().isVisible())&&(s||E().isOnline())?q(pe).then(S):S()}return S(),function(){O&&(clearTimeout(O),O=-1)}},[m,u,s,q]),(0,d.useDebugValue)(F),f&&w(F)&&o)throw L.current=i,j.current=r,A.current=!1,w(X)?q(pe):X;return{mutate:mr,get data(){return _e.data=!0,F},get error(){return _e.error=!0,X},get isValidating(){return _e.isValidating=!0,Re}}},lr=U.defineProperty(ur,"default",{value:Ue}),br=function(e){return be(e)[0]},vr=sr(cr)}}]); diff --git a/7552.1792e5ef.async.js b/7552.1792e5ef.async.js new file mode 100644 index 00000000..287c8ea1 --- /dev/null +++ b/7552.1792e5ef.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7552],{8212:function(ae,R,i){"use strict";i.d(R,{Z:function(){return v}});var f=i(28991),p=i(67294),t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},_=t,T=i(27029),d=function(H,oe){return p.createElement(T.Z,(0,f.Z)((0,f.Z)({},H),{},{ref:oe,icon:_}))};d.displayName="EditOutlined";var v=p.forwardRef(d)},47828:function(){},97272:function(ae,R,i){"use strict";i.d(R,{Z:function(){return Ht}});var f=i(22122),p=i(96156),t=i(67294),_=i(94184),T=i.n(_),d=i(42550),v=i(53124),Z=function(e,r){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);or){var I=r-a;return n.push(String(u).slice(0,I)),n}n.push(u),a=M}return e}var bt=0,Ce=1,Ke=2,Pe=3,je=4,xt=function(r){var a=r.enabledMeasure,n=r.children,o=r.text,u=r.width,g=r.rows,y=r.onEllipsis,M=t.useState([0,0,0]),I=(0,x.Z)(M,2),O=I[0],K=I[1],j=t.useState(bt),F=(0,x.Z)(j,2),b=F[0],B=F[1],k=(0,x.Z)(O,3),h=k[0],D=k[1],G=k[2],P=t.useState(0),ie=(0,x.Z)(P,2),V=ie[0],le=ie[1],q=t.useRef(null),E=t.useRef(null),U=t.useMemo(function(){return(0,ue.Z)(o)},[o]),W=t.useMemo(function(){return St(U)},[U]),ee=t.useMemo(function(){return!a||b!==Pe?n(U,!1):n($e(U,D),D1&&Y,on=function(l){var s;_t(!0),(s=A.onExpand)===null||s===void 0||s.call(A,l)},ln=t.useState(0),rt=(0,x.Z)(ln,2),sn=rt[0],cn=rt[1],un=function(l){var s=l.offsetWidth;cn(s)},dn=function(l){var s;en(l),Ye!==l&&((s=A.onEllipsis)===null||s===void 0||s.call(A,l))};t.useEffect(function(){var c=D.current;if(ne&&Y&&c){var l=Oe?c.offsetHeight.ant-typography,.ant-card-head-title>.ant-typography-edit-content{left:0;margin-top:0;margin-bottom:0}.ant-card-head .ant-tabs-top{clear:both;margin-bottom:-17px;color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.ant-card-head .ant-tabs-top-bar{border-bottom:1px solid rgba(0,0,0,.06)}.ant-card-extra{margin-left:auto;padding:16px 0;color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.ant-card-rtl .ant-card-extra{margin-right:auto;margin-left:0}.ant-card-body{padding:24px}.ant-card-body:before{display:table;content:""}.ant-card-body:after{display:table;clear:both;content:""}.ant-card-contain-grid .ant-card-body{display:flex;flex-wrap:wrap}.ant-card-contain-grid:not(.ant-card-loading) .ant-card-body{margin:-1px 0 0 -1px;padding:0}.ant-card-grid{width:33.33%;padding:24px;border:0;border-radius:0;box-shadow:1px 0 0 0 rgba(0,0,0,.06),0 1px 0 0 rgba(0,0,0,.06),1px 1px 0 0 rgba(0,0,0,.06),inset 1px 0 0 0 rgba(0,0,0,.06),inset 0 1px 0 0 rgba(0,0,0,.06);transition:all .3s}.ant-card-grid-hoverable:hover{position:relative;z-index:1;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-card-contain-tabs>.ant-card-head .ant-card-head-title{min-height:32px;padding-bottom:0}.ant-card-contain-tabs>.ant-card-head .ant-card-extra{padding-bottom:0}.ant-card-bordered .ant-card-cover{margin-top:-1px;margin-right:-1px;margin-left:-1px}.ant-card-cover>*{display:block;width:100%}.ant-card-cover img{border-radius:2px 2px 0 0}.ant-card-actions{display:flex;margin:0;padding:0;list-style:none;background:#fff;border-top:1px solid rgba(0,0,0,.06)}.ant-card-actions:before{display:table;content:""}.ant-card-actions:after{display:table;clear:both;content:""}.ant-card-actions>li{margin:12px 0;color:rgba(0,0,0,.45);text-align:center}.ant-card-actions>li>span{position:relative;display:block;min-width:32px;font-size:14px;line-height:1.5715;cursor:pointer}.ant-card-actions>li>span:hover{color:#1890ff;color:var(--ant-primary-color);transition:color .3s}.ant-card-actions>li>span>.anticon,.ant-card-actions>li>span a:not(.ant-btn){display:inline-block;width:100%;color:rgba(0,0,0,.45);line-height:22px;transition:color .3s}.ant-card-actions>li>span>.anticon:hover,.ant-card-actions>li>span a:not(.ant-btn):hover{color:#1890ff;color:var(--ant-primary-color)}.ant-card-actions>li>span>.anticon{font-size:16px;line-height:22px}.ant-card-actions>li:not(:last-child){border-right:1px solid rgba(0,0,0,.06)}.ant-card-rtl .ant-card-actions>li:not(:last-child){border-right:none;border-left:1px solid rgba(0,0,0,.06)}.ant-card-type-inner .ant-card-head{padding:0 24px;background:#fafafa}.ant-card-type-inner .ant-card-head-title{padding:12px 0;font-size:14px}.ant-card-type-inner .ant-card-body{padding:16px 24px}.ant-card-type-inner .ant-card-extra{padding:13.5px 0}.ant-card-meta{display:flex;margin:-4px 0}.ant-card-meta:before{display:table;content:""}.ant-card-meta:after{display:table;clear:both;content:""}.ant-card-meta-avatar{padding-right:16px}.ant-card-rtl .ant-card-meta-avatar{padding-right:0;padding-left:16px}.ant-card-meta-detail{overflow:hidden}.ant-card-meta-detail>div:not(:last-child){margin-bottom:8px}.ant-card-meta-title{overflow:hidden;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;white-space:nowrap;text-overflow:ellipsis}.ant-card-meta-description{color:rgba(0,0,0,.45)}.ant-card-loading{overflow:hidden}.ant-card-loading .ant-card-body{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-card-small>.ant-card-head{min-height:36px;padding:0 12px;font-size:14px}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-head-title{padding:8px 0}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-extra{padding:8px 0;font-size:14px}.ant-card-small>.ant-card-body{padding:12px}.ant-skeleton{display:table;width:100%}.ant-skeleton-header{display:table-cell;padding-right:16px;vertical-align:top}.ant-skeleton-header .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-content{display:table-cell;width:100%;vertical-align:top}.ant-skeleton-content .ant-skeleton-title{width:100%;height:16px;background:hsla(0,0%,74.5%,.2);border-radius:4px}.ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:24px}.ant-skeleton-content .ant-skeleton-paragraph{padding:0}.ant-skeleton-content .ant-skeleton-paragraph>li{width:100%;height:16px;list-style:none;background:hsla(0,0%,74.5%,.2);border-radius:4px}.ant-skeleton-content .ant-skeleton-paragraph>li:last-child:not(:first-child):not(:nth-child(2)){width:61%}.ant-skeleton-content .ant-skeleton-paragraph>li+li{margin-top:16px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title{margin-top:12px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:28px}.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title{border-radius:100px}.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li:after,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-button{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-button:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-input{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-input:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-image{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-image:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-block{width:100%}.ant-skeleton.ant-skeleton-block .ant-skeleton-button{width:100%}.ant-skeleton.ant-skeleton-block .ant-skeleton-input{width:100%}.ant-skeleton-element{display:inline-block;width:auto}.ant-skeleton-element .ant-skeleton-button{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);border-radius:2px;width:64px;min-width:64px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle{width:32px;min-width:32px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round{border-radius:32px}.ant-skeleton-element .ant-skeleton-button-lg{width:80px;min-width:80px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle{width:40px;min-width:40px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round{border-radius:40px}.ant-skeleton-element .ant-skeleton-button-sm{width:48px;min-width:48px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle{width:24px;min-width:24px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round{border-radius:24px}.ant-skeleton-element .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-input{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:160px;min-width:160px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-input-lg{width:200px;min-width:200px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-input-sm{width:120px;min-width:120px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-image{display:flex;align-items:center;justify-content:center;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:96px;height:96px;line-height:96px}.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-image-path{fill:#bfbfbf}.ant-skeleton-element .ant-skeleton-image-svg{width:48px;height:48px;line-height:48px;max-width:192px;max-height:192px}.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle{border-radius:50%}@keyframes ant-skeleton-loading{0%{transform:translateX(-37.5%)}to{transform:translateX(37.5%)}}.ant-skeleton-rtl{direction:rtl}.ant-skeleton-rtl .ant-skeleton-header{padding-right:0;padding-left:16px}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title{animation-name:ant-skeleton-loading-rtl}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar{animation-name:ant-skeleton-loading-rtl}@keyframes ant-skeleton-loading-rtl{0%{background-position:0 50%}to{background-position:100% 50%}}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-typography{color:rgba(0,0,0,.85);overflow-wrap:break-word}.ant-typography.ant-typography-secondary{color:rgba(0,0,0,.45)}.ant-typography.ant-typography-success{color:#52c41a;color:var(--ant-success-color)}.ant-typography.ant-typography-warning{color:#faad14;color:var(--ant-warning-color)}.ant-typography.ant-typography-danger{color:#ff4d4f;color:var(--ant-error-color)}a.ant-typography.ant-typography-danger:active,a.ant-typography.ant-typography-danger:focus{color:#d9363e;color:var(--ant-error-color-active)}a.ant-typography.ant-typography-danger:hover{color:#ff7875;color:var(--ant-error-color-hover)}.ant-typography.ant-typography-disabled{color:rgba(0,0,0,.25);cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-typography p,div.ant-typography{margin-bottom:1em}.ant-typography h1,div.ant-typography-h1,div.ant-typography-h1>textarea,h1.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:38px;line-height:1.23}.ant-typography h2,div.ant-typography-h2,div.ant-typography-h2>textarea,h2.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:30px;line-height:1.35}.ant-typography h3,div.ant-typography-h3,div.ant-typography-h3>textarea,h3.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:24px;line-height:1.35}.ant-typography h4,div.ant-typography-h4,div.ant-typography-h4>textarea,h4.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:20px;line-height:1.4}.ant-typography h5,div.ant-typography-h5,div.ant-typography-h5>textarea,h5.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:16px;line-height:1.5}.ant-typography+h1.ant-typography,.ant-typography+h2.ant-typography,.ant-typography+h3.ant-typography,.ant-typography+h4.ant-typography,.ant-typography+h5.ant-typography{margin-top:1.2em}.ant-typography div+h1,.ant-typography div+h2,.ant-typography div+h3,.ant-typography div+h4,.ant-typography div+h5,.ant-typography h1+h1,.ant-typography h1+h2,.ant-typography h1+h3,.ant-typography h1+h4,.ant-typography h1+h5,.ant-typography h2+h1,.ant-typography h2+h2,.ant-typography h2+h3,.ant-typography h2+h4,.ant-typography h2+h5,.ant-typography h3+h1,.ant-typography h3+h2,.ant-typography h3+h3,.ant-typography h3+h4,.ant-typography h3+h5,.ant-typography h4+h1,.ant-typography h4+h2,.ant-typography h4+h3,.ant-typography h4+h4,.ant-typography h4+h5,.ant-typography h5+h1,.ant-typography h5+h2,.ant-typography h5+h3,.ant-typography h5+h4,.ant-typography h5+h5,.ant-typography li+h1,.ant-typography li+h2,.ant-typography li+h3,.ant-typography li+h4,.ant-typography li+h5,.ant-typography p+h1,.ant-typography p+h2,.ant-typography p+h3,.ant-typography p+h4,.ant-typography p+h5,.ant-typography ul+h1,.ant-typography ul+h2,.ant-typography ul+h3,.ant-typography ul+h4,.ant-typography ul+h5{margin-top:1.2em}a.ant-typography-ellipsis,span.ant-typography-ellipsis{display:inline-block;max-width:100%}.ant-typography a,a.ant-typography{color:#1890ff;color:var(--ant-primary-color);outline:none;cursor:pointer;transition:color .3s;text-decoration:none}.ant-typography a:focus,.ant-typography a:hover,a.ant-typography:focus,a.ant-typography:hover{color:#40a9ff;color:var(--ant-primary-color-hover)}.ant-typography a:active,a.ant-typography:active{color:#096dd9;color:var(--ant-primary-color-active)}.ant-typography a:active,.ant-typography a:hover,a.ant-typography:active,a.ant-typography:hover{text-decoration:none}.ant-typography a.ant-typography-disabled,.ant-typography a[disabled],a.ant-typography.ant-typography-disabled,a.ant-typography[disabled]{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-typography a.ant-typography-disabled:active,.ant-typography a.ant-typography-disabled:hover,.ant-typography a[disabled]:active,.ant-typography a[disabled]:hover,a.ant-typography.ant-typography-disabled:active,a.ant-typography.ant-typography-disabled:hover,a.ant-typography[disabled]:active,a.ant-typography[disabled]:hover{color:rgba(0,0,0,.25)}.ant-typography a.ant-typography-disabled:active,.ant-typography a[disabled]:active,a.ant-typography.ant-typography-disabled:active,a.ant-typography[disabled]:active{pointer-events:none}.ant-typography code{margin:0 .2em;padding:.2em .4em .1em;font-size:85%;background:hsla(0,0%,58.8%,.1);border:1px solid hsla(0,0%,39.2%,.2);border-radius:3px}.ant-typography kbd{margin:0 .2em;padding:.15em .4em .1em;font-size:90%;background:hsla(0,0%,58.8%,.06);border:solid hsla(0,0%,39.2%,.2);border-width:1px 1px 2px;border-radius:3px}.ant-typography mark{padding:0;background-color:#ffe58f}.ant-typography ins,.ant-typography u{text-decoration:underline;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto}.ant-typography del,.ant-typography s{text-decoration:line-through}.ant-typography strong{font-weight:600}.ant-typography-copy,.ant-typography-edit,.ant-typography-expand{color:#1890ff;color:var(--ant-primary-color);text-decoration:none;outline:none;cursor:pointer;transition:color .3s;margin-left:4px}.ant-typography-copy:focus,.ant-typography-copy:hover,.ant-typography-edit:focus,.ant-typography-edit:hover,.ant-typography-expand:focus,.ant-typography-expand:hover{color:#40a9ff;color:var(--ant-primary-color-hover)}.ant-typography-copy:active,.ant-typography-edit:active,.ant-typography-expand:active{color:#096dd9;color:var(--ant-primary-color-active)}.ant-typography-copy-success,.ant-typography-copy-success:focus,.ant-typography-copy-success:hover{color:#52c41a;color:var(--ant-success-color)}.ant-typography-edit-content{position:relative}div.ant-typography-edit-content{left:-12px;margin-top:-5px;margin-bottom:calc(1em - 5px)}.ant-typography-edit-content-confirm{position:absolute;right:10px;bottom:8px;color:rgba(0,0,0,.45);font-weight:400;font-size:14px;font-style:normal;pointer-events:none}.ant-typography-edit-content textarea{height:1em;margin:0!important;-moz-transition:none}.ant-typography ol,.ant-typography ul{margin:0 0 1em;padding:0}.ant-typography ol li,.ant-typography ul li{margin:0 0 0 20px;padding:0 0 0 4px}.ant-typography ul{list-style-type:circle}.ant-typography ul ul{list-style-type:disc}.ant-typography ol{list-style-type:decimal}.ant-typography blockquote,.ant-typography pre{margin:1em 0}.ant-typography pre{padding:.4em .6em;white-space:pre-wrap;word-wrap:break-word;background:hsla(0,0%,58.8%,.1);border:1px solid hsla(0,0%,39.2%,.2);border-radius:3px}.ant-typography pre code{display:inline;margin:0;padding:0;font-size:inherit;font-family:inherit;background:transparent;border:0}.ant-typography blockquote{padding:0 0 0 .6em;border-left:4px solid hsla(0,0%,39.2%,.2);opacity:.85}.ant-typography-single-line{white-space:nowrap}.ant-typography-ellipsis-single-line{overflow:hidden;text-overflow:ellipsis}a.ant-typography-ellipsis-single-line,span.ant-typography-ellipsis-single-line{vertical-align:bottom}.ant-typography-ellipsis-multiple-line{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3; + /*! autoprefixer: ignore next */-webkit-box-orient:vertical}.ant-typography-rtl{direction:rtl}.ant-typography-rtl .ant-typography-copy,.ant-typography-rtl .ant-typography-edit,.ant-typography-rtl .ant-typography-expand{margin-right:4px;margin-left:0}.ant-typography-rtl .ant-typography-expand{float:left}div.ant-typography-edit-content.ant-typography-rtl{right:-12px;left:auto}.ant-typography-rtl .ant-typography-edit-content-confirm{right:auto;left:10px}.ant-typography-rtl.ant-typography ol li,.ant-typography-rtl.ant-typography ul li{margin:0 20px 0 0;padding:0 4px 0 0} \ No newline at end of file diff --git a/7964.b595cc6d.async.js b/7964.b595cc6d.async.js new file mode 100644 index 00000000..fc3c86dc --- /dev/null +++ b/7964.b595cc6d.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7964],{952:function(fe,A,e){"use strict";var J=e(56640),p=e.n(J),U=e(5894);A.ZP=U.A},5894:function(fe,A,e){"use strict";e.d(A,{A:function(){return g}});var J=e(9715),p=e(86835),U=e(22122),l=e(67294),y=e(24214),S=e(96156),X=e(49111),x=e(19650),u=e(84305),k=e(75901),L=e(28481),M=e(28991),le=e(8812),W=e(28664),G=e(58927),F=e(94184),ie=e.n(F),V=e(66758),pe=e(2514),w=e(96138),I=l.forwardRef(function(v,ue){var _=l.useContext(V.Z),Y=_.groupProps,c=(0,M.Z)((0,M.Z)({},Y),v),t=c.children,De=c.collapsible,Se=c.defaultCollapsed,xe=c.style,Le=c.labelLayout,ge=c.title,ve=ge===void 0?v.label:ge,Ee=c.tooltip,ee=c.align,Pe=ee===void 0?"start":ee,Ce=c.direction,te=c.size,s=te===void 0?32:te,E=c.titleStyle,r=c.titleRender,i=c.spaceProps,ne=c.extra,re=c.autoFocus,o=(0,W.Z)(function(){return Se||!1},{value:v.collapsed,onChange:v.onCollapse}),T=(0,L.Z)(o,2),Z=T[0],B=T[1],P=(0,l.useContext)(k.ZP.ConfigContext),z=P.getPrefixCls,j=(0,pe.zx)(v),ce=j.ColWrapper,R=j.RowWrapper,b=z("pro-form-group"),he=De&&l.createElement(le.Z,{style:{marginRight:8},rotate:Z?void 0:90}),oe=l.createElement(G.Z,{label:he?l.createElement("div",null,he,ve):ve,tooltip:Ee}),$=(0,l.useCallback)(function(N){var H=N.children;return l.createElement(x.Z,(0,U.Z)({},i,{className:ie()("".concat(b,"-container"),i==null?void 0:i.className),size:s,align:Pe,direction:Ce,style:(0,M.Z)({rowGap:0},i==null?void 0:i.style)}),H)},[Pe,b,Ce,s,i]),K=r?r(oe,v):oe,Oe=(0,l.useMemo)(function(){var N=[],H=l.Children.toArray(t).map(function(d,ae){var O;return l.isValidElement(d)&&(d==null||(O=d.props)===null||O===void 0?void 0:O.hidden)?(N.push(d),null):ae===0&&l.isValidElement(d)&&re?l.cloneElement(d,(0,M.Z)((0,M.Z)({},d.props),{},{autoFocus:re})):d});return[l.createElement(R,{key:"children",Wrapper:$},H),N.length>0?l.createElement("div",{style:{display:"none"}},N):null]},[t,R,$,re]),me=(0,L.Z)(Oe,2),C=me[0],ye=me[1];return l.createElement(ce,null,l.createElement("div",{className:ie()(b,(0,S.Z)({},"".concat(b,"-twoLine"),Le==="twoLine")),style:xe,ref:ue},ye,(ve||Ee||ne)&&l.createElement("div",{className:"".concat(b,"-title"),style:E,onClick:function(){B(!Z)}},ne?l.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"}},K,l.createElement("span",{onClick:function(H){return H.stopPropagation()}},ne)):K),De&&Z?null:C))});I.displayName="ProForm-Group";var D=I,q=e(87808);function g(v){return l.createElement(y.I,(0,U.Z)({layout:"vertical",submitter:{render:function(_,Y){return Y.reverse()}},contentRender:function(_,Y){return l.createElement(l.Fragment,null,_,Y)}},v))}g.Group=D,g.useForm=p.Z.useForm,g.Item=q.Z,g.useWatch=p.Z.useWatch,g.useWatch=p.Z.useWatch,g.ErrorList=p.Z.ErrorList,g.Provider=p.Z.Provider},65554:function(fe,A,e){"use strict";e.d(A,{L:function(){return te},b:function(){return ee}});var J=e(9715),p=e(86835),U=e(49111),l=e(19650),y=e(28991),S=e(96156),X=e(57663),x=e(71577),u=e(35556),k=e(97880),L=e(22122),M=e(55507),le=e(92137),W=e(85061),G=e(28481),F=e(81253),ie=e(84305),V=e(75901),pe=e(13062),w=e(71230),I=e(89032),D=e(15746),q=e(57863),g=e(48531),v=e(31194),ue=e(94184),_=e.n(ue),Y=e(50344),c=e(76632),t=e(67294),De=e(161),Se=e(80334),xe=e(24214),Le=["onFinish","step","formRef","title","stepProps"];function ge(s){var E=(0,t.useRef)(),r=(0,t.useContext)(ee),i=s.onFinish,ne=s.step,re=s.formRef,o=s.title,T=s.stepProps,Z=(0,F.Z)(s,Le);return(0,Se.ET)(!Z.submitter,"StepForm \u4E0D\u5305\u542B\u63D0\u4EA4\u6309\u94AE\uFF0C\u8BF7\u5728 StepsForm \u4E0A"),(0,t.useImperativeHandle)(re,function(){return E.current}),(0,t.useEffect)(function(){if(!!(s.name||s.step)){var B=(s.name||s.step).toString();return r==null||r.regForm(B,s),function(){r==null||r.unRegForm(B)}}},[]),r&&(r==null?void 0:r.formArrayRef)&&(r.formArrayRef.current[ne||0]=E),t.createElement(xe.I,(0,L.Z)({formRef:E,onFinish:function(){var B=(0,le.Z)((0,M.Z)().mark(function P(z){var j;return(0,M.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(Z.name&&(r==null||r.onFormFinish(Z.name,z)),!i){R.next=9;break}return r==null||r.setLoading(!0),R.next=5,i==null?void 0:i(z);case 5:return j=R.sent,j&&(r==null||r.next()),r==null||r.setLoading(!1),R.abrupt("return");case 9:(r==null?void 0:r.lastStep)||r==null||r.next();case 10:case"end":return R.stop()}},P)}));return function(P){return B.apply(this,arguments)}}(),layout:"vertical"},Z))}var ve=ge,Ee=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef"],ee=t.createContext(void 0),Pe={horizontal:function(E){var r=E.stepsDom,i=E.formDom;return t.createElement(t.Fragment,null,t.createElement(w.Z,{gutter:{xs:8,sm:16,md:24}},t.createElement(D.Z,{span:24},r)),t.createElement(w.Z,{gutter:{xs:8,sm:16,md:24}},t.createElement(D.Z,{span:24},i)))},vertical:function(E){var r=E.stepsDom,i=E.formDom;return t.createElement(w.Z,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24}},t.createElement(D.Z,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12},t.cloneElement(r,{style:{height:"100%"}})),t.createElement(D.Z,null,t.createElement("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"}},i)))}};function Ce(s){var E=(0,t.useContext)(V.ZP.ConfigContext),r=E.getPrefixCls,i=r("pro-steps-form"),ne=s.current,re=s.onCurrentChange,o=s.submitter,T=s.stepsFormRender,Z=s.stepsRender,B=s.stepFormRender,P=s.stepsProps,z=s.onFinish,j=s.formProps,ce=s.containerStyle,R=s.formRef,b=s.formMapRef,he=(0,F.Z)(s,Ee),oe=(0,t.useRef)(new Map),$=(0,t.useRef)(new Map),K=(0,t.useRef)([]),Oe=(0,t.useState)([]),me=(0,G.Z)(Oe,2),C=me[0],ye=me[1],N=(0,t.useState)(!1),H=(0,G.Z)(N,2),d=H[0],ae=H[1],O=(0,q.YB)(),je=(0,c.Z)(0,{value:s.current,onChange:s.onCurrentChange}),Ke=(0,G.Z)(je,2),m=Ke[0],Me=Ke[1],Ae=(0,t.useMemo)(function(){return Pe[(P==null?void 0:P.direction)||"horizontal"]},[P==null?void 0:P.direction]),We=(0,t.useMemo)(function(){return m===C.length-1},[C.length,m]),He=(0,t.useCallback)(function(n,a){$.current.has(n)||ye(function(h){return[].concat((0,W.Z)(h),[n])}),$.current.set(n,a)},[]),Je=(0,t.useCallback)(function(n){ye(function(a){return a.filter(function(h){return h===n})}),$.current.delete(n),oe.current.delete(n)},[]);(0,t.useImperativeHandle)(b,function(){return K.current}),(0,t.useImperativeHandle)(R,function(){var n;return(n=K.current[m||0])===null||n===void 0?void 0:n.current},[m]);var Ve=(0,t.useCallback)(function(){var n=(0,le.Z)((0,M.Z)().mark(function a(h,Q){var de,Fe;return(0,M.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(oe.current.set(h,Q),!(!We||!z)){f.next=3;break}return f.abrupt("return");case 3:return ae(!0),de=g.T.apply(void 0,[{}].concat((0,W.Z)(Array.from(oe.current.values())))),f.prev=5,f.next=8,z(de);case 8:Fe=f.sent,Fe&&(Me(0),K.current.forEach(function(Qe){var $e;return($e=Qe.current)===null||$e===void 0?void 0:$e.resetFields()})),f.next=15;break;case 12:f.prev=12,f.t0=f.catch(5),console.log(f.t0);case 15:return f.prev=15,ae(!1),f.finish(15);case 18:case"end":return f.stop()}},a,null,[[5,12,15,18]])}));return function(a,h){return n.apply(this,arguments)}}(),[We,z,ae,Me]),Ie=(0,t.useMemo)(function(){return t.createElement("div",{className:"".concat(i,"-steps-container"),style:{maxWidth:Math.min(C.length*320,1160)}},t.createElement(k.Z,(0,L.Z)({},P,{current:m,onChange:void 0}),C.map(function(n){var a=$.current.get(n);return t.createElement(k.Z.Step,(0,L.Z)({key:n,title:a==null?void 0:a.title},a==null?void 0:a.stepProps))})))},[C,i,m,P]),se=(0,v.J)(function(){var n,a=K.current[m];(n=a.current)===null||n===void 0||n.submit()}),Ze=(0,v.J)(function(){m<1||Me(m-1)}),Te=(0,t.useMemo)(function(){return o!==!1&&t.createElement(x.Z,(0,L.Z)({key:"next",type:"primary",loading:d},o==null?void 0:o.submitButtonProps,{onClick:function(){var a;o==null||(a=o.onSubmit)===null||a===void 0||a.call(o),se()}}),O.getMessage("stepsForm.next","\u4E0B\u4E00\u6B65"))},[O,d,se,o]),Be=(0,t.useMemo)(function(){return o!==!1&&t.createElement(x.Z,(0,L.Z)({key:"pre"},o==null?void 0:o.resetButtonProps,{onClick:function(){var a;Ze(),o==null||(a=o.onReset)===null||a===void 0||a.call(o)}}),O.getMessage("stepsForm.prev","\u4E0A\u4E00\u6B65"))},[O,Ze,o]),Ne=(0,t.useMemo)(function(){return o!==!1&&t.createElement(x.Z,(0,L.Z)({key:"submit",type:"primary",loading:d},o==null?void 0:o.submitButtonProps,{onClick:function(){var a;o==null||(a=o.onSubmit)===null||a===void 0||a.call(o),se()}}),O.getMessage("stepsForm.submit","\u63D0\u4EA4"))},[O,d,se,o]),Ye=(0,v.J)(function(){m>C.length-2||Me(m+1)}),Re=(0,t.useMemo)(function(){var n=[],a=m||0;if(a<1?n.push(Te):a+1===C.length?n.push(Be,Ne):n.push(Be,Te),n=n.filter(t.isValidElement),o&&o.render){var h,Q={form:(h=K.current[m])===null||h===void 0?void 0:h.current,onSubmit:se,step:m,onPre:Ze};return o.render(Q,n)}return o&&(o==null?void 0:o.render)===!1?null:n},[C.length,Te,se,Be,Ze,m,Ne,o]),Ue=(0,t.useMemo)(function(){return(0,Y.Z)(s.children).map(function(n,a){var h=n.props,Q=h.name||"".concat(a),de=m===a,Fe=de?{contentRender:B,submitter:!1}:{};return t.createElement("div",{className:_()("".concat(i,"-step"),(0,S.Z)({},"".concat(i,"-step-active"),de)),key:Q},t.cloneElement(n,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},Fe),j),h),{},{name:Q,step:a,key:Q})))})},[j,i,s.children,m,B]),Ge=(0,t.useMemo)(function(){return Z?Z(C.map(function(n){var a;return{key:n,title:(a=$.current.get(n))===null||a===void 0?void 0:a.title}}),Ie):Ie},[C,Ie,Z]),ze=(0,t.useMemo)(function(){return t.createElement("div",{className:"".concat(i,"-container"),style:ce},Ue,T?null:t.createElement(l.Z,null,Re))},[ce,Ue,i,T,Re]),be=(0,t.useMemo)(function(){var n={stepsDom:Ge,formDom:ze};return T?T(Ae(n),Re):Ae(n)},[Ge,ze,Ae,T,Re]);return t.createElement("div",{className:i},t.createElement(p.Z.Provider,he,t.createElement(ee.Provider,{value:{loading:d,setLoading:ae,regForm:He,keyArray:C,next:Ye,formArrayRef:K,formMapRef:$,lastStep:We,unRegForm:Je,onFormFinish:Ve}},be)))}function te(s){return t.createElement(q.oK,null,t.createElement(Ce,s))}te.StepForm=ve,te.useForm=p.Z.useForm},58927:function(fe,A,e){"use strict";var J=e(22385),p=e(61580),U=e(96156),l=e(84305),y=e(75901),S=e(68628),X=e(94184),x=e.n(X),u=e(67294),k=e(11445),L=e.n(k),M=function(W){var G=W.label,F=W.tooltip,ie=W.ellipsis,V=W.subTitle,pe=(0,u.useContext)(y.ZP.ConfigContext),w=pe.getPrefixCls;if(!F&&!V)return u.createElement(u.Fragment,null,G);var I=w("pro-core-label-tip"),D=typeof F=="string"||u.isValidElement(F)?{title:F}:F,q=(D==null?void 0:D.icon)||u.createElement(S.Z,null);return u.createElement("div",{className:I,onMouseDown:function(v){return v.stopPropagation()},onMouseLeave:function(v){return v.stopPropagation()},onMouseMove:function(v){return v.stopPropagation()}},u.createElement("div",{className:x()("".concat(I,"-title"),(0,U.Z)({},"".concat(I,"-title-ellipsis"),ie))},G),V&&u.createElement("div",{className:"".concat(I,"-subtitle")},V),F&&u.createElement(p.Z,D,u.createElement("span",{className:"".concat(I,"-icon")},q)))};A.Z=u.memo(M)},31194:function(fe,A,e){"use strict";e.d(A,{J:function(){return p}});var J=e(67294),p=function(l){var y=(0,J.useRef)(null);return y.current=l,(0,J.useCallback)(function(){for(var S,X=arguments.length,x=new Array(X),u=0;uinput{position:relative;display:inline-block;width:100%;min-width:0;color:rgba(0,0,0,.85);font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border-radius:2px;transition:all .3s;flex:auto;min-width:1px;height:auto;padding:0;background:transparent;border:0}.ant-picker-input>input::-webkit-input-placeholder{color:#bfbfbf;-webkit-user-select:none;user-select:none}.ant-picker-input>input:-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-picker-input>input::-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-picker-input>input::placeholder{color:#bfbfbf;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-picker-input>input:-ms-input-placeholder{text-overflow:ellipsis}.ant-picker-input>input:placeholder-shown{text-overflow:ellipsis}.ant-picker-input>input:hover{border-color:#40a9ff;border-color:var(--ant-primary-5);border-right-width:1px}.ant-picker-input>input-focused,.ant-picker-input>input:focus{border-color:#40a9ff;border-color:var(--ant-primary-color-hover);box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px var(--ant-primary-color-outline);border-right-width:1px;outline:0}.ant-picker-input>input-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-picker-input>input-disabled:hover{border-color:#d9d9d9;border-right-width:1px}.ant-picker-input>input[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-picker-input>input[disabled]:hover{border-color:#d9d9d9;border-right-width:1px}.ant-picker-input>input-borderless,.ant-picker-input>input-borderless-disabled,.ant-picker-input>input-borderless-focused,.ant-picker-input>input-borderless:focus,.ant-picker-input>input-borderless:hover,.ant-picker-input>input-borderless[disabled]{background-color:transparent;border:none;box-shadow:none}textarea.ant-picker-input>input{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-picker-input>input-lg{padding:6.5px 11px;font-size:16px}.ant-picker-input>input-sm{padding:0 7px}.ant-picker-input>input:focus{box-shadow:none}.ant-picker-input>input[disabled]{background:transparent}.ant-picker-input:hover .ant-picker-clear{opacity:1}.ant-picker-input-placeholder>input{color:#bfbfbf}.ant-picker-large{padding:6.5px 11px}.ant-picker-large .ant-picker-input>input{font-size:16px}.ant-picker-small{padding:0 7px}.ant-picker-suffix{display:flex;flex:none;align-self:center;margin-left:4px;color:rgba(0,0,0,.25);line-height:1;pointer-events:none}.ant-picker-suffix>*{vertical-align:top}.ant-picker-suffix>:not(:last-child){margin-right:8px}.ant-picker-clear{position:absolute;top:50%;right:0;color:rgba(0,0,0,.25);line-height:1;background:#fff;transform:translateY(-50%);cursor:pointer;opacity:0;transition:opacity .3s,color .3s}.ant-picker-clear>*{vertical-align:top}.ant-picker-clear:hover{color:rgba(0,0,0,.45)}.ant-picker-separator{position:relative;display:inline-block;width:1em;height:16px;color:rgba(0,0,0,.25);font-size:16px;vertical-align:top;cursor:default}.ant-picker-focused .ant-picker-separator{color:rgba(0,0,0,.45)}.ant-picker-disabled .ant-picker-range-separator .ant-picker-separator{cursor:not-allowed}.ant-picker-range{position:relative;display:inline-flex}.ant-picker-range .ant-picker-clear{right:11px}.ant-picker-range:hover .ant-picker-clear{opacity:1}.ant-picker-range .ant-picker-active-bar{bottom:-1px;height:2px;margin-left:11px;background:#1890ff;background:var(--ant-primary-color);opacity:0;transition:all .3s ease-out;pointer-events:none}.ant-picker-range.ant-picker-focused .ant-picker-active-bar{opacity:1}.ant-picker-range-separator{align-items:center;padding:0 8px;line-height:1}.ant-picker-range.ant-picker-small .ant-picker-clear{right:7px}.ant-picker-range.ant-picker-small .ant-picker-active-bar{margin-left:7px}.ant-picker-dropdown{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:absolute;top:-9999px;left:-9999px;z-index:1050}.ant-picker-dropdown-hidden{display:none}.ant-picker-dropdown-placement-bottomLeft .ant-picker-range-arrow{top:2.58561808px;display:block;transform:rotate(-135deg) translateY(1px)}.ant-picker-dropdown-placement-topLeft .ant-picker-range-arrow{bottom:2.58561808px;display:block;transform:rotate(45deg)}.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-topRight,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-topRight{animation-name:antSlideDownIn}.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-bottomRight,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-bottomRight{animation-name:antSlideUpIn}.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-topRight{animation-name:antSlideDownOut}.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-bottomRight{animation-name:antSlideUpOut}.ant-picker-dropdown-range{padding:7.54247233px 0}.ant-picker-dropdown-range-hidden{display:none}.ant-picker-dropdown .ant-picker-panel>.ant-picker-time-panel{padding-top:4px}.ant-picker-ranges{margin-bottom:0;padding:4px 12px;overflow:hidden;line-height:34px;text-align:left;list-style:none}.ant-picker-ranges>li{display:inline-block}.ant-picker-ranges .ant-picker-preset>.ant-tag-blue{color:#1890ff;color:var(--ant-primary-color);background:#e6f7ff;background:var(--ant-primary-1);border-color:#91d5ff;border-color:var(--ant-primary-3);cursor:pointer}.ant-picker-ranges .ant-picker-ok{float:right;margin-left:8px}.ant-picker-range-wrapper{display:flex}.ant-picker-range-arrow{position:absolute;z-index:1;display:none;width:11.3137085px;height:11.3137085px;margin-left:16.5px;background:linear-gradient(135deg,transparent 40%,#fff 0);box-shadow:2px 2px 6px -2px rgba(0,0,0,.1);transition:left .3s ease-out;border-radius:0 0 2px;pointer-events:none}.ant-picker-range-arrow:before{position:absolute;top:-11.3137085px;left:-11.3137085px;width:33.9411255px;height:33.9411255px;background:#fff;background-repeat:no-repeat;background-position:-10px -10px;content:"";-webkit-clip-path:path("M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z");clip-path:path("M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z")}.ant-picker-panel-container{overflow:hidden;vertical-align:top;background:#fff;border-radius:2px;box-shadow:0 3px 6px -4px rgba(0,0,0,.12),0 6px 16px 0 rgba(0,0,0,.08),0 9px 28px 8px rgba(0,0,0,.05);transition:margin .3s}.ant-picker-panel-container .ant-picker-panels{display:inline-flex;flex-wrap:nowrap;direction:ltr}.ant-picker-panel-container .ant-picker-panel{vertical-align:top;background:transparent;border-width:0 0 1px;border-radius:0}.ant-picker-panel-container .ant-picker-panel .ant-picker-content,.ant-picker-panel-container .ant-picker-panel table{text-align:center}.ant-picker-panel-container .ant-picker-panel-focused{border-color:rgba(0,0,0,.06)}.ant-picker-panel{display:inline-flex;flex-direction:column;text-align:center;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:2px;outline:none}.ant-picker-panel-focused{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-picker-date-panel,.ant-picker-decade-panel,.ant-picker-month-panel,.ant-picker-quarter-panel,.ant-picker-time-panel,.ant-picker-week-panel,.ant-picker-year-panel{display:flex;flex-direction:column;width:280px}.ant-picker-header{display:flex;padding:0 8px;color:rgba(0,0,0,.85);border-bottom:1px solid rgba(0,0,0,.06)}.ant-picker-header>*{flex:none}.ant-picker-header button{padding:0;color:rgba(0,0,0,.25);line-height:40px;background:transparent;border:0;cursor:pointer;transition:color .3s}.ant-picker-header>button{min-width:1.6em;font-size:14px}.ant-picker-header>button:hover{color:rgba(0,0,0,.85)}.ant-picker-header-view{flex:auto;font-weight:500;line-height:40px}.ant-picker-header-view button{color:inherit;font-weight:inherit}.ant-picker-header-view button:not(:first-child){margin-left:8px}.ant-picker-header-view button:hover{color:#1890ff;color:var(--ant-primary-color)}.ant-picker-next-icon,.ant-picker-prev-icon,.ant-picker-super-next-icon,.ant-picker-super-prev-icon{position:relative;display:inline-block;width:7px;height:7px}.ant-picker-next-icon:before,.ant-picker-prev-icon:before,.ant-picker-super-next-icon:before,.ant-picker-super-prev-icon:before{position:absolute;top:0;left:0;display:inline-block;width:7px;height:7px;border:0 solid;border-width:1.5px 0 0 1.5px;content:""}.ant-picker-super-next-icon:after,.ant-picker-super-prev-icon:after{position:absolute;top:4px;left:4px;display:inline-block;width:7px;height:7px;border:0 solid;border-width:1.5px 0 0 1.5px;content:""}.ant-picker-prev-icon,.ant-picker-super-prev-icon{transform:rotate(-45deg)}.ant-picker-next-icon,.ant-picker-super-next-icon{transform:rotate(135deg)}.ant-picker-content{width:100%;table-layout:fixed;border-collapse:collapse}.ant-picker-content td,.ant-picker-content th{position:relative;min-width:24px;font-weight:400}.ant-picker-content th{height:30px;color:rgba(0,0,0,.85);line-height:30px}.ant-picker-cell{padding:3px 0;color:rgba(0,0,0,.25);cursor:pointer}.ant-picker-cell-in-view{color:rgba(0,0,0,.85)}.ant-picker-cell:before{position:absolute;top:50%;right:0;left:0;z-index:1;height:24px;transform:translateY(-50%);transition:all .3s;content:""}.ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,.ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner{background:#f5f5f5}.ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner:before{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);border-radius:2px;content:""}.ant-picker-cell-in-view.ant-picker-cell-in-range{position:relative}.ant-picker-cell-in-view.ant-picker-cell-in-range:before{background:#e6f7ff;background:var(--ant-primary-1)}.ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner,.ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner{color:#fff;background:#1890ff;background:var(--ant-primary-color)}.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):before,.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):before{background:#e6f7ff;background:var(--ant-primary-1)}.ant-picker-cell-in-view.ant-picker-cell-range-start:before{left:50%}.ant-picker-cell-in-view.ant-picker-cell-range-end:before{right:50%}.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-end-single:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-start-near-hover:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start-single:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-end-near-hover:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-in-range):after{position:absolute;top:50%;z-index:0;height:24px;border-top:1px dashed #7ec1ff;border-top:1px dashed var(--ant-primary-color-deprecated-l-20);border-bottom:1px dashed #7ec1ff;border-bottom:1px dashed var(--ant-primary-color-deprecated-l-20);transform:translateY(-50%);transition:all .3s;content:""}.ant-picker-cell-range-hover-end:after,.ant-picker-cell-range-hover-start:after,.ant-picker-cell-range-hover:after{right:0;left:2px}.ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-end.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single).ant-picker-cell-range-hover-end:before,.ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single).ant-picker-cell-range-hover-start:before,.ant-picker-panel>:not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end:before,.ant-picker-panel>:not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start:before{background:#cbe6ff;background:var(--ant-primary-color-deprecated-l-35)}.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner{border-radius:2px 0 0 2px}.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner{border-radius:0 2px 2px 0}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after,.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after{position:absolute;top:0;bottom:0;z-index:-1;background:#cbe6ff;background:var(--ant-primary-color-deprecated-l-35);transition:all .3s;content:""}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after{right:-6px;left:0}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after{right:0;left:-6px}.ant-picker-cell-range-hover.ant-picker-cell-range-start:after{right:50%}.ant-picker-cell-range-hover.ant-picker-cell-range-end:after{left:50%}.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:after,.ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:first-child:after{left:6px;border-left:1px dashed #7ec1ff;border-left:1px dashed var(--ant-primary-color-deprecated-l-20);border-top-left-radius:2px;border-bottom-left-radius:2px}.ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:last-child:after{right:6px;border-right:1px dashed #7ec1ff;border-right:1px dashed var(--ant-primary-color-deprecated-l-20);border-top-right-radius:2px;border-bottom-right-radius:2px}.ant-picker-cell-disabled{color:rgba(0,0,0,.25);pointer-events:none}.ant-picker-cell-disabled .ant-picker-cell-inner{background:transparent}.ant-picker-cell-disabled:before{background:rgba(0,0,0,.04)}.ant-picker-cell-disabled.ant-picker-cell-today .ant-picker-cell-inner:before{border-color:rgba(0,0,0,.25)}.ant-picker-decade-panel .ant-picker-content,.ant-picker-month-panel .ant-picker-content,.ant-picker-quarter-panel .ant-picker-content,.ant-picker-year-panel .ant-picker-content{height:264px}.ant-picker-decade-panel .ant-picker-cell-inner,.ant-picker-month-panel .ant-picker-cell-inner,.ant-picker-quarter-panel .ant-picker-cell-inner,.ant-picker-year-panel .ant-picker-cell-inner{padding:0 8px}.ant-picker-quarter-panel .ant-picker-content{height:56px}.ant-picker-footer{width:-webkit-min-content;width:-moz-min-content;width:min-content;min-width:100%;line-height:38px;text-align:center;border-bottom:1px solid transparent}.ant-picker-panel .ant-picker-footer{border-top:1px solid rgba(0,0,0,.06)}.ant-picker-footer-extra{padding:0 12px;line-height:38px;text-align:left}.ant-picker-footer-extra:not(:last-child){border-bottom:1px solid rgba(0,0,0,.06)}.ant-picker-now{text-align:left}.ant-picker-today-btn{color:#1890ff;color:var(--ant-primary-color)}.ant-picker-today-btn:hover{color:#40a9ff;color:var(--ant-primary-color-hover)}.ant-picker-today-btn:active{color:#096dd9;color:var(--ant-primary-color-active)}.ant-picker-today-btn.ant-picker-today-btn-disabled{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-picker-decade-panel .ant-picker-cell-inner{padding:0 4px}.ant-picker-decade-panel .ant-picker-cell:before{display:none}.ant-picker-month-panel .ant-picker-body,.ant-picker-quarter-panel .ant-picker-body,.ant-picker-year-panel .ant-picker-body{padding:0 8px}.ant-picker-month-panel .ant-picker-cell-inner,.ant-picker-quarter-panel .ant-picker-cell-inner,.ant-picker-year-panel .ant-picker-cell-inner{width:60px}.ant-picker-month-panel .ant-picker-cell-range-hover-start:after,.ant-picker-quarter-panel .ant-picker-cell-range-hover-start:after,.ant-picker-year-panel .ant-picker-cell-range-hover-start:after{left:14px;border-left:1px dashed #7ec1ff;border-left:1px dashed var(--ant-primary-color-deprecated-l-20);border-radius:2px 0 0 2px}.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-start:after,.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-start:after,.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-start:after{right:14px;border-right:1px dashed #7ec1ff;border-right:1px dashed var(--ant-primary-color-deprecated-l-20);border-radius:0 2px 2px 0}.ant-picker-month-panel .ant-picker-cell-range-hover-end:after,.ant-picker-quarter-panel .ant-picker-cell-range-hover-end:after,.ant-picker-year-panel .ant-picker-cell-range-hover-end:after{right:14px;border-right:1px dashed #7ec1ff;border-right:1px dashed var(--ant-primary-color-deprecated-l-20);border-radius:0 2px 2px 0}.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-end:after{left:14px;border-left:1px dashed #7ec1ff;border-left:1px dashed var(--ant-primary-color-deprecated-l-20);border-radius:2px 0 0 2px}.ant-picker-week-panel .ant-picker-body{padding:8px 12px}.ant-picker-week-panel .ant-picker-cell-selected .ant-picker-cell-inner,.ant-picker-week-panel .ant-picker-cell .ant-picker-cell-inner,.ant-picker-week-panel .ant-picker-cell:hover .ant-picker-cell-inner{background:transparent!important}.ant-picker-week-panel-row td{transition:background .3s}.ant-picker-week-panel-row:hover td{background:#f5f5f5}.ant-picker-week-panel-row-selected:hover td,.ant-picker-week-panel-row-selected td{background:#1890ff;background:var(--ant-primary-color)}.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-week,.ant-picker-week-panel-row-selected td.ant-picker-cell-week{color:hsla(0,0%,100%,.5)}.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-today .ant-picker-cell-inner:before,.ant-picker-week-panel-row-selected td.ant-picker-cell-today .ant-picker-cell-inner:before{border-color:#fff}.ant-picker-week-panel-row-selected:hover td .ant-picker-cell-inner,.ant-picker-week-panel-row-selected td .ant-picker-cell-inner{color:#fff}.ant-picker-date-panel .ant-picker-body{padding:8px 12px}.ant-picker-date-panel .ant-picker-content{width:252px}.ant-picker-date-panel .ant-picker-content th{width:36px}.ant-picker-datetime-panel{display:flex}.ant-picker-datetime-panel .ant-picker-time-panel{border-left:1px solid rgba(0,0,0,.06)}.ant-picker-datetime-panel .ant-picker-date-panel,.ant-picker-datetime-panel .ant-picker-time-panel{transition:opacity .3s}.ant-picker-datetime-panel-active .ant-picker-date-panel,.ant-picker-datetime-panel-active .ant-picker-time-panel{opacity:.3}.ant-picker-datetime-panel-active .ant-picker-date-panel-active,.ant-picker-datetime-panel-active .ant-picker-time-panel-active{opacity:1}.ant-picker-time-panel{width:auto;min-width:auto}.ant-picker-time-panel .ant-picker-content{display:flex;flex:auto;height:224px}.ant-picker-time-panel-column{flex:1 0 auto;width:56px;margin:0;padding:0;overflow-y:hidden;text-align:left;list-style:none;transition:background .3s}.ant-picker-time-panel-column:after{display:block;height:196px;content:""}.ant-picker-datetime-panel .ant-picker-time-panel-column:after{height:198px}.ant-picker-time-panel-column:not(:first-child){border-left:1px solid rgba(0,0,0,.06)}.ant-picker-time-panel-column-active{background:rgba(230,247,255,.3);background:var(--ant-primary-color-active-deprecated-f-30)}.ant-picker-time-panel-column:hover{overflow-y:auto}.ant-picker-time-panel-column>li{margin:0;padding:0}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner{display:block;width:100%;height:28px;margin:0;padding:0 0 0 14px;color:rgba(0,0,0,.85);line-height:28px;border-radius:0;cursor:pointer;transition:background .3s}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner:hover{background:#f5f5f5}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell-selected .ant-picker-time-panel-cell-inner{background:#e6f7ff;background:var(--ant-primary-1)}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell-disabled .ant-picker-time-panel-cell-inner{color:rgba(0,0,0,.25);background:transparent;cursor:not-allowed}:root .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,:root .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell,_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell{padding:21px 0}.ant-picker-rtl{direction:rtl}.ant-picker-rtl .ant-picker-suffix{margin-right:4px;margin-left:0}.ant-picker-rtl .ant-picker-clear{right:auto;left:0}.ant-picker-rtl .ant-picker-separator{transform:rotate(180deg)}.ant-picker-panel-rtl .ant-picker-header-view button:not(:first-child){margin-right:8px;margin-left:0}.ant-picker-rtl.ant-picker-range .ant-picker-clear{right:auto;left:11px}.ant-picker-rtl.ant-picker-range .ant-picker-active-bar{margin-right:11px;margin-left:0}.ant-picker-rtl.ant-picker-range.ant-picker-small .ant-picker-active-bar{margin-right:7px}.ant-picker-dropdown-rtl .ant-picker-ranges{text-align:right}.ant-picker-dropdown-rtl .ant-picker-ranges .ant-picker-ok{float:left;margin-right:8px;margin-left:0}.ant-picker-panel-rtl{direction:rtl}.ant-picker-panel-rtl .ant-picker-prev-icon,.ant-picker-panel-rtl .ant-picker-super-prev-icon{transform:rotate(135deg)}.ant-picker-panel-rtl .ant-picker-next-icon,.ant-picker-panel-rtl .ant-picker-super-next-icon{transform:rotate(-45deg)}.ant-picker-cell .ant-picker-cell-inner{position:relative;z-index:2;display:inline-block;min-width:24px;height:24px;line-height:24px;border-radius:2px;transition:background .3s,border .3s}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start:before{right:50%;left:0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end:before{right:0;left:50%}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-end:before{right:50%;left:50%}.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after{right:0;left:-6px}.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after{right:-6px;left:0}.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-start:after{right:0;left:50%}.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-end:after{right:50%;left:0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner{border-radius:0 2px 2px 0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner{border-radius:2px 0 0 2px}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):first-child:after{right:6px;left:0;border-right:1px dashed #7ec1ff;border-right:1px dashed var(--ant-primary-color-deprecated-l-20);border-left:none;border-radius:0 2px 2px 0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):last-child:after{right:0;left:6px;border-right:none;border-left:1px dashed #7ec1ff;border-left:1px dashed var(--ant-primary-color-deprecated-l-20);border-radius:2px 0 0 2px}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-start.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-end.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-end:first-child:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-start:last-child:after{right:6px;left:6px;border-right:1px dashed #7ec1ff;border-right:1px dashed var(--ant-primary-color-deprecated-l-20);border-left:1px dashed #7ec1ff;border-left:1px dashed var(--ant-primary-color-deprecated-l-20);border-radius:2px}.ant-picker-dropdown-rtl .ant-picker-footer-extra{direction:rtl;text-align:right}.ant-picker-panel-rtl .ant-picker-time-panel{direction:ltr}@keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-checkbox{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-checkbox-input:focus+.ant-checkbox-inner,.ant-checkbox-wrapper:hover .ant-checkbox-inner,.ant-checkbox:hover .ant-checkbox-inner{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);border-radius:2px;visibility:hidden;animation:antCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;content:""}.ant-checkbox-wrapper:hover .ant-checkbox:after,.ant-checkbox:hover:after{visibility:visible}.ant-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all .3s}.ant-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-checkbox-checked .ant-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-checkbox-checked .ant-checkbox-inner{background-color:#1890ff;background-color:var(--ant-primary-color);border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-checkbox-disabled{cursor:not-allowed}.ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner:after{border-color:rgba(0,0,0,.25);animation-name:none}.ant-checkbox-disabled .ant-checkbox-input{cursor:not-allowed;pointer-events:none}.ant-checkbox-disabled .ant-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-checkbox-disabled .ant-checkbox-inner:after{border-color:#f5f5f5;border-collapse:separate;animation-name:none}.ant-checkbox-disabled+span{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-checkbox-disabled:hover:after,.ant-checkbox-wrapper:hover .ant-checkbox-disabled:after{visibility:hidden}.ant-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\a0"}.ant-checkbox-wrapper.ant-checkbox-wrapper-disabled{cursor:not-allowed}.ant-checkbox-wrapper+.ant-checkbox-wrapper{margin-left:8px}.ant-checkbox-wrapper.ant-checkbox-wrapper-in-form-item input[type=checkbox]{width:14px;height:14px}.ant-checkbox+span{padding-right:8px;padding-left:8px}.ant-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-block}.ant-checkbox-group-item{margin-right:8px}.ant-checkbox-group-item:last-child{margin-right:0}.ant-checkbox-group-item+.ant-checkbox-group-item{margin-left:0}.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-checkbox-indeterminate .ant-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#1890ff;background-color:var(--ant-primary-color);border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner:after{background-color:rgba(0,0,0,.25);border-color:rgba(0,0,0,.25)}.ant-checkbox-rtl{direction:rtl}.ant-checkbox-group-rtl .ant-checkbox-group-item{margin-right:0;margin-left:8px}.ant-checkbox-group-rtl .ant-checkbox-group-item:last-child{margin-left:0!important}.ant-checkbox-group-rtl .ant-checkbox-group-item+.ant-checkbox-group-item{margin-left:8px}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-radio-group{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-block;font-size:0}.ant-radio-group .ant-badge-count{z-index:1}.ant-radio-group>.ant-badge:not(:first-child)>.ant-radio-button-wrapper{border-left:none}.ant-radio-wrapper{box-sizing:border-box;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;display:inline-flex;align-items:baseline;margin:0 8px 0 0;cursor:pointer}.ant-radio-wrapper-disabled{cursor:not-allowed}.ant-radio-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\a0"}.ant-radio-wrapper.ant-radio-wrapper-in-form-item input[type=radio]{width:14px;height:14px}.ant-radio{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;top:.2em;display:inline-block;outline:none;cursor:pointer}.ant-radio-input:focus+.ant-radio-inner,.ant-radio-wrapper:hover .ant-radio,.ant-radio:hover .ant-radio-inner{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-radio-input:focus+.ant-radio-inner{box-shadow:0 0 0 3px #e6f7ff;box-shadow:0 0 0 3px var(--ant-primary-1)}.ant-radio-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);border-radius:50%;visibility:hidden;animation:antRadioEffect .36s ease-in-out;animation-fill-mode:both;content:""}.ant-radio-wrapper:hover .ant-radio:after,.ant-radio:hover:after{visibility:visible}.ant-radio-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;background-color:#fff;border:1px solid #d9d9d9;border-radius:50%;transition:all .3s}.ant-radio-inner:after{position:absolute;top:50%;left:50%;display:block;width:16px;height:16px;margin-top:-8px;margin-left:-8px;background-color:#1890ff;background-color:var(--ant-primary-color);border-top:0;border-left:0;border-radius:16px;transform:scale(0);opacity:0;transition:all .3s cubic-bezier(.78,.14,.15,.86);content:" "}.ant-radio-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;cursor:pointer;opacity:0}.ant-radio.ant-radio-disabled .ant-radio-inner{border-color:#d9d9d9}.ant-radio-checked .ant-radio-inner{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-radio-checked .ant-radio-inner:after{transform:scale(.5);opacity:1;transition:all .3s cubic-bezier(.78,.14,.15,.86)}.ant-radio-disabled{cursor:not-allowed}.ant-radio-disabled .ant-radio-inner{background-color:#f5f5f5;cursor:not-allowed}.ant-radio-disabled .ant-radio-inner:after{background-color:rgba(0,0,0,.2)}.ant-radio-disabled .ant-radio-input{cursor:not-allowed}.ant-radio-disabled+span{color:rgba(0,0,0,.25);cursor:not-allowed}span.ant-radio+*{padding-right:8px;padding-left:8px}.ant-radio-button-wrapper{position:relative;display:inline-block;height:32px;margin:0;padding:0 15px;color:rgba(0,0,0,.85);font-size:14px;line-height:30px;background:#fff;border-color:#d9d9d9;border-style:solid;border-width:1.02px 1px 1px 0;cursor:pointer;transition:color .3s,background .3s,border-color .3s,box-shadow .3s}.ant-radio-button-wrapper a{color:rgba(0,0,0,.85)}.ant-radio-button-wrapper>.ant-radio-button{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%}.ant-radio-group-large .ant-radio-button-wrapper{height:40px;font-size:16px;line-height:38px}.ant-radio-group-small .ant-radio-button-wrapper{height:24px;padding:0 7px;line-height:22px}.ant-radio-button-wrapper:not(:first-child):before{position:absolute;top:-1px;left:-1px;display:block;box-sizing:content-box;width:1px;height:100%;padding:1px 0;background-color:#d9d9d9;transition:background-color .3s;content:""}.ant-radio-button-wrapper:first-child{border-left:1px solid #d9d9d9;border-radius:2px 0 0 2px}.ant-radio-button-wrapper:last-child{border-radius:0 2px 2px 0}.ant-radio-button-wrapper:first-child:last-child{border-radius:2px}.ant-radio-button-wrapper:hover{position:relative;color:#1890ff;color:var(--ant-primary-color)}.ant-radio-button-wrapper:focus-within{box-shadow:0 0 0 3px #e6f7ff;box-shadow:0 0 0 3px var(--ant-primary-1)}.ant-radio-button-wrapper .ant-radio-inner,.ant-radio-button-wrapper input[type=checkbox],.ant-radio-button-wrapper input[type=radio]{width:0;height:0;opacity:0;pointer-events:none}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){z-index:1;color:#1890ff;color:var(--ant-primary-color);background:#fff;border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):before{background-color:#1890ff;background-color:var(--ant-primary-color)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{color:#40a9ff;color:var(--ant-primary-5);border-color:#40a9ff;border-color:var(--ant-primary-5)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover:before{background-color:#40a9ff;background-color:var(--ant-primary-5)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active{color:#096dd9;color:var(--ant-primary-7);border-color:#096dd9;border-color:var(--ant-primary-7)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active:before{background-color:#096dd9;background-color:var(--ant-primary-7)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within{box-shadow:0 0 0 3px #e6f7ff;box-shadow:0 0 0 3px var(--ant-primary-1)}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){color:#fff;background:#1890ff;background:var(--ant-primary-color);border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{color:#fff;background:#40a9ff;background:var(--ant-primary-5);border-color:#40a9ff;border-color:var(--ant-primary-5)}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active{color:#fff;background:#096dd9;background:var(--ant-primary-7);border-color:#096dd9;border-color:var(--ant-primary-7)}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within{box-shadow:0 0 0 3px #e6f7ff;box-shadow:0 0 0 3px var(--ant-primary-1)}.ant-radio-button-wrapper-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-radio-button-wrapper-disabled:first-child,.ant-radio-button-wrapper-disabled:hover{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9}.ant-radio-button-wrapper-disabled:first-child{border-left-color:#d9d9d9}.ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked{color:rgba(0,0,0,.25);background-color:#e6e6e6;border-color:#d9d9d9;box-shadow:none}@keyframes antRadioEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-radio-group.ant-radio-group-rtl{direction:rtl}.ant-radio-wrapper.ant-radio-wrapper-rtl{margin-right:0;margin-left:8px;direction:rtl}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl{border-right-width:0;border-left-width:1px}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:not(:first-child):before{right:-1px;left:0}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:first-child{border-right:1px solid #d9d9d9;border-radius:0 2px 2px 0}.ant-radio-button-wrapper-checked:not([class*=" ant-radio-button-wrapper-disabled"]).ant-radio-button-wrapper:first-child{border-right-color:#40a9ff;border-right-color:var(--ant-primary-5)}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:last-child{border-radius:2px 0 0 2px}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper-disabled:first-child{border-right-color:#d9d9d9} \ No newline at end of file diff --git a/9208.af08cd18.async.js b/9208.af08cd18.async.js new file mode 100644 index 00000000..5b8ef90c --- /dev/null +++ b/9208.af08cd18.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9208],{86591:function(){},68588:function(ja,Et,V){"use strict";V.d(Et,{Z:function(){return zo}});var tt=V(30381),an=V.n(tt),Sn=V(80334),Rt={getNow:function(){return an()()},getFixedDate:function(n){return an()(n,"YYYY-MM-DD")},getEndDate:function(n){var t=n.clone();return t.endOf("month")},getWeekDay:function(n){var t=n.clone().locale("en_US");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(n){return n.year()},getMonth:function(n){return n.month()},getDate:function(n){return n.date()},getHour:function(n){return n.hour()},getMinute:function(n){return n.minute()},getSecond:function(n){return n.second()},addYear:function(n,t){var a=n.clone();return a.add(t,"year")},addMonth:function(n,t){var a=n.clone();return a.add(t,"month")},addDate:function(n,t){var a=n.clone();return a.add(t,"day")},setYear:function(n,t){var a=n.clone();return a.year(t)},setMonth:function(n,t){var a=n.clone();return a.month(t)},setDate:function(n,t){var a=n.clone();return a.date(t)},setHour:function(n,t){var a=n.clone();return a.hour(t)},setMinute:function(n,t){var a=n.clone();return a.minute(t)},setSecond:function(n,t){var a=n.clone();return a.second(t)},isAfter:function(n,t){return n.isAfter(t)},isValidate:function(n){return n.isValid()},locale:{getWeekFirstDay:function(n){var t=an()().locale(n);return t.localeData().firstDayOfWeek()},getWeekFirstDate:function(n,t){var a=t.clone(),o=a.locale(n);return o.weekday(0)},getWeek:function(n,t){var a=t.clone(),o=a.locale(n);return o.week()},getShortWeekDays:function(n){var t=an()().locale(n);return t.localeData().weekdaysMin()},getShortMonths:function(n){var t=an()().locale(n);return t.localeData().monthsShort()},format:function(n,t,a){var o=t.clone(),l=o.locale(n);return l.format(a)},parse:function(n,t,a){for(var o=[],l=0;l1&&(u=n.addDate(u,-7)),u}function Rn(e,n,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(n){case"year":return t.addYear(e,a*10);case"quarter":case"month":return t.addYear(e,a);default:return t.addMonth(e,a)}}function he(e,n){var t=n.generateConfig,a=n.locale,o=n.format;return typeof o=="function"?o(e):t.locale.format(a.locale,e,o)}function Qt(e,n){var t=n.generateConfig,a=n.locale,o=n.formatList;return!e||typeof o[0]=="function"?null:t.locale.parse(a.locale,e,o)}function it(e){var n=e.cellDate,t=e.mode,a=e.disabledDate,o=e.generateConfig;if(!a)return!1;var l=function(s,h,m){for(var D=h;D<=m;){var P=void 0;switch(s){case"date":{if(P=o.setDate(n,D),!a(P))return!1;break}case"month":{if(P=o.setMonth(n,D),!it({cellDate:P,mode:"month",generateConfig:o,disabledDate:a}))return!1;break}case"year":{if(P=o.setYear(n,D),!it({cellDate:P,mode:"year",generateConfig:o,disabledDate:a}))return!1;break}}D+=1}return!0};switch(t){case"date":case"week":return a(n);case"month":{var u=1,i=o.getDate(o.getEndDate(n));return l("date",u,i)}case"quarter":{var f=Math.floor(o.getMonth(n)/3)*3,d=f+2;return l("month",f,d)}case"year":return l("month",0,11);case"decade":{var C=o.getYear(n),v=Math.floor(C/Be)*Be,c=v+Be-1;return l("year",v,c)}}}function Nr(e){var n=r.useContext(pe),t=n.hideHeader;if(t)return null;var a=e.prefixCls,o=e.generateConfig,l=e.locale,u=e.value,i=e.format,f="".concat(a,"-header");return r.createElement(Cn,{prefixCls:f},u?he(u,{locale:l,format:i,generateConfig:o}):"\xA0")}var Er=Nr,_t=V(56982);function Rr(e){var n=e.prefixCls,t=e.units,a=e.onSelect,o=e.value,l=e.active,u=e.hideDisabledOptions,i="".concat(n,"-cell"),f=r.useContext(pe),d=f.open,C=(0,r.useRef)(null),v=(0,r.useRef)(new Map),c=(0,r.useRef)();return(0,r.useLayoutEffect)(function(){var g=v.current.get(o);g&&d!==!1&&ot(C.current,g.offsetTop,120)},[o]),(0,r.useLayoutEffect)(function(){if(d){var g=v.current.get(o);g&&(c.current=gr(g,function(){ot(C.current,g.offsetTop,0)}))}return function(){var s;(s=c.current)===null||s===void 0||s.call(c)}},[d]),r.createElement("ul",{className:ie()("".concat(n,"-column"),(0,E.Z)({},"".concat(n,"-column-active"),l)),ref:C,style:{position:"relative"}},t.map(function(g){var s;return u&&g.disabled?null:r.createElement("li",{key:g.value,ref:function(m){v.current.set(g.value,m)},className:ie()(i,(s={},(0,E.Z)(s,"".concat(i,"-disabled"),g.disabled),(0,E.Z)(s,"".concat(i,"-selected"),o===g.value),s)),onClick:function(){g.disabled||a(g.value)}},r.createElement("div",{className:"".concat(i,"-inner")},g.label))}))}var Kn=Rr;function Gt(e,n){for(var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",a=String(e);a.length=12,W%=12);var Xe=r.useMemo(function(){if(!d)return[!1,!1];var L=[!0,!0];return Me.forEach(function(le){var _=le.disabled,ue=le.value;_||(ue>=12?L[1]=!1:L[0]=!1)}),L},[d,Me]),Ne=(0,O.Z)(Xe,2),De=Ne[0],ze=Ne[1],Je=r.useMemo(function(){return d?Me.filter(Z?function(L){return L.value>=12}:function(L){return L.value<12}).map(function(L){var le=L.value%12,_=le===0?"12":Gt(le,2);return(0,U.Z)((0,U.Z)({},L),{},{label:_,value:le})}):Me},[d,Z,Me]),We=ct(0,59,g,q&&q($)),Ee=ct(0,59,h,ve&&ve($,G));a.current={onUpDown:function(le){var _=y[o];if(_)for(var ue=_.units.findIndex(function(Ie){return Ie.value===_.value}),ee=_.units.length,ge=1;ge2&&arguments[2]!==void 0?arguments[2]:!1;(Pe===h||Ze)&&(Zn(k),I&&I(k),We&&We(k,A),R&&!En(i,k,ce)&&!(c==null?void 0:c(k))&&R(k))},wn=function(k){return ee.current&&ee.current.onKeyDown?([ae.Z.LEFT,ae.Z.RIGHT,ae.Z.UP,ae.Z.DOWN,ae.Z.PAGE_UP,ae.Z.PAGE_DOWN,ae.Z.ENTER].includes(k.which)&&k.preventDefault(),ee.current.onKeyDown(k)):((0,Sn.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},on=function(k){ee.current&&ee.current.onBlur&&ee.current.onBlur(k)};ze&&le!=="right"&&(ze.current={onKeyDown:wn,onClose:function(){ee.current&&ee.current.onClose&&ee.current.onClose()}}),r.useEffect(function(){f&&!ge.current&&dn(f)},[f]),r.useEffect(function(){ge.current=!1},[]);var M,xe=(0,U.Z)((0,U.Z)({},e),{},{operationRef:ee,prefixCls:a,viewDate:fn,value:ce,onViewDateChange:Se,sourceMode:Le,onPanelChange:Ae,disabledDate:c});switch(delete xe.onChange,delete xe.onSelect,Pe){case"decade":M=r.createElement(br,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}}));break;case"year":M=r.createElement(go,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}}));break;case"month":M=r.createElement(qr,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}}));break;case"quarter":M=r.createElement(uo,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}}));break;case"week":M=r.createElement(zr,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}}));break;case"time":delete xe.showTime,M=r.createElement(qt,(0,b.Z)({},xe,(0,yn.Z)(S)==="object"?S:null,{onSelect:function(k,A){Se(k),oe(k,A)}}));break;default:S?M=r.createElement(Ur,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}})):M=r.createElement(st,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}}))}var ke,Q,je=function(){var k=i.getNow(),A=ir(i.getHour(k),i.getMinute(k),i.getSecond(k),Me?z:1,Xe?q:1,Ne?K:1),Ze=At(i,k,A[0],A[1],A[2]);oe(Ze,"submit")};Ee||(ke=aa(a,Pe,x),Q=ra({prefixCls:a,components:X,needConfirmButton:be,okDisabled:!ce||c&&c(ce),locale:u,showNow:P,onNow:be&&je,onOk:function(){ce&&(oe(ce,"submit",!0),G&&G(ce))}}));var ln;if(p&&Pe==="date"&&h==="date"&&!S){var se=i.getNow(),Pn="".concat(a,"-today-btn"),un=c&&c(se);ln=r.createElement("a",{className:ie()(Pn,un&&"".concat(Pn,"-disabled")),"aria-disabled":un,onClick:function(){un||oe(se,"mouse",!0)}},u.today)}return r.createElement(pe.Provider,{value:(0,U.Z)((0,U.Z)({},De),{},{mode:Pe,hideHeader:"hideHeader"in e?y:De.hideHeader,hidePrevBtn:L&&le==="right",hideNextBtn:L&&le==="left"})},r.createElement("div",{tabIndex:D,className:ie()("".concat(a,"-panel"),o,(n={},(0,E.Z)(n,"".concat(a,"-panel-has-range"),_&&_[0]&&_[1]),(0,E.Z)(n,"".concat(a,"-panel-has-range-hover"),ue&&ue[0]&&ue[1]),(0,E.Z)(n,"".concat(a,"-panel-rtl"),J==="rtl"),n)),style:l,onKeyDown:wn,onBlur:on,onMouseDown:$,ref:Je},M,ke||Q||ln?r.createElement("div",{className:"".concat(a,"-footer")},ke,Q,ln):null))}var oa=mo,Co=V(18481),ho={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Do(e){var n,t=e.prefixCls,a=e.popupElement,o=e.popupStyle,l=e.visible,u=e.dropdownClassName,i=e.dropdownAlign,f=e.transitionName,d=e.getPopupContainer,C=e.children,v=e.range,c=e.popupPlacement,g=e.direction,s="".concat(t,"-dropdown"),h=function(){return c!==void 0?c:g==="rtl"?"bottomRight":"bottomLeft"};return r.createElement(Co.Z,{showAction:[],hideAction:[],popupPlacement:h(),builtinPlacements:ho,prefixCls:s,popupTransitionName:f,popup:a,popupAlign:i,popupVisible:l,popupClassName:ie()(u,(n={},(0,E.Z)(n,"".concat(s,"-range"),v),(0,E.Z)(n,"".concat(s,"-rtl"),g==="rtl"),n)),popupStyle:o,getPopupContainer:d},C)}var la=Do;function dt(e){var n=e.open,t=e.value,a=e.isClickOutside,o=e.triggerOpen,l=e.forwardKeyDown,u=e.onKeyDown,i=e.blurToCancel,f=e.onSubmit,d=e.onCancel,C=e.onFocus,v=e.onBlur,c=(0,r.useState)(!1),g=(0,O.Z)(c,2),s=g[0],h=g[1],m=(0,r.useState)(!1),D=(0,O.Z)(m,2),P=D[0],S=D[1],p=(0,r.useRef)(!1),x=(0,r.useRef)(!1),y=(0,r.useRef)(!1),I={onMouseDown:function(){h(!0),o(!0)},onKeyDown:function(Z){var $=function(){y.current=!0};if(u(Z,$),!y.current){switch(Z.which){case ae.Z.ENTER:{n?f()!==!1&&h(!0):o(!0),Z.preventDefault();return}case ae.Z.TAB:{s&&n&&!Z.shiftKey?(h(!1),Z.preventDefault()):!s&&n&&!l(Z)&&Z.shiftKey&&(h(!0),Z.preventDefault());return}case ae.Z.ESC:{h(!0),d();return}}!n&&![ae.Z.SHIFT].includes(Z.which)?o(!0):s||l(Z)}},onFocus:function(Z){h(!0),S(!0),C&&C(Z)},onBlur:function(Z){if(p.current||!a(document.activeElement)){p.current=!1;return}i?setTimeout(function(){for(var $=document,W=$.activeElement;W&&W.shadowRoot;)W=W.shadowRoot.activeElement;a(W)&&d()},0):n&&(o(!1),x.current&&f()),S(!1),v&&v(Z)}};return(0,r.useEffect)(function(){x.current=!1},[n]),(0,r.useEffect)(function(){x.current=!0},[t]),(0,r.useEffect)(function(){return mr(function(R){var Z=Cr(R);if(n){var $=a(Z);$?(!P||$)&&o(!1):(p.current=!0,requestAnimationFrame(function(){p.current=!1}))}})}),[I,{focused:P,typing:s}]}function vt(e){var n=e.valueTexts,t=e.onTextChange,a=r.useState(""),o=(0,O.Z)(a,2),l=o[0],u=o[1],i=r.useRef([]);i.current=n;function f(C){u(C),t(C)}function d(){u(i.current[0])}return r.useEffect(function(){n.every(function(C){return C!==l})&&d()},[n.join("||")]),[l,f,d]}var wo=V(96774),Po=V.n(wo);function $n(e,n){var t=n.formatList,a=n.generateConfig,o=n.locale;return(0,_t.Z)(function(){if(!e)return[[""],""];for(var l="",u=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(d.current),D){f(m);return}d.current=requestAnimationFrame(function(){f(m)})}var v=$n(i,{formatList:t,generateConfig:a,locale:o}),c=(0,O.Z)(v,2),g=c[1];function s(m){C(m)}function h(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;C(null,m)}return(0,r.useEffect)(function(){h(!0)},[e]),(0,r.useEffect)(function(){return function(){return cancelAnimationFrame(d.current)}},[]),[g,s,h]}function Nl(e){var n=e.picker,t=e.disabledHours,a=e.disabledMinutes,o=e.disabledSeconds;n==="time"&&(t||a||o)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function xo(e){var n,t=e.prefixCls,a=t===void 0?"rc-picker":t,o=e.id,l=e.tabIndex,u=e.style,i=e.className,f=e.dropdownClassName,d=e.dropdownAlign,C=e.popupStyle,v=e.transitionName,c=e.generateConfig,g=e.locale,s=e.inputReadOnly,h=e.allowClear,m=e.autoFocus,D=e.showTime,P=e.picker,S=P===void 0?"date":P,p=e.format,x=e.use12Hours,y=e.value,I=e.defaultValue,R=e.open,Z=e.defaultOpen,$=e.defaultOpenValue,W=e.suffixIcon,G=e.clearIcon,X=e.disabled,J=e.disabledDate,de=e.placeholder,z=e.getPopupContainer,re=e.pickerRef,q=e.panelRender,ve=e.onChange,K=e.onOpenChange,be=e.onFocus,Me=e.onBlur,Xe=e.onMouseDown,Ne=e.onMouseUp,De=e.onMouseEnter,ze=e.onMouseLeave,Je=e.onContextMenu,We=e.onClick,Ee=e.onKeyDown,j=e.onSelect,me=e.direction,L=e.autoComplete,le=L===void 0?"off":L,_=e.inputRender,ue=r.useRef(null),ee=S==="date"&&!!D||S==="time",ge=Xt(Kt(p,S,D,x)),Ve=r.useRef(null),Ie=r.useRef(null),ce=r.useRef(null),Zn=(0,$e.Z)(null,{value:y,defaultValue:I}),sn=(0,O.Z)(Zn,2),Ce=sn[0],fn=sn[1],dn=r.useState(Ce),Se=(0,O.Z)(dn,2),Oe=Se[0],we=Se[1],ye=r.useRef(null),Pe=(0,$e.Z)(!1,{value:R,defaultValue:Z,postState:function(T){return X?!1:T},onChange:function(T){K&&K(T),!T&&ye.current&&ye.current.onClose&&ye.current.onClose()}}),He=(0,O.Z)(Pe,2),Re=He[0],qe=He[1],Le=$n(Oe,{formatList:ge,generateConfig:c,locale:g}),Ke=(0,O.Z)(Le,2),Ae=Ke[0],oe=Ke[1],wn=vt({valueTexts:Ae,onTextChange:function(T){var Fe=Qt(T,{locale:g,formatList:ge,generateConfig:c});Fe&&(!J||!J(Fe))&&we(Fe)}}),on=(0,O.Z)(wn,3),M=on[0],xe=on[1],ke=on[2],Q=function(T){we(T),fn(T),ve&&!En(c,Ce,T)&&ve(T,T?he(T,{generateConfig:c,locale:g,format:ge[0]}):"")},je=function(T){X&&T||qe(T)},ln=function(T){return Re&&ye.current&&ye.current.onKeyDown?ye.current.onKeyDown(T):((0,Sn.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},se=function(){Ne&&Ne.apply(void 0,arguments),ue.current&&(ue.current.focus(),je(!0))},Pn=dt({blurToCancel:ee,open:Re,value:M,triggerOpen:je,forwardKeyDown:ln,isClickOutside:function(T){return!$t([Ve.current,Ie.current,ce.current],T)},onSubmit:function(){return!Oe||J&&J(Oe)?!1:(Q(Oe),je(!1),ke(),!0)},onCancel:function(){je(!1),we(Ce),ke()},onKeyDown:function(T,Fe){Ee==null||Ee(T,Fe)},onFocus:be,onBlur:Me}),un=(0,O.Z)(Pn,2),ne=un[0],k=un[1],A=k.focused,Ze=k.typing;r.useEffect(function(){Re||(we(Ce),!Ae.length||Ae[0]===""?xe(""):oe!==M&&ke())},[Re,Ae]),r.useEffect(function(){Re||ke()},[S]),r.useEffect(function(){we(Ce)},[Ce]),re&&(re.current={focus:function(){ue.current&&ue.current.focus()},blur:function(){ue.current&&ue.current.blur()}});var Qn=gt(M,{formatList:ge,generateConfig:c,locale:g}),te=(0,O.Z)(Qn,3),en=te[0],mt=te[1],pn=te[2],vn=(0,U.Z)((0,U.Z)({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),xn=r.createElement(oa,(0,b.Z)({},vn,{generateConfig:c,className:ie()((0,E.Z)({},"".concat(a,"-panel-focused"),!Ze)),value:Oe,locale:g,tabIndex:-1,onSelect:function(T){j==null||j(T),we(T)},direction:me,onPanelChange:function(T,Fe){var Yn=e.onPanelChange;pn(!0),Yn==null||Yn(T,Fe)}}));q&&(xn=q(xn));var Ct=r.createElement("div",{className:"".concat(a,"-panel-container"),onMouseDown:function(T){T.preventDefault()}},xn),_n;W&&(_n=r.createElement("span",{className:"".concat(a,"-suffix")},W));var Vn;h&&Ce&&!X&&(Vn=r.createElement("span",{onMouseDown:function(T){T.preventDefault(),T.stopPropagation()},onMouseUp:function(T){T.preventDefault(),T.stopPropagation(),Q(null),je(!1)},className:"".concat(a,"-clear"),role:"button"},G||r.createElement("span",{className:"".concat(a,"-clear-btn")})));var Tn=(0,U.Z)((0,U.Z)((0,U.Z)({id:o,tabIndex:l,disabled:X,readOnly:s||typeof ge[0]=="function"||!Ze,value:en||M,onChange:function(T){xe(T.target.value)},autoFocus:m,placeholder:de,ref:ue,title:M},ne),{},{size:Ut(S,ge[0],c)},Jt(e)),{},{autoComplete:le}),Gn=_?_(Tn):r.createElement("input",Tn),ht=function(T,Fe){(Fe==="submit"||Fe!=="key"&&!ee)&&(Q(T),je(!1))},Xn=me==="rtl"?"bottomRight":"bottomLeft";return r.createElement(pe.Provider,{value:{operationRef:ye,hideHeader:S==="time",panelRef:Ve,onSelect:ht,open:Re,defaultOpenValue:$,onDateMouseEnter:mt,onDateMouseLeave:pn}},r.createElement(la,{visible:Re,popupElement:Ct,popupStyle:C,prefixCls:a,dropdownClassName:f,dropdownAlign:d,getPopupContainer:z,transitionName:v,popupPlacement:Xn,direction:me},r.createElement("div",{ref:ce,className:ie()(a,i,(n={},(0,E.Z)(n,"".concat(a,"-disabled"),X),(0,E.Z)(n,"".concat(a,"-focused"),A),(0,E.Z)(n,"".concat(a,"-rtl"),me==="rtl"),n)),style:u,onMouseDown:Xe,onMouseUp:se,onMouseEnter:De,onMouseLeave:ze,onContextMenu:Je,onClick:We},r.createElement("div",{className:ie()("".concat(a,"-input"),(0,E.Z)({},"".concat(a,"-input-placeholder"),!!en)),ref:Ie},Gn,_n,Vn))))}var ko=function(e){(0,Ht.Z)(t,e);var n=(0,Lt.Z)(t);function t(){var a;(0,It.Z)(this,t);for(var o=arguments.length,l=new Array(o),u=0;ug(C);case"month":return c(m)>c(C);case"week":return v(m)>v(C);default:return!Ge(f,m,C)&&f.isAfter(m,C)}return!1},[u,i[1],C,n]),h=r.useCallback(function(m){if(u&&u(m))return!0;if(i[0]&&d)return!Ge(f,m,C)&&f.isAfter(d,m);if(t&&d)switch(a){case"quarter":return g(m)0&&arguments[0]!==void 0?arguments[0]:!1,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=null;B&&bn&&bn[0]&&bn[1]&&s.isAfter(bn[1],bn[0])&&(N=bn);var H=y;if(y&&(0,yn.Z)(y)==="object"&&y.defaultValue){var fe=y.defaultValue;H=(0,U.Z)((0,U.Z)({},y),{},{defaultValue:F(fe,M)||void 0})}var mn=null;return re&&(mn=function(Ue,Qe){return re(Ue,Qe,{range:M?"end":"start"})}),r.createElement(Dn.Provider,{value:{inRange:!0,panelPosition:Y,rangedValue:rl||te,hoverRangedValue:N}},r.createElement(oa,(0,b.Z)({},e,w,{dateRender:mn,showTime:H,mode:vn[M],generateConfig:s,style:void 0,direction:Ce,disabledDate:M===0?Tn:Gn,disabledTime:function(Ue){return z?z(Ue,M===0?"start":"end"):!1},className:ie()((0,E.Z)({},"".concat(l,"-panel-focused"),M===0?!La:!Wa)),value:F(te,M),locale:h,tabIndex:-1,onPanelChange:function(Ue,Qe){M===0&&kt(!0),M===1&&St(!0),Ct(Ye(vn,Qe,M),Ye(te,Ue,M));var tn=Ue;Y==="right"&&vn[M]===Qe&&(tn=Rn(tn,Qe,s,-1)),A(tn,M)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:M===0?F(te,1):F(te,0)})))}var gn=0,Ka=0;M&&He.current&&qe.current&&Pe.current&&(gn=He.current.offsetWidth+qe.current.offsetWidth,Pe.current.offsetWidth&&Ae.current.offsetWidth&&gn>Pe.current.offsetWidth-Ae.current.offsetWidth-(Ce==="rtl"||Ae.current.offsetLeft>gn?0:Ae.current.offsetLeft)&&(Ka=gn));var kl=Ce==="rtl"?{right:gn}:{left:gn};function bl(){var Y,w=aa(l,vn[M],Je),N=ra({prefixCls:l,components:Zn,needConfirmButton:Oe,okDisabled:!F(te,M)||de&&de(te[M]),locale:h,rangeList:xl,onOk:function(){F(te,M)&&(In(te,M),Ie&&Ie(te))}});if(x!=="time"&&!y){var H=k(M),fe=Rn(H,x,s),mn=vn[M],nn=mn===x,Ue=yt(nn?"left":!1,{pickerValue:H,onPickerValueChange:function(Te){A(Te,M)}}),Qe=yt("right",{pickerValue:fe,onPickerValueChange:function(Te){A(Rn(Te,x,s,-1),M)}});Ce==="rtl"?Y=r.createElement(r.Fragment,null,Qe,nn&&Ue):Y=r.createElement(r.Fragment,null,Ue,nn&&Qe)}else Y=yt();var tn=r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(l,"-panels")},Y),(w||N)&&r.createElement("div",{className:"".concat(l,"-footer")},w,N));return q&&(tn=q(tn)),r.createElement("div",{className:"".concat(l,"-panel-container"),style:{marginLeft:Ka},ref:Pe,onMouseDown:function(Te){Te.preventDefault()}},tn)}var Sl=r.createElement("div",{className:ie()("".concat(l,"-range-wrapper"),"".concat(l,"-").concat(x,"-range-wrapper")),style:{minWidth:Qo}},r.createElement("div",{ref:Ae,className:"".concat(l,"-range-arrow"),style:kl}),bl()),Ua;Me&&(Ua=r.createElement("span",{className:"".concat(l,"-suffix")},Me));var $a;be&&(F(se,0)&&!Q[0]||F(se,1)&&!Q[1])&&($a=r.createElement("span",{onMouseDown:function(w){w.preventDefault(),w.stopPropagation()},onMouseUp:function(w){w.preventDefault(),w.stopPropagation();var N=se;Q[0]||(N=Ye(N,null,0)),Q[1]||(N=Ye(N,null,1)),In(N,null),kn(!1,M)},className:"".concat(l,"-clear")},Xe||r.createElement("span",{className:"".concat(l,"-clear-btn")})));var za={size:Ut(x,oe[0],s)},Mt=0,Nt=0;He.current&&Re.current&&qe.current&&(M===0?Nt=He.current.offsetWidth:(Mt=gn,Nt=Re.current.offsetWidth));var yl=Ce==="rtl"?{right:Mt}:{left:Mt},Ml=function(w,N){var H=Ye(te,w,M);N==="submit"||N!=="key"&&!Oe?(In(H,M),M===0?kt():St()):en(H)};return r.createElement(pe.Provider,{value:{operationRef:ke,hideHeader:x==="time",onDateMouseEnter:sl,onDateMouseLeave:fl,hideRanges:!0,onSelect:Ml,open:B}},r.createElement(la,{visible:B,popupElement:Sl,popupStyle:d,prefixCls:l,dropdownClassName:C,dropdownAlign:c,getPopupContainer:g,transitionName:v,range:!0,direction:Ce},r.createElement("div",(0,b.Z)({ref:ye,className:ie()(l,"".concat(l,"-range"),f,(n={},(0,E.Z)(n,"".concat(l,"-disabled"),Q[0]&&Q[1]),(0,E.Z)(n,"".concat(l,"-focused"),M===0?Ha:Ba),(0,E.Z)(n,"".concat(l,"-rtl"),Ce==="rtl"),n)),style:i,onClick:Cl,onMouseEnter:ee,onMouseLeave:ge,onMouseDown:hl,onMouseUp:ue},Jt(e)),r.createElement("div",{className:ie()("".concat(l,"-input"),(t={},(0,E.Z)(t,"".concat(l,"-input-active"),M===0),(0,E.Z)(t,"".concat(l,"-input-placeholder"),!!Va),t)),ref:He},r.createElement("input",(0,b.Z)({id:u,disabled:Q[0],readOnly:De||typeof oe[0]=="function"||!La,value:Va||et,onChange:function(w){Sa(w.target.value)},autoFocus:D,placeholder:F(m,0)||"",ref:Le},vl,za,{autoComplete:Se}))),r.createElement("div",{className:"".concat(l,"-range-separator"),ref:qe},Z),r.createElement("div",{className:ie()("".concat(l,"-input"),(a={},(0,E.Z)(a,"".concat(l,"-input-active"),M===1),(0,E.Z)(a,"".concat(l,"-input-placeholder"),!!Ta),a)),ref:Re},r.createElement("input",(0,b.Z)({disabled:Q[1],readOnly:De||typeof oe[0]=="function"||!Wa,value:Ta||nt,onChange:function(w){Ma(w.target.value)},placeholder:F(m,1)||"",ref:Ke},ml,za,{autoComplete:Se}))),r.createElement("div",{className:"".concat(l,"-active-bar"),style:(0,U.Z)((0,U.Z)({},yl),{},{width:Nt,position:"absolute"})}),Ua,$a)))}var Ro=function(e){(0,Ht.Z)(t,e);var n=(0,Lt.Z)(t);function t(){var a;(0,It.Z)(this,t);for(var o=arguments.length,l=new Array(o),u=0;u*{white-space:unset}.ant-page-header-content{padding-top:12px}.ant-page-header-footer{margin-top:16px}.ant-page-header-footer .ant-tabs>.ant-tabs-nav{margin:0}.ant-page-header-footer .ant-tabs>.ant-tabs-nav:before{border:none}.ant-page-header-footer .ant-tabs .ant-tabs-tab{padding-top:8px;padding-bottom:8px;font-size:16px}.ant-page-header-compact .ant-page-header-heading{flex-wrap:wrap}.ant-page-header-rtl{direction:rtl}.ant-page-header-rtl .ant-page-header-back{float:right;margin-right:0;margin-left:16px}.ant-page-header-rtl .ant-page-header-heading-title{margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading .ant-avatar{margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-sub-title{float:right;margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-tags{float:right}.ant-page-header-rtl .ant-page-header-heading-extra{float:left}.ant-page-header-rtl .ant-page-header-heading-extra>*{margin-right:12px;margin-left:0}.ant-page-header-rtl .ant-page-header-heading-extra>:first-child{margin-right:0}.ant-page-header-rtl .ant-page-header-footer .ant-tabs-bar .ant-tabs-nav{float:right}.ant-breadcrumb{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";color:rgba(0,0,0,.45);font-size:14px}.ant-breadcrumb .anticon{font-size:14px}.ant-breadcrumb ol{display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none}.ant-breadcrumb a{color:rgba(0,0,0,.45);transition:color .3s}.ant-breadcrumb a:hover{color:rgba(0,0,0,.85)}.ant-breadcrumb li:last-child{color:rgba(0,0,0,.85)}.ant-breadcrumb li:last-child a{color:rgba(0,0,0,.85)}li:last-child .ant-breadcrumb-separator{display:none}.ant-breadcrumb-separator{margin:0 8px;color:rgba(0,0,0,.45)}.ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-link>.anticon+span{margin-left:4px}.ant-breadcrumb-overlay-link>.anticon{margin-left:4px}.ant-breadcrumb-rtl{direction:rtl}.ant-breadcrumb-rtl:before{display:table;content:""}.ant-breadcrumb-rtl:after{display:table;clear:both;content:""}.ant-breadcrumb-rtl>span{float:right}.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+span{margin-right:4px;margin-left:0}.ant-breadcrumb-rtl .ant-breadcrumb-overlay-link>.anticon{margin-right:4px;margin-left:0}.ant-pro-page-container-children-content{margin:24px 24px 0;padding:inherit}.ant-pro-page-container{background-color:inherit}.ant-pro-page-container-warp{background-color:#fff}.ant-pro-page-container-warp .ant-tabs-nav{margin:0}.ant-pro-page-container-ghost .ant-pro-page-container-warp{background-color:transparent}.ant-pro-page-container-ghost .ant-pro-page-container-children-content{margin-top:0}.ant-pro-page-container-main .ant-pro-page-container-detail{display:flex}.ant-pro-page-container-main .ant-pro-page-container-row{display:flex;width:100%}.ant-pro-page-container-main .ant-pro-page-container-title-content{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-content,.ant-pro-page-container-main .ant-pro-page-container-title{flex:auto;width:100%}.ant-pro-page-container-main .ant-pro-page-container-extraContent,.ant-pro-page-container-main .ant-pro-page-container-main{flex:0 1 auto}.ant-pro-page-container-main .ant-pro-page-container-main{width:100%}.ant-pro-page-container-main .ant-pro-page-container-title{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-logo{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-extraContent{min-width:242px;margin-left:88px;text-align:right}@media screen and (max-width:1200px){.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:44px}}@media screen and (max-width:992px){.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:20px}}@media screen and (max-width:768px){.ant-pro-page-container-main .ant-pro-page-container-row{display:block}.ant-pro-page-container-main .ant-pro-page-container-action,.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:0;text-align:left}}@media screen and (max-width:576px){.ant-pro-page-container-detail{display:block}.ant-pro-page-container-extraContent{margin-left:0}}.ant-pro-grid-content{width:100%}.ant-pro-grid-content.wide{max-width:1200px;margin:0 auto}.ant-pro-footer-bar{position:fixed;right:0;bottom:0;z-index:99;display:flex;align-items:center;width:100%;padding:0 24px;line-height:44px;background:#fff;border-top:1px solid rgba(0,0,0,.06);box-shadow:0 -6px 16px -8px rgba(0,0,0,.08),0 -9px 28px 0 rgba(0,0,0,.05),0 -12px 48px 16px rgba(0,0,0,.03);transition:width .3s cubic-bezier(.645,.045,.355,1)}.ant-pro-footer-bar-left{flex:1 1}.ant-pro-footer-bar-right>*{margin-right:8px}.ant-pro-footer-bar-right>:last-child{margin:0}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-skeleton{display:table;width:100%}.ant-skeleton-header{display:table-cell;padding-right:16px;vertical-align:top}.ant-skeleton-header .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-content{display:table-cell;width:100%;vertical-align:top}.ant-skeleton-content .ant-skeleton-title{width:100%;height:16px;background:hsla(0,0%,74.5%,.2);border-radius:4px}.ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:24px}.ant-skeleton-content .ant-skeleton-paragraph{padding:0}.ant-skeleton-content .ant-skeleton-paragraph>li{width:100%;height:16px;list-style:none;background:hsla(0,0%,74.5%,.2);border-radius:4px}.ant-skeleton-content .ant-skeleton-paragraph>li:last-child:not(:first-child):not(:nth-child(2)){width:61%}.ant-skeleton-content .ant-skeleton-paragraph>li+li{margin-top:16px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title{margin-top:12px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:28px}.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title{border-radius:100px}.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li:after,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-button{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-button:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-input{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-input:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-image{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-image:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-block{width:100%}.ant-skeleton.ant-skeleton-block .ant-skeleton-button{width:100%}.ant-skeleton.ant-skeleton-block .ant-skeleton-input{width:100%}.ant-skeleton-element{display:inline-block;width:auto}.ant-skeleton-element .ant-skeleton-button{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);border-radius:2px;width:64px;min-width:64px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle{width:32px;min-width:32px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round{border-radius:32px}.ant-skeleton-element .ant-skeleton-button-lg{width:80px;min-width:80px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle{width:40px;min-width:40px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round{border-radius:40px}.ant-skeleton-element .ant-skeleton-button-sm{width:48px;min-width:48px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle{width:24px;min-width:24px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round{border-radius:24px}.ant-skeleton-element .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-input{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:160px;min-width:160px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-input-lg{width:200px;min-width:200px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-input-sm{width:120px;min-width:120px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-image{display:flex;align-items:center;justify-content:center;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:96px;height:96px;line-height:96px}.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-image-path{fill:#bfbfbf}.ant-skeleton-element .ant-skeleton-image-svg{width:48px;height:48px;line-height:48px;max-width:192px;max-height:192px}.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle{border-radius:50%}@keyframes ant-skeleton-loading{0%{transform:translateX(-37.5%)}to{transform:translateX(37.5%)}}.ant-skeleton-rtl{direction:rtl}.ant-skeleton-rtl .ant-skeleton-header{padding-right:0;padding-left:16px}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title{animation-name:ant-skeleton-loading-rtl}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar{animation-name:ant-skeleton-loading-rtl}@keyframes ant-skeleton-loading-rtl{0%{background-position:0 50%}to{background-position:100% 50%}} \ No newline at end of file diff --git a/9370.1d19759f.async.js b/9370.1d19759f.async.js new file mode 100644 index 00000000..eb29d1ed --- /dev/null +++ b/9370.1d19759f.async.js @@ -0,0 +1,6 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9370],{16165:function(Re,ye,d){"use strict";var S=d(28991),T=d(96156),O=d(81253),h=d(67294),G=d(94184),k=d.n(G),Pe=d(63017),Q=d(41755),ie=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],x=h.forwardRef(function(W,ve){var Z=W.className,a=W.component,F=W.viewBox,ce=W.spin,se=W.rotate,ee=W.tabIndex,C=W.onClick,P=W.children,p=(0,O.Z)(W,ie);(0,Q.Kp)(Boolean(a||P),"Should have `component` prop or `children`."),(0,Q.C3)();var N=h.useContext(Pe.Z),X=N.prefixCls,re=X===void 0?"anticon":X,V=k()(re,Z),ue=k()((0,T.Z)({},"".concat(re,"-spin"),!!ce)),Me=se?{msTransform:"rotate(".concat(se,"deg)"),transform:"rotate(".concat(se,"deg)")}:void 0,Oe=(0,S.Z)((0,S.Z)({},Q.vD),{},{className:ue,style:Me,viewBox:F});F||delete Oe.viewBox;var ge=function(){return a?h.createElement(a,(0,S.Z)({},Oe),P):P?((0,Q.Kp)(Boolean(F)||h.Children.count(P)===1&&h.isValidElement(P)&&h.Children.only(P).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),h.createElement("svg",(0,S.Z)((0,S.Z)({},Oe),{},{viewBox:F}),P)):null},Y=ee;return Y===void 0&&C&&(Y=-1),h.createElement("span",(0,S.Z)((0,S.Z)({role:"img"},p),{},{ref:ve,tabIndex:Y,onClick:C,className:V}),ge())});x.displayName="AntdIcon",ye.Z=x},91321:function(Re,ye,d){"use strict";d.d(ye,{Z:function(){return ie}});var S=d(28991),T=d(81253),O=d(67294),h=d(16165),G=["type","children"],k=new Set;function Pe(x){return Boolean(typeof x=="string"&&x.length&&!k.has(x))}function Q(x){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ve=x[W];if(Pe(ve)){var Z=document.createElement("script");Z.setAttribute("src",ve),Z.setAttribute("data-namespace",ve),x.length>W+1&&(Z.onload=function(){Q(x,W+1)},Z.onerror=function(){Q(x,W+1)}),k.add(ve),document.body.appendChild(Z)}}function ie(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},W=x.scriptUrl,ve=x.extraCommonProps,Z=ve===void 0?{}:ve;W&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(W)?Q(W.reverse()):Q([W]));var a=O.forwardRef(function(F,ce){var se=F.type,ee=F.children,C=(0,T.Z)(F,G),P=null;return F.type&&(P=O.createElement("use",{xlinkHref:"#".concat(se)})),ee&&(P=ee),O.createElement(h.Z,(0,S.Z)((0,S.Z)((0,S.Z)({},Z),C),{},{ref:ce}),P)});return a.displayName="Iconfont",a}},79370:function(Re,ye,d){"use strict";d.d(ye,{ZP:function(){return xa}});var S=d(24793),T=d(97183),O=d(96156),h=d(55507),G=d(92137),k=d(81253),Pe=d(84305),Q=d(75901),ie=d(28481),x=d(28991),W=d(22122),ve=d(11965),Z=d(84378),a=d(67294),F=d(29405),ce={moneySymbol:"$",form:{lightFilter:{more:"\u0627\u0644\u0645\u0632\u064A\u062F",clear:"\u0646\u0638\u0641",confirm:"\u062A\u0623\u0643\u064A\u062F",itemUnit:"\u0639\u0646\u0627\u0635\u0631"}},tableForm:{search:"\u0627\u0628\u062D\u062B",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",submit:"\u0627\u0631\u0633\u0627\u0644",collapsed:"\u0645\u064F\u0642\u0644\u0635",expand:"\u0645\u064F\u0648\u0633\u0639",inputPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062F\u062E\u0627\u0644",selectPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062E\u062A\u064A\u0627\u0631"},alert:{clear:"\u0646\u0638\u0641",selected:"\u0645\u062D\u062F\u062F",item:"\u0639\u0646\u0635\u0631"},pagination:{total:{range:" ",total:"\u0645\u0646",item:"\u0639\u0646\u0627\u0635\u0631"}},tableToolBar:{leftPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noPin:"\u0627\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u062B\u0628\u064A\u062A",leftFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noFixedTitle:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0644\u0635\u0627\u0642",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",columnDisplay:"\u0627\u0644\u0623\u0639\u0645\u062F\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629",columnSetting:"\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",fullScreen:"\u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",exitFullScreen:"\u0627\u0644\u062E\u0631\u0648\u062C \u0645\u0646 \u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",reload:"\u062A\u062D\u062F\u064A\u062B",density:"\u0627\u0644\u0643\u062B\u0627\u0641\u0629",densityDefault:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",densityLarger:"\u0623\u0643\u0628\u0631",densityMiddle:"\u0648\u0633\u0637",densitySmall:"\u0645\u062F\u0645\u062C"},stepsForm:{next:"\u0627\u0644\u062A\u0627\u0644\u064A",prev:"\u0627\u0644\u0633\u0627\u0628\u0642"},loginForm:{submitText:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644"}},se={moneySymbol:"\u20AC",tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col\xB7lapsar",inputPlaceholder:"Introdu\xEFu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitj\xE0",densitySmall:"Compacte"},stepsForm:{next:"Seg\xFCent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"}},ee={moneySymbol:"\u20AC",form:{lightFilter:{more:"Mehr",clear:"Zur\xFCcksetzen",confirm:"Best\xE4tigen",itemUnit:"Eintr\xE4ge"}},tableForm:{search:"Suchen",reset:"Zur\xFCcksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte ausw\xE4hlen"},alert:{clear:"Zur\xFCcksetzen",selected:"Ausgew\xE4hlt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Eintr\xE4gen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zur\xFCcksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Gr\xF6\xDFer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Anmelden"}},C={moneySymbol:"\xA3",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},P={moneySymbol:"$",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},p={moneySymbol:"\u20AC",form:{lightFilter:{more:"M\xE1s",clear:"Limpiar",confirm:"Confirmar",itemsUnits:"Objetos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"art\xEDculos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3n",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar"}},switch:{open:"abrir",close:"cerrar"}},N={moneySymbol:"\u062A\u0648\u0645\u0627\u0646",form:{lightFilter:{more:"\u0628\u06CC\u0634\u062A\u0631",clear:"\u067E\u0627\u06A9 \u06A9\u0631\u062F\u0646",confirm:"\u062A\u0627\u06CC\u06CC\u062F",itemUnit:"\u0645\u0648\u0631\u062F"}},tableForm:{search:"\u062C\u0633\u062A\u062C\u0648",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",submit:"\u062A\u0627\u06CC\u06CC\u062F",collapsed:"\u0646\u0645\u0627\u06CC\u0634 \u0628\u06CC\u0634\u062A\u0631",expand:"\u0646\u0645\u0627\u06CC\u0634 \u06A9\u0645\u062A\u0631",inputPlaceholder:"\u067E\u06CC\u062F\u0627 \u06A9\u0646\u06CC\u062F",selectPlaceholder:"\u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F"},alert:{clear:"\u067E\u0627\u06A9 \u0633\u0627\u0632\u06CC",selected:"\u0627\u0646\u062A\u062E\u0627\u0628",item:"\u0645\u0648\u0631\u062F"},pagination:{total:{range:" ",total:"\u0627\u0632",item:"\u0645\u0648\u0631\u062F"}},tableToolBar:{leftPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0686\u067E",rightPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0631\u0627\u0633\u062A",noPin:"\u0633\u0646\u062C\u0627\u0642 \u0646\u0634\u062F\u0647",leftFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0686\u067E",rightFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0631\u0627\u0633\u062A",noFixedTitle:"\u0634\u0646\u0627\u0648\u0631",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",columnDisplay:"\u0646\u0645\u0627\u06CC\u0634 \u0647\u0645\u0647",columnSetting:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A",fullScreen:"\u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",exitFullScreen:"\u062E\u0631\u0648\u062C \u0627\u0632 \u062D\u0627\u0644\u062A \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",reload:"\u062A\u0627\u0632\u0647 \u0633\u0627\u0632\u06CC",density:"\u062A\u0631\u0627\u06A9\u0645",densityDefault:"\u067E\u06CC\u0634 \u0641\u0631\u0636",densityLarger:"\u0628\u0632\u0631\u06AF",densityMiddle:"\u0645\u062A\u0648\u0633\u0637",densitySmall:"\u06A9\u0648\u0686\u06A9"},stepsForm:{next:"\u0628\u0639\u062F\u06CC",prev:"\u0642\u0628\u0644\u06CC",submit:"\u0627\u062A\u0645\u0627\u0645"},loginForm:{submitText:"\u0648\u0631\u0648\u062F"},editableTable:{action:{save:"\u0630\u062E\u06CC\u0631\u0647",cancel:"\u0644\u063A\u0648",delete:"\u062D\u0630\u0641"}}},X={moneySymbol:"\u20AC",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"R\xE9initialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"R\xE9duire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"S\xE9lectionner une valeur"},alert:{clear:"R\xE9initialiser",selected:"S\xE9lectionn\xE9",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"\xE9l\xE9ments"}},tableToolBar:{leftPin:"\xC9pingler \xE0 gauche",rightPin:"\xC9pingler \xE0 gauche",noPin:"Sans \xE9pingle",leftFixedTitle:"Fixer \xE0 gauche",rightFixedTitle:"Fixer \xE0 droite",noFixedTitle:"Non fix\xE9",reset:"R\xE9initialiser",columnDisplay:"Affichage colonne",columnSetting:"R\xE9glages",fullScreen:"Plein \xE9cran",exitFullScreen:"Quitter Plein \xE9cran",reload:"Rafraichir",density:"Densit\xE9",densityDefault:"Par d\xE9faut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Pr\xE9c\xE9dente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer"}}},re={moneySymbol:"kn",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretra\u017Ei",reset:"Poni\u0161ti",submit:"Potvrdi",collapsed:"Ra\u0161iri",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"O\u010Disti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prika\u010Di lijevo",rightPin:"Prika\u010Di desno",noPin:"Bez prika\u010Denja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Iza\u0111i iz punog zaslona",reload:"Ponovno u\u010Ditaj",density:"Veli\u010Dina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljede\u0107i",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obri\u0161i"}},switch:{open:"otvori",close:"zatvori"}},V={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"}},ue={moneySymbol:"\u20AC",tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalit\xE0 schermo intero",exitFullScreen:"Esci da modalit\xE0 schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},loginForm:{submitText:"Accedi"}},Me={moneySymbol:"\xA5",tableForm:{search:"\u691C\u7D22",reset:"\u30EA\u30BB\u30C3\u30C8",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u53CE\u7D0D",inputPlaceholder:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",selectPlaceholder:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},alert:{clear:"\u30AF\u30EA\u30A2",selected:"\u9078\u629E\u3057\u305F",item:"\u9805\u76EE"},pagination:{total:{range:"\u8A18\u4E8B",total:"/\u5408\u8A08",item:" "}},tableToolBar:{leftPin:"\u5DE6\u306B\u56FA\u5B9A",rightPin:"\u53F3\u306B\u56FA\u5B9A",noPin:"\u30AD\u30E3\u30F3\u30BB\u30EB",leftFixedTitle:"\u5DE6\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",rightFixedTitle:"\u53F3\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",noFixedTitle:"\u56FA\u5B9A\u3055\u308C\u3066\u306A\u3044\u9805\u76EE",reset:"\u30EA\u30BB\u30C3\u30C8",columnDisplay:"\u8868\u793A\u5217",columnSetting:"\u5217\u8868\u793A\u8A2D\u5B9A",fullScreen:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",exitFullScreen:"\u7D42\u4E86",reload:"\u66F4\u65B0",density:"\u884C\u9AD8",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D",densitySmall:"\u5C0F"},stepsForm:{next:"\u6B21\u306E\u30B9\u30C6\u30C3\u30D7",pre:"\u524D\u3078",submit:"\u9001\u4FE1"},loginForm:{submitText:"\u30ED\u30B0\u30A4\u30F3"}},Oe={moneySymbol:"\u20A9",form:{lightFilter:{more:"\uB354\uBCF4\uAE30",clear:"\uCDE8\uC18C",confirm:"\uD655\uC778",itemUnit:"\uAC74\uC218"}},tableForm:{search:"\uC870\uD68C",reset:"\uCD08\uAE30\uD654",submit:"\uC81C\uCD9C",collapsed:"\uD655\uC7A5",expand:"\uB2EB\uAE30",inputPlaceholder:"\uC785\uB825\uD574 \uC8FC\uC138\uC694",selectPlaceholder:"\uC120\uD0DD\uD574 \uC8FC\uC138\uC694"},alert:{clear:"\uCDE8\uC18C",selected:"\uC120\uD0DD",item:"\uAC74"},pagination:{total:{range:" ",total:"/ \uCD1D",item:"\uAC74"}},tableToolBar:{leftPin:"\uC67C\uCABD\uC73C\uB85C \uD540",rightPin:"\uC624\uB978\uCABD\uC73C\uB85C \uD540",noPin:"\uD540 \uC81C\uAC70",leftFixedTitle:"\uC67C\uCABD\uC73C\uB85C \uACE0\uC815",rightFixedTitle:"\uC624\uB978\uCABD\uC73C\uB85C \uACE0\uC815",noFixedTitle:"\uBE44\uACE0\uC815",reset:"\uCD08\uAE30\uD654",columnDisplay:"\uCEEC\uB7FC \uD45C\uC2DC",columnSetting:"\uC124\uC815",fullScreen:"\uC804\uCCB4 \uD654\uBA74",exitFullScreen:"\uC804\uCCB4 \uD654\uBA74 \uCDE8\uC18C",reload:"\uB2E4\uC2DC \uC77D\uAE30",density:"\uC5EC\uBC31",densityDefault:"\uAE30\uBCF8",densityLarger:"\uB9CE\uC740 \uC5EC\uBC31",densityMiddle:"\uC911\uAC04 \uC5EC\uBC31",densitySmall:"\uC881\uC740 \uC5EC\uBC31"},stepsForm:{next:"\uB2E4\uC74C",prev:"\uC774\uC804",submit:"\uC885\uB8CC"},loginForm:{submitText:"\uB85C\uADF8\uC778"},editableTable:{action:{save:"\uC800\uC7A5",cancel:"\uCDE8\uC18C",delete:"\uC0AD\uC81C"}}},ge={moneySymbol:"\u20AE",form:{lightFilter:{more:"\u0418\u043B\u04AF\u04AF",clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",confirm:"\u0411\u0430\u0442\u0430\u043B\u0433\u0430\u0430\u0436\u0443\u0443\u043B\u0430\u0445",itemUnit:"\u041D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableForm:{search:"\u0425\u0430\u0439\u0445",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",submit:"\u0418\u043B\u0433\u044D\u044D\u0445",collapsed:"\u04E8\u0440\u0433\u04E9\u0442\u0433\u04E9\u0445",expand:"\u0425\u0443\u0440\u0430\u0430\u0445",inputPlaceholder:"\u0423\u0442\u0433\u0430 \u043E\u0440\u0443\u0443\u043B\u043D\u0430 \u0443\u0443",selectPlaceholder:"\u0423\u0442\u0433\u0430 \u0441\u043E\u043D\u0433\u043E\u043D\u043E \u0443\u0443"},alert:{clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",selected:"\u0421\u043E\u043D\u0433\u043E\u0433\u0434\u0441\u043E\u043D",item:"\u041D\u044D\u0433\u0436"},pagination:{total:{range:" ",total:"of",item:"\u043D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableToolBar:{leftPin:"\u0417\u04AF\u04AF\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",rightPin:"\u0411\u0430\u0440\u0443\u0443\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",noPin:"\u0411\u044D\u0445\u043B\u044D\u0445\u0433\u04AF\u0439",leftFixedTitle:"\u0417\u04AF\u04AF\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",rightFixedTitle:"\u0411\u0430\u0440\u0443\u0443\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",noFixedTitle:"\u0417\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445\u0433\u04AF\u0439",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",columnDisplay:"\u0411\u0430\u0433\u0430\u043D\u0430\u0430\u0440 \u0445\u0430\u0440\u0443\u0443\u043B\u0430\u0445",columnSetting:"\u0422\u043E\u0445\u0438\u0445\u0440\u0433\u043E\u043E",fullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446\u044D\u044D\u0440",exitFullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446 \u0446\u0443\u0446\u043B\u0430\u0445",reload:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",density:"\u0425\u044D\u043C\u0436\u044D\u044D",densityDefault:"\u0425\u044D\u0432\u0438\u0439\u043D",densityLarger:"\u0422\u043E\u043C",densityMiddle:"\u0414\u0443\u043D\u0434",densitySmall:"\u0416\u0438\u0436\u0438\u0433"},stepsForm:{next:"\u0414\u0430\u0440\u0430\u0430\u0445",prev:"\u04E8\u043C\u043D\u04E9\u0445",submit:"\u0414\u0443\u0443\u0441\u0433\u0430\u0445"},loginForm:{submitText:"\u041D\u044D\u0432\u0442\u0440\u044D\u0445"},editableTable:{action:{save:"\u0425\u0430\u0434\u0433\u0430\u043B\u0430\u0445",cancel:"\u0426\u0443\u0446\u043B\u0430\u0445",delete:"\u0423\u0441\u0442\u0433\u0430\u0445"}},switch:{open:"\u041D\u044D\u044D\u0445",close:"\u0425\u0430\u0430\u0445"}},Y={moneySymbol:"RM",tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},loginForm:{submitText:"Log Masuk"}},de={moneySymbol:"z\u0142",form:{lightFilter:{more:"Wi\u0119cej",clear:"Wyczy\u015B\u0107",confirm:"Potwierd\u017A",itemUnit:"Ilo\u015B\u0107"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierd\u017A",collapsed:"Poka\u017C wiecej",expand:"Poka\u017C mniej",inputPlaceholder:"Prosz\u0119 poda\u0107",selectPlaceholder:"Prosz\u0119 wybra\u0107"},alert:{clear:"Wyczy\u015B\u0107",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpis\xF3w"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypi\u0119te do lewej",rightFixedTitle:"Przypi\u0119te do prawej",noFixedTitle:"Nieprzypi\u0119te",reset:"Reset",columnDisplay:"Wy\u015Bwietlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pe\u0142en ekran",exitFullScreen:"Zamknij pe\u0142en ekran",reload:"Od\u015Bwie\u017C",density:"Odst\u0119p",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Zaloguj si\u0119"}},_={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"items"}},tableToolBar:{leftPin:"Fixar \xE0 esquerda",rightPin:"Fixar \xE0 direita",noPin:"Desfixado",leftFixedTitle:"Fixado \xE0 esquerda",rightFixedTitle:"Fixado \xE0 direita",noFixedTitle:"N\xE3o fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configura\xE7\xF5es",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padr\xE3o",densityLarger:"Largo",densityMiddle:"M\xE9dio",densitySmall:"Compacto"},stepsForm:{next:"Pr\xF3ximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar"}}},R={moneySymbol:"\u20BD",form:{lightFilter:{more:"\u0415\u0449\u0435",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",confirm:"\u041E\u041A",itemUnit:"\u041F\u043E\u0437\u0438\u0446\u0438\u0438"}},tableForm:{search:"\u041D\u0430\u0439\u0442\u0438",reset:"\u0421\u0431\u0440\u043E\u0441",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",collapsed:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"},alert:{clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",selected:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},pagination:{total:{range:" ",total:"\u0438\u0437",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043B\u0435\u0432\u0430",rightPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043F\u0440\u0430\u0432\u0430",noPin:"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C",leftFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043B\u0435\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043F\u0440\u0430\u0432\u0430",noFixedTitle:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E",reset:"\u0421\u0431\u0440\u043E\u0441",columnDisplay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u043E\u043B\u0431\u0446\u0430",columnSetting:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",fullScreen:"\u041F\u043E\u043B\u043D\u044B\u0439 \u044D\u043A\u0440\u0430\u043D",exitFullScreen:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",reload:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",density:"\u0420\u0430\u0437\u043C\u0435\u0440",densityDefault:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",densityLarger:"\u0411\u043E\u043B\u044C\u0448\u043E\u0439",densityMiddle:"\u0421\u0440\u0435\u0434\u043D\u0438\u0439",densitySmall:"\u0421\u0436\u0430\u0442\u044B\u0439"},stepsForm:{next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C"},loginForm:{submitText:"\u0412\u0445\u043E\u0434"},editableTable:{action:{save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"}}},q={moneySymbol:"RSD",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Prona\u0111i",reset:"Resetuj",submit:"Po\u0161alji",collapsed:"Pro\u0161iri",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"O\u010Disti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zaka\u010Di levo",rightPin:"Zaka\u010Di desno",noPin:"Nije zaka\u010Deno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Pode\u0161avanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osve\u017Ei",density:"Veli\u010Dina",densityDefault:"Podrazumevana",densityLarger:"Ve\u0107a",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sa\u010Duvaj",cancel:"Poni\u0161ti",delete:"Obri\u0161i"}}},fe={moneySymbol:"\u20BA",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"\xD6\u011Feler"}},tableForm:{search:"Filtrele",reset:"S\u0131f\u0131rla",submit:"G\xF6nder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer girin",selectPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer se\xE7in"},alert:{clear:"Temizle",selected:"Se\xE7ili",item:"\xD6\u011Fe"},pagination:{total:{range:" ",total:"Toplam",item:"\xD6\u011Fe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sa\u011Fa sabitle",noPin:"Sabitlemeyi kald\u0131r",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sa\u011Fa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"S\u0131f\u0131rla",columnDisplay:"Kolon G\xF6r\xFCn\xFCm\xFC",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan \xC7\u0131k",reload:"Yenile",density:"Kal\u0131nl\u0131k",densityDefault:"Varsay\u0131lan",densityLarger:"B\xFCy\xFCk",densityMiddle:"Orta",densitySmall:"K\xFC\xE7\xFCk"},stepsForm:{next:"S\u0131radaki",prev:"\xD6nceki",submit:"G\xF6nder"},loginForm:{submitText:"Giri\u015F Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazge\xE7",delete:"Sil"}}},le={moneySymbol:"\u20AB",tableForm:{search:"T\xECm ki\u1EBFm",reset:"L\xE0m l\u1EA1i",submit:"G\u1EEDi \u0111i",collapsed:"M\u1EDF r\u1ED9ng",expand:"Thu g\u1ECDn",inputPlaceholder:"nh\u1EADp d\u1EEF li\u1EC7u",selectPlaceholder:"Vui l\xF2ng ch\u1ECDn"},alert:{clear:"X\xF3a",selected:"\u0111\xE3 ch\u1ECDn",item:"m\u1EE5c"},pagination:{total:{range:" ",total:"tr\xEAn",item:"m\u1EB7t h\xE0ng"}},tableToolBar:{leftPin:"Ghim tr\xE1i",rightPin:"Ghim ph\u1EA3i",noPin:"B\u1ECF ghim",leftFixedTitle:"C\u1ED1 \u0111\u1ECBnh tr\xE1i",rightFixedTitle:"C\u1ED1 \u0111\u1ECBnh ph\u1EA3i",noFixedTitle:"Ch\u01B0a c\u1ED1 \u0111\u1ECBnh",reset:"L\xE0m l\u1EA1i",columnDisplay:"C\u1ED9t hi\u1EC3n th\u1ECB",columnSetting:"C\u1EA5u h\xECnh",fullScreen:"Ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",exitFullScreen:"Tho\xE1t ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",reload:"L\xE0m m\u1EDBi",density:"M\u1EADt \u0111\u1ED9 hi\u1EC3n th\u1ECB",densityDefault:"M\u1EB7c \u0111\u1ECBnh",densityLarger:"M\u1EB7c \u0111\u1ECBnh",densityMiddle:"Trung b\xECnh",densitySmall:"Ch\u1EADt"},loginForm:{submitText:"\u0110\u0103ng nh\u1EADp"}},he={moneySymbol:"\uFFE5",form:{lightFilter:{more:"\u66F4\u591A\u7B5B\u9009",clear:"\u6E05\u9664",confirm:"\u786E\u8BA4",itemUnit:"\u9879"}},tableForm:{search:"\u67E5\u8BE2",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u5F00",expand:"\u6536\u8D77",inputPlaceholder:"\u8BF7\u8F93\u5165",selectPlaceholder:"\u8BF7\u9009\u62E9"},alert:{clear:"\u53D6\u6D88\u9009\u62E9",selected:"\u5DF2\u9009\u62E9",item:"\u9879"},pagination:{total:{range:"\u7B2C",total:"\u6761/\u603B\u5171",item:"\u6761"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5728\u5217\u9996",rightPin:"\u56FA\u5B9A\u5728\u5217\u5C3E",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u4FA7",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u4FA7",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8BBE\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7D27\u51D1"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664"}},switch:{open:"\u6253\u5F00",close:"\u5173\u95ED"},loginForm:{submitText:"\u767B\u5F55"}},Ce={moneySymbol:"NT$",form:{lightFilter:{more:"\u66F4\u591A\u7BE9\u9078",clear:"\u6E05\u9664",confirm:"\u78BA\u8A8D",itemUnit:"\u9805"}},tableForm:{search:"\u67E5\u8A62",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u6536\u8D77",inputPlaceholder:"\u8ACB\u8F38\u5165",selectPlaceholder:"\u8ACB\u9078\u64C7"},alert:{clear:"\u53D6\u6D88\u9078\u64C7",selected:"\u5DF2\u9078\u64C7",item:"\u9805"},pagination:{total:{range:"\u7B2C",total:"\u689D/\u7E3D\u5171",item:"\u689D"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5230\u5DE6\u908A",rightPin:"\u56FA\u5B9A\u5230\u53F3\u908A",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u5074",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u5074",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8A2D\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8A8D",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7DCA\u6E4A"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664"}},switch:{open:"\u6253\u958B",close:"\u95DC\u9589"},loginForm:{submitText:"\u767B\u5165"}};function oe(g,e,l){var i=e.replace(/\[(\d+)\]/g,".$1").split("."),s=g,c=l,u=(0,ve.Z)(i),y;try{for(u.s();!(y=u.n()).done;){var b=y.value;if(c=Object(s)[b],s=Object(s)[b],c===void 0)return l}}catch(M){u.e(M)}finally{u.f()}return c}var K=function(e,l){return{getMessage:function(s,c){return oe(l,s,c)||c},locale:e}},pe=K("mn_MN",ge),Se=K("ar_EG",ce),xe=K("zh_CN",he),Ge=K("en_US",P),wt=K("en_GB",C),Zt=K("vi_VN",le),Ae=K("it_IT",ue),Ve=K("ja_JP",Me),tt=K("es_ES",p),nt=K("ca_ES",se),Qe=K("ru_RU",R),mt=K("sr_RS",q),Dt=K("ms_MY",Y),vt=K("zh_TW",Ce),pt=K("fr_FR",X),Nt=K("pt_BR",_),rt=K("ko_KR",Oe),at=K("id_ID",V),gt=K("de_DE",ee),rn=K("fa_IR",N),ct=K("tr_TR",fe),dt=K("pl_PL",de),Vt=K("hr_",re),ht={"mn-MN":pe,"ar-EG":Se,"zh-CN":xe,"en-US":Ge,"en-GB":wt,"vi-VN":Zt,"it-IT":Ae,"ja-JP":Ve,"es-ES":tt,"ca-ES":nt,"ru-RU":Qe,"sr-RS":mt,"ms-MY":Dt,"zh-TW":vt,"fr-FR":pt,"pt-BR":Nt,"ko-KR":rt,"id-ID":at,"de-DE":gt,"fa-IR":rn,"tr-TR":ct,"pl-PL":dt,"hr-HR":Vt},Ot=Object.keys(ht),It=a.createContext({intl:(0,x.Z)((0,x.Z)({},xe),{},{locale:"default"}),valueTypeMap:{}}),an=It.Consumer,Lt=It.Provider,Yt=function(e){if(!e)return"zh-CN";var l=e.toLocaleLowerCase();return Ot.find(function(i){var s=i.toLocaleLowerCase();return s.includes(l)})},ln=function(){var e=(0,F.kY)(),l=e.cache;return(0,a.useEffect)(function(){return function(){l.clear()}},[]),null},At=function(e){var l=e.children,i=e.autoClearCache,s=i===void 0?!1:i,c=(0,a.useContext)(Q.ZP.ConfigContext),u=c.locale,y=u===void 0?Q.ZP:a.Fragment,b=a.createElement(an,null,function(M){var I,B=u==null?void 0:u.locale,D=Yt(B),H=B&&((I=M.intl)===null||I===void 0?void 0:I.locale)==="default"?ht[D]:M.intl||ht[D],U=u===void 0?{locale:Z.Z}:{};return a.createElement(y,U,a.createElement(Lt,{value:(0,x.Z)((0,x.Z)({},M),{},{intl:H||xe})},a.createElement(a.Fragment,null,s&&a.createElement(ln,null),l)))});return s?a.createElement(F.J$,{value:{provider:function(){return new Map}}},b):b};function be(){var g=useContext(_ConfigProvider.ConfigContext),e=g.locale,l=useContext(It),i=l.intl;return i&&i.locale!=="default"?i:(e==null?void 0:e.locale)?ht[Yt(e.locale)]:xe}var yt=null,Ne=null,it=d(76632);function Bt(g,e){var l=(0,a.useRef)(!1),i=(0,a.useRef)(void 0);(0,a.useEffect)(function(){return l.current=!0,function(){clearTimeout(i.current),l.current=!1}},[]);var s=(0,it.Z)(g,e),c=(0,ie.Z)(s,2),u=c[0],y=c[1],b=function(I){clearTimeout(i.current),i.current=window.setTimeout(function(){l.current&&y(I)},16)};return a.version.startsWith("18")?[u,y]:[u,b]}var xt=Bt,_t=d(34155),Qt=typeof _t!="undefined"&&_t.versions!=null&&_t.versions.node!=null,on=function(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.matchMedia!="undefined"&&!Qt},_e=on;function zt(g,e){var l=typeof g.pageName=="string"?g.title:e;(0,a.useEffect)(function(){_e()&&l&&(document.title=l)},[g.title,l])}var sn=zt,jt=d(27754),un=d(94184),we=d.n(un),Jt=d(97435),cn=d(38069),dn=d(80430),fn=d.n(dn),mn=d(7700),bt=d(83832),Tn=d(57338),vn=d(25084),Xt=d(57186);function pn(){var g=(0,a.useState)([]),e=(0,ie.Z)(g,2),l=e[0],i=e[1];return{flatMenuKeys:l,setFlatMenuKeys:i}}var gn=(0,Xt.f)(pn),Ct=gn,t=d(30887),r=d(28682),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},o=n,f=d(27029),v=function(e,l){return a.createElement(f.Z,(0,x.Z)((0,x.Z)({},e),{},{ref:l,icon:o}))};v.displayName="MenuUnfoldOutlined";var m=a.forwardRef(v),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},w=E,L=function(e,l){return a.createElement(f.Z,(0,x.Z)((0,x.Z)({},e),{},{ref:l,icon:w}))};L.displayName="MenuFoldOutlined";var z=a.forwardRef(L),A=d(71748),j=d(33860),te=d(85061),Ee=d(5991),Ze=d(6610),J=d(91321),De=d(16165),Te=function(e){if(!e||!e.startsWith("http"))return!1;try{var l=new URL(e);return!!l}catch(i){return!1}},ze=Te;function je(g){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(g)}var Be=je,Ie={navTheme:"dark",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,headerHeight:48,iconfontUrl:"",primaryColor:"#1890ff",splitMenus:!1},$e=Ie,kt=function g(e){return(e||[]).reduce(function(l,i){if(i.key&&l.push(i.key),i.routes){var s=l.concat(g(i.routes)||[]);return s}return l},[])},qt={daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function Fn(g){return g&&qt[g]?qt[g]:g}function Wt(g){return g.map(function(e){var l=e.children||e.routes,i=(0,x.Z)({},e);if(!i.name||i.hideInMenu)return null;if(i&&(i==null?void 0:i.routes)){if(!i.hideChildrenInMenu&&l.some(function(s){return s&&s.name&&!s.hideInMenu}))return(0,x.Z)((0,x.Z)({},e),{},{children:Wt(l),routes:Wt(l)});delete i.routes,delete i.children}return i}).filter(function(e){return e})}var Ba=d(43361),Rn=(0,J.Z)({scriptUrl:$e.iconfontUrl}),wn=function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-";if(typeof e=="string"&&e!==""){if(ze(e)||Be(e))return a.createElement(De.Z,{component:function(){return a.createElement("img",{src:e,alt:"icon",className:"ant-pro-sider-menu-icon"})}});if(e.startsWith(l))return a.createElement(Rn,{type:e})}return e},ar=(0,Ee.Z)(function g(e){var l=this;(0,Ze.Z)(this,g),this.props=void 0,this.getNavMenuItems=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;return i.map(function(c){return l.getSubMenuOrItem(c,s)}).filter(function(c){return c})},this.getSubMenuOrItem=function(i,s){var c=(i==null?void 0:i.children)||(i==null?void 0:i.routes);if(Array.isArray(c)&&c.length>0){var u=l.getIntlName(i),y=l.props,b=y.subMenuItemRender,M=y.prefixCls,I=y.menu,B=y.iconPrefixes,D=i.icon?a.createElement("span",{className:"".concat(M,"-menu-item"),title:u},!s&&wn(i.icon,B),a.createElement("span",{className:"".concat(M,"-menu-item-title")},u)):a.createElement("span",{className:"".concat(M,"-menu-item"),title:u},u),H=b?b((0,x.Z)((0,x.Z)({},i),{},{isUrl:!1}),D,l.props):D;return{type:(I==null?void 0:I.type)==="group"?"group":void 0,label:H,children:l.getNavMenuItems(c,!0),onTitleClick:i.onTitleClick,key:i.key||i.path}}return{label:l.getMenuItemPath(i,s),title:l.getIntlName(i),key:i.key||i.path,disabled:i.disabled,onClick:function(ae){var $;ze(i==null?void 0:i.path)&&window.open(i.path),($=i.onTitleClick)===null||$===void 0||$.call(i,ae)}}},this.getIntlName=function(i){var s=i.name,c=i.locale,u=l.props,y=u.menu,b=u.formatMessage;return c&&(y==null?void 0:y.locale)!==!1?b==null?void 0:b({id:c,defaultMessage:s}):s},this.getMenuItemPath=function(i,s){var c=l.conversionPath(i.path||"/"),u=l.props,y=u.location,b=y===void 0?{pathname:"/"}:y,M=u.isMobile,I=u.onCollapse,B=u.menuItemRender,D=u.iconPrefixes,H=l.getIntlName(i),U=l.props.prefixCls,ae=s?null:wn(i.icon,D),$=ze(c),Fe=a.createElement("span",{className:we()("".concat(U,"-menu-item"),(0,O.Z)({},"".concat(U,"-menu-item-link"),$))},ae,a.createElement("span",{className:"".concat(U,"-menu-item-title")},H));if(B){var ne=(0,x.Z)((0,x.Z)({},i),{},{isUrl:$,itemPath:c,isMobile:M,replace:c===b.pathname,onClick:function(){$&&window.open(c),I&&I(!0)},children:void 0});return B(ne,Fe,l.props)}return Fe},this.conversionPath=function(i){return i&&i.indexOf("http")===0?i:"/".concat(i||"").replace(/\/+/g,"/")},this.props=e}),ir=function(e,l){var i=l.layout,s=l.collapsed,c={};return e&&!s&&["side","mix"].includes(i||"mix")&&(c={openKeys:e}),c},Zn=function(e){var l=e.theme,i=e.mode,s=e.className,c=e.handleOpenChange,u=e.style,y=e.menuData,b=e.menu,M=e.matchMenuKeys,I=e.iconfontUrl,B=e.collapsed,D=e.selectedKeys,H=e.onSelect,U=e.openKeys,ae=(0,a.useRef)([]),$=Ct.useContainer(),Fe=$.flatMenuKeys,ne=xt(b==null?void 0:b.defaultOpenAll),Ke=(0,ie.Z)(ne,2),ke=Ke[0],Ye=Ke[1],Le=xt(function(){return(b==null?void 0:b.defaultOpenAll)?kt(y)||[]:U===!1?!1:[]},{value:U===!1?void 0:U,onChange:c}),lt=(0,ie.Z)(Le,2),He=lt[0],me=lt[1],ot=xt([],{value:D,onChange:H?function(ft){H&&ft&&H(ft)}:void 0}),Je=(0,ie.Z)(ot,2),Xe=Je[0],qe=Je[1];(0,a.useEffect)(function(){(b==null?void 0:b.defaultOpenAll)||U===!1||Fe.length||M&&(me(M),qe(M))},[M.join("-")]),(0,a.useEffect)(function(){I&&(Rn=(0,J.Z)({scriptUrl:I}))},[I]),(0,a.useEffect)(function(){if(M.join("-")!==(Xe||[]).join("-")&&qe(M),!ke&&U!==!1&&M.join("-")!==(He||[]).join("-")){var ft=M;(b==null?void 0:b.autoClose)===!1&&(ft=Array.from(new Set([].concat((0,te.Z)(M),(0,te.Z)(He||[]))))),me(ft)}else(b==null?void 0:b.ignoreFlatMenu)&&ke?me(kt(y)):Fe.length>0&&Ye(!1)},[M.join("-"),B]);var St=(0,a.useMemo)(function(){return ir(He,e)},[He&&He.join(","),e.layout,e.collapsed]),Pt=(0,a.useState)(function(){return new ar(e)}),Mt=(0,ie.Z)(Pt,1),et=Mt[0];if(b==null?void 0:b.loading)return a.createElement("div",{style:(i==null?void 0:i.includes("inline"))?{padding:24}:{marginTop:16}},a.createElement(j.Z,{active:!0,title:!1,paragraph:{rows:(i==null?void 0:i.includes("inline"))?6:1}}));var st=we()(s,{"top-nav-menu":i==="horizontal"});et.props=e,e.openKeys===!1&&!e.handleOpenChange&&(ae.current=M);var Ue=e.postMenuData?e.postMenuData(y):y;return Ue&&(Ue==null?void 0:Ue.length)<1?null:a.createElement(r.Z,(0,W.Z)({},St,{key:"Menu",mode:i,items:et.getNavMenuItems(Ue,!1),inlineIndent:16,defaultOpenKeys:ae.current,theme:l,selectedKeys:Xe,style:u,className:st,onOpenChange:me},e.menuProps))};Zn.defaultProps={postMenuData:function(e){return e||[]}};var Dn=Zn,lr=T.Z.Sider,Nn=function(e){return typeof e=="string"?a.createElement("img",{src:e,alt:"logo"}):typeof e=="function"?e():e},hn=function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",i=e.logo,s=e.title,c=e.layout,u=e[l||""];if(u===!1)return null;var y=Nn(i),b=a.createElement("h1",null,s!=null?s:"Ant Design Pro");return u?u(y,e.collapsed?null:b,e):c==="mix"&&l==="menuHeaderRender"?null:a.createElement("a",null,y,e.collapsed?null:b)},On=function(e){return e?a.createElement(m,null):a.createElement(z,null)},or=function(e){var l,i=e.collapsed,s=e.fixSiderbar,c=e.menuFooterRender,u=e.onCollapse,y=e.theme,b=e.siderWidth,M=e.isMobile,I=e.onMenuHeaderClick,B=e.breakpoint,D=B===void 0?"lg":B,H=e.style,U=e.layout,ae=e.menuExtraRender,$=ae===void 0?!1:ae,Fe=e.collapsedButtonRender,ne=Fe===void 0?On:Fe,Ke=e.links,ke=e.menuContentRender,Ye=e.prefixCls,Le=e.onOpenChange,lt=e.headerHeight,He=e.logoStyle,me="".concat(Ye,"-sider"),ot=Ct.useContainer(),Je=ot.flatMenuKeys,Xe=we()("".concat(me),(l={},(0,O.Z)(l,"".concat(me,"-fixed"),s),(0,O.Z)(l,"".concat(me,"-layout-").concat(U),U&&!M),(0,O.Z)(l,"".concat(me,"-light"),y!=="dark"),l)),qe=hn(e),St=$&&$(e),Pt=ke!==!1&&Je&&a.createElement(Dn,(0,W.Z)({},e,{key:"base-menu",mode:"inline",handleOpenChange:Le,style:{width:"100%"},className:"".concat(me,"-menu")})),Mt=ke?ke(e,Pt):Pt,et=(Ke||[]).map(function(st,Ue){return{className:"".concat(me,"-link"),label:st,key:Ue}});return ne&&!M&&et.push({className:"".concat(me,"-collapsed-button"),title:!1,key:"collapsed",onClick:function(){u&&u(!i)},label:ne(i)}),a.createElement(a.Fragment,null,s&&a.createElement("div",{style:(0,x.Z)({width:i?48:b,overflow:"hidden",flex:"0 0 ".concat(i?48:b,"px"),maxWidth:i?48:b,minWidth:i?48:b,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},H)}),a.createElement(lr,{collapsible:!0,trigger:null,collapsed:i,breakpoint:D===!1?void 0:D,onCollapse:function(Ue){M||u==null||u(Ue)},collapsedWidth:48,style:(0,x.Z)({overflow:"hidden",paddingTop:U==="mix"&&!M?lt:void 0},H),width:b,theme:y,className:Xe},qe&&a.createElement("div",{className:we()("".concat(me,"-logo"),(0,O.Z)({},"".concat(me,"-collapsed"),i)),onClick:U!=="mix"?I:void 0,id:"logo",style:He},qe),St&&a.createElement("div",{className:"".concat(me,"-extra ").concat(!qe&&"".concat(me,"-extra-no-logo"))},St),a.createElement("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"}},Mt),a.createElement("div",{className:"".concat(me,"-links")},a.createElement(r.Z,{theme:y,inlineIndent:16,className:"".concat(me,"-link-menu"),selectedKeys:[],openKeys:[],mode:"inline",items:et})),c&&a.createElement("div",{className:we()("".concat(me,"-footer"),(0,O.Z)({},"".concat(me,"-footer-collapsed"),!i))},c(e))))},In=or,sr=function(e){var l=e.isMobile,i=e.menuData,s=e.siderWidth,c=e.collapsed,u=e.onCollapse,y=e.style,b=e.className,M=e.hide,I=e.getContainer,B=e.prefixCls,D=e.matchMenuKeys,H=Ct.useContainer(),U=H.setFlatMenuKeys;(0,a.useEffect)(function(){if(!(!i||i.length<1)){var $=(0,jt.kv)(i);U(Object.keys($))}},[D.join("-")]),(0,a.useEffect)(function(){l===!0&&(u==null||u(!0))},[l]);var ae=(0,Jt.Z)(e,["className","style"]);return M?null:l?a.createElement(vn.Z,{visible:!c,placement:"left",className:we()("".concat(B,"-drawer-sider"),b),onClose:function(){return u==null?void 0:u(!0)},style:(0,x.Z)({padding:0,height:"100vh"},y),getContainer:I,width:s,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"}},a.createElement(In,(0,W.Z)({},ae,{className:we()("".concat(B,"-sider"),b),collapsed:l?!1:c,splitMenus:!1}))):a.createElement(In,(0,W.Z)({className:we()("".concat(B,"-sider"),b)},ae,{style:y}))},Ln=sr,ur=d(56858),_a=d(80471),cr=function(g){var e=g.className,l=g.prefixCls,i=g.links,s=g.copyright,c=g.style,u=(0,a.useContext)(Q.ZP.ConfigContext),y=u.getPrefixCls(l||"pro-global-footer");if((i==null||i===!1||Array.isArray(i)&&i.length===0)&&(s==null||s===!1))return null;var b=we()(y,e);return a.createElement("div",{className:b,style:c},i&&a.createElement("div",{className:"".concat(y,"-links")},i.map(function(M){return a.createElement("a",{key:M.key,title:M.key,target:M.blankTarget?"_blank":"_self",href:M.href,rel:"noreferrer"},M.title)})),s&&a.createElement("div",{className:"".concat(y,"-copyright")},s))},dr=T.Z.Footer,fr=function(e){var l=e.links,i=e.copyright,s=e.style,c=e.className,u=e.prefixCls;return a.createElement(dr,{className:c,style:(0,x.Z)({padding:0},s)},a.createElement(cr,{links:l,prefixCls:u,copyright:i===!1?null:a.createElement(a.Fragment,null,a.createElement(ur.Z,null)," ",i)}))},mr=fr,vr=d(16254),yn=d.n(vr),pr=function(e,l,i){if(i){var s=(0,te.Z)(i.keys()).find(function(u){return yn()(u).test(e)});if(s)return i.get(s)}if(l){var c=Object.keys(l).find(function(u){return yn()(u).test(e)});if(c)return l[c]}return{path:""}},An=function(e,l){var i=e.pathname,s=i===void 0?"/":i,c=e.breadcrumb,u=e.breadcrumbMap,y=e.formatMessage,b=e.title,M=e.menu,I=M===void 0?{locale:!1}:M,B=l?"":b||"",D=pr(s,c,u);if(!D)return{title:B,id:"",pageName:B};var H=D.name;return I.locale!==!1&&D.locale&&y&&(H=y({id:D.locale||"",defaultMessage:D.name})),H?l||!b?{title:H,id:D.locale||"",pageName:H}:{title:"".concat(H," - ").concat(b),id:D.locale||"",pageName:H}:{title:B,id:D.locale||"",pageName:B}},za=function(e,l){return An(e,l).title},ja=null,Bn=d(10379),_n=d(60446),gr=function(e){var l=(0,a.useRef)(null);return l.current=e,(0,a.useCallback)(function(){for(var i,s=arguments.length,c=new Array(s),u=0;u